~ubuntu-branches/ubuntu/gutsy/audacity/gutsy-security

« back to all changes in this revision

Viewing changes to lib-src/portaudio-v19/bindings/cpp/configure

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2007-05-17 02:36:41 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517023641-5yjqt9434cbcb6ph
Tags: 1.3.2-4
* debian/patches:
   - desktop_file.patch: fixed broken Category entry
* debian/audacity.mime:
   - added entry for application/x-audacity-project

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 PortAudioCpp 12.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
289
       echo_test_string=`eval $cmd` &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
421
# Identity of this package.
 
422
PACKAGE_NAME='PortAudioCpp'
 
423
PACKAGE_TARNAME='portaudiocpp'
 
424
PACKAGE_VERSION='12'
 
425
PACKAGE_STRING='PortAudioCpp 12'
 
426
PACKAGE_BUGREPORT=''
 
427
 
 
428
ac_unique_file="include/portaudiocpp/PortAudioCpp.hxx"
 
429
# Factoring default headers for most tests.
 
430
ac_includes_default="\
 
431
#include <stdio.h>
 
432
#if HAVE_SYS_TYPES_H
 
433
# include <sys/types.h>
 
434
#endif
 
435
#if HAVE_SYS_STAT_H
 
436
# include <sys/stat.h>
 
437
#endif
 
438
#if STDC_HEADERS
 
439
# include <stdlib.h>
 
440
# include <stddef.h>
 
441
#else
 
442
# if HAVE_STDLIB_H
 
443
#  include <stdlib.h>
 
444
# endif
 
445
#endif
 
446
#if HAVE_STRING_H
 
447
# if !STDC_HEADERS && HAVE_MEMORY_H
 
448
#  include <memory.h>
 
449
# endif
 
450
# include <string.h>
 
451
#endif
 
452
#if HAVE_STRINGS_H
 
453
# include <strings.h>
 
454
#endif
 
455
#if HAVE_INTTYPES_H
 
456
# include <inttypes.h>
 
457
#else
 
458
# if HAVE_STDINT_H
 
459
#  include <stdint.h>
 
460
# endif
 
461
#endif
 
462
#if HAVE_UNISTD_H
 
463
# include <unistd.h>
 
464
#endif"
 
465
 
 
466
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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DEFAULT_INCLUDES PORTAUDIO_ROOT LT_VERSION_INFO LIBOBJS LTLIBOBJS'
 
467
ac_subst_files=''
 
468
 
 
469
# Initialize some variables set by options.
 
470
ac_init_help=
 
471
ac_init_version=false
 
472
# The variables have the same names as the options, with
 
473
# dashes changed to underlines.
 
474
cache_file=/dev/null
 
475
exec_prefix=NONE
 
476
no_create=
 
477
no_recursion=
 
478
prefix=NONE
 
479
program_prefix=NONE
 
480
program_suffix=NONE
 
481
program_transform_name=s,x,x,
 
482
silent=
 
483
site=
 
484
srcdir=
 
485
verbose=
 
486
x_includes=NONE
 
487
x_libraries=NONE
 
488
 
 
489
# Installation directory options.
 
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
491
# and all the variables that are supposed to be based on exec_prefix
 
492
# by default will actually change.
 
493
# Use braces instead of parens because sh, perl, etc. also accept them.
 
494
bindir='${exec_prefix}/bin'
 
495
sbindir='${exec_prefix}/sbin'
 
496
libexecdir='${exec_prefix}/libexec'
 
497
datadir='${prefix}/share'
 
498
sysconfdir='${prefix}/etc'
 
499
sharedstatedir='${prefix}/com'
 
500
localstatedir='${prefix}/var'
 
501
libdir='${exec_prefix}/lib'
 
502
includedir='${prefix}/include'
 
503
oldincludedir='/usr/include'
 
504
infodir='${prefix}/info'
 
505
mandir='${prefix}/man'
 
506
 
 
507
ac_prev=
 
508
for ac_option
 
509
do
 
510
  # If the previous option needs an argument, assign it.
 
511
  if test -n "$ac_prev"; then
 
512
    eval "$ac_prev=\$ac_option"
 
513
    ac_prev=
 
514
    continue
 
515
  fi
 
516
 
 
517
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
518
 
 
519
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
520
 
 
521
  case $ac_option in
 
522
 
 
523
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
524
    ac_prev=bindir ;;
 
525
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
526
    bindir=$ac_optarg ;;
 
527
 
 
528
  -build | --build | --buil | --bui | --bu)
 
529
    ac_prev=build_alias ;;
 
530
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
531
    build_alias=$ac_optarg ;;
 
532
 
 
533
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
534
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
535
    ac_prev=cache_file ;;
 
536
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
537
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
538
    cache_file=$ac_optarg ;;
 
539
 
 
540
  --config-cache | -C)
 
541
    cache_file=config.cache ;;
 
542
 
 
543
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
544
    ac_prev=datadir ;;
 
545
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
546
  | --da=*)
 
547
    datadir=$ac_optarg ;;
 
548
 
 
549
  -disable-* | --disable-*)
 
550
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
551
    # Reject names that are not valid shell variable names.
 
552
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
553
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
554
   { (exit 1); exit 1; }; }
 
555
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
556
    eval "enable_$ac_feature=no" ;;
 
557
 
 
558
  -enable-* | --enable-*)
 
559
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
560
    # Reject names that are not valid shell variable names.
 
561
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
562
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
563
   { (exit 1); exit 1; }; }
 
564
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
565
    case $ac_option in
 
566
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
567
      *) ac_optarg=yes ;;
 
568
    esac
 
569
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
570
 
 
571
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
572
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
573
  | --exec | --exe | --ex)
 
574
    ac_prev=exec_prefix ;;
 
575
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
576
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
577
  | --exec=* | --exe=* | --ex=*)
 
578
    exec_prefix=$ac_optarg ;;
 
579
 
 
580
  -gas | --gas | --ga | --g)
 
581
    # Obsolete; use --with-gas.
 
582
    with_gas=yes ;;
 
583
 
 
584
  -help | --help | --hel | --he | -h)
 
585
    ac_init_help=long ;;
 
586
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
587
    ac_init_help=recursive ;;
 
588
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
589
    ac_init_help=short ;;
 
590
 
 
591
  -host | --host | --hos | --ho)
 
592
    ac_prev=host_alias ;;
 
593
  -host=* | --host=* | --hos=* | --ho=*)
 
594
    host_alias=$ac_optarg ;;
 
595
 
 
596
  -includedir | --includedir | --includedi | --included | --include \
 
597
  | --includ | --inclu | --incl | --inc)
 
598
    ac_prev=includedir ;;
 
599
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
600
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
601
    includedir=$ac_optarg ;;
 
602
 
 
603
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
604
    ac_prev=infodir ;;
 
605
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
606
    infodir=$ac_optarg ;;
 
607
 
 
608
  -libdir | --libdir | --libdi | --libd)
 
609
    ac_prev=libdir ;;
 
610
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
611
    libdir=$ac_optarg ;;
 
612
 
 
613
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
614
  | --libexe | --libex | --libe)
 
615
    ac_prev=libexecdir ;;
 
616
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
617
  | --libexe=* | --libex=* | --libe=*)
 
618
    libexecdir=$ac_optarg ;;
 
619
 
 
620
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
621
  | --localstate | --localstat | --localsta | --localst \
 
622
  | --locals | --local | --loca | --loc | --lo)
 
623
    ac_prev=localstatedir ;;
 
624
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
625
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
626
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
627
    localstatedir=$ac_optarg ;;
 
628
 
 
629
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
630
    ac_prev=mandir ;;
 
631
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
632
    mandir=$ac_optarg ;;
 
633
 
 
634
  -nfp | --nfp | --nf)
 
635
    # Obsolete; use --without-fp.
 
636
    with_fp=no ;;
 
637
 
 
638
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
639
  | --no-cr | --no-c | -n)
 
640
    no_create=yes ;;
 
641
 
 
642
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
643
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
644
    no_recursion=yes ;;
 
645
 
 
646
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
647
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
648
  | --oldin | --oldi | --old | --ol | --o)
 
649
    ac_prev=oldincludedir ;;
 
650
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
651
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
652
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
653
    oldincludedir=$ac_optarg ;;
 
654
 
 
655
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
656
    ac_prev=prefix ;;
 
657
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
658
    prefix=$ac_optarg ;;
 
659
 
 
660
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
661
  | --program-pre | --program-pr | --program-p)
 
662
    ac_prev=program_prefix ;;
 
663
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
664
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
665
    program_prefix=$ac_optarg ;;
 
666
 
 
667
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
668
  | --program-suf | --program-su | --program-s)
 
669
    ac_prev=program_suffix ;;
 
670
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
671
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
672
    program_suffix=$ac_optarg ;;
 
673
 
 
674
  -program-transform-name | --program-transform-name \
 
675
  | --program-transform-nam | --program-transform-na \
 
676
  | --program-transform-n | --program-transform- \
 
677
  | --program-transform | --program-transfor \
 
678
  | --program-transfo | --program-transf \
 
679
  | --program-trans | --program-tran \
 
680
  | --progr-tra | --program-tr | --program-t)
 
681
    ac_prev=program_transform_name ;;
 
682
  -program-transform-name=* | --program-transform-name=* \
 
683
  | --program-transform-nam=* | --program-transform-na=* \
 
684
  | --program-transform-n=* | --program-transform-=* \
 
685
  | --program-transform=* | --program-transfor=* \
 
686
  | --program-transfo=* | --program-transf=* \
 
687
  | --program-trans=* | --program-tran=* \
 
688
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
689
    program_transform_name=$ac_optarg ;;
 
690
 
 
691
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
692
  | -silent | --silent | --silen | --sile | --sil)
 
693
    silent=yes ;;
 
694
 
 
695
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
696
    ac_prev=sbindir ;;
 
697
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
698
  | --sbi=* | --sb=*)
 
699
    sbindir=$ac_optarg ;;
 
700
 
 
701
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
702
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
703
  | --sharedst | --shareds | --shared | --share | --shar \
 
704
  | --sha | --sh)
 
705
    ac_prev=sharedstatedir ;;
 
706
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
707
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
708
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
709
  | --sha=* | --sh=*)
 
710
    sharedstatedir=$ac_optarg ;;
 
711
 
 
712
  -site | --site | --sit)
 
713
    ac_prev=site ;;
 
714
  -site=* | --site=* | --sit=*)
 
715
    site=$ac_optarg ;;
 
716
 
 
717
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
718
    ac_prev=srcdir ;;
 
719
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
720
    srcdir=$ac_optarg ;;
 
721
 
 
722
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
723
  | --syscon | --sysco | --sysc | --sys | --sy)
 
724
    ac_prev=sysconfdir ;;
 
725
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
726
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
727
    sysconfdir=$ac_optarg ;;
 
728
 
 
729
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
730
    ac_prev=target_alias ;;
 
731
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
732
    target_alias=$ac_optarg ;;
 
733
 
 
734
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
735
    verbose=yes ;;
 
736
 
 
737
  -version | --version | --versio | --versi | --vers | -V)
 
738
    ac_init_version=: ;;
 
739
 
 
740
  -with-* | --with-*)
 
741
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
742
    # Reject names that are not valid shell variable names.
 
743
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
744
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
745
   { (exit 1); exit 1; }; }
 
746
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
747
    case $ac_option in
 
748
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
749
      *) ac_optarg=yes ;;
 
750
    esac
 
751
    eval "with_$ac_package='$ac_optarg'" ;;
 
752
 
 
753
  -without-* | --without-*)
 
754
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
755
    # Reject names that are not valid shell variable names.
 
756
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
757
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
758
   { (exit 1); exit 1; }; }
 
759
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
760
    eval "with_$ac_package=no" ;;
 
761
 
 
762
  --x)
 
763
    # Obsolete; use --with-x.
 
764
    with_x=yes ;;
 
765
 
 
766
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
767
  | --x-incl | --x-inc | --x-in | --x-i)
 
768
    ac_prev=x_includes ;;
 
769
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
770
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
771
    x_includes=$ac_optarg ;;
 
772
 
 
773
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
774
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
775
    ac_prev=x_libraries ;;
 
776
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
777
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
778
    x_libraries=$ac_optarg ;;
 
779
 
 
780
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
781
Try \`$0 --help' for more information." >&2
 
782
   { (exit 1); exit 1; }; }
 
783
    ;;
 
784
 
 
785
  *=*)
 
786
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
787
    # Reject names that are not valid shell variable names.
 
788
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
789
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
790
   { (exit 1); exit 1; }; }
 
791
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
792
    eval "$ac_envvar='$ac_optarg'"
 
793
    export $ac_envvar ;;
 
794
 
 
795
  *)
 
796
    # FIXME: should be removed in autoconf 3.0.
 
797
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
798
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
799
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
800
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
801
    ;;
 
802
 
 
803
  esac
 
804
done
 
805
 
 
806
if test -n "$ac_prev"; then
 
807
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
808
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
809
   { (exit 1); exit 1; }; }
 
810
fi
 
811
 
 
812
# Be sure to have absolute paths.
 
813
for ac_var in exec_prefix prefix
 
814
do
 
815
  eval ac_val=$`echo $ac_var`
 
816
  case $ac_val in
 
817
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
818
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
819
   { (exit 1); exit 1; }; };;
 
820
  esac
 
821
done
 
822
 
 
823
# Be sure to have absolute paths.
 
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
825
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
do
 
827
  eval ac_val=$`echo $ac_var`
 
828
  case $ac_val in
 
829
    [\\/$]* | ?:[\\/]* ) ;;
 
830
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
831
   { (exit 1); exit 1; }; };;
 
832
  esac
 
833
done
 
834
 
 
835
# There might be people who depend on the old broken behavior: `$host'
 
836
# used to hold the argument of --host etc.
 
837
# FIXME: To remove some day.
 
838
build=$build_alias
 
839
host=$host_alias
 
840
target=$target_alias
 
841
 
 
842
# FIXME: To remove some day.
 
843
if test "x$host_alias" != x; then
 
844
  if test "x$build_alias" = x; then
 
845
    cross_compiling=maybe
 
846
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
847
    If a cross compiler is detected then cross compile mode will be used." >&2
 
848
  elif test "x$build_alias" != "x$host_alias"; then
 
849
    cross_compiling=yes
 
850
  fi
 
851
fi
 
852
 
 
853
ac_tool_prefix=
 
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
855
 
 
856
test "$silent" = yes && exec 6>/dev/null
 
857
 
 
858
 
 
859
# Find the source files, if location was not specified.
 
860
if test -z "$srcdir"; then
 
861
  ac_srcdir_defaulted=yes
 
862
  # Try the directory containing this script, then its parent.
 
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
865
         X"$0" : 'X\(//\)[^/]' \| \
 
866
         X"$0" : 'X\(//\)$' \| \
 
867
         X"$0" : 'X\(/\)' \| \
 
868
         .     : '\(.\)' 2>/dev/null ||
 
869
echo X"$0" |
 
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
871
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
872
          /^X\(\/\/\)$/{ s//\1/; q; }
 
873
          /^X\(\/\).*/{ s//\1/; q; }
 
874
          s/.*/./; q'`
 
875
  srcdir=$ac_confdir
 
876
  if test ! -r $srcdir/$ac_unique_file; then
 
877
    srcdir=..
 
878
  fi
 
879
else
 
880
  ac_srcdir_defaulted=no
 
881
fi
 
882
if test ! -r $srcdir/$ac_unique_file; then
 
883
  if test "$ac_srcdir_defaulted" = yes; then
 
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
885
   { (exit 1); exit 1; }; }
 
886
  else
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
888
   { (exit 1); exit 1; }; }
 
889
  fi
 
890
fi
 
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
892
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
893
   { (exit 1); exit 1; }; }
 
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
895
ac_env_build_alias_set=${build_alias+set}
 
896
ac_env_build_alias_value=$build_alias
 
897
ac_cv_env_build_alias_set=${build_alias+set}
 
898
ac_cv_env_build_alias_value=$build_alias
 
899
ac_env_host_alias_set=${host_alias+set}
 
900
ac_env_host_alias_value=$host_alias
 
901
ac_cv_env_host_alias_set=${host_alias+set}
 
902
ac_cv_env_host_alias_value=$host_alias
 
903
ac_env_target_alias_set=${target_alias+set}
 
904
ac_env_target_alias_value=$target_alias
 
905
ac_cv_env_target_alias_set=${target_alias+set}
 
906
ac_cv_env_target_alias_value=$target_alias
 
907
ac_env_CC_set=${CC+set}
 
908
ac_env_CC_value=$CC
 
909
ac_cv_env_CC_set=${CC+set}
 
910
ac_cv_env_CC_value=$CC
 
911
ac_env_CFLAGS_set=${CFLAGS+set}
 
912
ac_env_CFLAGS_value=$CFLAGS
 
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_cv_env_CFLAGS_value=$CFLAGS
 
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
916
ac_env_LDFLAGS_value=$LDFLAGS
 
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
920
ac_env_CPPFLAGS_value=$CPPFLAGS
 
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_env_CXX_set=${CXX+set}
 
924
ac_env_CXX_value=$CXX
 
925
ac_cv_env_CXX_set=${CXX+set}
 
926
ac_cv_env_CXX_value=$CXX
 
927
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
928
ac_env_CXXFLAGS_value=$CXXFLAGS
 
929
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
930
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
931
ac_env_CPP_set=${CPP+set}
 
932
ac_env_CPP_value=$CPP
 
933
ac_cv_env_CPP_set=${CPP+set}
 
934
ac_cv_env_CPP_value=$CPP
 
935
ac_env_CXXCPP_set=${CXXCPP+set}
 
936
ac_env_CXXCPP_value=$CXXCPP
 
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_cv_env_CXXCPP_value=$CXXCPP
 
939
ac_env_F77_set=${F77+set}
 
940
ac_env_F77_value=$F77
 
941
ac_cv_env_F77_set=${F77+set}
 
942
ac_cv_env_F77_value=$F77
 
943
ac_env_FFLAGS_set=${FFLAGS+set}
 
944
ac_env_FFLAGS_value=$FFLAGS
 
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_cv_env_FFLAGS_value=$FFLAGS
 
947
 
 
948
#
 
949
# Report the --help message.
 
950
#
 
951
if test "$ac_init_help" = "long"; then
 
952
  # Omit some internal or obsolete options to make the list less imposing.
 
953
  # This message is too long to be a string in the A/UX 3.1 sh.
 
954
  cat <<_ACEOF
 
955
\`configure' configures PortAudioCpp 12 to adapt to many kinds of systems.
 
956
 
 
957
Usage: $0 [OPTION]... [VAR=VALUE]...
 
958
 
 
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
960
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
961
 
 
962
Defaults for the options are specified in brackets.
 
963
 
 
964
Configuration:
 
965
  -h, --help              display this help and exit
 
966
      --help=short        display options specific to this package
 
967
      --help=recursive    display the short help of all the included packages
 
968
  -V, --version           display version information and exit
 
969
  -q, --quiet, --silent   do not print \`checking...' messages
 
970
      --cache-file=FILE   cache test results in FILE [disabled]
 
971
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
972
  -n, --no-create         do not create output files
 
973
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
974
 
 
975
_ACEOF
 
976
 
 
977
  cat <<_ACEOF
 
978
Installation directories:
 
979
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
980
                          [$ac_default_prefix]
 
981
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
982
                          [PREFIX]
 
983
 
 
984
By default, \`make install' will install all the files in
 
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
987
for instance \`--prefix=\$HOME'.
 
988
 
 
989
For better control, use the options below.
 
990
 
 
991
Fine tuning of the installation directories:
 
992
  --bindir=DIR           user executables [EPREFIX/bin]
 
993
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
994
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
995
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
996
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
997
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
998
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
999
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1000
  --includedir=DIR       C header files [PREFIX/include]
 
1001
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1002
  --infodir=DIR          info documentation [PREFIX/info]
 
1003
  --mandir=DIR           man documentation [PREFIX/man]
 
1004
_ACEOF
 
1005
 
 
1006
  cat <<\_ACEOF
 
1007
 
 
1008
Program names:
 
1009
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1010
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1011
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1012
 
 
1013
System types:
 
1014
  --build=BUILD     configure for building on BUILD [guessed]
 
1015
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1016
_ACEOF
 
1017
fi
 
1018
 
 
1019
if test -n "$ac_init_help"; then
 
1020
  case $ac_init_help in
 
1021
     short | recursive ) echo "Configuration of PortAudioCpp 12:";;
 
1022
   esac
 
1023
  cat <<\_ACEOF
 
1024
 
 
1025
Optional Features:
 
1026
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1027
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1028
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1029
                          (and sometimes confusing) to the casual installer
 
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
  CC          C compiler command
 
1051
  CFLAGS      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
  CXX         C++ compiler command
 
1057
  CXXFLAGS    C++ compiler flags
 
1058
  CPP         C preprocessor
 
1059
  CXXCPP      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
_ACEOF
 
1067
fi
 
1068
 
 
1069
if test "$ac_init_help" = "recursive"; then
 
1070
  # If there are subdirs, report their specific --help.
 
1071
  ac_popdir=`pwd`
 
1072
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1073
    test -d $ac_dir || continue
 
1074
    ac_builddir=.
 
1075
 
 
1076
if test "$ac_dir" != .; then
 
1077
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1078
  # A "../" for each directory in $ac_dir_suffix.
 
1079
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1080
else
 
1081
  ac_dir_suffix= ac_top_builddir=
 
1082
fi
 
1083
 
 
1084
case $srcdir in
 
1085
  .)  # No --srcdir option.  We are building in place.
 
1086
    ac_srcdir=.
 
1087
    if test -z "$ac_top_builddir"; then
 
1088
       ac_top_srcdir=.
 
1089
    else
 
1090
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1091
    fi ;;
 
1092
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1093
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1094
    ac_top_srcdir=$srcdir ;;
 
1095
  *) # Relative path.
 
1096
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1097
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1098
esac
 
1099
 
 
1100
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1101
# the directories may not exist.
 
1102
case `pwd` in
 
1103
.) ac_abs_builddir="$ac_dir";;
 
1104
*)
 
1105
  case "$ac_dir" in
 
1106
  .) ac_abs_builddir=`pwd`;;
 
1107
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1108
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1109
  esac;;
 
1110
esac
 
1111
case $ac_abs_builddir in
 
1112
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1113
*)
 
1114
  case ${ac_top_builddir}. in
 
1115
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1116
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1117
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1118
  esac;;
 
1119
esac
 
1120
case $ac_abs_builddir in
 
1121
.) ac_abs_srcdir=$ac_srcdir;;
 
1122
*)
 
1123
  case $ac_srcdir in
 
1124
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1125
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1126
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1127
  esac;;
 
1128
esac
 
1129
case $ac_abs_builddir in
 
1130
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1131
*)
 
1132
  case $ac_top_srcdir in
 
1133
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1134
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1135
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1136
  esac;;
 
1137
esac
 
1138
 
 
1139
    cd $ac_dir
 
1140
    # Check for guested configure; otherwise get Cygnus style configure.
 
1141
    if test -f $ac_srcdir/configure.gnu; then
 
1142
      echo
 
1143
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1144
    elif test -f $ac_srcdir/configure; then
 
1145
      echo
 
1146
      $SHELL $ac_srcdir/configure  --help=recursive
 
1147
    elif test -f $ac_srcdir/configure.ac ||
 
1148
           test -f $ac_srcdir/configure.in; then
 
1149
      echo
 
1150
      $ac_configure --help
 
1151
    else
 
1152
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1153
    fi
 
1154
    cd "$ac_popdir"
 
1155
  done
 
1156
fi
 
1157
 
 
1158
test -n "$ac_init_help" && exit 0
 
1159
if $ac_init_version; then
 
1160
  cat <<\_ACEOF
 
1161
PortAudioCpp configure 12
 
1162
generated by GNU Autoconf 2.59
 
1163
 
 
1164
Copyright (C) 2003 Free Software Foundation, Inc.
 
1165
This configure script is free software; the Free Software Foundation
 
1166
gives unlimited permission to copy, distribute and modify it.
 
1167
_ACEOF
 
1168
  exit 0
 
1169
fi
 
1170
exec 5>config.log
 
1171
cat >&5 <<_ACEOF
 
1172
This file contains any messages produced by compilers while
 
1173
running configure, to aid debugging if configure makes a mistake.
 
1174
 
 
1175
It was created by PortAudioCpp $as_me 12, which was
 
1176
generated by GNU Autoconf 2.59.  Invocation command line was
 
1177
 
 
1178
  $ $0 $@
 
1179
 
 
1180
_ACEOF
 
1181
{
 
1182
cat <<_ASUNAME
 
1183
## --------- ##
 
1184
## Platform. ##
 
1185
## --------- ##
 
1186
 
 
1187
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1188
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1189
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1190
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1191
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1192
 
 
1193
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1194
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1195
 
 
1196
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1197
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1198
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1199
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1200
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1201
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1202
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1203
 
 
1204
_ASUNAME
 
1205
 
 
1206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1207
for as_dir in $PATH
 
1208
do
 
1209
  IFS=$as_save_IFS
 
1210
  test -z "$as_dir" && as_dir=.
 
1211
  echo "PATH: $as_dir"
 
1212
done
 
1213
 
 
1214
} >&5
 
1215
 
 
1216
cat >&5 <<_ACEOF
 
1217
 
 
1218
 
 
1219
## ----------- ##
 
1220
## Core tests. ##
 
1221
## ----------- ##
 
1222
 
 
1223
_ACEOF
 
1224
 
 
1225
 
 
1226
# Keep a trace of the command line.
 
1227
# Strip out --no-create and --no-recursion so they do not pile up.
 
1228
# Strip out --silent because we don't want to record it for future runs.
 
1229
# Also quote any args containing shell meta-characters.
 
1230
# Make two passes to allow for proper duplicate-argument suppression.
 
1231
ac_configure_args=
 
1232
ac_configure_args0=
 
1233
ac_configure_args1=
 
1234
ac_sep=
 
1235
ac_must_keep_next=false
 
1236
for ac_pass in 1 2
 
1237
do
 
1238
  for ac_arg
 
1239
  do
 
1240
    case $ac_arg in
 
1241
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1242
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1243
    | -silent | --silent | --silen | --sile | --sil)
 
1244
      continue ;;
 
1245
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1246
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1247
    esac
 
1248
    case $ac_pass in
 
1249
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1250
    2)
 
1251
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1252
      if test $ac_must_keep_next = true; then
 
1253
        ac_must_keep_next=false # Got value, back to normal.
 
1254
      else
 
1255
        case $ac_arg in
 
1256
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1257
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1258
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1259
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1260
            case "$ac_configure_args0 " in
 
1261
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1262
            esac
 
1263
            ;;
 
1264
          -* ) ac_must_keep_next=true ;;
 
1265
        esac
 
1266
      fi
 
1267
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1268
      # Get rid of the leading space.
 
1269
      ac_sep=" "
 
1270
      ;;
 
1271
    esac
 
1272
  done
 
1273
done
 
1274
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1275
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1276
 
 
1277
# When interrupted or exit'd, cleanup temporary files, and complete
 
1278
# config.log.  We remove comments because anyway the quotes in there
 
1279
# would cause problems or look ugly.
 
1280
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1281
# such as our DU 5.0 friend, will then `close' the trap.
 
1282
trap 'exit_status=$?
 
1283
  # Save into config.log some information that might help in debugging.
 
1284
  {
 
1285
    echo
 
1286
 
 
1287
    cat <<\_ASBOX
 
1288
## ---------------- ##
 
1289
## Cache variables. ##
 
1290
## ---------------- ##
 
1291
_ASBOX
 
1292
    echo
 
1293
    # The following way of writing the cache mishandles newlines in values,
 
1294
{
 
1295
  (set) 2>&1 |
 
1296
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1297
    *ac_space=\ *)
 
1298
      sed -n \
 
1299
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1300
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1301
      ;;
 
1302
    *)
 
1303
      sed -n \
 
1304
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1305
      ;;
 
1306
    esac;
 
1307
}
 
1308
    echo
 
1309
 
 
1310
    cat <<\_ASBOX
 
1311
## ----------------- ##
 
1312
## Output variables. ##
 
1313
## ----------------- ##
 
1314
_ASBOX
 
1315
    echo
 
1316
    for ac_var in $ac_subst_vars
 
1317
    do
 
1318
      eval ac_val=$`echo $ac_var`
 
1319
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1320
    done | sort
 
1321
    echo
 
1322
 
 
1323
    if test -n "$ac_subst_files"; then
 
1324
      cat <<\_ASBOX
 
1325
## ------------- ##
 
1326
## Output files. ##
 
1327
## ------------- ##
 
1328
_ASBOX
 
1329
      echo
 
1330
      for ac_var in $ac_subst_files
 
1331
      do
 
1332
        eval ac_val=$`echo $ac_var`
 
1333
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1334
      done | sort
 
1335
      echo
 
1336
    fi
 
1337
 
 
1338
    if test -s confdefs.h; then
 
1339
      cat <<\_ASBOX
 
1340
## ----------- ##
 
1341
## confdefs.h. ##
 
1342
## ----------- ##
 
1343
_ASBOX
 
1344
      echo
 
1345
      sed "/^$/d" confdefs.h | sort
 
1346
      echo
 
1347
    fi
 
1348
    test "$ac_signal" != 0 &&
 
1349
      echo "$as_me: caught signal $ac_signal"
 
1350
    echo "$as_me: exit $exit_status"
 
1351
  } >&5
 
1352
  rm -f core *.core &&
 
1353
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1354
    exit $exit_status
 
1355
     ' 0
 
1356
for ac_signal in 1 2 13 15; do
 
1357
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1358
done
 
1359
ac_signal=0
 
1360
 
 
1361
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1362
rm -rf conftest* confdefs.h
 
1363
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1364
echo >confdefs.h
 
1365
 
 
1366
# Predefined preprocessor variables.
 
1367
 
 
1368
cat >>confdefs.h <<_ACEOF
 
1369
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1370
_ACEOF
 
1371
 
 
1372
 
 
1373
cat >>confdefs.h <<_ACEOF
 
1374
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1375
_ACEOF
 
1376
 
 
1377
 
 
1378
cat >>confdefs.h <<_ACEOF
 
1379
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1380
_ACEOF
 
1381
 
 
1382
 
 
1383
cat >>confdefs.h <<_ACEOF
 
1384
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1385
_ACEOF
 
1386
 
 
1387
 
 
1388
cat >>confdefs.h <<_ACEOF
 
1389
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1390
_ACEOF
 
1391
 
 
1392
 
 
1393
# Let the site file select an alternate cache file if it wants to.
 
1394
# Prefer explicitly selected file to automatically selected ones.
 
1395
if test -z "$CONFIG_SITE"; then
 
1396
  if test "x$prefix" != xNONE; then
 
1397
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1398
  else
 
1399
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1400
  fi
 
1401
fi
 
1402
for ac_site_file in $CONFIG_SITE; do
 
1403
  if test -r "$ac_site_file"; then
 
1404
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1405
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1406
    sed 's/^/| /' "$ac_site_file" >&5
 
1407
    . "$ac_site_file"
 
1408
  fi
 
1409
done
 
1410
 
 
1411
if test -r "$cache_file"; then
 
1412
  # Some versions of bash will fail to source /dev/null (special
 
1413
  # files actually), so we avoid doing that.
 
1414
  if test -f "$cache_file"; then
 
1415
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1416
echo "$as_me: loading cache $cache_file" >&6;}
 
1417
    case $cache_file in
 
1418
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1419
      *)                      . ./$cache_file;;
 
1420
    esac
 
1421
  fi
 
1422
else
 
1423
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1424
echo "$as_me: creating cache $cache_file" >&6;}
 
1425
  >$cache_file
 
1426
fi
 
1427
 
 
1428
# Check that the precious variables saved in the cache have kept the same
 
1429
# value.
 
1430
ac_cache_corrupted=false
 
1431
for ac_var in `(set) 2>&1 |
 
1432
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1433
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1434
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1435
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1436
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1437
  case $ac_old_set,$ac_new_set in
 
1438
    set,)
 
1439
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1440
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1441
      ac_cache_corrupted=: ;;
 
1442
    ,set)
 
1443
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1444
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1445
      ac_cache_corrupted=: ;;
 
1446
    ,);;
 
1447
    *)
 
1448
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1449
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1450
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1451
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1452
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1453
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1454
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1455
        ac_cache_corrupted=:
 
1456
      fi;;
 
1457
  esac
 
1458
  # Pass precious variables to config.status.
 
1459
  if test "$ac_new_set" = set; then
 
1460
    case $ac_new_val in
 
1461
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1462
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1463
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1464
    esac
 
1465
    case " $ac_configure_args " in
 
1466
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1467
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1468
    esac
 
1469
  fi
 
1470
done
 
1471
if $ac_cache_corrupted; then
 
1472
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1473
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1474
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1475
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1476
   { (exit 1); exit 1; }; }
 
1477
fi
 
1478
 
 
1479
ac_ext=c
 
1480
ac_cpp='$CPP $CPPFLAGS'
 
1481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1484
 
 
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
am__api_version="1.9"
 
1513
ac_aux_dir=
 
1514
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1515
  if test -f $ac_dir/install-sh; then
 
1516
    ac_aux_dir=$ac_dir
 
1517
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1518
    break
 
1519
  elif test -f $ac_dir/install.sh; then
 
1520
    ac_aux_dir=$ac_dir
 
1521
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1522
    break
 
1523
  elif test -f $ac_dir/shtool; then
 
1524
    ac_aux_dir=$ac_dir
 
1525
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1526
    break
 
1527
  fi
 
1528
done
 
1529
if test -z "$ac_aux_dir"; then
 
1530
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1531
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1532
   { (exit 1); exit 1; }; }
 
1533
fi
 
1534
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1535
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1536
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1537
 
 
1538
# Find a good install program.  We prefer a C program (faster),
 
1539
# so one script is as good as another.  But avoid the broken or
 
1540
# incompatible versions:
 
1541
# SysV /etc/install, /usr/sbin/install
 
1542
# SunOS /usr/etc/install
 
1543
# IRIX /sbin/install
 
1544
# AIX /bin/install
 
1545
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1546
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1547
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1548
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1549
# OS/2's system install, which has a completely different semantic
 
1550
# ./install, which can be erroneously created by make from ./install.sh.
 
1551
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1552
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1553
if test -z "$INSTALL"; then
 
1554
if test "${ac_cv_path_install+set}" = set; then
 
1555
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1556
else
 
1557
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1558
for as_dir in $PATH
 
1559
do
 
1560
  IFS=$as_save_IFS
 
1561
  test -z "$as_dir" && as_dir=.
 
1562
  # Account for people who put trailing slashes in PATH elements.
 
1563
case $as_dir/ in
 
1564
  ./ | .// | /cC/* | \
 
1565
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1566
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1567
  /usr/ucb/* ) ;;
 
1568
  *)
 
1569
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1570
    # Don't use installbsd from OSF since it installs stuff as root
 
1571
    # by default.
 
1572
    for ac_prog in ginstall scoinst install; do
 
1573
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1574
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1575
          if test $ac_prog = install &&
 
1576
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1577
            # AIX install.  It has an incompatible calling convention.
 
1578
            :
 
1579
          elif test $ac_prog = install &&
 
1580
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1581
            # program-specific install script used by HP pwplus--don't use.
 
1582
            :
 
1583
          else
 
1584
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1585
            break 3
 
1586
          fi
 
1587
        fi
 
1588
      done
 
1589
    done
 
1590
    ;;
 
1591
esac
 
1592
done
 
1593
 
 
1594
 
 
1595
fi
 
1596
  if test "${ac_cv_path_install+set}" = set; then
 
1597
    INSTALL=$ac_cv_path_install
 
1598
  else
 
1599
    # As a last resort, use the slow shell script.  We don't cache a
 
1600
    # path for INSTALL within a source directory, because that will
 
1601
    # break other packages using the cache if that directory is
 
1602
    # removed, or if the path is relative.
 
1603
    INSTALL=$ac_install_sh
 
1604
  fi
 
1605
fi
 
1606
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1607
echo "${ECHO_T}$INSTALL" >&6
 
1608
 
 
1609
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1610
# It thinks the first close brace ends the variable substitution.
 
1611
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1612
 
 
1613
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1614
 
 
1615
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1616
 
 
1617
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1618
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1619
# Just in case
 
1620
sleep 1
 
1621
echo timestamp > conftest.file
 
1622
# Do `set' in a subshell so we don't clobber the current shell's
 
1623
# arguments.  Must try -L first in case configure is actually a
 
1624
# symlink; some systems play weird games with the mod time of symlinks
 
1625
# (eg FreeBSD returns the mod time of the symlink's containing
 
1626
# directory).
 
1627
if (
 
1628
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1629
   if test "$*" = "X"; then
 
1630
      # -L didn't work.
 
1631
      set X `ls -t $srcdir/configure conftest.file`
 
1632
   fi
 
1633
   rm -f conftest.file
 
1634
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1635
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1636
 
 
1637
      # If neither matched, then we have a broken ls.  This can happen
 
1638
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1639
      # broken ls alias from the environment.  This has actually
 
1640
      # happened.  Such a system could not be considered "sane".
 
1641
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1642
alias in your environment" >&5
 
1643
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1644
alias in your environment" >&2;}
 
1645
   { (exit 1); exit 1; }; }
 
1646
   fi
 
1647
 
 
1648
   test "$2" = conftest.file
 
1649
   )
 
1650
then
 
1651
   # Ok.
 
1652
   :
 
1653
else
 
1654
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1655
Check your system clock" >&5
 
1656
echo "$as_me: error: newly created file is older than distributed files!
 
1657
Check your system clock" >&2;}
 
1658
   { (exit 1); exit 1; }; }
 
1659
fi
 
1660
echo "$as_me:$LINENO: result: yes" >&5
 
1661
echo "${ECHO_T}yes" >&6
 
1662
test "$program_prefix" != NONE &&
 
1663
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1664
# Use a double $ so make ignores it.
 
1665
test "$program_suffix" != NONE &&
 
1666
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1667
# Double any \ or $.  echo might interpret backslashes.
 
1668
# By default was `s,x,x', remove it if useless.
 
1669
cat <<\_ACEOF >conftest.sed
 
1670
s/[\\$]/&&/g;s/;s,x,x,$//
 
1671
_ACEOF
 
1672
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1673
rm conftest.sed
 
1674
 
 
1675
# expand $ac_aux_dir to an absolute path
 
1676
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1677
 
 
1678
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1679
# Use eval to expand $SHELL
 
1680
if eval "$MISSING --run true"; then
 
1681
  am_missing_run="$MISSING --run "
 
1682
else
 
1683
  am_missing_run=
 
1684
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1685
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1686
fi
 
1687
 
 
1688
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1689
  # We used to keeping the `.' as first argument, in order to
 
1690
  # allow $(mkdir_p) to be used without argument.  As in
 
1691
  #   $(mkdir_p) $(somedir)
 
1692
  # where $(somedir) is conditionally defined.  However this is wrong
 
1693
  # for two reasons:
 
1694
  #  1. if the package is installed by a user who cannot write `.'
 
1695
  #     make install will fail,
 
1696
  #  2. the above comment should most certainly read
 
1697
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1698
  #     so it does not work when $(somedir) is undefined and
 
1699
  #     $(DESTDIR) is not.
 
1700
  #  To support the latter case, we have to write
 
1701
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1702
  #  so the `.' trick is pointless.
 
1703
  mkdir_p='mkdir -p --'
 
1704
else
 
1705
  # On NextStep and OpenStep, the `mkdir' command does not
 
1706
  # recognize any option.  It will interpret all options as
 
1707
  # directories to create, and then abort because `.' already
 
1708
  # exists.
 
1709
  for d in ./-p ./--version;
 
1710
  do
 
1711
    test -d $d && rmdir $d
 
1712
  done
 
1713
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1714
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1715
    mkdir_p='$(mkinstalldirs)'
 
1716
  else
 
1717
    mkdir_p='$(install_sh) -d'
 
1718
  fi
 
1719
fi
 
1720
 
 
1721
for ac_prog in gawk mawk nawk awk
 
1722
do
 
1723
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1724
set dummy $ac_prog; ac_word=$2
 
1725
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1726
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1727
if test "${ac_cv_prog_AWK+set}" = set; then
 
1728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1729
else
 
1730
  if test -n "$AWK"; then
 
1731
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1732
else
 
1733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1734
for as_dir in $PATH
 
1735
do
 
1736
  IFS=$as_save_IFS
 
1737
  test -z "$as_dir" && as_dir=.
 
1738
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1739
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1740
    ac_cv_prog_AWK="$ac_prog"
 
1741
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1742
    break 2
 
1743
  fi
 
1744
done
 
1745
done
 
1746
 
 
1747
fi
 
1748
fi
 
1749
AWK=$ac_cv_prog_AWK
 
1750
if test -n "$AWK"; then
 
1751
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1752
echo "${ECHO_T}$AWK" >&6
 
1753
else
 
1754
  echo "$as_me:$LINENO: result: no" >&5
 
1755
echo "${ECHO_T}no" >&6
 
1756
fi
 
1757
 
 
1758
  test -n "$AWK" && break
 
1759
done
 
1760
 
 
1761
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1762
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1763
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1764
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1765
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1766
else
 
1767
  cat >conftest.make <<\_ACEOF
 
1768
all:
 
1769
        @echo 'ac_maketemp="$(MAKE)"'
 
1770
_ACEOF
 
1771
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1772
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1773
if test -n "$ac_maketemp"; then
 
1774
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1775
else
 
1776
  eval ac_cv_prog_make_${ac_make}_set=no
 
1777
fi
 
1778
rm -f conftest.make
 
1779
fi
 
1780
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1781
  echo "$as_me:$LINENO: result: yes" >&5
 
1782
echo "${ECHO_T}yes" >&6
 
1783
  SET_MAKE=
 
1784
else
 
1785
  echo "$as_me:$LINENO: result: no" >&5
 
1786
echo "${ECHO_T}no" >&6
 
1787
  SET_MAKE="MAKE=${MAKE-make}"
 
1788
fi
 
1789
 
 
1790
rm -rf .tst 2>/dev/null
 
1791
mkdir .tst 2>/dev/null
 
1792
if test -d .tst; then
 
1793
  am__leading_dot=.
 
1794
else
 
1795
  am__leading_dot=_
 
1796
fi
 
1797
rmdir .tst 2>/dev/null
 
1798
 
 
1799
# test to see if srcdir already configured
 
1800
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1801
   test -f $srcdir/config.status; then
 
1802
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1803
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1804
   { (exit 1); exit 1; }; }
 
1805
fi
 
1806
 
 
1807
# test whether we have cygpath
 
1808
if test -z "$CYGPATH_W"; then
 
1809
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1810
    CYGPATH_W='cygpath -w'
 
1811
  else
 
1812
    CYGPATH_W=echo
 
1813
  fi
 
1814
fi
 
1815
 
 
1816
 
 
1817
# Define the identity of the package.
 
1818
 PACKAGE='portaudiocpp'
 
1819
 VERSION='12'
 
1820
 
 
1821
 
 
1822
cat >>confdefs.h <<_ACEOF
 
1823
#define PACKAGE "$PACKAGE"
 
1824
_ACEOF
 
1825
 
 
1826
 
 
1827
cat >>confdefs.h <<_ACEOF
 
1828
#define VERSION "$VERSION"
 
1829
_ACEOF
 
1830
 
 
1831
# Some tools Automake needs.
 
1832
 
 
1833
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1834
 
 
1835
 
 
1836
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1837
 
 
1838
 
 
1839
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1840
 
 
1841
 
 
1842
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1843
 
 
1844
 
 
1845
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1846
 
 
1847
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1848
 
 
1849
# Installed binaries are usually stripped using `strip' when the user
 
1850
# run `make install-strip'.  However `strip' might not be the right
 
1851
# tool to use in cross-compilation environments, therefore Automake
 
1852
# will honor the `STRIP' environment variable to overrule this program.
 
1853
if test "$cross_compiling" != no; then
 
1854
  if test -n "$ac_tool_prefix"; then
 
1855
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1856
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1857
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1858
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1859
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1861
else
 
1862
  if test -n "$STRIP"; then
 
1863
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1864
else
 
1865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1866
for as_dir in $PATH
 
1867
do
 
1868
  IFS=$as_save_IFS
 
1869
  test -z "$as_dir" && as_dir=.
 
1870
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1871
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1872
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1873
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1874
    break 2
 
1875
  fi
 
1876
done
 
1877
done
 
1878
 
 
1879
fi
 
1880
fi
 
1881
STRIP=$ac_cv_prog_STRIP
 
1882
if test -n "$STRIP"; then
 
1883
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1884
echo "${ECHO_T}$STRIP" >&6
 
1885
else
 
1886
  echo "$as_me:$LINENO: result: no" >&5
 
1887
echo "${ECHO_T}no" >&6
 
1888
fi
 
1889
 
 
1890
fi
 
1891
if test -z "$ac_cv_prog_STRIP"; then
 
1892
  ac_ct_STRIP=$STRIP
 
1893
  # Extract the first word of "strip", so it can be a program name with args.
 
1894
set dummy strip; ac_word=$2
 
1895
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1896
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1897
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1899
else
 
1900
  if test -n "$ac_ct_STRIP"; then
 
1901
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1902
else
 
1903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1904
for as_dir in $PATH
 
1905
do
 
1906
  IFS=$as_save_IFS
 
1907
  test -z "$as_dir" && as_dir=.
 
1908
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1909
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1910
    ac_cv_prog_ac_ct_STRIP="strip"
 
1911
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1912
    break 2
 
1913
  fi
 
1914
done
 
1915
done
 
1916
 
 
1917
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1918
fi
 
1919
fi
 
1920
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1921
if test -n "$ac_ct_STRIP"; then
 
1922
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1923
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1924
else
 
1925
  echo "$as_me:$LINENO: result: no" >&5
 
1926
echo "${ECHO_T}no" >&6
 
1927
fi
 
1928
 
 
1929
  STRIP=$ac_ct_STRIP
 
1930
else
 
1931
  STRIP="$ac_cv_prog_STRIP"
 
1932
fi
 
1933
 
 
1934
fi
 
1935
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1936
 
 
1937
# We need awk for the "check" target.  The system "awk" is bad on
 
1938
# some platforms.
 
1939
# Always define AMTAR for backward compatibility.
 
1940
 
 
1941
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1942
 
 
1943
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1944
 
 
1945
 
 
1946
 
 
1947
 
 
1948
 
 
1949
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1950
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1951
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1952
if test "${enable_maintainer_mode+set}" = set; then
 
1953
  enableval="$enable_maintainer_mode"
 
1954
  USE_MAINTAINER_MODE=$enableval
 
1955
else
 
1956
  USE_MAINTAINER_MODE=no
 
1957
fi;
 
1958
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1959
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1960
 
 
1961
 
 
1962
if test $USE_MAINTAINER_MODE = yes; then
 
1963
  MAINTAINER_MODE_TRUE=
 
1964
  MAINTAINER_MODE_FALSE='#'
 
1965
else
 
1966
  MAINTAINER_MODE_TRUE='#'
 
1967
  MAINTAINER_MODE_FALSE=
 
1968
fi
 
1969
 
 
1970
  MAINT=$MAINTAINER_MODE_TRUE
 
1971
 
 
1972
 
 
1973
 
 
1974
###### Top-level directory of pacpp
 
1975
###### This makes it easy to shuffle the build directories
 
1976
###### Also edit AC_CONFIG_SRCDIR above (wouldn't accept this variable)!
 
1977
PACPP_ROOT="\$(top_srcdir)"
 
1978
PORTAUDIO_ROOT="../.."
 
1979
 
 
1980
# Various other variables and flags
 
1981
DEFAULT_INCLUDES="-I$PACPP_ROOT/include -I$PACPP_ROOT/$PORTAUDIO_ROOT/include"
 
1982
CFLAGS=${CFLAGS-"-g -O2 -Wall -ansi -pedantic"}
 
1983
CXXFLAGS=${CXXFLAGS-"${CFLAGS}"}
 
1984
 
 
1985
LT_VERSION_INFO="0:12:0"
 
1986
 
 
1987
# Checks for programs
 
1988
 
 
1989
ac_ext=c
 
1990
ac_cpp='$CPP $CPPFLAGS'
 
1991
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1992
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1993
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1994
if test -n "$ac_tool_prefix"; then
 
1995
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1996
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1997
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1998
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1999
if test "${ac_cv_prog_CC+set}" = set; then
 
2000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2001
else
 
2002
  if test -n "$CC"; then
 
2003
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2004
else
 
2005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2006
for as_dir in $PATH
 
2007
do
 
2008
  IFS=$as_save_IFS
 
2009
  test -z "$as_dir" && as_dir=.
 
2010
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2011
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2012
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2013
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2014
    break 2
 
2015
  fi
 
2016
done
 
2017
done
 
2018
 
 
2019
fi
 
2020
fi
 
2021
CC=$ac_cv_prog_CC
 
2022
if test -n "$CC"; then
 
2023
  echo "$as_me:$LINENO: result: $CC" >&5
 
2024
echo "${ECHO_T}$CC" >&6
 
2025
else
 
2026
  echo "$as_me:$LINENO: result: no" >&5
 
2027
echo "${ECHO_T}no" >&6
 
2028
fi
 
2029
 
 
2030
fi
 
2031
if test -z "$ac_cv_prog_CC"; then
 
2032
  ac_ct_CC=$CC
 
2033
  # Extract the first word of "gcc", so it can be a program name with args.
 
2034
set dummy gcc; ac_word=$2
 
2035
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2037
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2039
else
 
2040
  if test -n "$ac_ct_CC"; then
 
2041
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2042
else
 
2043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2044
for as_dir in $PATH
 
2045
do
 
2046
  IFS=$as_save_IFS
 
2047
  test -z "$as_dir" && as_dir=.
 
2048
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2049
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2050
    ac_cv_prog_ac_ct_CC="gcc"
 
2051
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2052
    break 2
 
2053
  fi
 
2054
done
 
2055
done
 
2056
 
 
2057
fi
 
2058
fi
 
2059
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2060
if test -n "$ac_ct_CC"; then
 
2061
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2062
echo "${ECHO_T}$ac_ct_CC" >&6
 
2063
else
 
2064
  echo "$as_me:$LINENO: result: no" >&5
 
2065
echo "${ECHO_T}no" >&6
 
2066
fi
 
2067
 
 
2068
  CC=$ac_ct_CC
 
2069
else
 
2070
  CC="$ac_cv_prog_CC"
 
2071
fi
 
2072
 
 
2073
if test -z "$CC"; then
 
2074
  if test -n "$ac_tool_prefix"; then
 
2075
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2076
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2077
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2078
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2079
if test "${ac_cv_prog_CC+set}" = set; then
 
2080
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2081
else
 
2082
  if test -n "$CC"; then
 
2083
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2084
else
 
2085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2086
for as_dir in $PATH
 
2087
do
 
2088
  IFS=$as_save_IFS
 
2089
  test -z "$as_dir" && as_dir=.
 
2090
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2091
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2092
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2093
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2094
    break 2
 
2095
  fi
 
2096
done
 
2097
done
 
2098
 
 
2099
fi
 
2100
fi
 
2101
CC=$ac_cv_prog_CC
 
2102
if test -n "$CC"; then
 
2103
  echo "$as_me:$LINENO: result: $CC" >&5
 
2104
echo "${ECHO_T}$CC" >&6
 
2105
else
 
2106
  echo "$as_me:$LINENO: result: no" >&5
 
2107
echo "${ECHO_T}no" >&6
 
2108
fi
 
2109
 
 
2110
fi
 
2111
if test -z "$ac_cv_prog_CC"; then
 
2112
  ac_ct_CC=$CC
 
2113
  # Extract the first word of "cc", so it can be a program name with args.
 
2114
set dummy cc; ac_word=$2
 
2115
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2116
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2117
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2119
else
 
2120
  if test -n "$ac_ct_CC"; then
 
2121
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2122
else
 
2123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2124
for as_dir in $PATH
 
2125
do
 
2126
  IFS=$as_save_IFS
 
2127
  test -z "$as_dir" && as_dir=.
 
2128
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2129
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2130
    ac_cv_prog_ac_ct_CC="cc"
 
2131
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2132
    break 2
 
2133
  fi
 
2134
done
 
2135
done
 
2136
 
 
2137
fi
 
2138
fi
 
2139
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2140
if test -n "$ac_ct_CC"; then
 
2141
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2142
echo "${ECHO_T}$ac_ct_CC" >&6
 
2143
else
 
2144
  echo "$as_me:$LINENO: result: no" >&5
 
2145
echo "${ECHO_T}no" >&6
 
2146
fi
 
2147
 
 
2148
  CC=$ac_ct_CC
 
2149
else
 
2150
  CC="$ac_cv_prog_CC"
 
2151
fi
 
2152
 
 
2153
fi
 
2154
if test -z "$CC"; then
 
2155
  # Extract the first word of "cc", so it can be a program name with args.
 
2156
set dummy cc; ac_word=$2
 
2157
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2158
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2159
if test "${ac_cv_prog_CC+set}" = set; then
 
2160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2161
else
 
2162
  if test -n "$CC"; then
 
2163
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2164
else
 
2165
  ac_prog_rejected=no
 
2166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2167
for as_dir in $PATH
 
2168
do
 
2169
  IFS=$as_save_IFS
 
2170
  test -z "$as_dir" && as_dir=.
 
2171
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2172
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2173
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2174
       ac_prog_rejected=yes
 
2175
       continue
 
2176
     fi
 
2177
    ac_cv_prog_CC="cc"
 
2178
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2179
    break 2
 
2180
  fi
 
2181
done
 
2182
done
 
2183
 
 
2184
if test $ac_prog_rejected = yes; then
 
2185
  # We found a bogon in the path, so make sure we never use it.
 
2186
  set dummy $ac_cv_prog_CC
 
2187
  shift
 
2188
  if test $# != 0; then
 
2189
    # We chose a different compiler from the bogus one.
 
2190
    # However, it has the same basename, so the bogon will be chosen
 
2191
    # first if we set CC to just the basename; use the full file name.
 
2192
    shift
 
2193
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2194
  fi
 
2195
fi
 
2196
fi
 
2197
fi
 
2198
CC=$ac_cv_prog_CC
 
2199
if test -n "$CC"; then
 
2200
  echo "$as_me:$LINENO: result: $CC" >&5
 
2201
echo "${ECHO_T}$CC" >&6
 
2202
else
 
2203
  echo "$as_me:$LINENO: result: no" >&5
 
2204
echo "${ECHO_T}no" >&6
 
2205
fi
 
2206
 
 
2207
fi
 
2208
if test -z "$CC"; then
 
2209
  if test -n "$ac_tool_prefix"; then
 
2210
  for ac_prog in cl
 
2211
  do
 
2212
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2213
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2214
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2216
if test "${ac_cv_prog_CC+set}" = set; then
 
2217
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2218
else
 
2219
  if test -n "$CC"; then
 
2220
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2221
else
 
2222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2223
for as_dir in $PATH
 
2224
do
 
2225
  IFS=$as_save_IFS
 
2226
  test -z "$as_dir" && as_dir=.
 
2227
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2228
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2229
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2230
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2231
    break 2
 
2232
  fi
 
2233
done
 
2234
done
 
2235
 
 
2236
fi
 
2237
fi
 
2238
CC=$ac_cv_prog_CC
 
2239
if test -n "$CC"; then
 
2240
  echo "$as_me:$LINENO: result: $CC" >&5
 
2241
echo "${ECHO_T}$CC" >&6
 
2242
else
 
2243
  echo "$as_me:$LINENO: result: no" >&5
 
2244
echo "${ECHO_T}no" >&6
 
2245
fi
 
2246
 
 
2247
    test -n "$CC" && break
 
2248
  done
 
2249
fi
 
2250
if test -z "$CC"; then
 
2251
  ac_ct_CC=$CC
 
2252
  for ac_prog in cl
 
2253
do
 
2254
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2255
set dummy $ac_prog; ac_word=$2
 
2256
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2257
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2258
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2260
else
 
2261
  if test -n "$ac_ct_CC"; then
 
2262
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2263
else
 
2264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2265
for as_dir in $PATH
 
2266
do
 
2267
  IFS=$as_save_IFS
 
2268
  test -z "$as_dir" && as_dir=.
 
2269
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2270
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2271
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2272
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2273
    break 2
 
2274
  fi
 
2275
done
 
2276
done
 
2277
 
 
2278
fi
 
2279
fi
 
2280
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2281
if test -n "$ac_ct_CC"; then
 
2282
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2283
echo "${ECHO_T}$ac_ct_CC" >&6
 
2284
else
 
2285
  echo "$as_me:$LINENO: result: no" >&5
 
2286
echo "${ECHO_T}no" >&6
 
2287
fi
 
2288
 
 
2289
  test -n "$ac_ct_CC" && break
 
2290
done
 
2291
 
 
2292
  CC=$ac_ct_CC
 
2293
fi
 
2294
 
 
2295
fi
 
2296
 
 
2297
 
 
2298
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2299
See \`config.log' for more details." >&5
 
2300
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2301
See \`config.log' for more details." >&2;}
 
2302
   { (exit 1); exit 1; }; }
 
2303
 
 
2304
# Provide some information about the compiler.
 
2305
echo "$as_me:$LINENO:" \
 
2306
     "checking for C compiler version" >&5
 
2307
ac_compiler=`set X $ac_compile; echo $2`
 
2308
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2309
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2310
  ac_status=$?
 
2311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2312
  (exit $ac_status); }
 
2313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2314
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2315
  ac_status=$?
 
2316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2317
  (exit $ac_status); }
 
2318
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2319
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2320
  ac_status=$?
 
2321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2322
  (exit $ac_status); }
 
2323
 
 
2324
cat >conftest.$ac_ext <<_ACEOF
 
2325
/* confdefs.h.  */
 
2326
_ACEOF
 
2327
cat confdefs.h >>conftest.$ac_ext
 
2328
cat >>conftest.$ac_ext <<_ACEOF
 
2329
/* end confdefs.h.  */
 
2330
 
 
2331
int
 
2332
main ()
 
2333
{
 
2334
 
 
2335
  ;
 
2336
  return 0;
 
2337
}
 
2338
_ACEOF
 
2339
ac_clean_files_save=$ac_clean_files
 
2340
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2341
# Try to create an executable without -o first, disregard a.out.
 
2342
# It will help us diagnose broken compilers, and finding out an intuition
 
2343
# of exeext.
 
2344
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2345
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2346
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2347
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2348
  (eval $ac_link_default) 2>&5
 
2349
  ac_status=$?
 
2350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2351
  (exit $ac_status); }; then
 
2352
  # Find the output, starting from the most likely.  This scheme is
 
2353
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2354
# resort.
 
2355
 
 
2356
# Be careful to initialize this variable, since it used to be cached.
 
2357
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2358
ac_cv_exeext=
 
2359
# b.out is created by i960 compilers.
 
2360
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2361
do
 
2362
  test -f "$ac_file" || continue
 
2363
  case $ac_file in
 
2364
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2365
        ;;
 
2366
    conftest.$ac_ext )
 
2367
        # This is the source file.
 
2368
        ;;
 
2369
    [ab].out )
 
2370
        # We found the default executable, but exeext='' is most
 
2371
        # certainly right.
 
2372
        break;;
 
2373
    *.* )
 
2374
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2375
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2376
        # but it would be cool to find out if it's true.  Does anybody
 
2377
        # maintain Libtool? --akim.
 
2378
        export ac_cv_exeext
 
2379
        break;;
 
2380
    * )
 
2381
        break;;
 
2382
  esac
 
2383
done
 
2384
else
 
2385
  echo "$as_me: failed program was:" >&5
 
2386
sed 's/^/| /' conftest.$ac_ext >&5
 
2387
 
 
2388
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2389
See \`config.log' for more details." >&5
 
2390
echo "$as_me: error: C compiler cannot create executables
 
2391
See \`config.log' for more details." >&2;}
 
2392
   { (exit 77); exit 77; }; }
 
2393
fi
 
2394
 
 
2395
ac_exeext=$ac_cv_exeext
 
2396
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2397
echo "${ECHO_T}$ac_file" >&6
 
2398
 
 
2399
# Check the compiler produces executables we can run.  If not, either
 
2400
# the compiler is broken, or we cross compile.
 
2401
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2402
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2403
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2404
# If not cross compiling, check that we can run a simple program.
 
2405
if test "$cross_compiling" != yes; then
 
2406
  if { ac_try='./$ac_file'
 
2407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2408
  (eval $ac_try) 2>&5
 
2409
  ac_status=$?
 
2410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2411
  (exit $ac_status); }; }; then
 
2412
    cross_compiling=no
 
2413
  else
 
2414
    if test "$cross_compiling" = maybe; then
 
2415
        cross_compiling=yes
 
2416
    else
 
2417
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2418
If you meant to cross compile, use \`--host'.
 
2419
See \`config.log' for more details." >&5
 
2420
echo "$as_me: error: cannot run C compiled programs.
 
2421
If you meant to cross compile, use \`--host'.
 
2422
See \`config.log' for more details." >&2;}
 
2423
   { (exit 1); exit 1; }; }
 
2424
    fi
 
2425
  fi
 
2426
fi
 
2427
echo "$as_me:$LINENO: result: yes" >&5
 
2428
echo "${ECHO_T}yes" >&6
 
2429
 
 
2430
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2431
ac_clean_files=$ac_clean_files_save
 
2432
# Check the compiler produces executables we can run.  If not, either
 
2433
# the compiler is broken, or we cross compile.
 
2434
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2435
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2436
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2437
echo "${ECHO_T}$cross_compiling" >&6
 
2438
 
 
2439
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2440
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2441
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2442
  (eval $ac_link) 2>&5
 
2443
  ac_status=$?
 
2444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2445
  (exit $ac_status); }; then
 
2446
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2447
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2448
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2449
# `rm'.
 
2450
for ac_file in conftest.exe conftest conftest.*; do
 
2451
  test -f "$ac_file" || continue
 
2452
  case $ac_file in
 
2453
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2454
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2455
          export ac_cv_exeext
 
2456
          break;;
 
2457
    * ) break;;
 
2458
  esac
 
2459
done
 
2460
else
 
2461
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2462
See \`config.log' for more details." >&5
 
2463
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2464
See \`config.log' for more details." >&2;}
 
2465
   { (exit 1); exit 1; }; }
 
2466
fi
 
2467
 
 
2468
rm -f conftest$ac_cv_exeext
 
2469
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2470
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2471
 
 
2472
rm -f conftest.$ac_ext
 
2473
EXEEXT=$ac_cv_exeext
 
2474
ac_exeext=$EXEEXT
 
2475
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2476
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2477
if test "${ac_cv_objext+set}" = set; then
 
2478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2479
else
 
2480
  cat >conftest.$ac_ext <<_ACEOF
 
2481
/* confdefs.h.  */
 
2482
_ACEOF
 
2483
cat confdefs.h >>conftest.$ac_ext
 
2484
cat >>conftest.$ac_ext <<_ACEOF
 
2485
/* end confdefs.h.  */
 
2486
 
 
2487
int
 
2488
main ()
 
2489
{
 
2490
 
 
2491
  ;
 
2492
  return 0;
 
2493
}
 
2494
_ACEOF
 
2495
rm -f conftest.o conftest.obj
 
2496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2497
  (eval $ac_compile) 2>&5
 
2498
  ac_status=$?
 
2499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2500
  (exit $ac_status); }; then
 
2501
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2502
  case $ac_file in
 
2503
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2504
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2505
       break;;
 
2506
  esac
 
2507
done
 
2508
else
 
2509
  echo "$as_me: failed program was:" >&5
 
2510
sed 's/^/| /' conftest.$ac_ext >&5
 
2511
 
 
2512
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2513
See \`config.log' for more details." >&5
 
2514
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2515
See \`config.log' for more details." >&2;}
 
2516
   { (exit 1); exit 1; }; }
 
2517
fi
 
2518
 
 
2519
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2520
fi
 
2521
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2522
echo "${ECHO_T}$ac_cv_objext" >&6
 
2523
OBJEXT=$ac_cv_objext
 
2524
ac_objext=$OBJEXT
 
2525
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2526
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2527
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2529
else
 
2530
  cat >conftest.$ac_ext <<_ACEOF
 
2531
/* confdefs.h.  */
 
2532
_ACEOF
 
2533
cat confdefs.h >>conftest.$ac_ext
 
2534
cat >>conftest.$ac_ext <<_ACEOF
 
2535
/* end confdefs.h.  */
 
2536
 
 
2537
int
 
2538
main ()
 
2539
{
 
2540
#ifndef __GNUC__
 
2541
       choke me
 
2542
#endif
 
2543
 
 
2544
  ;
 
2545
  return 0;
 
2546
}
 
2547
_ACEOF
 
2548
rm -f conftest.$ac_objext
 
2549
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2550
  (eval $ac_compile) 2>conftest.er1
 
2551
  ac_status=$?
 
2552
  grep -v '^ *+' conftest.er1 >conftest.err
 
2553
  rm -f conftest.er1
 
2554
  cat conftest.err >&5
 
2555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2556
  (exit $ac_status); } &&
 
2557
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2559
  (eval $ac_try) 2>&5
 
2560
  ac_status=$?
 
2561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2562
  (exit $ac_status); }; } &&
 
2563
         { ac_try='test -s conftest.$ac_objext'
 
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); }; }; then
 
2569
  ac_compiler_gnu=yes
 
2570
else
 
2571
  echo "$as_me: failed program was:" >&5
 
2572
sed 's/^/| /' conftest.$ac_ext >&5
 
2573
 
 
2574
ac_compiler_gnu=no
 
2575
fi
 
2576
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2577
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2578
 
 
2579
fi
 
2580
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2581
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2582
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2583
ac_test_CFLAGS=${CFLAGS+set}
 
2584
ac_save_CFLAGS=$CFLAGS
 
2585
CFLAGS="-g"
 
2586
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2587
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2588
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2589
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2590
else
 
2591
  cat >conftest.$ac_ext <<_ACEOF
 
2592
/* confdefs.h.  */
 
2593
_ACEOF
 
2594
cat confdefs.h >>conftest.$ac_ext
 
2595
cat >>conftest.$ac_ext <<_ACEOF
 
2596
/* end confdefs.h.  */
 
2597
 
 
2598
int
 
2599
main ()
 
2600
{
 
2601
 
 
2602
  ;
 
2603
  return 0;
 
2604
}
 
2605
_ACEOF
 
2606
rm -f conftest.$ac_objext
 
2607
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2608
  (eval $ac_compile) 2>conftest.er1
 
2609
  ac_status=$?
 
2610
  grep -v '^ *+' conftest.er1 >conftest.err
 
2611
  rm -f conftest.er1
 
2612
  cat conftest.err >&5
 
2613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2614
  (exit $ac_status); } &&
 
2615
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2617
  (eval $ac_try) 2>&5
 
2618
  ac_status=$?
 
2619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2620
  (exit $ac_status); }; } &&
 
2621
         { ac_try='test -s conftest.$ac_objext'
 
2622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2623
  (eval $ac_try) 2>&5
 
2624
  ac_status=$?
 
2625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2626
  (exit $ac_status); }; }; then
 
2627
  ac_cv_prog_cc_g=yes
 
2628
else
 
2629
  echo "$as_me: failed program was:" >&5
 
2630
sed 's/^/| /' conftest.$ac_ext >&5
 
2631
 
 
2632
ac_cv_prog_cc_g=no
 
2633
fi
 
2634
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2635
fi
 
2636
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2637
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2638
if test "$ac_test_CFLAGS" = set; then
 
2639
  CFLAGS=$ac_save_CFLAGS
 
2640
elif test $ac_cv_prog_cc_g = yes; then
 
2641
  if test "$GCC" = yes; then
 
2642
    CFLAGS="-g -O2"
 
2643
  else
 
2644
    CFLAGS="-g"
 
2645
  fi
 
2646
else
 
2647
  if test "$GCC" = yes; then
 
2648
    CFLAGS="-O2"
 
2649
  else
 
2650
    CFLAGS=
 
2651
  fi
 
2652
fi
 
2653
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2654
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2655
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2657
else
 
2658
  ac_cv_prog_cc_stdc=no
 
2659
ac_save_CC=$CC
 
2660
cat >conftest.$ac_ext <<_ACEOF
 
2661
/* confdefs.h.  */
 
2662
_ACEOF
 
2663
cat confdefs.h >>conftest.$ac_ext
 
2664
cat >>conftest.$ac_ext <<_ACEOF
 
2665
/* end confdefs.h.  */
 
2666
#include <stdarg.h>
 
2667
#include <stdio.h>
 
2668
#include <sys/types.h>
 
2669
#include <sys/stat.h>
 
2670
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2671
struct buf { int x; };
 
2672
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2673
static char *e (p, i)
 
2674
     char **p;
 
2675
     int i;
 
2676
{
 
2677
  return p[i];
 
2678
}
 
2679
static char *f (char * (*g) (char **, int), char **p, ...)
 
2680
{
 
2681
  char *s;
 
2682
  va_list v;
 
2683
  va_start (v,p);
 
2684
  s = g (p, va_arg (v,int));
 
2685
  va_end (v);
 
2686
  return s;
 
2687
}
 
2688
 
 
2689
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2690
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2691
   These don't provoke an error unfortunately, instead are silently treated
 
2692
   as 'x'.  The following induces an error, until -std1 is added to get
 
2693
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2694
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2695
   that's true only with -std1.  */
 
2696
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2697
 
 
2698
int test (int i, double x);
 
2699
struct s1 {int (*f) (int a);};
 
2700
struct s2 {int (*f) (double a);};
 
2701
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2702
int argc;
 
2703
char **argv;
 
2704
int
 
2705
main ()
 
2706
{
 
2707
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2708
  ;
 
2709
  return 0;
 
2710
}
 
2711
_ACEOF
 
2712
# Don't try gcc -ansi; that turns off useful extensions and
 
2713
# breaks some systems' header files.
 
2714
# AIX                   -qlanglvl=ansi
 
2715
# Ultrix and OSF/1      -std1
 
2716
# HP-UX 10.20 and later -Ae
 
2717
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2718
# SVR4                  -Xc -D__EXTENSIONS__
 
2719
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2720
do
 
2721
  CC="$ac_save_CC $ac_arg"
 
2722
  rm -f conftest.$ac_objext
 
2723
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2724
  (eval $ac_compile) 2>conftest.er1
 
2725
  ac_status=$?
 
2726
  grep -v '^ *+' conftest.er1 >conftest.err
 
2727
  rm -f conftest.er1
 
2728
  cat conftest.err >&5
 
2729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2730
  (exit $ac_status); } &&
 
2731
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2733
  (eval $ac_try) 2>&5
 
2734
  ac_status=$?
 
2735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2736
  (exit $ac_status); }; } &&
 
2737
         { ac_try='test -s conftest.$ac_objext'
 
2738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2739
  (eval $ac_try) 2>&5
 
2740
  ac_status=$?
 
2741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2742
  (exit $ac_status); }; }; then
 
2743
  ac_cv_prog_cc_stdc=$ac_arg
 
2744
break
 
2745
else
 
2746
  echo "$as_me: failed program was:" >&5
 
2747
sed 's/^/| /' conftest.$ac_ext >&5
 
2748
 
 
2749
fi
 
2750
rm -f conftest.err conftest.$ac_objext
 
2751
done
 
2752
rm -f conftest.$ac_ext conftest.$ac_objext
 
2753
CC=$ac_save_CC
 
2754
 
 
2755
fi
 
2756
 
 
2757
case "x$ac_cv_prog_cc_stdc" in
 
2758
  x|xno)
 
2759
    echo "$as_me:$LINENO: result: none needed" >&5
 
2760
echo "${ECHO_T}none needed" >&6 ;;
 
2761
  *)
 
2762
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2763
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2764
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2765
esac
 
2766
 
 
2767
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2768
# in C++ we need to declare it.  In case someone uses the same compiler
 
2769
# for both compiling C and C++ we need to have the C++ compiler decide
 
2770
# the declaration of exit, since it's the most demanding environment.
 
2771
cat >conftest.$ac_ext <<_ACEOF
 
2772
#ifndef __cplusplus
 
2773
  choke me
 
2774
#endif
 
2775
_ACEOF
 
2776
rm -f conftest.$ac_objext
 
2777
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2778
  (eval $ac_compile) 2>conftest.er1
 
2779
  ac_status=$?
 
2780
  grep -v '^ *+' conftest.er1 >conftest.err
 
2781
  rm -f conftest.er1
 
2782
  cat conftest.err >&5
 
2783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2784
  (exit $ac_status); } &&
 
2785
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2787
  (eval $ac_try) 2>&5
 
2788
  ac_status=$?
 
2789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2790
  (exit $ac_status); }; } &&
 
2791
         { ac_try='test -s conftest.$ac_objext'
 
2792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2793
  (eval $ac_try) 2>&5
 
2794
  ac_status=$?
 
2795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2796
  (exit $ac_status); }; }; then
 
2797
  for ac_declaration in \
 
2798
   '' \
 
2799
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2800
   'extern "C" void std::exit (int); using std::exit;' \
 
2801
   'extern "C" void exit (int) throw ();' \
 
2802
   'extern "C" void exit (int);' \
 
2803
   'void exit (int);'
 
2804
do
 
2805
  cat >conftest.$ac_ext <<_ACEOF
 
2806
/* confdefs.h.  */
 
2807
_ACEOF
 
2808
cat confdefs.h >>conftest.$ac_ext
 
2809
cat >>conftest.$ac_ext <<_ACEOF
 
2810
/* end confdefs.h.  */
 
2811
$ac_declaration
 
2812
#include <stdlib.h>
 
2813
int
 
2814
main ()
 
2815
{
 
2816
exit (42);
 
2817
  ;
 
2818
  return 0;
 
2819
}
 
2820
_ACEOF
 
2821
rm -f conftest.$ac_objext
 
2822
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2823
  (eval $ac_compile) 2>conftest.er1
 
2824
  ac_status=$?
 
2825
  grep -v '^ *+' conftest.er1 >conftest.err
 
2826
  rm -f conftest.er1
 
2827
  cat conftest.err >&5
 
2828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2829
  (exit $ac_status); } &&
 
2830
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2832
  (eval $ac_try) 2>&5
 
2833
  ac_status=$?
 
2834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2835
  (exit $ac_status); }; } &&
 
2836
         { ac_try='test -s conftest.$ac_objext'
 
2837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2838
  (eval $ac_try) 2>&5
 
2839
  ac_status=$?
 
2840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2841
  (exit $ac_status); }; }; then
 
2842
  :
 
2843
else
 
2844
  echo "$as_me: failed program was:" >&5
 
2845
sed 's/^/| /' conftest.$ac_ext >&5
 
2846
 
 
2847
continue
 
2848
fi
 
2849
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2850
  cat >conftest.$ac_ext <<_ACEOF
 
2851
/* confdefs.h.  */
 
2852
_ACEOF
 
2853
cat confdefs.h >>conftest.$ac_ext
 
2854
cat >>conftest.$ac_ext <<_ACEOF
 
2855
/* end confdefs.h.  */
 
2856
$ac_declaration
 
2857
int
 
2858
main ()
 
2859
{
 
2860
exit (42);
 
2861
  ;
 
2862
  return 0;
 
2863
}
 
2864
_ACEOF
 
2865
rm -f conftest.$ac_objext
 
2866
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2867
  (eval $ac_compile) 2>conftest.er1
 
2868
  ac_status=$?
 
2869
  grep -v '^ *+' conftest.er1 >conftest.err
 
2870
  rm -f conftest.er1
 
2871
  cat conftest.err >&5
 
2872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2873
  (exit $ac_status); } &&
 
2874
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2876
  (eval $ac_try) 2>&5
 
2877
  ac_status=$?
 
2878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2879
  (exit $ac_status); }; } &&
 
2880
         { ac_try='test -s conftest.$ac_objext'
 
2881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2882
  (eval $ac_try) 2>&5
 
2883
  ac_status=$?
 
2884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2885
  (exit $ac_status); }; }; then
 
2886
  break
 
2887
else
 
2888
  echo "$as_me: failed program was:" >&5
 
2889
sed 's/^/| /' conftest.$ac_ext >&5
 
2890
 
 
2891
fi
 
2892
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2893
done
 
2894
rm -f conftest*
 
2895
if test -n "$ac_declaration"; then
 
2896
  echo '#ifdef __cplusplus' >>confdefs.h
 
2897
  echo $ac_declaration      >>confdefs.h
 
2898
  echo '#endif'             >>confdefs.h
 
2899
fi
 
2900
 
 
2901
else
 
2902
  echo "$as_me: failed program was:" >&5
 
2903
sed 's/^/| /' conftest.$ac_ext >&5
 
2904
 
 
2905
fi
 
2906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2907
ac_ext=c
 
2908
ac_cpp='$CPP $CPPFLAGS'
 
2909
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2910
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2911
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2912
DEPDIR="${am__leading_dot}deps"
 
2913
 
 
2914
          ac_config_commands="$ac_config_commands depfiles"
 
2915
 
 
2916
 
 
2917
am_make=${MAKE-make}
 
2918
cat > confinc << 'END'
 
2919
am__doit:
 
2920
        @echo done
 
2921
.PHONY: am__doit
 
2922
END
 
2923
# If we don't find an include directive, just comment out the code.
 
2924
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2925
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2926
am__include="#"
 
2927
am__quote=
 
2928
_am_result=none
 
2929
# First try GNU make style include.
 
2930
echo "include confinc" > confmf
 
2931
# We grep out `Entering directory' and `Leaving directory'
 
2932
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2933
# In particular we don't look at `^make:' because GNU make might
 
2934
# be invoked under some other name (usually "gmake"), in which
 
2935
# case it prints its new name instead of `make'.
 
2936
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2937
   am__include=include
 
2938
   am__quote=
 
2939
   _am_result=GNU
 
2940
fi
 
2941
# Now try BSD make style include.
 
2942
if test "$am__include" = "#"; then
 
2943
   echo '.include "confinc"' > confmf
 
2944
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2945
      am__include=.include
 
2946
      am__quote="\""
 
2947
      _am_result=BSD
 
2948
   fi
 
2949
fi
 
2950
 
 
2951
 
 
2952
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2953
echo "${ECHO_T}$_am_result" >&6
 
2954
rm -f confinc confmf
 
2955
 
 
2956
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2957
if test "${enable_dependency_tracking+set}" = set; then
 
2958
  enableval="$enable_dependency_tracking"
 
2959
 
 
2960
fi;
 
2961
if test "x$enable_dependency_tracking" != xno; then
 
2962
  am_depcomp="$ac_aux_dir/depcomp"
 
2963
  AMDEPBACKSLASH='\'
 
2964
fi
 
2965
 
 
2966
 
 
2967
if test "x$enable_dependency_tracking" != xno; then
 
2968
  AMDEP_TRUE=
 
2969
  AMDEP_FALSE='#'
 
2970
else
 
2971
  AMDEP_TRUE='#'
 
2972
  AMDEP_FALSE=
 
2973
fi
 
2974
 
 
2975
 
 
2976
 
 
2977
 
 
2978
depcc="$CC"   am_compiler_list=
 
2979
 
 
2980
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2981
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2982
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2983
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2984
else
 
2985
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2986
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2987
  # making bogus files that we don't know about and never remove.  For
 
2988
  # instance it was reported that on HP-UX the gcc test will end up
 
2989
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2990
  # in D'.
 
2991
  mkdir conftest.dir
 
2992
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2993
  # using a relative directory.
 
2994
  cp "$am_depcomp" conftest.dir
 
2995
  cd conftest.dir
 
2996
  # We will build objects and dependencies in a subdirectory because
 
2997
  # it helps to detect inapplicable dependency modes.  For instance
 
2998
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2999
  # side effect of compilation, but ICC will put the dependencies in
 
3000
  # the current directory while Tru64 will put them in the object
 
3001
  # directory.
 
3002
  mkdir sub
 
3003
 
 
3004
  am_cv_CC_dependencies_compiler_type=none
 
3005
  if test "$am_compiler_list" = ""; then
 
3006
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3007
  fi
 
3008
  for depmode in $am_compiler_list; do
 
3009
    # Setup a source with many dependencies, because some compilers
 
3010
    # like to wrap large dependency lists on column 80 (with \), and
 
3011
    # we should not choose a depcomp mode which is confused by this.
 
3012
    #
 
3013
    # We need to recreate these files for each test, as the compiler may
 
3014
    # overwrite some of them when testing with obscure command lines.
 
3015
    # This happens at least with the AIX C compiler.
 
3016
    : > sub/conftest.c
 
3017
    for i in 1 2 3 4 5 6; do
 
3018
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3019
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3020
      # Solaris 8's {/usr,}/bin/sh.
 
3021
      touch sub/conftst$i.h
 
3022
    done
 
3023
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3024
 
 
3025
    case $depmode in
 
3026
    nosideeffect)
 
3027
      # after this tag, mechanisms are not by side-effect, so they'll
 
3028
      # only be used when explicitly requested
 
3029
      if test "x$enable_dependency_tracking" = xyes; then
 
3030
        continue
 
3031
      else
 
3032
        break
 
3033
      fi
 
3034
      ;;
 
3035
    none) break ;;
 
3036
    esac
 
3037
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3038
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3039
    # handle `-M -o', and we need to detect this.
 
3040
    if depmode=$depmode \
 
3041
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3042
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3043
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3044
         >/dev/null 2>conftest.err &&
 
3045
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3046
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3047
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3048
      # icc doesn't choke on unknown options, it will just issue warnings
 
3049
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3050
      # that says an option was ignored or not supported.
 
3051
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3052
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3053
      # The diagnosis changed in icc 8.0:
 
3054
      #   icc: Command line remark: option '-MP' not supported
 
3055
      if (grep 'ignoring option' conftest.err ||
 
3056
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3057
        am_cv_CC_dependencies_compiler_type=$depmode
 
3058
        break
 
3059
      fi
 
3060
    fi
 
3061
  done
 
3062
 
 
3063
  cd ..
 
3064
  rm -rf conftest.dir
 
3065
else
 
3066
  am_cv_CC_dependencies_compiler_type=none
 
3067
fi
 
3068
 
 
3069
fi
 
3070
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3071
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3072
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3073
 
 
3074
 
 
3075
 
 
3076
if
 
3077
  test "x$enable_dependency_tracking" != xno \
 
3078
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3079
  am__fastdepCC_TRUE=
 
3080
  am__fastdepCC_FALSE='#'
 
3081
else
 
3082
  am__fastdepCC_TRUE='#'
 
3083
  am__fastdepCC_FALSE=
 
3084
fi
 
3085
 
 
3086
 
 
3087
ac_ext=cc
 
3088
ac_cpp='$CXXCPP $CPPFLAGS'
 
3089
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3090
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3091
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3092
if test -n "$ac_tool_prefix"; then
 
3093
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3094
  do
 
3095
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3096
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3097
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3098
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3099
if test "${ac_cv_prog_CXX+set}" = set; then
 
3100
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3101
else
 
3102
  if test -n "$CXX"; then
 
3103
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3104
else
 
3105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3106
for as_dir in $PATH
 
3107
do
 
3108
  IFS=$as_save_IFS
 
3109
  test -z "$as_dir" && as_dir=.
 
3110
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3111
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3112
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3113
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3114
    break 2
 
3115
  fi
 
3116
done
 
3117
done
 
3118
 
 
3119
fi
 
3120
fi
 
3121
CXX=$ac_cv_prog_CXX
 
3122
if test -n "$CXX"; then
 
3123
  echo "$as_me:$LINENO: result: $CXX" >&5
 
3124
echo "${ECHO_T}$CXX" >&6
 
3125
else
 
3126
  echo "$as_me:$LINENO: result: no" >&5
 
3127
echo "${ECHO_T}no" >&6
 
3128
fi
 
3129
 
 
3130
    test -n "$CXX" && break
 
3131
  done
 
3132
fi
 
3133
if test -z "$CXX"; then
 
3134
  ac_ct_CXX=$CXX
 
3135
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3136
do
 
3137
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3138
set dummy $ac_prog; ac_word=$2
 
3139
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3140
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3141
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
3142
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3143
else
 
3144
  if test -n "$ac_ct_CXX"; then
 
3145
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3146
else
 
3147
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3148
for as_dir in $PATH
 
3149
do
 
3150
  IFS=$as_save_IFS
 
3151
  test -z "$as_dir" && as_dir=.
 
3152
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3153
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3154
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3155
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3156
    break 2
 
3157
  fi
 
3158
done
 
3159
done
 
3160
 
 
3161
fi
 
3162
fi
 
3163
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3164
if test -n "$ac_ct_CXX"; then
 
3165
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3166
echo "${ECHO_T}$ac_ct_CXX" >&6
 
3167
else
 
3168
  echo "$as_me:$LINENO: result: no" >&5
 
3169
echo "${ECHO_T}no" >&6
 
3170
fi
 
3171
 
 
3172
  test -n "$ac_ct_CXX" && break
 
3173
done
 
3174
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
3175
 
 
3176
  CXX=$ac_ct_CXX
 
3177
fi
 
3178
 
 
3179
 
 
3180
# Provide some information about the compiler.
 
3181
echo "$as_me:$LINENO:" \
 
3182
     "checking for C++ compiler version" >&5
 
3183
ac_compiler=`set X $ac_compile; echo $2`
 
3184
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3185
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3186
  ac_status=$?
 
3187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3188
  (exit $ac_status); }
 
3189
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3190
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3191
  ac_status=$?
 
3192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3193
  (exit $ac_status); }
 
3194
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3195
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3196
  ac_status=$?
 
3197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3198
  (exit $ac_status); }
 
3199
 
 
3200
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3201
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
3202
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3203
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3204
else
 
3205
  cat >conftest.$ac_ext <<_ACEOF
 
3206
/* confdefs.h.  */
 
3207
_ACEOF
 
3208
cat confdefs.h >>conftest.$ac_ext
 
3209
cat >>conftest.$ac_ext <<_ACEOF
 
3210
/* end confdefs.h.  */
 
3211
 
 
3212
int
 
3213
main ()
 
3214
{
 
3215
#ifndef __GNUC__
 
3216
       choke me
 
3217
#endif
 
3218
 
 
3219
  ;
 
3220
  return 0;
 
3221
}
 
3222
_ACEOF
 
3223
rm -f conftest.$ac_objext
 
3224
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3225
  (eval $ac_compile) 2>conftest.er1
 
3226
  ac_status=$?
 
3227
  grep -v '^ *+' conftest.er1 >conftest.err
 
3228
  rm -f conftest.er1
 
3229
  cat conftest.err >&5
 
3230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3231
  (exit $ac_status); } &&
 
3232
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3234
  (eval $ac_try) 2>&5
 
3235
  ac_status=$?
 
3236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3237
  (exit $ac_status); }; } &&
 
3238
         { ac_try='test -s conftest.$ac_objext'
 
3239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3240
  (eval $ac_try) 2>&5
 
3241
  ac_status=$?
 
3242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3243
  (exit $ac_status); }; }; then
 
3244
  ac_compiler_gnu=yes
 
3245
else
 
3246
  echo "$as_me: failed program was:" >&5
 
3247
sed 's/^/| /' conftest.$ac_ext >&5
 
3248
 
 
3249
ac_compiler_gnu=no
 
3250
fi
 
3251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3252
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3253
 
 
3254
fi
 
3255
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3256
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3257
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3258
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3259
ac_save_CXXFLAGS=$CXXFLAGS
 
3260
CXXFLAGS="-g"
 
3261
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3262
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3263
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3265
else
 
3266
  cat >conftest.$ac_ext <<_ACEOF
 
3267
/* confdefs.h.  */
 
3268
_ACEOF
 
3269
cat confdefs.h >>conftest.$ac_ext
 
3270
cat >>conftest.$ac_ext <<_ACEOF
 
3271
/* end confdefs.h.  */
 
3272
 
 
3273
int
 
3274
main ()
 
3275
{
 
3276
 
 
3277
  ;
 
3278
  return 0;
 
3279
}
 
3280
_ACEOF
 
3281
rm -f conftest.$ac_objext
 
3282
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3283
  (eval $ac_compile) 2>conftest.er1
 
3284
  ac_status=$?
 
3285
  grep -v '^ *+' conftest.er1 >conftest.err
 
3286
  rm -f conftest.er1
 
3287
  cat conftest.err >&5
 
3288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3289
  (exit $ac_status); } &&
 
3290
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3292
  (eval $ac_try) 2>&5
 
3293
  ac_status=$?
 
3294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3295
  (exit $ac_status); }; } &&
 
3296
         { ac_try='test -s conftest.$ac_objext'
 
3297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3298
  (eval $ac_try) 2>&5
 
3299
  ac_status=$?
 
3300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3301
  (exit $ac_status); }; }; then
 
3302
  ac_cv_prog_cxx_g=yes
 
3303
else
 
3304
  echo "$as_me: failed program was:" >&5
 
3305
sed 's/^/| /' conftest.$ac_ext >&5
 
3306
 
 
3307
ac_cv_prog_cxx_g=no
 
3308
fi
 
3309
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3310
fi
 
3311
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3312
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3313
if test "$ac_test_CXXFLAGS" = set; then
 
3314
  CXXFLAGS=$ac_save_CXXFLAGS
 
3315
elif test $ac_cv_prog_cxx_g = yes; then
 
3316
  if test "$GXX" = yes; then
 
3317
    CXXFLAGS="-g -O2"
 
3318
  else
 
3319
    CXXFLAGS="-g"
 
3320
  fi
 
3321
else
 
3322
  if test "$GXX" = yes; then
 
3323
    CXXFLAGS="-O2"
 
3324
  else
 
3325
    CXXFLAGS=
 
3326
  fi
 
3327
fi
 
3328
for ac_declaration in \
 
3329
   '' \
 
3330
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3331
   'extern "C" void std::exit (int); using std::exit;' \
 
3332
   'extern "C" void exit (int) throw ();' \
 
3333
   'extern "C" void exit (int);' \
 
3334
   'void exit (int);'
 
3335
do
 
3336
  cat >conftest.$ac_ext <<_ACEOF
 
3337
/* confdefs.h.  */
 
3338
_ACEOF
 
3339
cat confdefs.h >>conftest.$ac_ext
 
3340
cat >>conftest.$ac_ext <<_ACEOF
 
3341
/* end confdefs.h.  */
 
3342
$ac_declaration
 
3343
#include <stdlib.h>
 
3344
int
 
3345
main ()
 
3346
{
 
3347
exit (42);
 
3348
  ;
 
3349
  return 0;
 
3350
}
 
3351
_ACEOF
 
3352
rm -f conftest.$ac_objext
 
3353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3354
  (eval $ac_compile) 2>conftest.er1
 
3355
  ac_status=$?
 
3356
  grep -v '^ *+' conftest.er1 >conftest.err
 
3357
  rm -f conftest.er1
 
3358
  cat conftest.err >&5
 
3359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3360
  (exit $ac_status); } &&
 
3361
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3363
  (eval $ac_try) 2>&5
 
3364
  ac_status=$?
 
3365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3366
  (exit $ac_status); }; } &&
 
3367
         { ac_try='test -s conftest.$ac_objext'
 
3368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3369
  (eval $ac_try) 2>&5
 
3370
  ac_status=$?
 
3371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3372
  (exit $ac_status); }; }; then
 
3373
  :
 
3374
else
 
3375
  echo "$as_me: failed program was:" >&5
 
3376
sed 's/^/| /' conftest.$ac_ext >&5
 
3377
 
 
3378
continue
 
3379
fi
 
3380
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3381
  cat >conftest.$ac_ext <<_ACEOF
 
3382
/* confdefs.h.  */
 
3383
_ACEOF
 
3384
cat confdefs.h >>conftest.$ac_ext
 
3385
cat >>conftest.$ac_ext <<_ACEOF
 
3386
/* end confdefs.h.  */
 
3387
$ac_declaration
 
3388
int
 
3389
main ()
 
3390
{
 
3391
exit (42);
 
3392
  ;
 
3393
  return 0;
 
3394
}
 
3395
_ACEOF
 
3396
rm -f conftest.$ac_objext
 
3397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3398
  (eval $ac_compile) 2>conftest.er1
 
3399
  ac_status=$?
 
3400
  grep -v '^ *+' conftest.er1 >conftest.err
 
3401
  rm -f conftest.er1
 
3402
  cat conftest.err >&5
 
3403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3404
  (exit $ac_status); } &&
 
3405
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3407
  (eval $ac_try) 2>&5
 
3408
  ac_status=$?
 
3409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3410
  (exit $ac_status); }; } &&
 
3411
         { ac_try='test -s conftest.$ac_objext'
 
3412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3413
  (eval $ac_try) 2>&5
 
3414
  ac_status=$?
 
3415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3416
  (exit $ac_status); }; }; then
 
3417
  break
 
3418
else
 
3419
  echo "$as_me: failed program was:" >&5
 
3420
sed 's/^/| /' conftest.$ac_ext >&5
 
3421
 
 
3422
fi
 
3423
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3424
done
 
3425
rm -f conftest*
 
3426
if test -n "$ac_declaration"; then
 
3427
  echo '#ifdef __cplusplus' >>confdefs.h
 
3428
  echo $ac_declaration      >>confdefs.h
 
3429
  echo '#endif'             >>confdefs.h
 
3430
fi
 
3431
 
 
3432
ac_ext=c
 
3433
ac_cpp='$CPP $CPPFLAGS'
 
3434
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3435
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3436
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3437
 
 
3438
depcc="$CXX"  am_compiler_list=
 
3439
 
 
3440
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3441
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3442
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3444
else
 
3445
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3446
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3447
  # making bogus files that we don't know about and never remove.  For
 
3448
  # instance it was reported that on HP-UX the gcc test will end up
 
3449
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3450
  # in D'.
 
3451
  mkdir conftest.dir
 
3452
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3453
  # using a relative directory.
 
3454
  cp "$am_depcomp" conftest.dir
 
3455
  cd conftest.dir
 
3456
  # We will build objects and dependencies in a subdirectory because
 
3457
  # it helps to detect inapplicable dependency modes.  For instance
 
3458
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3459
  # side effect of compilation, but ICC will put the dependencies in
 
3460
  # the current directory while Tru64 will put them in the object
 
3461
  # directory.
 
3462
  mkdir sub
 
3463
 
 
3464
  am_cv_CXX_dependencies_compiler_type=none
 
3465
  if test "$am_compiler_list" = ""; then
 
3466
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3467
  fi
 
3468
  for depmode in $am_compiler_list; do
 
3469
    # Setup a source with many dependencies, because some compilers
 
3470
    # like to wrap large dependency lists on column 80 (with \), and
 
3471
    # we should not choose a depcomp mode which is confused by this.
 
3472
    #
 
3473
    # We need to recreate these files for each test, as the compiler may
 
3474
    # overwrite some of them when testing with obscure command lines.
 
3475
    # This happens at least with the AIX C compiler.
 
3476
    : > sub/conftest.c
 
3477
    for i in 1 2 3 4 5 6; do
 
3478
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3479
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3480
      # Solaris 8's {/usr,}/bin/sh.
 
3481
      touch sub/conftst$i.h
 
3482
    done
 
3483
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3484
 
 
3485
    case $depmode in
 
3486
    nosideeffect)
 
3487
      # after this tag, mechanisms are not by side-effect, so they'll
 
3488
      # only be used when explicitly requested
 
3489
      if test "x$enable_dependency_tracking" = xyes; then
 
3490
        continue
 
3491
      else
 
3492
        break
 
3493
      fi
 
3494
      ;;
 
3495
    none) break ;;
 
3496
    esac
 
3497
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3498
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3499
    # handle `-M -o', and we need to detect this.
 
3500
    if depmode=$depmode \
 
3501
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3502
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3503
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3504
         >/dev/null 2>conftest.err &&
 
3505
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3506
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3507
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3508
      # icc doesn't choke on unknown options, it will just issue warnings
 
3509
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3510
      # that says an option was ignored or not supported.
 
3511
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3512
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3513
      # The diagnosis changed in icc 8.0:
 
3514
      #   icc: Command line remark: option '-MP' not supported
 
3515
      if (grep 'ignoring option' conftest.err ||
 
3516
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3517
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3518
        break
 
3519
      fi
 
3520
    fi
 
3521
  done
 
3522
 
 
3523
  cd ..
 
3524
  rm -rf conftest.dir
 
3525
else
 
3526
  am_cv_CXX_dependencies_compiler_type=none
 
3527
fi
 
3528
 
 
3529
fi
 
3530
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3531
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
3532
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3533
 
 
3534
 
 
3535
 
 
3536
if
 
3537
  test "x$enable_dependency_tracking" != xno \
 
3538
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3539
  am__fastdepCXX_TRUE=
 
3540
  am__fastdepCXX_FALSE='#'
 
3541
else
 
3542
  am__fastdepCXX_TRUE='#'
 
3543
  am__fastdepCXX_FALSE=
 
3544
fi
 
3545
 
 
3546
 
 
3547
 
 
3548
 
 
3549
# Check whether --enable-shared or --disable-shared was given.
 
3550
if test "${enable_shared+set}" = set; then
 
3551
  enableval="$enable_shared"
 
3552
  p=${PACKAGE-default}
 
3553
    case $enableval in
 
3554
    yes) enable_shared=yes ;;
 
3555
    no) enable_shared=no ;;
 
3556
    *)
 
3557
      enable_shared=no
 
3558
      # Look at the argument we got.  We use all the common list separators.
 
3559
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3560
      for pkg in $enableval; do
 
3561
        IFS="$lt_save_ifs"
 
3562
        if test "X$pkg" = "X$p"; then
 
3563
          enable_shared=yes
 
3564
        fi
 
3565
      done
 
3566
      IFS="$lt_save_ifs"
 
3567
      ;;
 
3568
    esac
 
3569
else
 
3570
  enable_shared=yes
 
3571
fi;
 
3572
 
 
3573
# Check whether --enable-static or --disable-static was given.
 
3574
if test "${enable_static+set}" = set; then
 
3575
  enableval="$enable_static"
 
3576
  p=${PACKAGE-default}
 
3577
    case $enableval in
 
3578
    yes) enable_static=yes ;;
 
3579
    no) enable_static=no ;;
 
3580
    *)
 
3581
     enable_static=no
 
3582
      # Look at the argument we got.  We use all the common list separators.
 
3583
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3584
      for pkg in $enableval; do
 
3585
        IFS="$lt_save_ifs"
 
3586
        if test "X$pkg" = "X$p"; then
 
3587
          enable_static=yes
 
3588
        fi
 
3589
      done
 
3590
      IFS="$lt_save_ifs"
 
3591
      ;;
 
3592
    esac
 
3593
else
 
3594
  enable_static=yes
 
3595
fi;
 
3596
 
 
3597
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3598
if test "${enable_fast_install+set}" = set; then
 
3599
  enableval="$enable_fast_install"
 
3600
  p=${PACKAGE-default}
 
3601
    case $enableval in
 
3602
    yes) enable_fast_install=yes ;;
 
3603
    no) enable_fast_install=no ;;
 
3604
    *)
 
3605
      enable_fast_install=no
 
3606
      # Look at the argument we got.  We use all the common list separators.
 
3607
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3608
      for pkg in $enableval; do
 
3609
        IFS="$lt_save_ifs"
 
3610
        if test "X$pkg" = "X$p"; then
 
3611
          enable_fast_install=yes
 
3612
        fi
 
3613
      done
 
3614
      IFS="$lt_save_ifs"
 
3615
      ;;
 
3616
    esac
 
3617
else
 
3618
  enable_fast_install=yes
 
3619
fi;
 
3620
 
 
3621
# Make sure we can run config.sub.
 
3622
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
3623
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
3624
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
3625
   { (exit 1); exit 1; }; }
 
3626
 
 
3627
echo "$as_me:$LINENO: checking build system type" >&5
 
3628
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
3629
if test "${ac_cv_build+set}" = set; then
 
3630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3631
else
 
3632
  ac_cv_build_alias=$build_alias
 
3633
test -z "$ac_cv_build_alias" &&
 
3634
  ac_cv_build_alias=`$ac_config_guess`
 
3635
test -z "$ac_cv_build_alias" &&
 
3636
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3637
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3638
   { (exit 1); exit 1; }; }
 
3639
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
3640
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
3641
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
3642
   { (exit 1); exit 1; }; }
 
3643
 
 
3644
fi
 
3645
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3646
echo "${ECHO_T}$ac_cv_build" >&6
 
3647
build=$ac_cv_build
 
3648
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3649
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3650
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3651
 
 
3652
 
 
3653
echo "$as_me:$LINENO: checking host system type" >&5
 
3654
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
3655
if test "${ac_cv_host+set}" = set; then
 
3656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3657
else
 
3658
  ac_cv_host_alias=$host_alias
 
3659
test -z "$ac_cv_host_alias" &&
 
3660
  ac_cv_host_alias=$ac_cv_build_alias
 
3661
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
3662
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
3663
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
3664
   { (exit 1); exit 1; }; }
 
3665
 
 
3666
fi
 
3667
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3668
echo "${ECHO_T}$ac_cv_host" >&6
 
3669
host=$ac_cv_host
 
3670
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3671
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3672
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3673
 
 
3674
 
 
3675
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3676
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3677
if test "${lt_cv_path_SED+set}" = set; then
 
3678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3679
else
 
3680
  # Loop through the user's path and test for sed and gsed.
 
3681
# Then use that list of sed's as ones to test for truncation.
 
3682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3683
for as_dir in $PATH
 
3684
do
 
3685
  IFS=$as_save_IFS
 
3686
  test -z "$as_dir" && as_dir=.
 
3687
  for lt_ac_prog in sed gsed; do
 
3688
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3689
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3690
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3691
      fi
 
3692
    done
 
3693
  done
 
3694
done
 
3695
lt_ac_max=0
 
3696
lt_ac_count=0
 
3697
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3698
# along with /bin/sed that truncates output.
 
3699
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3700
  test ! -f $lt_ac_sed && continue
 
3701
  cat /dev/null > conftest.in
 
3702
  lt_ac_count=0
 
3703
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3704
  # Check for GNU sed and select it if it is found.
 
3705
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3706
    lt_cv_path_SED=$lt_ac_sed
 
3707
    break
 
3708
  fi
 
3709
  while true; do
 
3710
    cat conftest.in conftest.in >conftest.tmp
 
3711
    mv conftest.tmp conftest.in
 
3712
    cp conftest.in conftest.nl
 
3713
    echo >>conftest.nl
 
3714
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3715
    cmp -s conftest.out conftest.nl || break
 
3716
    # 10000 chars as input seems more than enough
 
3717
    test $lt_ac_count -gt 10 && break
 
3718
    lt_ac_count=`expr $lt_ac_count + 1`
 
3719
    if test $lt_ac_count -gt $lt_ac_max; then
 
3720
      lt_ac_max=$lt_ac_count
 
3721
      lt_cv_path_SED=$lt_ac_sed
 
3722
    fi
 
3723
  done
 
3724
done
 
3725
 
 
3726
fi
 
3727
 
 
3728
SED=$lt_cv_path_SED
 
3729
echo "$as_me:$LINENO: result: $SED" >&5
 
3730
echo "${ECHO_T}$SED" >&6
 
3731
 
 
3732
echo "$as_me:$LINENO: checking for egrep" >&5
 
3733
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3734
if test "${ac_cv_prog_egrep+set}" = set; then
 
3735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3736
else
 
3737
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3738
    then ac_cv_prog_egrep='grep -E'
 
3739
    else ac_cv_prog_egrep='egrep'
 
3740
    fi
 
3741
fi
 
3742
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3743
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3744
 EGREP=$ac_cv_prog_egrep
 
3745
 
 
3746
 
 
3747
 
 
3748
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3749
if test "${with_gnu_ld+set}" = set; then
 
3750
  withval="$with_gnu_ld"
 
3751
  test "$withval" = no || with_gnu_ld=yes
 
3752
else
 
3753
  with_gnu_ld=no
 
3754
fi;
 
3755
ac_prog=ld
 
3756
if test "$GCC" = yes; then
 
3757
  # Check if gcc -print-prog-name=ld gives a path.
 
3758
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3759
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3760
  case $host in
 
3761
  *-*-mingw*)
 
3762
    # gcc leaves a trailing carriage return which upsets mingw
 
3763
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3764
  *)
 
3765
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3766
  esac
 
3767
  case $ac_prog in
 
3768
    # Accept absolute paths.
 
3769
    [\\/]* | ?:[\\/]*)
 
3770
      re_direlt='/[^/][^/]*/\.\./'
 
3771
      # Canonicalize the pathname of ld
 
3772
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3773
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3774
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3775
      done
 
3776
      test -z "$LD" && LD="$ac_prog"
 
3777
      ;;
 
3778
  "")
 
3779
    # If it fails, then pretend we aren't using GCC.
 
3780
    ac_prog=ld
 
3781
    ;;
 
3782
  *)
 
3783
    # If it is relative, then search for the first ld in PATH.
 
3784
    with_gnu_ld=unknown
 
3785
    ;;
 
3786
  esac
 
3787
elif test "$with_gnu_ld" = yes; then
 
3788
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3789
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3790
else
 
3791
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3792
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3793
fi
 
3794
if test "${lt_cv_path_LD+set}" = set; then
 
3795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3796
else
 
3797
  if test -z "$LD"; then
 
3798
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3799
  for ac_dir in $PATH; do
 
3800
    IFS="$lt_save_ifs"
 
3801
    test -z "$ac_dir" && ac_dir=.
 
3802
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3803
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3804
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3805
      # but apparently some variants of GNU ld only accept -v.
 
3806
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3807
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3808
      *GNU* | *'with BFD'*)
 
3809
        test "$with_gnu_ld" != no && break
 
3810
        ;;
 
3811
      *)
 
3812
        test "$with_gnu_ld" != yes && break
 
3813
        ;;
 
3814
      esac
 
3815
    fi
 
3816
  done
 
3817
  IFS="$lt_save_ifs"
 
3818
else
 
3819
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3820
fi
 
3821
fi
 
3822
 
 
3823
LD="$lt_cv_path_LD"
 
3824
if test -n "$LD"; then
 
3825
  echo "$as_me:$LINENO: result: $LD" >&5
 
3826
echo "${ECHO_T}$LD" >&6
 
3827
else
 
3828
  echo "$as_me:$LINENO: result: no" >&5
 
3829
echo "${ECHO_T}no" >&6
 
3830
fi
 
3831
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3832
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3833
   { (exit 1); exit 1; }; }
 
3834
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3835
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3836
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3838
else
 
3839
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3840
case `$LD -v 2>&1 </dev/null` in
 
3841
*GNU* | *'with BFD'*)
 
3842
  lt_cv_prog_gnu_ld=yes
 
3843
  ;;
 
3844
*)
 
3845
  lt_cv_prog_gnu_ld=no
 
3846
  ;;
 
3847
esac
 
3848
fi
 
3849
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3850
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3851
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3852
 
 
3853
 
 
3854
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3855
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3856
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3858
else
 
3859
  lt_cv_ld_reload_flag='-r'
 
3860
fi
 
3861
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3862
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3863
reload_flag=$lt_cv_ld_reload_flag
 
3864
case $reload_flag in
 
3865
"" | " "*) ;;
 
3866
*) reload_flag=" $reload_flag" ;;
 
3867
esac
 
3868
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3869
case $host_os in
 
3870
  darwin*)
 
3871
    if test "$GCC" = yes; then
 
3872
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3873
    else
 
3874
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3875
    fi
 
3876
    ;;
 
3877
esac
 
3878
 
 
3879
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3880
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3881
if test "${lt_cv_path_NM+set}" = set; then
 
3882
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3883
else
 
3884
  if test -n "$NM"; then
 
3885
  # Let the user override the test.
 
3886
  lt_cv_path_NM="$NM"
 
3887
else
 
3888
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3889
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3890
    lt_nm_to_check="$lt_nm_to_check nm"
 
3891
  fi
 
3892
  for lt_tmp_nm in $lt_nm_to_check; do
 
3893
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3894
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3895
      IFS="$lt_save_ifs"
 
3896
      test -z "$ac_dir" && ac_dir=.
 
3897
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3898
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3899
        # Check to see if the nm accepts a BSD-compat flag.
 
3900
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3901
        #   nm: unknown option "B" ignored
 
3902
        # Tru64's nm complains that /dev/null is an invalid object file
 
3903
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3904
        */dev/null* | *'Invalid file or object type'*)
 
3905
          lt_cv_path_NM="$tmp_nm -B"
 
3906
          break
 
3907
          ;;
 
3908
        *)
 
3909
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3910
          */dev/null*)
 
3911
            lt_cv_path_NM="$tmp_nm -p"
 
3912
            break
 
3913
            ;;
 
3914
          *)
 
3915
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3916
            continue # so that we can try to find one that supports BSD flags
 
3917
            ;;
 
3918
          esac
 
3919
          ;;
 
3920
        esac
 
3921
      fi
 
3922
    done
 
3923
    IFS="$lt_save_ifs"
 
3924
  done
 
3925
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3926
fi
 
3927
fi
 
3928
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3929
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3930
NM="$lt_cv_path_NM"
 
3931
 
 
3932
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3933
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3934
LN_S=$as_ln_s
 
3935
if test "$LN_S" = "ln -s"; then
 
3936
  echo "$as_me:$LINENO: result: yes" >&5
 
3937
echo "${ECHO_T}yes" >&6
 
3938
else
 
3939
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3940
echo "${ECHO_T}no, using $LN_S" >&6
 
3941
fi
 
3942
 
 
3943
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3944
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3945
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3946
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3947
else
 
3948
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3949
lt_cv_file_magic_test_file=
 
3950
lt_cv_deplibs_check_method='unknown'
 
3951
# Need to set the preceding variable on all platforms that support
 
3952
# interlibrary dependencies.
 
3953
# 'none' -- dependencies not supported.
 
3954
# `unknown' -- same as none, but documents that we really don't know.
 
3955
# 'pass_all' -- all dependencies passed with no checks.
 
3956
# 'test_compile' -- check by making test program.
 
3957
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3958
# which responds to the $file_magic_cmd with a given extended regex.
 
3959
# If you have `file' or equivalent on your system and you're not sure
 
3960
# whether `pass_all' will *always* work, you probably want this one.
 
3961
 
 
3962
case $host_os in
 
3963
aix4* | aix5*)
 
3964
  lt_cv_deplibs_check_method=pass_all
 
3965
  ;;
 
3966
 
 
3967
beos*)
 
3968
  lt_cv_deplibs_check_method=pass_all
 
3969
  ;;
 
3970
 
 
3971
bsdi[45]*)
 
3972
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3973
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3974
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3975
  ;;
 
3976
 
 
3977
cygwin*)
 
3978
  # func_win32_libid is a shell function defined in ltmain.sh
 
3979
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3980
  lt_cv_file_magic_cmd='func_win32_libid'
 
3981
  ;;
 
3982
 
 
3983
mingw* | pw32*)
 
3984
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3985
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3986
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3987
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3988
  ;;
 
3989
 
 
3990
darwin* | rhapsody*)
 
3991
  lt_cv_deplibs_check_method=pass_all
 
3992
  ;;
 
3993
 
 
3994
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3995
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3996
    case $host_cpu in
 
3997
    i*86 )
 
3998
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3999
      # Let's accept both of them until this is cleared up.
 
4000
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4001
      lt_cv_file_magic_cmd=/usr/bin/file
 
4002
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4003
      ;;
 
4004
    esac
 
4005
  else
 
4006
    lt_cv_deplibs_check_method=pass_all
 
4007
  fi
 
4008
  ;;
 
4009
 
 
4010
gnu*)
 
4011
  lt_cv_deplibs_check_method=pass_all
 
4012
  ;;
 
4013
 
 
4014
hpux10.20* | hpux11*)
 
4015
  lt_cv_file_magic_cmd=/usr/bin/file
 
4016
  case $host_cpu in
 
4017
  ia64*)
 
4018
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4019
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4020
    ;;
 
4021
  hppa*64*)
 
4022
    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]'
 
4023
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4024
    ;;
 
4025
  *)
 
4026
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4027
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4028
    ;;
 
4029
  esac
 
4030
  ;;
 
4031
 
 
4032
interix3*)
 
4033
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4034
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4035
  ;;
 
4036
 
 
4037
irix5* | irix6* | nonstopux*)
 
4038
  case $LD in
 
4039
  *-32|*"-32 ") libmagic=32-bit;;
 
4040
  *-n32|*"-n32 ") libmagic=N32;;
 
4041
  *-64|*"-64 ") libmagic=64-bit;;
 
4042
  *) libmagic=never-match;;
 
4043
  esac
 
4044
  lt_cv_deplibs_check_method=pass_all
 
4045
  ;;
 
4046
 
 
4047
# This must be Linux ELF.
 
4048
linux*)
 
4049
  lt_cv_deplibs_check_method=pass_all
 
4050
  ;;
 
4051
 
 
4052
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
4053
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4054
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4055
  else
 
4056
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4057
  fi
 
4058
  ;;
 
4059
 
 
4060
newos6*)
 
4061
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4062
  lt_cv_file_magic_cmd=/usr/bin/file
 
4063
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4064
  ;;
 
4065
 
 
4066
nto-qnx*)
 
4067
  lt_cv_deplibs_check_method=unknown
 
4068
  ;;
 
4069
 
 
4070
openbsd*)
 
4071
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4072
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4073
  else
 
4074
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4075
  fi
 
4076
  ;;
 
4077
 
 
4078
osf3* | osf4* | osf5*)
 
4079
  lt_cv_deplibs_check_method=pass_all
 
4080
  ;;
 
4081
 
 
4082
solaris*)
 
4083
  lt_cv_deplibs_check_method=pass_all
 
4084
  ;;
 
4085
 
 
4086
sysv4 | sysv4.3*)
 
4087
  case $host_vendor in
 
4088
  motorola)
 
4089
    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]'
 
4090
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4091
    ;;
 
4092
  ncr)
 
4093
    lt_cv_deplibs_check_method=pass_all
 
4094
    ;;
 
4095
  sequent)
 
4096
    lt_cv_file_magic_cmd='/bin/file'
 
4097
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4098
    ;;
 
4099
  sni)
 
4100
    lt_cv_file_magic_cmd='/bin/file'
 
4101
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4102
    lt_cv_file_magic_test_file=/lib/libc.so
 
4103
    ;;
 
4104
  siemens)
 
4105
    lt_cv_deplibs_check_method=pass_all
 
4106
    ;;
 
4107
  pc)
 
4108
    lt_cv_deplibs_check_method=pass_all
 
4109
    ;;
 
4110
  esac
 
4111
  ;;
 
4112
 
 
4113
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4114
  lt_cv_deplibs_check_method=pass_all
 
4115
  ;;
 
4116
esac
 
4117
 
 
4118
fi
 
4119
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4120
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4121
file_magic_cmd=$lt_cv_file_magic_cmd
 
4122
deplibs_check_method=$lt_cv_deplibs_check_method
 
4123
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4124
 
 
4125
 
 
4126
 
 
4127
 
 
4128
# If no C compiler was specified, use CC.
 
4129
LTCC=${LTCC-"$CC"}
 
4130
 
 
4131
# If no C compiler flags were specified, use CFLAGS.
 
4132
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4133
 
 
4134
# Allow CC to be a program name with arguments.
 
4135
compiler=$CC
 
4136
 
 
4137
 
 
4138
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4139
if test "${enable_libtool_lock+set}" = set; then
 
4140
  enableval="$enable_libtool_lock"
 
4141
 
 
4142
fi;
 
4143
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4144
 
 
4145
# Some flags need to be propagated to the compiler or linker for good
 
4146
# libtool support.
 
4147
case $host in
 
4148
ia64-*-hpux*)
 
4149
  # Find out which ABI we are using.
 
4150
  echo 'int i;' > conftest.$ac_ext
 
4151
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4152
  (eval $ac_compile) 2>&5
 
4153
  ac_status=$?
 
4154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4155
  (exit $ac_status); }; then
 
4156
    case `/usr/bin/file conftest.$ac_objext` in
 
4157
    *ELF-32*)
 
4158
      HPUX_IA64_MODE="32"
 
4159
      ;;
 
4160
    *ELF-64*)
 
4161
      HPUX_IA64_MODE="64"
 
4162
      ;;
 
4163
    esac
 
4164
  fi
 
4165
  rm -rf conftest*
 
4166
  ;;
 
4167
*-*-irix6*)
 
4168
  # Find out which ABI we are using.
 
4169
  echo '#line 4169 "configure"' > conftest.$ac_ext
 
4170
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4171
  (eval $ac_compile) 2>&5
 
4172
  ac_status=$?
 
4173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4174
  (exit $ac_status); }; then
 
4175
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4176
    case `/usr/bin/file conftest.$ac_objext` in
 
4177
    *32-bit*)
 
4178
      LD="${LD-ld} -melf32bsmip"
 
4179
      ;;
 
4180
    *N32*)
 
4181
      LD="${LD-ld} -melf32bmipn32"
 
4182
      ;;
 
4183
    *64-bit*)
 
4184
      LD="${LD-ld} -melf64bmip"
 
4185
      ;;
 
4186
    esac
 
4187
   else
 
4188
    case `/usr/bin/file conftest.$ac_objext` in
 
4189
    *32-bit*)
 
4190
      LD="${LD-ld} -32"
 
4191
      ;;
 
4192
    *N32*)
 
4193
      LD="${LD-ld} -n32"
 
4194
      ;;
 
4195
    *64-bit*)
 
4196
      LD="${LD-ld} -64"
 
4197
      ;;
 
4198
    esac
 
4199
   fi
 
4200
  fi
 
4201
  rm -rf conftest*
 
4202
  ;;
 
4203
 
 
4204
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4205
  # Find out which ABI we are using.
 
4206
  echo 'int i;' > conftest.$ac_ext
 
4207
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4208
  (eval $ac_compile) 2>&5
 
4209
  ac_status=$?
 
4210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4211
  (exit $ac_status); }; then
 
4212
    case `/usr/bin/file conftest.o` in
 
4213
    *32-bit*)
 
4214
      case $host in
 
4215
        x86_64-*linux*)
 
4216
          LD="${LD-ld} -m elf_i386"
 
4217
          ;;
 
4218
        ppc64-*linux*|powerpc64-*linux*)
 
4219
          LD="${LD-ld} -m elf32ppclinux"
 
4220
          ;;
 
4221
        s390x-*linux*)
 
4222
          LD="${LD-ld} -m elf_s390"
 
4223
          ;;
 
4224
        sparc64-*linux*)
 
4225
          LD="${LD-ld} -m elf32_sparc"
 
4226
          ;;
 
4227
      esac
 
4228
      ;;
 
4229
    *64-bit*)
 
4230
      case $host in
 
4231
        x86_64-*linux*)
 
4232
          LD="${LD-ld} -m elf_x86_64"
 
4233
          ;;
 
4234
        ppc*-*linux*|powerpc*-*linux*)
 
4235
          LD="${LD-ld} -m elf64ppc"
 
4236
          ;;
 
4237
        s390*-*linux*)
 
4238
          LD="${LD-ld} -m elf64_s390"
 
4239
          ;;
 
4240
        sparc*-*linux*)
 
4241
          LD="${LD-ld} -m elf64_sparc"
 
4242
          ;;
 
4243
      esac
 
4244
      ;;
 
4245
    esac
 
4246
  fi
 
4247
  rm -rf conftest*
 
4248
  ;;
 
4249
 
 
4250
*-*-sco3.2v5*)
 
4251
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4252
  SAVE_CFLAGS="$CFLAGS"
 
4253
  CFLAGS="$CFLAGS -belf"
 
4254
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4255
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4256
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4258
else
 
4259
  ac_ext=c
 
4260
ac_cpp='$CPP $CPPFLAGS'
 
4261
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4262
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4263
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4264
 
 
4265
     cat >conftest.$ac_ext <<_ACEOF
 
4266
/* confdefs.h.  */
 
4267
_ACEOF
 
4268
cat confdefs.h >>conftest.$ac_ext
 
4269
cat >>conftest.$ac_ext <<_ACEOF
 
4270
/* end confdefs.h.  */
 
4271
 
 
4272
int
 
4273
main ()
 
4274
{
 
4275
 
 
4276
  ;
 
4277
  return 0;
 
4278
}
 
4279
_ACEOF
 
4280
rm -f conftest.$ac_objext conftest$ac_exeext
 
4281
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4282
  (eval $ac_link) 2>conftest.er1
 
4283
  ac_status=$?
 
4284
  grep -v '^ *+' conftest.er1 >conftest.err
 
4285
  rm -f conftest.er1
 
4286
  cat conftest.err >&5
 
4287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4288
  (exit $ac_status); } &&
 
4289
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4291
  (eval $ac_try) 2>&5
 
4292
  ac_status=$?
 
4293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4294
  (exit $ac_status); }; } &&
 
4295
         { ac_try='test -s conftest$ac_exeext'
 
4296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4297
  (eval $ac_try) 2>&5
 
4298
  ac_status=$?
 
4299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4300
  (exit $ac_status); }; }; then
 
4301
  lt_cv_cc_needs_belf=yes
 
4302
else
 
4303
  echo "$as_me: failed program was:" >&5
 
4304
sed 's/^/| /' conftest.$ac_ext >&5
 
4305
 
 
4306
lt_cv_cc_needs_belf=no
 
4307
fi
 
4308
rm -f conftest.err conftest.$ac_objext \
 
4309
      conftest$ac_exeext conftest.$ac_ext
 
4310
     ac_ext=c
 
4311
ac_cpp='$CPP $CPPFLAGS'
 
4312
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4313
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4314
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4315
 
 
4316
fi
 
4317
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4318
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
4319
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4320
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4321
    CFLAGS="$SAVE_CFLAGS"
 
4322
  fi
 
4323
  ;;
 
4324
sparc*-*solaris*)
 
4325
  # Find out which ABI we are using.
 
4326
  echo 'int i;' > conftest.$ac_ext
 
4327
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4328
  (eval $ac_compile) 2>&5
 
4329
  ac_status=$?
 
4330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4331
  (exit $ac_status); }; then
 
4332
    case `/usr/bin/file conftest.o` in
 
4333
    *64-bit*)
 
4334
      case $lt_cv_prog_gnu_ld in
 
4335
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4336
      *)    LD="${LD-ld} -64" ;;
 
4337
      esac
 
4338
      ;;
 
4339
    esac
 
4340
  fi
 
4341
  rm -rf conftest*
 
4342
  ;;
 
4343
 
 
4344
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
4345
  if test -n "$ac_tool_prefix"; then
 
4346
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
4347
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
4348
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4349
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4350
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
4351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4352
else
 
4353
  if test -n "$DLLTOOL"; then
 
4354
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
4355
else
 
4356
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4357
for as_dir in $PATH
 
4358
do
 
4359
  IFS=$as_save_IFS
 
4360
  test -z "$as_dir" && as_dir=.
 
4361
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4362
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4363
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
4364
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4365
    break 2
 
4366
  fi
 
4367
done
 
4368
done
 
4369
 
 
4370
fi
 
4371
fi
 
4372
DLLTOOL=$ac_cv_prog_DLLTOOL
 
4373
if test -n "$DLLTOOL"; then
 
4374
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
4375
echo "${ECHO_T}$DLLTOOL" >&6
 
4376
else
 
4377
  echo "$as_me:$LINENO: result: no" >&5
 
4378
echo "${ECHO_T}no" >&6
 
4379
fi
 
4380
 
 
4381
fi
 
4382
if test -z "$ac_cv_prog_DLLTOOL"; then
 
4383
  ac_ct_DLLTOOL=$DLLTOOL
 
4384
  # Extract the first word of "dlltool", so it can be a program name with args.
 
4385
set dummy dlltool; ac_word=$2
 
4386
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4387
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4388
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
4389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4390
else
 
4391
  if test -n "$ac_ct_DLLTOOL"; then
 
4392
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
4393
else
 
4394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4395
for as_dir in $PATH
 
4396
do
 
4397
  IFS=$as_save_IFS
 
4398
  test -z "$as_dir" && as_dir=.
 
4399
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4400
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4401
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4402
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4403
    break 2
 
4404
  fi
 
4405
done
 
4406
done
 
4407
 
 
4408
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
 
4409
fi
 
4410
fi
 
4411
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
4412
if test -n "$ac_ct_DLLTOOL"; then
 
4413
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
4414
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
4415
else
 
4416
  echo "$as_me:$LINENO: result: no" >&5
 
4417
echo "${ECHO_T}no" >&6
 
4418
fi
 
4419
 
 
4420
  DLLTOOL=$ac_ct_DLLTOOL
 
4421
else
 
4422
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
4423
fi
 
4424
 
 
4425
  if test -n "$ac_tool_prefix"; then
 
4426
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
4427
set dummy ${ac_tool_prefix}as; ac_word=$2
 
4428
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4429
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4430
if test "${ac_cv_prog_AS+set}" = set; then
 
4431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4432
else
 
4433
  if test -n "$AS"; then
 
4434
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
4435
else
 
4436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4437
for as_dir in $PATH
 
4438
do
 
4439
  IFS=$as_save_IFS
 
4440
  test -z "$as_dir" && as_dir=.
 
4441
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4442
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4443
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
4444
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4445
    break 2
 
4446
  fi
 
4447
done
 
4448
done
 
4449
 
 
4450
fi
 
4451
fi
 
4452
AS=$ac_cv_prog_AS
 
4453
if test -n "$AS"; then
 
4454
  echo "$as_me:$LINENO: result: $AS" >&5
 
4455
echo "${ECHO_T}$AS" >&6
 
4456
else
 
4457
  echo "$as_me:$LINENO: result: no" >&5
 
4458
echo "${ECHO_T}no" >&6
 
4459
fi
 
4460
 
 
4461
fi
 
4462
if test -z "$ac_cv_prog_AS"; then
 
4463
  ac_ct_AS=$AS
 
4464
  # Extract the first word of "as", so it can be a program name with args.
 
4465
set dummy as; ac_word=$2
 
4466
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4467
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4468
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
4469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4470
else
 
4471
  if test -n "$ac_ct_AS"; then
 
4472
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
4473
else
 
4474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4475
for as_dir in $PATH
 
4476
do
 
4477
  IFS=$as_save_IFS
 
4478
  test -z "$as_dir" && as_dir=.
 
4479
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4480
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4481
    ac_cv_prog_ac_ct_AS="as"
 
4482
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4483
    break 2
 
4484
  fi
 
4485
done
 
4486
done
 
4487
 
 
4488
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
 
4489
fi
 
4490
fi
 
4491
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
4492
if test -n "$ac_ct_AS"; then
 
4493
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
4494
echo "${ECHO_T}$ac_ct_AS" >&6
 
4495
else
 
4496
  echo "$as_me:$LINENO: result: no" >&5
 
4497
echo "${ECHO_T}no" >&6
 
4498
fi
 
4499
 
 
4500
  AS=$ac_ct_AS
 
4501
else
 
4502
  AS="$ac_cv_prog_AS"
 
4503
fi
 
4504
 
 
4505
  if test -n "$ac_tool_prefix"; then
 
4506
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4507
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4508
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4509
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4510
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4512
else
 
4513
  if test -n "$OBJDUMP"; then
 
4514
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4515
else
 
4516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4517
for as_dir in $PATH
 
4518
do
 
4519
  IFS=$as_save_IFS
 
4520
  test -z "$as_dir" && as_dir=.
 
4521
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4522
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4523
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4524
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4525
    break 2
 
4526
  fi
 
4527
done
 
4528
done
 
4529
 
 
4530
fi
 
4531
fi
 
4532
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4533
if test -n "$OBJDUMP"; then
 
4534
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4535
echo "${ECHO_T}$OBJDUMP" >&6
 
4536
else
 
4537
  echo "$as_me:$LINENO: result: no" >&5
 
4538
echo "${ECHO_T}no" >&6
 
4539
fi
 
4540
 
 
4541
fi
 
4542
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4543
  ac_ct_OBJDUMP=$OBJDUMP
 
4544
  # Extract the first word of "objdump", so it can be a program name with args.
 
4545
set dummy objdump; ac_word=$2
 
4546
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4547
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4548
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4550
else
 
4551
  if test -n "$ac_ct_OBJDUMP"; then
 
4552
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4553
else
 
4554
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4555
for as_dir in $PATH
 
4556
do
 
4557
  IFS=$as_save_IFS
 
4558
  test -z "$as_dir" && as_dir=.
 
4559
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4560
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4561
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4562
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4563
    break 2
 
4564
  fi
 
4565
done
 
4566
done
 
4567
 
 
4568
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
 
4569
fi
 
4570
fi
 
4571
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4572
if test -n "$ac_ct_OBJDUMP"; then
 
4573
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4574
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
 
4575
else
 
4576
  echo "$as_me:$LINENO: result: no" >&5
 
4577
echo "${ECHO_T}no" >&6
 
4578
fi
 
4579
 
 
4580
  OBJDUMP=$ac_ct_OBJDUMP
 
4581
else
 
4582
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4583
fi
 
4584
 
 
4585
  ;;
 
4586
 
 
4587
esac
 
4588
 
 
4589
need_locks="$enable_libtool_lock"
 
4590
 
 
4591
 
 
4592
ac_ext=c
 
4593
ac_cpp='$CPP $CPPFLAGS'
 
4594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4597
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4598
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4599
# On Suns, sometimes $CPP names a directory.
 
4600
if test -n "$CPP" && test -d "$CPP"; then
 
4601
  CPP=
 
4602
fi
 
4603
if test -z "$CPP"; then
 
4604
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4606
else
 
4607
      # Double quotes because CPP needs to be expanded
 
4608
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4609
    do
 
4610
      ac_preproc_ok=false
 
4611
for ac_c_preproc_warn_flag in '' yes
 
4612
do
 
4613
  # Use a header file that comes with gcc, so configuring glibc
 
4614
  # with a fresh cross-compiler works.
 
4615
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4616
  # <limits.h> exists even on freestanding compilers.
 
4617
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4618
  # not just through cpp. "Syntax error" is here to catch this case.
 
4619
  cat >conftest.$ac_ext <<_ACEOF
 
4620
/* confdefs.h.  */
 
4621
_ACEOF
 
4622
cat confdefs.h >>conftest.$ac_ext
 
4623
cat >>conftest.$ac_ext <<_ACEOF
 
4624
/* end confdefs.h.  */
 
4625
#ifdef __STDC__
 
4626
# include <limits.h>
 
4627
#else
 
4628
# include <assert.h>
 
4629
#endif
 
4630
                     Syntax error
 
4631
_ACEOF
 
4632
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4633
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4634
  ac_status=$?
 
4635
  grep -v '^ *+' conftest.er1 >conftest.err
 
4636
  rm -f conftest.er1
 
4637
  cat conftest.err >&5
 
4638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4639
  (exit $ac_status); } >/dev/null; then
 
4640
  if test -s conftest.err; then
 
4641
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4642
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4643
  else
 
4644
    ac_cpp_err=
 
4645
  fi
 
4646
else
 
4647
  ac_cpp_err=yes
 
4648
fi
 
4649
if test -z "$ac_cpp_err"; then
 
4650
  :
 
4651
else
 
4652
  echo "$as_me: failed program was:" >&5
 
4653
sed 's/^/| /' conftest.$ac_ext >&5
 
4654
 
 
4655
  # Broken: fails on valid input.
 
4656
continue
 
4657
fi
 
4658
rm -f conftest.err conftest.$ac_ext
 
4659
 
 
4660
  # OK, works on sane cases.  Now check whether non-existent headers
 
4661
  # can be detected and how.
 
4662
  cat >conftest.$ac_ext <<_ACEOF
 
4663
/* confdefs.h.  */
 
4664
_ACEOF
 
4665
cat confdefs.h >>conftest.$ac_ext
 
4666
cat >>conftest.$ac_ext <<_ACEOF
 
4667
/* end confdefs.h.  */
 
4668
#include <ac_nonexistent.h>
 
4669
_ACEOF
 
4670
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4671
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4672
  ac_status=$?
 
4673
  grep -v '^ *+' conftest.er1 >conftest.err
 
4674
  rm -f conftest.er1
 
4675
  cat conftest.err >&5
 
4676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4677
  (exit $ac_status); } >/dev/null; then
 
4678
  if test -s conftest.err; then
 
4679
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4680
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4681
  else
 
4682
    ac_cpp_err=
 
4683
  fi
 
4684
else
 
4685
  ac_cpp_err=yes
 
4686
fi
 
4687
if test -z "$ac_cpp_err"; then
 
4688
  # Broken: success on invalid input.
 
4689
continue
 
4690
else
 
4691
  echo "$as_me: failed program was:" >&5
 
4692
sed 's/^/| /' conftest.$ac_ext >&5
 
4693
 
 
4694
  # Passes both tests.
 
4695
ac_preproc_ok=:
 
4696
break
 
4697
fi
 
4698
rm -f conftest.err conftest.$ac_ext
 
4699
 
 
4700
done
 
4701
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4702
rm -f conftest.err conftest.$ac_ext
 
4703
if $ac_preproc_ok; then
 
4704
  break
 
4705
fi
 
4706
 
 
4707
    done
 
4708
    ac_cv_prog_CPP=$CPP
 
4709
 
 
4710
fi
 
4711
  CPP=$ac_cv_prog_CPP
 
4712
else
 
4713
  ac_cv_prog_CPP=$CPP
 
4714
fi
 
4715
echo "$as_me:$LINENO: result: $CPP" >&5
 
4716
echo "${ECHO_T}$CPP" >&6
 
4717
ac_preproc_ok=false
 
4718
for ac_c_preproc_warn_flag in '' yes
 
4719
do
 
4720
  # Use a header file that comes with gcc, so configuring glibc
 
4721
  # with a fresh cross-compiler works.
 
4722
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4723
  # <limits.h> exists even on freestanding compilers.
 
4724
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4725
  # not just through cpp. "Syntax error" is here to catch this case.
 
4726
  cat >conftest.$ac_ext <<_ACEOF
 
4727
/* confdefs.h.  */
 
4728
_ACEOF
 
4729
cat confdefs.h >>conftest.$ac_ext
 
4730
cat >>conftest.$ac_ext <<_ACEOF
 
4731
/* end confdefs.h.  */
 
4732
#ifdef __STDC__
 
4733
# include <limits.h>
 
4734
#else
 
4735
# include <assert.h>
 
4736
#endif
 
4737
                     Syntax error
 
4738
_ACEOF
 
4739
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4740
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4741
  ac_status=$?
 
4742
  grep -v '^ *+' conftest.er1 >conftest.err
 
4743
  rm -f conftest.er1
 
4744
  cat conftest.err >&5
 
4745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4746
  (exit $ac_status); } >/dev/null; then
 
4747
  if test -s conftest.err; then
 
4748
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4749
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4750
  else
 
4751
    ac_cpp_err=
 
4752
  fi
 
4753
else
 
4754
  ac_cpp_err=yes
 
4755
fi
 
4756
if test -z "$ac_cpp_err"; then
 
4757
  :
 
4758
else
 
4759
  echo "$as_me: failed program was:" >&5
 
4760
sed 's/^/| /' conftest.$ac_ext >&5
 
4761
 
 
4762
  # Broken: fails on valid input.
 
4763
continue
 
4764
fi
 
4765
rm -f conftest.err conftest.$ac_ext
 
4766
 
 
4767
  # OK, works on sane cases.  Now check whether non-existent headers
 
4768
  # can be detected and how.
 
4769
  cat >conftest.$ac_ext <<_ACEOF
 
4770
/* confdefs.h.  */
 
4771
_ACEOF
 
4772
cat confdefs.h >>conftest.$ac_ext
 
4773
cat >>conftest.$ac_ext <<_ACEOF
 
4774
/* end confdefs.h.  */
 
4775
#include <ac_nonexistent.h>
 
4776
_ACEOF
 
4777
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4778
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4779
  ac_status=$?
 
4780
  grep -v '^ *+' conftest.er1 >conftest.err
 
4781
  rm -f conftest.er1
 
4782
  cat conftest.err >&5
 
4783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4784
  (exit $ac_status); } >/dev/null; then
 
4785
  if test -s conftest.err; then
 
4786
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4787
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4788
  else
 
4789
    ac_cpp_err=
 
4790
  fi
 
4791
else
 
4792
  ac_cpp_err=yes
 
4793
fi
 
4794
if test -z "$ac_cpp_err"; then
 
4795
  # Broken: success on invalid input.
 
4796
continue
 
4797
else
 
4798
  echo "$as_me: failed program was:" >&5
 
4799
sed 's/^/| /' conftest.$ac_ext >&5
 
4800
 
 
4801
  # Passes both tests.
 
4802
ac_preproc_ok=:
 
4803
break
 
4804
fi
 
4805
rm -f conftest.err conftest.$ac_ext
 
4806
 
 
4807
done
 
4808
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4809
rm -f conftest.err conftest.$ac_ext
 
4810
if $ac_preproc_ok; then
 
4811
  :
 
4812
else
 
4813
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4814
See \`config.log' for more details." >&5
 
4815
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4816
See \`config.log' for more details." >&2;}
 
4817
   { (exit 1); exit 1; }; }
 
4818
fi
 
4819
 
 
4820
ac_ext=c
 
4821
ac_cpp='$CPP $CPPFLAGS'
 
4822
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4823
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4824
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4825
 
 
4826
 
 
4827
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4828
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4829
if test "${ac_cv_header_stdc+set}" = set; then
 
4830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4831
else
 
4832
  cat >conftest.$ac_ext <<_ACEOF
 
4833
/* confdefs.h.  */
 
4834
_ACEOF
 
4835
cat confdefs.h >>conftest.$ac_ext
 
4836
cat >>conftest.$ac_ext <<_ACEOF
 
4837
/* end confdefs.h.  */
 
4838
#include <stdlib.h>
 
4839
#include <stdarg.h>
 
4840
#include <string.h>
 
4841
#include <float.h>
 
4842
 
 
4843
int
 
4844
main ()
 
4845
{
 
4846
 
 
4847
  ;
 
4848
  return 0;
 
4849
}
 
4850
_ACEOF
 
4851
rm -f conftest.$ac_objext
 
4852
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4853
  (eval $ac_compile) 2>conftest.er1
 
4854
  ac_status=$?
 
4855
  grep -v '^ *+' conftest.er1 >conftest.err
 
4856
  rm -f conftest.er1
 
4857
  cat conftest.err >&5
 
4858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4859
  (exit $ac_status); } &&
 
4860
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4862
  (eval $ac_try) 2>&5
 
4863
  ac_status=$?
 
4864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4865
  (exit $ac_status); }; } &&
 
4866
         { ac_try='test -s conftest.$ac_objext'
 
4867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4868
  (eval $ac_try) 2>&5
 
4869
  ac_status=$?
 
4870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4871
  (exit $ac_status); }; }; then
 
4872
  ac_cv_header_stdc=yes
 
4873
else
 
4874
  echo "$as_me: failed program was:" >&5
 
4875
sed 's/^/| /' conftest.$ac_ext >&5
 
4876
 
 
4877
ac_cv_header_stdc=no
 
4878
fi
 
4879
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4880
 
 
4881
if test $ac_cv_header_stdc = yes; then
 
4882
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4883
  cat >conftest.$ac_ext <<_ACEOF
 
4884
/* confdefs.h.  */
 
4885
_ACEOF
 
4886
cat confdefs.h >>conftest.$ac_ext
 
4887
cat >>conftest.$ac_ext <<_ACEOF
 
4888
/* end confdefs.h.  */
 
4889
#include <string.h>
 
4890
 
 
4891
_ACEOF
 
4892
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4893
  $EGREP "memchr" >/dev/null 2>&1; then
 
4894
  :
 
4895
else
 
4896
  ac_cv_header_stdc=no
 
4897
fi
 
4898
rm -f conftest*
 
4899
 
 
4900
fi
 
4901
 
 
4902
if test $ac_cv_header_stdc = yes; then
 
4903
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4904
  cat >conftest.$ac_ext <<_ACEOF
 
4905
/* confdefs.h.  */
 
4906
_ACEOF
 
4907
cat confdefs.h >>conftest.$ac_ext
 
4908
cat >>conftest.$ac_ext <<_ACEOF
 
4909
/* end confdefs.h.  */
 
4910
#include <stdlib.h>
 
4911
 
 
4912
_ACEOF
 
4913
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4914
  $EGREP "free" >/dev/null 2>&1; then
 
4915
  :
 
4916
else
 
4917
  ac_cv_header_stdc=no
 
4918
fi
 
4919
rm -f conftest*
 
4920
 
 
4921
fi
 
4922
 
 
4923
if test $ac_cv_header_stdc = yes; then
 
4924
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4925
  if test "$cross_compiling" = yes; then
 
4926
  :
 
4927
else
 
4928
  cat >conftest.$ac_ext <<_ACEOF
 
4929
/* confdefs.h.  */
 
4930
_ACEOF
 
4931
cat confdefs.h >>conftest.$ac_ext
 
4932
cat >>conftest.$ac_ext <<_ACEOF
 
4933
/* end confdefs.h.  */
 
4934
#include <ctype.h>
 
4935
#if ((' ' & 0x0FF) == 0x020)
 
4936
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4937
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4938
#else
 
4939
# define ISLOWER(c) \
 
4940
                   (('a' <= (c) && (c) <= 'i') \
 
4941
                     || ('j' <= (c) && (c) <= 'r') \
 
4942
                     || ('s' <= (c) && (c) <= 'z'))
 
4943
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4944
#endif
 
4945
 
 
4946
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4947
int
 
4948
main ()
 
4949
{
 
4950
  int i;
 
4951
  for (i = 0; i < 256; i++)
 
4952
    if (XOR (islower (i), ISLOWER (i))
 
4953
        || toupper (i) != TOUPPER (i))
 
4954
      exit(2);
 
4955
  exit (0);
 
4956
}
 
4957
_ACEOF
 
4958
rm -f conftest$ac_exeext
 
4959
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4960
  (eval $ac_link) 2>&5
 
4961
  ac_status=$?
 
4962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4963
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4965
  (eval $ac_try) 2>&5
 
4966
  ac_status=$?
 
4967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4968
  (exit $ac_status); }; }; then
 
4969
  :
 
4970
else
 
4971
  echo "$as_me: program exited with status $ac_status" >&5
 
4972
echo "$as_me: failed program was:" >&5
 
4973
sed 's/^/| /' conftest.$ac_ext >&5
 
4974
 
 
4975
( exit $ac_status )
 
4976
ac_cv_header_stdc=no
 
4977
fi
 
4978
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4979
fi
 
4980
fi
 
4981
fi
 
4982
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4983
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4984
if test $ac_cv_header_stdc = yes; then
 
4985
 
 
4986
cat >>confdefs.h <<\_ACEOF
 
4987
#define STDC_HEADERS 1
 
4988
_ACEOF
 
4989
 
 
4990
fi
 
4991
 
 
4992
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4993
 
 
4994
 
 
4995
 
 
4996
 
 
4997
 
 
4998
 
 
4999
 
 
5000
 
 
5001
 
 
5002
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5003
                  inttypes.h stdint.h unistd.h
 
5004
do
 
5005
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5006
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5007
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5008
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5010
else
 
5011
  cat >conftest.$ac_ext <<_ACEOF
 
5012
/* confdefs.h.  */
 
5013
_ACEOF
 
5014
cat confdefs.h >>conftest.$ac_ext
 
5015
cat >>conftest.$ac_ext <<_ACEOF
 
5016
/* end confdefs.h.  */
 
5017
$ac_includes_default
 
5018
 
 
5019
#include <$ac_header>
 
5020
_ACEOF
 
5021
rm -f conftest.$ac_objext
 
5022
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5023
  (eval $ac_compile) 2>conftest.er1
 
5024
  ac_status=$?
 
5025
  grep -v '^ *+' conftest.er1 >conftest.err
 
5026
  rm -f conftest.er1
 
5027
  cat conftest.err >&5
 
5028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5029
  (exit $ac_status); } &&
 
5030
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5032
  (eval $ac_try) 2>&5
 
5033
  ac_status=$?
 
5034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5035
  (exit $ac_status); }; } &&
 
5036
         { ac_try='test -s conftest.$ac_objext'
 
5037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5038
  (eval $ac_try) 2>&5
 
5039
  ac_status=$?
 
5040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5041
  (exit $ac_status); }; }; then
 
5042
  eval "$as_ac_Header=yes"
 
5043
else
 
5044
  echo "$as_me: failed program was:" >&5
 
5045
sed 's/^/| /' conftest.$ac_ext >&5
 
5046
 
 
5047
eval "$as_ac_Header=no"
 
5048
fi
 
5049
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5050
fi
 
5051
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5052
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5053
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5054
  cat >>confdefs.h <<_ACEOF
 
5055
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5056
_ACEOF
 
5057
 
 
5058
fi
 
5059
 
 
5060
done
 
5061
 
 
5062
 
 
5063
 
 
5064
for ac_header in dlfcn.h
 
5065
do
 
5066
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5067
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5068
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5069
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5070
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5072
fi
 
5073
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5074
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5075
else
 
5076
  # Is the header compilable?
 
5077
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5078
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5079
cat >conftest.$ac_ext <<_ACEOF
 
5080
/* confdefs.h.  */
 
5081
_ACEOF
 
5082
cat confdefs.h >>conftest.$ac_ext
 
5083
cat >>conftest.$ac_ext <<_ACEOF
 
5084
/* end confdefs.h.  */
 
5085
$ac_includes_default
 
5086
#include <$ac_header>
 
5087
_ACEOF
 
5088
rm -f conftest.$ac_objext
 
5089
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5090
  (eval $ac_compile) 2>conftest.er1
 
5091
  ac_status=$?
 
5092
  grep -v '^ *+' conftest.er1 >conftest.err
 
5093
  rm -f conftest.er1
 
5094
  cat conftest.err >&5
 
5095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5096
  (exit $ac_status); } &&
 
5097
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5099
  (eval $ac_try) 2>&5
 
5100
  ac_status=$?
 
5101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5102
  (exit $ac_status); }; } &&
 
5103
         { ac_try='test -s conftest.$ac_objext'
 
5104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5105
  (eval $ac_try) 2>&5
 
5106
  ac_status=$?
 
5107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5108
  (exit $ac_status); }; }; then
 
5109
  ac_header_compiler=yes
 
5110
else
 
5111
  echo "$as_me: failed program was:" >&5
 
5112
sed 's/^/| /' conftest.$ac_ext >&5
 
5113
 
 
5114
ac_header_compiler=no
 
5115
fi
 
5116
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5117
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5118
echo "${ECHO_T}$ac_header_compiler" >&6
 
5119
 
 
5120
# Is the header present?
 
5121
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5122
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5123
cat >conftest.$ac_ext <<_ACEOF
 
5124
/* confdefs.h.  */
 
5125
_ACEOF
 
5126
cat confdefs.h >>conftest.$ac_ext
 
5127
cat >>conftest.$ac_ext <<_ACEOF
 
5128
/* end confdefs.h.  */
 
5129
#include <$ac_header>
 
5130
_ACEOF
 
5131
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5132
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5133
  ac_status=$?
 
5134
  grep -v '^ *+' conftest.er1 >conftest.err
 
5135
  rm -f conftest.er1
 
5136
  cat conftest.err >&5
 
5137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5138
  (exit $ac_status); } >/dev/null; then
 
5139
  if test -s conftest.err; then
 
5140
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5141
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5142
  else
 
5143
    ac_cpp_err=
 
5144
  fi
 
5145
else
 
5146
  ac_cpp_err=yes
 
5147
fi
 
5148
if test -z "$ac_cpp_err"; then
 
5149
  ac_header_preproc=yes
 
5150
else
 
5151
  echo "$as_me: failed program was:" >&5
 
5152
sed 's/^/| /' conftest.$ac_ext >&5
 
5153
 
 
5154
  ac_header_preproc=no
 
5155
fi
 
5156
rm -f conftest.err conftest.$ac_ext
 
5157
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5158
echo "${ECHO_T}$ac_header_preproc" >&6
 
5159
 
 
5160
# So?  What about this header?
 
5161
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5162
  yes:no: )
 
5163
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5164
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5165
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5166
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5167
    ac_header_preproc=yes
 
5168
    ;;
 
5169
  no:yes:* )
 
5170
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5171
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5172
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5173
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5174
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5175
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5176
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5177
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5178
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5179
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5180
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5181
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5182
    (
 
5183
      cat <<\_ASBOX
 
5184
## --------------------------------------- ##
 
5185
## Report this to the PortAudioCpp lists.  ##
 
5186
## --------------------------------------- ##
 
5187
_ASBOX
 
5188
    ) |
 
5189
      sed "s/^/$as_me: WARNING:     /" >&2
 
5190
    ;;
 
5191
esac
 
5192
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5193
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5194
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5196
else
 
5197
  eval "$as_ac_Header=\$ac_header_preproc"
 
5198
fi
 
5199
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5200
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5201
 
 
5202
fi
 
5203
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5204
  cat >>confdefs.h <<_ACEOF
 
5205
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5206
_ACEOF
 
5207
 
 
5208
fi
 
5209
 
 
5210
done
 
5211
 
 
5212
 
 
5213
 
 
5214
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5215
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5216
    (test "X$CXX" != "Xg++"))) ; then
 
5217
  ac_ext=cc
 
5218
ac_cpp='$CXXCPP $CPPFLAGS'
 
5219
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5220
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5221
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5222
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5223
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5224
if test -z "$CXXCPP"; then
 
5225
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5227
else
 
5228
      # Double quotes because CXXCPP needs to be expanded
 
5229
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5230
    do
 
5231
      ac_preproc_ok=false
 
5232
for ac_cxx_preproc_warn_flag in '' yes
 
5233
do
 
5234
  # Use a header file that comes with gcc, so configuring glibc
 
5235
  # with a fresh cross-compiler works.
 
5236
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5237
  # <limits.h> exists even on freestanding compilers.
 
5238
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5239
  # not just through cpp. "Syntax error" is here to catch this case.
 
5240
  cat >conftest.$ac_ext <<_ACEOF
 
5241
/* confdefs.h.  */
 
5242
_ACEOF
 
5243
cat confdefs.h >>conftest.$ac_ext
 
5244
cat >>conftest.$ac_ext <<_ACEOF
 
5245
/* end confdefs.h.  */
 
5246
#ifdef __STDC__
 
5247
# include <limits.h>
 
5248
#else
 
5249
# include <assert.h>
 
5250
#endif
 
5251
                     Syntax error
 
5252
_ACEOF
 
5253
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5254
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5255
  ac_status=$?
 
5256
  grep -v '^ *+' conftest.er1 >conftest.err
 
5257
  rm -f conftest.er1
 
5258
  cat conftest.err >&5
 
5259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5260
  (exit $ac_status); } >/dev/null; then
 
5261
  if test -s conftest.err; then
 
5262
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5263
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5264
  else
 
5265
    ac_cpp_err=
 
5266
  fi
 
5267
else
 
5268
  ac_cpp_err=yes
 
5269
fi
 
5270
if test -z "$ac_cpp_err"; then
 
5271
  :
 
5272
else
 
5273
  echo "$as_me: failed program was:" >&5
 
5274
sed 's/^/| /' conftest.$ac_ext >&5
 
5275
 
 
5276
  # Broken: fails on valid input.
 
5277
continue
 
5278
fi
 
5279
rm -f conftest.err conftest.$ac_ext
 
5280
 
 
5281
  # OK, works on sane cases.  Now check whether non-existent headers
 
5282
  # can be detected and how.
 
5283
  cat >conftest.$ac_ext <<_ACEOF
 
5284
/* confdefs.h.  */
 
5285
_ACEOF
 
5286
cat confdefs.h >>conftest.$ac_ext
 
5287
cat >>conftest.$ac_ext <<_ACEOF
 
5288
/* end confdefs.h.  */
 
5289
#include <ac_nonexistent.h>
 
5290
_ACEOF
 
5291
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5292
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5293
  ac_status=$?
 
5294
  grep -v '^ *+' conftest.er1 >conftest.err
 
5295
  rm -f conftest.er1
 
5296
  cat conftest.err >&5
 
5297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5298
  (exit $ac_status); } >/dev/null; then
 
5299
  if test -s conftest.err; then
 
5300
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5301
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5302
  else
 
5303
    ac_cpp_err=
 
5304
  fi
 
5305
else
 
5306
  ac_cpp_err=yes
 
5307
fi
 
5308
if test -z "$ac_cpp_err"; then
 
5309
  # Broken: success on invalid input.
 
5310
continue
 
5311
else
 
5312
  echo "$as_me: failed program was:" >&5
 
5313
sed 's/^/| /' conftest.$ac_ext >&5
 
5314
 
 
5315
  # Passes both tests.
 
5316
ac_preproc_ok=:
 
5317
break
 
5318
fi
 
5319
rm -f conftest.err conftest.$ac_ext
 
5320
 
 
5321
done
 
5322
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5323
rm -f conftest.err conftest.$ac_ext
 
5324
if $ac_preproc_ok; then
 
5325
  break
 
5326
fi
 
5327
 
 
5328
    done
 
5329
    ac_cv_prog_CXXCPP=$CXXCPP
 
5330
 
 
5331
fi
 
5332
  CXXCPP=$ac_cv_prog_CXXCPP
 
5333
else
 
5334
  ac_cv_prog_CXXCPP=$CXXCPP
 
5335
fi
 
5336
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5337
echo "${ECHO_T}$CXXCPP" >&6
 
5338
ac_preproc_ok=false
 
5339
for ac_cxx_preproc_warn_flag in '' yes
 
5340
do
 
5341
  # Use a header file that comes with gcc, so configuring glibc
 
5342
  # with a fresh cross-compiler works.
 
5343
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5344
  # <limits.h> exists even on freestanding compilers.
 
5345
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5346
  # not just through cpp. "Syntax error" is here to catch this case.
 
5347
  cat >conftest.$ac_ext <<_ACEOF
 
5348
/* confdefs.h.  */
 
5349
_ACEOF
 
5350
cat confdefs.h >>conftest.$ac_ext
 
5351
cat >>conftest.$ac_ext <<_ACEOF
 
5352
/* end confdefs.h.  */
 
5353
#ifdef __STDC__
 
5354
# include <limits.h>
 
5355
#else
 
5356
# include <assert.h>
 
5357
#endif
 
5358
                     Syntax error
 
5359
_ACEOF
 
5360
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5361
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5362
  ac_status=$?
 
5363
  grep -v '^ *+' conftest.er1 >conftest.err
 
5364
  rm -f conftest.er1
 
5365
  cat conftest.err >&5
 
5366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5367
  (exit $ac_status); } >/dev/null; then
 
5368
  if test -s conftest.err; then
 
5369
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5370
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5371
  else
 
5372
    ac_cpp_err=
 
5373
  fi
 
5374
else
 
5375
  ac_cpp_err=yes
 
5376
fi
 
5377
if test -z "$ac_cpp_err"; then
 
5378
  :
 
5379
else
 
5380
  echo "$as_me: failed program was:" >&5
 
5381
sed 's/^/| /' conftest.$ac_ext >&5
 
5382
 
 
5383
  # Broken: fails on valid input.
 
5384
continue
 
5385
fi
 
5386
rm -f conftest.err conftest.$ac_ext
 
5387
 
 
5388
  # OK, works on sane cases.  Now check whether non-existent headers
 
5389
  # can be detected and how.
 
5390
  cat >conftest.$ac_ext <<_ACEOF
 
5391
/* confdefs.h.  */
 
5392
_ACEOF
 
5393
cat confdefs.h >>conftest.$ac_ext
 
5394
cat >>conftest.$ac_ext <<_ACEOF
 
5395
/* end confdefs.h.  */
 
5396
#include <ac_nonexistent.h>
 
5397
_ACEOF
 
5398
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5399
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5400
  ac_status=$?
 
5401
  grep -v '^ *+' conftest.er1 >conftest.err
 
5402
  rm -f conftest.er1
 
5403
  cat conftest.err >&5
 
5404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5405
  (exit $ac_status); } >/dev/null; then
 
5406
  if test -s conftest.err; then
 
5407
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5408
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5409
  else
 
5410
    ac_cpp_err=
 
5411
  fi
 
5412
else
 
5413
  ac_cpp_err=yes
 
5414
fi
 
5415
if test -z "$ac_cpp_err"; then
 
5416
  # Broken: success on invalid input.
 
5417
continue
 
5418
else
 
5419
  echo "$as_me: failed program was:" >&5
 
5420
sed 's/^/| /' conftest.$ac_ext >&5
 
5421
 
 
5422
  # Passes both tests.
 
5423
ac_preproc_ok=:
 
5424
break
 
5425
fi
 
5426
rm -f conftest.err conftest.$ac_ext
 
5427
 
 
5428
done
 
5429
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5430
rm -f conftest.err conftest.$ac_ext
 
5431
if $ac_preproc_ok; then
 
5432
  :
 
5433
else
 
5434
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5435
See \`config.log' for more details." >&5
 
5436
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5437
See \`config.log' for more details." >&2;}
 
5438
   { (exit 1); exit 1; }; }
 
5439
fi
 
5440
 
 
5441
ac_ext=cc
 
5442
ac_cpp='$CXXCPP $CPPFLAGS'
 
5443
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5444
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5445
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5446
 
 
5447
fi
 
5448
 
 
5449
 
 
5450
ac_ext=f
 
5451
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5452
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5453
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5454
if test -n "$ac_tool_prefix"; then
 
5455
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5456
  do
 
5457
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5458
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5459
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5461
if test "${ac_cv_prog_F77+set}" = set; then
 
5462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5463
else
 
5464
  if test -n "$F77"; then
 
5465
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5466
else
 
5467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5468
for as_dir in $PATH
 
5469
do
 
5470
  IFS=$as_save_IFS
 
5471
  test -z "$as_dir" && as_dir=.
 
5472
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5473
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5474
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5475
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5476
    break 2
 
5477
  fi
 
5478
done
 
5479
done
 
5480
 
 
5481
fi
 
5482
fi
 
5483
F77=$ac_cv_prog_F77
 
5484
if test -n "$F77"; then
 
5485
  echo "$as_me:$LINENO: result: $F77" >&5
 
5486
echo "${ECHO_T}$F77" >&6
 
5487
else
 
5488
  echo "$as_me:$LINENO: result: no" >&5
 
5489
echo "${ECHO_T}no" >&6
 
5490
fi
 
5491
 
 
5492
    test -n "$F77" && break
 
5493
  done
 
5494
fi
 
5495
if test -z "$F77"; then
 
5496
  ac_ct_F77=$F77
 
5497
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5498
do
 
5499
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5500
set dummy $ac_prog; ac_word=$2
 
5501
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5502
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5503
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5505
else
 
5506
  if test -n "$ac_ct_F77"; then
 
5507
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5508
else
 
5509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5510
for as_dir in $PATH
 
5511
do
 
5512
  IFS=$as_save_IFS
 
5513
  test -z "$as_dir" && as_dir=.
 
5514
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5515
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5516
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5517
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5518
    break 2
 
5519
  fi
 
5520
done
 
5521
done
 
5522
 
 
5523
fi
 
5524
fi
 
5525
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5526
if test -n "$ac_ct_F77"; then
 
5527
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5528
echo "${ECHO_T}$ac_ct_F77" >&6
 
5529
else
 
5530
  echo "$as_me:$LINENO: result: no" >&5
 
5531
echo "${ECHO_T}no" >&6
 
5532
fi
 
5533
 
 
5534
  test -n "$ac_ct_F77" && break
 
5535
done
 
5536
 
 
5537
  F77=$ac_ct_F77
 
5538
fi
 
5539
 
 
5540
 
 
5541
# Provide some information about the compiler.
 
5542
echo "$as_me:5542:" \
 
5543
     "checking for Fortran 77 compiler version" >&5
 
5544
ac_compiler=`set X $ac_compile; echo $2`
 
5545
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5546
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5547
  ac_status=$?
 
5548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5549
  (exit $ac_status); }
 
5550
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5551
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5552
  ac_status=$?
 
5553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5554
  (exit $ac_status); }
 
5555
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5556
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5557
  ac_status=$?
 
5558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5559
  (exit $ac_status); }
 
5560
rm -f a.out
 
5561
 
 
5562
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5563
# input file.  (Note that this only needs to work for GNU compilers.)
 
5564
ac_save_ext=$ac_ext
 
5565
ac_ext=F
 
5566
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5567
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5568
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5570
else
 
5571
  cat >conftest.$ac_ext <<_ACEOF
 
5572
      program main
 
5573
#ifndef __GNUC__
 
5574
       choke me
 
5575
#endif
 
5576
 
 
5577
      end
 
5578
_ACEOF
 
5579
rm -f conftest.$ac_objext
 
5580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5581
  (eval $ac_compile) 2>conftest.er1
 
5582
  ac_status=$?
 
5583
  grep -v '^ *+' conftest.er1 >conftest.err
 
5584
  rm -f conftest.er1
 
5585
  cat conftest.err >&5
 
5586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5587
  (exit $ac_status); } &&
 
5588
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5590
  (eval $ac_try) 2>&5
 
5591
  ac_status=$?
 
5592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5593
  (exit $ac_status); }; } &&
 
5594
         { ac_try='test -s conftest.$ac_objext'
 
5595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5596
  (eval $ac_try) 2>&5
 
5597
  ac_status=$?
 
5598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5599
  (exit $ac_status); }; }; then
 
5600
  ac_compiler_gnu=yes
 
5601
else
 
5602
  echo "$as_me: failed program was:" >&5
 
5603
sed 's/^/| /' conftest.$ac_ext >&5
 
5604
 
 
5605
ac_compiler_gnu=no
 
5606
fi
 
5607
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5608
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5609
 
 
5610
fi
 
5611
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5612
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5613
ac_ext=$ac_save_ext
 
5614
ac_test_FFLAGS=${FFLAGS+set}
 
5615
ac_save_FFLAGS=$FFLAGS
 
5616
FFLAGS=
 
5617
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5618
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5619
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5620
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5621
else
 
5622
  FFLAGS=-g
 
5623
cat >conftest.$ac_ext <<_ACEOF
 
5624
      program main
 
5625
 
 
5626
      end
 
5627
_ACEOF
 
5628
rm -f conftest.$ac_objext
 
5629
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5630
  (eval $ac_compile) 2>conftest.er1
 
5631
  ac_status=$?
 
5632
  grep -v '^ *+' conftest.er1 >conftest.err
 
5633
  rm -f conftest.er1
 
5634
  cat conftest.err >&5
 
5635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5636
  (exit $ac_status); } &&
 
5637
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5639
  (eval $ac_try) 2>&5
 
5640
  ac_status=$?
 
5641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5642
  (exit $ac_status); }; } &&
 
5643
         { ac_try='test -s conftest.$ac_objext'
 
5644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5645
  (eval $ac_try) 2>&5
 
5646
  ac_status=$?
 
5647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5648
  (exit $ac_status); }; }; then
 
5649
  ac_cv_prog_f77_g=yes
 
5650
else
 
5651
  echo "$as_me: failed program was:" >&5
 
5652
sed 's/^/| /' conftest.$ac_ext >&5
 
5653
 
 
5654
ac_cv_prog_f77_g=no
 
5655
fi
 
5656
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5657
 
 
5658
fi
 
5659
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5660
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5661
if test "$ac_test_FFLAGS" = set; then
 
5662
  FFLAGS=$ac_save_FFLAGS
 
5663
elif test $ac_cv_prog_f77_g = yes; then
 
5664
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5665
    FFLAGS="-g -O2"
 
5666
  else
 
5667
    FFLAGS="-g"
 
5668
  fi
 
5669
else
 
5670
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5671
    FFLAGS="-O2"
 
5672
  else
 
5673
    FFLAGS=
 
5674
  fi
 
5675
fi
 
5676
 
 
5677
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5678
ac_ext=c
 
5679
ac_cpp='$CPP $CPPFLAGS'
 
5680
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5681
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5682
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5683
 
 
5684
 
 
5685
 
 
5686
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5687
 
 
5688
# find the maximum length of command line arguments
 
5689
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5690
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5691
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5693
else
 
5694
    i=0
 
5695
  teststring="ABCD"
 
5696
 
 
5697
  case $build_os in
 
5698
  msdosdjgpp*)
 
5699
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5700
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5701
    # during glob expansion).  Even if it were fixed, the result of this
 
5702
    # check would be larger than it should be.
 
5703
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5704
    ;;
 
5705
 
 
5706
  gnu*)
 
5707
    # Under GNU Hurd, this test is not required because there is
 
5708
    # no limit to the length of command line arguments.
 
5709
    # Libtool will interpret -1 as no limit whatsoever
 
5710
    lt_cv_sys_max_cmd_len=-1;
 
5711
    ;;
 
5712
 
 
5713
  cygwin* | mingw*)
 
5714
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5715
    # about 5 minutes as the teststring grows exponentially.
 
5716
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5717
    # you end up with a "frozen" computer, even though with patience
 
5718
    # the test eventually succeeds (with a max line length of 256k).
 
5719
    # Instead, let's just punt: use the minimum linelength reported by
 
5720
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5721
    lt_cv_sys_max_cmd_len=8192;
 
5722
    ;;
 
5723
 
 
5724
  amigaos*)
 
5725
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5726
    # So we just punt and use a minimum line length of 8192.
 
5727
    lt_cv_sys_max_cmd_len=8192;
 
5728
    ;;
 
5729
 
 
5730
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5731
    # This has been around since 386BSD, at least.  Likely further.
 
5732
    if test -x /sbin/sysctl; then
 
5733
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5734
    elif test -x /usr/sbin/sysctl; then
 
5735
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5736
    else
 
5737
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5738
    fi
 
5739
    # And add a safety zone
 
5740
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5741
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5742
    ;;
 
5743
 
 
5744
  interix*)
 
5745
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5746
    lt_cv_sys_max_cmd_len=196608
 
5747
    ;;
 
5748
 
 
5749
  osf*)
 
5750
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5751
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5752
    # nice to cause kernel panics so lets avoid the loop below.
 
5753
    # First set a reasonable default.
 
5754
    lt_cv_sys_max_cmd_len=16384
 
5755
    #
 
5756
    if test -x /sbin/sysconfig; then
 
5757
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5758
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5759
      esac
 
5760
    fi
 
5761
    ;;
 
5762
  sco3.2v5*)
 
5763
    lt_cv_sys_max_cmd_len=102400
 
5764
    ;;
 
5765
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5766
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5767
    if test -n "$kargmax"; then
 
5768
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5769
    else
 
5770
      lt_cv_sys_max_cmd_len=32768
 
5771
    fi
 
5772
    ;;
 
5773
  *)
 
5774
    # If test is not a shell built-in, we'll probably end up computing a
 
5775
    # maximum length that is only half of the actual maximum length, but
 
5776
    # we can't tell.
 
5777
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5778
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5779
               = "XX$teststring") >/dev/null 2>&1 &&
 
5780
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5781
            lt_cv_sys_max_cmd_len=$new_result &&
 
5782
            test $i != 17 # 1/2 MB should be enough
 
5783
    do
 
5784
      i=`expr $i + 1`
 
5785
      teststring=$teststring$teststring
 
5786
    done
 
5787
    teststring=
 
5788
    # Add a significant safety factor because C++ compilers can tack on massive
 
5789
    # amounts of additional arguments before passing them to the linker.
 
5790
    # It appears as though 1/2 is a usable value.
 
5791
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5792
    ;;
 
5793
  esac
 
5794
 
 
5795
fi
 
5796
 
 
5797
if test -n $lt_cv_sys_max_cmd_len ; then
 
5798
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5799
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5800
else
 
5801
  echo "$as_me:$LINENO: result: none" >&5
 
5802
echo "${ECHO_T}none" >&6
 
5803
fi
 
5804
 
 
5805
 
 
5806
 
 
5807
 
 
5808
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5809
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5810
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5811
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5812
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5813
else
 
5814
 
 
5815
# These are sane defaults that work on at least a few old systems.
 
5816
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5817
 
 
5818
# Character class describing NM global symbol codes.
 
5819
symcode='[BCDEGRST]'
 
5820
 
 
5821
# Regexp to match symbols that can be accessed directly from C.
 
5822
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5823
 
 
5824
# Transform an extracted symbol line into a proper C declaration
 
5825
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5826
 
 
5827
# Transform an extracted symbol line into symbol name and symbol address
 
5828
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'"
 
5829
 
 
5830
# Define system-specific variables.
 
5831
case $host_os in
 
5832
aix*)
 
5833
  symcode='[BCDT]'
 
5834
  ;;
 
5835
cygwin* | mingw* | pw32*)
 
5836
  symcode='[ABCDGISTW]'
 
5837
  ;;
 
5838
hpux*) # Its linker distinguishes data from code symbols
 
5839
  if test "$host_cpu" = ia64; then
 
5840
    symcode='[ABCDEGRST]'
 
5841
  fi
 
5842
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5843
  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'"
 
5844
  ;;
 
5845
linux*)
 
5846
  if test "$host_cpu" = ia64; then
 
5847
    symcode='[ABCDGIRSTW]'
 
5848
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5849
    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'"
 
5850
  fi
 
5851
  ;;
 
5852
irix* | nonstopux*)
 
5853
  symcode='[BCDEGRST]'
 
5854
  ;;
 
5855
osf*)
 
5856
  symcode='[BCDEGQRST]'
 
5857
  ;;
 
5858
solaris*)
 
5859
  symcode='[BDRT]'
 
5860
  ;;
 
5861
sco3.2v5*)
 
5862
  symcode='[DT]'
 
5863
  ;;
 
5864
sysv4.2uw2*)
 
5865
  symcode='[DT]'
 
5866
  ;;
 
5867
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5868
  symcode='[ABDT]'
 
5869
  ;;
 
5870
sysv4)
 
5871
  symcode='[DFNSTU]'
 
5872
  ;;
 
5873
esac
 
5874
 
 
5875
# Handle CRLF in mingw tool chain
 
5876
opt_cr=
 
5877
case $build_os in
 
5878
mingw*)
 
5879
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5880
  ;;
 
5881
esac
 
5882
 
 
5883
# If we're using GNU nm, then use its standard symbol codes.
 
5884
case `$NM -V 2>&1` in
 
5885
*GNU* | *'with BFD'*)
 
5886
  symcode='[ABCDGIRSTW]' ;;
 
5887
esac
 
5888
 
 
5889
# Try without a prefix undercore, then with it.
 
5890
for ac_symprfx in "" "_"; do
 
5891
 
 
5892
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5893
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5894
 
 
5895
  # Write the raw and C identifiers.
 
5896
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5897
 
 
5898
  # Check to see that the pipe works correctly.
 
5899
  pipe_works=no
 
5900
 
 
5901
  rm -f conftest*
 
5902
  cat > conftest.$ac_ext <<EOF
 
5903
#ifdef __cplusplus
 
5904
extern "C" {
 
5905
#endif
 
5906
char nm_test_var;
 
5907
void nm_test_func(){}
 
5908
#ifdef __cplusplus
 
5909
}
 
5910
#endif
 
5911
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5912
EOF
 
5913
 
 
5914
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5915
  (eval $ac_compile) 2>&5
 
5916
  ac_status=$?
 
5917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5918
  (exit $ac_status); }; then
 
5919
    # Now try to grab the symbols.
 
5920
    nlist=conftest.nm
 
5921
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5922
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5923
  ac_status=$?
 
5924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5925
  (exit $ac_status); } && test -s "$nlist"; then
 
5926
      # Try sorting and uniquifying the output.
 
5927
      if sort "$nlist" | uniq > "$nlist"T; then
 
5928
        mv -f "$nlist"T "$nlist"
 
5929
      else
 
5930
        rm -f "$nlist"T
 
5931
      fi
 
5932
 
 
5933
      # Make sure that we snagged all the symbols we need.
 
5934
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5935
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5936
          cat <<EOF > conftest.$ac_ext
 
5937
#ifdef __cplusplus
 
5938
extern "C" {
 
5939
#endif
 
5940
 
 
5941
EOF
 
5942
          # Now generate the symbol file.
 
5943
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5944
 
 
5945
          cat <<EOF >> conftest.$ac_ext
 
5946
#if defined (__STDC__) && __STDC__
 
5947
# define lt_ptr_t void *
 
5948
#else
 
5949
# define lt_ptr_t char *
 
5950
# define const
 
5951
#endif
 
5952
 
 
5953
/* The mapping between symbol names and symbols. */
 
5954
const struct {
 
5955
  const char *name;
 
5956
  lt_ptr_t address;
 
5957
}
 
5958
lt_preloaded_symbols[] =
 
5959
{
 
5960
EOF
 
5961
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5962
          cat <<\EOF >> conftest.$ac_ext
 
5963
  {0, (lt_ptr_t) 0}
 
5964
};
 
5965
 
 
5966
#ifdef __cplusplus
 
5967
}
 
5968
#endif
 
5969
EOF
 
5970
          # Now try linking the two files.
 
5971
          mv conftest.$ac_objext conftstm.$ac_objext
 
5972
          lt_save_LIBS="$LIBS"
 
5973
          lt_save_CFLAGS="$CFLAGS"
 
5974
          LIBS="conftstm.$ac_objext"
 
5975
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5976
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5977
  (eval $ac_link) 2>&5
 
5978
  ac_status=$?
 
5979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5980
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5981
            pipe_works=yes
 
5982
          fi
 
5983
          LIBS="$lt_save_LIBS"
 
5984
          CFLAGS="$lt_save_CFLAGS"
 
5985
        else
 
5986
          echo "cannot find nm_test_func in $nlist" >&5
 
5987
        fi
 
5988
      else
 
5989
        echo "cannot find nm_test_var in $nlist" >&5
 
5990
      fi
 
5991
    else
 
5992
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5993
    fi
 
5994
  else
 
5995
    echo "$progname: failed program was:" >&5
 
5996
    cat conftest.$ac_ext >&5
 
5997
  fi
 
5998
  rm -f conftest* conftst*
 
5999
 
 
6000
  # Do not use the global_symbol_pipe unless it works.
 
6001
  if test "$pipe_works" = yes; then
 
6002
    break
 
6003
  else
 
6004
    lt_cv_sys_global_symbol_pipe=
 
6005
  fi
 
6006
done
 
6007
 
 
6008
fi
 
6009
 
 
6010
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6011
  lt_cv_sys_global_symbol_to_cdecl=
 
6012
fi
 
6013
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6014
  echo "$as_me:$LINENO: result: failed" >&5
 
6015
echo "${ECHO_T}failed" >&6
 
6016
else
 
6017
  echo "$as_me:$LINENO: result: ok" >&5
 
6018
echo "${ECHO_T}ok" >&6
 
6019
fi
 
6020
 
 
6021
echo "$as_me:$LINENO: checking for objdir" >&5
 
6022
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6023
if test "${lt_cv_objdir+set}" = set; then
 
6024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6025
else
 
6026
  rm -f .libs 2>/dev/null
 
6027
mkdir .libs 2>/dev/null
 
6028
if test -d .libs; then
 
6029
  lt_cv_objdir=.libs
 
6030
else
 
6031
  # MS-DOS does not allow filenames that begin with a dot.
 
6032
  lt_cv_objdir=_libs
 
6033
fi
 
6034
rmdir .libs 2>/dev/null
 
6035
fi
 
6036
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6037
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6038
objdir=$lt_cv_objdir
 
6039
 
 
6040
 
 
6041
 
 
6042
 
 
6043
 
 
6044
case $host_os in
 
6045
aix3*)
 
6046
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6047
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6048
  # vanish in a puff of smoke.
 
6049
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6050
    COLLECT_NAMES=
 
6051
    export COLLECT_NAMES
 
6052
  fi
 
6053
  ;;
 
6054
esac
 
6055
 
 
6056
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6057
# metacharacters that are still active within double-quoted strings.
 
6058
Xsed='sed -e 1s/^X//'
 
6059
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6060
 
 
6061
# Same as above, but do not quote variable references.
 
6062
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6063
 
 
6064
# Sed substitution to delay expansion of an escaped shell variable in a
 
6065
# double_quote_subst'ed string.
 
6066
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6067
 
 
6068
# Sed substitution to avoid accidental globbing in evaled expressions
 
6069
no_glob_subst='s/\*/\\\*/g'
 
6070
 
 
6071
# Constants:
 
6072
rm="rm -f"
 
6073
 
 
6074
# Global variables:
 
6075
default_ofile=libtool
 
6076
can_build_shared=yes
 
6077
 
 
6078
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6079
# which needs '.lib').
 
6080
libext=a
 
6081
ltmain="$ac_aux_dir/ltmain.sh"
 
6082
ofile="$default_ofile"
 
6083
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6084
 
 
6085
if test -n "$ac_tool_prefix"; then
 
6086
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6087
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6088
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6090
if test "${ac_cv_prog_AR+set}" = set; then
 
6091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6092
else
 
6093
  if test -n "$AR"; then
 
6094
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6095
else
 
6096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6097
for as_dir in $PATH
 
6098
do
 
6099
  IFS=$as_save_IFS
 
6100
  test -z "$as_dir" && as_dir=.
 
6101
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6102
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6103
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6104
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6105
    break 2
 
6106
  fi
 
6107
done
 
6108
done
 
6109
 
 
6110
fi
 
6111
fi
 
6112
AR=$ac_cv_prog_AR
 
6113
if test -n "$AR"; then
 
6114
  echo "$as_me:$LINENO: result: $AR" >&5
 
6115
echo "${ECHO_T}$AR" >&6
 
6116
else
 
6117
  echo "$as_me:$LINENO: result: no" >&5
 
6118
echo "${ECHO_T}no" >&6
 
6119
fi
 
6120
 
 
6121
fi
 
6122
if test -z "$ac_cv_prog_AR"; then
 
6123
  ac_ct_AR=$AR
 
6124
  # Extract the first word of "ar", so it can be a program name with args.
 
6125
set dummy ar; ac_word=$2
 
6126
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6127
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6128
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6130
else
 
6131
  if test -n "$ac_ct_AR"; then
 
6132
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6133
else
 
6134
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6135
for as_dir in $PATH
 
6136
do
 
6137
  IFS=$as_save_IFS
 
6138
  test -z "$as_dir" && as_dir=.
 
6139
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6140
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6141
    ac_cv_prog_ac_ct_AR="ar"
 
6142
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6143
    break 2
 
6144
  fi
 
6145
done
 
6146
done
 
6147
 
 
6148
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
6149
fi
 
6150
fi
 
6151
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6152
if test -n "$ac_ct_AR"; then
 
6153
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6154
echo "${ECHO_T}$ac_ct_AR" >&6
 
6155
else
 
6156
  echo "$as_me:$LINENO: result: no" >&5
 
6157
echo "${ECHO_T}no" >&6
 
6158
fi
 
6159
 
 
6160
  AR=$ac_ct_AR
 
6161
else
 
6162
  AR="$ac_cv_prog_AR"
 
6163
fi
 
6164
 
 
6165
if test -n "$ac_tool_prefix"; then
 
6166
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6167
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6168
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6170
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6172
else
 
6173
  if test -n "$RANLIB"; then
 
6174
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6175
else
 
6176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6177
for as_dir in $PATH
 
6178
do
 
6179
  IFS=$as_save_IFS
 
6180
  test -z "$as_dir" && as_dir=.
 
6181
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6182
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6183
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6184
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6185
    break 2
 
6186
  fi
 
6187
done
 
6188
done
 
6189
 
 
6190
fi
 
6191
fi
 
6192
RANLIB=$ac_cv_prog_RANLIB
 
6193
if test -n "$RANLIB"; then
 
6194
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6195
echo "${ECHO_T}$RANLIB" >&6
 
6196
else
 
6197
  echo "$as_me:$LINENO: result: no" >&5
 
6198
echo "${ECHO_T}no" >&6
 
6199
fi
 
6200
 
 
6201
fi
 
6202
if test -z "$ac_cv_prog_RANLIB"; then
 
6203
  ac_ct_RANLIB=$RANLIB
 
6204
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6205
set dummy ranlib; ac_word=$2
 
6206
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6208
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6210
else
 
6211
  if test -n "$ac_ct_RANLIB"; then
 
6212
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6213
else
 
6214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6215
for as_dir in $PATH
 
6216
do
 
6217
  IFS=$as_save_IFS
 
6218
  test -z "$as_dir" && as_dir=.
 
6219
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6220
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6221
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6223
    break 2
 
6224
  fi
 
6225
done
 
6226
done
 
6227
 
 
6228
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6229
fi
 
6230
fi
 
6231
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6232
if test -n "$ac_ct_RANLIB"; then
 
6233
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6234
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6235
else
 
6236
  echo "$as_me:$LINENO: result: no" >&5
 
6237
echo "${ECHO_T}no" >&6
 
6238
fi
 
6239
 
 
6240
  RANLIB=$ac_ct_RANLIB
 
6241
else
 
6242
  RANLIB="$ac_cv_prog_RANLIB"
 
6243
fi
 
6244
 
 
6245
if test -n "$ac_tool_prefix"; then
 
6246
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6247
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6248
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6250
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6252
else
 
6253
  if test -n "$STRIP"; then
 
6254
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6255
else
 
6256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6257
for as_dir in $PATH
 
6258
do
 
6259
  IFS=$as_save_IFS
 
6260
  test -z "$as_dir" && as_dir=.
 
6261
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6262
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6263
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6264
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6265
    break 2
 
6266
  fi
 
6267
done
 
6268
done
 
6269
 
 
6270
fi
 
6271
fi
 
6272
STRIP=$ac_cv_prog_STRIP
 
6273
if test -n "$STRIP"; then
 
6274
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6275
echo "${ECHO_T}$STRIP" >&6
 
6276
else
 
6277
  echo "$as_me:$LINENO: result: no" >&5
 
6278
echo "${ECHO_T}no" >&6
 
6279
fi
 
6280
 
 
6281
fi
 
6282
if test -z "$ac_cv_prog_STRIP"; then
 
6283
  ac_ct_STRIP=$STRIP
 
6284
  # Extract the first word of "strip", so it can be a program name with args.
 
6285
set dummy strip; ac_word=$2
 
6286
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6288
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6290
else
 
6291
  if test -n "$ac_ct_STRIP"; then
 
6292
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6293
else
 
6294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6295
for as_dir in $PATH
 
6296
do
 
6297
  IFS=$as_save_IFS
 
6298
  test -z "$as_dir" && as_dir=.
 
6299
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6300
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6301
    ac_cv_prog_ac_ct_STRIP="strip"
 
6302
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6303
    break 2
 
6304
  fi
 
6305
done
 
6306
done
 
6307
 
 
6308
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6309
fi
 
6310
fi
 
6311
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6312
if test -n "$ac_ct_STRIP"; then
 
6313
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6314
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6315
else
 
6316
  echo "$as_me:$LINENO: result: no" >&5
 
6317
echo "${ECHO_T}no" >&6
 
6318
fi
 
6319
 
 
6320
  STRIP=$ac_ct_STRIP
 
6321
else
 
6322
  STRIP="$ac_cv_prog_STRIP"
 
6323
fi
 
6324
 
 
6325
 
 
6326
old_CC="$CC"
 
6327
old_CFLAGS="$CFLAGS"
 
6328
 
 
6329
# Set sane defaults for various variables
 
6330
test -z "$AR" && AR=ar
 
6331
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6332
test -z "$AS" && AS=as
 
6333
test -z "$CC" && CC=cc
 
6334
test -z "$LTCC" && LTCC=$CC
 
6335
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6336
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6337
test -z "$LD" && LD=ld
 
6338
test -z "$LN_S" && LN_S="ln -s"
 
6339
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6340
test -z "$NM" && NM=nm
 
6341
test -z "$SED" && SED=sed
 
6342
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6343
test -z "$RANLIB" && RANLIB=:
 
6344
test -z "$STRIP" && STRIP=:
 
6345
test -z "$ac_objext" && ac_objext=o
 
6346
 
 
6347
# Determine commands to create old-style static archives.
 
6348
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6349
old_postinstall_cmds='chmod 644 $oldlib'
 
6350
old_postuninstall_cmds=
 
6351
 
 
6352
if test -n "$RANLIB"; then
 
6353
  case $host_os in
 
6354
  openbsd*)
 
6355
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6356
    ;;
 
6357
  *)
 
6358
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6359
    ;;
 
6360
  esac
 
6361
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6362
fi
 
6363
 
 
6364
for cc_temp in $compiler""; do
 
6365
  case $cc_temp in
 
6366
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6367
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6368
    \-*) ;;
 
6369
    *) break;;
 
6370
  esac
 
6371
done
 
6372
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6373
 
 
6374
 
 
6375
# Only perform the check for file, if the check method requires it
 
6376
case $deplibs_check_method in
 
6377
file_magic*)
 
6378
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6379
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6380
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6381
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6383
else
 
6384
  case $MAGIC_CMD in
 
6385
[\\/*] |  ?:[\\/]*)
 
6386
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6387
  ;;
 
6388
*)
 
6389
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6390
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6391
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6392
  for ac_dir in $ac_dummy; do
 
6393
    IFS="$lt_save_ifs"
 
6394
    test -z "$ac_dir" && ac_dir=.
 
6395
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6396
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6397
      if test -n "$file_magic_test_file"; then
 
6398
        case $deplibs_check_method in
 
6399
        "file_magic "*)
 
6400
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6401
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6402
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6403
            $EGREP "$file_magic_regex" > /dev/null; then
 
6404
            :
 
6405
          else
 
6406
            cat <<EOF 1>&2
 
6407
 
 
6408
*** Warning: the command libtool uses to detect shared libraries,
 
6409
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6410
*** The result is that libtool may fail to recognize shared libraries
 
6411
*** as such.  This will affect the creation of libtool libraries that
 
6412
*** depend on shared libraries, but programs linked with such libtool
 
6413
*** libraries will work regardless of this problem.  Nevertheless, you
 
6414
*** may want to report the problem to your system manager and/or to
 
6415
*** bug-libtool@gnu.org
 
6416
 
 
6417
EOF
 
6418
          fi ;;
 
6419
        esac
 
6420
      fi
 
6421
      break
 
6422
    fi
 
6423
  done
 
6424
  IFS="$lt_save_ifs"
 
6425
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6426
  ;;
 
6427
esac
 
6428
fi
 
6429
 
 
6430
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6431
if test -n "$MAGIC_CMD"; then
 
6432
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6433
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6434
else
 
6435
  echo "$as_me:$LINENO: result: no" >&5
 
6436
echo "${ECHO_T}no" >&6
 
6437
fi
 
6438
 
 
6439
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6440
  if test -n "$ac_tool_prefix"; then
 
6441
    echo "$as_me:$LINENO: checking for file" >&5
 
6442
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6443
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6445
else
 
6446
  case $MAGIC_CMD in
 
6447
[\\/*] |  ?:[\\/]*)
 
6448
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6449
  ;;
 
6450
*)
 
6451
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6452
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6453
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6454
  for ac_dir in $ac_dummy; do
 
6455
    IFS="$lt_save_ifs"
 
6456
    test -z "$ac_dir" && ac_dir=.
 
6457
    if test -f $ac_dir/file; then
 
6458
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6459
      if test -n "$file_magic_test_file"; then
 
6460
        case $deplibs_check_method in
 
6461
        "file_magic "*)
 
6462
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6463
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6464
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6465
            $EGREP "$file_magic_regex" > /dev/null; then
 
6466
            :
 
6467
          else
 
6468
            cat <<EOF 1>&2
 
6469
 
 
6470
*** Warning: the command libtool uses to detect shared libraries,
 
6471
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6472
*** The result is that libtool may fail to recognize shared libraries
 
6473
*** as such.  This will affect the creation of libtool libraries that
 
6474
*** depend on shared libraries, but programs linked with such libtool
 
6475
*** libraries will work regardless of this problem.  Nevertheless, you
 
6476
*** may want to report the problem to your system manager and/or to
 
6477
*** bug-libtool@gnu.org
 
6478
 
 
6479
EOF
 
6480
          fi ;;
 
6481
        esac
 
6482
      fi
 
6483
      break
 
6484
    fi
 
6485
  done
 
6486
  IFS="$lt_save_ifs"
 
6487
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6488
  ;;
 
6489
esac
 
6490
fi
 
6491
 
 
6492
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6493
if test -n "$MAGIC_CMD"; then
 
6494
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6495
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6496
else
 
6497
  echo "$as_me:$LINENO: result: no" >&5
 
6498
echo "${ECHO_T}no" >&6
 
6499
fi
 
6500
 
 
6501
  else
 
6502
    MAGIC_CMD=:
 
6503
  fi
 
6504
fi
 
6505
 
 
6506
  fi
 
6507
  ;;
 
6508
esac
 
6509
 
 
6510
enable_dlopen=no
 
6511
enable_win32_dll=yes
 
6512
 
 
6513
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6514
if test "${enable_libtool_lock+set}" = set; then
 
6515
  enableval="$enable_libtool_lock"
 
6516
 
 
6517
fi;
 
6518
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6519
 
 
6520
 
 
6521
# Check whether --with-pic or --without-pic was given.
 
6522
if test "${with_pic+set}" = set; then
 
6523
  withval="$with_pic"
 
6524
  pic_mode="$withval"
 
6525
else
 
6526
  pic_mode=default
 
6527
fi;
 
6528
test -z "$pic_mode" && pic_mode=default
 
6529
 
 
6530
# Use C for the default configuration in the libtool script
 
6531
tagname=
 
6532
lt_save_CC="$CC"
 
6533
ac_ext=c
 
6534
ac_cpp='$CPP $CPPFLAGS'
 
6535
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6536
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6537
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6538
 
 
6539
 
 
6540
# Source file extension for C test sources.
 
6541
ac_ext=c
 
6542
 
 
6543
# Object file extension for compiled C test sources.
 
6544
objext=o
 
6545
objext=$objext
 
6546
 
 
6547
# Code to be used in simple compile tests
 
6548
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6549
 
 
6550
# Code to be used in simple link tests
 
6551
lt_simple_link_test_code='int main(){return(0);}\n'
 
6552
 
 
6553
 
 
6554
# If no C compiler was specified, use CC.
 
6555
LTCC=${LTCC-"$CC"}
 
6556
 
 
6557
# If no C compiler flags were specified, use CFLAGS.
 
6558
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6559
 
 
6560
# Allow CC to be a program name with arguments.
 
6561
compiler=$CC
 
6562
 
 
6563
 
 
6564
# save warnings/boilerplate of simple test code
 
6565
ac_outfile=conftest.$ac_objext
 
6566
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6567
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6568
_lt_compiler_boilerplate=`cat conftest.err`
 
6569
$rm conftest*
 
6570
 
 
6571
ac_outfile=conftest.$ac_objext
 
6572
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6573
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6574
_lt_linker_boilerplate=`cat conftest.err`
 
6575
$rm conftest*
 
6576
 
 
6577
 
 
6578
 
 
6579
lt_prog_compiler_no_builtin_flag=
 
6580
 
 
6581
if test "$GCC" = yes; then
 
6582
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6583
 
 
6584
 
 
6585
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6586
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6587
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6589
else
 
6590
  lt_cv_prog_compiler_rtti_exceptions=no
 
6591
  ac_outfile=conftest.$ac_objext
 
6592
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6593
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6594
   # Insert the option either (1) after the last *FLAGS variable, or
 
6595
   # (2) before a word containing "conftest.", or (3) at the end.
 
6596
   # Note that $ac_compile itself does not contain backslashes and begins
 
6597
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6598
   # The option is referenced via a variable to avoid confusing sed.
 
6599
   lt_compile=`echo "$ac_compile" | $SED \
 
6600
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6601
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6602
   -e 's:$: $lt_compiler_flag:'`
 
6603
   (eval echo "\"\$as_me:6603: $lt_compile\"" >&5)
 
6604
   (eval "$lt_compile" 2>conftest.err)
 
6605
   ac_status=$?
 
6606
   cat conftest.err >&5
 
6607
   echo "$as_me:6607: \$? = $ac_status" >&5
 
6608
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6609
     # The compiler can only warn and ignore the option if not recognized
 
6610
     # So say no if there are warnings other than the usual output.
 
6611
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6612
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6613
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6614
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6615
     fi
 
6616
   fi
 
6617
   $rm conftest*
 
6618
 
 
6619
fi
 
6620
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6621
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6622
 
 
6623
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6624
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6625
else
 
6626
    :
 
6627
fi
 
6628
 
 
6629
fi
 
6630
 
 
6631
lt_prog_compiler_wl=
 
6632
lt_prog_compiler_pic=
 
6633
lt_prog_compiler_static=
 
6634
 
 
6635
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6636
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6637
 
 
6638
  if test "$GCC" = yes; then
 
6639
    lt_prog_compiler_wl='-Wl,'
 
6640
    lt_prog_compiler_static='-static'
 
6641
 
 
6642
    case $host_os in
 
6643
      aix*)
 
6644
      # All AIX code is PIC.
 
6645
      if test "$host_cpu" = ia64; then
 
6646
        # AIX 5 now supports IA64 processor
 
6647
        lt_prog_compiler_static='-Bstatic'
 
6648
      fi
 
6649
      ;;
 
6650
 
 
6651
    amigaos*)
 
6652
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6653
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6654
      # like `-m68040'.
 
6655
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6656
      ;;
 
6657
 
 
6658
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6659
      # PIC is the default for these OSes.
 
6660
      ;;
 
6661
 
 
6662
    mingw* | pw32* | os2*)
 
6663
      # This hack is so that the source file can tell whether it is being
 
6664
      # built for inclusion in a dll (and should export symbols for example).
 
6665
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6666
      ;;
 
6667
 
 
6668
    darwin* | rhapsody*)
 
6669
      # PIC is the default on this platform
 
6670
      # Common symbols not allowed in MH_DYLIB files
 
6671
      lt_prog_compiler_pic='-fno-common'
 
6672
      ;;
 
6673
 
 
6674
    interix3*)
 
6675
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6676
      # Instead, we relocate shared libraries at runtime.
 
6677
      ;;
 
6678
 
 
6679
    msdosdjgpp*)
 
6680
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6681
      # on systems that don't support them.
 
6682
      lt_prog_compiler_can_build_shared=no
 
6683
      enable_shared=no
 
6684
      ;;
 
6685
 
 
6686
    sysv4*MP*)
 
6687
      if test -d /usr/nec; then
 
6688
        lt_prog_compiler_pic=-Kconform_pic
 
6689
      fi
 
6690
      ;;
 
6691
 
 
6692
    hpux*)
 
6693
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6694
      # not for PA HP-UX.
 
6695
      case $host_cpu in
 
6696
      hppa*64*|ia64*)
 
6697
        # +Z the default
 
6698
        ;;
 
6699
      *)
 
6700
        lt_prog_compiler_pic='-fPIC'
 
6701
        ;;
 
6702
      esac
 
6703
      ;;
 
6704
 
 
6705
    *)
 
6706
      lt_prog_compiler_pic='-fPIC'
 
6707
      ;;
 
6708
    esac
 
6709
  else
 
6710
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6711
    case $host_os in
 
6712
    aix*)
 
6713
      lt_prog_compiler_wl='-Wl,'
 
6714
      if test "$host_cpu" = ia64; then
 
6715
        # AIX 5 now supports IA64 processor
 
6716
        lt_prog_compiler_static='-Bstatic'
 
6717
      else
 
6718
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6719
      fi
 
6720
      ;;
 
6721
      darwin*)
 
6722
        # PIC is the default on this platform
 
6723
        # Common symbols not allowed in MH_DYLIB files
 
6724
       case $cc_basename in
 
6725
         xlc*)
 
6726
         lt_prog_compiler_pic='-qnocommon'
 
6727
         lt_prog_compiler_wl='-Wl,'
 
6728
         ;;
 
6729
       esac
 
6730
       ;;
 
6731
 
 
6732
    mingw* | pw32* | os2*)
 
6733
      # This hack is so that the source file can tell whether it is being
 
6734
      # built for inclusion in a dll (and should export symbols for example).
 
6735
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6736
      ;;
 
6737
 
 
6738
    hpux9* | hpux10* | hpux11*)
 
6739
      lt_prog_compiler_wl='-Wl,'
 
6740
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6741
      # not for PA HP-UX.
 
6742
      case $host_cpu in
 
6743
      hppa*64*|ia64*)
 
6744
        # +Z the default
 
6745
        ;;
 
6746
      *)
 
6747
        lt_prog_compiler_pic='+Z'
 
6748
        ;;
 
6749
      esac
 
6750
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6751
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6752
      ;;
 
6753
 
 
6754
    irix5* | irix6* | nonstopux*)
 
6755
      lt_prog_compiler_wl='-Wl,'
 
6756
      # PIC (with -KPIC) is the default.
 
6757
      lt_prog_compiler_static='-non_shared'
 
6758
      ;;
 
6759
 
 
6760
    newsos6)
 
6761
      lt_prog_compiler_pic='-KPIC'
 
6762
      lt_prog_compiler_static='-Bstatic'
 
6763
      ;;
 
6764
 
 
6765
    linux*)
 
6766
      case $cc_basename in
 
6767
      icc* | ecc*)
 
6768
        lt_prog_compiler_wl='-Wl,'
 
6769
        lt_prog_compiler_pic='-KPIC'
 
6770
        lt_prog_compiler_static='-static'
 
6771
        ;;
 
6772
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6773
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6774
        # which looks to be a dead project)
 
6775
        lt_prog_compiler_wl='-Wl,'
 
6776
        lt_prog_compiler_pic='-fpic'
 
6777
        lt_prog_compiler_static='-Bstatic'
 
6778
        ;;
 
6779
      ccc*)
 
6780
        lt_prog_compiler_wl='-Wl,'
 
6781
        # All Alpha code is PIC.
 
6782
        lt_prog_compiler_static='-non_shared'
 
6783
        ;;
 
6784
      esac
 
6785
      ;;
 
6786
 
 
6787
    osf3* | osf4* | osf5*)
 
6788
      lt_prog_compiler_wl='-Wl,'
 
6789
      # All OSF/1 code is PIC.
 
6790
      lt_prog_compiler_static='-non_shared'
 
6791
      ;;
 
6792
 
 
6793
    solaris*)
 
6794
      lt_prog_compiler_pic='-KPIC'
 
6795
      lt_prog_compiler_static='-Bstatic'
 
6796
      case $cc_basename in
 
6797
      f77* | f90* | f95*)
 
6798
        lt_prog_compiler_wl='-Qoption ld ';;
 
6799
      *)
 
6800
        lt_prog_compiler_wl='-Wl,';;
 
6801
      esac
 
6802
      ;;
 
6803
 
 
6804
    sunos4*)
 
6805
      lt_prog_compiler_wl='-Qoption ld '
 
6806
      lt_prog_compiler_pic='-PIC'
 
6807
      lt_prog_compiler_static='-Bstatic'
 
6808
      ;;
 
6809
 
 
6810
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
6811
      lt_prog_compiler_wl='-Wl,'
 
6812
      lt_prog_compiler_pic='-KPIC'
 
6813
      lt_prog_compiler_static='-Bstatic'
 
6814
      ;;
 
6815
 
 
6816
    sysv4*MP*)
 
6817
      if test -d /usr/nec ;then
 
6818
        lt_prog_compiler_pic='-Kconform_pic'
 
6819
        lt_prog_compiler_static='-Bstatic'
 
6820
      fi
 
6821
      ;;
 
6822
 
 
6823
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6824
      lt_prog_compiler_wl='-Wl,'
 
6825
      lt_prog_compiler_pic='-KPIC'
 
6826
      lt_prog_compiler_static='-Bstatic'
 
6827
      ;;
 
6828
 
 
6829
    unicos*)
 
6830
      lt_prog_compiler_wl='-Wl,'
 
6831
      lt_prog_compiler_can_build_shared=no
 
6832
      ;;
 
6833
 
 
6834
    uts4*)
 
6835
      lt_prog_compiler_pic='-pic'
 
6836
      lt_prog_compiler_static='-Bstatic'
 
6837
      ;;
 
6838
 
 
6839
    *)
 
6840
      lt_prog_compiler_can_build_shared=no
 
6841
      ;;
 
6842
    esac
 
6843
  fi
 
6844
 
 
6845
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6846
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6847
 
 
6848
#
 
6849
# Check to make sure the PIC flag actually works.
 
6850
#
 
6851
if test -n "$lt_prog_compiler_pic"; then
 
6852
 
 
6853
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6854
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6855
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6857
else
 
6858
  lt_prog_compiler_pic_works=no
 
6859
  ac_outfile=conftest.$ac_objext
 
6860
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6861
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6862
   # Insert the option either (1) after the last *FLAGS variable, or
 
6863
   # (2) before a word containing "conftest.", or (3) at the end.
 
6864
   # Note that $ac_compile itself does not contain backslashes and begins
 
6865
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6866
   # The option is referenced via a variable to avoid confusing sed.
 
6867
   lt_compile=`echo "$ac_compile" | $SED \
 
6868
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6869
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6870
   -e 's:$: $lt_compiler_flag:'`
 
6871
   (eval echo "\"\$as_me:6871: $lt_compile\"" >&5)
 
6872
   (eval "$lt_compile" 2>conftest.err)
 
6873
   ac_status=$?
 
6874
   cat conftest.err >&5
 
6875
   echo "$as_me:6875: \$? = $ac_status" >&5
 
6876
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6877
     # The compiler can only warn and ignore the option if not recognized
 
6878
     # So say no if there are warnings other than the usual output.
 
6879
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6880
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6881
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6882
       lt_prog_compiler_pic_works=yes
 
6883
     fi
 
6884
   fi
 
6885
   $rm conftest*
 
6886
 
 
6887
fi
 
6888
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6889
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6890
 
 
6891
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6892
    case $lt_prog_compiler_pic in
 
6893
     "" | " "*) ;;
 
6894
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6895
     esac
 
6896
else
 
6897
    lt_prog_compiler_pic=
 
6898
     lt_prog_compiler_can_build_shared=no
 
6899
fi
 
6900
 
 
6901
fi
 
6902
case $host_os in
 
6903
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6904
  *djgpp*)
 
6905
    lt_prog_compiler_pic=
 
6906
    ;;
 
6907
  *)
 
6908
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6909
    ;;
 
6910
esac
 
6911
 
 
6912
#
 
6913
# Check to make sure the static flag actually works.
 
6914
#
 
6915
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
6916
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
6917
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
6918
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6920
else
 
6921
  lt_prog_compiler_static_works=no
 
6922
   save_LDFLAGS="$LDFLAGS"
 
6923
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
6924
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6925
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6926
     # The linker can only warn and ignore the option if not recognized
 
6927
     # So say no if there are warnings
 
6928
     if test -s conftest.err; then
 
6929
       # Append any errors to the config.log.
 
6930
       cat conftest.err 1>&5
 
6931
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
6932
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6933
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6934
         lt_prog_compiler_static_works=yes
 
6935
       fi
 
6936
     else
 
6937
       lt_prog_compiler_static_works=yes
 
6938
     fi
 
6939
   fi
 
6940
   $rm conftest*
 
6941
   LDFLAGS="$save_LDFLAGS"
 
6942
 
 
6943
fi
 
6944
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6945
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6946
 
 
6947
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6948
    :
 
6949
else
 
6950
    lt_prog_compiler_static=
 
6951
fi
 
6952
 
 
6953
 
 
6954
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6955
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6956
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6958
else
 
6959
  lt_cv_prog_compiler_c_o=no
 
6960
   $rm -r conftest 2>/dev/null
 
6961
   mkdir conftest
 
6962
   cd conftest
 
6963
   mkdir out
 
6964
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6965
 
 
6966
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6967
   # Insert the option either (1) after the last *FLAGS variable, or
 
6968
   # (2) before a word containing "conftest.", or (3) at the end.
 
6969
   # Note that $ac_compile itself does not contain backslashes and begins
 
6970
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6971
   lt_compile=`echo "$ac_compile" | $SED \
 
6972
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6973
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6974
   -e 's:$: $lt_compiler_flag:'`
 
6975
   (eval echo "\"\$as_me:6975: $lt_compile\"" >&5)
 
6976
   (eval "$lt_compile" 2>out/conftest.err)
 
6977
   ac_status=$?
 
6978
   cat out/conftest.err >&5
 
6979
   echo "$as_me:6979: \$? = $ac_status" >&5
 
6980
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6981
   then
 
6982
     # The compiler can only warn and ignore the option if not recognized
 
6983
     # So say no if there are warnings
 
6984
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
6985
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
6986
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6987
       lt_cv_prog_compiler_c_o=yes
 
6988
     fi
 
6989
   fi
 
6990
   chmod u+w . 2>&5
 
6991
   $rm conftest*
 
6992
   # SGI C++ compiler will create directory out/ii_files/ for
 
6993
   # template instantiation
 
6994
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6995
   $rm out/* && rmdir out
 
6996
   cd ..
 
6997
   rmdir conftest
 
6998
   $rm conftest*
 
6999
 
 
7000
fi
 
7001
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7002
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7003
 
 
7004
 
 
7005
hard_links="nottested"
 
7006
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7007
  # do not overwrite the value of need_locks provided by the user
 
7008
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7009
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
7010
  hard_links=yes
 
7011
  $rm conftest*
 
7012
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7013
  touch conftest.a
 
7014
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7015
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7016
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
7017
echo "${ECHO_T}$hard_links" >&6
 
7018
  if test "$hard_links" = no; then
 
7019
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7020
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7021
    need_locks=warn
 
7022
  fi
 
7023
else
 
7024
  need_locks=no
 
7025
fi
 
7026
 
 
7027
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7028
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
7029
 
 
7030
  runpath_var=
 
7031
  allow_undefined_flag=
 
7032
  enable_shared_with_static_runtimes=no
 
7033
  archive_cmds=
 
7034
  archive_expsym_cmds=
 
7035
  old_archive_From_new_cmds=
 
7036
  old_archive_from_expsyms_cmds=
 
7037
  export_dynamic_flag_spec=
 
7038
  whole_archive_flag_spec=
 
7039
  thread_safe_flag_spec=
 
7040
  hardcode_libdir_flag_spec=
 
7041
  hardcode_libdir_flag_spec_ld=
 
7042
  hardcode_libdir_separator=
 
7043
  hardcode_direct=no
 
7044
  hardcode_minus_L=no
 
7045
  hardcode_shlibpath_var=unsupported
 
7046
  link_all_deplibs=unknown
 
7047
  hardcode_automatic=no
 
7048
  module_cmds=
 
7049
  module_expsym_cmds=
 
7050
  always_export_symbols=no
 
7051
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7052
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7053
  # included in the symbol list
 
7054
  include_expsyms=
 
7055
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7056
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7057
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7058
  # as well as any symbol that contains `d'.
 
7059
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7060
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7061
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7062
  # the symbol is explicitly referenced.  Since portable code cannot
 
7063
  # rely on this symbol name, it's probably fine to never include it in
 
7064
  # preloaded symbol tables.
 
7065
  extract_expsyms_cmds=
 
7066
  # Just being paranoid about ensuring that cc_basename is set.
 
7067
  for cc_temp in $compiler""; do
 
7068
  case $cc_temp in
 
7069
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7070
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7071
    \-*) ;;
 
7072
    *) break;;
 
7073
  esac
 
7074
done
 
7075
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7076
 
 
7077
  case $host_os in
 
7078
  cygwin* | mingw* | pw32*)
 
7079
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7080
    # When not using gcc, we currently assume that we are using
 
7081
    # Microsoft Visual C++.
 
7082
    if test "$GCC" != yes; then
 
7083
      with_gnu_ld=no
 
7084
    fi
 
7085
    ;;
 
7086
  interix*)
 
7087
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7088
    with_gnu_ld=yes
 
7089
    ;;
 
7090
  openbsd*)
 
7091
    with_gnu_ld=no
 
7092
    ;;
 
7093
  esac
 
7094
 
 
7095
  ld_shlibs=yes
 
7096
  if test "$with_gnu_ld" = yes; then
 
7097
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7098
    wlarc='${wl}'
 
7099
 
 
7100
    # Set some defaults for GNU ld with shared library support. These
 
7101
    # are reset later if shared libraries are not supported. Putting them
 
7102
    # here allows them to be overridden if necessary.
 
7103
    runpath_var=LD_RUN_PATH
 
7104
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7105
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7106
    # ancient GNU ld didn't support --whole-archive et. al.
 
7107
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7108
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7109
      else
 
7110
        whole_archive_flag_spec=
 
7111
    fi
 
7112
    supports_anon_versioning=no
 
7113
    case `$LD -v 2>/dev/null` in
 
7114
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7115
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7116
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7117
      *\ 2.11.*) ;; # other 2.11 versions
 
7118
      *) supports_anon_versioning=yes ;;
 
7119
    esac
 
7120
 
 
7121
    # See if GNU ld supports shared libraries.
 
7122
    case $host_os in
 
7123
    aix3* | aix4* | aix5*)
 
7124
      # On AIX/PPC, the GNU linker is very broken
 
7125
      if test "$host_cpu" != ia64; then
 
7126
        ld_shlibs=no
 
7127
        cat <<EOF 1>&2
 
7128
 
 
7129
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7130
*** to be unable to reliably create shared libraries on AIX.
 
7131
*** Therefore, libtool is disabling shared libraries support.  If you
 
7132
*** really care for shared libraries, you may want to modify your PATH
 
7133
*** so that a non-GNU linker is found, and then restart.
 
7134
 
 
7135
EOF
 
7136
      fi
 
7137
      ;;
 
7138
 
 
7139
    amigaos*)
 
7140
      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)'
 
7141
      hardcode_libdir_flag_spec='-L$libdir'
 
7142
      hardcode_minus_L=yes
 
7143
 
 
7144
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7145
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7146
      # to version 4, is to share data among multiple programs linked
 
7147
      # with the same dynamic library.  Since this doesn't match the
 
7148
      # behavior of shared libraries on other platforms, we can't use
 
7149
      # them.
 
7150
      ld_shlibs=no
 
7151
      ;;
 
7152
 
 
7153
    beos*)
 
7154
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7155
        allow_undefined_flag=unsupported
 
7156
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7157
        # support --undefined.  This deserves some investigation.  FIXME
 
7158
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7159
      else
 
7160
        ld_shlibs=no
 
7161
      fi
 
7162
      ;;
 
7163
 
 
7164
    cygwin* | mingw* | pw32*)
 
7165
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7166
      # as there is no search path for DLLs.
 
7167
      hardcode_libdir_flag_spec='-L$libdir'
 
7168
      allow_undefined_flag=unsupported
 
7169
      always_export_symbols=no
 
7170
      enable_shared_with_static_runtimes=yes
 
7171
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7172
 
 
7173
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7174
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7175
        # If the export-symbols file already is a .def file (1st line
 
7176
        # is EXPORTS), use it as is; otherwise, prepend...
 
7177
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7178
          cp $export_symbols $output_objdir/$soname.def;
 
7179
        else
 
7180
          echo EXPORTS > $output_objdir/$soname.def;
 
7181
          cat $export_symbols >> $output_objdir/$soname.def;
 
7182
        fi~
 
7183
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7184
      else
 
7185
        ld_shlibs=no
 
7186
      fi
 
7187
      ;;
 
7188
 
 
7189
    interix3*)
 
7190
      hardcode_direct=no
 
7191
      hardcode_shlibpath_var=no
 
7192
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7193
      export_dynamic_flag_spec='${wl}-E'
 
7194
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7195
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7196
      # default) and relocated if they conflict, which is a slow very memory
 
7197
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7198
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7199
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7200
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7201
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7202
      ;;
 
7203
 
 
7204
    linux*)
 
7205
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7206
        tmp_addflag=
 
7207
        case $cc_basename,$host_cpu in
 
7208
        pgcc*)                          # Portland Group C compiler
 
7209
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7210
          tmp_addflag=' $pic_flag'
 
7211
          ;;
 
7212
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7213
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7214
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7215
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7216
          tmp_addflag=' -i_dynamic' ;;
 
7217
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7218
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7219
        ifc* | ifort*)                  # Intel Fortran compiler
 
7220
          tmp_addflag=' -nofor_main' ;;
 
7221
        esac
 
7222
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7223
 
 
7224
        if test $supports_anon_versioning = yes; then
 
7225
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7226
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7227
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7228
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7229
        fi
 
7230
        link_all_deplibs=no
 
7231
      else
 
7232
        ld_shlibs=no
 
7233
      fi
 
7234
      ;;
 
7235
 
 
7236
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7237
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7238
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7239
        wlarc=
 
7240
      else
 
7241
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7242
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7243
      fi
 
7244
      ;;
 
7245
 
 
7246
    solaris*)
 
7247
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7248
        ld_shlibs=no
 
7249
        cat <<EOF 1>&2
 
7250
 
 
7251
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7252
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7253
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7254
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7255
*** your PATH or compiler configuration so that the native linker is
 
7256
*** used, and then restart.
 
7257
 
 
7258
EOF
 
7259
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7260
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7261
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7262
      else
 
7263
        ld_shlibs=no
 
7264
      fi
 
7265
      ;;
 
7266
 
 
7267
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7268
      case `$LD -v 2>&1` in
 
7269
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7270
        ld_shlibs=no
 
7271
        cat <<_LT_EOF 1>&2
 
7272
 
 
7273
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7274
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7275
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7276
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7277
*** your PATH or compiler configuration so that the native linker is
 
7278
*** used, and then restart.
 
7279
 
 
7280
_LT_EOF
 
7281
        ;;
 
7282
        *)
 
7283
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7284
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7285
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7286
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7287
          else
 
7288
            ld_shlibs=no
 
7289
          fi
 
7290
        ;;
 
7291
      esac
 
7292
      ;;
 
7293
 
 
7294
    sunos4*)
 
7295
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7296
      wlarc=
 
7297
      hardcode_direct=yes
 
7298
      hardcode_shlibpath_var=no
 
7299
      ;;
 
7300
 
 
7301
    *)
 
7302
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7303
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7304
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7305
      else
 
7306
        ld_shlibs=no
 
7307
      fi
 
7308
      ;;
 
7309
    esac
 
7310
 
 
7311
    if test "$ld_shlibs" = no; then
 
7312
      runpath_var=
 
7313
      hardcode_libdir_flag_spec=
 
7314
      export_dynamic_flag_spec=
 
7315
      whole_archive_flag_spec=
 
7316
    fi
 
7317
  else
 
7318
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7319
    case $host_os in
 
7320
    aix3*)
 
7321
      allow_undefined_flag=unsupported
 
7322
      always_export_symbols=yes
 
7323
      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'
 
7324
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7325
      # are no directories specified by -L.
 
7326
      hardcode_minus_L=yes
 
7327
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7328
        # Neither direct hardcoding nor static linking is supported with a
 
7329
        # broken collect2.
 
7330
        hardcode_direct=unsupported
 
7331
      fi
 
7332
      ;;
 
7333
 
 
7334
    aix4* | aix5*)
 
7335
      if test "$host_cpu" = ia64; then
 
7336
        # On IA64, the linker does run time linking by default, so we don't
 
7337
        # have to do anything special.
 
7338
        aix_use_runtimelinking=no
 
7339
        exp_sym_flag='-Bexport'
 
7340
        no_entry_flag=""
 
7341
      else
 
7342
        # If we're using GNU nm, then we don't want the "-C" option.
 
7343
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7344
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7345
          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'
 
7346
        else
 
7347
          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'
 
7348
        fi
 
7349
        aix_use_runtimelinking=no
 
7350
 
 
7351
        # Test if we are trying to use run time linking or normal
 
7352
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7353
        # need to do runtime linking.
 
7354
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7355
          for ld_flag in $LDFLAGS; do
 
7356
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7357
            aix_use_runtimelinking=yes
 
7358
            break
 
7359
          fi
 
7360
          done
 
7361
          ;;
 
7362
        esac
 
7363
 
 
7364
        exp_sym_flag='-bexport'
 
7365
        no_entry_flag='-bnoentry'
 
7366
      fi
 
7367
 
 
7368
      # When large executables or shared objects are built, AIX ld can
 
7369
      # have problems creating the table of contents.  If linking a library
 
7370
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7371
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7372
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7373
 
 
7374
      archive_cmds=''
 
7375
      hardcode_direct=yes
 
7376
      hardcode_libdir_separator=':'
 
7377
      link_all_deplibs=yes
 
7378
 
 
7379
      if test "$GCC" = yes; then
 
7380
        case $host_os in aix4.[012]|aix4.[012].*)
 
7381
        # We only want to do this on AIX 4.2 and lower, the check
 
7382
        # below for broken collect2 doesn't work under 4.3+
 
7383
          collect2name=`${CC} -print-prog-name=collect2`
 
7384
          if test -f "$collect2name" && \
 
7385
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7386
          then
 
7387
          # We have reworked collect2
 
7388
          hardcode_direct=yes
 
7389
          else
 
7390
          # We have old collect2
 
7391
          hardcode_direct=unsupported
 
7392
          # It fails to find uninstalled libraries when the uninstalled
 
7393
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7394
          # to unsupported forces relinking
 
7395
          hardcode_minus_L=yes
 
7396
          hardcode_libdir_flag_spec='-L$libdir'
 
7397
          hardcode_libdir_separator=
 
7398
          fi
 
7399
          ;;
 
7400
        esac
 
7401
        shared_flag='-shared'
 
7402
        if test "$aix_use_runtimelinking" = yes; then
 
7403
          shared_flag="$shared_flag "'${wl}-G'
 
7404
        fi
 
7405
      else
 
7406
        # not using gcc
 
7407
        if test "$host_cpu" = ia64; then
 
7408
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7409
        # chokes on -Wl,-G. The following line is correct:
 
7410
          shared_flag='-G'
 
7411
        else
 
7412
          if test "$aix_use_runtimelinking" = yes; then
 
7413
            shared_flag='${wl}-G'
 
7414
          else
 
7415
            shared_flag='${wl}-bM:SRE'
 
7416
          fi
 
7417
        fi
 
7418
      fi
 
7419
 
 
7420
      # It seems that -bexpall does not export symbols beginning with
 
7421
      # underscore (_), so it is better to generate a list of symbols to export.
 
7422
      always_export_symbols=yes
 
7423
      if test "$aix_use_runtimelinking" = yes; then
 
7424
        # Warning - without using the other runtime loading flags (-brtl),
 
7425
        # -berok will link without error, but may produce a broken library.
 
7426
        allow_undefined_flag='-berok'
 
7427
       # Determine the default libpath from the value encoded in an empty executable.
 
7428
       cat >conftest.$ac_ext <<_ACEOF
 
7429
/* confdefs.h.  */
 
7430
_ACEOF
 
7431
cat confdefs.h >>conftest.$ac_ext
 
7432
cat >>conftest.$ac_ext <<_ACEOF
 
7433
/* end confdefs.h.  */
 
7434
 
 
7435
int
 
7436
main ()
 
7437
{
 
7438
 
 
7439
  ;
 
7440
  return 0;
 
7441
}
 
7442
_ACEOF
 
7443
rm -f conftest.$ac_objext conftest$ac_exeext
 
7444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7445
  (eval $ac_link) 2>conftest.er1
 
7446
  ac_status=$?
 
7447
  grep -v '^ *+' conftest.er1 >conftest.err
 
7448
  rm -f conftest.er1
 
7449
  cat conftest.err >&5
 
7450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7451
  (exit $ac_status); } &&
 
7452
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7454
  (eval $ac_try) 2>&5
 
7455
  ac_status=$?
 
7456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7457
  (exit $ac_status); }; } &&
 
7458
         { ac_try='test -s conftest$ac_exeext'
 
7459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7460
  (eval $ac_try) 2>&5
 
7461
  ac_status=$?
 
7462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7463
  (exit $ac_status); }; }; then
 
7464
 
 
7465
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7466
}'`
 
7467
# Check for a 64-bit object if we didn't find anything.
 
7468
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; }
 
7469
}'`; fi
 
7470
else
 
7471
  echo "$as_me: failed program was:" >&5
 
7472
sed 's/^/| /' conftest.$ac_ext >&5
 
7473
 
 
7474
fi
 
7475
rm -f conftest.err conftest.$ac_objext \
 
7476
      conftest$ac_exeext conftest.$ac_ext
 
7477
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7478
 
 
7479
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7480
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7481
       else
 
7482
        if test "$host_cpu" = ia64; then
 
7483
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7484
          allow_undefined_flag="-z nodefs"
 
7485
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
7486
        else
 
7487
         # Determine the default libpath from the value encoded in an empty executable.
 
7488
         cat >conftest.$ac_ext <<_ACEOF
 
7489
/* confdefs.h.  */
 
7490
_ACEOF
 
7491
cat confdefs.h >>conftest.$ac_ext
 
7492
cat >>conftest.$ac_ext <<_ACEOF
 
7493
/* end confdefs.h.  */
 
7494
 
 
7495
int
 
7496
main ()
 
7497
{
 
7498
 
 
7499
  ;
 
7500
  return 0;
 
7501
}
 
7502
_ACEOF
 
7503
rm -f conftest.$ac_objext conftest$ac_exeext
 
7504
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7505
  (eval $ac_link) 2>conftest.er1
 
7506
  ac_status=$?
 
7507
  grep -v '^ *+' conftest.er1 >conftest.err
 
7508
  rm -f conftest.er1
 
7509
  cat conftest.err >&5
 
7510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7511
  (exit $ac_status); } &&
 
7512
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7514
  (eval $ac_try) 2>&5
 
7515
  ac_status=$?
 
7516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7517
  (exit $ac_status); }; } &&
 
7518
         { ac_try='test -s conftest$ac_exeext'
 
7519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7520
  (eval $ac_try) 2>&5
 
7521
  ac_status=$?
 
7522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7523
  (exit $ac_status); }; }; then
 
7524
 
 
7525
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7526
}'`
 
7527
# Check for a 64-bit object if we didn't find anything.
 
7528
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; }
 
7529
}'`; fi
 
7530
else
 
7531
  echo "$as_me: failed program was:" >&5
 
7532
sed 's/^/| /' conftest.$ac_ext >&5
 
7533
 
 
7534
fi
 
7535
rm -f conftest.err conftest.$ac_objext \
 
7536
      conftest$ac_exeext conftest.$ac_ext
 
7537
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7538
 
 
7539
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7540
          # Warning - without using the other run time loading flags,
 
7541
          # -berok will link without error, but may produce a broken library.
 
7542
          no_undefined_flag=' ${wl}-bernotok'
 
7543
          allow_undefined_flag=' ${wl}-berok'
 
7544
          # Exported symbols can be pulled into shared objects from archives
 
7545
          whole_archive_flag_spec='$convenience'
 
7546
          archive_cmds_need_lc=yes
 
7547
          # This is similar to how AIX traditionally builds its shared libraries.
 
7548
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7549
        fi
 
7550
      fi
 
7551
      ;;
 
7552
 
 
7553
    amigaos*)
 
7554
      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)'
 
7555
      hardcode_libdir_flag_spec='-L$libdir'
 
7556
      hardcode_minus_L=yes
 
7557
      # see comment about different semantics on the GNU ld section
 
7558
      ld_shlibs=no
 
7559
      ;;
 
7560
 
 
7561
    bsdi[45]*)
 
7562
      export_dynamic_flag_spec=-rdynamic
 
7563
      ;;
 
7564
 
 
7565
    cygwin* | mingw* | pw32*)
 
7566
      # When not using gcc, we currently assume that we are using
 
7567
      # Microsoft Visual C++.
 
7568
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7569
      # no search path for DLLs.
 
7570
      hardcode_libdir_flag_spec=' '
 
7571
      allow_undefined_flag=unsupported
 
7572
      # Tell ltmain to make .lib files, not .a files.
 
7573
      libext=lib
 
7574
      # Tell ltmain to make .dll files, not .so files.
 
7575
      shrext_cmds=".dll"
 
7576
      # FIXME: Setting linknames here is a bad hack.
 
7577
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7578
      # The linker will automatically build a .lib file if we build a DLL.
 
7579
      old_archive_From_new_cmds='true'
 
7580
      # FIXME: Should let the user specify the lib program.
 
7581
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7582
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7583
      enable_shared_with_static_runtimes=yes
 
7584
      ;;
 
7585
 
 
7586
    darwin* | rhapsody*)
 
7587
      case $host_os in
 
7588
        rhapsody* | darwin1.[012])
 
7589
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7590
         ;;
 
7591
       *) # Darwin 1.3 on
 
7592
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7593
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7594
         else
 
7595
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7596
             10.[012])
 
7597
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7598
               ;;
 
7599
             10.*)
 
7600
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7601
               ;;
 
7602
           esac
 
7603
         fi
 
7604
         ;;
 
7605
      esac
 
7606
      archive_cmds_need_lc=no
 
7607
      hardcode_direct=no
 
7608
      hardcode_automatic=yes
 
7609
      hardcode_shlibpath_var=unsupported
 
7610
      whole_archive_flag_spec=''
 
7611
      link_all_deplibs=yes
 
7612
    if test "$GCC" = yes ; then
 
7613
        output_verbose_link_cmd='echo'
 
7614
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7615
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7616
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7617
      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}'
 
7618
      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}'
 
7619
    else
 
7620
      case $cc_basename in
 
7621
        xlc*)
 
7622
         output_verbose_link_cmd='echo'
 
7623
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7624
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7625
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7626
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7627
          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}'
 
7628
          ;;
 
7629
       *)
 
7630
         ld_shlibs=no
 
7631
          ;;
 
7632
      esac
 
7633
    fi
 
7634
      ;;
 
7635
 
 
7636
    dgux*)
 
7637
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7638
      hardcode_libdir_flag_spec='-L$libdir'
 
7639
      hardcode_shlibpath_var=no
 
7640
      ;;
 
7641
 
 
7642
    freebsd1*)
 
7643
      ld_shlibs=no
 
7644
      ;;
 
7645
 
 
7646
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7647
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7648
    # does not break anything, and helps significantly (at the cost of a little
 
7649
    # extra space).
 
7650
    freebsd2.2*)
 
7651
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7652
      hardcode_libdir_flag_spec='-R$libdir'
 
7653
      hardcode_direct=yes
 
7654
      hardcode_shlibpath_var=no
 
7655
      ;;
 
7656
 
 
7657
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7658
    freebsd2*)
 
7659
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7660
      hardcode_direct=yes
 
7661
      hardcode_minus_L=yes
 
7662
      hardcode_shlibpath_var=no
 
7663
      ;;
 
7664
 
 
7665
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7666
    freebsd* | dragonfly*)
 
7667
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7668
      hardcode_libdir_flag_spec='-R$libdir'
 
7669
      hardcode_direct=yes
 
7670
      hardcode_shlibpath_var=no
 
7671
      ;;
 
7672
 
 
7673
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
7674
    kfreebsd*-gnu)
 
7675
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7676
      hardcode_libdir_flag_spec='-R$libdir'
 
7677
      hardcode_direct=yes
 
7678
      hardcode_shlibpath_var=no
 
7679
      link_all_deplibs=no
 
7680
      ;;
 
7681
 
 
7682
    hpux9*)
 
7683
      if test "$GCC" = yes; then
 
7684
        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'
 
7685
      else
 
7686
        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'
 
7687
      fi
 
7688
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7689
      hardcode_libdir_separator=:
 
7690
      hardcode_direct=yes
 
7691
 
 
7692
      # hardcode_minus_L: Not really in the search PATH,
 
7693
      # but as the default location of the library.
 
7694
      hardcode_minus_L=yes
 
7695
      export_dynamic_flag_spec='${wl}-E'
 
7696
      ;;
 
7697
 
 
7698
    hpux10*)
 
7699
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7700
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7701
      else
 
7702
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7703
      fi
 
7704
      if test "$with_gnu_ld" = no; then
 
7705
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7706
        hardcode_libdir_separator=:
 
7707
 
 
7708
        hardcode_direct=yes
 
7709
        export_dynamic_flag_spec='${wl}-E'
 
7710
 
 
7711
        # hardcode_minus_L: Not really in the search PATH,
 
7712
        # but as the default location of the library.
 
7713
        hardcode_minus_L=yes
 
7714
      fi
 
7715
      ;;
 
7716
 
 
7717
    hpux11*)
 
7718
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7719
        case $host_cpu in
 
7720
        hppa*64*)
 
7721
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7722
          ;;
 
7723
        ia64*)
 
7724
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7725
          ;;
 
7726
        *)
 
7727
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7728
          ;;
 
7729
        esac
 
7730
      else
 
7731
        case $host_cpu in
 
7732
        hppa*64*)
 
7733
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7734
          ;;
 
7735
        ia64*)
 
7736
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7737
          ;;
 
7738
        *)
 
7739
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7740
          ;;
 
7741
        esac
 
7742
      fi
 
7743
      if test "$with_gnu_ld" = no; then
 
7744
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7745
        hardcode_libdir_separator=:
 
7746
 
 
7747
        case $host_cpu in
 
7748
        hppa*64*|ia64*)
 
7749
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7750
          hardcode_direct=no
 
7751
          hardcode_shlibpath_var=no
 
7752
          ;;
 
7753
        *)
 
7754
          hardcode_direct=yes
 
7755
          export_dynamic_flag_spec='${wl}-E'
 
7756
 
 
7757
          # hardcode_minus_L: Not really in the search PATH,
 
7758
          # but as the default location of the library.
 
7759
          hardcode_minus_L=yes
 
7760
          ;;
 
7761
        esac
 
7762
      fi
 
7763
      ;;
 
7764
 
 
7765
    irix5* | irix6* | nonstopux*)
 
7766
      if test "$GCC" = yes; then
 
7767
        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'
 
7768
      else
 
7769
        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'
 
7770
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7771
      fi
 
7772
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7773
      hardcode_libdir_separator=:
 
7774
      link_all_deplibs=yes
 
7775
      ;;
 
7776
 
 
7777
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7778
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7779
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7780
      else
 
7781
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7782
      fi
 
7783
      hardcode_libdir_flag_spec='-R$libdir'
 
7784
      hardcode_direct=yes
 
7785
      hardcode_shlibpath_var=no
 
7786
      ;;
 
7787
 
 
7788
    newsos6)
 
7789
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7790
      hardcode_direct=yes
 
7791
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7792
      hardcode_libdir_separator=:
 
7793
      hardcode_shlibpath_var=no
 
7794
      ;;
 
7795
 
 
7796
    openbsd*)
 
7797
      hardcode_direct=yes
 
7798
      hardcode_shlibpath_var=no
 
7799
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7800
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7801
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7802
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7803
        export_dynamic_flag_spec='${wl}-E'
 
7804
      else
 
7805
       case $host_os in
 
7806
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7807
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7808
           hardcode_libdir_flag_spec='-R$libdir'
 
7809
           ;;
 
7810
         *)
 
7811
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7812
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7813
           ;;
 
7814
       esac
 
7815
      fi
 
7816
      ;;
 
7817
 
 
7818
    os2*)
 
7819
      hardcode_libdir_flag_spec='-L$libdir'
 
7820
      hardcode_minus_L=yes
 
7821
      allow_undefined_flag=unsupported
 
7822
      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'
 
7823
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7824
      ;;
 
7825
 
 
7826
    osf3*)
 
7827
      if test "$GCC" = yes; then
 
7828
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7829
        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'
 
7830
      else
 
7831
        allow_undefined_flag=' -expect_unresolved \*'
 
7832
        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'
 
7833
      fi
 
7834
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7835
      hardcode_libdir_separator=:
 
7836
      ;;
 
7837
 
 
7838
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7839
      if test "$GCC" = yes; then
 
7840
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7841
        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'
 
7842
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7843
      else
 
7844
        allow_undefined_flag=' -expect_unresolved \*'
 
7845
        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'
 
7846
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7847
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
7848
 
 
7849
        # Both c and cxx compiler support -rpath directly
 
7850
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7851
      fi
 
7852
      hardcode_libdir_separator=:
 
7853
      ;;
 
7854
 
 
7855
    solaris*)
 
7856
      no_undefined_flag=' -z text'
 
7857
      if test "$GCC" = yes; then
 
7858
        wlarc='${wl}'
 
7859
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7860
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7861
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7862
      else
 
7863
        wlarc=''
 
7864
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7865
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7866
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7867
      fi
 
7868
      hardcode_libdir_flag_spec='-R$libdir'
 
7869
      hardcode_shlibpath_var=no
 
7870
      case $host_os in
 
7871
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7872
      *)
 
7873
        # The compiler driver will combine linker options so we
 
7874
        # cannot just pass the convience library names through
 
7875
        # without $wl, iff we do not link with $LD.
 
7876
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7877
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7878
        case $wlarc in
 
7879
        '')
 
7880
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7881
        *)
 
7882
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7883
        esac ;;
 
7884
      esac
 
7885
      link_all_deplibs=yes
 
7886
      ;;
 
7887
 
 
7888
    sunos4*)
 
7889
      if test "x$host_vendor" = xsequent; then
 
7890
        # Use $CC to link under sequent, because it throws in some extra .o
 
7891
        # files that make .init and .fini sections work.
 
7892
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7893
      else
 
7894
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7895
      fi
 
7896
      hardcode_libdir_flag_spec='-L$libdir'
 
7897
      hardcode_direct=yes
 
7898
      hardcode_minus_L=yes
 
7899
      hardcode_shlibpath_var=no
 
7900
      ;;
 
7901
 
 
7902
    sysv4)
 
7903
      case $host_vendor in
 
7904
        sni)
 
7905
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7906
          hardcode_direct=yes # is this really true???
 
7907
        ;;
 
7908
        siemens)
 
7909
          ## LD is ld it makes a PLAMLIB
 
7910
          ## CC just makes a GrossModule.
 
7911
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7912
          reload_cmds='$CC -r -o $output$reload_objs'
 
7913
          hardcode_direct=no
 
7914
        ;;
 
7915
        motorola)
 
7916
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7917
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7918
        ;;
 
7919
      esac
 
7920
      runpath_var='LD_RUN_PATH'
 
7921
      hardcode_shlibpath_var=no
 
7922
      ;;
 
7923
 
 
7924
    sysv4.3*)
 
7925
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7926
      hardcode_shlibpath_var=no
 
7927
      export_dynamic_flag_spec='-Bexport'
 
7928
      ;;
 
7929
 
 
7930
    sysv4*MP*)
 
7931
      if test -d /usr/nec; then
 
7932
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7933
        hardcode_shlibpath_var=no
 
7934
        runpath_var=LD_RUN_PATH
 
7935
        hardcode_runpath_var=yes
 
7936
        ld_shlibs=yes
 
7937
      fi
 
7938
      ;;
 
7939
 
 
7940
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
7941
      no_undefined_flag='${wl}-z,text'
 
7942
      archive_cmds_need_lc=no
 
7943
      hardcode_shlibpath_var=no
 
7944
      runpath_var='LD_RUN_PATH'
 
7945
 
 
7946
      if test "$GCC" = yes; then
 
7947
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7948
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7949
      else
 
7950
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7951
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7952
      fi
 
7953
      ;;
 
7954
 
 
7955
    sysv5* | sco3.2v5* | sco5v6*)
 
7956
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7957
      # link with -lc, and that would cause any symbols used from libc to
 
7958
      # always be unresolved, which means just about no library would
 
7959
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7960
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7961
      # as -z defs.
 
7962
      no_undefined_flag='${wl}-z,text'
 
7963
      allow_undefined_flag='${wl}-z,nodefs'
 
7964
      archive_cmds_need_lc=no
 
7965
      hardcode_shlibpath_var=no
 
7966
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7967
      hardcode_libdir_separator=':'
 
7968
      link_all_deplibs=yes
 
7969
      export_dynamic_flag_spec='${wl}-Bexport'
 
7970
      runpath_var='LD_RUN_PATH'
 
7971
 
 
7972
      if test "$GCC" = yes; then
 
7973
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7974
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7975
      else
 
7976
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7977
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7978
      fi
 
7979
      ;;
 
7980
 
 
7981
    uts4*)
 
7982
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7983
      hardcode_libdir_flag_spec='-L$libdir'
 
7984
      hardcode_shlibpath_var=no
 
7985
      ;;
 
7986
 
 
7987
    *)
 
7988
      ld_shlibs=no
 
7989
      ;;
 
7990
    esac
 
7991
  fi
 
7992
 
 
7993
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7994
echo "${ECHO_T}$ld_shlibs" >&6
 
7995
test "$ld_shlibs" = no && can_build_shared=no
 
7996
 
 
7997
#
 
7998
# Do we need to explicitly link libc?
 
7999
#
 
8000
case "x$archive_cmds_need_lc" in
 
8001
x|xyes)
 
8002
  # Assume -lc should be added
 
8003
  archive_cmds_need_lc=yes
 
8004
 
 
8005
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8006
    case $archive_cmds in
 
8007
    *'~'*)
 
8008
      # FIXME: we may have to deal with multi-command sequences.
 
8009
      ;;
 
8010
    '$CC '*)
 
8011
      # Test whether the compiler implicitly links with -lc since on some
 
8012
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8013
      # to ld, don't add -lc before -lgcc.
 
8014
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8015
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8016
      $rm conftest*
 
8017
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8018
 
 
8019
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8020
  (eval $ac_compile) 2>&5
 
8021
  ac_status=$?
 
8022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8023
  (exit $ac_status); } 2>conftest.err; then
 
8024
        soname=conftest
 
8025
        lib=conftest
 
8026
        libobjs=conftest.$ac_objext
 
8027
        deplibs=
 
8028
        wl=$lt_prog_compiler_wl
 
8029
        pic_flag=$lt_prog_compiler_pic
 
8030
        compiler_flags=-v
 
8031
        linker_flags=-v
 
8032
        verstring=
 
8033
        output_objdir=.
 
8034
        libname=conftest
 
8035
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8036
        allow_undefined_flag=
 
8037
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8038
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8039
  ac_status=$?
 
8040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8041
  (exit $ac_status); }
 
8042
        then
 
8043
          archive_cmds_need_lc=no
 
8044
        else
 
8045
          archive_cmds_need_lc=yes
 
8046
        fi
 
8047
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8048
      else
 
8049
        cat conftest.err 1>&5
 
8050
      fi
 
8051
      $rm conftest*
 
8052
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8053
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
8054
      ;;
 
8055
    esac
 
8056
  fi
 
8057
  ;;
 
8058
esac
 
8059
 
 
8060
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8061
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8062
library_names_spec=
 
8063
libname_spec='lib$name'
 
8064
soname_spec=
 
8065
shrext_cmds=".so"
 
8066
postinstall_cmds=
 
8067
postuninstall_cmds=
 
8068
finish_cmds=
 
8069
finish_eval=
 
8070
shlibpath_var=
 
8071
shlibpath_overrides_runpath=unknown
 
8072
version_type=none
 
8073
dynamic_linker="$host_os ld.so"
 
8074
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8075
if test "$GCC" = yes; then
 
8076
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8077
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8078
    # if the path contains ";" then we assume it to be the separator
 
8079
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8080
    # assumed that no part of a normal pathname contains ";" but that should
 
8081
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8082
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8083
  else
 
8084
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8085
  fi
 
8086
else
 
8087
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8088
fi
 
8089
need_lib_prefix=unknown
 
8090
hardcode_into_libs=no
 
8091
 
 
8092
# when you set need_version to no, make sure it does not cause -set_version
 
8093
# flags to be left without arguments
 
8094
need_version=unknown
 
8095
 
 
8096
case $host_os in
 
8097
aix3*)
 
8098
  version_type=linux
 
8099
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8100
  shlibpath_var=LIBPATH
 
8101
 
 
8102
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8103
  soname_spec='${libname}${release}${shared_ext}$major'
 
8104
  ;;
 
8105
 
 
8106
aix4* | aix5*)
 
8107
  version_type=linux
 
8108
  need_lib_prefix=no
 
8109
  need_version=no
 
8110
  hardcode_into_libs=yes
 
8111
  if test "$host_cpu" = ia64; then
 
8112
    # AIX 5 supports IA64
 
8113
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8114
    shlibpath_var=LD_LIBRARY_PATH
 
8115
  else
 
8116
    # With GCC up to 2.95.x, collect2 would create an import file
 
8117
    # for dependence libraries.  The import file would start with
 
8118
    # the line `#! .'.  This would cause the generated library to
 
8119
    # depend on `.', always an invalid library.  This was fixed in
 
8120
    # development snapshots of GCC prior to 3.0.
 
8121
    case $host_os in
 
8122
      aix4 | aix4.[01] | aix4.[01].*)
 
8123
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8124
           echo ' yes '
 
8125
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8126
        :
 
8127
      else
 
8128
        can_build_shared=no
 
8129
      fi
 
8130
      ;;
 
8131
    esac
 
8132
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8133
    # soname into executable. Probably we can add versioning support to
 
8134
    # collect2, so additional links can be useful in future.
 
8135
    if test "$aix_use_runtimelinking" = yes; then
 
8136
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8137
      # instead of lib<name>.a to let people know that these are not
 
8138
      # typical AIX shared libraries.
 
8139
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8140
    else
 
8141
      # We preserve .a as extension for shared libraries through AIX4.2
 
8142
      # and later when we are not doing run time linking.
 
8143
      library_names_spec='${libname}${release}.a $libname.a'
 
8144
      soname_spec='${libname}${release}${shared_ext}$major'
 
8145
    fi
 
8146
    shlibpath_var=LIBPATH
 
8147
  fi
 
8148
  ;;
 
8149
 
 
8150
amigaos*)
 
8151
  library_names_spec='$libname.ixlibrary $libname.a'
 
8152
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8153
  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'
 
8154
  ;;
 
8155
 
 
8156
beos*)
 
8157
  library_names_spec='${libname}${shared_ext}'
 
8158
  dynamic_linker="$host_os ld.so"
 
8159
  shlibpath_var=LIBRARY_PATH
 
8160
  ;;
 
8161
 
 
8162
bsdi[45]*)
 
8163
  version_type=linux
 
8164
  need_version=no
 
8165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8166
  soname_spec='${libname}${release}${shared_ext}$major'
 
8167
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8168
  shlibpath_var=LD_LIBRARY_PATH
 
8169
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8170
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8171
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8172
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8173
  # libtool to hard-code these into programs
 
8174
  ;;
 
8175
 
 
8176
cygwin* | mingw* | pw32*)
 
8177
  version_type=windows
 
8178
  shrext_cmds=".dll"
 
8179
  need_version=no
 
8180
  need_lib_prefix=no
 
8181
 
 
8182
  case $GCC,$host_os in
 
8183
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8184
    library_names_spec='$libname.dll.a'
 
8185
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8186
    postinstall_cmds='base_file=`basename \${file}`~
 
8187
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8188
      dldir=$destdir/`dirname \$dlpath`~
 
8189
      test -d \$dldir || mkdir -p \$dldir~
 
8190
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8191
      chmod a+x \$dldir/$dlname'
 
8192
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8193
      dlpath=$dir/\$dldll~
 
8194
       $rm \$dlpath'
 
8195
    shlibpath_overrides_runpath=yes
 
8196
 
 
8197
    case $host_os in
 
8198
    cygwin*)
 
8199
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8200
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8201
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8202
      ;;
 
8203
    mingw*)
 
8204
      # MinGW DLLs use traditional 'lib' prefix
 
8205
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8206
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8207
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8208
        # It is most probably a Windows format PATH printed by
 
8209
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8210
        # path with ; separators, and with drive letters. We can handle the
 
8211
        # drive letters (cygwin fileutils understands them), so leave them,
 
8212
        # especially as we might pass files found there to a mingw objdump,
 
8213
        # which wouldn't understand a cygwinified path. Ahh.
 
8214
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8215
      else
 
8216
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8217
      fi
 
8218
      ;;
 
8219
    pw32*)
 
8220
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8221
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8222
      ;;
 
8223
    esac
 
8224
    ;;
 
8225
 
 
8226
  *)
 
8227
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8228
    ;;
 
8229
  esac
 
8230
  dynamic_linker='Win32 ld.exe'
 
8231
  # FIXME: first we should search . and the directory the executable is in
 
8232
  shlibpath_var=PATH
 
8233
  ;;
 
8234
 
 
8235
darwin* | rhapsody*)
 
8236
  dynamic_linker="$host_os dyld"
 
8237
  version_type=darwin
 
8238
  need_lib_prefix=no
 
8239
  need_version=no
 
8240
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8241
  soname_spec='${libname}${release}${major}$shared_ext'
 
8242
  shlibpath_overrides_runpath=yes
 
8243
  shlibpath_var=DYLD_LIBRARY_PATH
 
8244
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
8245
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8246
  if test "$GCC" = yes; then
 
8247
    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"`
 
8248
  else
 
8249
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8250
  fi
 
8251
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8252
  ;;
 
8253
 
 
8254
dgux*)
 
8255
  version_type=linux
 
8256
  need_lib_prefix=no
 
8257
  need_version=no
 
8258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8259
  soname_spec='${libname}${release}${shared_ext}$major'
 
8260
  shlibpath_var=LD_LIBRARY_PATH
 
8261
  ;;
 
8262
 
 
8263
freebsd1*)
 
8264
  dynamic_linker=no
 
8265
  ;;
 
8266
 
 
8267
kfreebsd*-gnu)
 
8268
  version_type=linux
 
8269
  need_lib_prefix=no
 
8270
  need_version=no
 
8271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8272
  soname_spec='${libname}${release}${shared_ext}$major'
 
8273
  shlibpath_var=LD_LIBRARY_PATH
 
8274
  shlibpath_overrides_runpath=no
 
8275
  hardcode_into_libs=yes
 
8276
  dynamic_linker='GNU ld.so'
 
8277
  ;;
 
8278
 
 
8279
freebsd* | dragonfly*)
 
8280
  # DragonFly does not have aout.  When/if they implement a new
 
8281
  # versioning mechanism, adjust this.
 
8282
  if test -x /usr/bin/objformat; then
 
8283
    objformat=`/usr/bin/objformat`
 
8284
  else
 
8285
    case $host_os in
 
8286
    freebsd[123]*) objformat=aout ;;
 
8287
    *) objformat=elf ;;
 
8288
    esac
 
8289
  fi
 
8290
  version_type=freebsd-$objformat
 
8291
  case $version_type in
 
8292
    freebsd-elf*)
 
8293
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8294
      need_version=no
 
8295
      need_lib_prefix=no
 
8296
      ;;
 
8297
    freebsd-*)
 
8298
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8299
      need_version=yes
 
8300
      ;;
 
8301
  esac
 
8302
  shlibpath_var=LD_LIBRARY_PATH
 
8303
  case $host_os in
 
8304
  freebsd2*)
 
8305
    shlibpath_overrides_runpath=yes
 
8306
    ;;
 
8307
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8308
    shlibpath_overrides_runpath=yes
 
8309
    hardcode_into_libs=yes
 
8310
    ;;
 
8311
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8312
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8313
    shlibpath_overrides_runpath=no
 
8314
    hardcode_into_libs=yes
 
8315
    ;;
 
8316
  freebsd*) # from 4.6 on
 
8317
    shlibpath_overrides_runpath=yes
 
8318
    hardcode_into_libs=yes
 
8319
    ;;
 
8320
  esac
 
8321
  ;;
 
8322
 
 
8323
gnu*)
 
8324
  version_type=linux
 
8325
  need_lib_prefix=no
 
8326
  need_version=no
 
8327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8328
  soname_spec='${libname}${release}${shared_ext}$major'
 
8329
  shlibpath_var=LD_LIBRARY_PATH
 
8330
  hardcode_into_libs=yes
 
8331
  ;;
 
8332
 
 
8333
hpux9* | hpux10* | hpux11*)
 
8334
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8335
  # link against other versions.
 
8336
  version_type=sunos
 
8337
  need_lib_prefix=no
 
8338
  need_version=no
 
8339
  case $host_cpu in
 
8340
  ia64*)
 
8341
    shrext_cmds='.so'
 
8342
    hardcode_into_libs=yes
 
8343
    dynamic_linker="$host_os dld.so"
 
8344
    shlibpath_var=LD_LIBRARY_PATH
 
8345
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8346
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8347
    soname_spec='${libname}${release}${shared_ext}$major'
 
8348
    if test "X$HPUX_IA64_MODE" = X32; then
 
8349
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8350
    else
 
8351
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8352
    fi
 
8353
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8354
    ;;
 
8355
   hppa*64*)
 
8356
     shrext_cmds='.sl'
 
8357
     hardcode_into_libs=yes
 
8358
     dynamic_linker="$host_os dld.sl"
 
8359
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8360
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8361
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8362
     soname_spec='${libname}${release}${shared_ext}$major'
 
8363
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8364
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8365
     ;;
 
8366
   *)
 
8367
    shrext_cmds='.sl'
 
8368
    dynamic_linker="$host_os dld.sl"
 
8369
    shlibpath_var=SHLIB_PATH
 
8370
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8371
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8372
    soname_spec='${libname}${release}${shared_ext}$major'
 
8373
    ;;
 
8374
  esac
 
8375
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8376
  postinstall_cmds='chmod 555 $lib'
 
8377
  ;;
 
8378
 
 
8379
interix3*)
 
8380
  version_type=linux
 
8381
  need_lib_prefix=no
 
8382
  need_version=no
 
8383
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8384
  soname_spec='${libname}${release}${shared_ext}$major'
 
8385
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8386
  shlibpath_var=LD_LIBRARY_PATH
 
8387
  shlibpath_overrides_runpath=no
 
8388
  hardcode_into_libs=yes
 
8389
  ;;
 
8390
 
 
8391
irix5* | irix6* | nonstopux*)
 
8392
  case $host_os in
 
8393
    nonstopux*) version_type=nonstopux ;;
 
8394
    *)
 
8395
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8396
                version_type=linux
 
8397
        else
 
8398
                version_type=irix
 
8399
        fi ;;
 
8400
  esac
 
8401
  need_lib_prefix=no
 
8402
  need_version=no
 
8403
  soname_spec='${libname}${release}${shared_ext}$major'
 
8404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8405
  case $host_os in
 
8406
  irix5* | nonstopux*)
 
8407
    libsuff= shlibsuff=
 
8408
    ;;
 
8409
  *)
 
8410
    case $LD in # libtool.m4 will add one of these switches to LD
 
8411
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8412
      libsuff= shlibsuff= libmagic=32-bit;;
 
8413
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8414
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8415
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8416
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8417
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8418
    esac
 
8419
    ;;
 
8420
  esac
 
8421
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8422
  shlibpath_overrides_runpath=no
 
8423
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8424
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8425
  hardcode_into_libs=yes
 
8426
  ;;
 
8427
 
 
8428
# No shared lib support for Linux oldld, aout, or coff.
 
8429
linux*oldld* | linux*aout* | linux*coff*)
 
8430
  dynamic_linker=no
 
8431
  ;;
 
8432
 
 
8433
# This must be Linux ELF.
 
8434
linux*)
 
8435
  version_type=linux
 
8436
  need_lib_prefix=no
 
8437
  need_version=no
 
8438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8439
  soname_spec='${libname}${release}${shared_ext}$major'
 
8440
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8441
  shlibpath_var=LD_LIBRARY_PATH
 
8442
  shlibpath_overrides_runpath=no
 
8443
  # This implies no fast_install, which is unacceptable.
 
8444
  # Some rework will be needed to allow for fast_install
 
8445
  # before this can be enabled.
 
8446
  hardcode_into_libs=yes
 
8447
 
 
8448
  # Append ld.so.conf contents to the search path
 
8449
  if test -f /etc/ld.so.conf; then
 
8450
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8451
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8452
  fi
 
8453
 
 
8454
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8455
  # powerpc, because MkLinux only supported shared libraries with the
 
8456
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8457
  # most powerpc-linux boxes support dynamic linking these days and
 
8458
  # people can always --disable-shared, the test was removed, and we
 
8459
  # assume the GNU/Linux dynamic linker is in use.
 
8460
  dynamic_linker='GNU/Linux ld.so'
 
8461
  ;;
 
8462
 
 
8463
netbsdelf*-gnu)
 
8464
  version_type=linux
 
8465
  need_lib_prefix=no
 
8466
  need_version=no
 
8467
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8468
  soname_spec='${libname}${release}${shared_ext}$major'
 
8469
  shlibpath_var=LD_LIBRARY_PATH
 
8470
  shlibpath_overrides_runpath=no
 
8471
  hardcode_into_libs=yes
 
8472
  dynamic_linker='NetBSD ld.elf_so'
 
8473
  ;;
 
8474
 
 
8475
knetbsd*-gnu)
 
8476
  version_type=linux
 
8477
  need_lib_prefix=no
 
8478
  need_version=no
 
8479
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8480
  soname_spec='${libname}${release}${shared_ext}$major'
 
8481
  shlibpath_var=LD_LIBRARY_PATH
 
8482
  shlibpath_overrides_runpath=no
 
8483
  hardcode_into_libs=yes
 
8484
  dynamic_linker='GNU ld.so'
 
8485
  ;;
 
8486
 
 
8487
netbsd*)
 
8488
  version_type=sunos
 
8489
  need_lib_prefix=no
 
8490
  need_version=no
 
8491
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8492
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8493
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8494
    dynamic_linker='NetBSD (a.out) ld.so'
 
8495
  else
 
8496
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8497
    soname_spec='${libname}${release}${shared_ext}$major'
 
8498
    dynamic_linker='NetBSD ld.elf_so'
 
8499
  fi
 
8500
  shlibpath_var=LD_LIBRARY_PATH
 
8501
  shlibpath_overrides_runpath=yes
 
8502
  hardcode_into_libs=yes
 
8503
  ;;
 
8504
 
 
8505
newsos6)
 
8506
  version_type=linux
 
8507
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8508
  shlibpath_var=LD_LIBRARY_PATH
 
8509
  shlibpath_overrides_runpath=yes
 
8510
  ;;
 
8511
 
 
8512
nto-qnx*)
 
8513
  version_type=linux
 
8514
  need_lib_prefix=no
 
8515
  need_version=no
 
8516
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8517
  soname_spec='${libname}${release}${shared_ext}$major'
 
8518
  shlibpath_var=LD_LIBRARY_PATH
 
8519
  shlibpath_overrides_runpath=yes
 
8520
  ;;
 
8521
 
 
8522
openbsd*)
 
8523
  version_type=sunos
 
8524
  sys_lib_dlsearch_path_spec="/usr/lib"
 
8525
  need_lib_prefix=no
 
8526
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8527
  case $host_os in
 
8528
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8529
    *)                         need_version=no  ;;
 
8530
  esac
 
8531
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8532
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8533
  shlibpath_var=LD_LIBRARY_PATH
 
8534
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8535
    case $host_os in
 
8536
      openbsd2.[89] | openbsd2.[89].*)
 
8537
        shlibpath_overrides_runpath=no
 
8538
        ;;
 
8539
      *)
 
8540
        shlibpath_overrides_runpath=yes
 
8541
        ;;
 
8542
      esac
 
8543
  else
 
8544
    shlibpath_overrides_runpath=yes
 
8545
  fi
 
8546
  ;;
 
8547
 
 
8548
os2*)
 
8549
  libname_spec='$name'
 
8550
  shrext_cmds=".dll"
 
8551
  need_lib_prefix=no
 
8552
  library_names_spec='$libname${shared_ext} $libname.a'
 
8553
  dynamic_linker='OS/2 ld.exe'
 
8554
  shlibpath_var=LIBPATH
 
8555
  ;;
 
8556
 
 
8557
osf3* | osf4* | osf5*)
 
8558
  version_type=osf
 
8559
  need_lib_prefix=no
 
8560
  need_version=no
 
8561
  soname_spec='${libname}${release}${shared_ext}$major'
 
8562
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8563
  shlibpath_var=LD_LIBRARY_PATH
 
8564
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8565
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8566
  ;;
 
8567
 
 
8568
solaris*)
 
8569
  version_type=linux
 
8570
  need_lib_prefix=no
 
8571
  need_version=no
 
8572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8573
  soname_spec='${libname}${release}${shared_ext}$major'
 
8574
  shlibpath_var=LD_LIBRARY_PATH
 
8575
  shlibpath_overrides_runpath=yes
 
8576
  hardcode_into_libs=yes
 
8577
  # ldd complains unless libraries are executable
 
8578
  postinstall_cmds='chmod +x $lib'
 
8579
  ;;
 
8580
 
 
8581
sunos4*)
 
8582
  version_type=sunos
 
8583
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8584
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8585
  shlibpath_var=LD_LIBRARY_PATH
 
8586
  shlibpath_overrides_runpath=yes
 
8587
  if test "$with_gnu_ld" = yes; then
 
8588
    need_lib_prefix=no
 
8589
  fi
 
8590
  need_version=yes
 
8591
  ;;
 
8592
 
 
8593
sysv4 | sysv4.3*)
 
8594
  version_type=linux
 
8595
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8596
  soname_spec='${libname}${release}${shared_ext}$major'
 
8597
  shlibpath_var=LD_LIBRARY_PATH
 
8598
  case $host_vendor in
 
8599
    sni)
 
8600
      shlibpath_overrides_runpath=no
 
8601
      need_lib_prefix=no
 
8602
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8603
      runpath_var=LD_RUN_PATH
 
8604
      ;;
 
8605
    siemens)
 
8606
      need_lib_prefix=no
 
8607
      ;;
 
8608
    motorola)
 
8609
      need_lib_prefix=no
 
8610
      need_version=no
 
8611
      shlibpath_overrides_runpath=no
 
8612
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8613
      ;;
 
8614
  esac
 
8615
  ;;
 
8616
 
 
8617
sysv4*MP*)
 
8618
  if test -d /usr/nec ;then
 
8619
    version_type=linux
 
8620
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8621
    soname_spec='$libname${shared_ext}.$major'
 
8622
    shlibpath_var=LD_LIBRARY_PATH
 
8623
  fi
 
8624
  ;;
 
8625
 
 
8626
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8627
  version_type=freebsd-elf
 
8628
  need_lib_prefix=no
 
8629
  need_version=no
 
8630
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8631
  soname_spec='${libname}${release}${shared_ext}$major'
 
8632
  shlibpath_var=LD_LIBRARY_PATH
 
8633
  hardcode_into_libs=yes
 
8634
  if test "$with_gnu_ld" = yes; then
 
8635
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8636
    shlibpath_overrides_runpath=no
 
8637
  else
 
8638
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8639
    shlibpath_overrides_runpath=yes
 
8640
    case $host_os in
 
8641
      sco3.2v5*)
 
8642
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8643
        ;;
 
8644
    esac
 
8645
  fi
 
8646
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8647
  ;;
 
8648
 
 
8649
uts4*)
 
8650
  version_type=linux
 
8651
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8652
  soname_spec='${libname}${release}${shared_ext}$major'
 
8653
  shlibpath_var=LD_LIBRARY_PATH
 
8654
  ;;
 
8655
 
 
8656
*)
 
8657
  dynamic_linker=no
 
8658
  ;;
 
8659
esac
 
8660
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8661
echo "${ECHO_T}$dynamic_linker" >&6
 
8662
test "$dynamic_linker" = no && can_build_shared=no
 
8663
 
 
8664
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8665
if test "$GCC" = yes; then
 
8666
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8667
fi
 
8668
 
 
8669
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8670
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8671
hardcode_action=
 
8672
if test -n "$hardcode_libdir_flag_spec" || \
 
8673
   test -n "$runpath_var" || \
 
8674
   test "X$hardcode_automatic" = "Xyes" ; then
 
8675
 
 
8676
  # We can hardcode non-existant directories.
 
8677
  if test "$hardcode_direct" != no &&
 
8678
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8679
     # have to relink, otherwise we might link with an installed library
 
8680
     # when we should be linking with a yet-to-be-installed one
 
8681
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8682
     test "$hardcode_minus_L" != no; then
 
8683
    # Linking always hardcodes the temporary library directory.
 
8684
    hardcode_action=relink
 
8685
  else
 
8686
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8687
    hardcode_action=immediate
 
8688
  fi
 
8689
else
 
8690
  # We cannot hardcode anything, or else we can only hardcode existing
 
8691
  # directories.
 
8692
  hardcode_action=unsupported
 
8693
fi
 
8694
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8695
echo "${ECHO_T}$hardcode_action" >&6
 
8696
 
 
8697
if test "$hardcode_action" = relink; then
 
8698
  # Fast installation is not supported
 
8699
  enable_fast_install=no
 
8700
elif test "$shlibpath_overrides_runpath" = yes ||
 
8701
     test "$enable_shared" = no; then
 
8702
  # Fast installation is not necessary
 
8703
  enable_fast_install=needless
 
8704
fi
 
8705
 
 
8706
striplib=
 
8707
old_striplib=
 
8708
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8709
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8710
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8711
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8712
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8713
  echo "$as_me:$LINENO: result: yes" >&5
 
8714
echo "${ECHO_T}yes" >&6
 
8715
else
 
8716
# FIXME - insert some real tests, host_os isn't really good enough
 
8717
  case $host_os in
 
8718
   darwin*)
 
8719
       if test -n "$STRIP" ; then
 
8720
         striplib="$STRIP -x"
 
8721
         echo "$as_me:$LINENO: result: yes" >&5
 
8722
echo "${ECHO_T}yes" >&6
 
8723
       else
 
8724
  echo "$as_me:$LINENO: result: no" >&5
 
8725
echo "${ECHO_T}no" >&6
 
8726
fi
 
8727
       ;;
 
8728
   *)
 
8729
  echo "$as_me:$LINENO: result: no" >&5
 
8730
echo "${ECHO_T}no" >&6
 
8731
    ;;
 
8732
  esac
 
8733
fi
 
8734
 
 
8735
if test "x$enable_dlopen" != xyes; then
 
8736
  enable_dlopen=unknown
 
8737
  enable_dlopen_self=unknown
 
8738
  enable_dlopen_self_static=unknown
 
8739
else
 
8740
  lt_cv_dlopen=no
 
8741
  lt_cv_dlopen_libs=
 
8742
 
 
8743
  case $host_os in
 
8744
  beos*)
 
8745
    lt_cv_dlopen="load_add_on"
 
8746
    lt_cv_dlopen_libs=
 
8747
    lt_cv_dlopen_self=yes
 
8748
    ;;
 
8749
 
 
8750
  mingw* | pw32*)
 
8751
    lt_cv_dlopen="LoadLibrary"
 
8752
    lt_cv_dlopen_libs=
 
8753
   ;;
 
8754
 
 
8755
  cygwin*)
 
8756
    lt_cv_dlopen="dlopen"
 
8757
    lt_cv_dlopen_libs=
 
8758
   ;;
 
8759
 
 
8760
  darwin*)
 
8761
  # if libdl is installed we need to link against it
 
8762
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8763
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8764
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8765
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8766
else
 
8767
  ac_check_lib_save_LIBS=$LIBS
 
8768
LIBS="-ldl  $LIBS"
 
8769
cat >conftest.$ac_ext <<_ACEOF
 
8770
/* confdefs.h.  */
 
8771
_ACEOF
 
8772
cat confdefs.h >>conftest.$ac_ext
 
8773
cat >>conftest.$ac_ext <<_ACEOF
 
8774
/* end confdefs.h.  */
 
8775
 
 
8776
/* Override any gcc2 internal prototype to avoid an error.  */
 
8777
#ifdef __cplusplus
 
8778
extern "C"
 
8779
#endif
 
8780
/* We use char because int might match the return type of a gcc2
 
8781
   builtin and then its argument prototype would still apply.  */
 
8782
char dlopen ();
 
8783
int
 
8784
main ()
 
8785
{
 
8786
dlopen ();
 
8787
  ;
 
8788
  return 0;
 
8789
}
 
8790
_ACEOF
 
8791
rm -f conftest.$ac_objext conftest$ac_exeext
 
8792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8793
  (eval $ac_link) 2>conftest.er1
 
8794
  ac_status=$?
 
8795
  grep -v '^ *+' conftest.er1 >conftest.err
 
8796
  rm -f conftest.er1
 
8797
  cat conftest.err >&5
 
8798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8799
  (exit $ac_status); } &&
 
8800
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8802
  (eval $ac_try) 2>&5
 
8803
  ac_status=$?
 
8804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8805
  (exit $ac_status); }; } &&
 
8806
         { ac_try='test -s conftest$ac_exeext'
 
8807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8808
  (eval $ac_try) 2>&5
 
8809
  ac_status=$?
 
8810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8811
  (exit $ac_status); }; }; then
 
8812
  ac_cv_lib_dl_dlopen=yes
 
8813
else
 
8814
  echo "$as_me: failed program was:" >&5
 
8815
sed 's/^/| /' conftest.$ac_ext >&5
 
8816
 
 
8817
ac_cv_lib_dl_dlopen=no
 
8818
fi
 
8819
rm -f conftest.err conftest.$ac_objext \
 
8820
      conftest$ac_exeext conftest.$ac_ext
 
8821
LIBS=$ac_check_lib_save_LIBS
 
8822
fi
 
8823
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8824
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8825
if test $ac_cv_lib_dl_dlopen = yes; then
 
8826
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8827
else
 
8828
 
 
8829
    lt_cv_dlopen="dyld"
 
8830
    lt_cv_dlopen_libs=
 
8831
    lt_cv_dlopen_self=yes
 
8832
 
 
8833
fi
 
8834
 
 
8835
   ;;
 
8836
 
 
8837
  *)
 
8838
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8839
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8840
if test "${ac_cv_func_shl_load+set}" = set; then
 
8841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8842
else
 
8843
  cat >conftest.$ac_ext <<_ACEOF
 
8844
/* confdefs.h.  */
 
8845
_ACEOF
 
8846
cat confdefs.h >>conftest.$ac_ext
 
8847
cat >>conftest.$ac_ext <<_ACEOF
 
8848
/* end confdefs.h.  */
 
8849
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8850
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8851
#define shl_load innocuous_shl_load
 
8852
 
 
8853
/* System header to define __stub macros and hopefully few prototypes,
 
8854
    which can conflict with char shl_load (); below.
 
8855
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8856
    <limits.h> exists even on freestanding compilers.  */
 
8857
 
 
8858
#ifdef __STDC__
 
8859
# include <limits.h>
 
8860
#else
 
8861
# include <assert.h>
 
8862
#endif
 
8863
 
 
8864
#undef shl_load
 
8865
 
 
8866
/* Override any gcc2 internal prototype to avoid an error.  */
 
8867
#ifdef __cplusplus
 
8868
extern "C"
 
8869
{
 
8870
#endif
 
8871
/* We use char because int might match the return type of a gcc2
 
8872
   builtin and then its argument prototype would still apply.  */
 
8873
char shl_load ();
 
8874
/* The GNU C library defines this for functions which it implements
 
8875
    to always fail with ENOSYS.  Some functions are actually named
 
8876
    something starting with __ and the normal name is an alias.  */
 
8877
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8878
choke me
 
8879
#else
 
8880
char (*f) () = shl_load;
 
8881
#endif
 
8882
#ifdef __cplusplus
 
8883
}
 
8884
#endif
 
8885
 
 
8886
int
 
8887
main ()
 
8888
{
 
8889
return f != shl_load;
 
8890
  ;
 
8891
  return 0;
 
8892
}
 
8893
_ACEOF
 
8894
rm -f conftest.$ac_objext conftest$ac_exeext
 
8895
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8896
  (eval $ac_link) 2>conftest.er1
 
8897
  ac_status=$?
 
8898
  grep -v '^ *+' conftest.er1 >conftest.err
 
8899
  rm -f conftest.er1
 
8900
  cat conftest.err >&5
 
8901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8902
  (exit $ac_status); } &&
 
8903
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8905
  (eval $ac_try) 2>&5
 
8906
  ac_status=$?
 
8907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8908
  (exit $ac_status); }; } &&
 
8909
         { ac_try='test -s conftest$ac_exeext'
 
8910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8911
  (eval $ac_try) 2>&5
 
8912
  ac_status=$?
 
8913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8914
  (exit $ac_status); }; }; then
 
8915
  ac_cv_func_shl_load=yes
 
8916
else
 
8917
  echo "$as_me: failed program was:" >&5
 
8918
sed 's/^/| /' conftest.$ac_ext >&5
 
8919
 
 
8920
ac_cv_func_shl_load=no
 
8921
fi
 
8922
rm -f conftest.err conftest.$ac_objext \
 
8923
      conftest$ac_exeext conftest.$ac_ext
 
8924
fi
 
8925
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8926
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8927
if test $ac_cv_func_shl_load = yes; then
 
8928
  lt_cv_dlopen="shl_load"
 
8929
else
 
8930
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8931
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8932
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8934
else
 
8935
  ac_check_lib_save_LIBS=$LIBS
 
8936
LIBS="-ldld  $LIBS"
 
8937
cat >conftest.$ac_ext <<_ACEOF
 
8938
/* confdefs.h.  */
 
8939
_ACEOF
 
8940
cat confdefs.h >>conftest.$ac_ext
 
8941
cat >>conftest.$ac_ext <<_ACEOF
 
8942
/* end confdefs.h.  */
 
8943
 
 
8944
/* Override any gcc2 internal prototype to avoid an error.  */
 
8945
#ifdef __cplusplus
 
8946
extern "C"
 
8947
#endif
 
8948
/* We use char because int might match the return type of a gcc2
 
8949
   builtin and then its argument prototype would still apply.  */
 
8950
char shl_load ();
 
8951
int
 
8952
main ()
 
8953
{
 
8954
shl_load ();
 
8955
  ;
 
8956
  return 0;
 
8957
}
 
8958
_ACEOF
 
8959
rm -f conftest.$ac_objext conftest$ac_exeext
 
8960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8961
  (eval $ac_link) 2>conftest.er1
 
8962
  ac_status=$?
 
8963
  grep -v '^ *+' conftest.er1 >conftest.err
 
8964
  rm -f conftest.er1
 
8965
  cat conftest.err >&5
 
8966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8967
  (exit $ac_status); } &&
 
8968
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8969
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8970
  (eval $ac_try) 2>&5
 
8971
  ac_status=$?
 
8972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8973
  (exit $ac_status); }; } &&
 
8974
         { ac_try='test -s conftest$ac_exeext'
 
8975
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8976
  (eval $ac_try) 2>&5
 
8977
  ac_status=$?
 
8978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8979
  (exit $ac_status); }; }; then
 
8980
  ac_cv_lib_dld_shl_load=yes
 
8981
else
 
8982
  echo "$as_me: failed program was:" >&5
 
8983
sed 's/^/| /' conftest.$ac_ext >&5
 
8984
 
 
8985
ac_cv_lib_dld_shl_load=no
 
8986
fi
 
8987
rm -f conftest.err conftest.$ac_objext \
 
8988
      conftest$ac_exeext conftest.$ac_ext
 
8989
LIBS=$ac_check_lib_save_LIBS
 
8990
fi
 
8991
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8992
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8993
if test $ac_cv_lib_dld_shl_load = yes; then
 
8994
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8995
else
 
8996
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8997
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8998
if test "${ac_cv_func_dlopen+set}" = set; then
 
8999
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9000
else
 
9001
  cat >conftest.$ac_ext <<_ACEOF
 
9002
/* confdefs.h.  */
 
9003
_ACEOF
 
9004
cat confdefs.h >>conftest.$ac_ext
 
9005
cat >>conftest.$ac_ext <<_ACEOF
 
9006
/* end confdefs.h.  */
 
9007
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9008
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9009
#define dlopen innocuous_dlopen
 
9010
 
 
9011
/* System header to define __stub macros and hopefully few prototypes,
 
9012
    which can conflict with char dlopen (); below.
 
9013
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9014
    <limits.h> exists even on freestanding compilers.  */
 
9015
 
 
9016
#ifdef __STDC__
 
9017
# include <limits.h>
 
9018
#else
 
9019
# include <assert.h>
 
9020
#endif
 
9021
 
 
9022
#undef dlopen
 
9023
 
 
9024
/* Override any gcc2 internal prototype to avoid an error.  */
 
9025
#ifdef __cplusplus
 
9026
extern "C"
 
9027
{
 
9028
#endif
 
9029
/* We use char because int might match the return type of a gcc2
 
9030
   builtin and then its argument prototype would still apply.  */
 
9031
char dlopen ();
 
9032
/* The GNU C library defines this for functions which it implements
 
9033
    to always fail with ENOSYS.  Some functions are actually named
 
9034
    something starting with __ and the normal name is an alias.  */
 
9035
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9036
choke me
 
9037
#else
 
9038
char (*f) () = dlopen;
 
9039
#endif
 
9040
#ifdef __cplusplus
 
9041
}
 
9042
#endif
 
9043
 
 
9044
int
 
9045
main ()
 
9046
{
 
9047
return f != dlopen;
 
9048
  ;
 
9049
  return 0;
 
9050
}
 
9051
_ACEOF
 
9052
rm -f conftest.$ac_objext conftest$ac_exeext
 
9053
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9054
  (eval $ac_link) 2>conftest.er1
 
9055
  ac_status=$?
 
9056
  grep -v '^ *+' conftest.er1 >conftest.err
 
9057
  rm -f conftest.er1
 
9058
  cat conftest.err >&5
 
9059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9060
  (exit $ac_status); } &&
 
9061
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9063
  (eval $ac_try) 2>&5
 
9064
  ac_status=$?
 
9065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9066
  (exit $ac_status); }; } &&
 
9067
         { ac_try='test -s conftest$ac_exeext'
 
9068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9069
  (eval $ac_try) 2>&5
 
9070
  ac_status=$?
 
9071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9072
  (exit $ac_status); }; }; then
 
9073
  ac_cv_func_dlopen=yes
 
9074
else
 
9075
  echo "$as_me: failed program was:" >&5
 
9076
sed 's/^/| /' conftest.$ac_ext >&5
 
9077
 
 
9078
ac_cv_func_dlopen=no
 
9079
fi
 
9080
rm -f conftest.err conftest.$ac_objext \
 
9081
      conftest$ac_exeext conftest.$ac_ext
 
9082
fi
 
9083
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9084
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
9085
if test $ac_cv_func_dlopen = yes; then
 
9086
  lt_cv_dlopen="dlopen"
 
9087
else
 
9088
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9089
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9090
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9092
else
 
9093
  ac_check_lib_save_LIBS=$LIBS
 
9094
LIBS="-ldl  $LIBS"
 
9095
cat >conftest.$ac_ext <<_ACEOF
 
9096
/* confdefs.h.  */
 
9097
_ACEOF
 
9098
cat confdefs.h >>conftest.$ac_ext
 
9099
cat >>conftest.$ac_ext <<_ACEOF
 
9100
/* end confdefs.h.  */
 
9101
 
 
9102
/* Override any gcc2 internal prototype to avoid an error.  */
 
9103
#ifdef __cplusplus
 
9104
extern "C"
 
9105
#endif
 
9106
/* We use char because int might match the return type of a gcc2
 
9107
   builtin and then its argument prototype would still apply.  */
 
9108
char dlopen ();
 
9109
int
 
9110
main ()
 
9111
{
 
9112
dlopen ();
 
9113
  ;
 
9114
  return 0;
 
9115
}
 
9116
_ACEOF
 
9117
rm -f conftest.$ac_objext conftest$ac_exeext
 
9118
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9119
  (eval $ac_link) 2>conftest.er1
 
9120
  ac_status=$?
 
9121
  grep -v '^ *+' conftest.er1 >conftest.err
 
9122
  rm -f conftest.er1
 
9123
  cat conftest.err >&5
 
9124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9125
  (exit $ac_status); } &&
 
9126
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9128
  (eval $ac_try) 2>&5
 
9129
  ac_status=$?
 
9130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9131
  (exit $ac_status); }; } &&
 
9132
         { ac_try='test -s conftest$ac_exeext'
 
9133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9134
  (eval $ac_try) 2>&5
 
9135
  ac_status=$?
 
9136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9137
  (exit $ac_status); }; }; then
 
9138
  ac_cv_lib_dl_dlopen=yes
 
9139
else
 
9140
  echo "$as_me: failed program was:" >&5
 
9141
sed 's/^/| /' conftest.$ac_ext >&5
 
9142
 
 
9143
ac_cv_lib_dl_dlopen=no
 
9144
fi
 
9145
rm -f conftest.err conftest.$ac_objext \
 
9146
      conftest$ac_exeext conftest.$ac_ext
 
9147
LIBS=$ac_check_lib_save_LIBS
 
9148
fi
 
9149
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9150
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9151
if test $ac_cv_lib_dl_dlopen = yes; then
 
9152
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9153
else
 
9154
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9155
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
9156
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9158
else
 
9159
  ac_check_lib_save_LIBS=$LIBS
 
9160
LIBS="-lsvld  $LIBS"
 
9161
cat >conftest.$ac_ext <<_ACEOF
 
9162
/* confdefs.h.  */
 
9163
_ACEOF
 
9164
cat confdefs.h >>conftest.$ac_ext
 
9165
cat >>conftest.$ac_ext <<_ACEOF
 
9166
/* end confdefs.h.  */
 
9167
 
 
9168
/* Override any gcc2 internal prototype to avoid an error.  */
 
9169
#ifdef __cplusplus
 
9170
extern "C"
 
9171
#endif
 
9172
/* We use char because int might match the return type of a gcc2
 
9173
   builtin and then its argument prototype would still apply.  */
 
9174
char dlopen ();
 
9175
int
 
9176
main ()
 
9177
{
 
9178
dlopen ();
 
9179
  ;
 
9180
  return 0;
 
9181
}
 
9182
_ACEOF
 
9183
rm -f conftest.$ac_objext conftest$ac_exeext
 
9184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9185
  (eval $ac_link) 2>conftest.er1
 
9186
  ac_status=$?
 
9187
  grep -v '^ *+' conftest.er1 >conftest.err
 
9188
  rm -f conftest.er1
 
9189
  cat conftest.err >&5
 
9190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9191
  (exit $ac_status); } &&
 
9192
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9194
  (eval $ac_try) 2>&5
 
9195
  ac_status=$?
 
9196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9197
  (exit $ac_status); }; } &&
 
9198
         { ac_try='test -s conftest$ac_exeext'
 
9199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9200
  (eval $ac_try) 2>&5
 
9201
  ac_status=$?
 
9202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9203
  (exit $ac_status); }; }; then
 
9204
  ac_cv_lib_svld_dlopen=yes
 
9205
else
 
9206
  echo "$as_me: failed program was:" >&5
 
9207
sed 's/^/| /' conftest.$ac_ext >&5
 
9208
 
 
9209
ac_cv_lib_svld_dlopen=no
 
9210
fi
 
9211
rm -f conftest.err conftest.$ac_objext \
 
9212
      conftest$ac_exeext conftest.$ac_ext
 
9213
LIBS=$ac_check_lib_save_LIBS
 
9214
fi
 
9215
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9216
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9217
if test $ac_cv_lib_svld_dlopen = yes; then
 
9218
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9219
else
 
9220
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9221
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9222
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9224
else
 
9225
  ac_check_lib_save_LIBS=$LIBS
 
9226
LIBS="-ldld  $LIBS"
 
9227
cat >conftest.$ac_ext <<_ACEOF
 
9228
/* confdefs.h.  */
 
9229
_ACEOF
 
9230
cat confdefs.h >>conftest.$ac_ext
 
9231
cat >>conftest.$ac_ext <<_ACEOF
 
9232
/* end confdefs.h.  */
 
9233
 
 
9234
/* Override any gcc2 internal prototype to avoid an error.  */
 
9235
#ifdef __cplusplus
 
9236
extern "C"
 
9237
#endif
 
9238
/* We use char because int might match the return type of a gcc2
 
9239
   builtin and then its argument prototype would still apply.  */
 
9240
char dld_link ();
 
9241
int
 
9242
main ()
 
9243
{
 
9244
dld_link ();
 
9245
  ;
 
9246
  return 0;
 
9247
}
 
9248
_ACEOF
 
9249
rm -f conftest.$ac_objext conftest$ac_exeext
 
9250
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9251
  (eval $ac_link) 2>conftest.er1
 
9252
  ac_status=$?
 
9253
  grep -v '^ *+' conftest.er1 >conftest.err
 
9254
  rm -f conftest.er1
 
9255
  cat conftest.err >&5
 
9256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9257
  (exit $ac_status); } &&
 
9258
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9260
  (eval $ac_try) 2>&5
 
9261
  ac_status=$?
 
9262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9263
  (exit $ac_status); }; } &&
 
9264
         { ac_try='test -s conftest$ac_exeext'
 
9265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9266
  (eval $ac_try) 2>&5
 
9267
  ac_status=$?
 
9268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9269
  (exit $ac_status); }; }; then
 
9270
  ac_cv_lib_dld_dld_link=yes
 
9271
else
 
9272
  echo "$as_me: failed program was:" >&5
 
9273
sed 's/^/| /' conftest.$ac_ext >&5
 
9274
 
 
9275
ac_cv_lib_dld_dld_link=no
 
9276
fi
 
9277
rm -f conftest.err conftest.$ac_objext \
 
9278
      conftest$ac_exeext conftest.$ac_ext
 
9279
LIBS=$ac_check_lib_save_LIBS
 
9280
fi
 
9281
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9282
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9283
if test $ac_cv_lib_dld_dld_link = yes; then
 
9284
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9285
fi
 
9286
 
 
9287
 
 
9288
fi
 
9289
 
 
9290
 
 
9291
fi
 
9292
 
 
9293
 
 
9294
fi
 
9295
 
 
9296
 
 
9297
fi
 
9298
 
 
9299
 
 
9300
fi
 
9301
 
 
9302
    ;;
 
9303
  esac
 
9304
 
 
9305
  if test "x$lt_cv_dlopen" != xno; then
 
9306
    enable_dlopen=yes
 
9307
  else
 
9308
    enable_dlopen=no
 
9309
  fi
 
9310
 
 
9311
  case $lt_cv_dlopen in
 
9312
  dlopen)
 
9313
    save_CPPFLAGS="$CPPFLAGS"
 
9314
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9315
 
 
9316
    save_LDFLAGS="$LDFLAGS"
 
9317
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9318
 
 
9319
    save_LIBS="$LIBS"
 
9320
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9321
 
 
9322
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9323
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9324
if test "${lt_cv_dlopen_self+set}" = set; then
 
9325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9326
else
 
9327
          if test "$cross_compiling" = yes; then :
 
9328
  lt_cv_dlopen_self=cross
 
9329
else
 
9330
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9331
  lt_status=$lt_dlunknown
 
9332
  cat > conftest.$ac_ext <<EOF
 
9333
#line 9333 "configure"
 
9334
#include "confdefs.h"
 
9335
 
 
9336
#if HAVE_DLFCN_H
 
9337
#include <dlfcn.h>
 
9338
#endif
 
9339
 
 
9340
#include <stdio.h>
 
9341
 
 
9342
#ifdef RTLD_GLOBAL
 
9343
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9344
#else
 
9345
#  ifdef DL_GLOBAL
 
9346
#    define LT_DLGLOBAL         DL_GLOBAL
 
9347
#  else
 
9348
#    define LT_DLGLOBAL         0
 
9349
#  endif
 
9350
#endif
 
9351
 
 
9352
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9353
   find out it does not work in some platform. */
 
9354
#ifndef LT_DLLAZY_OR_NOW
 
9355
#  ifdef RTLD_LAZY
 
9356
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9357
#  else
 
9358
#    ifdef DL_LAZY
 
9359
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9360
#    else
 
9361
#      ifdef RTLD_NOW
 
9362
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9363
#      else
 
9364
#        ifdef DL_NOW
 
9365
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9366
#        else
 
9367
#          define LT_DLLAZY_OR_NOW      0
 
9368
#        endif
 
9369
#      endif
 
9370
#    endif
 
9371
#  endif
 
9372
#endif
 
9373
 
 
9374
#ifdef __cplusplus
 
9375
extern "C" void exit (int);
 
9376
#endif
 
9377
 
 
9378
void fnord() { int i=42;}
 
9379
int main ()
 
9380
{
 
9381
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9382
  int status = $lt_dlunknown;
 
9383
 
 
9384
  if (self)
 
9385
    {
 
9386
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9387
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9388
      /* dlclose (self); */
 
9389
    }
 
9390
  else
 
9391
    puts (dlerror ());
 
9392
 
 
9393
    exit (status);
 
9394
}
 
9395
EOF
 
9396
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9397
  (eval $ac_link) 2>&5
 
9398
  ac_status=$?
 
9399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9400
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9401
    (./conftest; exit; ) >&5 2>/dev/null
 
9402
    lt_status=$?
 
9403
    case x$lt_status in
 
9404
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9405
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9406
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
9407
    esac
 
9408
  else :
 
9409
    # compilation failed
 
9410
    lt_cv_dlopen_self=no
 
9411
  fi
 
9412
fi
 
9413
rm -fr conftest*
 
9414
 
 
9415
 
 
9416
fi
 
9417
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9418
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9419
 
 
9420
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9421
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
9422
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9423
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9424
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9426
else
 
9427
          if test "$cross_compiling" = yes; then :
 
9428
  lt_cv_dlopen_self_static=cross
 
9429
else
 
9430
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9431
  lt_status=$lt_dlunknown
 
9432
  cat > conftest.$ac_ext <<EOF
 
9433
#line 9433 "configure"
 
9434
#include "confdefs.h"
 
9435
 
 
9436
#if HAVE_DLFCN_H
 
9437
#include <dlfcn.h>
 
9438
#endif
 
9439
 
 
9440
#include <stdio.h>
 
9441
 
 
9442
#ifdef RTLD_GLOBAL
 
9443
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9444
#else
 
9445
#  ifdef DL_GLOBAL
 
9446
#    define LT_DLGLOBAL         DL_GLOBAL
 
9447
#  else
 
9448
#    define LT_DLGLOBAL         0
 
9449
#  endif
 
9450
#endif
 
9451
 
 
9452
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9453
   find out it does not work in some platform. */
 
9454
#ifndef LT_DLLAZY_OR_NOW
 
9455
#  ifdef RTLD_LAZY
 
9456
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9457
#  else
 
9458
#    ifdef DL_LAZY
 
9459
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9460
#    else
 
9461
#      ifdef RTLD_NOW
 
9462
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9463
#      else
 
9464
#        ifdef DL_NOW
 
9465
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9466
#        else
 
9467
#          define LT_DLLAZY_OR_NOW      0
 
9468
#        endif
 
9469
#      endif
 
9470
#    endif
 
9471
#  endif
 
9472
#endif
 
9473
 
 
9474
#ifdef __cplusplus
 
9475
extern "C" void exit (int);
 
9476
#endif
 
9477
 
 
9478
void fnord() { int i=42;}
 
9479
int main ()
 
9480
{
 
9481
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9482
  int status = $lt_dlunknown;
 
9483
 
 
9484
  if (self)
 
9485
    {
 
9486
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9487
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9488
      /* dlclose (self); */
 
9489
    }
 
9490
  else
 
9491
    puts (dlerror ());
 
9492
 
 
9493
    exit (status);
 
9494
}
 
9495
EOF
 
9496
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9497
  (eval $ac_link) 2>&5
 
9498
  ac_status=$?
 
9499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9500
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9501
    (./conftest; exit; ) >&5 2>/dev/null
 
9502
    lt_status=$?
 
9503
    case x$lt_status in
 
9504
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9505
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9506
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
9507
    esac
 
9508
  else :
 
9509
    # compilation failed
 
9510
    lt_cv_dlopen_self_static=no
 
9511
  fi
 
9512
fi
 
9513
rm -fr conftest*
 
9514
 
 
9515
 
 
9516
fi
 
9517
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9518
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9519
    fi
 
9520
 
 
9521
    CPPFLAGS="$save_CPPFLAGS"
 
9522
    LDFLAGS="$save_LDFLAGS"
 
9523
    LIBS="$save_LIBS"
 
9524
    ;;
 
9525
  esac
 
9526
 
 
9527
  case $lt_cv_dlopen_self in
 
9528
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9529
  *) enable_dlopen_self=unknown ;;
 
9530
  esac
 
9531
 
 
9532
  case $lt_cv_dlopen_self_static in
 
9533
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9534
  *) enable_dlopen_self_static=unknown ;;
 
9535
  esac
 
9536
fi
 
9537
 
 
9538
 
 
9539
# Report which library types will actually be built
 
9540
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9541
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9542
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9543
echo "${ECHO_T}$can_build_shared" >&6
 
9544
 
 
9545
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9546
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9547
test "$can_build_shared" = "no" && enable_shared=no
 
9548
 
 
9549
# On AIX, shared libraries and static libraries use the same namespace, and
 
9550
# are all built from PIC.
 
9551
case $host_os in
 
9552
aix3*)
 
9553
  test "$enable_shared" = yes && enable_static=no
 
9554
  if test -n "$RANLIB"; then
 
9555
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9556
    postinstall_cmds='$RANLIB $lib'
 
9557
  fi
 
9558
  ;;
 
9559
 
 
9560
aix4* | aix5*)
 
9561
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9562
    test "$enable_shared" = yes && enable_static=no
 
9563
  fi
 
9564
    ;;
 
9565
esac
 
9566
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9567
echo "${ECHO_T}$enable_shared" >&6
 
9568
 
 
9569
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9570
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9571
# Make sure either enable_shared or enable_static is yes.
 
9572
test "$enable_shared" = yes || enable_static=yes
 
9573
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9574
echo "${ECHO_T}$enable_static" >&6
 
9575
 
 
9576
# The else clause should only fire when bootstrapping the
 
9577
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9578
# with your package, and you will get complaints that there are
 
9579
# no rules to generate ltmain.sh.
 
9580
if test -f "$ltmain"; then
 
9581
  # See if we are running on zsh, and set the options which allow our commands through
 
9582
  # without removal of \ escapes.
 
9583
  if test -n "${ZSH_VERSION+set}" ; then
 
9584
    setopt NO_GLOB_SUBST
 
9585
  fi
 
9586
  # Now quote all the things that may contain metacharacters while being
 
9587
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9588
  # variables and quote the copies for generation of the libtool script.
 
9589
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
9590
    SED SHELL STRIP \
 
9591
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9592
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9593
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9594
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9595
    lt_cv_sys_global_symbol_to_c_name_address \
 
9596
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9597
    old_postinstall_cmds old_postuninstall_cmds \
 
9598
    compiler \
 
9599
    CC \
 
9600
    LD \
 
9601
    lt_prog_compiler_wl \
 
9602
    lt_prog_compiler_pic \
 
9603
    lt_prog_compiler_static \
 
9604
    lt_prog_compiler_no_builtin_flag \
 
9605
    export_dynamic_flag_spec \
 
9606
    thread_safe_flag_spec \
 
9607
    whole_archive_flag_spec \
 
9608
    enable_shared_with_static_runtimes \
 
9609
    old_archive_cmds \
 
9610
    old_archive_from_new_cmds \
 
9611
    predep_objects \
 
9612
    postdep_objects \
 
9613
    predeps \
 
9614
    postdeps \
 
9615
    compiler_lib_search_path \
 
9616
    archive_cmds \
 
9617
    archive_expsym_cmds \
 
9618
    postinstall_cmds \
 
9619
    postuninstall_cmds \
 
9620
    old_archive_from_expsyms_cmds \
 
9621
    allow_undefined_flag \
 
9622
    no_undefined_flag \
 
9623
    export_symbols_cmds \
 
9624
    hardcode_libdir_flag_spec \
 
9625
    hardcode_libdir_flag_spec_ld \
 
9626
    hardcode_libdir_separator \
 
9627
    hardcode_automatic \
 
9628
    module_cmds \
 
9629
    module_expsym_cmds \
 
9630
    lt_cv_prog_compiler_c_o \
 
9631
    exclude_expsyms \
 
9632
    include_expsyms; do
 
9633
 
 
9634
    case $var in
 
9635
    old_archive_cmds | \
 
9636
    old_archive_from_new_cmds | \
 
9637
    archive_cmds | \
 
9638
    archive_expsym_cmds | \
 
9639
    module_cmds | \
 
9640
    module_expsym_cmds | \
 
9641
    old_archive_from_expsyms_cmds | \
 
9642
    export_symbols_cmds | \
 
9643
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9644
    postinstall_cmds | postuninstall_cmds | \
 
9645
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9646
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9647
      # Double-quote double-evaled strings.
 
9648
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9649
      ;;
 
9650
    *)
 
9651
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9652
      ;;
 
9653
    esac
 
9654
  done
 
9655
 
 
9656
  case $lt_echo in
 
9657
  *'\$0 --fallback-echo"')
 
9658
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9659
    ;;
 
9660
  esac
 
9661
 
 
9662
cfgfile="${ofile}T"
 
9663
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9664
  $rm -f "$cfgfile"
 
9665
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9666
echo "$as_me: creating $ofile" >&6;}
 
9667
 
 
9668
  cat <<__EOF__ >> "$cfgfile"
 
9669
#! $SHELL
 
9670
 
 
9671
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9672
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9673
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9674
#
 
9675
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9676
# Free Software Foundation, Inc.
 
9677
#
 
9678
# This file is part of GNU Libtool:
 
9679
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9680
#
 
9681
# This program is free software; you can redistribute it and/or modify
 
9682
# it under the terms of the GNU General Public License as published by
 
9683
# the Free Software Foundation; either version 2 of the License, or
 
9684
# (at your option) any later version.
 
9685
#
 
9686
# This program is distributed in the hope that it will be useful, but
 
9687
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9688
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9689
# General Public License for more details.
 
9690
#
 
9691
# You should have received a copy of the GNU General Public License
 
9692
# along with this program; if not, write to the Free Software
 
9693
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
9694
#
 
9695
# As a special exception to the GNU General Public License, if you
 
9696
# distribute this file as part of a program that contains a
 
9697
# configuration script generated by Autoconf, you may include it under
 
9698
# the same distribution terms that you use for the rest of that program.
 
9699
 
 
9700
# A sed program that does not truncate output.
 
9701
SED=$lt_SED
 
9702
 
 
9703
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9704
Xsed="$SED -e 1s/^X//"
 
9705
 
 
9706
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9707
# if CDPATH is set.
 
9708
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9709
 
 
9710
# The names of the tagged configurations supported by this script.
 
9711
available_tags=
 
9712
 
 
9713
# ### BEGIN LIBTOOL CONFIG
 
9714
 
 
9715
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9716
 
 
9717
# Shell to use when invoking shell scripts.
 
9718
SHELL=$lt_SHELL
 
9719
 
 
9720
# Whether or not to build shared libraries.
 
9721
build_libtool_libs=$enable_shared
 
9722
 
 
9723
# Whether or not to build static libraries.
 
9724
build_old_libs=$enable_static
 
9725
 
 
9726
# Whether or not to add -lc for building shared libraries.
 
9727
build_libtool_need_lc=$archive_cmds_need_lc
 
9728
 
 
9729
# Whether or not to disallow shared libs when runtime libs are static
 
9730
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9731
 
 
9732
# Whether or not to optimize for fast installation.
 
9733
fast_install=$enable_fast_install
 
9734
 
 
9735
# The host system.
 
9736
host_alias=$host_alias
 
9737
host=$host
 
9738
host_os=$host_os
 
9739
 
 
9740
# The build system.
 
9741
build_alias=$build_alias
 
9742
build=$build
 
9743
build_os=$build_os
 
9744
 
 
9745
# An echo program that does not interpret backslashes.
 
9746
echo=$lt_echo
 
9747
 
 
9748
# The archiver.
 
9749
AR=$lt_AR
 
9750
AR_FLAGS=$lt_AR_FLAGS
 
9751
 
 
9752
# A C compiler.
 
9753
LTCC=$lt_LTCC
 
9754
 
 
9755
# LTCC compiler flags.
 
9756
LTCFLAGS=$lt_LTCFLAGS
 
9757
 
 
9758
# A language-specific compiler.
 
9759
CC=$lt_compiler
 
9760
 
 
9761
# Is the compiler the GNU C compiler?
 
9762
with_gcc=$GCC
 
9763
 
 
9764
# An ERE matcher.
 
9765
EGREP=$lt_EGREP
 
9766
 
 
9767
# The linker used to build libraries.
 
9768
LD=$lt_LD
 
9769
 
 
9770
# Whether we need hard or soft links.
 
9771
LN_S=$lt_LN_S
 
9772
 
 
9773
# A BSD-compatible nm program.
 
9774
NM=$lt_NM
 
9775
 
 
9776
# A symbol stripping program
 
9777
STRIP=$lt_STRIP
 
9778
 
 
9779
# Used to examine libraries when file_magic_cmd begins "file"
 
9780
MAGIC_CMD=$MAGIC_CMD
 
9781
 
 
9782
# Used on cygwin: DLL creation program.
 
9783
DLLTOOL="$DLLTOOL"
 
9784
 
 
9785
# Used on cygwin: object dumper.
 
9786
OBJDUMP="$OBJDUMP"
 
9787
 
 
9788
# Used on cygwin: assembler.
 
9789
AS="$AS"
 
9790
 
 
9791
# The name of the directory that contains temporary libtool files.
 
9792
objdir=$objdir
 
9793
 
 
9794
# How to create reloadable object files.
 
9795
reload_flag=$lt_reload_flag
 
9796
reload_cmds=$lt_reload_cmds
 
9797
 
 
9798
# How to pass a linker flag through the compiler.
 
9799
wl=$lt_lt_prog_compiler_wl
 
9800
 
 
9801
# Object file suffix (normally "o").
 
9802
objext="$ac_objext"
 
9803
 
 
9804
# Old archive suffix (normally "a").
 
9805
libext="$libext"
 
9806
 
 
9807
# Shared library suffix (normally ".so").
 
9808
shrext_cmds='$shrext_cmds'
 
9809
 
 
9810
# Executable file suffix (normally "").
 
9811
exeext="$exeext"
 
9812
 
 
9813
# Additional compiler flags for building library objects.
 
9814
pic_flag=$lt_lt_prog_compiler_pic
 
9815
pic_mode=$pic_mode
 
9816
 
 
9817
# What is the maximum length of a command?
 
9818
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9819
 
 
9820
# Does compiler simultaneously support -c and -o options?
 
9821
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9822
 
 
9823
# Must we lock files when doing compilation?
 
9824
need_locks=$lt_need_locks
 
9825
 
 
9826
# Do we need the lib prefix for modules?
 
9827
need_lib_prefix=$need_lib_prefix
 
9828
 
 
9829
# Do we need a version for libraries?
 
9830
need_version=$need_version
 
9831
 
 
9832
# Whether dlopen is supported.
 
9833
dlopen_support=$enable_dlopen
 
9834
 
 
9835
# Whether dlopen of programs is supported.
 
9836
dlopen_self=$enable_dlopen_self
 
9837
 
 
9838
# Whether dlopen of statically linked programs is supported.
 
9839
dlopen_self_static=$enable_dlopen_self_static
 
9840
 
 
9841
# Compiler flag to prevent dynamic linking.
 
9842
link_static_flag=$lt_lt_prog_compiler_static
 
9843
 
 
9844
# Compiler flag to turn off builtin functions.
 
9845
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9846
 
 
9847
# Compiler flag to allow reflexive dlopens.
 
9848
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9849
 
 
9850
# Compiler flag to generate shared objects directly from archives.
 
9851
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9852
 
 
9853
# Compiler flag to generate thread-safe objects.
 
9854
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9855
 
 
9856
# Library versioning type.
 
9857
version_type=$version_type
 
9858
 
 
9859
# Format of library name prefix.
 
9860
libname_spec=$lt_libname_spec
 
9861
 
 
9862
# List of archive names.  First name is the real one, the rest are links.
 
9863
# The last name is the one that the linker finds with -lNAME.
 
9864
library_names_spec=$lt_library_names_spec
 
9865
 
 
9866
# The coded name of the library, if different from the real name.
 
9867
soname_spec=$lt_soname_spec
 
9868
 
 
9869
# Commands used to build and install an old-style archive.
 
9870
RANLIB=$lt_RANLIB
 
9871
old_archive_cmds=$lt_old_archive_cmds
 
9872
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9873
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9874
 
 
9875
# Create an old-style archive from a shared archive.
 
9876
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9877
 
 
9878
# Create a temporary old-style archive to link instead of a shared archive.
 
9879
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9880
 
 
9881
# Commands used to build and install a shared archive.
 
9882
archive_cmds=$lt_archive_cmds
 
9883
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9884
postinstall_cmds=$lt_postinstall_cmds
 
9885
postuninstall_cmds=$lt_postuninstall_cmds
 
9886
 
 
9887
# Commands used to build a loadable module (assumed same as above if empty)
 
9888
module_cmds=$lt_module_cmds
 
9889
module_expsym_cmds=$lt_module_expsym_cmds
 
9890
 
 
9891
# Commands to strip libraries.
 
9892
old_striplib=$lt_old_striplib
 
9893
striplib=$lt_striplib
 
9894
 
 
9895
# Dependencies to place before the objects being linked to create a
 
9896
# shared library.
 
9897
predep_objects=$lt_predep_objects
 
9898
 
 
9899
# Dependencies to place after the objects being linked to create a
 
9900
# shared library.
 
9901
postdep_objects=$lt_postdep_objects
 
9902
 
 
9903
# Dependencies to place before the objects being linked to create a
 
9904
# shared library.
 
9905
predeps=$lt_predeps
 
9906
 
 
9907
# Dependencies to place after the objects being linked to create a
 
9908
# shared library.
 
9909
postdeps=$lt_postdeps
 
9910
 
 
9911
# The library search path used internally by the compiler when linking
 
9912
# a shared library.
 
9913
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9914
 
 
9915
# Method to check whether dependent libraries are shared objects.
 
9916
deplibs_check_method=$lt_deplibs_check_method
 
9917
 
 
9918
# Command to use when deplibs_check_method == file_magic.
 
9919
file_magic_cmd=$lt_file_magic_cmd
 
9920
 
 
9921
# Flag that allows shared libraries with undefined symbols to be built.
 
9922
allow_undefined_flag=$lt_allow_undefined_flag
 
9923
 
 
9924
# Flag that forces no undefined symbols.
 
9925
no_undefined_flag=$lt_no_undefined_flag
 
9926
 
 
9927
# Commands used to finish a libtool library installation in a directory.
 
9928
finish_cmds=$lt_finish_cmds
 
9929
 
 
9930
# Same as above, but a single script fragment to be evaled but not shown.
 
9931
finish_eval=$lt_finish_eval
 
9932
 
 
9933
# Take the output of nm and produce a listing of raw symbols and C names.
 
9934
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9935
 
 
9936
# Transform the output of nm in a proper C declaration
 
9937
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9938
 
 
9939
# Transform the output of nm in a C name address pair
 
9940
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9941
 
 
9942
# This is the shared library runtime path variable.
 
9943
runpath_var=$runpath_var
 
9944
 
 
9945
# This is the shared library path variable.
 
9946
shlibpath_var=$shlibpath_var
 
9947
 
 
9948
# Is shlibpath searched before the hard-coded library search path?
 
9949
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9950
 
 
9951
# How to hardcode a shared library path into an executable.
 
9952
hardcode_action=$hardcode_action
 
9953
 
 
9954
# Whether we should hardcode library paths into libraries.
 
9955
hardcode_into_libs=$hardcode_into_libs
 
9956
 
 
9957
# Flag to hardcode \$libdir into a binary during linking.
 
9958
# This must work even if \$libdir does not exist.
 
9959
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9960
 
 
9961
# If ld is used when linking, flag to hardcode \$libdir into
 
9962
# a binary during linking. This must work even if \$libdir does
 
9963
# not exist.
 
9964
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9965
 
 
9966
# Whether we need a single -rpath flag with a separated argument.
 
9967
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9968
 
 
9969
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9970
# resulting binary.
 
9971
hardcode_direct=$hardcode_direct
 
9972
 
 
9973
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9974
# resulting binary.
 
9975
hardcode_minus_L=$hardcode_minus_L
 
9976
 
 
9977
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9978
# the resulting binary.
 
9979
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9980
 
 
9981
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9982
# and all subsequent libraries and executables linked against it.
 
9983
hardcode_automatic=$hardcode_automatic
 
9984
 
 
9985
# Variables whose values should be saved in libtool wrapper scripts and
 
9986
# restored at relink time.
 
9987
variables_saved_for_relink="$variables_saved_for_relink"
 
9988
 
 
9989
# Whether libtool must link a program against all its dependency libraries.
 
9990
link_all_deplibs=$link_all_deplibs
 
9991
 
 
9992
# Compile-time system search path for libraries
 
9993
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9994
 
 
9995
# Run-time system search path for libraries
 
9996
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9997
 
 
9998
# Fix the shell variable \$srcfile for the compiler.
 
9999
fix_srcfile_path="$fix_srcfile_path"
 
10000
 
 
10001
# Set to yes if exported symbols are required.
 
10002
always_export_symbols=$always_export_symbols
 
10003
 
 
10004
# The commands to list exported symbols.
 
10005
export_symbols_cmds=$lt_export_symbols_cmds
 
10006
 
 
10007
# The commands to extract the exported symbol list from a shared archive.
 
10008
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10009
 
 
10010
# Symbols that should not be listed in the preloaded symbols.
 
10011
exclude_expsyms=$lt_exclude_expsyms
 
10012
 
 
10013
# Symbols that must always be exported.
 
10014
include_expsyms=$lt_include_expsyms
 
10015
 
 
10016
# ### END LIBTOOL CONFIG
 
10017
 
 
10018
__EOF__
 
10019
 
 
10020
 
 
10021
  case $host_os in
 
10022
  aix3*)
 
10023
    cat <<\EOF >> "$cfgfile"
 
10024
 
 
10025
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10026
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10027
# vanish in a puff of smoke.
 
10028
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10029
  COLLECT_NAMES=
 
10030
  export COLLECT_NAMES
 
10031
fi
 
10032
EOF
 
10033
    ;;
 
10034
  esac
 
10035
 
 
10036
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10037
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10038
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10039
  # is reportedly fixed, but why not run on old versions too?
 
10040
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10041
 
 
10042
  mv -f "$cfgfile" "$ofile" || \
 
10043
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10044
  chmod +x "$ofile"
 
10045
 
 
10046
else
 
10047
  # If there is no Makefile yet, we rely on a make rule to execute
 
10048
  # `config.status --recheck' to rerun these tests and create the
 
10049
  # libtool script then.
 
10050
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10051
  if test -f "$ltmain_in"; then
 
10052
    test -f Makefile && make "$ltmain"
 
10053
  fi
 
10054
fi
 
10055
 
 
10056
 
 
10057
ac_ext=c
 
10058
ac_cpp='$CPP $CPPFLAGS'
 
10059
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10060
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10061
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10062
 
 
10063
CC="$lt_save_CC"
 
10064
 
 
10065
 
 
10066
# Check whether --with-tags or --without-tags was given.
 
10067
if test "${with_tags+set}" = set; then
 
10068
  withval="$with_tags"
 
10069
  tagnames="$withval"
 
10070
fi;
 
10071
 
 
10072
if test -f "$ltmain" && test -n "$tagnames"; then
 
10073
  if test ! -f "${ofile}"; then
 
10074
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10075
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10076
  fi
 
10077
 
 
10078
  if test -z "$LTCC"; then
 
10079
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10080
    if test -z "$LTCC"; then
 
10081
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10082
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10083
    else
 
10084
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10085
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10086
    fi
 
10087
  fi
 
10088
  if test -z "$LTCFLAGS"; then
 
10089
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10090
  fi
 
10091
 
 
10092
  # Extract list of available tagged configurations in $ofile.
 
10093
  # Note that this assumes the entire list is on one line.
 
10094
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10095
 
 
10096
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10097
  for tagname in $tagnames; do
 
10098
    IFS="$lt_save_ifs"
 
10099
    # Check whether tagname contains only valid characters
 
10100
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10101
    "") ;;
 
10102
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10103
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10104
   { (exit 1); exit 1; }; }
 
10105
        ;;
 
10106
    esac
 
10107
 
 
10108
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10109
    then
 
10110
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10111
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10112
   { (exit 1); exit 1; }; }
 
10113
    fi
 
10114
 
 
10115
    # Update the list of available tags.
 
10116
    if test -n "$tagname"; then
 
10117
      echo appending configuration tag \"$tagname\" to $ofile
 
10118
 
 
10119
      case $tagname in
 
10120
      CXX)
 
10121
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10122
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10123
            (test "X$CXX" != "Xg++"))) ; then
 
10124
          ac_ext=cc
 
10125
ac_cpp='$CXXCPP $CPPFLAGS'
 
10126
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10127
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10128
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10129
 
 
10130
 
 
10131
 
 
10132
 
 
10133
archive_cmds_need_lc_CXX=no
 
10134
allow_undefined_flag_CXX=
 
10135
always_export_symbols_CXX=no
 
10136
archive_expsym_cmds_CXX=
 
10137
export_dynamic_flag_spec_CXX=
 
10138
hardcode_direct_CXX=no
 
10139
hardcode_libdir_flag_spec_CXX=
 
10140
hardcode_libdir_flag_spec_ld_CXX=
 
10141
hardcode_libdir_separator_CXX=
 
10142
hardcode_minus_L_CXX=no
 
10143
hardcode_shlibpath_var_CXX=unsupported
 
10144
hardcode_automatic_CXX=no
 
10145
module_cmds_CXX=
 
10146
module_expsym_cmds_CXX=
 
10147
link_all_deplibs_CXX=unknown
 
10148
old_archive_cmds_CXX=$old_archive_cmds
 
10149
no_undefined_flag_CXX=
 
10150
whole_archive_flag_spec_CXX=
 
10151
enable_shared_with_static_runtimes_CXX=no
 
10152
 
 
10153
# Dependencies to place before and after the object being linked:
 
10154
predep_objects_CXX=
 
10155
postdep_objects_CXX=
 
10156
predeps_CXX=
 
10157
postdeps_CXX=
 
10158
compiler_lib_search_path_CXX=
 
10159
 
 
10160
# Source file extension for C++ test sources.
 
10161
ac_ext=cpp
 
10162
 
 
10163
# Object file extension for compiled C++ test sources.
 
10164
objext=o
 
10165
objext_CXX=$objext
 
10166
 
 
10167
# Code to be used in simple compile tests
 
10168
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10169
 
 
10170
# Code to be used in simple link tests
 
10171
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
10172
 
 
10173
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10174
 
 
10175
# If no C compiler was specified, use CC.
 
10176
LTCC=${LTCC-"$CC"}
 
10177
 
 
10178
# If no C compiler flags were specified, use CFLAGS.
 
10179
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10180
 
 
10181
# Allow CC to be a program name with arguments.
 
10182
compiler=$CC
 
10183
 
 
10184
 
 
10185
# save warnings/boilerplate of simple test code
 
10186
ac_outfile=conftest.$ac_objext
 
10187
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10188
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10189
_lt_compiler_boilerplate=`cat conftest.err`
 
10190
$rm conftest*
 
10191
 
 
10192
ac_outfile=conftest.$ac_objext
 
10193
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10194
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10195
_lt_linker_boilerplate=`cat conftest.err`
 
10196
$rm conftest*
 
10197
 
 
10198
 
 
10199
# Allow CC to be a program name with arguments.
 
10200
lt_save_CC=$CC
 
10201
lt_save_LD=$LD
 
10202
lt_save_GCC=$GCC
 
10203
GCC=$GXX
 
10204
lt_save_with_gnu_ld=$with_gnu_ld
 
10205
lt_save_path_LD=$lt_cv_path_LD
 
10206
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10207
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10208
else
 
10209
  $as_unset lt_cv_prog_gnu_ld
 
10210
fi
 
10211
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10212
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10213
else
 
10214
  $as_unset lt_cv_path_LD
 
10215
fi
 
10216
test -z "${LDCXX+set}" || LD=$LDCXX
 
10217
CC=${CXX-"c++"}
 
10218
compiler=$CC
 
10219
compiler_CXX=$CC
 
10220
for cc_temp in $compiler""; do
 
10221
  case $cc_temp in
 
10222
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10223
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10224
    \-*) ;;
 
10225
    *) break;;
 
10226
  esac
 
10227
done
 
10228
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10229
 
 
10230
 
 
10231
# We don't want -fno-exception wen compiling C++ code, so set the
 
10232
# no_builtin_flag separately
 
10233
if test "$GXX" = yes; then
 
10234
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10235
else
 
10236
  lt_prog_compiler_no_builtin_flag_CXX=
 
10237
fi
 
10238
 
 
10239
if test "$GXX" = yes; then
 
10240
  # Set up default GNU C++ configuration
 
10241
 
 
10242
 
 
10243
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10244
if test "${with_gnu_ld+set}" = set; then
 
10245
  withval="$with_gnu_ld"
 
10246
  test "$withval" = no || with_gnu_ld=yes
 
10247
else
 
10248
  with_gnu_ld=no
 
10249
fi;
 
10250
ac_prog=ld
 
10251
if test "$GCC" = yes; then
 
10252
  # Check if gcc -print-prog-name=ld gives a path.
 
10253
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10254
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10255
  case $host in
 
10256
  *-*-mingw*)
 
10257
    # gcc leaves a trailing carriage return which upsets mingw
 
10258
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10259
  *)
 
10260
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10261
  esac
 
10262
  case $ac_prog in
 
10263
    # Accept absolute paths.
 
10264
    [\\/]* | ?:[\\/]*)
 
10265
      re_direlt='/[^/][^/]*/\.\./'
 
10266
      # Canonicalize the pathname of ld
 
10267
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10268
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10269
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10270
      done
 
10271
      test -z "$LD" && LD="$ac_prog"
 
10272
      ;;
 
10273
  "")
 
10274
    # If it fails, then pretend we aren't using GCC.
 
10275
    ac_prog=ld
 
10276
    ;;
 
10277
  *)
 
10278
    # If it is relative, then search for the first ld in PATH.
 
10279
    with_gnu_ld=unknown
 
10280
    ;;
 
10281
  esac
 
10282
elif test "$with_gnu_ld" = yes; then
 
10283
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10284
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10285
else
 
10286
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10287
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10288
fi
 
10289
if test "${lt_cv_path_LD+set}" = set; then
 
10290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10291
else
 
10292
  if test -z "$LD"; then
 
10293
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10294
  for ac_dir in $PATH; do
 
10295
    IFS="$lt_save_ifs"
 
10296
    test -z "$ac_dir" && ac_dir=.
 
10297
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10298
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10299
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10300
      # but apparently some variants of GNU ld only accept -v.
 
10301
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10302
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10303
      *GNU* | *'with BFD'*)
 
10304
        test "$with_gnu_ld" != no && break
 
10305
        ;;
 
10306
      *)
 
10307
        test "$with_gnu_ld" != yes && break
 
10308
        ;;
 
10309
      esac
 
10310
    fi
 
10311
  done
 
10312
  IFS="$lt_save_ifs"
 
10313
else
 
10314
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10315
fi
 
10316
fi
 
10317
 
 
10318
LD="$lt_cv_path_LD"
 
10319
if test -n "$LD"; then
 
10320
  echo "$as_me:$LINENO: result: $LD" >&5
 
10321
echo "${ECHO_T}$LD" >&6
 
10322
else
 
10323
  echo "$as_me:$LINENO: result: no" >&5
 
10324
echo "${ECHO_T}no" >&6
 
10325
fi
 
10326
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10327
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10328
   { (exit 1); exit 1; }; }
 
10329
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10330
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10331
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10332
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10333
else
 
10334
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10335
case `$LD -v 2>&1 </dev/null` in
 
10336
*GNU* | *'with BFD'*)
 
10337
  lt_cv_prog_gnu_ld=yes
 
10338
  ;;
 
10339
*)
 
10340
  lt_cv_prog_gnu_ld=no
 
10341
  ;;
 
10342
esac
 
10343
fi
 
10344
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10345
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10346
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10347
 
 
10348
 
 
10349
 
 
10350
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10351
  # archiving commands below assume that GNU ld is being used.
 
10352
  if test "$with_gnu_ld" = yes; then
 
10353
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10354
    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'
 
10355
 
 
10356
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10357
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10358
 
 
10359
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10360
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10361
    #     investigate it a little bit more. (MM)
 
10362
    wlarc='${wl}'
 
10363
 
 
10364
    # ancient GNU ld didn't support --whole-archive et. al.
 
10365
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10366
        grep 'no-whole-archive' > /dev/null; then
 
10367
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10368
    else
 
10369
      whole_archive_flag_spec_CXX=
 
10370
    fi
 
10371
  else
 
10372
    with_gnu_ld=no
 
10373
    wlarc=
 
10374
 
 
10375
    # A generic and very simple default shared library creation
 
10376
    # command for GNU C++ for the case where it uses the native
 
10377
    # linker, instead of GNU ld.  If possible, this setting should
 
10378
    # overridden to take advantage of the native linker features on
 
10379
    # the platform it is being used on.
 
10380
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10381
  fi
 
10382
 
 
10383
  # Commands to make compiler produce verbose output that lists
 
10384
  # what "hidden" libraries, object files and flags are used when
 
10385
  # linking a shared library.
 
10386
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10387
 
 
10388
else
 
10389
  GXX=no
 
10390
  with_gnu_ld=no
 
10391
  wlarc=
 
10392
fi
 
10393
 
 
10394
# PORTME: fill in a description of your system's C++ link characteristics
 
10395
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10396
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10397
ld_shlibs_CXX=yes
 
10398
case $host_os in
 
10399
  aix3*)
 
10400
    # FIXME: insert proper C++ library support
 
10401
    ld_shlibs_CXX=no
 
10402
    ;;
 
10403
  aix4* | aix5*)
 
10404
    if test "$host_cpu" = ia64; then
 
10405
      # On IA64, the linker does run time linking by default, so we don't
 
10406
      # have to do anything special.
 
10407
      aix_use_runtimelinking=no
 
10408
      exp_sym_flag='-Bexport'
 
10409
      no_entry_flag=""
 
10410
    else
 
10411
      aix_use_runtimelinking=no
 
10412
 
 
10413
      # Test if we are trying to use run time linking or normal
 
10414
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10415
      # need to do runtime linking.
 
10416
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10417
        for ld_flag in $LDFLAGS; do
 
10418
          case $ld_flag in
 
10419
          *-brtl*)
 
10420
            aix_use_runtimelinking=yes
 
10421
            break
 
10422
            ;;
 
10423
          esac
 
10424
        done
 
10425
        ;;
 
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
        ;;
 
10464
      esac
 
10465
      shared_flag='-shared'
 
10466
      if test "$aix_use_runtimelinking" = yes; then
 
10467
        shared_flag="$shared_flag "'${wl}-G'
 
10468
      fi
 
10469
    else
 
10470
      # not using gcc
 
10471
      if test "$host_cpu" = ia64; then
 
10472
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10473
        # chokes on -Wl,-G. The following line is correct:
 
10474
        shared_flag='-G'
 
10475
      else
 
10476
        if test "$aix_use_runtimelinking" = yes; then
 
10477
          shared_flag='${wl}-G'
 
10478
        else
 
10479
          shared_flag='${wl}-bM:SRE'
 
10480
        fi
 
10481
      fi
 
10482
    fi
 
10483
 
 
10484
    # It seems that -bexpall does not export symbols beginning with
 
10485
    # underscore (_), so it is better to generate a list of symbols to export.
 
10486
    always_export_symbols_CXX=yes
 
10487
    if test "$aix_use_runtimelinking" = yes; then
 
10488
      # Warning - without using the other runtime loading flags (-brtl),
 
10489
      # -berok will link without error, but may produce a broken library.
 
10490
      allow_undefined_flag_CXX='-berok'
 
10491
      # Determine the default libpath from the value encoded in an empty executable.
 
10492
      cat >conftest.$ac_ext <<_ACEOF
 
10493
/* confdefs.h.  */
 
10494
_ACEOF
 
10495
cat confdefs.h >>conftest.$ac_ext
 
10496
cat >>conftest.$ac_ext <<_ACEOF
 
10497
/* end confdefs.h.  */
 
10498
 
 
10499
int
 
10500
main ()
 
10501
{
 
10502
 
 
10503
  ;
 
10504
  return 0;
 
10505
}
 
10506
_ACEOF
 
10507
rm -f conftest.$ac_objext conftest$ac_exeext
 
10508
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10509
  (eval $ac_link) 2>conftest.er1
 
10510
  ac_status=$?
 
10511
  grep -v '^ *+' conftest.er1 >conftest.err
 
10512
  rm -f conftest.er1
 
10513
  cat conftest.err >&5
 
10514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10515
  (exit $ac_status); } &&
 
10516
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10518
  (eval $ac_try) 2>&5
 
10519
  ac_status=$?
 
10520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10521
  (exit $ac_status); }; } &&
 
10522
         { ac_try='test -s conftest$ac_exeext'
 
10523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10524
  (eval $ac_try) 2>&5
 
10525
  ac_status=$?
 
10526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10527
  (exit $ac_status); }; }; then
 
10528
 
 
10529
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10530
}'`
 
10531
# Check for a 64-bit object if we didn't find anything.
 
10532
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; }
 
10533
}'`; fi
 
10534
else
 
10535
  echo "$as_me: failed program was:" >&5
 
10536
sed 's/^/| /' conftest.$ac_ext >&5
 
10537
 
 
10538
fi
 
10539
rm -f conftest.err conftest.$ac_objext \
 
10540
      conftest$ac_exeext conftest.$ac_ext
 
10541
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10542
 
 
10543
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10544
 
 
10545
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10546
     else
 
10547
      if test "$host_cpu" = ia64; then
 
10548
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10549
        allow_undefined_flag_CXX="-z nodefs"
 
10550
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
10551
      else
 
10552
        # Determine the default libpath from the value encoded in an empty executable.
 
10553
        cat >conftest.$ac_ext <<_ACEOF
 
10554
/* confdefs.h.  */
 
10555
_ACEOF
 
10556
cat confdefs.h >>conftest.$ac_ext
 
10557
cat >>conftest.$ac_ext <<_ACEOF
 
10558
/* end confdefs.h.  */
 
10559
 
 
10560
int
 
10561
main ()
 
10562
{
 
10563
 
 
10564
  ;
 
10565
  return 0;
 
10566
}
 
10567
_ACEOF
 
10568
rm -f conftest.$ac_objext conftest$ac_exeext
 
10569
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10570
  (eval $ac_link) 2>conftest.er1
 
10571
  ac_status=$?
 
10572
  grep -v '^ *+' conftest.er1 >conftest.err
 
10573
  rm -f conftest.er1
 
10574
  cat conftest.err >&5
 
10575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10576
  (exit $ac_status); } &&
 
10577
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10578
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10579
  (eval $ac_try) 2>&5
 
10580
  ac_status=$?
 
10581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10582
  (exit $ac_status); }; } &&
 
10583
         { ac_try='test -s conftest$ac_exeext'
 
10584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10585
  (eval $ac_try) 2>&5
 
10586
  ac_status=$?
 
10587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10588
  (exit $ac_status); }; }; then
 
10589
 
 
10590
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10591
}'`
 
10592
# Check for a 64-bit object if we didn't find anything.
 
10593
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; }
 
10594
}'`; fi
 
10595
else
 
10596
  echo "$as_me: failed program was:" >&5
 
10597
sed 's/^/| /' conftest.$ac_ext >&5
 
10598
 
 
10599
fi
 
10600
rm -f conftest.err conftest.$ac_objext \
 
10601
      conftest$ac_exeext conftest.$ac_ext
 
10602
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10603
 
 
10604
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10605
        # Warning - without using the other run time loading flags,
 
10606
        # -berok will link without error, but may produce a broken library.
 
10607
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10608
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10609
        # Exported symbols can be pulled into shared objects from archives
 
10610
        whole_archive_flag_spec_CXX='$convenience'
 
10611
        archive_cmds_need_lc_CXX=yes
 
10612
        # This is similar to how AIX traditionally builds its shared libraries.
 
10613
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10614
      fi
 
10615
    fi
 
10616
    ;;
 
10617
 
 
10618
  beos*)
 
10619
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10620
      allow_undefined_flag_CXX=unsupported
 
10621
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10622
      # support --undefined.  This deserves some investigation.  FIXME
 
10623
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10624
    else
 
10625
      ld_shlibs_CXX=no
 
10626
    fi
 
10627
    ;;
 
10628
 
 
10629
  chorus*)
 
10630
    case $cc_basename in
 
10631
      *)
 
10632
        # FIXME: insert proper C++ library support
 
10633
        ld_shlibs_CXX=no
 
10634
        ;;
 
10635
    esac
 
10636
    ;;
 
10637
 
 
10638
  cygwin* | mingw* | pw32*)
 
10639
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10640
    # as there is no search path for DLLs.
 
10641
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10642
    allow_undefined_flag_CXX=unsupported
 
10643
    always_export_symbols_CXX=no
 
10644
    enable_shared_with_static_runtimes_CXX=yes
 
10645
 
 
10646
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10647
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10648
      # If the export-symbols file already is a .def file (1st line
 
10649
      # is EXPORTS), use it as is; otherwise, prepend...
 
10650
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10651
        cp $export_symbols $output_objdir/$soname.def;
 
10652
      else
 
10653
        echo EXPORTS > $output_objdir/$soname.def;
 
10654
        cat $export_symbols >> $output_objdir/$soname.def;
 
10655
      fi~
 
10656
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10657
    else
 
10658
      ld_shlibs_CXX=no
 
10659
    fi
 
10660
  ;;
 
10661
      darwin* | rhapsody*)
 
10662
        case $host_os in
 
10663
        rhapsody* | darwin1.[012])
 
10664
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10665
         ;;
 
10666
       *) # Darwin 1.3 on
 
10667
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10668
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10669
         else
 
10670
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10671
             10.[012])
 
10672
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10673
               ;;
 
10674
             10.*)
 
10675
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10676
               ;;
 
10677
           esac
 
10678
         fi
 
10679
         ;;
 
10680
        esac
 
10681
      archive_cmds_need_lc_CXX=no
 
10682
      hardcode_direct_CXX=no
 
10683
      hardcode_automatic_CXX=yes
 
10684
      hardcode_shlibpath_var_CXX=unsupported
 
10685
      whole_archive_flag_spec_CXX=''
 
10686
      link_all_deplibs_CXX=yes
 
10687
 
 
10688
    if test "$GXX" = yes ; then
 
10689
      lt_int_apple_cc_single_mod=no
 
10690
      output_verbose_link_cmd='echo'
 
10691
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10692
       lt_int_apple_cc_single_mod=yes
 
10693
      fi
 
10694
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10695
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10696
      else
 
10697
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10698
        fi
 
10699
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10700
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10701
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10702
            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}'
 
10703
          else
 
10704
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10705
          fi
 
10706
            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}'
 
10707
      else
 
10708
      case $cc_basename in
 
10709
        xlc*)
 
10710
         output_verbose_link_cmd='echo'
 
10711
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
10712
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10713
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10714
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10715
          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}'
 
10716
          ;;
 
10717
       *)
 
10718
         ld_shlibs_CXX=no
 
10719
          ;;
 
10720
      esac
 
10721
      fi
 
10722
        ;;
 
10723
 
 
10724
  dgux*)
 
10725
    case $cc_basename in
 
10726
      ec++*)
 
10727
        # FIXME: insert proper C++ library support
 
10728
        ld_shlibs_CXX=no
 
10729
        ;;
 
10730
      ghcx*)
 
10731
        # Green Hills C++ Compiler
 
10732
        # FIXME: insert proper C++ library support
 
10733
        ld_shlibs_CXX=no
 
10734
        ;;
 
10735
      *)
 
10736
        # FIXME: insert proper C++ library support
 
10737
        ld_shlibs_CXX=no
 
10738
        ;;
 
10739
    esac
 
10740
    ;;
 
10741
  freebsd[12]*)
 
10742
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10743
    ld_shlibs_CXX=no
 
10744
    ;;
 
10745
  freebsd-elf*)
 
10746
    archive_cmds_need_lc_CXX=no
 
10747
    ;;
 
10748
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
10749
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10750
    # conventions
 
10751
    ld_shlibs_CXX=yes
 
10752
    ;;
 
10753
  gnu*)
 
10754
    ;;
 
10755
  hpux9*)
 
10756
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10757
    hardcode_libdir_separator_CXX=:
 
10758
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10759
    hardcode_direct_CXX=yes
 
10760
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10761
                                # but as the default
 
10762
                                # location of the library.
 
10763
 
 
10764
    case $cc_basename in
 
10765
    CC*)
 
10766
      # FIXME: insert proper C++ library support
 
10767
      ld_shlibs_CXX=no
 
10768
      ;;
 
10769
    aCC*)
 
10770
      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'
 
10771
      # Commands to make compiler produce verbose output that lists
 
10772
      # what "hidden" libraries, object files and flags are used when
 
10773
      # linking a shared library.
 
10774
      #
 
10775
      # There doesn't appear to be a way to prevent this compiler from
 
10776
      # explicitly linking system object files so we need to strip them
 
10777
      # from the output so that they don't get included in the library
 
10778
      # dependencies.
 
10779
      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'
 
10780
      ;;
 
10781
    *)
 
10782
      if test "$GXX" = yes; then
 
10783
        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'
 
10784
      else
 
10785
        # FIXME: insert proper C++ library support
 
10786
        ld_shlibs_CXX=no
 
10787
      fi
 
10788
      ;;
 
10789
    esac
 
10790
    ;;
 
10791
  hpux10*|hpux11*)
 
10792
    if test $with_gnu_ld = no; then
 
10793
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10794
      hardcode_libdir_separator_CXX=:
 
10795
 
 
10796
      case $host_cpu in
 
10797
      hppa*64*|ia64*)
 
10798
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10799
        ;;
 
10800
      *)
 
10801
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10802
        ;;
 
10803
      esac
 
10804
    fi
 
10805
    case $host_cpu in
 
10806
    hppa*64*|ia64*)
 
10807
      hardcode_direct_CXX=no
 
10808
      hardcode_shlibpath_var_CXX=no
 
10809
      ;;
 
10810
    *)
 
10811
      hardcode_direct_CXX=yes
 
10812
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10813
                                              # but as the default
 
10814
                                              # location of the library.
 
10815
      ;;
 
10816
    esac
 
10817
 
 
10818
    case $cc_basename in
 
10819
      CC*)
 
10820
        # FIXME: insert proper C++ library support
 
10821
        ld_shlibs_CXX=no
 
10822
        ;;
 
10823
      aCC*)
 
10824
        case $host_cpu in
 
10825
        hppa*64*)
 
10826
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10827
          ;;
 
10828
        ia64*)
 
10829
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10830
          ;;
 
10831
        *)
 
10832
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10833
          ;;
 
10834
        esac
 
10835
        # Commands to make compiler produce verbose output that lists
 
10836
        # what "hidden" libraries, object files and flags are used when
 
10837
        # linking a shared library.
 
10838
        #
 
10839
        # There doesn't appear to be a way to prevent this compiler from
 
10840
        # explicitly linking system object files so we need to strip them
 
10841
        # from the output so that they don't get included in the library
 
10842
        # dependencies.
 
10843
        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'
 
10844
        ;;
 
10845
      *)
 
10846
        if test "$GXX" = yes; then
 
10847
          if test $with_gnu_ld = no; then
 
10848
            case $host_cpu in
 
10849
            hppa*64*)
 
10850
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10851
              ;;
 
10852
            ia64*)
 
10853
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10854
              ;;
 
10855
            *)
 
10856
              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'
 
10857
              ;;
 
10858
            esac
 
10859
          fi
 
10860
        else
 
10861
          # FIXME: insert proper C++ library support
 
10862
          ld_shlibs_CXX=no
 
10863
        fi
 
10864
        ;;
 
10865
    esac
 
10866
    ;;
 
10867
  interix3*)
 
10868
    hardcode_direct_CXX=no
 
10869
    hardcode_shlibpath_var_CXX=no
 
10870
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10871
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10872
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10873
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10874
    # default) and relocated if they conflict, which is a slow very memory
 
10875
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
10876
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10877
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10878
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10879
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10880
    ;;
 
10881
  irix5* | irix6*)
 
10882
    case $cc_basename in
 
10883
      CC*)
 
10884
        # SGI C++
 
10885
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10886
 
 
10887
        # Archives containing C++ object files must be created using
 
10888
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10889
        # necessary to make sure instantiated templates are included
 
10890
        # in the archive.
 
10891
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10892
        ;;
 
10893
      *)
 
10894
        if test "$GXX" = yes; then
 
10895
          if test "$with_gnu_ld" = no; then
 
10896
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10897
          else
 
10898
            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'
 
10899
          fi
 
10900
        fi
 
10901
        link_all_deplibs_CXX=yes
 
10902
        ;;
 
10903
    esac
 
10904
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10905
    hardcode_libdir_separator_CXX=:
 
10906
    ;;
 
10907
  linux*)
 
10908
    case $cc_basename in
 
10909
      KCC*)
 
10910
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10911
 
 
10912
        # KCC will only create a shared library if the output file
 
10913
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10914
        # to its proper name (with version) after linking.
 
10915
        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'
 
10916
        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'
 
10917
        # Commands to make compiler produce verbose output that lists
 
10918
        # what "hidden" libraries, object files and flags are used when
 
10919
        # linking a shared library.
 
10920
        #
 
10921
        # There doesn't appear to be a way to prevent this compiler from
 
10922
        # explicitly linking system object files so we need to strip them
 
10923
        # from the output so that they don't get included in the library
 
10924
        # dependencies.
 
10925
        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'
 
10926
 
 
10927
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10928
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10929
 
 
10930
        # Archives containing C++ object files must be created using
 
10931
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10932
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10933
        ;;
 
10934
      icpc*)
 
10935
        # Intel C++
 
10936
        with_gnu_ld=yes
 
10937
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10938
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10939
        # earlier do not add the objects themselves.
 
10940
        case `$CC -V 2>&1` in
 
10941
        *"Version 7."*)
 
10942
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10943
          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'
 
10944
          ;;
 
10945
        *)  # Version 8.0 or newer
 
10946
          tmp_idyn=
 
10947
          case $host_cpu in
 
10948
            ia64*) tmp_idyn=' -i_dynamic';;
 
10949
          esac
 
10950
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10951
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10952
          ;;
 
10953
        esac
 
10954
        archive_cmds_need_lc_CXX=no
 
10955
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10956
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10957
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10958
        ;;
 
10959
      pgCC*)
 
10960
        # Portland Group C++ compiler
 
10961
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10962
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
10963
 
 
10964
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10965
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10966
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
10967
        ;;
 
10968
      cxx*)
 
10969
        # Compaq C++
 
10970
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10971
        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'
 
10972
 
 
10973
        runpath_var=LD_RUN_PATH
 
10974
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10975
        hardcode_libdir_separator_CXX=:
 
10976
 
 
10977
        # Commands to make compiler produce verbose output that lists
 
10978
        # what "hidden" libraries, object files and flags are used when
 
10979
        # linking a shared library.
 
10980
        #
 
10981
        # There doesn't appear to be a way to prevent this compiler from
 
10982
        # explicitly linking system object files so we need to strip them
 
10983
        # from the output so that they don't get included in the library
 
10984
        # dependencies.
 
10985
        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'
 
10986
        ;;
 
10987
    esac
 
10988
    ;;
 
10989
  lynxos*)
 
10990
    # FIXME: insert proper C++ library support
 
10991
    ld_shlibs_CXX=no
 
10992
    ;;
 
10993
  m88k*)
 
10994
    # FIXME: insert proper C++ library support
 
10995
    ld_shlibs_CXX=no
 
10996
    ;;
 
10997
  mvs*)
 
10998
    case $cc_basename in
 
10999
      cxx*)
 
11000
        # FIXME: insert proper C++ library support
 
11001
        ld_shlibs_CXX=no
 
11002
        ;;
 
11003
      *)
 
11004
        # FIXME: insert proper C++ library support
 
11005
        ld_shlibs_CXX=no
 
11006
        ;;
 
11007
    esac
 
11008
    ;;
 
11009
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
11010
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11011
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11012
      wlarc=
 
11013
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11014
      hardcode_direct_CXX=yes
 
11015
      hardcode_shlibpath_var_CXX=no
 
11016
    fi
 
11017
    # Workaround some broken pre-1.5 toolchains
 
11018
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11019
    ;;
 
11020
  openbsd2*)
 
11021
    # C++ shared libraries are fairly broken
 
11022
    ld_shlibs_CXX=no
 
11023
    ;;
 
11024
  openbsd*)
 
11025
    hardcode_direct_CXX=yes
 
11026
    hardcode_shlibpath_var_CXX=no
 
11027
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11028
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11029
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11030
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11031
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11032
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11033
    fi
 
11034
    output_verbose_link_cmd='echo'
 
11035
    ;;
 
11036
  osf3*)
 
11037
    case $cc_basename in
 
11038
      KCC*)
 
11039
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11040
 
 
11041
        # KCC will only create a shared library if the output file
 
11042
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11043
        # to its proper name (with version) after linking.
 
11044
        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'
 
11045
 
 
11046
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11047
        hardcode_libdir_separator_CXX=:
 
11048
 
 
11049
        # Archives containing C++ object files must be created using
 
11050
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11051
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11052
 
 
11053
        ;;
 
11054
      RCC*)
 
11055
        # Rational C++ 2.4.1
 
11056
        # FIXME: insert proper C++ library support
 
11057
        ld_shlibs_CXX=no
 
11058
        ;;
 
11059
      cxx*)
 
11060
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11061
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11062
 
 
11063
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11064
        hardcode_libdir_separator_CXX=:
 
11065
 
 
11066
        # Commands to make compiler produce verbose output that lists
 
11067
        # what "hidden" libraries, object files and flags are used when
 
11068
        # linking a shared library.
 
11069
        #
 
11070
        # There doesn't appear to be a way to prevent this compiler from
 
11071
        # explicitly linking system object files so we need to strip them
 
11072
        # from the output so that they don't get included in the library
 
11073
        # dependencies.
 
11074
        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'
 
11075
        ;;
 
11076
      *)
 
11077
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11078
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11079
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11080
 
 
11081
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11082
          hardcode_libdir_separator_CXX=:
 
11083
 
 
11084
          # Commands to make compiler produce verbose output that lists
 
11085
          # what "hidden" libraries, object files and flags are used when
 
11086
          # linking a shared library.
 
11087
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11088
 
 
11089
        else
 
11090
          # FIXME: insert proper C++ library support
 
11091
          ld_shlibs_CXX=no
 
11092
        fi
 
11093
        ;;
 
11094
    esac
 
11095
    ;;
 
11096
  osf4* | osf5*)
 
11097
    case $cc_basename in
 
11098
      KCC*)
 
11099
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11100
 
 
11101
        # KCC will only create a shared library if the output file
 
11102
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11103
        # to its proper name (with version) after linking.
 
11104
        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'
 
11105
 
 
11106
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11107
        hardcode_libdir_separator_CXX=:
 
11108
 
 
11109
        # Archives containing C++ object files must be created using
 
11110
        # the KAI C++ compiler.
 
11111
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11112
        ;;
 
11113
      RCC*)
 
11114
        # Rational C++ 2.4.1
 
11115
        # FIXME: insert proper C++ library support
 
11116
        ld_shlibs_CXX=no
 
11117
        ;;
 
11118
      cxx*)
 
11119
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11120
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11121
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11122
          echo "-hidden">> $lib.exp~
 
11123
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
11124
          $rm $lib.exp'
 
11125
 
 
11126
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11127
        hardcode_libdir_separator_CXX=:
 
11128
 
 
11129
        # Commands to make compiler produce verbose output that lists
 
11130
        # what "hidden" libraries, object files and flags are used when
 
11131
        # linking a shared library.
 
11132
        #
 
11133
        # There doesn't appear to be a way to prevent this compiler from
 
11134
        # explicitly linking system object files so we need to strip them
 
11135
        # from the output so that they don't get included in the library
 
11136
        # dependencies.
 
11137
        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'
 
11138
        ;;
 
11139
      *)
 
11140
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11141
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11142
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11143
 
 
11144
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11145
          hardcode_libdir_separator_CXX=:
 
11146
 
 
11147
          # Commands to make compiler produce verbose output that lists
 
11148
          # what "hidden" libraries, object files and flags are used when
 
11149
          # linking a shared library.
 
11150
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11151
 
 
11152
        else
 
11153
          # FIXME: insert proper C++ library support
 
11154
          ld_shlibs_CXX=no
 
11155
        fi
 
11156
        ;;
 
11157
    esac
 
11158
    ;;
 
11159
  psos*)
 
11160
    # FIXME: insert proper C++ library support
 
11161
    ld_shlibs_CXX=no
 
11162
    ;;
 
11163
  sunos4*)
 
11164
    case $cc_basename in
 
11165
      CC*)
 
11166
        # Sun C++ 4.x
 
11167
        # FIXME: insert proper C++ library support
 
11168
        ld_shlibs_CXX=no
 
11169
        ;;
 
11170
      lcc*)
 
11171
        # Lucid
 
11172
        # FIXME: insert proper C++ library support
 
11173
        ld_shlibs_CXX=no
 
11174
        ;;
 
11175
      *)
 
11176
        # FIXME: insert proper C++ library support
 
11177
        ld_shlibs_CXX=no
 
11178
        ;;
 
11179
    esac
 
11180
    ;;
 
11181
  solaris*)
 
11182
    case $cc_basename in
 
11183
      CC*)
 
11184
        # Sun C++ 4.2, 5.x and Centerline C++
 
11185
        archive_cmds_need_lc_CXX=yes
 
11186
        no_undefined_flag_CXX=' -zdefs'
 
11187
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11188
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11189
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11190
 
 
11191
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11192
        hardcode_shlibpath_var_CXX=no
 
11193
        case $host_os in
 
11194
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11195
          *)
 
11196
            # The C++ compiler is used as linker so we must use $wl
 
11197
            # flag to pass the commands to the underlying system
 
11198
            # linker. We must also pass each convience library through
 
11199
            # to the system linker between allextract/defaultextract.
 
11200
            # The C++ compiler will combine linker options so we
 
11201
            # cannot just pass the convience library names through
 
11202
            # without $wl.
 
11203
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11204
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
11205
            ;;
 
11206
        esac
 
11207
        link_all_deplibs_CXX=yes
 
11208
 
 
11209
        output_verbose_link_cmd='echo'
 
11210
 
 
11211
        # Archives containing C++ object files must be created using
 
11212
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11213
        # necessary to make sure instantiated templates are included
 
11214
        # in the archive.
 
11215
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11216
        ;;
 
11217
      gcx*)
 
11218
        # Green Hills C++ Compiler
 
11219
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11220
 
 
11221
        # The C++ compiler must be used to create the archive.
 
11222
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11223
        ;;
 
11224
      *)
 
11225
        # GNU C++ compiler with Solaris linker
 
11226
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11227
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11228
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11229
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11230
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11231
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11232
 
 
11233
            # Commands to make compiler produce verbose output that lists
 
11234
            # what "hidden" libraries, object files and flags are used when
 
11235
            # linking a shared library.
 
11236
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11237
          else
 
11238
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11239
            # platform.
 
11240
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11241
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11242
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11243
 
 
11244
            # Commands to make compiler produce verbose output that lists
 
11245
            # what "hidden" libraries, object files and flags are used when
 
11246
            # linking a shared library.
 
11247
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11248
          fi
 
11249
 
 
11250
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11251
        fi
 
11252
        ;;
 
11253
    esac
 
11254
    ;;
 
11255
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11256
    no_undefined_flag_CXX='${wl}-z,text'
 
11257
    archive_cmds_need_lc_CXX=no
 
11258
    hardcode_shlibpath_var_CXX=no
 
11259
    runpath_var='LD_RUN_PATH'
 
11260
 
 
11261
    case $cc_basename in
 
11262
      CC*)
 
11263
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11264
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11265
        ;;
 
11266
      *)
 
11267
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11268
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11269
        ;;
 
11270
    esac
 
11271
    ;;
 
11272
  sysv5* | sco3.2v5* | sco5v6*)
 
11273
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11274
    # link with -lc, and that would cause any symbols used from libc to
 
11275
    # always be unresolved, which means just about no library would
 
11276
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11277
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11278
    # as -z defs.
 
11279
    # For security reasons, it is highly recommended that you always
 
11280
    # use absolute paths for naming shared libraries, and exclude the
 
11281
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11282
    # requires that you compile everything twice, which is a pain.
 
11283
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11284
    # non-empty value in the environment.  Most likely only useful for
 
11285
    # creating official distributions of packages.
 
11286
    # This is a hack until libtool officially supports absolute path
 
11287
    # names for shared libraries.
 
11288
    no_undefined_flag_CXX='${wl}-z,text'
 
11289
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11290
    archive_cmds_need_lc_CXX=no
 
11291
    hardcode_shlibpath_var_CXX=no
 
11292
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11293
    hardcode_libdir_separator_CXX=':'
 
11294
    link_all_deplibs_CXX=yes
 
11295
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11296
    runpath_var='LD_RUN_PATH'
 
11297
 
 
11298
    case $cc_basename in
 
11299
      CC*)
 
11300
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11301
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11302
        ;;
 
11303
      *)
 
11304
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11305
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11306
        ;;
 
11307
    esac
 
11308
    ;;
 
11309
  tandem*)
 
11310
    case $cc_basename in
 
11311
      NCC*)
 
11312
        # NonStop-UX NCC 3.20
 
11313
        # FIXME: insert proper C++ library support
 
11314
        ld_shlibs_CXX=no
 
11315
        ;;
 
11316
      *)
 
11317
        # FIXME: insert proper C++ library support
 
11318
        ld_shlibs_CXX=no
 
11319
        ;;
 
11320
    esac
 
11321
    ;;
 
11322
  vxworks*)
 
11323
    # FIXME: insert proper C++ library support
 
11324
    ld_shlibs_CXX=no
 
11325
    ;;
 
11326
  *)
 
11327
    # FIXME: insert proper C++ library support
 
11328
    ld_shlibs_CXX=no
 
11329
    ;;
 
11330
esac
 
11331
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11332
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11333
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11334
 
 
11335
GCC_CXX="$GXX"
 
11336
LD_CXX="$LD"
 
11337
 
 
11338
 
 
11339
cat > conftest.$ac_ext <<EOF
 
11340
class Foo
 
11341
{
 
11342
public:
 
11343
  Foo (void) { a = 0; }
 
11344
private:
 
11345
  int a;
 
11346
};
 
11347
EOF
 
11348
 
 
11349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11350
  (eval $ac_compile) 2>&5
 
11351
  ac_status=$?
 
11352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11353
  (exit $ac_status); }; then
 
11354
  # Parse the compiler output and extract the necessary
 
11355
  # objects, libraries and library flags.
 
11356
 
 
11357
  # Sentinel used to keep track of whether or not we are before
 
11358
  # the conftest object file.
 
11359
  pre_test_object_deps_done=no
 
11360
 
 
11361
  # The `*' in the case matches for architectures that use `case' in
 
11362
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11363
  # eval without this substitution.
 
11364
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11365
 
 
11366
  for p in `eval $output_verbose_link_cmd`; do
 
11367
    case $p in
 
11368
 
 
11369
    -L* | -R* | -l*)
 
11370
       # Some compilers place space between "-{L,R}" and the path.
 
11371
       # Remove the space.
 
11372
       if test $p = "-L" \
 
11373
          || test $p = "-R"; then
 
11374
         prev=$p
 
11375
         continue
 
11376
       else
 
11377
         prev=
 
11378
       fi
 
11379
 
 
11380
       if test "$pre_test_object_deps_done" = no; then
 
11381
         case $p in
 
11382
         -L* | -R*)
 
11383
           # Internal compiler library paths should come after those
 
11384
           # provided the user.  The postdeps already come after the
 
11385
           # user supplied libs so there is no need to process them.
 
11386
           if test -z "$compiler_lib_search_path_CXX"; then
 
11387
             compiler_lib_search_path_CXX="${prev}${p}"
 
11388
           else
 
11389
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11390
           fi
 
11391
           ;;
 
11392
         # The "-l" case would never come before the object being
 
11393
         # linked, so don't bother handling this case.
 
11394
         esac
 
11395
       else
 
11396
         if test -z "$postdeps_CXX"; then
 
11397
           postdeps_CXX="${prev}${p}"
 
11398
         else
 
11399
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11400
         fi
 
11401
       fi
 
11402
       ;;
 
11403
 
 
11404
    *.$objext)
 
11405
       # This assumes that the test object file only shows up
 
11406
       # once in the compiler output.
 
11407
       if test "$p" = "conftest.$objext"; then
 
11408
         pre_test_object_deps_done=yes
 
11409
         continue
 
11410
       fi
 
11411
 
 
11412
       if test "$pre_test_object_deps_done" = no; then
 
11413
         if test -z "$predep_objects_CXX"; then
 
11414
           predep_objects_CXX="$p"
 
11415
         else
 
11416
           predep_objects_CXX="$predep_objects_CXX $p"
 
11417
         fi
 
11418
       else
 
11419
         if test -z "$postdep_objects_CXX"; then
 
11420
           postdep_objects_CXX="$p"
 
11421
         else
 
11422
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11423
         fi
 
11424
       fi
 
11425
       ;;
 
11426
 
 
11427
    *) ;; # Ignore the rest.
 
11428
 
 
11429
    esac
 
11430
  done
 
11431
 
 
11432
  # Clean up.
 
11433
  rm -f a.out a.exe
 
11434
else
 
11435
  echo "libtool.m4: error: problem compiling CXX test program"
 
11436
fi
 
11437
 
 
11438
$rm -f confest.$objext
 
11439
 
 
11440
# PORTME: override above test on systems where it is broken
 
11441
case $host_os in
 
11442
interix3*)
 
11443
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11444
  # hack all around it, let's just trust "g++" to DTRT.
 
11445
  predep_objects_CXX=
 
11446
  postdep_objects_CXX=
 
11447
  postdeps_CXX=
 
11448
  ;;
 
11449
 
 
11450
solaris*)
 
11451
  case $cc_basename in
 
11452
  CC*)
 
11453
    # Adding this requires a known-good setup of shared libraries for
 
11454
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11455
    # archive will be linked into the output, leading to subtle bugs.
 
11456
    postdeps_CXX='-lCstd -lCrun'
 
11457
    ;;
 
11458
  esac
 
11459
  ;;
 
11460
esac
 
11461
 
 
11462
 
 
11463
case " $postdeps_CXX " in
 
11464
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11465
esac
 
11466
 
 
11467
lt_prog_compiler_wl_CXX=
 
11468
lt_prog_compiler_pic_CXX=
 
11469
lt_prog_compiler_static_CXX=
 
11470
 
 
11471
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11472
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11473
 
 
11474
  # C++ specific cases for pic, static, wl, etc.
 
11475
  if test "$GXX" = yes; then
 
11476
    lt_prog_compiler_wl_CXX='-Wl,'
 
11477
    lt_prog_compiler_static_CXX='-static'
 
11478
 
 
11479
    case $host_os in
 
11480
    aix*)
 
11481
      # All AIX code is PIC.
 
11482
      if test "$host_cpu" = ia64; then
 
11483
        # AIX 5 now supports IA64 processor
 
11484
        lt_prog_compiler_static_CXX='-Bstatic'
 
11485
      fi
 
11486
      ;;
 
11487
    amigaos*)
 
11488
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11489
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11490
      # like `-m68040'.
 
11491
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11492
      ;;
 
11493
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11494
      # PIC is the default for these OSes.
 
11495
      ;;
 
11496
    mingw* | os2* | pw32*)
 
11497
      # This hack is so that the source file can tell whether it is being
 
11498
      # built for inclusion in a dll (and should export symbols for example).
 
11499
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11500
      ;;
 
11501
    darwin* | rhapsody*)
 
11502
      # PIC is the default on this platform
 
11503
      # Common symbols not allowed in MH_DYLIB files
 
11504
      lt_prog_compiler_pic_CXX='-fno-common'
 
11505
      ;;
 
11506
    *djgpp*)
 
11507
      # DJGPP does not support shared libraries at all
 
11508
      lt_prog_compiler_pic_CXX=
 
11509
      ;;
 
11510
    interix3*)
 
11511
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11512
      # Instead, we relocate shared libraries at runtime.
 
11513
      ;;
 
11514
    sysv4*MP*)
 
11515
      if test -d /usr/nec; then
 
11516
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11517
      fi
 
11518
      ;;
 
11519
    hpux*)
 
11520
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11521
      # not for PA HP-UX.
 
11522
      case $host_cpu in
 
11523
      hppa*64*|ia64*)
 
11524
        ;;
 
11525
      *)
 
11526
        lt_prog_compiler_pic_CXX='-fPIC'
 
11527
        ;;
 
11528
      esac
 
11529
      ;;
 
11530
    *)
 
11531
      lt_prog_compiler_pic_CXX='-fPIC'
 
11532
      ;;
 
11533
    esac
 
11534
  else
 
11535
    case $host_os in
 
11536
      aix4* | aix5*)
 
11537
        # All AIX code is PIC.
 
11538
        if test "$host_cpu" = ia64; then
 
11539
          # AIX 5 now supports IA64 processor
 
11540
          lt_prog_compiler_static_CXX='-Bstatic'
 
11541
        else
 
11542
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11543
        fi
 
11544
        ;;
 
11545
      chorus*)
 
11546
        case $cc_basename in
 
11547
        cxch68*)
 
11548
          # Green Hills C++ Compiler
 
11549
          # _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"
 
11550
          ;;
 
11551
        esac
 
11552
        ;;
 
11553
       darwin*)
 
11554
         # PIC is the default on this platform
 
11555
         # Common symbols not allowed in MH_DYLIB files
 
11556
         case $cc_basename in
 
11557
           xlc*)
 
11558
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11559
           lt_prog_compiler_wl_CXX='-Wl,'
 
11560
           ;;
 
11561
         esac
 
11562
       ;;
 
11563
      dgux*)
 
11564
        case $cc_basename in
 
11565
          ec++*)
 
11566
            lt_prog_compiler_pic_CXX='-KPIC'
 
11567
            ;;
 
11568
          ghcx*)
 
11569
            # Green Hills C++ Compiler
 
11570
            lt_prog_compiler_pic_CXX='-pic'
 
11571
            ;;
 
11572
          *)
 
11573
            ;;
 
11574
        esac
 
11575
        ;;
 
11576
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
11577
        # FreeBSD uses GNU C++
 
11578
        ;;
 
11579
      hpux9* | hpux10* | hpux11*)
 
11580
        case $cc_basename in
 
11581
          CC*)
 
11582
            lt_prog_compiler_wl_CXX='-Wl,'
 
11583
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11584
            if test "$host_cpu" != ia64; then
 
11585
              lt_prog_compiler_pic_CXX='+Z'
 
11586
            fi
 
11587
            ;;
 
11588
          aCC*)
 
11589
            lt_prog_compiler_wl_CXX='-Wl,'
 
11590
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11591
            case $host_cpu in
 
11592
            hppa*64*|ia64*)
 
11593
              # +Z the default
 
11594
              ;;
 
11595
            *)
 
11596
              lt_prog_compiler_pic_CXX='+Z'
 
11597
              ;;
 
11598
            esac
 
11599
            ;;
 
11600
          *)
 
11601
            ;;
 
11602
        esac
 
11603
        ;;
 
11604
      interix*)
 
11605
        # This is c89, which is MS Visual C++ (no shared libs)
 
11606
        # Anyone wants to do a port?
 
11607
        ;;
 
11608
      irix5* | irix6* | nonstopux*)
 
11609
        case $cc_basename in
 
11610
          CC*)
 
11611
            lt_prog_compiler_wl_CXX='-Wl,'
 
11612
            lt_prog_compiler_static_CXX='-non_shared'
 
11613
            # CC pic flag -KPIC is the default.
 
11614
            ;;
 
11615
          *)
 
11616
            ;;
 
11617
        esac
 
11618
        ;;
 
11619
      linux*)
 
11620
        case $cc_basename in
 
11621
          KCC*)
 
11622
            # KAI C++ Compiler
 
11623
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11624
            lt_prog_compiler_pic_CXX='-fPIC'
 
11625
            ;;
 
11626
          icpc* | ecpc*)
 
11627
            # Intel C++
 
11628
            lt_prog_compiler_wl_CXX='-Wl,'
 
11629
            lt_prog_compiler_pic_CXX='-KPIC'
 
11630
            lt_prog_compiler_static_CXX='-static'
 
11631
            ;;
 
11632
          pgCC*)
 
11633
            # Portland Group C++ compiler.
 
11634
            lt_prog_compiler_wl_CXX='-Wl,'
 
11635
            lt_prog_compiler_pic_CXX='-fpic'
 
11636
            lt_prog_compiler_static_CXX='-Bstatic'
 
11637
            ;;
 
11638
          cxx*)
 
11639
            # Compaq C++
 
11640
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11641
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11642
            lt_prog_compiler_pic_CXX=
 
11643
            lt_prog_compiler_static_CXX='-non_shared'
 
11644
            ;;
 
11645
          *)
 
11646
            ;;
 
11647
        esac
 
11648
        ;;
 
11649
      lynxos*)
 
11650
        ;;
 
11651
      m88k*)
 
11652
        ;;
 
11653
      mvs*)
 
11654
        case $cc_basename in
 
11655
          cxx*)
 
11656
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11657
            ;;
 
11658
          *)
 
11659
            ;;
 
11660
        esac
 
11661
        ;;
 
11662
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
11663
        ;;
 
11664
      osf3* | osf4* | osf5*)
 
11665
        case $cc_basename in
 
11666
          KCC*)
 
11667
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11668
            ;;
 
11669
          RCC*)
 
11670
            # Rational C++ 2.4.1
 
11671
            lt_prog_compiler_pic_CXX='-pic'
 
11672
            ;;
 
11673
          cxx*)
 
11674
            # Digital/Compaq C++
 
11675
            lt_prog_compiler_wl_CXX='-Wl,'
 
11676
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11677
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11678
            lt_prog_compiler_pic_CXX=
 
11679
            lt_prog_compiler_static_CXX='-non_shared'
 
11680
            ;;
 
11681
          *)
 
11682
            ;;
 
11683
        esac
 
11684
        ;;
 
11685
      psos*)
 
11686
        ;;
 
11687
      solaris*)
 
11688
        case $cc_basename in
 
11689
          CC*)
 
11690
            # Sun C++ 4.2, 5.x and Centerline C++
 
11691
            lt_prog_compiler_pic_CXX='-KPIC'
 
11692
            lt_prog_compiler_static_CXX='-Bstatic'
 
11693
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11694
            ;;
 
11695
          gcx*)
 
11696
            # Green Hills C++ Compiler
 
11697
            lt_prog_compiler_pic_CXX='-PIC'
 
11698
            ;;
 
11699
          *)
 
11700
            ;;
 
11701
        esac
 
11702
        ;;
 
11703
      sunos4*)
 
11704
        case $cc_basename in
 
11705
          CC*)
 
11706
            # Sun C++ 4.x
 
11707
            lt_prog_compiler_pic_CXX='-pic'
 
11708
            lt_prog_compiler_static_CXX='-Bstatic'
 
11709
            ;;
 
11710
          lcc*)
 
11711
            # Lucid
 
11712
            lt_prog_compiler_pic_CXX='-pic'
 
11713
            ;;
 
11714
          *)
 
11715
            ;;
 
11716
        esac
 
11717
        ;;
 
11718
      tandem*)
 
11719
        case $cc_basename in
 
11720
          NCC*)
 
11721
            # NonStop-UX NCC 3.20
 
11722
            lt_prog_compiler_pic_CXX='-KPIC'
 
11723
            ;;
 
11724
          *)
 
11725
            ;;
 
11726
        esac
 
11727
        ;;
 
11728
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11729
        case $cc_basename in
 
11730
          CC*)
 
11731
            lt_prog_compiler_wl_CXX='-Wl,'
 
11732
            lt_prog_compiler_pic_CXX='-KPIC'
 
11733
            lt_prog_compiler_static_CXX='-Bstatic'
 
11734
            ;;
 
11735
        esac
 
11736
        ;;
 
11737
      vxworks*)
 
11738
        ;;
 
11739
      *)
 
11740
        lt_prog_compiler_can_build_shared_CXX=no
 
11741
        ;;
 
11742
    esac
 
11743
  fi
 
11744
 
 
11745
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11746
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11747
 
 
11748
#
 
11749
# Check to make sure the PIC flag actually works.
 
11750
#
 
11751
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11752
 
 
11753
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11754
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11755
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11757
else
 
11758
  lt_prog_compiler_pic_works_CXX=no
 
11759
  ac_outfile=conftest.$ac_objext
 
11760
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11761
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11762
   # Insert the option either (1) after the last *FLAGS variable, or
 
11763
   # (2) before a word containing "conftest.", or (3) at the end.
 
11764
   # Note that $ac_compile itself does not contain backslashes and begins
 
11765
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11766
   # The option is referenced via a variable to avoid confusing sed.
 
11767
   lt_compile=`echo "$ac_compile" | $SED \
 
11768
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11769
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11770
   -e 's:$: $lt_compiler_flag:'`
 
11771
   (eval echo "\"\$as_me:11771: $lt_compile\"" >&5)
 
11772
   (eval "$lt_compile" 2>conftest.err)
 
11773
   ac_status=$?
 
11774
   cat conftest.err >&5
 
11775
   echo "$as_me:11775: \$? = $ac_status" >&5
 
11776
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11777
     # The compiler can only warn and ignore the option if not recognized
 
11778
     # So say no if there are warnings other than the usual output.
 
11779
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11780
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11781
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
11782
       lt_prog_compiler_pic_works_CXX=yes
 
11783
     fi
 
11784
   fi
 
11785
   $rm conftest*
 
11786
 
 
11787
fi
 
11788
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11789
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11790
 
 
11791
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11792
    case $lt_prog_compiler_pic_CXX in
 
11793
     "" | " "*) ;;
 
11794
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11795
     esac
 
11796
else
 
11797
    lt_prog_compiler_pic_CXX=
 
11798
     lt_prog_compiler_can_build_shared_CXX=no
 
11799
fi
 
11800
 
 
11801
fi
 
11802
case $host_os in
 
11803
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11804
  *djgpp*)
 
11805
    lt_prog_compiler_pic_CXX=
 
11806
    ;;
 
11807
  *)
 
11808
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11809
    ;;
 
11810
esac
 
11811
 
 
11812
#
 
11813
# Check to make sure the static flag actually works.
 
11814
#
 
11815
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11816
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11817
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
11818
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11820
else
 
11821
  lt_prog_compiler_static_works_CXX=no
 
11822
   save_LDFLAGS="$LDFLAGS"
 
11823
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
11824
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11825
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
11826
     # The linker can only warn and ignore the option if not recognized
 
11827
     # So say no if there are warnings
 
11828
     if test -s conftest.err; then
 
11829
       # Append any errors to the config.log.
 
11830
       cat conftest.err 1>&5
 
11831
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11832
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11833
       if diff conftest.exp conftest.er2 >/dev/null; then
 
11834
         lt_prog_compiler_static_works_CXX=yes
 
11835
       fi
 
11836
     else
 
11837
       lt_prog_compiler_static_works_CXX=yes
 
11838
     fi
 
11839
   fi
 
11840
   $rm conftest*
 
11841
   LDFLAGS="$save_LDFLAGS"
 
11842
 
 
11843
fi
 
11844
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
11845
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
11846
 
 
11847
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11848
    :
 
11849
else
 
11850
    lt_prog_compiler_static_CXX=
 
11851
fi
 
11852
 
 
11853
 
 
11854
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11855
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11856
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11858
else
 
11859
  lt_cv_prog_compiler_c_o_CXX=no
 
11860
   $rm -r conftest 2>/dev/null
 
11861
   mkdir conftest
 
11862
   cd conftest
 
11863
   mkdir out
 
11864
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11865
 
 
11866
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11867
   # Insert the option either (1) after the last *FLAGS variable, or
 
11868
   # (2) before a word containing "conftest.", or (3) at the end.
 
11869
   # Note that $ac_compile itself does not contain backslashes and begins
 
11870
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11871
   lt_compile=`echo "$ac_compile" | $SED \
 
11872
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11873
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11874
   -e 's:$: $lt_compiler_flag:'`
 
11875
   (eval echo "\"\$as_me:11875: $lt_compile\"" >&5)
 
11876
   (eval "$lt_compile" 2>out/conftest.err)
 
11877
   ac_status=$?
 
11878
   cat out/conftest.err >&5
 
11879
   echo "$as_me:11879: \$? = $ac_status" >&5
 
11880
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11881
   then
 
11882
     # The compiler can only warn and ignore the option if not recognized
 
11883
     # So say no if there are warnings
 
11884
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
11885
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
11886
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11887
       lt_cv_prog_compiler_c_o_CXX=yes
 
11888
     fi
 
11889
   fi
 
11890
   chmod u+w . 2>&5
 
11891
   $rm conftest*
 
11892
   # SGI C++ compiler will create directory out/ii_files/ for
 
11893
   # template instantiation
 
11894
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11895
   $rm out/* && rmdir out
 
11896
   cd ..
 
11897
   rmdir conftest
 
11898
   $rm conftest*
 
11899
 
 
11900
fi
 
11901
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11902
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11903
 
 
11904
 
 
11905
hard_links="nottested"
 
11906
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11907
  # do not overwrite the value of need_locks provided by the user
 
11908
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11909
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11910
  hard_links=yes
 
11911
  $rm conftest*
 
11912
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11913
  touch conftest.a
 
11914
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11915
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11916
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11917
echo "${ECHO_T}$hard_links" >&6
 
11918
  if test "$hard_links" = no; then
 
11919
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11920
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11921
    need_locks=warn
 
11922
  fi
 
11923
else
 
11924
  need_locks=no
 
11925
fi
 
11926
 
 
11927
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11928
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11929
 
 
11930
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11931
  case $host_os in
 
11932
  aix4* | aix5*)
 
11933
    # If we're using GNU nm, then we don't want the "-C" option.
 
11934
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11935
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11936
      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'
 
11937
    else
 
11938
      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'
 
11939
    fi
 
11940
    ;;
 
11941
  pw32*)
 
11942
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11943
  ;;
 
11944
  cygwin* | mingw*)
 
11945
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11946
  ;;
 
11947
  kfreebsd*-gnu)
 
11948
    link_all_deplibs_CXX=no
 
11949
  ;;
 
11950
  linux*)
 
11951
    link_all_deplibs_CXX=no
 
11952
  ;;
 
11953
  *)
 
11954
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11955
  ;;
 
11956
  esac
 
11957
 
 
11958
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11959
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11960
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11961
 
 
11962
#
 
11963
# Do we need to explicitly link libc?
 
11964
#
 
11965
case "x$archive_cmds_need_lc_CXX" in
 
11966
x|xyes)
 
11967
  # Assume -lc should be added
 
11968
  archive_cmds_need_lc_CXX=yes
 
11969
 
 
11970
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11971
    case $archive_cmds_CXX in
 
11972
    *'~'*)
 
11973
      # FIXME: we may have to deal with multi-command sequences.
 
11974
      ;;
 
11975
    '$CC '*)
 
11976
      # Test whether the compiler implicitly links with -lc since on some
 
11977
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11978
      # to ld, don't add -lc before -lgcc.
 
11979
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11980
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11981
      $rm conftest*
 
11982
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11983
 
 
11984
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11985
  (eval $ac_compile) 2>&5
 
11986
  ac_status=$?
 
11987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11988
  (exit $ac_status); } 2>conftest.err; then
 
11989
        soname=conftest
 
11990
        lib=conftest
 
11991
        libobjs=conftest.$ac_objext
 
11992
        deplibs=
 
11993
        wl=$lt_prog_compiler_wl_CXX
 
11994
        pic_flag=$lt_prog_compiler_pic_CXX
 
11995
        compiler_flags=-v
 
11996
        linker_flags=-v
 
11997
        verstring=
 
11998
        output_objdir=.
 
11999
        libname=conftest
 
12000
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12001
        allow_undefined_flag_CXX=
 
12002
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12003
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12004
  ac_status=$?
 
12005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12006
  (exit $ac_status); }
 
12007
        then
 
12008
          archive_cmds_need_lc_CXX=no
 
12009
        else
 
12010
          archive_cmds_need_lc_CXX=yes
 
12011
        fi
 
12012
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12013
      else
 
12014
        cat conftest.err 1>&5
 
12015
      fi
 
12016
      $rm conftest*
 
12017
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12018
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
12019
      ;;
 
12020
    esac
 
12021
  fi
 
12022
  ;;
 
12023
esac
 
12024
 
 
12025
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12026
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12027
library_names_spec=
 
12028
libname_spec='lib$name'
 
12029
soname_spec=
 
12030
shrext_cmds=".so"
 
12031
postinstall_cmds=
 
12032
postuninstall_cmds=
 
12033
finish_cmds=
 
12034
finish_eval=
 
12035
shlibpath_var=
 
12036
shlibpath_overrides_runpath=unknown
 
12037
version_type=none
 
12038
dynamic_linker="$host_os ld.so"
 
12039
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12040
if test "$GCC" = yes; then
 
12041
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12042
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12043
    # if the path contains ";" then we assume it to be the separator
 
12044
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12045
    # assumed that no part of a normal pathname contains ";" but that should
 
12046
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12047
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12048
  else
 
12049
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12050
  fi
 
12051
else
 
12052
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12053
fi
 
12054
need_lib_prefix=unknown
 
12055
hardcode_into_libs=no
 
12056
 
 
12057
# when you set need_version to no, make sure it does not cause -set_version
 
12058
# flags to be left without arguments
 
12059
need_version=unknown
 
12060
 
 
12061
case $host_os in
 
12062
aix3*)
 
12063
  version_type=linux
 
12064
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12065
  shlibpath_var=LIBPATH
 
12066
 
 
12067
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12068
  soname_spec='${libname}${release}${shared_ext}$major'
 
12069
  ;;
 
12070
 
 
12071
aix4* | aix5*)
 
12072
  version_type=linux
 
12073
  need_lib_prefix=no
 
12074
  need_version=no
 
12075
  hardcode_into_libs=yes
 
12076
  if test "$host_cpu" = ia64; then
 
12077
    # AIX 5 supports IA64
 
12078
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12079
    shlibpath_var=LD_LIBRARY_PATH
 
12080
  else
 
12081
    # With GCC up to 2.95.x, collect2 would create an import file
 
12082
    # for dependence libraries.  The import file would start with
 
12083
    # the line `#! .'.  This would cause the generated library to
 
12084
    # depend on `.', always an invalid library.  This was fixed in
 
12085
    # development snapshots of GCC prior to 3.0.
 
12086
    case $host_os in
 
12087
      aix4 | aix4.[01] | aix4.[01].*)
 
12088
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12089
           echo ' yes '
 
12090
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12091
        :
 
12092
      else
 
12093
        can_build_shared=no
 
12094
      fi
 
12095
      ;;
 
12096
    esac
 
12097
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12098
    # soname into executable. Probably we can add versioning support to
 
12099
    # collect2, so additional links can be useful in future.
 
12100
    if test "$aix_use_runtimelinking" = yes; then
 
12101
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12102
      # instead of lib<name>.a to let people know that these are not
 
12103
      # typical AIX shared libraries.
 
12104
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12105
    else
 
12106
      # We preserve .a as extension for shared libraries through AIX4.2
 
12107
      # and later when we are not doing run time linking.
 
12108
      library_names_spec='${libname}${release}.a $libname.a'
 
12109
      soname_spec='${libname}${release}${shared_ext}$major'
 
12110
    fi
 
12111
    shlibpath_var=LIBPATH
 
12112
  fi
 
12113
  ;;
 
12114
 
 
12115
amigaos*)
 
12116
  library_names_spec='$libname.ixlibrary $libname.a'
 
12117
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12118
  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'
 
12119
  ;;
 
12120
 
 
12121
beos*)
 
12122
  library_names_spec='${libname}${shared_ext}'
 
12123
  dynamic_linker="$host_os ld.so"
 
12124
  shlibpath_var=LIBRARY_PATH
 
12125
  ;;
 
12126
 
 
12127
bsdi[45]*)
 
12128
  version_type=linux
 
12129
  need_version=no
 
12130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12131
  soname_spec='${libname}${release}${shared_ext}$major'
 
12132
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12133
  shlibpath_var=LD_LIBRARY_PATH
 
12134
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12135
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12136
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12137
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12138
  # libtool to hard-code these into programs
 
12139
  ;;
 
12140
 
 
12141
cygwin* | mingw* | pw32*)
 
12142
  version_type=windows
 
12143
  shrext_cmds=".dll"
 
12144
  need_version=no
 
12145
  need_lib_prefix=no
 
12146
 
 
12147
  case $GCC,$host_os in
 
12148
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12149
    library_names_spec='$libname.dll.a'
 
12150
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12151
    postinstall_cmds='base_file=`basename \${file}`~
 
12152
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12153
      dldir=$destdir/`dirname \$dlpath`~
 
12154
      test -d \$dldir || mkdir -p \$dldir~
 
12155
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12156
      chmod a+x \$dldir/$dlname'
 
12157
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12158
      dlpath=$dir/\$dldll~
 
12159
       $rm \$dlpath'
 
12160
    shlibpath_overrides_runpath=yes
 
12161
 
 
12162
    case $host_os in
 
12163
    cygwin*)
 
12164
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12165
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12166
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12167
      ;;
 
12168
    mingw*)
 
12169
      # MinGW DLLs use traditional 'lib' prefix
 
12170
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12171
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12172
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12173
        # It is most probably a Windows format PATH printed by
 
12174
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12175
        # path with ; separators, and with drive letters. We can handle the
 
12176
        # drive letters (cygwin fileutils understands them), so leave them,
 
12177
        # especially as we might pass files found there to a mingw objdump,
 
12178
        # which wouldn't understand a cygwinified path. Ahh.
 
12179
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12180
      else
 
12181
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12182
      fi
 
12183
      ;;
 
12184
    pw32*)
 
12185
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12186
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12187
      ;;
 
12188
    esac
 
12189
    ;;
 
12190
 
 
12191
  *)
 
12192
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12193
    ;;
 
12194
  esac
 
12195
  dynamic_linker='Win32 ld.exe'
 
12196
  # FIXME: first we should search . and the directory the executable is in
 
12197
  shlibpath_var=PATH
 
12198
  ;;
 
12199
 
 
12200
darwin* | rhapsody*)
 
12201
  dynamic_linker="$host_os dyld"
 
12202
  version_type=darwin
 
12203
  need_lib_prefix=no
 
12204
  need_version=no
 
12205
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12206
  soname_spec='${libname}${release}${major}$shared_ext'
 
12207
  shlibpath_overrides_runpath=yes
 
12208
  shlibpath_var=DYLD_LIBRARY_PATH
 
12209
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12210
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12211
  if test "$GCC" = yes; then
 
12212
    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"`
 
12213
  else
 
12214
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12215
  fi
 
12216
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12217
  ;;
 
12218
 
 
12219
dgux*)
 
12220
  version_type=linux
 
12221
  need_lib_prefix=no
 
12222
  need_version=no
 
12223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12224
  soname_spec='${libname}${release}${shared_ext}$major'
 
12225
  shlibpath_var=LD_LIBRARY_PATH
 
12226
  ;;
 
12227
 
 
12228
freebsd1*)
 
12229
  dynamic_linker=no
 
12230
  ;;
 
12231
 
 
12232
kfreebsd*-gnu)
 
12233
  version_type=linux
 
12234
  need_lib_prefix=no
 
12235
  need_version=no
 
12236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12237
  soname_spec='${libname}${release}${shared_ext}$major'
 
12238
  shlibpath_var=LD_LIBRARY_PATH
 
12239
  shlibpath_overrides_runpath=no
 
12240
  hardcode_into_libs=yes
 
12241
  dynamic_linker='GNU ld.so'
 
12242
  ;;
 
12243
 
 
12244
freebsd* | dragonfly*)
 
12245
  # DragonFly does not have aout.  When/if they implement a new
 
12246
  # versioning mechanism, adjust this.
 
12247
  if test -x /usr/bin/objformat; then
 
12248
    objformat=`/usr/bin/objformat`
 
12249
  else
 
12250
    case $host_os in
 
12251
    freebsd[123]*) objformat=aout ;;
 
12252
    *) objformat=elf ;;
 
12253
    esac
 
12254
  fi
 
12255
  version_type=freebsd-$objformat
 
12256
  case $version_type in
 
12257
    freebsd-elf*)
 
12258
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12259
      need_version=no
 
12260
      need_lib_prefix=no
 
12261
      ;;
 
12262
    freebsd-*)
 
12263
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12264
      need_version=yes
 
12265
      ;;
 
12266
  esac
 
12267
  shlibpath_var=LD_LIBRARY_PATH
 
12268
  case $host_os in
 
12269
  freebsd2*)
 
12270
    shlibpath_overrides_runpath=yes
 
12271
    ;;
 
12272
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12273
    shlibpath_overrides_runpath=yes
 
12274
    hardcode_into_libs=yes
 
12275
    ;;
 
12276
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12277
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12278
    shlibpath_overrides_runpath=no
 
12279
    hardcode_into_libs=yes
 
12280
    ;;
 
12281
  freebsd*) # from 4.6 on
 
12282
    shlibpath_overrides_runpath=yes
 
12283
    hardcode_into_libs=yes
 
12284
    ;;
 
12285
  esac
 
12286
  ;;
 
12287
 
 
12288
gnu*)
 
12289
  version_type=linux
 
12290
  need_lib_prefix=no
 
12291
  need_version=no
 
12292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12293
  soname_spec='${libname}${release}${shared_ext}$major'
 
12294
  shlibpath_var=LD_LIBRARY_PATH
 
12295
  hardcode_into_libs=yes
 
12296
  ;;
 
12297
 
 
12298
hpux9* | hpux10* | hpux11*)
 
12299
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12300
  # link against other versions.
 
12301
  version_type=sunos
 
12302
  need_lib_prefix=no
 
12303
  need_version=no
 
12304
  case $host_cpu in
 
12305
  ia64*)
 
12306
    shrext_cmds='.so'
 
12307
    hardcode_into_libs=yes
 
12308
    dynamic_linker="$host_os dld.so"
 
12309
    shlibpath_var=LD_LIBRARY_PATH
 
12310
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12311
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12312
    soname_spec='${libname}${release}${shared_ext}$major'
 
12313
    if test "X$HPUX_IA64_MODE" = X32; then
 
12314
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12315
    else
 
12316
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12317
    fi
 
12318
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12319
    ;;
 
12320
   hppa*64*)
 
12321
     shrext_cmds='.sl'
 
12322
     hardcode_into_libs=yes
 
12323
     dynamic_linker="$host_os dld.sl"
 
12324
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12325
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12326
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12327
     soname_spec='${libname}${release}${shared_ext}$major'
 
12328
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12329
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12330
     ;;
 
12331
   *)
 
12332
    shrext_cmds='.sl'
 
12333
    dynamic_linker="$host_os dld.sl"
 
12334
    shlibpath_var=SHLIB_PATH
 
12335
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
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
    ;;
 
12339
  esac
 
12340
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12341
  postinstall_cmds='chmod 555 $lib'
 
12342
  ;;
 
12343
 
 
12344
interix3*)
 
12345
  version_type=linux
 
12346
  need_lib_prefix=no
 
12347
  need_version=no
 
12348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12349
  soname_spec='${libname}${release}${shared_ext}$major'
 
12350
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12351
  shlibpath_var=LD_LIBRARY_PATH
 
12352
  shlibpath_overrides_runpath=no
 
12353
  hardcode_into_libs=yes
 
12354
  ;;
 
12355
 
 
12356
irix5* | irix6* | nonstopux*)
 
12357
  case $host_os in
 
12358
    nonstopux*) version_type=nonstopux ;;
 
12359
    *)
 
12360
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12361
                version_type=linux
 
12362
        else
 
12363
                version_type=irix
 
12364
        fi ;;
 
12365
  esac
 
12366
  need_lib_prefix=no
 
12367
  need_version=no
 
12368
  soname_spec='${libname}${release}${shared_ext}$major'
 
12369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12370
  case $host_os in
 
12371
  irix5* | nonstopux*)
 
12372
    libsuff= shlibsuff=
 
12373
    ;;
 
12374
  *)
 
12375
    case $LD in # libtool.m4 will add one of these switches to LD
 
12376
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12377
      libsuff= shlibsuff= libmagic=32-bit;;
 
12378
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12379
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12380
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12381
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12382
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12383
    esac
 
12384
    ;;
 
12385
  esac
 
12386
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12387
  shlibpath_overrides_runpath=no
 
12388
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12389
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12390
  hardcode_into_libs=yes
 
12391
  ;;
 
12392
 
 
12393
# No shared lib support for Linux oldld, aout, or coff.
 
12394
linux*oldld* | linux*aout* | linux*coff*)
 
12395
  dynamic_linker=no
 
12396
  ;;
 
12397
 
 
12398
# This must be Linux ELF.
 
12399
linux*)
 
12400
  version_type=linux
 
12401
  need_lib_prefix=no
 
12402
  need_version=no
 
12403
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12404
  soname_spec='${libname}${release}${shared_ext}$major'
 
12405
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12406
  shlibpath_var=LD_LIBRARY_PATH
 
12407
  shlibpath_overrides_runpath=no
 
12408
  # This implies no fast_install, which is unacceptable.
 
12409
  # Some rework will be needed to allow for fast_install
 
12410
  # before this can be enabled.
 
12411
  hardcode_into_libs=yes
 
12412
 
 
12413
  # Append ld.so.conf contents to the search path
 
12414
  if test -f /etc/ld.so.conf; then
 
12415
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12416
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12417
  fi
 
12418
 
 
12419
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12420
  # powerpc, because MkLinux only supported shared libraries with the
 
12421
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12422
  # most powerpc-linux boxes support dynamic linking these days and
 
12423
  # people can always --disable-shared, the test was removed, and we
 
12424
  # assume the GNU/Linux dynamic linker is in use.
 
12425
  dynamic_linker='GNU/Linux ld.so'
 
12426
  ;;
 
12427
 
 
12428
netbsdelf*-gnu)
 
12429
  version_type=linux
 
12430
  need_lib_prefix=no
 
12431
  need_version=no
 
12432
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12433
  soname_spec='${libname}${release}${shared_ext}$major'
 
12434
  shlibpath_var=LD_LIBRARY_PATH
 
12435
  shlibpath_overrides_runpath=no
 
12436
  hardcode_into_libs=yes
 
12437
  dynamic_linker='NetBSD ld.elf_so'
 
12438
  ;;
 
12439
 
 
12440
knetbsd*-gnu)
 
12441
  version_type=linux
 
12442
  need_lib_prefix=no
 
12443
  need_version=no
 
12444
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12445
  soname_spec='${libname}${release}${shared_ext}$major'
 
12446
  shlibpath_var=LD_LIBRARY_PATH
 
12447
  shlibpath_overrides_runpath=no
 
12448
  hardcode_into_libs=yes
 
12449
  dynamic_linker='GNU ld.so'
 
12450
  ;;
 
12451
 
 
12452
netbsd*)
 
12453
  version_type=sunos
 
12454
  need_lib_prefix=no
 
12455
  need_version=no
 
12456
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12457
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12458
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12459
    dynamic_linker='NetBSD (a.out) ld.so'
 
12460
  else
 
12461
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12462
    soname_spec='${libname}${release}${shared_ext}$major'
 
12463
    dynamic_linker='NetBSD ld.elf_so'
 
12464
  fi
 
12465
  shlibpath_var=LD_LIBRARY_PATH
 
12466
  shlibpath_overrides_runpath=yes
 
12467
  hardcode_into_libs=yes
 
12468
  ;;
 
12469
 
 
12470
newsos6)
 
12471
  version_type=linux
 
12472
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12473
  shlibpath_var=LD_LIBRARY_PATH
 
12474
  shlibpath_overrides_runpath=yes
 
12475
  ;;
 
12476
 
 
12477
nto-qnx*)
 
12478
  version_type=linux
 
12479
  need_lib_prefix=no
 
12480
  need_version=no
 
12481
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12482
  soname_spec='${libname}${release}${shared_ext}$major'
 
12483
  shlibpath_var=LD_LIBRARY_PATH
 
12484
  shlibpath_overrides_runpath=yes
 
12485
  ;;
 
12486
 
 
12487
openbsd*)
 
12488
  version_type=sunos
 
12489
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12490
  need_lib_prefix=no
 
12491
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12492
  case $host_os in
 
12493
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12494
    *)                         need_version=no  ;;
 
12495
  esac
 
12496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12497
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12498
  shlibpath_var=LD_LIBRARY_PATH
 
12499
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12500
    case $host_os in
 
12501
      openbsd2.[89] | openbsd2.[89].*)
 
12502
        shlibpath_overrides_runpath=no
 
12503
        ;;
 
12504
      *)
 
12505
        shlibpath_overrides_runpath=yes
 
12506
        ;;
 
12507
      esac
 
12508
  else
 
12509
    shlibpath_overrides_runpath=yes
 
12510
  fi
 
12511
  ;;
 
12512
 
 
12513
os2*)
 
12514
  libname_spec='$name'
 
12515
  shrext_cmds=".dll"
 
12516
  need_lib_prefix=no
 
12517
  library_names_spec='$libname${shared_ext} $libname.a'
 
12518
  dynamic_linker='OS/2 ld.exe'
 
12519
  shlibpath_var=LIBPATH
 
12520
  ;;
 
12521
 
 
12522
osf3* | osf4* | osf5*)
 
12523
  version_type=osf
 
12524
  need_lib_prefix=no
 
12525
  need_version=no
 
12526
  soname_spec='${libname}${release}${shared_ext}$major'
 
12527
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12528
  shlibpath_var=LD_LIBRARY_PATH
 
12529
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12530
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12531
  ;;
 
12532
 
 
12533
solaris*)
 
12534
  version_type=linux
 
12535
  need_lib_prefix=no
 
12536
  need_version=no
 
12537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12538
  soname_spec='${libname}${release}${shared_ext}$major'
 
12539
  shlibpath_var=LD_LIBRARY_PATH
 
12540
  shlibpath_overrides_runpath=yes
 
12541
  hardcode_into_libs=yes
 
12542
  # ldd complains unless libraries are executable
 
12543
  postinstall_cmds='chmod +x $lib'
 
12544
  ;;
 
12545
 
 
12546
sunos4*)
 
12547
  version_type=sunos
 
12548
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12549
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12550
  shlibpath_var=LD_LIBRARY_PATH
 
12551
  shlibpath_overrides_runpath=yes
 
12552
  if test "$with_gnu_ld" = yes; then
 
12553
    need_lib_prefix=no
 
12554
  fi
 
12555
  need_version=yes
 
12556
  ;;
 
12557
 
 
12558
sysv4 | sysv4.3*)
 
12559
  version_type=linux
 
12560
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12561
  soname_spec='${libname}${release}${shared_ext}$major'
 
12562
  shlibpath_var=LD_LIBRARY_PATH
 
12563
  case $host_vendor in
 
12564
    sni)
 
12565
      shlibpath_overrides_runpath=no
 
12566
      need_lib_prefix=no
 
12567
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12568
      runpath_var=LD_RUN_PATH
 
12569
      ;;
 
12570
    siemens)
 
12571
      need_lib_prefix=no
 
12572
      ;;
 
12573
    motorola)
 
12574
      need_lib_prefix=no
 
12575
      need_version=no
 
12576
      shlibpath_overrides_runpath=no
 
12577
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12578
      ;;
 
12579
  esac
 
12580
  ;;
 
12581
 
 
12582
sysv4*MP*)
 
12583
  if test -d /usr/nec ;then
 
12584
    version_type=linux
 
12585
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12586
    soname_spec='$libname${shared_ext}.$major'
 
12587
    shlibpath_var=LD_LIBRARY_PATH
 
12588
  fi
 
12589
  ;;
 
12590
 
 
12591
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12592
  version_type=freebsd-elf
 
12593
  need_lib_prefix=no
 
12594
  need_version=no
 
12595
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12596
  soname_spec='${libname}${release}${shared_ext}$major'
 
12597
  shlibpath_var=LD_LIBRARY_PATH
 
12598
  hardcode_into_libs=yes
 
12599
  if test "$with_gnu_ld" = yes; then
 
12600
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12601
    shlibpath_overrides_runpath=no
 
12602
  else
 
12603
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12604
    shlibpath_overrides_runpath=yes
 
12605
    case $host_os in
 
12606
      sco3.2v5*)
 
12607
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12608
        ;;
 
12609
    esac
 
12610
  fi
 
12611
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12612
  ;;
 
12613
 
 
12614
uts4*)
 
12615
  version_type=linux
 
12616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12617
  soname_spec='${libname}${release}${shared_ext}$major'
 
12618
  shlibpath_var=LD_LIBRARY_PATH
 
12619
  ;;
 
12620
 
 
12621
*)
 
12622
  dynamic_linker=no
 
12623
  ;;
 
12624
esac
 
12625
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12626
echo "${ECHO_T}$dynamic_linker" >&6
 
12627
test "$dynamic_linker" = no && can_build_shared=no
 
12628
 
 
12629
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12630
if test "$GCC" = yes; then
 
12631
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12632
fi
 
12633
 
 
12634
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12635
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12636
hardcode_action_CXX=
 
12637
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12638
   test -n "$runpath_var_CXX" || \
 
12639
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
12640
 
 
12641
  # We can hardcode non-existant directories.
 
12642
  if test "$hardcode_direct_CXX" != no &&
 
12643
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12644
     # have to relink, otherwise we might link with an installed library
 
12645
     # when we should be linking with a yet-to-be-installed one
 
12646
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12647
     test "$hardcode_minus_L_CXX" != no; then
 
12648
    # Linking always hardcodes the temporary library directory.
 
12649
    hardcode_action_CXX=relink
 
12650
  else
 
12651
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12652
    hardcode_action_CXX=immediate
 
12653
  fi
 
12654
else
 
12655
  # We cannot hardcode anything, or else we can only hardcode existing
 
12656
  # directories.
 
12657
  hardcode_action_CXX=unsupported
 
12658
fi
 
12659
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12660
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12661
 
 
12662
if test "$hardcode_action_CXX" = relink; then
 
12663
  # Fast installation is not supported
 
12664
  enable_fast_install=no
 
12665
elif test "$shlibpath_overrides_runpath" = yes ||
 
12666
     test "$enable_shared" = no; then
 
12667
  # Fast installation is not necessary
 
12668
  enable_fast_install=needless
 
12669
fi
 
12670
 
 
12671
 
 
12672
# The else clause should only fire when bootstrapping the
 
12673
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12674
# with your package, and you will get complaints that there are
 
12675
# no rules to generate ltmain.sh.
 
12676
if test -f "$ltmain"; then
 
12677
  # See if we are running on zsh, and set the options which allow our commands through
 
12678
  # without removal of \ escapes.
 
12679
  if test -n "${ZSH_VERSION+set}" ; then
 
12680
    setopt NO_GLOB_SUBST
 
12681
  fi
 
12682
  # Now quote all the things that may contain metacharacters while being
 
12683
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12684
  # variables and quote the copies for generation of the libtool script.
 
12685
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
12686
    SED SHELL STRIP \
 
12687
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12688
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12689
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12690
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12691
    lt_cv_sys_global_symbol_to_c_name_address \
 
12692
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12693
    old_postinstall_cmds old_postuninstall_cmds \
 
12694
    compiler_CXX \
 
12695
    CC_CXX \
 
12696
    LD_CXX \
 
12697
    lt_prog_compiler_wl_CXX \
 
12698
    lt_prog_compiler_pic_CXX \
 
12699
    lt_prog_compiler_static_CXX \
 
12700
    lt_prog_compiler_no_builtin_flag_CXX \
 
12701
    export_dynamic_flag_spec_CXX \
 
12702
    thread_safe_flag_spec_CXX \
 
12703
    whole_archive_flag_spec_CXX \
 
12704
    enable_shared_with_static_runtimes_CXX \
 
12705
    old_archive_cmds_CXX \
 
12706
    old_archive_from_new_cmds_CXX \
 
12707
    predep_objects_CXX \
 
12708
    postdep_objects_CXX \
 
12709
    predeps_CXX \
 
12710
    postdeps_CXX \
 
12711
    compiler_lib_search_path_CXX \
 
12712
    archive_cmds_CXX \
 
12713
    archive_expsym_cmds_CXX \
 
12714
    postinstall_cmds_CXX \
 
12715
    postuninstall_cmds_CXX \
 
12716
    old_archive_from_expsyms_cmds_CXX \
 
12717
    allow_undefined_flag_CXX \
 
12718
    no_undefined_flag_CXX \
 
12719
    export_symbols_cmds_CXX \
 
12720
    hardcode_libdir_flag_spec_CXX \
 
12721
    hardcode_libdir_flag_spec_ld_CXX \
 
12722
    hardcode_libdir_separator_CXX \
 
12723
    hardcode_automatic_CXX \
 
12724
    module_cmds_CXX \
 
12725
    module_expsym_cmds_CXX \
 
12726
    lt_cv_prog_compiler_c_o_CXX \
 
12727
    exclude_expsyms_CXX \
 
12728
    include_expsyms_CXX; do
 
12729
 
 
12730
    case $var in
 
12731
    old_archive_cmds_CXX | \
 
12732
    old_archive_from_new_cmds_CXX | \
 
12733
    archive_cmds_CXX | \
 
12734
    archive_expsym_cmds_CXX | \
 
12735
    module_cmds_CXX | \
 
12736
    module_expsym_cmds_CXX | \
 
12737
    old_archive_from_expsyms_cmds_CXX | \
 
12738
    export_symbols_cmds_CXX | \
 
12739
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12740
    postinstall_cmds | postuninstall_cmds | \
 
12741
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12742
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12743
      # Double-quote double-evaled strings.
 
12744
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12745
      ;;
 
12746
    *)
 
12747
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12748
      ;;
 
12749
    esac
 
12750
  done
 
12751
 
 
12752
  case $lt_echo in
 
12753
  *'\$0 --fallback-echo"')
 
12754
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12755
    ;;
 
12756
  esac
 
12757
 
 
12758
cfgfile="$ofile"
 
12759
 
 
12760
  cat <<__EOF__ >> "$cfgfile"
 
12761
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12762
 
 
12763
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12764
 
 
12765
# Shell to use when invoking shell scripts.
 
12766
SHELL=$lt_SHELL
 
12767
 
 
12768
# Whether or not to build shared libraries.
 
12769
build_libtool_libs=$enable_shared
 
12770
 
 
12771
# Whether or not to build static libraries.
 
12772
build_old_libs=$enable_static
 
12773
 
 
12774
# Whether or not to add -lc for building shared libraries.
 
12775
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12776
 
 
12777
# Whether or not to disallow shared libs when runtime libs are static
 
12778
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12779
 
 
12780
# Whether or not to optimize for fast installation.
 
12781
fast_install=$enable_fast_install
 
12782
 
 
12783
# The host system.
 
12784
host_alias=$host_alias
 
12785
host=$host
 
12786
host_os=$host_os
 
12787
 
 
12788
# The build system.
 
12789
build_alias=$build_alias
 
12790
build=$build
 
12791
build_os=$build_os
 
12792
 
 
12793
# An echo program that does not interpret backslashes.
 
12794
echo=$lt_echo
 
12795
 
 
12796
# The archiver.
 
12797
AR=$lt_AR
 
12798
AR_FLAGS=$lt_AR_FLAGS
 
12799
 
 
12800
# A C compiler.
 
12801
LTCC=$lt_LTCC
 
12802
 
 
12803
# LTCC compiler flags.
 
12804
LTCFLAGS=$lt_LTCFLAGS
 
12805
 
 
12806
# A language-specific compiler.
 
12807
CC=$lt_compiler_CXX
 
12808
 
 
12809
# Is the compiler the GNU C compiler?
 
12810
with_gcc=$GCC_CXX
 
12811
 
 
12812
# An ERE matcher.
 
12813
EGREP=$lt_EGREP
 
12814
 
 
12815
# The linker used to build libraries.
 
12816
LD=$lt_LD_CXX
 
12817
 
 
12818
# Whether we need hard or soft links.
 
12819
LN_S=$lt_LN_S
 
12820
 
 
12821
# A BSD-compatible nm program.
 
12822
NM=$lt_NM
 
12823
 
 
12824
# A symbol stripping program
 
12825
STRIP=$lt_STRIP
 
12826
 
 
12827
# Used to examine libraries when file_magic_cmd begins "file"
 
12828
MAGIC_CMD=$MAGIC_CMD
 
12829
 
 
12830
# Used on cygwin: DLL creation program.
 
12831
DLLTOOL="$DLLTOOL"
 
12832
 
 
12833
# Used on cygwin: object dumper.
 
12834
OBJDUMP="$OBJDUMP"
 
12835
 
 
12836
# Used on cygwin: assembler.
 
12837
AS="$AS"
 
12838
 
 
12839
# The name of the directory that contains temporary libtool files.
 
12840
objdir=$objdir
 
12841
 
 
12842
# How to create reloadable object files.
 
12843
reload_flag=$lt_reload_flag
 
12844
reload_cmds=$lt_reload_cmds
 
12845
 
 
12846
# How to pass a linker flag through the compiler.
 
12847
wl=$lt_lt_prog_compiler_wl_CXX
 
12848
 
 
12849
# Object file suffix (normally "o").
 
12850
objext="$ac_objext"
 
12851
 
 
12852
# Old archive suffix (normally "a").
 
12853
libext="$libext"
 
12854
 
 
12855
# Shared library suffix (normally ".so").
 
12856
shrext_cmds='$shrext_cmds'
 
12857
 
 
12858
# Executable file suffix (normally "").
 
12859
exeext="$exeext"
 
12860
 
 
12861
# Additional compiler flags for building library objects.
 
12862
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12863
pic_mode=$pic_mode
 
12864
 
 
12865
# What is the maximum length of a command?
 
12866
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12867
 
 
12868
# Does compiler simultaneously support -c and -o options?
 
12869
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12870
 
 
12871
# Must we lock files when doing compilation?
 
12872
need_locks=$lt_need_locks
 
12873
 
 
12874
# Do we need the lib prefix for modules?
 
12875
need_lib_prefix=$need_lib_prefix
 
12876
 
 
12877
# Do we need a version for libraries?
 
12878
need_version=$need_version
 
12879
 
 
12880
# Whether dlopen is supported.
 
12881
dlopen_support=$enable_dlopen
 
12882
 
 
12883
# Whether dlopen of programs is supported.
 
12884
dlopen_self=$enable_dlopen_self
 
12885
 
 
12886
# Whether dlopen of statically linked programs is supported.
 
12887
dlopen_self_static=$enable_dlopen_self_static
 
12888
 
 
12889
# Compiler flag to prevent dynamic linking.
 
12890
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12891
 
 
12892
# Compiler flag to turn off builtin functions.
 
12893
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12894
 
 
12895
# Compiler flag to allow reflexive dlopens.
 
12896
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12897
 
 
12898
# Compiler flag to generate shared objects directly from archives.
 
12899
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12900
 
 
12901
# Compiler flag to generate thread-safe objects.
 
12902
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12903
 
 
12904
# Library versioning type.
 
12905
version_type=$version_type
 
12906
 
 
12907
# Format of library name prefix.
 
12908
libname_spec=$lt_libname_spec
 
12909
 
 
12910
# List of archive names.  First name is the real one, the rest are links.
 
12911
# The last name is the one that the linker finds with -lNAME.
 
12912
library_names_spec=$lt_library_names_spec
 
12913
 
 
12914
# The coded name of the library, if different from the real name.
 
12915
soname_spec=$lt_soname_spec
 
12916
 
 
12917
# Commands used to build and install an old-style archive.
 
12918
RANLIB=$lt_RANLIB
 
12919
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12920
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12921
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12922
 
 
12923
# Create an old-style archive from a shared archive.
 
12924
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12925
 
 
12926
# Create a temporary old-style archive to link instead of a shared archive.
 
12927
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12928
 
 
12929
# Commands used to build and install a shared archive.
 
12930
archive_cmds=$lt_archive_cmds_CXX
 
12931
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12932
postinstall_cmds=$lt_postinstall_cmds
 
12933
postuninstall_cmds=$lt_postuninstall_cmds
 
12934
 
 
12935
# Commands used to build a loadable module (assumed same as above if empty)
 
12936
module_cmds=$lt_module_cmds_CXX
 
12937
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12938
 
 
12939
# Commands to strip libraries.
 
12940
old_striplib=$lt_old_striplib
 
12941
striplib=$lt_striplib
 
12942
 
 
12943
# Dependencies to place before the objects being linked to create a
 
12944
# shared library.
 
12945
predep_objects=$lt_predep_objects_CXX
 
12946
 
 
12947
# Dependencies to place after the objects being linked to create a
 
12948
# shared library.
 
12949
postdep_objects=$lt_postdep_objects_CXX
 
12950
 
 
12951
# Dependencies to place before the objects being linked to create a
 
12952
# shared library.
 
12953
predeps=$lt_predeps_CXX
 
12954
 
 
12955
# Dependencies to place after the objects being linked to create a
 
12956
# shared library.
 
12957
postdeps=$lt_postdeps_CXX
 
12958
 
 
12959
# The library search path used internally by the compiler when linking
 
12960
# a shared library.
 
12961
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12962
 
 
12963
# Method to check whether dependent libraries are shared objects.
 
12964
deplibs_check_method=$lt_deplibs_check_method
 
12965
 
 
12966
# Command to use when deplibs_check_method == file_magic.
 
12967
file_magic_cmd=$lt_file_magic_cmd
 
12968
 
 
12969
# Flag that allows shared libraries with undefined symbols to be built.
 
12970
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12971
 
 
12972
# Flag that forces no undefined symbols.
 
12973
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12974
 
 
12975
# Commands used to finish a libtool library installation in a directory.
 
12976
finish_cmds=$lt_finish_cmds
 
12977
 
 
12978
# Same as above, but a single script fragment to be evaled but not shown.
 
12979
finish_eval=$lt_finish_eval
 
12980
 
 
12981
# Take the output of nm and produce a listing of raw symbols and C names.
 
12982
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12983
 
 
12984
# Transform the output of nm in a proper C declaration
 
12985
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12986
 
 
12987
# Transform the output of nm in a C name address pair
 
12988
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12989
 
 
12990
# This is the shared library runtime path variable.
 
12991
runpath_var=$runpath_var
 
12992
 
 
12993
# This is the shared library path variable.
 
12994
shlibpath_var=$shlibpath_var
 
12995
 
 
12996
# Is shlibpath searched before the hard-coded library search path?
 
12997
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12998
 
 
12999
# How to hardcode a shared library path into an executable.
 
13000
hardcode_action=$hardcode_action_CXX
 
13001
 
 
13002
# Whether we should hardcode library paths into libraries.
 
13003
hardcode_into_libs=$hardcode_into_libs
 
13004
 
 
13005
# Flag to hardcode \$libdir into a binary during linking.
 
13006
# This must work even if \$libdir does not exist.
 
13007
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13008
 
 
13009
# If ld is used when linking, flag to hardcode \$libdir into
 
13010
# a binary during linking. This must work even if \$libdir does
 
13011
# not exist.
 
13012
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13013
 
 
13014
# Whether we need a single -rpath flag with a separated argument.
 
13015
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13016
 
 
13017
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13018
# resulting binary.
 
13019
hardcode_direct=$hardcode_direct_CXX
 
13020
 
 
13021
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13022
# resulting binary.
 
13023
hardcode_minus_L=$hardcode_minus_L_CXX
 
13024
 
 
13025
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13026
# the resulting binary.
 
13027
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13028
 
 
13029
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13030
# and all subsequent libraries and executables linked against it.
 
13031
hardcode_automatic=$hardcode_automatic_CXX
 
13032
 
 
13033
# Variables whose values should be saved in libtool wrapper scripts and
 
13034
# restored at relink time.
 
13035
variables_saved_for_relink="$variables_saved_for_relink"
 
13036
 
 
13037
# Whether libtool must link a program against all its dependency libraries.
 
13038
link_all_deplibs=$link_all_deplibs_CXX
 
13039
 
 
13040
# Compile-time system search path for libraries
 
13041
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13042
 
 
13043
# Run-time system search path for libraries
 
13044
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13045
 
 
13046
# Fix the shell variable \$srcfile for the compiler.
 
13047
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13048
 
 
13049
# Set to yes if exported symbols are required.
 
13050
always_export_symbols=$always_export_symbols_CXX
 
13051
 
 
13052
# The commands to list exported symbols.
 
13053
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13054
 
 
13055
# The commands to extract the exported symbol list from a shared archive.
 
13056
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13057
 
 
13058
# Symbols that should not be listed in the preloaded symbols.
 
13059
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13060
 
 
13061
# Symbols that must always be exported.
 
13062
include_expsyms=$lt_include_expsyms_CXX
 
13063
 
 
13064
# ### END LIBTOOL TAG CONFIG: $tagname
 
13065
 
 
13066
__EOF__
 
13067
 
 
13068
 
 
13069
else
 
13070
  # If there is no Makefile yet, we rely on a make rule to execute
 
13071
  # `config.status --recheck' to rerun these tests and create the
 
13072
  # libtool script then.
 
13073
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13074
  if test -f "$ltmain_in"; then
 
13075
    test -f Makefile && make "$ltmain"
 
13076
  fi
 
13077
fi
 
13078
 
 
13079
 
 
13080
ac_ext=c
 
13081
ac_cpp='$CPP $CPPFLAGS'
 
13082
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13083
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13084
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13085
 
 
13086
CC=$lt_save_CC
 
13087
LDCXX=$LD
 
13088
LD=$lt_save_LD
 
13089
GCC=$lt_save_GCC
 
13090
with_gnu_ldcxx=$with_gnu_ld
 
13091
with_gnu_ld=$lt_save_with_gnu_ld
 
13092
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13093
lt_cv_path_LD=$lt_save_path_LD
 
13094
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13095
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13096
 
 
13097
        else
 
13098
          tagname=""
 
13099
        fi
 
13100
        ;;
 
13101
 
 
13102
      F77)
 
13103
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13104
 
 
13105
ac_ext=f
 
13106
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13107
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13108
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13109
 
 
13110
 
 
13111
archive_cmds_need_lc_F77=no
 
13112
allow_undefined_flag_F77=
 
13113
always_export_symbols_F77=no
 
13114
archive_expsym_cmds_F77=
 
13115
export_dynamic_flag_spec_F77=
 
13116
hardcode_direct_F77=no
 
13117
hardcode_libdir_flag_spec_F77=
 
13118
hardcode_libdir_flag_spec_ld_F77=
 
13119
hardcode_libdir_separator_F77=
 
13120
hardcode_minus_L_F77=no
 
13121
hardcode_automatic_F77=no
 
13122
module_cmds_F77=
 
13123
module_expsym_cmds_F77=
 
13124
link_all_deplibs_F77=unknown
 
13125
old_archive_cmds_F77=$old_archive_cmds
 
13126
no_undefined_flag_F77=
 
13127
whole_archive_flag_spec_F77=
 
13128
enable_shared_with_static_runtimes_F77=no
 
13129
 
 
13130
# Source file extension for f77 test sources.
 
13131
ac_ext=f
 
13132
 
 
13133
# Object file extension for compiled f77 test sources.
 
13134
objext=o
 
13135
objext_F77=$objext
 
13136
 
 
13137
# Code to be used in simple compile tests
 
13138
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13139
 
 
13140
# Code to be used in simple link tests
 
13141
lt_simple_link_test_code="      program t\n      end\n"
 
13142
 
 
13143
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13144
 
 
13145
# If no C compiler was specified, use CC.
 
13146
LTCC=${LTCC-"$CC"}
 
13147
 
 
13148
# If no C compiler flags were specified, use CFLAGS.
 
13149
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13150
 
 
13151
# Allow CC to be a program name with arguments.
 
13152
compiler=$CC
 
13153
 
 
13154
 
 
13155
# save warnings/boilerplate of simple test code
 
13156
ac_outfile=conftest.$ac_objext
 
13157
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13158
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13159
_lt_compiler_boilerplate=`cat conftest.err`
 
13160
$rm conftest*
 
13161
 
 
13162
ac_outfile=conftest.$ac_objext
 
13163
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13164
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13165
_lt_linker_boilerplate=`cat conftest.err`
 
13166
$rm conftest*
 
13167
 
 
13168
 
 
13169
# Allow CC to be a program name with arguments.
 
13170
lt_save_CC="$CC"
 
13171
CC=${F77-"f77"}
 
13172
compiler=$CC
 
13173
compiler_F77=$CC
 
13174
for cc_temp in $compiler""; do
 
13175
  case $cc_temp in
 
13176
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13177
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13178
    \-*) ;;
 
13179
    *) break;;
 
13180
  esac
 
13181
done
 
13182
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13183
 
 
13184
 
 
13185
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13186
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13187
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13188
echo "${ECHO_T}$can_build_shared" >&6
 
13189
 
 
13190
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13191
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13192
test "$can_build_shared" = "no" && enable_shared=no
 
13193
 
 
13194
# On AIX, shared libraries and static libraries use the same namespace, and
 
13195
# are all built from PIC.
 
13196
case $host_os in
 
13197
aix3*)
 
13198
  test "$enable_shared" = yes && enable_static=no
 
13199
  if test -n "$RANLIB"; then
 
13200
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13201
    postinstall_cmds='$RANLIB $lib'
 
13202
  fi
 
13203
  ;;
 
13204
aix4* | aix5*)
 
13205
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13206
    test "$enable_shared" = yes && enable_static=no
 
13207
  fi
 
13208
  ;;
 
13209
esac
 
13210
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13211
echo "${ECHO_T}$enable_shared" >&6
 
13212
 
 
13213
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13214
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13215
# Make sure either enable_shared or enable_static is yes.
 
13216
test "$enable_shared" = yes || enable_static=yes
 
13217
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13218
echo "${ECHO_T}$enable_static" >&6
 
13219
 
 
13220
GCC_F77="$G77"
 
13221
LD_F77="$LD"
 
13222
 
 
13223
lt_prog_compiler_wl_F77=
 
13224
lt_prog_compiler_pic_F77=
 
13225
lt_prog_compiler_static_F77=
 
13226
 
 
13227
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13228
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13229
 
 
13230
  if test "$GCC" = yes; then
 
13231
    lt_prog_compiler_wl_F77='-Wl,'
 
13232
    lt_prog_compiler_static_F77='-static'
 
13233
 
 
13234
    case $host_os in
 
13235
      aix*)
 
13236
      # All AIX code is PIC.
 
13237
      if test "$host_cpu" = ia64; then
 
13238
        # AIX 5 now supports IA64 processor
 
13239
        lt_prog_compiler_static_F77='-Bstatic'
 
13240
      fi
 
13241
      ;;
 
13242
 
 
13243
    amigaos*)
 
13244
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13245
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13246
      # like `-m68040'.
 
13247
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13248
      ;;
 
13249
 
 
13250
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13251
      # PIC is the default for these OSes.
 
13252
      ;;
 
13253
 
 
13254
    mingw* | pw32* | os2*)
 
13255
      # This hack is so that the source file can tell whether it is being
 
13256
      # built for inclusion in a dll (and should export symbols for example).
 
13257
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13258
      ;;
 
13259
 
 
13260
    darwin* | rhapsody*)
 
13261
      # PIC is the default on this platform
 
13262
      # Common symbols not allowed in MH_DYLIB files
 
13263
      lt_prog_compiler_pic_F77='-fno-common'
 
13264
      ;;
 
13265
 
 
13266
    interix3*)
 
13267
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13268
      # Instead, we relocate shared libraries at runtime.
 
13269
      ;;
 
13270
 
 
13271
    msdosdjgpp*)
 
13272
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13273
      # on systems that don't support them.
 
13274
      lt_prog_compiler_can_build_shared_F77=no
 
13275
      enable_shared=no
 
13276
      ;;
 
13277
 
 
13278
    sysv4*MP*)
 
13279
      if test -d /usr/nec; then
 
13280
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13281
      fi
 
13282
      ;;
 
13283
 
 
13284
    hpux*)
 
13285
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13286
      # not for PA HP-UX.
 
13287
      case $host_cpu in
 
13288
      hppa*64*|ia64*)
 
13289
        # +Z the default
 
13290
        ;;
 
13291
      *)
 
13292
        lt_prog_compiler_pic_F77='-fPIC'
 
13293
        ;;
 
13294
      esac
 
13295
      ;;
 
13296
 
 
13297
    *)
 
13298
      lt_prog_compiler_pic_F77='-fPIC'
 
13299
      ;;
 
13300
    esac
 
13301
  else
 
13302
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13303
    case $host_os in
 
13304
    aix*)
 
13305
      lt_prog_compiler_wl_F77='-Wl,'
 
13306
      if test "$host_cpu" = ia64; then
 
13307
        # AIX 5 now supports IA64 processor
 
13308
        lt_prog_compiler_static_F77='-Bstatic'
 
13309
      else
 
13310
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13311
      fi
 
13312
      ;;
 
13313
      darwin*)
 
13314
        # PIC is the default on this platform
 
13315
        # Common symbols not allowed in MH_DYLIB files
 
13316
       case $cc_basename in
 
13317
         xlc*)
 
13318
         lt_prog_compiler_pic_F77='-qnocommon'
 
13319
         lt_prog_compiler_wl_F77='-Wl,'
 
13320
         ;;
 
13321
       esac
 
13322
       ;;
 
13323
 
 
13324
    mingw* | pw32* | os2*)
 
13325
      # This hack is so that the source file can tell whether it is being
 
13326
      # built for inclusion in a dll (and should export symbols for example).
 
13327
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13328
      ;;
 
13329
 
 
13330
    hpux9* | hpux10* | hpux11*)
 
13331
      lt_prog_compiler_wl_F77='-Wl,'
 
13332
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13333
      # not for PA HP-UX.
 
13334
      case $host_cpu in
 
13335
      hppa*64*|ia64*)
 
13336
        # +Z the default
 
13337
        ;;
 
13338
      *)
 
13339
        lt_prog_compiler_pic_F77='+Z'
 
13340
        ;;
 
13341
      esac
 
13342
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13343
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13344
      ;;
 
13345
 
 
13346
    irix5* | irix6* | nonstopux*)
 
13347
      lt_prog_compiler_wl_F77='-Wl,'
 
13348
      # PIC (with -KPIC) is the default.
 
13349
      lt_prog_compiler_static_F77='-non_shared'
 
13350
      ;;
 
13351
 
 
13352
    newsos6)
 
13353
      lt_prog_compiler_pic_F77='-KPIC'
 
13354
      lt_prog_compiler_static_F77='-Bstatic'
 
13355
      ;;
 
13356
 
 
13357
    linux*)
 
13358
      case $cc_basename in
 
13359
      icc* | ecc*)
 
13360
        lt_prog_compiler_wl_F77='-Wl,'
 
13361
        lt_prog_compiler_pic_F77='-KPIC'
 
13362
        lt_prog_compiler_static_F77='-static'
 
13363
        ;;
 
13364
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13365
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13366
        # which looks to be a dead project)
 
13367
        lt_prog_compiler_wl_F77='-Wl,'
 
13368
        lt_prog_compiler_pic_F77='-fpic'
 
13369
        lt_prog_compiler_static_F77='-Bstatic'
 
13370
        ;;
 
13371
      ccc*)
 
13372
        lt_prog_compiler_wl_F77='-Wl,'
 
13373
        # All Alpha code is PIC.
 
13374
        lt_prog_compiler_static_F77='-non_shared'
 
13375
        ;;
 
13376
      esac
 
13377
      ;;
 
13378
 
 
13379
    osf3* | osf4* | osf5*)
 
13380
      lt_prog_compiler_wl_F77='-Wl,'
 
13381
      # All OSF/1 code is PIC.
 
13382
      lt_prog_compiler_static_F77='-non_shared'
 
13383
      ;;
 
13384
 
 
13385
    solaris*)
 
13386
      lt_prog_compiler_pic_F77='-KPIC'
 
13387
      lt_prog_compiler_static_F77='-Bstatic'
 
13388
      case $cc_basename in
 
13389
      f77* | f90* | f95*)
 
13390
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13391
      *)
 
13392
        lt_prog_compiler_wl_F77='-Wl,';;
 
13393
      esac
 
13394
      ;;
 
13395
 
 
13396
    sunos4*)
 
13397
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13398
      lt_prog_compiler_pic_F77='-PIC'
 
13399
      lt_prog_compiler_static_F77='-Bstatic'
 
13400
      ;;
 
13401
 
 
13402
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
13403
      lt_prog_compiler_wl_F77='-Wl,'
 
13404
      lt_prog_compiler_pic_F77='-KPIC'
 
13405
      lt_prog_compiler_static_F77='-Bstatic'
 
13406
      ;;
 
13407
 
 
13408
    sysv4*MP*)
 
13409
      if test -d /usr/nec ;then
 
13410
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13411
        lt_prog_compiler_static_F77='-Bstatic'
 
13412
      fi
 
13413
      ;;
 
13414
 
 
13415
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13416
      lt_prog_compiler_wl_F77='-Wl,'
 
13417
      lt_prog_compiler_pic_F77='-KPIC'
 
13418
      lt_prog_compiler_static_F77='-Bstatic'
 
13419
      ;;
 
13420
 
 
13421
    unicos*)
 
13422
      lt_prog_compiler_wl_F77='-Wl,'
 
13423
      lt_prog_compiler_can_build_shared_F77=no
 
13424
      ;;
 
13425
 
 
13426
    uts4*)
 
13427
      lt_prog_compiler_pic_F77='-pic'
 
13428
      lt_prog_compiler_static_F77='-Bstatic'
 
13429
      ;;
 
13430
 
 
13431
    *)
 
13432
      lt_prog_compiler_can_build_shared_F77=no
 
13433
      ;;
 
13434
    esac
 
13435
  fi
 
13436
 
 
13437
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13438
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13439
 
 
13440
#
 
13441
# Check to make sure the PIC flag actually works.
 
13442
#
 
13443
if test -n "$lt_prog_compiler_pic_F77"; then
 
13444
 
 
13445
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13446
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13447
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13449
else
 
13450
  lt_prog_compiler_pic_works_F77=no
 
13451
  ac_outfile=conftest.$ac_objext
 
13452
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13453
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13454
   # Insert the option either (1) after the last *FLAGS variable, or
 
13455
   # (2) before a word containing "conftest.", or (3) at the end.
 
13456
   # Note that $ac_compile itself does not contain backslashes and begins
 
13457
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13458
   # The option is referenced via a variable to avoid confusing sed.
 
13459
   lt_compile=`echo "$ac_compile" | $SED \
 
13460
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13461
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13462
   -e 's:$: $lt_compiler_flag:'`
 
13463
   (eval echo "\"\$as_me:13463: $lt_compile\"" >&5)
 
13464
   (eval "$lt_compile" 2>conftest.err)
 
13465
   ac_status=$?
 
13466
   cat conftest.err >&5
 
13467
   echo "$as_me:13467: \$? = $ac_status" >&5
 
13468
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13469
     # The compiler can only warn and ignore the option if not recognized
 
13470
     # So say no if there are warnings other than the usual output.
 
13471
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13472
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13473
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13474
       lt_prog_compiler_pic_works_F77=yes
 
13475
     fi
 
13476
   fi
 
13477
   $rm conftest*
 
13478
 
 
13479
fi
 
13480
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13481
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13482
 
 
13483
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13484
    case $lt_prog_compiler_pic_F77 in
 
13485
     "" | " "*) ;;
 
13486
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13487
     esac
 
13488
else
 
13489
    lt_prog_compiler_pic_F77=
 
13490
     lt_prog_compiler_can_build_shared_F77=no
 
13491
fi
 
13492
 
 
13493
fi
 
13494
case $host_os in
 
13495
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13496
  *djgpp*)
 
13497
    lt_prog_compiler_pic_F77=
 
13498
    ;;
 
13499
  *)
 
13500
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13501
    ;;
 
13502
esac
 
13503
 
 
13504
#
 
13505
# Check to make sure the static flag actually works.
 
13506
#
 
13507
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13508
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13509
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13510
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13512
else
 
13513
  lt_prog_compiler_static_works_F77=no
 
13514
   save_LDFLAGS="$LDFLAGS"
 
13515
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13516
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13517
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13518
     # The linker can only warn and ignore the option if not recognized
 
13519
     # So say no if there are warnings
 
13520
     if test -s conftest.err; then
 
13521
       # Append any errors to the config.log.
 
13522
       cat conftest.err 1>&5
 
13523
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13524
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13525
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13526
         lt_prog_compiler_static_works_F77=yes
 
13527
       fi
 
13528
     else
 
13529
       lt_prog_compiler_static_works_F77=yes
 
13530
     fi
 
13531
   fi
 
13532
   $rm conftest*
 
13533
   LDFLAGS="$save_LDFLAGS"
 
13534
 
 
13535
fi
 
13536
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13537
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13538
 
 
13539
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13540
    :
 
13541
else
 
13542
    lt_prog_compiler_static_F77=
 
13543
fi
 
13544
 
 
13545
 
 
13546
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13547
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13548
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13550
else
 
13551
  lt_cv_prog_compiler_c_o_F77=no
 
13552
   $rm -r conftest 2>/dev/null
 
13553
   mkdir conftest
 
13554
   cd conftest
 
13555
   mkdir out
 
13556
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13557
 
 
13558
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13559
   # Insert the option either (1) after the last *FLAGS variable, or
 
13560
   # (2) before a word containing "conftest.", or (3) at the end.
 
13561
   # Note that $ac_compile itself does not contain backslashes and begins
 
13562
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13563
   lt_compile=`echo "$ac_compile" | $SED \
 
13564
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13565
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13566
   -e 's:$: $lt_compiler_flag:'`
 
13567
   (eval echo "\"\$as_me:13567: $lt_compile\"" >&5)
 
13568
   (eval "$lt_compile" 2>out/conftest.err)
 
13569
   ac_status=$?
 
13570
   cat out/conftest.err >&5
 
13571
   echo "$as_me:13571: \$? = $ac_status" >&5
 
13572
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13573
   then
 
13574
     # The compiler can only warn and ignore the option if not recognized
 
13575
     # So say no if there are warnings
 
13576
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13577
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13578
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13579
       lt_cv_prog_compiler_c_o_F77=yes
 
13580
     fi
 
13581
   fi
 
13582
   chmod u+w . 2>&5
 
13583
   $rm conftest*
 
13584
   # SGI C++ compiler will create directory out/ii_files/ for
 
13585
   # template instantiation
 
13586
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13587
   $rm out/* && rmdir out
 
13588
   cd ..
 
13589
   rmdir conftest
 
13590
   $rm conftest*
 
13591
 
 
13592
fi
 
13593
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13594
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13595
 
 
13596
 
 
13597
hard_links="nottested"
 
13598
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13599
  # do not overwrite the value of need_locks provided by the user
 
13600
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13601
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13602
  hard_links=yes
 
13603
  $rm conftest*
 
13604
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13605
  touch conftest.a
 
13606
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13607
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13608
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13609
echo "${ECHO_T}$hard_links" >&6
 
13610
  if test "$hard_links" = no; then
 
13611
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13612
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13613
    need_locks=warn
 
13614
  fi
 
13615
else
 
13616
  need_locks=no
 
13617
fi
 
13618
 
 
13619
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13620
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13621
 
 
13622
  runpath_var=
 
13623
  allow_undefined_flag_F77=
 
13624
  enable_shared_with_static_runtimes_F77=no
 
13625
  archive_cmds_F77=
 
13626
  archive_expsym_cmds_F77=
 
13627
  old_archive_From_new_cmds_F77=
 
13628
  old_archive_from_expsyms_cmds_F77=
 
13629
  export_dynamic_flag_spec_F77=
 
13630
  whole_archive_flag_spec_F77=
 
13631
  thread_safe_flag_spec_F77=
 
13632
  hardcode_libdir_flag_spec_F77=
 
13633
  hardcode_libdir_flag_spec_ld_F77=
 
13634
  hardcode_libdir_separator_F77=
 
13635
  hardcode_direct_F77=no
 
13636
  hardcode_minus_L_F77=no
 
13637
  hardcode_shlibpath_var_F77=unsupported
 
13638
  link_all_deplibs_F77=unknown
 
13639
  hardcode_automatic_F77=no
 
13640
  module_cmds_F77=
 
13641
  module_expsym_cmds_F77=
 
13642
  always_export_symbols_F77=no
 
13643
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13644
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13645
  # included in the symbol list
 
13646
  include_expsyms_F77=
 
13647
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13648
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13649
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13650
  # as well as any symbol that contains `d'.
 
13651
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13652
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13653
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13654
  # the symbol is explicitly referenced.  Since portable code cannot
 
13655
  # rely on this symbol name, it's probably fine to never include it in
 
13656
  # preloaded symbol tables.
 
13657
  extract_expsyms_cmds=
 
13658
  # Just being paranoid about ensuring that cc_basename is set.
 
13659
  for cc_temp in $compiler""; do
 
13660
  case $cc_temp in
 
13661
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13662
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13663
    \-*) ;;
 
13664
    *) break;;
 
13665
  esac
 
13666
done
 
13667
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13668
 
 
13669
  case $host_os in
 
13670
  cygwin* | mingw* | pw32*)
 
13671
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13672
    # When not using gcc, we currently assume that we are using
 
13673
    # Microsoft Visual C++.
 
13674
    if test "$GCC" != yes; then
 
13675
      with_gnu_ld=no
 
13676
    fi
 
13677
    ;;
 
13678
  interix*)
 
13679
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13680
    with_gnu_ld=yes
 
13681
    ;;
 
13682
  openbsd*)
 
13683
    with_gnu_ld=no
 
13684
    ;;
 
13685
  esac
 
13686
 
 
13687
  ld_shlibs_F77=yes
 
13688
  if test "$with_gnu_ld" = yes; then
 
13689
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13690
    wlarc='${wl}'
 
13691
 
 
13692
    # Set some defaults for GNU ld with shared library support. These
 
13693
    # are reset later if shared libraries are not supported. Putting them
 
13694
    # here allows them to be overridden if necessary.
 
13695
    runpath_var=LD_RUN_PATH
 
13696
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13697
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13698
    # ancient GNU ld didn't support --whole-archive et. al.
 
13699
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13700
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13701
      else
 
13702
        whole_archive_flag_spec_F77=
 
13703
    fi
 
13704
    supports_anon_versioning=no
 
13705
    case `$LD -v 2>/dev/null` in
 
13706
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13707
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13708
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13709
      *\ 2.11.*) ;; # other 2.11 versions
 
13710
      *) supports_anon_versioning=yes ;;
 
13711
    esac
 
13712
 
 
13713
    # See if GNU ld supports shared libraries.
 
13714
    case $host_os in
 
13715
    aix3* | aix4* | aix5*)
 
13716
      # On AIX/PPC, the GNU linker is very broken
 
13717
      if test "$host_cpu" != ia64; then
 
13718
        ld_shlibs_F77=no
 
13719
        cat <<EOF 1>&2
 
13720
 
 
13721
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13722
*** to be unable to reliably create shared libraries on AIX.
 
13723
*** Therefore, libtool is disabling shared libraries support.  If you
 
13724
*** really care for shared libraries, you may want to modify your PATH
 
13725
*** so that a non-GNU linker is found, and then restart.
 
13726
 
 
13727
EOF
 
13728
      fi
 
13729
      ;;
 
13730
 
 
13731
    amigaos*)
 
13732
      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)'
 
13733
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13734
      hardcode_minus_L_F77=yes
 
13735
 
 
13736
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13737
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13738
      # to version 4, is to share data among multiple programs linked
 
13739
      # with the same dynamic library.  Since this doesn't match the
 
13740
      # behavior of shared libraries on other platforms, we can't use
 
13741
      # them.
 
13742
      ld_shlibs_F77=no
 
13743
      ;;
 
13744
 
 
13745
    beos*)
 
13746
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13747
        allow_undefined_flag_F77=unsupported
 
13748
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13749
        # support --undefined.  This deserves some investigation.  FIXME
 
13750
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13751
      else
 
13752
        ld_shlibs_F77=no
 
13753
      fi
 
13754
      ;;
 
13755
 
 
13756
    cygwin* | mingw* | pw32*)
 
13757
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13758
      # as there is no search path for DLLs.
 
13759
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13760
      allow_undefined_flag_F77=unsupported
 
13761
      always_export_symbols_F77=no
 
13762
      enable_shared_with_static_runtimes_F77=yes
 
13763
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13764
 
 
13765
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13766
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13767
        # If the export-symbols file already is a .def file (1st line
 
13768
        # is EXPORTS), use it as is; otherwise, prepend...
 
13769
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13770
          cp $export_symbols $output_objdir/$soname.def;
 
13771
        else
 
13772
          echo EXPORTS > $output_objdir/$soname.def;
 
13773
          cat $export_symbols >> $output_objdir/$soname.def;
 
13774
        fi~
 
13775
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13776
      else
 
13777
        ld_shlibs_F77=no
 
13778
      fi
 
13779
      ;;
 
13780
 
 
13781
    interix3*)
 
13782
      hardcode_direct_F77=no
 
13783
      hardcode_shlibpath_var_F77=no
 
13784
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13785
      export_dynamic_flag_spec_F77='${wl}-E'
 
13786
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13787
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13788
      # default) and relocated if they conflict, which is a slow very memory
 
13789
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13790
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13791
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13792
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13793
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13794
      ;;
 
13795
 
 
13796
    linux*)
 
13797
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13798
        tmp_addflag=
 
13799
        case $cc_basename,$host_cpu in
 
13800
        pgcc*)                          # Portland Group C compiler
 
13801
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13802
          tmp_addflag=' $pic_flag'
 
13803
          ;;
 
13804
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13805
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13806
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13807
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13808
          tmp_addflag=' -i_dynamic' ;;
 
13809
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13810
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13811
        ifc* | ifort*)                  # Intel Fortran compiler
 
13812
          tmp_addflag=' -nofor_main' ;;
 
13813
        esac
 
13814
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13815
 
 
13816
        if test $supports_anon_versioning = yes; then
 
13817
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13818
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13819
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13820
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13821
        fi
 
13822
        link_all_deplibs_F77=no
 
13823
      else
 
13824
        ld_shlibs_F77=no
 
13825
      fi
 
13826
      ;;
 
13827
 
 
13828
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13829
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13830
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13831
        wlarc=
 
13832
      else
 
13833
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13834
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13835
      fi
 
13836
      ;;
 
13837
 
 
13838
    solaris*)
 
13839
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13840
        ld_shlibs_F77=no
 
13841
        cat <<EOF 1>&2
 
13842
 
 
13843
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13844
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13845
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13846
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13847
*** your PATH or compiler configuration so that the native linker is
 
13848
*** used, and then restart.
 
13849
 
 
13850
EOF
 
13851
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13852
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13853
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13854
      else
 
13855
        ld_shlibs_F77=no
 
13856
      fi
 
13857
      ;;
 
13858
 
 
13859
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
13860
      case `$LD -v 2>&1` in
 
13861
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
13862
        ld_shlibs_F77=no
 
13863
        cat <<_LT_EOF 1>&2
 
13864
 
 
13865
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
13866
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
13867
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13868
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
13869
*** your PATH or compiler configuration so that the native linker is
 
13870
*** used, and then restart.
 
13871
 
 
13872
_LT_EOF
 
13873
        ;;
 
13874
        *)
 
13875
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13876
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
13877
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
13878
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
13879
          else
 
13880
            ld_shlibs_F77=no
 
13881
          fi
 
13882
        ;;
 
13883
      esac
 
13884
      ;;
 
13885
 
 
13886
    sunos4*)
 
13887
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13888
      wlarc=
 
13889
      hardcode_direct_F77=yes
 
13890
      hardcode_shlibpath_var_F77=no
 
13891
      ;;
 
13892
 
 
13893
    *)
 
13894
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13895
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13896
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13897
      else
 
13898
        ld_shlibs_F77=no
 
13899
      fi
 
13900
      ;;
 
13901
    esac
 
13902
 
 
13903
    if test "$ld_shlibs_F77" = no; then
 
13904
      runpath_var=
 
13905
      hardcode_libdir_flag_spec_F77=
 
13906
      export_dynamic_flag_spec_F77=
 
13907
      whole_archive_flag_spec_F77=
 
13908
    fi
 
13909
  else
 
13910
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13911
    case $host_os in
 
13912
    aix3*)
 
13913
      allow_undefined_flag_F77=unsupported
 
13914
      always_export_symbols_F77=yes
 
13915
      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'
 
13916
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13917
      # are no directories specified by -L.
 
13918
      hardcode_minus_L_F77=yes
 
13919
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
13920
        # Neither direct hardcoding nor static linking is supported with a
 
13921
        # broken collect2.
 
13922
        hardcode_direct_F77=unsupported
 
13923
      fi
 
13924
      ;;
 
13925
 
 
13926
    aix4* | aix5*)
 
13927
      if test "$host_cpu" = ia64; then
 
13928
        # On IA64, the linker does run time linking by default, so we don't
 
13929
        # have to do anything special.
 
13930
        aix_use_runtimelinking=no
 
13931
        exp_sym_flag='-Bexport'
 
13932
        no_entry_flag=""
 
13933
      else
 
13934
        # If we're using GNU nm, then we don't want the "-C" option.
 
13935
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13936
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13937
          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'
 
13938
        else
 
13939
          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'
 
13940
        fi
 
13941
        aix_use_runtimelinking=no
 
13942
 
 
13943
        # Test if we are trying to use run time linking or normal
 
13944
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13945
        # need to do runtime linking.
 
13946
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13947
          for ld_flag in $LDFLAGS; do
 
13948
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13949
            aix_use_runtimelinking=yes
 
13950
            break
 
13951
          fi
 
13952
          done
 
13953
          ;;
 
13954
        esac
 
13955
 
 
13956
        exp_sym_flag='-bexport'
 
13957
        no_entry_flag='-bnoentry'
 
13958
      fi
 
13959
 
 
13960
      # When large executables or shared objects are built, AIX ld can
 
13961
      # have problems creating the table of contents.  If linking a library
 
13962
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13963
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13964
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13965
 
 
13966
      archive_cmds_F77=''
 
13967
      hardcode_direct_F77=yes
 
13968
      hardcode_libdir_separator_F77=':'
 
13969
      link_all_deplibs_F77=yes
 
13970
 
 
13971
      if test "$GCC" = yes; then
 
13972
        case $host_os in aix4.[012]|aix4.[012].*)
 
13973
        # We only want to do this on AIX 4.2 and lower, the check
 
13974
        # below for broken collect2 doesn't work under 4.3+
 
13975
          collect2name=`${CC} -print-prog-name=collect2`
 
13976
          if test -f "$collect2name" && \
 
13977
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13978
          then
 
13979
          # We have reworked collect2
 
13980
          hardcode_direct_F77=yes
 
13981
          else
 
13982
          # We have old collect2
 
13983
          hardcode_direct_F77=unsupported
 
13984
          # It fails to find uninstalled libraries when the uninstalled
 
13985
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13986
          # to unsupported forces relinking
 
13987
          hardcode_minus_L_F77=yes
 
13988
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13989
          hardcode_libdir_separator_F77=
 
13990
          fi
 
13991
          ;;
 
13992
        esac
 
13993
        shared_flag='-shared'
 
13994
        if test "$aix_use_runtimelinking" = yes; then
 
13995
          shared_flag="$shared_flag "'${wl}-G'
 
13996
        fi
 
13997
      else
 
13998
        # not using gcc
 
13999
        if test "$host_cpu" = ia64; then
 
14000
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14001
        # chokes on -Wl,-G. The following line is correct:
 
14002
          shared_flag='-G'
 
14003
        else
 
14004
          if test "$aix_use_runtimelinking" = yes; then
 
14005
            shared_flag='${wl}-G'
 
14006
          else
 
14007
            shared_flag='${wl}-bM:SRE'
 
14008
          fi
 
14009
        fi
 
14010
      fi
 
14011
 
 
14012
      # It seems that -bexpall does not export symbols beginning with
 
14013
      # underscore (_), so it is better to generate a list of symbols to export.
 
14014
      always_export_symbols_F77=yes
 
14015
      if test "$aix_use_runtimelinking" = yes; then
 
14016
        # Warning - without using the other runtime loading flags (-brtl),
 
14017
        # -berok will link without error, but may produce a broken library.
 
14018
        allow_undefined_flag_F77='-berok'
 
14019
       # Determine the default libpath from the value encoded in an empty executable.
 
14020
       cat >conftest.$ac_ext <<_ACEOF
 
14021
      program main
 
14022
 
 
14023
      end
 
14024
_ACEOF
 
14025
rm -f conftest.$ac_objext conftest$ac_exeext
 
14026
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14027
  (eval $ac_link) 2>conftest.er1
 
14028
  ac_status=$?
 
14029
  grep -v '^ *+' conftest.er1 >conftest.err
 
14030
  rm -f conftest.er1
 
14031
  cat conftest.err >&5
 
14032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14033
  (exit $ac_status); } &&
 
14034
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14036
  (eval $ac_try) 2>&5
 
14037
  ac_status=$?
 
14038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14039
  (exit $ac_status); }; } &&
 
14040
         { ac_try='test -s conftest$ac_exeext'
 
14041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14042
  (eval $ac_try) 2>&5
 
14043
  ac_status=$?
 
14044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14045
  (exit $ac_status); }; }; then
 
14046
 
 
14047
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14048
}'`
 
14049
# Check for a 64-bit object if we didn't find anything.
 
14050
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; }
 
14051
}'`; fi
 
14052
else
 
14053
  echo "$as_me: failed program was:" >&5
 
14054
sed 's/^/| /' conftest.$ac_ext >&5
 
14055
 
 
14056
fi
 
14057
rm -f conftest.err conftest.$ac_objext \
 
14058
      conftest$ac_exeext conftest.$ac_ext
 
14059
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14060
 
 
14061
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14062
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14063
       else
 
14064
        if test "$host_cpu" = ia64; then
 
14065
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14066
          allow_undefined_flag_F77="-z nodefs"
 
14067
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
14068
        else
 
14069
         # Determine the default libpath from the value encoded in an empty executable.
 
14070
         cat >conftest.$ac_ext <<_ACEOF
 
14071
      program main
 
14072
 
 
14073
      end
 
14074
_ACEOF
 
14075
rm -f conftest.$ac_objext conftest$ac_exeext
 
14076
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14077
  (eval $ac_link) 2>conftest.er1
 
14078
  ac_status=$?
 
14079
  grep -v '^ *+' conftest.er1 >conftest.err
 
14080
  rm -f conftest.er1
 
14081
  cat conftest.err >&5
 
14082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14083
  (exit $ac_status); } &&
 
14084
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14086
  (eval $ac_try) 2>&5
 
14087
  ac_status=$?
 
14088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14089
  (exit $ac_status); }; } &&
 
14090
         { ac_try='test -s conftest$ac_exeext'
 
14091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14092
  (eval $ac_try) 2>&5
 
14093
  ac_status=$?
 
14094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14095
  (exit $ac_status); }; }; then
 
14096
 
 
14097
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14098
}'`
 
14099
# Check for a 64-bit object if we didn't find anything.
 
14100
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; }
 
14101
}'`; fi
 
14102
else
 
14103
  echo "$as_me: failed program was:" >&5
 
14104
sed 's/^/| /' conftest.$ac_ext >&5
 
14105
 
 
14106
fi
 
14107
rm -f conftest.err conftest.$ac_objext \
 
14108
      conftest$ac_exeext conftest.$ac_ext
 
14109
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14110
 
 
14111
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14112
          # Warning - without using the other run time loading flags,
 
14113
          # -berok will link without error, but may produce a broken library.
 
14114
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14115
          allow_undefined_flag_F77=' ${wl}-berok'
 
14116
          # Exported symbols can be pulled into shared objects from archives
 
14117
          whole_archive_flag_spec_F77='$convenience'
 
14118
          archive_cmds_need_lc_F77=yes
 
14119
          # This is similar to how AIX traditionally builds its shared libraries.
 
14120
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
14121
        fi
 
14122
      fi
 
14123
      ;;
 
14124
 
 
14125
    amigaos*)
 
14126
      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)'
 
14127
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14128
      hardcode_minus_L_F77=yes
 
14129
      # see comment about different semantics on the GNU ld section
 
14130
      ld_shlibs_F77=no
 
14131
      ;;
 
14132
 
 
14133
    bsdi[45]*)
 
14134
      export_dynamic_flag_spec_F77=-rdynamic
 
14135
      ;;
 
14136
 
 
14137
    cygwin* | mingw* | pw32*)
 
14138
      # When not using gcc, we currently assume that we are using
 
14139
      # Microsoft Visual C++.
 
14140
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14141
      # no search path for DLLs.
 
14142
      hardcode_libdir_flag_spec_F77=' '
 
14143
      allow_undefined_flag_F77=unsupported
 
14144
      # Tell ltmain to make .lib files, not .a files.
 
14145
      libext=lib
 
14146
      # Tell ltmain to make .dll files, not .so files.
 
14147
      shrext_cmds=".dll"
 
14148
      # FIXME: Setting linknames here is a bad hack.
 
14149
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14150
      # The linker will automatically build a .lib file if we build a DLL.
 
14151
      old_archive_From_new_cmds_F77='true'
 
14152
      # FIXME: Should let the user specify the lib program.
 
14153
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14154
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14155
      enable_shared_with_static_runtimes_F77=yes
 
14156
      ;;
 
14157
 
 
14158
    darwin* | rhapsody*)
 
14159
      case $host_os in
 
14160
        rhapsody* | darwin1.[012])
 
14161
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14162
         ;;
 
14163
       *) # Darwin 1.3 on
 
14164
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14165
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14166
         else
 
14167
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14168
             10.[012])
 
14169
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14170
               ;;
 
14171
             10.*)
 
14172
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14173
               ;;
 
14174
           esac
 
14175
         fi
 
14176
         ;;
 
14177
      esac
 
14178
      archive_cmds_need_lc_F77=no
 
14179
      hardcode_direct_F77=no
 
14180
      hardcode_automatic_F77=yes
 
14181
      hardcode_shlibpath_var_F77=unsupported
 
14182
      whole_archive_flag_spec_F77=''
 
14183
      link_all_deplibs_F77=yes
 
14184
    if test "$GCC" = yes ; then
 
14185
        output_verbose_link_cmd='echo'
 
14186
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14187
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14188
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14189
      archive_expsym_cmds_F77='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}'
 
14190
      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}'
 
14191
    else
 
14192
      case $cc_basename in
 
14193
        xlc*)
 
14194
         output_verbose_link_cmd='echo'
 
14195
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14196
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14197
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14198
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14199
          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}'
 
14200
          ;;
 
14201
       *)
 
14202
         ld_shlibs_F77=no
 
14203
          ;;
 
14204
      esac
 
14205
    fi
 
14206
      ;;
 
14207
 
 
14208
    dgux*)
 
14209
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14210
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14211
      hardcode_shlibpath_var_F77=no
 
14212
      ;;
 
14213
 
 
14214
    freebsd1*)
 
14215
      ld_shlibs_F77=no
 
14216
      ;;
 
14217
 
 
14218
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14219
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14220
    # does not break anything, and helps significantly (at the cost of a little
 
14221
    # extra space).
 
14222
    freebsd2.2*)
 
14223
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14224
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14225
      hardcode_direct_F77=yes
 
14226
      hardcode_shlibpath_var_F77=no
 
14227
      ;;
 
14228
 
 
14229
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14230
    freebsd2*)
 
14231
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14232
      hardcode_direct_F77=yes
 
14233
      hardcode_minus_L_F77=yes
 
14234
      hardcode_shlibpath_var_F77=no
 
14235
      ;;
 
14236
 
 
14237
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14238
    freebsd* | dragonfly*)
 
14239
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14240
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14241
      hardcode_direct_F77=yes
 
14242
      hardcode_shlibpath_var_F77=no
 
14243
      ;;
 
14244
 
 
14245
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
14246
    kfreebsd*-gnu)
 
14247
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14248
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14249
      hardcode_direct_F77=yes
 
14250
      hardcode_shlibpath_var_F77=no
 
14251
      link_all_deplibs_F77=no
 
14252
      ;;
 
14253
 
 
14254
    hpux9*)
 
14255
      if test "$GCC" = yes; then
 
14256
        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'
 
14257
      else
 
14258
        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'
 
14259
      fi
 
14260
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14261
      hardcode_libdir_separator_F77=:
 
14262
      hardcode_direct_F77=yes
 
14263
 
 
14264
      # hardcode_minus_L: Not really in the search PATH,
 
14265
      # but as the default location of the library.
 
14266
      hardcode_minus_L_F77=yes
 
14267
      export_dynamic_flag_spec_F77='${wl}-E'
 
14268
      ;;
 
14269
 
 
14270
    hpux10*)
 
14271
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14272
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14273
      else
 
14274
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14275
      fi
 
14276
      if test "$with_gnu_ld" = no; then
 
14277
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14278
        hardcode_libdir_separator_F77=:
 
14279
 
 
14280
        hardcode_direct_F77=yes
 
14281
        export_dynamic_flag_spec_F77='${wl}-E'
 
14282
 
 
14283
        # hardcode_minus_L: Not really in the search PATH,
 
14284
        # but as the default location of the library.
 
14285
        hardcode_minus_L_F77=yes
 
14286
      fi
 
14287
      ;;
 
14288
 
 
14289
    hpux11*)
 
14290
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14291
        case $host_cpu in
 
14292
        hppa*64*)
 
14293
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14294
          ;;
 
14295
        ia64*)
 
14296
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14297
          ;;
 
14298
        *)
 
14299
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14300
          ;;
 
14301
        esac
 
14302
      else
 
14303
        case $host_cpu in
 
14304
        hppa*64*)
 
14305
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14306
          ;;
 
14307
        ia64*)
 
14308
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14309
          ;;
 
14310
        *)
 
14311
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14312
          ;;
 
14313
        esac
 
14314
      fi
 
14315
      if test "$with_gnu_ld" = no; then
 
14316
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14317
        hardcode_libdir_separator_F77=:
 
14318
 
 
14319
        case $host_cpu in
 
14320
        hppa*64*|ia64*)
 
14321
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14322
          hardcode_direct_F77=no
 
14323
          hardcode_shlibpath_var_F77=no
 
14324
          ;;
 
14325
        *)
 
14326
          hardcode_direct_F77=yes
 
14327
          export_dynamic_flag_spec_F77='${wl}-E'
 
14328
 
 
14329
          # hardcode_minus_L: Not really in the search PATH,
 
14330
          # but as the default location of the library.
 
14331
          hardcode_minus_L_F77=yes
 
14332
          ;;
 
14333
        esac
 
14334
      fi
 
14335
      ;;
 
14336
 
 
14337
    irix5* | irix6* | nonstopux*)
 
14338
      if test "$GCC" = yes; then
 
14339
        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'
 
14340
      else
 
14341
        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'
 
14342
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14343
      fi
 
14344
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14345
      hardcode_libdir_separator_F77=:
 
14346
      link_all_deplibs_F77=yes
 
14347
      ;;
 
14348
 
 
14349
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14350
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14351
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14352
      else
 
14353
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14354
      fi
 
14355
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14356
      hardcode_direct_F77=yes
 
14357
      hardcode_shlibpath_var_F77=no
 
14358
      ;;
 
14359
 
 
14360
    newsos6)
 
14361
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14362
      hardcode_direct_F77=yes
 
14363
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14364
      hardcode_libdir_separator_F77=:
 
14365
      hardcode_shlibpath_var_F77=no
 
14366
      ;;
 
14367
 
 
14368
    openbsd*)
 
14369
      hardcode_direct_F77=yes
 
14370
      hardcode_shlibpath_var_F77=no
 
14371
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14372
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14373
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14374
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14375
        export_dynamic_flag_spec_F77='${wl}-E'
 
14376
      else
 
14377
       case $host_os in
 
14378
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14379
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14380
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14381
           ;;
 
14382
         *)
 
14383
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14384
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14385
           ;;
 
14386
       esac
 
14387
      fi
 
14388
      ;;
 
14389
 
 
14390
    os2*)
 
14391
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14392
      hardcode_minus_L_F77=yes
 
14393
      allow_undefined_flag_F77=unsupported
 
14394
      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'
 
14395
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14396
      ;;
 
14397
 
 
14398
    osf3*)
 
14399
      if test "$GCC" = yes; then
 
14400
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14401
        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'
 
14402
      else
 
14403
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14404
        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'
 
14405
      fi
 
14406
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14407
      hardcode_libdir_separator_F77=:
 
14408
      ;;
 
14409
 
 
14410
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14411
      if test "$GCC" = yes; then
 
14412
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14413
        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'
 
14414
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14415
      else
 
14416
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14417
        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'
 
14418
        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~
 
14419
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
14420
 
 
14421
        # Both c and cxx compiler support -rpath directly
 
14422
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14423
      fi
 
14424
      hardcode_libdir_separator_F77=:
 
14425
      ;;
 
14426
 
 
14427
    solaris*)
 
14428
      no_undefined_flag_F77=' -z text'
 
14429
      if test "$GCC" = yes; then
 
14430
        wlarc='${wl}'
 
14431
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14432
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14433
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14434
      else
 
14435
        wlarc=''
 
14436
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14437
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14438
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14439
      fi
 
14440
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14441
      hardcode_shlibpath_var_F77=no
 
14442
      case $host_os in
 
14443
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14444
      *)
 
14445
        # The compiler driver will combine linker options so we
 
14446
        # cannot just pass the convience library names through
 
14447
        # without $wl, iff we do not link with $LD.
 
14448
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14449
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14450
        case $wlarc in
 
14451
        '')
 
14452
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14453
        *)
 
14454
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14455
        esac ;;
 
14456
      esac
 
14457
      link_all_deplibs_F77=yes
 
14458
      ;;
 
14459
 
 
14460
    sunos4*)
 
14461
      if test "x$host_vendor" = xsequent; then
 
14462
        # Use $CC to link under sequent, because it throws in some extra .o
 
14463
        # files that make .init and .fini sections work.
 
14464
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14465
      else
 
14466
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14467
      fi
 
14468
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14469
      hardcode_direct_F77=yes
 
14470
      hardcode_minus_L_F77=yes
 
14471
      hardcode_shlibpath_var_F77=no
 
14472
      ;;
 
14473
 
 
14474
    sysv4)
 
14475
      case $host_vendor in
 
14476
        sni)
 
14477
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14478
          hardcode_direct_F77=yes # is this really true???
 
14479
        ;;
 
14480
        siemens)
 
14481
          ## LD is ld it makes a PLAMLIB
 
14482
          ## CC just makes a GrossModule.
 
14483
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14484
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14485
          hardcode_direct_F77=no
 
14486
        ;;
 
14487
        motorola)
 
14488
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14489
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14490
        ;;
 
14491
      esac
 
14492
      runpath_var='LD_RUN_PATH'
 
14493
      hardcode_shlibpath_var_F77=no
 
14494
      ;;
 
14495
 
 
14496
    sysv4.3*)
 
14497
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14498
      hardcode_shlibpath_var_F77=no
 
14499
      export_dynamic_flag_spec_F77='-Bexport'
 
14500
      ;;
 
14501
 
 
14502
    sysv4*MP*)
 
14503
      if test -d /usr/nec; then
 
14504
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14505
        hardcode_shlibpath_var_F77=no
 
14506
        runpath_var=LD_RUN_PATH
 
14507
        hardcode_runpath_var=yes
 
14508
        ld_shlibs_F77=yes
 
14509
      fi
 
14510
      ;;
 
14511
 
 
14512
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14513
      no_undefined_flag_F77='${wl}-z,text'
 
14514
      archive_cmds_need_lc_F77=no
 
14515
      hardcode_shlibpath_var_F77=no
 
14516
      runpath_var='LD_RUN_PATH'
 
14517
 
 
14518
      if test "$GCC" = yes; then
 
14519
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14520
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14521
      else
 
14522
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14523
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14524
      fi
 
14525
      ;;
 
14526
 
 
14527
    sysv5* | sco3.2v5* | sco5v6*)
 
14528
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14529
      # link with -lc, and that would cause any symbols used from libc to
 
14530
      # always be unresolved, which means just about no library would
 
14531
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14532
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14533
      # as -z defs.
 
14534
      no_undefined_flag_F77='${wl}-z,text'
 
14535
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14536
      archive_cmds_need_lc_F77=no
 
14537
      hardcode_shlibpath_var_F77=no
 
14538
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14539
      hardcode_libdir_separator_F77=':'
 
14540
      link_all_deplibs_F77=yes
 
14541
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14542
      runpath_var='LD_RUN_PATH'
 
14543
 
 
14544
      if test "$GCC" = yes; then
 
14545
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14546
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14547
      else
 
14548
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14549
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14550
      fi
 
14551
      ;;
 
14552
 
 
14553
    uts4*)
 
14554
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14555
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14556
      hardcode_shlibpath_var_F77=no
 
14557
      ;;
 
14558
 
 
14559
    *)
 
14560
      ld_shlibs_F77=no
 
14561
      ;;
 
14562
    esac
 
14563
  fi
 
14564
 
 
14565
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14566
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14567
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14568
 
 
14569
#
 
14570
# Do we need to explicitly link libc?
 
14571
#
 
14572
case "x$archive_cmds_need_lc_F77" in
 
14573
x|xyes)
 
14574
  # Assume -lc should be added
 
14575
  archive_cmds_need_lc_F77=yes
 
14576
 
 
14577
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14578
    case $archive_cmds_F77 in
 
14579
    *'~'*)
 
14580
      # FIXME: we may have to deal with multi-command sequences.
 
14581
      ;;
 
14582
    '$CC '*)
 
14583
      # Test whether the compiler implicitly links with -lc since on some
 
14584
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14585
      # to ld, don't add -lc before -lgcc.
 
14586
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14587
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14588
      $rm conftest*
 
14589
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14590
 
 
14591
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14592
  (eval $ac_compile) 2>&5
 
14593
  ac_status=$?
 
14594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14595
  (exit $ac_status); } 2>conftest.err; then
 
14596
        soname=conftest
 
14597
        lib=conftest
 
14598
        libobjs=conftest.$ac_objext
 
14599
        deplibs=
 
14600
        wl=$lt_prog_compiler_wl_F77
 
14601
        pic_flag=$lt_prog_compiler_pic_F77
 
14602
        compiler_flags=-v
 
14603
        linker_flags=-v
 
14604
        verstring=
 
14605
        output_objdir=.
 
14606
        libname=conftest
 
14607
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14608
        allow_undefined_flag_F77=
 
14609
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14610
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14611
  ac_status=$?
 
14612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14613
  (exit $ac_status); }
 
14614
        then
 
14615
          archive_cmds_need_lc_F77=no
 
14616
        else
 
14617
          archive_cmds_need_lc_F77=yes
 
14618
        fi
 
14619
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14620
      else
 
14621
        cat conftest.err 1>&5
 
14622
      fi
 
14623
      $rm conftest*
 
14624
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14625
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14626
      ;;
 
14627
    esac
 
14628
  fi
 
14629
  ;;
 
14630
esac
 
14631
 
 
14632
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14633
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14634
library_names_spec=
 
14635
libname_spec='lib$name'
 
14636
soname_spec=
 
14637
shrext_cmds=".so"
 
14638
postinstall_cmds=
 
14639
postuninstall_cmds=
 
14640
finish_cmds=
 
14641
finish_eval=
 
14642
shlibpath_var=
 
14643
shlibpath_overrides_runpath=unknown
 
14644
version_type=none
 
14645
dynamic_linker="$host_os ld.so"
 
14646
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14647
if test "$GCC" = yes; then
 
14648
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14649
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14650
    # if the path contains ";" then we assume it to be the separator
 
14651
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14652
    # assumed that no part of a normal pathname contains ";" but that should
 
14653
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14654
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14655
  else
 
14656
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14657
  fi
 
14658
else
 
14659
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14660
fi
 
14661
need_lib_prefix=unknown
 
14662
hardcode_into_libs=no
 
14663
 
 
14664
# when you set need_version to no, make sure it does not cause -set_version
 
14665
# flags to be left without arguments
 
14666
need_version=unknown
 
14667
 
 
14668
case $host_os in
 
14669
aix3*)
 
14670
  version_type=linux
 
14671
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14672
  shlibpath_var=LIBPATH
 
14673
 
 
14674
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14675
  soname_spec='${libname}${release}${shared_ext}$major'
 
14676
  ;;
 
14677
 
 
14678
aix4* | aix5*)
 
14679
  version_type=linux
 
14680
  need_lib_prefix=no
 
14681
  need_version=no
 
14682
  hardcode_into_libs=yes
 
14683
  if test "$host_cpu" = ia64; then
 
14684
    # AIX 5 supports IA64
 
14685
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14686
    shlibpath_var=LD_LIBRARY_PATH
 
14687
  else
 
14688
    # With GCC up to 2.95.x, collect2 would create an import file
 
14689
    # for dependence libraries.  The import file would start with
 
14690
    # the line `#! .'.  This would cause the generated library to
 
14691
    # depend on `.', always an invalid library.  This was fixed in
 
14692
    # development snapshots of GCC prior to 3.0.
 
14693
    case $host_os in
 
14694
      aix4 | aix4.[01] | aix4.[01].*)
 
14695
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14696
           echo ' yes '
 
14697
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14698
        :
 
14699
      else
 
14700
        can_build_shared=no
 
14701
      fi
 
14702
      ;;
 
14703
    esac
 
14704
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14705
    # soname into executable. Probably we can add versioning support to
 
14706
    # collect2, so additional links can be useful in future.
 
14707
    if test "$aix_use_runtimelinking" = yes; then
 
14708
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14709
      # instead of lib<name>.a to let people know that these are not
 
14710
      # typical AIX shared libraries.
 
14711
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14712
    else
 
14713
      # We preserve .a as extension for shared libraries through AIX4.2
 
14714
      # and later when we are not doing run time linking.
 
14715
      library_names_spec='${libname}${release}.a $libname.a'
 
14716
      soname_spec='${libname}${release}${shared_ext}$major'
 
14717
    fi
 
14718
    shlibpath_var=LIBPATH
 
14719
  fi
 
14720
  ;;
 
14721
 
 
14722
amigaos*)
 
14723
  library_names_spec='$libname.ixlibrary $libname.a'
 
14724
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14725
  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'
 
14726
  ;;
 
14727
 
 
14728
beos*)
 
14729
  library_names_spec='${libname}${shared_ext}'
 
14730
  dynamic_linker="$host_os ld.so"
 
14731
  shlibpath_var=LIBRARY_PATH
 
14732
  ;;
 
14733
 
 
14734
bsdi[45]*)
 
14735
  version_type=linux
 
14736
  need_version=no
 
14737
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14738
  soname_spec='${libname}${release}${shared_ext}$major'
 
14739
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14740
  shlibpath_var=LD_LIBRARY_PATH
 
14741
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14742
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14743
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14744
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14745
  # libtool to hard-code these into programs
 
14746
  ;;
 
14747
 
 
14748
cygwin* | mingw* | pw32*)
 
14749
  version_type=windows
 
14750
  shrext_cmds=".dll"
 
14751
  need_version=no
 
14752
  need_lib_prefix=no
 
14753
 
 
14754
  case $GCC,$host_os in
 
14755
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14756
    library_names_spec='$libname.dll.a'
 
14757
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14758
    postinstall_cmds='base_file=`basename \${file}`~
 
14759
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14760
      dldir=$destdir/`dirname \$dlpath`~
 
14761
      test -d \$dldir || mkdir -p \$dldir~
 
14762
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14763
      chmod a+x \$dldir/$dlname'
 
14764
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14765
      dlpath=$dir/\$dldll~
 
14766
       $rm \$dlpath'
 
14767
    shlibpath_overrides_runpath=yes
 
14768
 
 
14769
    case $host_os in
 
14770
    cygwin*)
 
14771
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14772
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14773
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14774
      ;;
 
14775
    mingw*)
 
14776
      # MinGW DLLs use traditional 'lib' prefix
 
14777
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14778
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14779
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14780
        # It is most probably a Windows format PATH printed by
 
14781
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14782
        # path with ; separators, and with drive letters. We can handle the
 
14783
        # drive letters (cygwin fileutils understands them), so leave them,
 
14784
        # especially as we might pass files found there to a mingw objdump,
 
14785
        # which wouldn't understand a cygwinified path. Ahh.
 
14786
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14787
      else
 
14788
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14789
      fi
 
14790
      ;;
 
14791
    pw32*)
 
14792
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14793
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14794
      ;;
 
14795
    esac
 
14796
    ;;
 
14797
 
 
14798
  *)
 
14799
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14800
    ;;
 
14801
  esac
 
14802
  dynamic_linker='Win32 ld.exe'
 
14803
  # FIXME: first we should search . and the directory the executable is in
 
14804
  shlibpath_var=PATH
 
14805
  ;;
 
14806
 
 
14807
darwin* | rhapsody*)
 
14808
  dynamic_linker="$host_os dyld"
 
14809
  version_type=darwin
 
14810
  need_lib_prefix=no
 
14811
  need_version=no
 
14812
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14813
  soname_spec='${libname}${release}${major}$shared_ext'
 
14814
  shlibpath_overrides_runpath=yes
 
14815
  shlibpath_var=DYLD_LIBRARY_PATH
 
14816
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14817
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14818
  if test "$GCC" = yes; then
 
14819
    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"`
 
14820
  else
 
14821
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14822
  fi
 
14823
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14824
  ;;
 
14825
 
 
14826
dgux*)
 
14827
  version_type=linux
 
14828
  need_lib_prefix=no
 
14829
  need_version=no
 
14830
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14831
  soname_spec='${libname}${release}${shared_ext}$major'
 
14832
  shlibpath_var=LD_LIBRARY_PATH
 
14833
  ;;
 
14834
 
 
14835
freebsd1*)
 
14836
  dynamic_linker=no
 
14837
  ;;
 
14838
 
 
14839
kfreebsd*-gnu)
 
14840
  version_type=linux
 
14841
  need_lib_prefix=no
 
14842
  need_version=no
 
14843
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14844
  soname_spec='${libname}${release}${shared_ext}$major'
 
14845
  shlibpath_var=LD_LIBRARY_PATH
 
14846
  shlibpath_overrides_runpath=no
 
14847
  hardcode_into_libs=yes
 
14848
  dynamic_linker='GNU ld.so'
 
14849
  ;;
 
14850
 
 
14851
freebsd* | dragonfly*)
 
14852
  # DragonFly does not have aout.  When/if they implement a new
 
14853
  # versioning mechanism, adjust this.
 
14854
  if test -x /usr/bin/objformat; then
 
14855
    objformat=`/usr/bin/objformat`
 
14856
  else
 
14857
    case $host_os in
 
14858
    freebsd[123]*) objformat=aout ;;
 
14859
    *) objformat=elf ;;
 
14860
    esac
 
14861
  fi
 
14862
  version_type=freebsd-$objformat
 
14863
  case $version_type in
 
14864
    freebsd-elf*)
 
14865
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14866
      need_version=no
 
14867
      need_lib_prefix=no
 
14868
      ;;
 
14869
    freebsd-*)
 
14870
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14871
      need_version=yes
 
14872
      ;;
 
14873
  esac
 
14874
  shlibpath_var=LD_LIBRARY_PATH
 
14875
  case $host_os in
 
14876
  freebsd2*)
 
14877
    shlibpath_overrides_runpath=yes
 
14878
    ;;
 
14879
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14880
    shlibpath_overrides_runpath=yes
 
14881
    hardcode_into_libs=yes
 
14882
    ;;
 
14883
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14884
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14885
    shlibpath_overrides_runpath=no
 
14886
    hardcode_into_libs=yes
 
14887
    ;;
 
14888
  freebsd*) # from 4.6 on
 
14889
    shlibpath_overrides_runpath=yes
 
14890
    hardcode_into_libs=yes
 
14891
    ;;
 
14892
  esac
 
14893
  ;;
 
14894
 
 
14895
gnu*)
 
14896
  version_type=linux
 
14897
  need_lib_prefix=no
 
14898
  need_version=no
 
14899
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14900
  soname_spec='${libname}${release}${shared_ext}$major'
 
14901
  shlibpath_var=LD_LIBRARY_PATH
 
14902
  hardcode_into_libs=yes
 
14903
  ;;
 
14904
 
 
14905
hpux9* | hpux10* | hpux11*)
 
14906
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14907
  # link against other versions.
 
14908
  version_type=sunos
 
14909
  need_lib_prefix=no
 
14910
  need_version=no
 
14911
  case $host_cpu in
 
14912
  ia64*)
 
14913
    shrext_cmds='.so'
 
14914
    hardcode_into_libs=yes
 
14915
    dynamic_linker="$host_os dld.so"
 
14916
    shlibpath_var=LD_LIBRARY_PATH
 
14917
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14918
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14919
    soname_spec='${libname}${release}${shared_ext}$major'
 
14920
    if test "X$HPUX_IA64_MODE" = X32; then
 
14921
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14922
    else
 
14923
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14924
    fi
 
14925
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14926
    ;;
 
14927
   hppa*64*)
 
14928
     shrext_cmds='.sl'
 
14929
     hardcode_into_libs=yes
 
14930
     dynamic_linker="$host_os dld.sl"
 
14931
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14932
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14933
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14934
     soname_spec='${libname}${release}${shared_ext}$major'
 
14935
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14936
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14937
     ;;
 
14938
   *)
 
14939
    shrext_cmds='.sl'
 
14940
    dynamic_linker="$host_os dld.sl"
 
14941
    shlibpath_var=SHLIB_PATH
 
14942
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14943
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14944
    soname_spec='${libname}${release}${shared_ext}$major'
 
14945
    ;;
 
14946
  esac
 
14947
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14948
  postinstall_cmds='chmod 555 $lib'
 
14949
  ;;
 
14950
 
 
14951
interix3*)
 
14952
  version_type=linux
 
14953
  need_lib_prefix=no
 
14954
  need_version=no
 
14955
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14956
  soname_spec='${libname}${release}${shared_ext}$major'
 
14957
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14958
  shlibpath_var=LD_LIBRARY_PATH
 
14959
  shlibpath_overrides_runpath=no
 
14960
  hardcode_into_libs=yes
 
14961
  ;;
 
14962
 
 
14963
irix5* | irix6* | nonstopux*)
 
14964
  case $host_os in
 
14965
    nonstopux*) version_type=nonstopux ;;
 
14966
    *)
 
14967
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14968
                version_type=linux
 
14969
        else
 
14970
                version_type=irix
 
14971
        fi ;;
 
14972
  esac
 
14973
  need_lib_prefix=no
 
14974
  need_version=no
 
14975
  soname_spec='${libname}${release}${shared_ext}$major'
 
14976
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14977
  case $host_os in
 
14978
  irix5* | nonstopux*)
 
14979
    libsuff= shlibsuff=
 
14980
    ;;
 
14981
  *)
 
14982
    case $LD in # libtool.m4 will add one of these switches to LD
 
14983
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14984
      libsuff= shlibsuff= libmagic=32-bit;;
 
14985
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14986
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14987
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14988
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14989
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14990
    esac
 
14991
    ;;
 
14992
  esac
 
14993
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14994
  shlibpath_overrides_runpath=no
 
14995
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14996
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14997
  hardcode_into_libs=yes
 
14998
  ;;
 
14999
 
 
15000
# No shared lib support for Linux oldld, aout, or coff.
 
15001
linux*oldld* | linux*aout* | linux*coff*)
 
15002
  dynamic_linker=no
 
15003
  ;;
 
15004
 
 
15005
# This must be Linux ELF.
 
15006
linux*)
 
15007
  version_type=linux
 
15008
  need_lib_prefix=no
 
15009
  need_version=no
 
15010
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15011
  soname_spec='${libname}${release}${shared_ext}$major'
 
15012
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15013
  shlibpath_var=LD_LIBRARY_PATH
 
15014
  shlibpath_overrides_runpath=no
 
15015
  # This implies no fast_install, which is unacceptable.
 
15016
  # Some rework will be needed to allow for fast_install
 
15017
  # before this can be enabled.
 
15018
  hardcode_into_libs=yes
 
15019
 
 
15020
  # Append ld.so.conf contents to the search path
 
15021
  if test -f /etc/ld.so.conf; then
 
15022
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15023
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15024
  fi
 
15025
 
 
15026
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15027
  # powerpc, because MkLinux only supported shared libraries with the
 
15028
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15029
  # most powerpc-linux boxes support dynamic linking these days and
 
15030
  # people can always --disable-shared, the test was removed, and we
 
15031
  # assume the GNU/Linux dynamic linker is in use.
 
15032
  dynamic_linker='GNU/Linux ld.so'
 
15033
  ;;
 
15034
 
 
15035
netbsdelf*-gnu)
 
15036
  version_type=linux
 
15037
  need_lib_prefix=no
 
15038
  need_version=no
 
15039
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15040
  soname_spec='${libname}${release}${shared_ext}$major'
 
15041
  shlibpath_var=LD_LIBRARY_PATH
 
15042
  shlibpath_overrides_runpath=no
 
15043
  hardcode_into_libs=yes
 
15044
  dynamic_linker='NetBSD ld.elf_so'
 
15045
  ;;
 
15046
 
 
15047
knetbsd*-gnu)
 
15048
  version_type=linux
 
15049
  need_lib_prefix=no
 
15050
  need_version=no
 
15051
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15052
  soname_spec='${libname}${release}${shared_ext}$major'
 
15053
  shlibpath_var=LD_LIBRARY_PATH
 
15054
  shlibpath_overrides_runpath=no
 
15055
  hardcode_into_libs=yes
 
15056
  dynamic_linker='GNU ld.so'
 
15057
  ;;
 
15058
 
 
15059
netbsd*)
 
15060
  version_type=sunos
 
15061
  need_lib_prefix=no
 
15062
  need_version=no
 
15063
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15064
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15065
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15066
    dynamic_linker='NetBSD (a.out) ld.so'
 
15067
  else
 
15068
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15069
    soname_spec='${libname}${release}${shared_ext}$major'
 
15070
    dynamic_linker='NetBSD ld.elf_so'
 
15071
  fi
 
15072
  shlibpath_var=LD_LIBRARY_PATH
 
15073
  shlibpath_overrides_runpath=yes
 
15074
  hardcode_into_libs=yes
 
15075
  ;;
 
15076
 
 
15077
newsos6)
 
15078
  version_type=linux
 
15079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15080
  shlibpath_var=LD_LIBRARY_PATH
 
15081
  shlibpath_overrides_runpath=yes
 
15082
  ;;
 
15083
 
 
15084
nto-qnx*)
 
15085
  version_type=linux
 
15086
  need_lib_prefix=no
 
15087
  need_version=no
 
15088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15089
  soname_spec='${libname}${release}${shared_ext}$major'
 
15090
  shlibpath_var=LD_LIBRARY_PATH
 
15091
  shlibpath_overrides_runpath=yes
 
15092
  ;;
 
15093
 
 
15094
openbsd*)
 
15095
  version_type=sunos
 
15096
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15097
  need_lib_prefix=no
 
15098
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15099
  case $host_os in
 
15100
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15101
    *)                         need_version=no  ;;
 
15102
  esac
 
15103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15104
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15105
  shlibpath_var=LD_LIBRARY_PATH
 
15106
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15107
    case $host_os in
 
15108
      openbsd2.[89] | openbsd2.[89].*)
 
15109
        shlibpath_overrides_runpath=no
 
15110
        ;;
 
15111
      *)
 
15112
        shlibpath_overrides_runpath=yes
 
15113
        ;;
 
15114
      esac
 
15115
  else
 
15116
    shlibpath_overrides_runpath=yes
 
15117
  fi
 
15118
  ;;
 
15119
 
 
15120
os2*)
 
15121
  libname_spec='$name'
 
15122
  shrext_cmds=".dll"
 
15123
  need_lib_prefix=no
 
15124
  library_names_spec='$libname${shared_ext} $libname.a'
 
15125
  dynamic_linker='OS/2 ld.exe'
 
15126
  shlibpath_var=LIBPATH
 
15127
  ;;
 
15128
 
 
15129
osf3* | osf4* | osf5*)
 
15130
  version_type=osf
 
15131
  need_lib_prefix=no
 
15132
  need_version=no
 
15133
  soname_spec='${libname}${release}${shared_ext}$major'
 
15134
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15135
  shlibpath_var=LD_LIBRARY_PATH
 
15136
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15137
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15138
  ;;
 
15139
 
 
15140
solaris*)
 
15141
  version_type=linux
 
15142
  need_lib_prefix=no
 
15143
  need_version=no
 
15144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15145
  soname_spec='${libname}${release}${shared_ext}$major'
 
15146
  shlibpath_var=LD_LIBRARY_PATH
 
15147
  shlibpath_overrides_runpath=yes
 
15148
  hardcode_into_libs=yes
 
15149
  # ldd complains unless libraries are executable
 
15150
  postinstall_cmds='chmod +x $lib'
 
15151
  ;;
 
15152
 
 
15153
sunos4*)
 
15154
  version_type=sunos
 
15155
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15156
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15157
  shlibpath_var=LD_LIBRARY_PATH
 
15158
  shlibpath_overrides_runpath=yes
 
15159
  if test "$with_gnu_ld" = yes; then
 
15160
    need_lib_prefix=no
 
15161
  fi
 
15162
  need_version=yes
 
15163
  ;;
 
15164
 
 
15165
sysv4 | sysv4.3*)
 
15166
  version_type=linux
 
15167
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15168
  soname_spec='${libname}${release}${shared_ext}$major'
 
15169
  shlibpath_var=LD_LIBRARY_PATH
 
15170
  case $host_vendor in
 
15171
    sni)
 
15172
      shlibpath_overrides_runpath=no
 
15173
      need_lib_prefix=no
 
15174
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15175
      runpath_var=LD_RUN_PATH
 
15176
      ;;
 
15177
    siemens)
 
15178
      need_lib_prefix=no
 
15179
      ;;
 
15180
    motorola)
 
15181
      need_lib_prefix=no
 
15182
      need_version=no
 
15183
      shlibpath_overrides_runpath=no
 
15184
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15185
      ;;
 
15186
  esac
 
15187
  ;;
 
15188
 
 
15189
sysv4*MP*)
 
15190
  if test -d /usr/nec ;then
 
15191
    version_type=linux
 
15192
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15193
    soname_spec='$libname${shared_ext}.$major'
 
15194
    shlibpath_var=LD_LIBRARY_PATH
 
15195
  fi
 
15196
  ;;
 
15197
 
 
15198
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15199
  version_type=freebsd-elf
 
15200
  need_lib_prefix=no
 
15201
  need_version=no
 
15202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15203
  soname_spec='${libname}${release}${shared_ext}$major'
 
15204
  shlibpath_var=LD_LIBRARY_PATH
 
15205
  hardcode_into_libs=yes
 
15206
  if test "$with_gnu_ld" = yes; then
 
15207
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15208
    shlibpath_overrides_runpath=no
 
15209
  else
 
15210
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15211
    shlibpath_overrides_runpath=yes
 
15212
    case $host_os in
 
15213
      sco3.2v5*)
 
15214
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15215
        ;;
 
15216
    esac
 
15217
  fi
 
15218
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15219
  ;;
 
15220
 
 
15221
uts4*)
 
15222
  version_type=linux
 
15223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15224
  soname_spec='${libname}${release}${shared_ext}$major'
 
15225
  shlibpath_var=LD_LIBRARY_PATH
 
15226
  ;;
 
15227
 
 
15228
*)
 
15229
  dynamic_linker=no
 
15230
  ;;
 
15231
esac
 
15232
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15233
echo "${ECHO_T}$dynamic_linker" >&6
 
15234
test "$dynamic_linker" = no && can_build_shared=no
 
15235
 
 
15236
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15237
if test "$GCC" = yes; then
 
15238
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15239
fi
 
15240
 
 
15241
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15242
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15243
hardcode_action_F77=
 
15244
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15245
   test -n "$runpath_var_F77" || \
 
15246
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15247
 
 
15248
  # We can hardcode non-existant directories.
 
15249
  if test "$hardcode_direct_F77" != no &&
 
15250
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15251
     # have to relink, otherwise we might link with an installed library
 
15252
     # when we should be linking with a yet-to-be-installed one
 
15253
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15254
     test "$hardcode_minus_L_F77" != no; then
 
15255
    # Linking always hardcodes the temporary library directory.
 
15256
    hardcode_action_F77=relink
 
15257
  else
 
15258
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15259
    hardcode_action_F77=immediate
 
15260
  fi
 
15261
else
 
15262
  # We cannot hardcode anything, or else we can only hardcode existing
 
15263
  # directories.
 
15264
  hardcode_action_F77=unsupported
 
15265
fi
 
15266
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15267
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15268
 
 
15269
if test "$hardcode_action_F77" = relink; then
 
15270
  # Fast installation is not supported
 
15271
  enable_fast_install=no
 
15272
elif test "$shlibpath_overrides_runpath" = yes ||
 
15273
     test "$enable_shared" = no; then
 
15274
  # Fast installation is not necessary
 
15275
  enable_fast_install=needless
 
15276
fi
 
15277
 
 
15278
 
 
15279
# The else clause should only fire when bootstrapping the
 
15280
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15281
# with your package, and you will get complaints that there are
 
15282
# no rules to generate ltmain.sh.
 
15283
if test -f "$ltmain"; then
 
15284
  # See if we are running on zsh, and set the options which allow our commands through
 
15285
  # without removal of \ escapes.
 
15286
  if test -n "${ZSH_VERSION+set}" ; then
 
15287
    setopt NO_GLOB_SUBST
 
15288
  fi
 
15289
  # Now quote all the things that may contain metacharacters while being
 
15290
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15291
  # variables and quote the copies for generation of the libtool script.
 
15292
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15293
    SED SHELL STRIP \
 
15294
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15295
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15296
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15297
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15298
    lt_cv_sys_global_symbol_to_c_name_address \
 
15299
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15300
    old_postinstall_cmds old_postuninstall_cmds \
 
15301
    compiler_F77 \
 
15302
    CC_F77 \
 
15303
    LD_F77 \
 
15304
    lt_prog_compiler_wl_F77 \
 
15305
    lt_prog_compiler_pic_F77 \
 
15306
    lt_prog_compiler_static_F77 \
 
15307
    lt_prog_compiler_no_builtin_flag_F77 \
 
15308
    export_dynamic_flag_spec_F77 \
 
15309
    thread_safe_flag_spec_F77 \
 
15310
    whole_archive_flag_spec_F77 \
 
15311
    enable_shared_with_static_runtimes_F77 \
 
15312
    old_archive_cmds_F77 \
 
15313
    old_archive_from_new_cmds_F77 \
 
15314
    predep_objects_F77 \
 
15315
    postdep_objects_F77 \
 
15316
    predeps_F77 \
 
15317
    postdeps_F77 \
 
15318
    compiler_lib_search_path_F77 \
 
15319
    archive_cmds_F77 \
 
15320
    archive_expsym_cmds_F77 \
 
15321
    postinstall_cmds_F77 \
 
15322
    postuninstall_cmds_F77 \
 
15323
    old_archive_from_expsyms_cmds_F77 \
 
15324
    allow_undefined_flag_F77 \
 
15325
    no_undefined_flag_F77 \
 
15326
    export_symbols_cmds_F77 \
 
15327
    hardcode_libdir_flag_spec_F77 \
 
15328
    hardcode_libdir_flag_spec_ld_F77 \
 
15329
    hardcode_libdir_separator_F77 \
 
15330
    hardcode_automatic_F77 \
 
15331
    module_cmds_F77 \
 
15332
    module_expsym_cmds_F77 \
 
15333
    lt_cv_prog_compiler_c_o_F77 \
 
15334
    exclude_expsyms_F77 \
 
15335
    include_expsyms_F77; do
 
15336
 
 
15337
    case $var in
 
15338
    old_archive_cmds_F77 | \
 
15339
    old_archive_from_new_cmds_F77 | \
 
15340
    archive_cmds_F77 | \
 
15341
    archive_expsym_cmds_F77 | \
 
15342
    module_cmds_F77 | \
 
15343
    module_expsym_cmds_F77 | \
 
15344
    old_archive_from_expsyms_cmds_F77 | \
 
15345
    export_symbols_cmds_F77 | \
 
15346
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15347
    postinstall_cmds | postuninstall_cmds | \
 
15348
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15349
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15350
      # Double-quote double-evaled strings.
 
15351
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15352
      ;;
 
15353
    *)
 
15354
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15355
      ;;
 
15356
    esac
 
15357
  done
 
15358
 
 
15359
  case $lt_echo in
 
15360
  *'\$0 --fallback-echo"')
 
15361
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15362
    ;;
 
15363
  esac
 
15364
 
 
15365
cfgfile="$ofile"
 
15366
 
 
15367
  cat <<__EOF__ >> "$cfgfile"
 
15368
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15369
 
 
15370
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15371
 
 
15372
# Shell to use when invoking shell scripts.
 
15373
SHELL=$lt_SHELL
 
15374
 
 
15375
# Whether or not to build shared libraries.
 
15376
build_libtool_libs=$enable_shared
 
15377
 
 
15378
# Whether or not to build static libraries.
 
15379
build_old_libs=$enable_static
 
15380
 
 
15381
# Whether or not to add -lc for building shared libraries.
 
15382
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15383
 
 
15384
# Whether or not to disallow shared libs when runtime libs are static
 
15385
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15386
 
 
15387
# Whether or not to optimize for fast installation.
 
15388
fast_install=$enable_fast_install
 
15389
 
 
15390
# The host system.
 
15391
host_alias=$host_alias
 
15392
host=$host
 
15393
host_os=$host_os
 
15394
 
 
15395
# The build system.
 
15396
build_alias=$build_alias
 
15397
build=$build
 
15398
build_os=$build_os
 
15399
 
 
15400
# An echo program that does not interpret backslashes.
 
15401
echo=$lt_echo
 
15402
 
 
15403
# The archiver.
 
15404
AR=$lt_AR
 
15405
AR_FLAGS=$lt_AR_FLAGS
 
15406
 
 
15407
# A C compiler.
 
15408
LTCC=$lt_LTCC
 
15409
 
 
15410
# LTCC compiler flags.
 
15411
LTCFLAGS=$lt_LTCFLAGS
 
15412
 
 
15413
# A language-specific compiler.
 
15414
CC=$lt_compiler_F77
 
15415
 
 
15416
# Is the compiler the GNU C compiler?
 
15417
with_gcc=$GCC_F77
 
15418
 
 
15419
# An ERE matcher.
 
15420
EGREP=$lt_EGREP
 
15421
 
 
15422
# The linker used to build libraries.
 
15423
LD=$lt_LD_F77
 
15424
 
 
15425
# Whether we need hard or soft links.
 
15426
LN_S=$lt_LN_S
 
15427
 
 
15428
# A BSD-compatible nm program.
 
15429
NM=$lt_NM
 
15430
 
 
15431
# A symbol stripping program
 
15432
STRIP=$lt_STRIP
 
15433
 
 
15434
# Used to examine libraries when file_magic_cmd begins "file"
 
15435
MAGIC_CMD=$MAGIC_CMD
 
15436
 
 
15437
# Used on cygwin: DLL creation program.
 
15438
DLLTOOL="$DLLTOOL"
 
15439
 
 
15440
# Used on cygwin: object dumper.
 
15441
OBJDUMP="$OBJDUMP"
 
15442
 
 
15443
# Used on cygwin: assembler.
 
15444
AS="$AS"
 
15445
 
 
15446
# The name of the directory that contains temporary libtool files.
 
15447
objdir=$objdir
 
15448
 
 
15449
# How to create reloadable object files.
 
15450
reload_flag=$lt_reload_flag
 
15451
reload_cmds=$lt_reload_cmds
 
15452
 
 
15453
# How to pass a linker flag through the compiler.
 
15454
wl=$lt_lt_prog_compiler_wl_F77
 
15455
 
 
15456
# Object file suffix (normally "o").
 
15457
objext="$ac_objext"
 
15458
 
 
15459
# Old archive suffix (normally "a").
 
15460
libext="$libext"
 
15461
 
 
15462
# Shared library suffix (normally ".so").
 
15463
shrext_cmds='$shrext_cmds'
 
15464
 
 
15465
# Executable file suffix (normally "").
 
15466
exeext="$exeext"
 
15467
 
 
15468
# Additional compiler flags for building library objects.
 
15469
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15470
pic_mode=$pic_mode
 
15471
 
 
15472
# What is the maximum length of a command?
 
15473
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15474
 
 
15475
# Does compiler simultaneously support -c and -o options?
 
15476
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15477
 
 
15478
# Must we lock files when doing compilation?
 
15479
need_locks=$lt_need_locks
 
15480
 
 
15481
# Do we need the lib prefix for modules?
 
15482
need_lib_prefix=$need_lib_prefix
 
15483
 
 
15484
# Do we need a version for libraries?
 
15485
need_version=$need_version
 
15486
 
 
15487
# Whether dlopen is supported.
 
15488
dlopen_support=$enable_dlopen
 
15489
 
 
15490
# Whether dlopen of programs is supported.
 
15491
dlopen_self=$enable_dlopen_self
 
15492
 
 
15493
# Whether dlopen of statically linked programs is supported.
 
15494
dlopen_self_static=$enable_dlopen_self_static
 
15495
 
 
15496
# Compiler flag to prevent dynamic linking.
 
15497
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15498
 
 
15499
# Compiler flag to turn off builtin functions.
 
15500
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15501
 
 
15502
# Compiler flag to allow reflexive dlopens.
 
15503
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15504
 
 
15505
# Compiler flag to generate shared objects directly from archives.
 
15506
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15507
 
 
15508
# Compiler flag to generate thread-safe objects.
 
15509
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15510
 
 
15511
# Library versioning type.
 
15512
version_type=$version_type
 
15513
 
 
15514
# Format of library name prefix.
 
15515
libname_spec=$lt_libname_spec
 
15516
 
 
15517
# List of archive names.  First name is the real one, the rest are links.
 
15518
# The last name is the one that the linker finds with -lNAME.
 
15519
library_names_spec=$lt_library_names_spec
 
15520
 
 
15521
# The coded name of the library, if different from the real name.
 
15522
soname_spec=$lt_soname_spec
 
15523
 
 
15524
# Commands used to build and install an old-style archive.
 
15525
RANLIB=$lt_RANLIB
 
15526
old_archive_cmds=$lt_old_archive_cmds_F77
 
15527
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15528
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15529
 
 
15530
# Create an old-style archive from a shared archive.
 
15531
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15532
 
 
15533
# Create a temporary old-style archive to link instead of a shared archive.
 
15534
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15535
 
 
15536
# Commands used to build and install a shared archive.
 
15537
archive_cmds=$lt_archive_cmds_F77
 
15538
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15539
postinstall_cmds=$lt_postinstall_cmds
 
15540
postuninstall_cmds=$lt_postuninstall_cmds
 
15541
 
 
15542
# Commands used to build a loadable module (assumed same as above if empty)
 
15543
module_cmds=$lt_module_cmds_F77
 
15544
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15545
 
 
15546
# Commands to strip libraries.
 
15547
old_striplib=$lt_old_striplib
 
15548
striplib=$lt_striplib
 
15549
 
 
15550
# Dependencies to place before the objects being linked to create a
 
15551
# shared library.
 
15552
predep_objects=$lt_predep_objects_F77
 
15553
 
 
15554
# Dependencies to place after the objects being linked to create a
 
15555
# shared library.
 
15556
postdep_objects=$lt_postdep_objects_F77
 
15557
 
 
15558
# Dependencies to place before the objects being linked to create a
 
15559
# shared library.
 
15560
predeps=$lt_predeps_F77
 
15561
 
 
15562
# Dependencies to place after the objects being linked to create a
 
15563
# shared library.
 
15564
postdeps=$lt_postdeps_F77
 
15565
 
 
15566
# The library search path used internally by the compiler when linking
 
15567
# a shared library.
 
15568
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15569
 
 
15570
# Method to check whether dependent libraries are shared objects.
 
15571
deplibs_check_method=$lt_deplibs_check_method
 
15572
 
 
15573
# Command to use when deplibs_check_method == file_magic.
 
15574
file_magic_cmd=$lt_file_magic_cmd
 
15575
 
 
15576
# Flag that allows shared libraries with undefined symbols to be built.
 
15577
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15578
 
 
15579
# Flag that forces no undefined symbols.
 
15580
no_undefined_flag=$lt_no_undefined_flag_F77
 
15581
 
 
15582
# Commands used to finish a libtool library installation in a directory.
 
15583
finish_cmds=$lt_finish_cmds
 
15584
 
 
15585
# Same as above, but a single script fragment to be evaled but not shown.
 
15586
finish_eval=$lt_finish_eval
 
15587
 
 
15588
# Take the output of nm and produce a listing of raw symbols and C names.
 
15589
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15590
 
 
15591
# Transform the output of nm in a proper C declaration
 
15592
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15593
 
 
15594
# Transform the output of nm in a C name address pair
 
15595
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15596
 
 
15597
# This is the shared library runtime path variable.
 
15598
runpath_var=$runpath_var
 
15599
 
 
15600
# This is the shared library path variable.
 
15601
shlibpath_var=$shlibpath_var
 
15602
 
 
15603
# Is shlibpath searched before the hard-coded library search path?
 
15604
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15605
 
 
15606
# How to hardcode a shared library path into an executable.
 
15607
hardcode_action=$hardcode_action_F77
 
15608
 
 
15609
# Whether we should hardcode library paths into libraries.
 
15610
hardcode_into_libs=$hardcode_into_libs
 
15611
 
 
15612
# Flag to hardcode \$libdir into a binary during linking.
 
15613
# This must work even if \$libdir does not exist.
 
15614
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15615
 
 
15616
# If ld is used when linking, flag to hardcode \$libdir into
 
15617
# a binary during linking. This must work even if \$libdir does
 
15618
# not exist.
 
15619
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15620
 
 
15621
# Whether we need a single -rpath flag with a separated argument.
 
15622
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15623
 
 
15624
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15625
# resulting binary.
 
15626
hardcode_direct=$hardcode_direct_F77
 
15627
 
 
15628
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15629
# resulting binary.
 
15630
hardcode_minus_L=$hardcode_minus_L_F77
 
15631
 
 
15632
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15633
# the resulting binary.
 
15634
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15635
 
 
15636
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15637
# and all subsequent libraries and executables linked against it.
 
15638
hardcode_automatic=$hardcode_automatic_F77
 
15639
 
 
15640
# Variables whose values should be saved in libtool wrapper scripts and
 
15641
# restored at relink time.
 
15642
variables_saved_for_relink="$variables_saved_for_relink"
 
15643
 
 
15644
# Whether libtool must link a program against all its dependency libraries.
 
15645
link_all_deplibs=$link_all_deplibs_F77
 
15646
 
 
15647
# Compile-time system search path for libraries
 
15648
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15649
 
 
15650
# Run-time system search path for libraries
 
15651
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15652
 
 
15653
# Fix the shell variable \$srcfile for the compiler.
 
15654
fix_srcfile_path="$fix_srcfile_path_F77"
 
15655
 
 
15656
# Set to yes if exported symbols are required.
 
15657
always_export_symbols=$always_export_symbols_F77
 
15658
 
 
15659
# The commands to list exported symbols.
 
15660
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15661
 
 
15662
# The commands to extract the exported symbol list from a shared archive.
 
15663
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15664
 
 
15665
# Symbols that should not be listed in the preloaded symbols.
 
15666
exclude_expsyms=$lt_exclude_expsyms_F77
 
15667
 
 
15668
# Symbols that must always be exported.
 
15669
include_expsyms=$lt_include_expsyms_F77
 
15670
 
 
15671
# ### END LIBTOOL TAG CONFIG: $tagname
 
15672
 
 
15673
__EOF__
 
15674
 
 
15675
 
 
15676
else
 
15677
  # If there is no Makefile yet, we rely on a make rule to execute
 
15678
  # `config.status --recheck' to rerun these tests and create the
 
15679
  # libtool script then.
 
15680
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15681
  if test -f "$ltmain_in"; then
 
15682
    test -f Makefile && make "$ltmain"
 
15683
  fi
 
15684
fi
 
15685
 
 
15686
 
 
15687
ac_ext=c
 
15688
ac_cpp='$CPP $CPPFLAGS'
 
15689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15692
 
 
15693
CC="$lt_save_CC"
 
15694
 
 
15695
        else
 
15696
          tagname=""
 
15697
        fi
 
15698
        ;;
 
15699
 
 
15700
      GCJ)
 
15701
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15702
 
 
15703
 
 
15704
 
 
15705
# Source file extension for Java test sources.
 
15706
ac_ext=java
 
15707
 
 
15708
# Object file extension for compiled Java test sources.
 
15709
objext=o
 
15710
objext_GCJ=$objext
 
15711
 
 
15712
# Code to be used in simple compile tests
 
15713
lt_simple_compile_test_code="class foo {}\n"
 
15714
 
 
15715
# Code to be used in simple link tests
 
15716
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15717
 
 
15718
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15719
 
 
15720
# If no C compiler was specified, use CC.
 
15721
LTCC=${LTCC-"$CC"}
 
15722
 
 
15723
# If no C compiler flags were specified, use CFLAGS.
 
15724
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15725
 
 
15726
# Allow CC to be a program name with arguments.
 
15727
compiler=$CC
 
15728
 
 
15729
 
 
15730
# save warnings/boilerplate of simple test code
 
15731
ac_outfile=conftest.$ac_objext
 
15732
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15733
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15734
_lt_compiler_boilerplate=`cat conftest.err`
 
15735
$rm conftest*
 
15736
 
 
15737
ac_outfile=conftest.$ac_objext
 
15738
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15739
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15740
_lt_linker_boilerplate=`cat conftest.err`
 
15741
$rm conftest*
 
15742
 
 
15743
 
 
15744
# Allow CC to be a program name with arguments.
 
15745
lt_save_CC="$CC"
 
15746
CC=${GCJ-"gcj"}
 
15747
compiler=$CC
 
15748
compiler_GCJ=$CC
 
15749
for cc_temp in $compiler""; do
 
15750
  case $cc_temp in
 
15751
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15752
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15753
    \-*) ;;
 
15754
    *) break;;
 
15755
  esac
 
15756
done
 
15757
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15758
 
 
15759
 
 
15760
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15761
archive_cmds_need_lc_GCJ=no
 
15762
 
 
15763
old_archive_cmds_GCJ=$old_archive_cmds
 
15764
 
 
15765
 
 
15766
lt_prog_compiler_no_builtin_flag_GCJ=
 
15767
 
 
15768
if test "$GCC" = yes; then
 
15769
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15770
 
 
15771
 
 
15772
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15773
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15774
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15776
else
 
15777
  lt_cv_prog_compiler_rtti_exceptions=no
 
15778
  ac_outfile=conftest.$ac_objext
 
15779
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15780
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15781
   # Insert the option either (1) after the last *FLAGS variable, or
 
15782
   # (2) before a word containing "conftest.", or (3) at the end.
 
15783
   # Note that $ac_compile itself does not contain backslashes and begins
 
15784
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15785
   # The option is referenced via a variable to avoid confusing sed.
 
15786
   lt_compile=`echo "$ac_compile" | $SED \
 
15787
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15788
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15789
   -e 's:$: $lt_compiler_flag:'`
 
15790
   (eval echo "\"\$as_me:15790: $lt_compile\"" >&5)
 
15791
   (eval "$lt_compile" 2>conftest.err)
 
15792
   ac_status=$?
 
15793
   cat conftest.err >&5
 
15794
   echo "$as_me:15794: \$? = $ac_status" >&5
 
15795
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15796
     # The compiler can only warn and ignore the option if not recognized
 
15797
     # So say no if there are warnings other than the usual output.
 
15798
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15799
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15800
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15801
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15802
     fi
 
15803
   fi
 
15804
   $rm conftest*
 
15805
 
 
15806
fi
 
15807
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15808
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15809
 
 
15810
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15811
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15812
else
 
15813
    :
 
15814
fi
 
15815
 
 
15816
fi
 
15817
 
 
15818
lt_prog_compiler_wl_GCJ=
 
15819
lt_prog_compiler_pic_GCJ=
 
15820
lt_prog_compiler_static_GCJ=
 
15821
 
 
15822
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15823
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15824
 
 
15825
  if test "$GCC" = yes; then
 
15826
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15827
    lt_prog_compiler_static_GCJ='-static'
 
15828
 
 
15829
    case $host_os in
 
15830
      aix*)
 
15831
      # All AIX code is PIC.
 
15832
      if test "$host_cpu" = ia64; then
 
15833
        # AIX 5 now supports IA64 processor
 
15834
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15835
      fi
 
15836
      ;;
 
15837
 
 
15838
    amigaos*)
 
15839
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15840
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15841
      # like `-m68040'.
 
15842
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15843
      ;;
 
15844
 
 
15845
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15846
      # PIC is the default for these OSes.
 
15847
      ;;
 
15848
 
 
15849
    mingw* | pw32* | os2*)
 
15850
      # This hack is so that the source file can tell whether it is being
 
15851
      # built for inclusion in a dll (and should export symbols for example).
 
15852
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15853
      ;;
 
15854
 
 
15855
    darwin* | rhapsody*)
 
15856
      # PIC is the default on this platform
 
15857
      # Common symbols not allowed in MH_DYLIB files
 
15858
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15859
      ;;
 
15860
 
 
15861
    interix3*)
 
15862
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
15863
      # Instead, we relocate shared libraries at runtime.
 
15864
      ;;
 
15865
 
 
15866
    msdosdjgpp*)
 
15867
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15868
      # on systems that don't support them.
 
15869
      lt_prog_compiler_can_build_shared_GCJ=no
 
15870
      enable_shared=no
 
15871
      ;;
 
15872
 
 
15873
    sysv4*MP*)
 
15874
      if test -d /usr/nec; then
 
15875
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15876
      fi
 
15877
      ;;
 
15878
 
 
15879
    hpux*)
 
15880
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15881
      # not for PA HP-UX.
 
15882
      case $host_cpu in
 
15883
      hppa*64*|ia64*)
 
15884
        # +Z the default
 
15885
        ;;
 
15886
      *)
 
15887
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15888
        ;;
 
15889
      esac
 
15890
      ;;
 
15891
 
 
15892
    *)
 
15893
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15894
      ;;
 
15895
    esac
 
15896
  else
 
15897
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15898
    case $host_os in
 
15899
    aix*)
 
15900
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15901
      if test "$host_cpu" = ia64; then
 
15902
        # AIX 5 now supports IA64 processor
 
15903
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15904
      else
 
15905
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15906
      fi
 
15907
      ;;
 
15908
      darwin*)
 
15909
        # PIC is the default on this platform
 
15910
        # Common symbols not allowed in MH_DYLIB files
 
15911
       case $cc_basename in
 
15912
         xlc*)
 
15913
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15914
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15915
         ;;
 
15916
       esac
 
15917
       ;;
 
15918
 
 
15919
    mingw* | pw32* | os2*)
 
15920
      # This hack is so that the source file can tell whether it is being
 
15921
      # built for inclusion in a dll (and should export symbols for example).
 
15922
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15923
      ;;
 
15924
 
 
15925
    hpux9* | hpux10* | hpux11*)
 
15926
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15927
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15928
      # not for PA HP-UX.
 
15929
      case $host_cpu in
 
15930
      hppa*64*|ia64*)
 
15931
        # +Z the default
 
15932
        ;;
 
15933
      *)
 
15934
        lt_prog_compiler_pic_GCJ='+Z'
 
15935
        ;;
 
15936
      esac
 
15937
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15938
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15939
      ;;
 
15940
 
 
15941
    irix5* | irix6* | nonstopux*)
 
15942
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15943
      # PIC (with -KPIC) is the default.
 
15944
      lt_prog_compiler_static_GCJ='-non_shared'
 
15945
      ;;
 
15946
 
 
15947
    newsos6)
 
15948
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15949
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15950
      ;;
 
15951
 
 
15952
    linux*)
 
15953
      case $cc_basename in
 
15954
      icc* | ecc*)
 
15955
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15956
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15957
        lt_prog_compiler_static_GCJ='-static'
 
15958
        ;;
 
15959
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15960
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15961
        # which looks to be a dead project)
 
15962
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15963
        lt_prog_compiler_pic_GCJ='-fpic'
 
15964
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15965
        ;;
 
15966
      ccc*)
 
15967
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15968
        # All Alpha code is PIC.
 
15969
        lt_prog_compiler_static_GCJ='-non_shared'
 
15970
        ;;
 
15971
      esac
 
15972
      ;;
 
15973
 
 
15974
    osf3* | osf4* | osf5*)
 
15975
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15976
      # All OSF/1 code is PIC.
 
15977
      lt_prog_compiler_static_GCJ='-non_shared'
 
15978
      ;;
 
15979
 
 
15980
    solaris*)
 
15981
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15982
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15983
      case $cc_basename in
 
15984
      f77* | f90* | f95*)
 
15985
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15986
      *)
 
15987
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15988
      esac
 
15989
      ;;
 
15990
 
 
15991
    sunos4*)
 
15992
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15993
      lt_prog_compiler_pic_GCJ='-PIC'
 
15994
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15995
      ;;
 
15996
 
 
15997
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
15998
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15999
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16000
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16001
      ;;
 
16002
 
 
16003
    sysv4*MP*)
 
16004
      if test -d /usr/nec ;then
 
16005
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16006
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16007
      fi
 
16008
      ;;
 
16009
 
 
16010
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16011
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16012
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16013
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16014
      ;;
 
16015
 
 
16016
    unicos*)
 
16017
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16018
      lt_prog_compiler_can_build_shared_GCJ=no
 
16019
      ;;
 
16020
 
 
16021
    uts4*)
 
16022
      lt_prog_compiler_pic_GCJ='-pic'
 
16023
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16024
      ;;
 
16025
 
 
16026
    *)
 
16027
      lt_prog_compiler_can_build_shared_GCJ=no
 
16028
      ;;
 
16029
    esac
 
16030
  fi
 
16031
 
 
16032
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16033
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16034
 
 
16035
#
 
16036
# Check to make sure the PIC flag actually works.
 
16037
#
 
16038
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16039
 
 
16040
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16041
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16042
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16044
else
 
16045
  lt_prog_compiler_pic_works_GCJ=no
 
16046
  ac_outfile=conftest.$ac_objext
 
16047
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16048
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16049
   # Insert the option either (1) after the last *FLAGS variable, or
 
16050
   # (2) before a word containing "conftest.", or (3) at the end.
 
16051
   # Note that $ac_compile itself does not contain backslashes and begins
 
16052
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16053
   # The option is referenced via a variable to avoid confusing sed.
 
16054
   lt_compile=`echo "$ac_compile" | $SED \
 
16055
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16056
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16057
   -e 's:$: $lt_compiler_flag:'`
 
16058
   (eval echo "\"\$as_me:16058: $lt_compile\"" >&5)
 
16059
   (eval "$lt_compile" 2>conftest.err)
 
16060
   ac_status=$?
 
16061
   cat conftest.err >&5
 
16062
   echo "$as_me:16062: \$? = $ac_status" >&5
 
16063
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16064
     # The compiler can only warn and ignore the option if not recognized
 
16065
     # So say no if there are warnings other than the usual output.
 
16066
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16067
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16068
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16069
       lt_prog_compiler_pic_works_GCJ=yes
 
16070
     fi
 
16071
   fi
 
16072
   $rm conftest*
 
16073
 
 
16074
fi
 
16075
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16076
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16077
 
 
16078
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16079
    case $lt_prog_compiler_pic_GCJ in
 
16080
     "" | " "*) ;;
 
16081
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16082
     esac
 
16083
else
 
16084
    lt_prog_compiler_pic_GCJ=
 
16085
     lt_prog_compiler_can_build_shared_GCJ=no
 
16086
fi
 
16087
 
 
16088
fi
 
16089
case $host_os in
 
16090
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16091
  *djgpp*)
 
16092
    lt_prog_compiler_pic_GCJ=
 
16093
    ;;
 
16094
  *)
 
16095
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16096
    ;;
 
16097
esac
 
16098
 
 
16099
#
 
16100
# Check to make sure the static flag actually works.
 
16101
#
 
16102
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16103
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16104
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
16105
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16107
else
 
16108
  lt_prog_compiler_static_works_GCJ=no
 
16109
   save_LDFLAGS="$LDFLAGS"
 
16110
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16111
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16112
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16113
     # The linker can only warn and ignore the option if not recognized
 
16114
     # So say no if there are warnings
 
16115
     if test -s conftest.err; then
 
16116
       # Append any errors to the config.log.
 
16117
       cat conftest.err 1>&5
 
16118
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16119
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16120
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16121
         lt_prog_compiler_static_works_GCJ=yes
 
16122
       fi
 
16123
     else
 
16124
       lt_prog_compiler_static_works_GCJ=yes
 
16125
     fi
 
16126
   fi
 
16127
   $rm conftest*
 
16128
   LDFLAGS="$save_LDFLAGS"
 
16129
 
 
16130
fi
 
16131
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16132
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
16133
 
 
16134
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16135
    :
 
16136
else
 
16137
    lt_prog_compiler_static_GCJ=
 
16138
fi
 
16139
 
 
16140
 
 
16141
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16142
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16143
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16145
else
 
16146
  lt_cv_prog_compiler_c_o_GCJ=no
 
16147
   $rm -r conftest 2>/dev/null
 
16148
   mkdir conftest
 
16149
   cd conftest
 
16150
   mkdir out
 
16151
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16152
 
 
16153
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16154
   # Insert the option either (1) after the last *FLAGS variable, or
 
16155
   # (2) before a word containing "conftest.", or (3) at the end.
 
16156
   # Note that $ac_compile itself does not contain backslashes and begins
 
16157
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16158
   lt_compile=`echo "$ac_compile" | $SED \
 
16159
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16160
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16161
   -e 's:$: $lt_compiler_flag:'`
 
16162
   (eval echo "\"\$as_me:16162: $lt_compile\"" >&5)
 
16163
   (eval "$lt_compile" 2>out/conftest.err)
 
16164
   ac_status=$?
 
16165
   cat out/conftest.err >&5
 
16166
   echo "$as_me:16166: \$? = $ac_status" >&5
 
16167
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16168
   then
 
16169
     # The compiler can only warn and ignore the option if not recognized
 
16170
     # So say no if there are warnings
 
16171
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16172
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16173
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16174
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16175
     fi
 
16176
   fi
 
16177
   chmod u+w . 2>&5
 
16178
   $rm conftest*
 
16179
   # SGI C++ compiler will create directory out/ii_files/ for
 
16180
   # template instantiation
 
16181
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16182
   $rm out/* && rmdir out
 
16183
   cd ..
 
16184
   rmdir conftest
 
16185
   $rm conftest*
 
16186
 
 
16187
fi
 
16188
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16189
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16190
 
 
16191
 
 
16192
hard_links="nottested"
 
16193
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16194
  # do not overwrite the value of need_locks provided by the user
 
16195
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16196
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16197
  hard_links=yes
 
16198
  $rm conftest*
 
16199
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16200
  touch conftest.a
 
16201
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16202
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16203
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16204
echo "${ECHO_T}$hard_links" >&6
 
16205
  if test "$hard_links" = no; then
 
16206
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16207
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16208
    need_locks=warn
 
16209
  fi
 
16210
else
 
16211
  need_locks=no
 
16212
fi
 
16213
 
 
16214
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16215
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16216
 
 
16217
  runpath_var=
 
16218
  allow_undefined_flag_GCJ=
 
16219
  enable_shared_with_static_runtimes_GCJ=no
 
16220
  archive_cmds_GCJ=
 
16221
  archive_expsym_cmds_GCJ=
 
16222
  old_archive_From_new_cmds_GCJ=
 
16223
  old_archive_from_expsyms_cmds_GCJ=
 
16224
  export_dynamic_flag_spec_GCJ=
 
16225
  whole_archive_flag_spec_GCJ=
 
16226
  thread_safe_flag_spec_GCJ=
 
16227
  hardcode_libdir_flag_spec_GCJ=
 
16228
  hardcode_libdir_flag_spec_ld_GCJ=
 
16229
  hardcode_libdir_separator_GCJ=
 
16230
  hardcode_direct_GCJ=no
 
16231
  hardcode_minus_L_GCJ=no
 
16232
  hardcode_shlibpath_var_GCJ=unsupported
 
16233
  link_all_deplibs_GCJ=unknown
 
16234
  hardcode_automatic_GCJ=no
 
16235
  module_cmds_GCJ=
 
16236
  module_expsym_cmds_GCJ=
 
16237
  always_export_symbols_GCJ=no
 
16238
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16239
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16240
  # included in the symbol list
 
16241
  include_expsyms_GCJ=
 
16242
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16243
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16244
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16245
  # as well as any symbol that contains `d'.
 
16246
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16247
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16248
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16249
  # the symbol is explicitly referenced.  Since portable code cannot
 
16250
  # rely on this symbol name, it's probably fine to never include it in
 
16251
  # preloaded symbol tables.
 
16252
  extract_expsyms_cmds=
 
16253
  # Just being paranoid about ensuring that cc_basename is set.
 
16254
  for cc_temp in $compiler""; do
 
16255
  case $cc_temp in
 
16256
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16257
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16258
    \-*) ;;
 
16259
    *) break;;
 
16260
  esac
 
16261
done
 
16262
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16263
 
 
16264
  case $host_os in
 
16265
  cygwin* | mingw* | pw32*)
 
16266
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16267
    # When not using gcc, we currently assume that we are using
 
16268
    # Microsoft Visual C++.
 
16269
    if test "$GCC" != yes; then
 
16270
      with_gnu_ld=no
 
16271
    fi
 
16272
    ;;
 
16273
  interix*)
 
16274
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16275
    with_gnu_ld=yes
 
16276
    ;;
 
16277
  openbsd*)
 
16278
    with_gnu_ld=no
 
16279
    ;;
 
16280
  esac
 
16281
 
 
16282
  ld_shlibs_GCJ=yes
 
16283
  if test "$with_gnu_ld" = yes; then
 
16284
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16285
    wlarc='${wl}'
 
16286
 
 
16287
    # Set some defaults for GNU ld with shared library support. These
 
16288
    # are reset later if shared libraries are not supported. Putting them
 
16289
    # here allows them to be overridden if necessary.
 
16290
    runpath_var=LD_RUN_PATH
 
16291
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16292
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16293
    # ancient GNU ld didn't support --whole-archive et. al.
 
16294
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16295
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16296
      else
 
16297
        whole_archive_flag_spec_GCJ=
 
16298
    fi
 
16299
    supports_anon_versioning=no
 
16300
    case `$LD -v 2>/dev/null` in
 
16301
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16302
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16303
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16304
      *\ 2.11.*) ;; # other 2.11 versions
 
16305
      *) supports_anon_versioning=yes ;;
 
16306
    esac
 
16307
 
 
16308
    # See if GNU ld supports shared libraries.
 
16309
    case $host_os in
 
16310
    aix3* | aix4* | aix5*)
 
16311
      # On AIX/PPC, the GNU linker is very broken
 
16312
      if test "$host_cpu" != ia64; then
 
16313
        ld_shlibs_GCJ=no
 
16314
        cat <<EOF 1>&2
 
16315
 
 
16316
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16317
*** to be unable to reliably create shared libraries on AIX.
 
16318
*** Therefore, libtool is disabling shared libraries support.  If you
 
16319
*** really care for shared libraries, you may want to modify your PATH
 
16320
*** so that a non-GNU linker is found, and then restart.
 
16321
 
 
16322
EOF
 
16323
      fi
 
16324
      ;;
 
16325
 
 
16326
    amigaos*)
 
16327
      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)'
 
16328
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16329
      hardcode_minus_L_GCJ=yes
 
16330
 
 
16331
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16332
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16333
      # to version 4, is to share data among multiple programs linked
 
16334
      # with the same dynamic library.  Since this doesn't match the
 
16335
      # behavior of shared libraries on other platforms, we can't use
 
16336
      # them.
 
16337
      ld_shlibs_GCJ=no
 
16338
      ;;
 
16339
 
 
16340
    beos*)
 
16341
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16342
        allow_undefined_flag_GCJ=unsupported
 
16343
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16344
        # support --undefined.  This deserves some investigation.  FIXME
 
16345
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16346
      else
 
16347
        ld_shlibs_GCJ=no
 
16348
      fi
 
16349
      ;;
 
16350
 
 
16351
    cygwin* | mingw* | pw32*)
 
16352
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16353
      # as there is no search path for DLLs.
 
16354
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16355
      allow_undefined_flag_GCJ=unsupported
 
16356
      always_export_symbols_GCJ=no
 
16357
      enable_shared_with_static_runtimes_GCJ=yes
 
16358
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16359
 
 
16360
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16361
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16362
        # If the export-symbols file already is a .def file (1st line
 
16363
        # is EXPORTS), use it as is; otherwise, prepend...
 
16364
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16365
          cp $export_symbols $output_objdir/$soname.def;
 
16366
        else
 
16367
          echo EXPORTS > $output_objdir/$soname.def;
 
16368
          cat $export_symbols >> $output_objdir/$soname.def;
 
16369
        fi~
 
16370
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16371
      else
 
16372
        ld_shlibs_GCJ=no
 
16373
      fi
 
16374
      ;;
 
16375
 
 
16376
    interix3*)
 
16377
      hardcode_direct_GCJ=no
 
16378
      hardcode_shlibpath_var_GCJ=no
 
16379
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16380
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16381
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16382
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16383
      # default) and relocated if they conflict, which is a slow very memory
 
16384
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16385
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16386
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16387
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16388
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16389
      ;;
 
16390
 
 
16391
    linux*)
 
16392
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16393
        tmp_addflag=
 
16394
        case $cc_basename,$host_cpu in
 
16395
        pgcc*)                          # Portland Group C compiler
 
16396
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16397
          tmp_addflag=' $pic_flag'
 
16398
          ;;
 
16399
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16400
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16401
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16402
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16403
          tmp_addflag=' -i_dynamic' ;;
 
16404
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16405
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16406
        ifc* | ifort*)                  # Intel Fortran compiler
 
16407
          tmp_addflag=' -nofor_main' ;;
 
16408
        esac
 
16409
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16410
 
 
16411
        if test $supports_anon_versioning = yes; then
 
16412
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16413
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16414
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16415
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16416
        fi
 
16417
        link_all_deplibs_GCJ=no
 
16418
      else
 
16419
        ld_shlibs_GCJ=no
 
16420
      fi
 
16421
      ;;
 
16422
 
 
16423
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16424
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16425
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16426
        wlarc=
 
16427
      else
 
16428
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16429
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16430
      fi
 
16431
      ;;
 
16432
 
 
16433
    solaris*)
 
16434
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16435
        ld_shlibs_GCJ=no
 
16436
        cat <<EOF 1>&2
 
16437
 
 
16438
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16439
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16440
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16441
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16442
*** your PATH or compiler configuration so that the native linker is
 
16443
*** used, and then restart.
 
16444
 
 
16445
EOF
 
16446
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16447
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16448
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16449
      else
 
16450
        ld_shlibs_GCJ=no
 
16451
      fi
 
16452
      ;;
 
16453
 
 
16454
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16455
      case `$LD -v 2>&1` in
 
16456
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16457
        ld_shlibs_GCJ=no
 
16458
        cat <<_LT_EOF 1>&2
 
16459
 
 
16460
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16461
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16462
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16463
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16464
*** your PATH or compiler configuration so that the native linker is
 
16465
*** used, and then restart.
 
16466
 
 
16467
_LT_EOF
 
16468
        ;;
 
16469
        *)
 
16470
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16471
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16472
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16473
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16474
          else
 
16475
            ld_shlibs_GCJ=no
 
16476
          fi
 
16477
        ;;
 
16478
      esac
 
16479
      ;;
 
16480
 
 
16481
    sunos4*)
 
16482
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16483
      wlarc=
 
16484
      hardcode_direct_GCJ=yes
 
16485
      hardcode_shlibpath_var_GCJ=no
 
16486
      ;;
 
16487
 
 
16488
    *)
 
16489
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16490
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16491
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16492
      else
 
16493
        ld_shlibs_GCJ=no
 
16494
      fi
 
16495
      ;;
 
16496
    esac
 
16497
 
 
16498
    if test "$ld_shlibs_GCJ" = no; then
 
16499
      runpath_var=
 
16500
      hardcode_libdir_flag_spec_GCJ=
 
16501
      export_dynamic_flag_spec_GCJ=
 
16502
      whole_archive_flag_spec_GCJ=
 
16503
    fi
 
16504
  else
 
16505
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16506
    case $host_os in
 
16507
    aix3*)
 
16508
      allow_undefined_flag_GCJ=unsupported
 
16509
      always_export_symbols_GCJ=yes
 
16510
      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'
 
16511
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16512
      # are no directories specified by -L.
 
16513
      hardcode_minus_L_GCJ=yes
 
16514
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
16515
        # Neither direct hardcoding nor static linking is supported with a
 
16516
        # broken collect2.
 
16517
        hardcode_direct_GCJ=unsupported
 
16518
      fi
 
16519
      ;;
 
16520
 
 
16521
    aix4* | aix5*)
 
16522
      if test "$host_cpu" = ia64; then
 
16523
        # On IA64, the linker does run time linking by default, so we don't
 
16524
        # have to do anything special.
 
16525
        aix_use_runtimelinking=no
 
16526
        exp_sym_flag='-Bexport'
 
16527
        no_entry_flag=""
 
16528
      else
 
16529
        # If we're using GNU nm, then we don't want the "-C" option.
 
16530
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16531
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16532
          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'
 
16533
        else
 
16534
          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'
 
16535
        fi
 
16536
        aix_use_runtimelinking=no
 
16537
 
 
16538
        # Test if we are trying to use run time linking or normal
 
16539
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16540
        # need to do runtime linking.
 
16541
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16542
          for ld_flag in $LDFLAGS; do
 
16543
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16544
            aix_use_runtimelinking=yes
 
16545
            break
 
16546
          fi
 
16547
          done
 
16548
          ;;
 
16549
        esac
 
16550
 
 
16551
        exp_sym_flag='-bexport'
 
16552
        no_entry_flag='-bnoentry'
 
16553
      fi
 
16554
 
 
16555
      # When large executables or shared objects are built, AIX ld can
 
16556
      # have problems creating the table of contents.  If linking a library
 
16557
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16558
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16559
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16560
 
 
16561
      archive_cmds_GCJ=''
 
16562
      hardcode_direct_GCJ=yes
 
16563
      hardcode_libdir_separator_GCJ=':'
 
16564
      link_all_deplibs_GCJ=yes
 
16565
 
 
16566
      if test "$GCC" = yes; then
 
16567
        case $host_os in aix4.[012]|aix4.[012].*)
 
16568
        # We only want to do this on AIX 4.2 and lower, the check
 
16569
        # below for broken collect2 doesn't work under 4.3+
 
16570
          collect2name=`${CC} -print-prog-name=collect2`
 
16571
          if test -f "$collect2name" && \
 
16572
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16573
          then
 
16574
          # We have reworked collect2
 
16575
          hardcode_direct_GCJ=yes
 
16576
          else
 
16577
          # We have old collect2
 
16578
          hardcode_direct_GCJ=unsupported
 
16579
          # It fails to find uninstalled libraries when the uninstalled
 
16580
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16581
          # to unsupported forces relinking
 
16582
          hardcode_minus_L_GCJ=yes
 
16583
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16584
          hardcode_libdir_separator_GCJ=
 
16585
          fi
 
16586
          ;;
 
16587
        esac
 
16588
        shared_flag='-shared'
 
16589
        if test "$aix_use_runtimelinking" = yes; then
 
16590
          shared_flag="$shared_flag "'${wl}-G'
 
16591
        fi
 
16592
      else
 
16593
        # not using gcc
 
16594
        if test "$host_cpu" = ia64; then
 
16595
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16596
        # chokes on -Wl,-G. The following line is correct:
 
16597
          shared_flag='-G'
 
16598
        else
 
16599
          if test "$aix_use_runtimelinking" = yes; then
 
16600
            shared_flag='${wl}-G'
 
16601
          else
 
16602
            shared_flag='${wl}-bM:SRE'
 
16603
          fi
 
16604
        fi
 
16605
      fi
 
16606
 
 
16607
      # It seems that -bexpall does not export symbols beginning with
 
16608
      # underscore (_), so it is better to generate a list of symbols to export.
 
16609
      always_export_symbols_GCJ=yes
 
16610
      if test "$aix_use_runtimelinking" = yes; then
 
16611
        # Warning - without using the other runtime loading flags (-brtl),
 
16612
        # -berok will link without error, but may produce a broken library.
 
16613
        allow_undefined_flag_GCJ='-berok'
 
16614
       # Determine the default libpath from the value encoded in an empty executable.
 
16615
       cat >conftest.$ac_ext <<_ACEOF
 
16616
/* confdefs.h.  */
 
16617
_ACEOF
 
16618
cat confdefs.h >>conftest.$ac_ext
 
16619
cat >>conftest.$ac_ext <<_ACEOF
 
16620
/* end confdefs.h.  */
 
16621
 
 
16622
int
 
16623
main ()
 
16624
{
 
16625
 
 
16626
  ;
 
16627
  return 0;
 
16628
}
 
16629
_ACEOF
 
16630
rm -f conftest.$ac_objext conftest$ac_exeext
 
16631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16632
  (eval $ac_link) 2>conftest.er1
 
16633
  ac_status=$?
 
16634
  grep -v '^ *+' conftest.er1 >conftest.err
 
16635
  rm -f conftest.er1
 
16636
  cat conftest.err >&5
 
16637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16638
  (exit $ac_status); } &&
 
16639
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16641
  (eval $ac_try) 2>&5
 
16642
  ac_status=$?
 
16643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16644
  (exit $ac_status); }; } &&
 
16645
         { ac_try='test -s conftest$ac_exeext'
 
16646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16647
  (eval $ac_try) 2>&5
 
16648
  ac_status=$?
 
16649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16650
  (exit $ac_status); }; }; then
 
16651
 
 
16652
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16653
}'`
 
16654
# Check for a 64-bit object if we didn't find anything.
 
16655
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; }
 
16656
}'`; fi
 
16657
else
 
16658
  echo "$as_me: failed program was:" >&5
 
16659
sed 's/^/| /' conftest.$ac_ext >&5
 
16660
 
 
16661
fi
 
16662
rm -f conftest.err conftest.$ac_objext \
 
16663
      conftest$ac_exeext conftest.$ac_ext
 
16664
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16665
 
 
16666
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16667
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16668
       else
 
16669
        if test "$host_cpu" = ia64; then
 
16670
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16671
          allow_undefined_flag_GCJ="-z nodefs"
 
16672
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
16673
        else
 
16674
         # Determine the default libpath from the value encoded in an empty executable.
 
16675
         cat >conftest.$ac_ext <<_ACEOF
 
16676
/* confdefs.h.  */
 
16677
_ACEOF
 
16678
cat confdefs.h >>conftest.$ac_ext
 
16679
cat >>conftest.$ac_ext <<_ACEOF
 
16680
/* end confdefs.h.  */
 
16681
 
 
16682
int
 
16683
main ()
 
16684
{
 
16685
 
 
16686
  ;
 
16687
  return 0;
 
16688
}
 
16689
_ACEOF
 
16690
rm -f conftest.$ac_objext conftest$ac_exeext
 
16691
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16692
  (eval $ac_link) 2>conftest.er1
 
16693
  ac_status=$?
 
16694
  grep -v '^ *+' conftest.er1 >conftest.err
 
16695
  rm -f conftest.er1
 
16696
  cat conftest.err >&5
 
16697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16698
  (exit $ac_status); } &&
 
16699
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16701
  (eval $ac_try) 2>&5
 
16702
  ac_status=$?
 
16703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16704
  (exit $ac_status); }; } &&
 
16705
         { ac_try='test -s conftest$ac_exeext'
 
16706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16707
  (eval $ac_try) 2>&5
 
16708
  ac_status=$?
 
16709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16710
  (exit $ac_status); }; }; then
 
16711
 
 
16712
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16713
}'`
 
16714
# Check for a 64-bit object if we didn't find anything.
 
16715
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; }
 
16716
}'`; fi
 
16717
else
 
16718
  echo "$as_me: failed program was:" >&5
 
16719
sed 's/^/| /' conftest.$ac_ext >&5
 
16720
 
 
16721
fi
 
16722
rm -f conftest.err conftest.$ac_objext \
 
16723
      conftest$ac_exeext conftest.$ac_ext
 
16724
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16725
 
 
16726
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16727
          # Warning - without using the other run time loading flags,
 
16728
          # -berok will link without error, but may produce a broken library.
 
16729
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16730
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16731
          # Exported symbols can be pulled into shared objects from archives
 
16732
          whole_archive_flag_spec_GCJ='$convenience'
 
16733
          archive_cmds_need_lc_GCJ=yes
 
16734
          # This is similar to how AIX traditionally builds its shared libraries.
 
16735
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16736
        fi
 
16737
      fi
 
16738
      ;;
 
16739
 
 
16740
    amigaos*)
 
16741
      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)'
 
16742
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16743
      hardcode_minus_L_GCJ=yes
 
16744
      # see comment about different semantics on the GNU ld section
 
16745
      ld_shlibs_GCJ=no
 
16746
      ;;
 
16747
 
 
16748
    bsdi[45]*)
 
16749
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16750
      ;;
 
16751
 
 
16752
    cygwin* | mingw* | pw32*)
 
16753
      # When not using gcc, we currently assume that we are using
 
16754
      # Microsoft Visual C++.
 
16755
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16756
      # no search path for DLLs.
 
16757
      hardcode_libdir_flag_spec_GCJ=' '
 
16758
      allow_undefined_flag_GCJ=unsupported
 
16759
      # Tell ltmain to make .lib files, not .a files.
 
16760
      libext=lib
 
16761
      # Tell ltmain to make .dll files, not .so files.
 
16762
      shrext_cmds=".dll"
 
16763
      # FIXME: Setting linknames here is a bad hack.
 
16764
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16765
      # The linker will automatically build a .lib file if we build a DLL.
 
16766
      old_archive_From_new_cmds_GCJ='true'
 
16767
      # FIXME: Should let the user specify the lib program.
 
16768
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16769
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16770
      enable_shared_with_static_runtimes_GCJ=yes
 
16771
      ;;
 
16772
 
 
16773
    darwin* | rhapsody*)
 
16774
      case $host_os in
 
16775
        rhapsody* | darwin1.[012])
 
16776
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16777
         ;;
 
16778
       *) # Darwin 1.3 on
 
16779
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16780
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16781
         else
 
16782
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16783
             10.[012])
 
16784
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16785
               ;;
 
16786
             10.*)
 
16787
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16788
               ;;
 
16789
           esac
 
16790
         fi
 
16791
         ;;
 
16792
      esac
 
16793
      archive_cmds_need_lc_GCJ=no
 
16794
      hardcode_direct_GCJ=no
 
16795
      hardcode_automatic_GCJ=yes
 
16796
      hardcode_shlibpath_var_GCJ=unsupported
 
16797
      whole_archive_flag_spec_GCJ=''
 
16798
      link_all_deplibs_GCJ=yes
 
16799
    if test "$GCC" = yes ; then
 
16800
        output_verbose_link_cmd='echo'
 
16801
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16802
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16803
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16804
      archive_expsym_cmds_GCJ='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}'
 
16805
      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}'
 
16806
    else
 
16807
      case $cc_basename in
 
16808
        xlc*)
 
16809
         output_verbose_link_cmd='echo'
 
16810
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16811
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16812
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16813
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16814
          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}'
 
16815
          ;;
 
16816
       *)
 
16817
         ld_shlibs_GCJ=no
 
16818
          ;;
 
16819
      esac
 
16820
    fi
 
16821
      ;;
 
16822
 
 
16823
    dgux*)
 
16824
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16825
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16826
      hardcode_shlibpath_var_GCJ=no
 
16827
      ;;
 
16828
 
 
16829
    freebsd1*)
 
16830
      ld_shlibs_GCJ=no
 
16831
      ;;
 
16832
 
 
16833
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16834
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16835
    # does not break anything, and helps significantly (at the cost of a little
 
16836
    # extra space).
 
16837
    freebsd2.2*)
 
16838
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16839
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16840
      hardcode_direct_GCJ=yes
 
16841
      hardcode_shlibpath_var_GCJ=no
 
16842
      ;;
 
16843
 
 
16844
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16845
    freebsd2*)
 
16846
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16847
      hardcode_direct_GCJ=yes
 
16848
      hardcode_minus_L_GCJ=yes
 
16849
      hardcode_shlibpath_var_GCJ=no
 
16850
      ;;
 
16851
 
 
16852
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16853
    freebsd* | dragonfly*)
 
16854
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16855
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16856
      hardcode_direct_GCJ=yes
 
16857
      hardcode_shlibpath_var_GCJ=no
 
16858
      ;;
 
16859
 
 
16860
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
16861
    kfreebsd*-gnu)
 
16862
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16863
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16864
      hardcode_direct_GCJ=yes
 
16865
      hardcode_shlibpath_var_GCJ=no
 
16866
      link_all_deplibs_GCJ=no
 
16867
      ;;
 
16868
 
 
16869
    hpux9*)
 
16870
      if test "$GCC" = yes; then
 
16871
        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'
 
16872
      else
 
16873
        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'
 
16874
      fi
 
16875
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16876
      hardcode_libdir_separator_GCJ=:
 
16877
      hardcode_direct_GCJ=yes
 
16878
 
 
16879
      # hardcode_minus_L: Not really in the search PATH,
 
16880
      # but as the default location of the library.
 
16881
      hardcode_minus_L_GCJ=yes
 
16882
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16883
      ;;
 
16884
 
 
16885
    hpux10*)
 
16886
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16887
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16888
      else
 
16889
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16890
      fi
 
16891
      if test "$with_gnu_ld" = no; then
 
16892
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16893
        hardcode_libdir_separator_GCJ=:
 
16894
 
 
16895
        hardcode_direct_GCJ=yes
 
16896
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16897
 
 
16898
        # hardcode_minus_L: Not really in the search PATH,
 
16899
        # but as the default location of the library.
 
16900
        hardcode_minus_L_GCJ=yes
 
16901
      fi
 
16902
      ;;
 
16903
 
 
16904
    hpux11*)
 
16905
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16906
        case $host_cpu in
 
16907
        hppa*64*)
 
16908
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16909
          ;;
 
16910
        ia64*)
 
16911
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16912
          ;;
 
16913
        *)
 
16914
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16915
          ;;
 
16916
        esac
 
16917
      else
 
16918
        case $host_cpu in
 
16919
        hppa*64*)
 
16920
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16921
          ;;
 
16922
        ia64*)
 
16923
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16924
          ;;
 
16925
        *)
 
16926
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16927
          ;;
 
16928
        esac
 
16929
      fi
 
16930
      if test "$with_gnu_ld" = no; then
 
16931
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16932
        hardcode_libdir_separator_GCJ=:
 
16933
 
 
16934
        case $host_cpu in
 
16935
        hppa*64*|ia64*)
 
16936
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16937
          hardcode_direct_GCJ=no
 
16938
          hardcode_shlibpath_var_GCJ=no
 
16939
          ;;
 
16940
        *)
 
16941
          hardcode_direct_GCJ=yes
 
16942
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16943
 
 
16944
          # hardcode_minus_L: Not really in the search PATH,
 
16945
          # but as the default location of the library.
 
16946
          hardcode_minus_L_GCJ=yes
 
16947
          ;;
 
16948
        esac
 
16949
      fi
 
16950
      ;;
 
16951
 
 
16952
    irix5* | irix6* | nonstopux*)
 
16953
      if test "$GCC" = yes; then
 
16954
        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'
 
16955
      else
 
16956
        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'
 
16957
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16958
      fi
 
16959
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16960
      hardcode_libdir_separator_GCJ=:
 
16961
      link_all_deplibs_GCJ=yes
 
16962
      ;;
 
16963
 
 
16964
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16965
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16966
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16967
      else
 
16968
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16969
      fi
 
16970
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16971
      hardcode_direct_GCJ=yes
 
16972
      hardcode_shlibpath_var_GCJ=no
 
16973
      ;;
 
16974
 
 
16975
    newsos6)
 
16976
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16977
      hardcode_direct_GCJ=yes
 
16978
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16979
      hardcode_libdir_separator_GCJ=:
 
16980
      hardcode_shlibpath_var_GCJ=no
 
16981
      ;;
 
16982
 
 
16983
    openbsd*)
 
16984
      hardcode_direct_GCJ=yes
 
16985
      hardcode_shlibpath_var_GCJ=no
 
16986
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16987
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16988
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16989
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16990
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16991
      else
 
16992
       case $host_os in
 
16993
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16994
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16995
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16996
           ;;
 
16997
         *)
 
16998
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16999
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17000
           ;;
 
17001
       esac
 
17002
      fi
 
17003
      ;;
 
17004
 
 
17005
    os2*)
 
17006
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17007
      hardcode_minus_L_GCJ=yes
 
17008
      allow_undefined_flag_GCJ=unsupported
 
17009
      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'
 
17010
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17011
      ;;
 
17012
 
 
17013
    osf3*)
 
17014
      if test "$GCC" = yes; then
 
17015
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17016
        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'
 
17017
      else
 
17018
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17019
        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'
 
17020
      fi
 
17021
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17022
      hardcode_libdir_separator_GCJ=:
 
17023
      ;;
 
17024
 
 
17025
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17026
      if test "$GCC" = yes; then
 
17027
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17028
        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'
 
17029
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17030
      else
 
17031
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17032
        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'
 
17033
        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~
 
17034
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
17035
 
 
17036
        # Both c and cxx compiler support -rpath directly
 
17037
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17038
      fi
 
17039
      hardcode_libdir_separator_GCJ=:
 
17040
      ;;
 
17041
 
 
17042
    solaris*)
 
17043
      no_undefined_flag_GCJ=' -z text'
 
17044
      if test "$GCC" = yes; then
 
17045
        wlarc='${wl}'
 
17046
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17047
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17048
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17049
      else
 
17050
        wlarc=''
 
17051
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17052
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17053
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17054
      fi
 
17055
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17056
      hardcode_shlibpath_var_GCJ=no
 
17057
      case $host_os in
 
17058
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17059
      *)
 
17060
        # The compiler driver will combine linker options so we
 
17061
        # cannot just pass the convience library names through
 
17062
        # without $wl, iff we do not link with $LD.
 
17063
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17064
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17065
        case $wlarc in
 
17066
        '')
 
17067
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17068
        *)
 
17069
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17070
        esac ;;
 
17071
      esac
 
17072
      link_all_deplibs_GCJ=yes
 
17073
      ;;
 
17074
 
 
17075
    sunos4*)
 
17076
      if test "x$host_vendor" = xsequent; then
 
17077
        # Use $CC to link under sequent, because it throws in some extra .o
 
17078
        # files that make .init and .fini sections work.
 
17079
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17080
      else
 
17081
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17082
      fi
 
17083
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17084
      hardcode_direct_GCJ=yes
 
17085
      hardcode_minus_L_GCJ=yes
 
17086
      hardcode_shlibpath_var_GCJ=no
 
17087
      ;;
 
17088
 
 
17089
    sysv4)
 
17090
      case $host_vendor in
 
17091
        sni)
 
17092
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17093
          hardcode_direct_GCJ=yes # is this really true???
 
17094
        ;;
 
17095
        siemens)
 
17096
          ## LD is ld it makes a PLAMLIB
 
17097
          ## CC just makes a GrossModule.
 
17098
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17099
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17100
          hardcode_direct_GCJ=no
 
17101
        ;;
 
17102
        motorola)
 
17103
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17104
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17105
        ;;
 
17106
      esac
 
17107
      runpath_var='LD_RUN_PATH'
 
17108
      hardcode_shlibpath_var_GCJ=no
 
17109
      ;;
 
17110
 
 
17111
    sysv4.3*)
 
17112
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17113
      hardcode_shlibpath_var_GCJ=no
 
17114
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17115
      ;;
 
17116
 
 
17117
    sysv4*MP*)
 
17118
      if test -d /usr/nec; then
 
17119
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17120
        hardcode_shlibpath_var_GCJ=no
 
17121
        runpath_var=LD_RUN_PATH
 
17122
        hardcode_runpath_var=yes
 
17123
        ld_shlibs_GCJ=yes
 
17124
      fi
 
17125
      ;;
 
17126
 
 
17127
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17128
      no_undefined_flag_GCJ='${wl}-z,text'
 
17129
      archive_cmds_need_lc_GCJ=no
 
17130
      hardcode_shlibpath_var_GCJ=no
 
17131
      runpath_var='LD_RUN_PATH'
 
17132
 
 
17133
      if test "$GCC" = yes; then
 
17134
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17135
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17136
      else
 
17137
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17138
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17139
      fi
 
17140
      ;;
 
17141
 
 
17142
    sysv5* | sco3.2v5* | sco5v6*)
 
17143
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17144
      # link with -lc, and that would cause any symbols used from libc to
 
17145
      # always be unresolved, which means just about no library would
 
17146
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17147
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17148
      # as -z defs.
 
17149
      no_undefined_flag_GCJ='${wl}-z,text'
 
17150
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17151
      archive_cmds_need_lc_GCJ=no
 
17152
      hardcode_shlibpath_var_GCJ=no
 
17153
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17154
      hardcode_libdir_separator_GCJ=':'
 
17155
      link_all_deplibs_GCJ=yes
 
17156
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17157
      runpath_var='LD_RUN_PATH'
 
17158
 
 
17159
      if test "$GCC" = yes; then
 
17160
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17161
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17162
      else
 
17163
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17164
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17165
      fi
 
17166
      ;;
 
17167
 
 
17168
    uts4*)
 
17169
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17170
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17171
      hardcode_shlibpath_var_GCJ=no
 
17172
      ;;
 
17173
 
 
17174
    *)
 
17175
      ld_shlibs_GCJ=no
 
17176
      ;;
 
17177
    esac
 
17178
  fi
 
17179
 
 
17180
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17181
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17182
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17183
 
 
17184
#
 
17185
# Do we need to explicitly link libc?
 
17186
#
 
17187
case "x$archive_cmds_need_lc_GCJ" in
 
17188
x|xyes)
 
17189
  # Assume -lc should be added
 
17190
  archive_cmds_need_lc_GCJ=yes
 
17191
 
 
17192
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17193
    case $archive_cmds_GCJ in
 
17194
    *'~'*)
 
17195
      # FIXME: we may have to deal with multi-command sequences.
 
17196
      ;;
 
17197
    '$CC '*)
 
17198
      # Test whether the compiler implicitly links with -lc since on some
 
17199
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17200
      # to ld, don't add -lc before -lgcc.
 
17201
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17202
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17203
      $rm conftest*
 
17204
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17205
 
 
17206
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17207
  (eval $ac_compile) 2>&5
 
17208
  ac_status=$?
 
17209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17210
  (exit $ac_status); } 2>conftest.err; then
 
17211
        soname=conftest
 
17212
        lib=conftest
 
17213
        libobjs=conftest.$ac_objext
 
17214
        deplibs=
 
17215
        wl=$lt_prog_compiler_wl_GCJ
 
17216
        pic_flag=$lt_prog_compiler_pic_GCJ
 
17217
        compiler_flags=-v
 
17218
        linker_flags=-v
 
17219
        verstring=
 
17220
        output_objdir=.
 
17221
        libname=conftest
 
17222
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17223
        allow_undefined_flag_GCJ=
 
17224
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17225
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17226
  ac_status=$?
 
17227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17228
  (exit $ac_status); }
 
17229
        then
 
17230
          archive_cmds_need_lc_GCJ=no
 
17231
        else
 
17232
          archive_cmds_need_lc_GCJ=yes
 
17233
        fi
 
17234
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17235
      else
 
17236
        cat conftest.err 1>&5
 
17237
      fi
 
17238
      $rm conftest*
 
17239
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17240
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17241
      ;;
 
17242
    esac
 
17243
  fi
 
17244
  ;;
 
17245
esac
 
17246
 
 
17247
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17248
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17249
library_names_spec=
 
17250
libname_spec='lib$name'
 
17251
soname_spec=
 
17252
shrext_cmds=".so"
 
17253
postinstall_cmds=
 
17254
postuninstall_cmds=
 
17255
finish_cmds=
 
17256
finish_eval=
 
17257
shlibpath_var=
 
17258
shlibpath_overrides_runpath=unknown
 
17259
version_type=none
 
17260
dynamic_linker="$host_os ld.so"
 
17261
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17262
if test "$GCC" = yes; then
 
17263
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17264
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17265
    # if the path contains ";" then we assume it to be the separator
 
17266
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17267
    # assumed that no part of a normal pathname contains ";" but that should
 
17268
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17269
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17270
  else
 
17271
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17272
  fi
 
17273
else
 
17274
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17275
fi
 
17276
need_lib_prefix=unknown
 
17277
hardcode_into_libs=no
 
17278
 
 
17279
# when you set need_version to no, make sure it does not cause -set_version
 
17280
# flags to be left without arguments
 
17281
need_version=unknown
 
17282
 
 
17283
case $host_os in
 
17284
aix3*)
 
17285
  version_type=linux
 
17286
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17287
  shlibpath_var=LIBPATH
 
17288
 
 
17289
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17290
  soname_spec='${libname}${release}${shared_ext}$major'
 
17291
  ;;
 
17292
 
 
17293
aix4* | aix5*)
 
17294
  version_type=linux
 
17295
  need_lib_prefix=no
 
17296
  need_version=no
 
17297
  hardcode_into_libs=yes
 
17298
  if test "$host_cpu" = ia64; then
 
17299
    # AIX 5 supports IA64
 
17300
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17301
    shlibpath_var=LD_LIBRARY_PATH
 
17302
  else
 
17303
    # With GCC up to 2.95.x, collect2 would create an import file
 
17304
    # for dependence libraries.  The import file would start with
 
17305
    # the line `#! .'.  This would cause the generated library to
 
17306
    # depend on `.', always an invalid library.  This was fixed in
 
17307
    # development snapshots of GCC prior to 3.0.
 
17308
    case $host_os in
 
17309
      aix4 | aix4.[01] | aix4.[01].*)
 
17310
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17311
           echo ' yes '
 
17312
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17313
        :
 
17314
      else
 
17315
        can_build_shared=no
 
17316
      fi
 
17317
      ;;
 
17318
    esac
 
17319
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17320
    # soname into executable. Probably we can add versioning support to
 
17321
    # collect2, so additional links can be useful in future.
 
17322
    if test "$aix_use_runtimelinking" = yes; then
 
17323
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17324
      # instead of lib<name>.a to let people know that these are not
 
17325
      # typical AIX shared libraries.
 
17326
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17327
    else
 
17328
      # We preserve .a as extension for shared libraries through AIX4.2
 
17329
      # and later when we are not doing run time linking.
 
17330
      library_names_spec='${libname}${release}.a $libname.a'
 
17331
      soname_spec='${libname}${release}${shared_ext}$major'
 
17332
    fi
 
17333
    shlibpath_var=LIBPATH
 
17334
  fi
 
17335
  ;;
 
17336
 
 
17337
amigaos*)
 
17338
  library_names_spec='$libname.ixlibrary $libname.a'
 
17339
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17340
  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'
 
17341
  ;;
 
17342
 
 
17343
beos*)
 
17344
  library_names_spec='${libname}${shared_ext}'
 
17345
  dynamic_linker="$host_os ld.so"
 
17346
  shlibpath_var=LIBRARY_PATH
 
17347
  ;;
 
17348
 
 
17349
bsdi[45]*)
 
17350
  version_type=linux
 
17351
  need_version=no
 
17352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17353
  soname_spec='${libname}${release}${shared_ext}$major'
 
17354
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17355
  shlibpath_var=LD_LIBRARY_PATH
 
17356
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17357
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17358
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17359
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17360
  # libtool to hard-code these into programs
 
17361
  ;;
 
17362
 
 
17363
cygwin* | mingw* | pw32*)
 
17364
  version_type=windows
 
17365
  shrext_cmds=".dll"
 
17366
  need_version=no
 
17367
  need_lib_prefix=no
 
17368
 
 
17369
  case $GCC,$host_os in
 
17370
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17371
    library_names_spec='$libname.dll.a'
 
17372
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17373
    postinstall_cmds='base_file=`basename \${file}`~
 
17374
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17375
      dldir=$destdir/`dirname \$dlpath`~
 
17376
      test -d \$dldir || mkdir -p \$dldir~
 
17377
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17378
      chmod a+x \$dldir/$dlname'
 
17379
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17380
      dlpath=$dir/\$dldll~
 
17381
       $rm \$dlpath'
 
17382
    shlibpath_overrides_runpath=yes
 
17383
 
 
17384
    case $host_os in
 
17385
    cygwin*)
 
17386
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17387
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17388
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17389
      ;;
 
17390
    mingw*)
 
17391
      # MinGW DLLs use traditional 'lib' prefix
 
17392
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17393
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17394
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17395
        # It is most probably a Windows format PATH printed by
 
17396
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17397
        # path with ; separators, and with drive letters. We can handle the
 
17398
        # drive letters (cygwin fileutils understands them), so leave them,
 
17399
        # especially as we might pass files found there to a mingw objdump,
 
17400
        # which wouldn't understand a cygwinified path. Ahh.
 
17401
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17402
      else
 
17403
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17404
      fi
 
17405
      ;;
 
17406
    pw32*)
 
17407
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17408
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17409
      ;;
 
17410
    esac
 
17411
    ;;
 
17412
 
 
17413
  *)
 
17414
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17415
    ;;
 
17416
  esac
 
17417
  dynamic_linker='Win32 ld.exe'
 
17418
  # FIXME: first we should search . and the directory the executable is in
 
17419
  shlibpath_var=PATH
 
17420
  ;;
 
17421
 
 
17422
darwin* | rhapsody*)
 
17423
  dynamic_linker="$host_os dyld"
 
17424
  version_type=darwin
 
17425
  need_lib_prefix=no
 
17426
  need_version=no
 
17427
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17428
  soname_spec='${libname}${release}${major}$shared_ext'
 
17429
  shlibpath_overrides_runpath=yes
 
17430
  shlibpath_var=DYLD_LIBRARY_PATH
 
17431
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17432
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17433
  if test "$GCC" = yes; then
 
17434
    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"`
 
17435
  else
 
17436
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17437
  fi
 
17438
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17439
  ;;
 
17440
 
 
17441
dgux*)
 
17442
  version_type=linux
 
17443
  need_lib_prefix=no
 
17444
  need_version=no
 
17445
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17446
  soname_spec='${libname}${release}${shared_ext}$major'
 
17447
  shlibpath_var=LD_LIBRARY_PATH
 
17448
  ;;
 
17449
 
 
17450
freebsd1*)
 
17451
  dynamic_linker=no
 
17452
  ;;
 
17453
 
 
17454
kfreebsd*-gnu)
 
17455
  version_type=linux
 
17456
  need_lib_prefix=no
 
17457
  need_version=no
 
17458
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17459
  soname_spec='${libname}${release}${shared_ext}$major'
 
17460
  shlibpath_var=LD_LIBRARY_PATH
 
17461
  shlibpath_overrides_runpath=no
 
17462
  hardcode_into_libs=yes
 
17463
  dynamic_linker='GNU ld.so'
 
17464
  ;;
 
17465
 
 
17466
freebsd* | dragonfly*)
 
17467
  # DragonFly does not have aout.  When/if they implement a new
 
17468
  # versioning mechanism, adjust this.
 
17469
  if test -x /usr/bin/objformat; then
 
17470
    objformat=`/usr/bin/objformat`
 
17471
  else
 
17472
    case $host_os in
 
17473
    freebsd[123]*) objformat=aout ;;
 
17474
    *) objformat=elf ;;
 
17475
    esac
 
17476
  fi
 
17477
  version_type=freebsd-$objformat
 
17478
  case $version_type in
 
17479
    freebsd-elf*)
 
17480
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17481
      need_version=no
 
17482
      need_lib_prefix=no
 
17483
      ;;
 
17484
    freebsd-*)
 
17485
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17486
      need_version=yes
 
17487
      ;;
 
17488
  esac
 
17489
  shlibpath_var=LD_LIBRARY_PATH
 
17490
  case $host_os in
 
17491
  freebsd2*)
 
17492
    shlibpath_overrides_runpath=yes
 
17493
    ;;
 
17494
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17495
    shlibpath_overrides_runpath=yes
 
17496
    hardcode_into_libs=yes
 
17497
    ;;
 
17498
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17499
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17500
    shlibpath_overrides_runpath=no
 
17501
    hardcode_into_libs=yes
 
17502
    ;;
 
17503
  freebsd*) # from 4.6 on
 
17504
    shlibpath_overrides_runpath=yes
 
17505
    hardcode_into_libs=yes
 
17506
    ;;
 
17507
  esac
 
17508
  ;;
 
17509
 
 
17510
gnu*)
 
17511
  version_type=linux
 
17512
  need_lib_prefix=no
 
17513
  need_version=no
 
17514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17515
  soname_spec='${libname}${release}${shared_ext}$major'
 
17516
  shlibpath_var=LD_LIBRARY_PATH
 
17517
  hardcode_into_libs=yes
 
17518
  ;;
 
17519
 
 
17520
hpux9* | hpux10* | hpux11*)
 
17521
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17522
  # link against other versions.
 
17523
  version_type=sunos
 
17524
  need_lib_prefix=no
 
17525
  need_version=no
 
17526
  case $host_cpu in
 
17527
  ia64*)
 
17528
    shrext_cmds='.so'
 
17529
    hardcode_into_libs=yes
 
17530
    dynamic_linker="$host_os dld.so"
 
17531
    shlibpath_var=LD_LIBRARY_PATH
 
17532
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17533
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17534
    soname_spec='${libname}${release}${shared_ext}$major'
 
17535
    if test "X$HPUX_IA64_MODE" = X32; then
 
17536
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17537
    else
 
17538
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17539
    fi
 
17540
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17541
    ;;
 
17542
   hppa*64*)
 
17543
     shrext_cmds='.sl'
 
17544
     hardcode_into_libs=yes
 
17545
     dynamic_linker="$host_os dld.sl"
 
17546
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17547
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17548
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17549
     soname_spec='${libname}${release}${shared_ext}$major'
 
17550
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17551
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17552
     ;;
 
17553
   *)
 
17554
    shrext_cmds='.sl'
 
17555
    dynamic_linker="$host_os dld.sl"
 
17556
    shlibpath_var=SHLIB_PATH
 
17557
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17558
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17559
    soname_spec='${libname}${release}${shared_ext}$major'
 
17560
    ;;
 
17561
  esac
 
17562
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17563
  postinstall_cmds='chmod 555 $lib'
 
17564
  ;;
 
17565
 
 
17566
interix3*)
 
17567
  version_type=linux
 
17568
  need_lib_prefix=no
 
17569
  need_version=no
 
17570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17571
  soname_spec='${libname}${release}${shared_ext}$major'
 
17572
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17573
  shlibpath_var=LD_LIBRARY_PATH
 
17574
  shlibpath_overrides_runpath=no
 
17575
  hardcode_into_libs=yes
 
17576
  ;;
 
17577
 
 
17578
irix5* | irix6* | nonstopux*)
 
17579
  case $host_os in
 
17580
    nonstopux*) version_type=nonstopux ;;
 
17581
    *)
 
17582
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17583
                version_type=linux
 
17584
        else
 
17585
                version_type=irix
 
17586
        fi ;;
 
17587
  esac
 
17588
  need_lib_prefix=no
 
17589
  need_version=no
 
17590
  soname_spec='${libname}${release}${shared_ext}$major'
 
17591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17592
  case $host_os in
 
17593
  irix5* | nonstopux*)
 
17594
    libsuff= shlibsuff=
 
17595
    ;;
 
17596
  *)
 
17597
    case $LD in # libtool.m4 will add one of these switches to LD
 
17598
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17599
      libsuff= shlibsuff= libmagic=32-bit;;
 
17600
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17601
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17602
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17603
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17604
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17605
    esac
 
17606
    ;;
 
17607
  esac
 
17608
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17609
  shlibpath_overrides_runpath=no
 
17610
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17611
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17612
  hardcode_into_libs=yes
 
17613
  ;;
 
17614
 
 
17615
# No shared lib support for Linux oldld, aout, or coff.
 
17616
linux*oldld* | linux*aout* | linux*coff*)
 
17617
  dynamic_linker=no
 
17618
  ;;
 
17619
 
 
17620
# This must be Linux ELF.
 
17621
linux*)
 
17622
  version_type=linux
 
17623
  need_lib_prefix=no
 
17624
  need_version=no
 
17625
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17626
  soname_spec='${libname}${release}${shared_ext}$major'
 
17627
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17628
  shlibpath_var=LD_LIBRARY_PATH
 
17629
  shlibpath_overrides_runpath=no
 
17630
  # This implies no fast_install, which is unacceptable.
 
17631
  # Some rework will be needed to allow for fast_install
 
17632
  # before this can be enabled.
 
17633
  hardcode_into_libs=yes
 
17634
 
 
17635
  # Append ld.so.conf contents to the search path
 
17636
  if test -f /etc/ld.so.conf; then
 
17637
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17638
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17639
  fi
 
17640
 
 
17641
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17642
  # powerpc, because MkLinux only supported shared libraries with the
 
17643
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17644
  # most powerpc-linux boxes support dynamic linking these days and
 
17645
  # people can always --disable-shared, the test was removed, and we
 
17646
  # assume the GNU/Linux dynamic linker is in use.
 
17647
  dynamic_linker='GNU/Linux ld.so'
 
17648
  ;;
 
17649
 
 
17650
netbsdelf*-gnu)
 
17651
  version_type=linux
 
17652
  need_lib_prefix=no
 
17653
  need_version=no
 
17654
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17655
  soname_spec='${libname}${release}${shared_ext}$major'
 
17656
  shlibpath_var=LD_LIBRARY_PATH
 
17657
  shlibpath_overrides_runpath=no
 
17658
  hardcode_into_libs=yes
 
17659
  dynamic_linker='NetBSD ld.elf_so'
 
17660
  ;;
 
17661
 
 
17662
knetbsd*-gnu)
 
17663
  version_type=linux
 
17664
  need_lib_prefix=no
 
17665
  need_version=no
 
17666
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17667
  soname_spec='${libname}${release}${shared_ext}$major'
 
17668
  shlibpath_var=LD_LIBRARY_PATH
 
17669
  shlibpath_overrides_runpath=no
 
17670
  hardcode_into_libs=yes
 
17671
  dynamic_linker='GNU ld.so'
 
17672
  ;;
 
17673
 
 
17674
netbsd*)
 
17675
  version_type=sunos
 
17676
  need_lib_prefix=no
 
17677
  need_version=no
 
17678
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17679
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17680
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17681
    dynamic_linker='NetBSD (a.out) ld.so'
 
17682
  else
 
17683
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17684
    soname_spec='${libname}${release}${shared_ext}$major'
 
17685
    dynamic_linker='NetBSD ld.elf_so'
 
17686
  fi
 
17687
  shlibpath_var=LD_LIBRARY_PATH
 
17688
  shlibpath_overrides_runpath=yes
 
17689
  hardcode_into_libs=yes
 
17690
  ;;
 
17691
 
 
17692
newsos6)
 
17693
  version_type=linux
 
17694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17695
  shlibpath_var=LD_LIBRARY_PATH
 
17696
  shlibpath_overrides_runpath=yes
 
17697
  ;;
 
17698
 
 
17699
nto-qnx*)
 
17700
  version_type=linux
 
17701
  need_lib_prefix=no
 
17702
  need_version=no
 
17703
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17704
  soname_spec='${libname}${release}${shared_ext}$major'
 
17705
  shlibpath_var=LD_LIBRARY_PATH
 
17706
  shlibpath_overrides_runpath=yes
 
17707
  ;;
 
17708
 
 
17709
openbsd*)
 
17710
  version_type=sunos
 
17711
  sys_lib_dlsearch_path_spec="/usr/lib"
 
17712
  need_lib_prefix=no
 
17713
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17714
  case $host_os in
 
17715
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17716
    *)                         need_version=no  ;;
 
17717
  esac
 
17718
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17719
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17720
  shlibpath_var=LD_LIBRARY_PATH
 
17721
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17722
    case $host_os in
 
17723
      openbsd2.[89] | openbsd2.[89].*)
 
17724
        shlibpath_overrides_runpath=no
 
17725
        ;;
 
17726
      *)
 
17727
        shlibpath_overrides_runpath=yes
 
17728
        ;;
 
17729
      esac
 
17730
  else
 
17731
    shlibpath_overrides_runpath=yes
 
17732
  fi
 
17733
  ;;
 
17734
 
 
17735
os2*)
 
17736
  libname_spec='$name'
 
17737
  shrext_cmds=".dll"
 
17738
  need_lib_prefix=no
 
17739
  library_names_spec='$libname${shared_ext} $libname.a'
 
17740
  dynamic_linker='OS/2 ld.exe'
 
17741
  shlibpath_var=LIBPATH
 
17742
  ;;
 
17743
 
 
17744
osf3* | osf4* | osf5*)
 
17745
  version_type=osf
 
17746
  need_lib_prefix=no
 
17747
  need_version=no
 
17748
  soname_spec='${libname}${release}${shared_ext}$major'
 
17749
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17750
  shlibpath_var=LD_LIBRARY_PATH
 
17751
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17752
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17753
  ;;
 
17754
 
 
17755
solaris*)
 
17756
  version_type=linux
 
17757
  need_lib_prefix=no
 
17758
  need_version=no
 
17759
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17760
  soname_spec='${libname}${release}${shared_ext}$major'
 
17761
  shlibpath_var=LD_LIBRARY_PATH
 
17762
  shlibpath_overrides_runpath=yes
 
17763
  hardcode_into_libs=yes
 
17764
  # ldd complains unless libraries are executable
 
17765
  postinstall_cmds='chmod +x $lib'
 
17766
  ;;
 
17767
 
 
17768
sunos4*)
 
17769
  version_type=sunos
 
17770
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17771
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17772
  shlibpath_var=LD_LIBRARY_PATH
 
17773
  shlibpath_overrides_runpath=yes
 
17774
  if test "$with_gnu_ld" = yes; then
 
17775
    need_lib_prefix=no
 
17776
  fi
 
17777
  need_version=yes
 
17778
  ;;
 
17779
 
 
17780
sysv4 | sysv4.3*)
 
17781
  version_type=linux
 
17782
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17783
  soname_spec='${libname}${release}${shared_ext}$major'
 
17784
  shlibpath_var=LD_LIBRARY_PATH
 
17785
  case $host_vendor in
 
17786
    sni)
 
17787
      shlibpath_overrides_runpath=no
 
17788
      need_lib_prefix=no
 
17789
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17790
      runpath_var=LD_RUN_PATH
 
17791
      ;;
 
17792
    siemens)
 
17793
      need_lib_prefix=no
 
17794
      ;;
 
17795
    motorola)
 
17796
      need_lib_prefix=no
 
17797
      need_version=no
 
17798
      shlibpath_overrides_runpath=no
 
17799
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17800
      ;;
 
17801
  esac
 
17802
  ;;
 
17803
 
 
17804
sysv4*MP*)
 
17805
  if test -d /usr/nec ;then
 
17806
    version_type=linux
 
17807
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17808
    soname_spec='$libname${shared_ext}.$major'
 
17809
    shlibpath_var=LD_LIBRARY_PATH
 
17810
  fi
 
17811
  ;;
 
17812
 
 
17813
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17814
  version_type=freebsd-elf
 
17815
  need_lib_prefix=no
 
17816
  need_version=no
 
17817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17818
  soname_spec='${libname}${release}${shared_ext}$major'
 
17819
  shlibpath_var=LD_LIBRARY_PATH
 
17820
  hardcode_into_libs=yes
 
17821
  if test "$with_gnu_ld" = yes; then
 
17822
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17823
    shlibpath_overrides_runpath=no
 
17824
  else
 
17825
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17826
    shlibpath_overrides_runpath=yes
 
17827
    case $host_os in
 
17828
      sco3.2v5*)
 
17829
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17830
        ;;
 
17831
    esac
 
17832
  fi
 
17833
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17834
  ;;
 
17835
 
 
17836
uts4*)
 
17837
  version_type=linux
 
17838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17839
  soname_spec='${libname}${release}${shared_ext}$major'
 
17840
  shlibpath_var=LD_LIBRARY_PATH
 
17841
  ;;
 
17842
 
 
17843
*)
 
17844
  dynamic_linker=no
 
17845
  ;;
 
17846
esac
 
17847
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17848
echo "${ECHO_T}$dynamic_linker" >&6
 
17849
test "$dynamic_linker" = no && can_build_shared=no
 
17850
 
 
17851
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17852
if test "$GCC" = yes; then
 
17853
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17854
fi
 
17855
 
 
17856
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17857
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17858
hardcode_action_GCJ=
 
17859
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17860
   test -n "$runpath_var_GCJ" || \
 
17861
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17862
 
 
17863
  # We can hardcode non-existant directories.
 
17864
  if test "$hardcode_direct_GCJ" != no &&
 
17865
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17866
     # have to relink, otherwise we might link with an installed library
 
17867
     # when we should be linking with a yet-to-be-installed one
 
17868
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17869
     test "$hardcode_minus_L_GCJ" != no; then
 
17870
    # Linking always hardcodes the temporary library directory.
 
17871
    hardcode_action_GCJ=relink
 
17872
  else
 
17873
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17874
    hardcode_action_GCJ=immediate
 
17875
  fi
 
17876
else
 
17877
  # We cannot hardcode anything, or else we can only hardcode existing
 
17878
  # directories.
 
17879
  hardcode_action_GCJ=unsupported
 
17880
fi
 
17881
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17882
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17883
 
 
17884
if test "$hardcode_action_GCJ" = relink; then
 
17885
  # Fast installation is not supported
 
17886
  enable_fast_install=no
 
17887
elif test "$shlibpath_overrides_runpath" = yes ||
 
17888
     test "$enable_shared" = no; then
 
17889
  # Fast installation is not necessary
 
17890
  enable_fast_install=needless
 
17891
fi
 
17892
 
 
17893
 
 
17894
# The else clause should only fire when bootstrapping the
 
17895
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17896
# with your package, and you will get complaints that there are
 
17897
# no rules to generate ltmain.sh.
 
17898
if test -f "$ltmain"; then
 
17899
  # See if we are running on zsh, and set the options which allow our commands through
 
17900
  # without removal of \ escapes.
 
17901
  if test -n "${ZSH_VERSION+set}" ; then
 
17902
    setopt NO_GLOB_SUBST
 
17903
  fi
 
17904
  # Now quote all the things that may contain metacharacters while being
 
17905
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17906
  # variables and quote the copies for generation of the libtool script.
 
17907
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
17908
    SED SHELL STRIP \
 
17909
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17910
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17911
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17912
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17913
    lt_cv_sys_global_symbol_to_c_name_address \
 
17914
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17915
    old_postinstall_cmds old_postuninstall_cmds \
 
17916
    compiler_GCJ \
 
17917
    CC_GCJ \
 
17918
    LD_GCJ \
 
17919
    lt_prog_compiler_wl_GCJ \
 
17920
    lt_prog_compiler_pic_GCJ \
 
17921
    lt_prog_compiler_static_GCJ \
 
17922
    lt_prog_compiler_no_builtin_flag_GCJ \
 
17923
    export_dynamic_flag_spec_GCJ \
 
17924
    thread_safe_flag_spec_GCJ \
 
17925
    whole_archive_flag_spec_GCJ \
 
17926
    enable_shared_with_static_runtimes_GCJ \
 
17927
    old_archive_cmds_GCJ \
 
17928
    old_archive_from_new_cmds_GCJ \
 
17929
    predep_objects_GCJ \
 
17930
    postdep_objects_GCJ \
 
17931
    predeps_GCJ \
 
17932
    postdeps_GCJ \
 
17933
    compiler_lib_search_path_GCJ \
 
17934
    archive_cmds_GCJ \
 
17935
    archive_expsym_cmds_GCJ \
 
17936
    postinstall_cmds_GCJ \
 
17937
    postuninstall_cmds_GCJ \
 
17938
    old_archive_from_expsyms_cmds_GCJ \
 
17939
    allow_undefined_flag_GCJ \
 
17940
    no_undefined_flag_GCJ \
 
17941
    export_symbols_cmds_GCJ \
 
17942
    hardcode_libdir_flag_spec_GCJ \
 
17943
    hardcode_libdir_flag_spec_ld_GCJ \
 
17944
    hardcode_libdir_separator_GCJ \
 
17945
    hardcode_automatic_GCJ \
 
17946
    module_cmds_GCJ \
 
17947
    module_expsym_cmds_GCJ \
 
17948
    lt_cv_prog_compiler_c_o_GCJ \
 
17949
    exclude_expsyms_GCJ \
 
17950
    include_expsyms_GCJ; do
 
17951
 
 
17952
    case $var in
 
17953
    old_archive_cmds_GCJ | \
 
17954
    old_archive_from_new_cmds_GCJ | \
 
17955
    archive_cmds_GCJ | \
 
17956
    archive_expsym_cmds_GCJ | \
 
17957
    module_cmds_GCJ | \
 
17958
    module_expsym_cmds_GCJ | \
 
17959
    old_archive_from_expsyms_cmds_GCJ | \
 
17960
    export_symbols_cmds_GCJ | \
 
17961
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17962
    postinstall_cmds | postuninstall_cmds | \
 
17963
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17964
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17965
      # Double-quote double-evaled strings.
 
17966
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17967
      ;;
 
17968
    *)
 
17969
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17970
      ;;
 
17971
    esac
 
17972
  done
 
17973
 
 
17974
  case $lt_echo in
 
17975
  *'\$0 --fallback-echo"')
 
17976
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17977
    ;;
 
17978
  esac
 
17979
 
 
17980
cfgfile="$ofile"
 
17981
 
 
17982
  cat <<__EOF__ >> "$cfgfile"
 
17983
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17984
 
 
17985
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17986
 
 
17987
# Shell to use when invoking shell scripts.
 
17988
SHELL=$lt_SHELL
 
17989
 
 
17990
# Whether or not to build shared libraries.
 
17991
build_libtool_libs=$enable_shared
 
17992
 
 
17993
# Whether or not to build static libraries.
 
17994
build_old_libs=$enable_static
 
17995
 
 
17996
# Whether or not to add -lc for building shared libraries.
 
17997
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
17998
 
 
17999
# Whether or not to disallow shared libs when runtime libs are static
 
18000
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18001
 
 
18002
# Whether or not to optimize for fast installation.
 
18003
fast_install=$enable_fast_install
 
18004
 
 
18005
# The host system.
 
18006
host_alias=$host_alias
 
18007
host=$host
 
18008
host_os=$host_os
 
18009
 
 
18010
# The build system.
 
18011
build_alias=$build_alias
 
18012
build=$build
 
18013
build_os=$build_os
 
18014
 
 
18015
# An echo program that does not interpret backslashes.
 
18016
echo=$lt_echo
 
18017
 
 
18018
# The archiver.
 
18019
AR=$lt_AR
 
18020
AR_FLAGS=$lt_AR_FLAGS
 
18021
 
 
18022
# A C compiler.
 
18023
LTCC=$lt_LTCC
 
18024
 
 
18025
# LTCC compiler flags.
 
18026
LTCFLAGS=$lt_LTCFLAGS
 
18027
 
 
18028
# A language-specific compiler.
 
18029
CC=$lt_compiler_GCJ
 
18030
 
 
18031
# Is the compiler the GNU C compiler?
 
18032
with_gcc=$GCC_GCJ
 
18033
 
 
18034
# An ERE matcher.
 
18035
EGREP=$lt_EGREP
 
18036
 
 
18037
# The linker used to build libraries.
 
18038
LD=$lt_LD_GCJ
 
18039
 
 
18040
# Whether we need hard or soft links.
 
18041
LN_S=$lt_LN_S
 
18042
 
 
18043
# A BSD-compatible nm program.
 
18044
NM=$lt_NM
 
18045
 
 
18046
# A symbol stripping program
 
18047
STRIP=$lt_STRIP
 
18048
 
 
18049
# Used to examine libraries when file_magic_cmd begins "file"
 
18050
MAGIC_CMD=$MAGIC_CMD
 
18051
 
 
18052
# Used on cygwin: DLL creation program.
 
18053
DLLTOOL="$DLLTOOL"
 
18054
 
 
18055
# Used on cygwin: object dumper.
 
18056
OBJDUMP="$OBJDUMP"
 
18057
 
 
18058
# Used on cygwin: assembler.
 
18059
AS="$AS"
 
18060
 
 
18061
# The name of the directory that contains temporary libtool files.
 
18062
objdir=$objdir
 
18063
 
 
18064
# How to create reloadable object files.
 
18065
reload_flag=$lt_reload_flag
 
18066
reload_cmds=$lt_reload_cmds
 
18067
 
 
18068
# How to pass a linker flag through the compiler.
 
18069
wl=$lt_lt_prog_compiler_wl_GCJ
 
18070
 
 
18071
# Object file suffix (normally "o").
 
18072
objext="$ac_objext"
 
18073
 
 
18074
# Old archive suffix (normally "a").
 
18075
libext="$libext"
 
18076
 
 
18077
# Shared library suffix (normally ".so").
 
18078
shrext_cmds='$shrext_cmds'
 
18079
 
 
18080
# Executable file suffix (normally "").
 
18081
exeext="$exeext"
 
18082
 
 
18083
# Additional compiler flags for building library objects.
 
18084
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18085
pic_mode=$pic_mode
 
18086
 
 
18087
# What is the maximum length of a command?
 
18088
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18089
 
 
18090
# Does compiler simultaneously support -c and -o options?
 
18091
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18092
 
 
18093
# Must we lock files when doing compilation?
 
18094
need_locks=$lt_need_locks
 
18095
 
 
18096
# Do we need the lib prefix for modules?
 
18097
need_lib_prefix=$need_lib_prefix
 
18098
 
 
18099
# Do we need a version for libraries?
 
18100
need_version=$need_version
 
18101
 
 
18102
# Whether dlopen is supported.
 
18103
dlopen_support=$enable_dlopen
 
18104
 
 
18105
# Whether dlopen of programs is supported.
 
18106
dlopen_self=$enable_dlopen_self
 
18107
 
 
18108
# Whether dlopen of statically linked programs is supported.
 
18109
dlopen_self_static=$enable_dlopen_self_static
 
18110
 
 
18111
# Compiler flag to prevent dynamic linking.
 
18112
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18113
 
 
18114
# Compiler flag to turn off builtin functions.
 
18115
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18116
 
 
18117
# Compiler flag to allow reflexive dlopens.
 
18118
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18119
 
 
18120
# Compiler flag to generate shared objects directly from archives.
 
18121
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18122
 
 
18123
# Compiler flag to generate thread-safe objects.
 
18124
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18125
 
 
18126
# Library versioning type.
 
18127
version_type=$version_type
 
18128
 
 
18129
# Format of library name prefix.
 
18130
libname_spec=$lt_libname_spec
 
18131
 
 
18132
# List of archive names.  First name is the real one, the rest are links.
 
18133
# The last name is the one that the linker finds with -lNAME.
 
18134
library_names_spec=$lt_library_names_spec
 
18135
 
 
18136
# The coded name of the library, if different from the real name.
 
18137
soname_spec=$lt_soname_spec
 
18138
 
 
18139
# Commands used to build and install an old-style archive.
 
18140
RANLIB=$lt_RANLIB
 
18141
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18142
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18143
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18144
 
 
18145
# Create an old-style archive from a shared archive.
 
18146
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18147
 
 
18148
# Create a temporary old-style archive to link instead of a shared archive.
 
18149
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18150
 
 
18151
# Commands used to build and install a shared archive.
 
18152
archive_cmds=$lt_archive_cmds_GCJ
 
18153
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18154
postinstall_cmds=$lt_postinstall_cmds
 
18155
postuninstall_cmds=$lt_postuninstall_cmds
 
18156
 
 
18157
# Commands used to build a loadable module (assumed same as above if empty)
 
18158
module_cmds=$lt_module_cmds_GCJ
 
18159
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18160
 
 
18161
# Commands to strip libraries.
 
18162
old_striplib=$lt_old_striplib
 
18163
striplib=$lt_striplib
 
18164
 
 
18165
# Dependencies to place before the objects being linked to create a
 
18166
# shared library.
 
18167
predep_objects=$lt_predep_objects_GCJ
 
18168
 
 
18169
# Dependencies to place after the objects being linked to create a
 
18170
# shared library.
 
18171
postdep_objects=$lt_postdep_objects_GCJ
 
18172
 
 
18173
# Dependencies to place before the objects being linked to create a
 
18174
# shared library.
 
18175
predeps=$lt_predeps_GCJ
 
18176
 
 
18177
# Dependencies to place after the objects being linked to create a
 
18178
# shared library.
 
18179
postdeps=$lt_postdeps_GCJ
 
18180
 
 
18181
# The library search path used internally by the compiler when linking
 
18182
# a shared library.
 
18183
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18184
 
 
18185
# Method to check whether dependent libraries are shared objects.
 
18186
deplibs_check_method=$lt_deplibs_check_method
 
18187
 
 
18188
# Command to use when deplibs_check_method == file_magic.
 
18189
file_magic_cmd=$lt_file_magic_cmd
 
18190
 
 
18191
# Flag that allows shared libraries with undefined symbols to be built.
 
18192
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18193
 
 
18194
# Flag that forces no undefined symbols.
 
18195
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18196
 
 
18197
# Commands used to finish a libtool library installation in a directory.
 
18198
finish_cmds=$lt_finish_cmds
 
18199
 
 
18200
# Same as above, but a single script fragment to be evaled but not shown.
 
18201
finish_eval=$lt_finish_eval
 
18202
 
 
18203
# Take the output of nm and produce a listing of raw symbols and C names.
 
18204
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18205
 
 
18206
# Transform the output of nm in a proper C declaration
 
18207
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18208
 
 
18209
# Transform the output of nm in a C name address pair
 
18210
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18211
 
 
18212
# This is the shared library runtime path variable.
 
18213
runpath_var=$runpath_var
 
18214
 
 
18215
# This is the shared library path variable.
 
18216
shlibpath_var=$shlibpath_var
 
18217
 
 
18218
# Is shlibpath searched before the hard-coded library search path?
 
18219
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18220
 
 
18221
# How to hardcode a shared library path into an executable.
 
18222
hardcode_action=$hardcode_action_GCJ
 
18223
 
 
18224
# Whether we should hardcode library paths into libraries.
 
18225
hardcode_into_libs=$hardcode_into_libs
 
18226
 
 
18227
# Flag to hardcode \$libdir into a binary during linking.
 
18228
# This must work even if \$libdir does not exist.
 
18229
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18230
 
 
18231
# If ld is used when linking, flag to hardcode \$libdir into
 
18232
# a binary during linking. This must work even if \$libdir does
 
18233
# not exist.
 
18234
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18235
 
 
18236
# Whether we need a single -rpath flag with a separated argument.
 
18237
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18238
 
 
18239
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18240
# resulting binary.
 
18241
hardcode_direct=$hardcode_direct_GCJ
 
18242
 
 
18243
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18244
# resulting binary.
 
18245
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18246
 
 
18247
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18248
# the resulting binary.
 
18249
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18250
 
 
18251
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18252
# and all subsequent libraries and executables linked against it.
 
18253
hardcode_automatic=$hardcode_automatic_GCJ
 
18254
 
 
18255
# Variables whose values should be saved in libtool wrapper scripts and
 
18256
# restored at relink time.
 
18257
variables_saved_for_relink="$variables_saved_for_relink"
 
18258
 
 
18259
# Whether libtool must link a program against all its dependency libraries.
 
18260
link_all_deplibs=$link_all_deplibs_GCJ
 
18261
 
 
18262
# Compile-time system search path for libraries
 
18263
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18264
 
 
18265
# Run-time system search path for libraries
 
18266
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18267
 
 
18268
# Fix the shell variable \$srcfile for the compiler.
 
18269
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18270
 
 
18271
# Set to yes if exported symbols are required.
 
18272
always_export_symbols=$always_export_symbols_GCJ
 
18273
 
 
18274
# The commands to list exported symbols.
 
18275
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18276
 
 
18277
# The commands to extract the exported symbol list from a shared archive.
 
18278
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18279
 
 
18280
# Symbols that should not be listed in the preloaded symbols.
 
18281
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18282
 
 
18283
# Symbols that must always be exported.
 
18284
include_expsyms=$lt_include_expsyms_GCJ
 
18285
 
 
18286
# ### END LIBTOOL TAG CONFIG: $tagname
 
18287
 
 
18288
__EOF__
 
18289
 
 
18290
 
 
18291
else
 
18292
  # If there is no Makefile yet, we rely on a make rule to execute
 
18293
  # `config.status --recheck' to rerun these tests and create the
 
18294
  # libtool script then.
 
18295
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18296
  if test -f "$ltmain_in"; then
 
18297
    test -f Makefile && make "$ltmain"
 
18298
  fi
 
18299
fi
 
18300
 
 
18301
 
 
18302
ac_ext=c
 
18303
ac_cpp='$CPP $CPPFLAGS'
 
18304
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18305
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18306
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18307
 
 
18308
CC="$lt_save_CC"
 
18309
 
 
18310
        else
 
18311
          tagname=""
 
18312
        fi
 
18313
        ;;
 
18314
 
 
18315
      RC)
 
18316
 
 
18317
 
 
18318
 
 
18319
# Source file extension for RC test sources.
 
18320
ac_ext=rc
 
18321
 
 
18322
# Object file extension for compiled RC test sources.
 
18323
objext=o
 
18324
objext_RC=$objext
 
18325
 
 
18326
# Code to be used in simple compile tests
 
18327
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18328
 
 
18329
# Code to be used in simple link tests
 
18330
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18331
 
 
18332
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18333
 
 
18334
# If no C compiler was specified, use CC.
 
18335
LTCC=${LTCC-"$CC"}
 
18336
 
 
18337
# If no C compiler flags were specified, use CFLAGS.
 
18338
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18339
 
 
18340
# Allow CC to be a program name with arguments.
 
18341
compiler=$CC
 
18342
 
 
18343
 
 
18344
# save warnings/boilerplate of simple test code
 
18345
ac_outfile=conftest.$ac_objext
 
18346
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18347
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18348
_lt_compiler_boilerplate=`cat conftest.err`
 
18349
$rm conftest*
 
18350
 
 
18351
ac_outfile=conftest.$ac_objext
 
18352
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18353
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18354
_lt_linker_boilerplate=`cat conftest.err`
 
18355
$rm conftest*
 
18356
 
 
18357
 
 
18358
# Allow CC to be a program name with arguments.
 
18359
lt_save_CC="$CC"
 
18360
CC=${RC-"windres"}
 
18361
compiler=$CC
 
18362
compiler_RC=$CC
 
18363
for cc_temp in $compiler""; do
 
18364
  case $cc_temp in
 
18365
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18366
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18367
    \-*) ;;
 
18368
    *) break;;
 
18369
  esac
 
18370
done
 
18371
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18372
 
 
18373
lt_cv_prog_compiler_c_o_RC=yes
 
18374
 
 
18375
# The else clause should only fire when bootstrapping the
 
18376
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18377
# with your package, and you will get complaints that there are
 
18378
# no rules to generate ltmain.sh.
 
18379
if test -f "$ltmain"; then
 
18380
  # See if we are running on zsh, and set the options which allow our commands through
 
18381
  # without removal of \ escapes.
 
18382
  if test -n "${ZSH_VERSION+set}" ; then
 
18383
    setopt NO_GLOB_SUBST
 
18384
  fi
 
18385
  # Now quote all the things that may contain metacharacters while being
 
18386
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18387
  # variables and quote the copies for generation of the libtool script.
 
18388
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18389
    SED SHELL STRIP \
 
18390
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18391
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18392
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18393
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18394
    lt_cv_sys_global_symbol_to_c_name_address \
 
18395
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18396
    old_postinstall_cmds old_postuninstall_cmds \
 
18397
    compiler_RC \
 
18398
    CC_RC \
 
18399
    LD_RC \
 
18400
    lt_prog_compiler_wl_RC \
 
18401
    lt_prog_compiler_pic_RC \
 
18402
    lt_prog_compiler_static_RC \
 
18403
    lt_prog_compiler_no_builtin_flag_RC \
 
18404
    export_dynamic_flag_spec_RC \
 
18405
    thread_safe_flag_spec_RC \
 
18406
    whole_archive_flag_spec_RC \
 
18407
    enable_shared_with_static_runtimes_RC \
 
18408
    old_archive_cmds_RC \
 
18409
    old_archive_from_new_cmds_RC \
 
18410
    predep_objects_RC \
 
18411
    postdep_objects_RC \
 
18412
    predeps_RC \
 
18413
    postdeps_RC \
 
18414
    compiler_lib_search_path_RC \
 
18415
    archive_cmds_RC \
 
18416
    archive_expsym_cmds_RC \
 
18417
    postinstall_cmds_RC \
 
18418
    postuninstall_cmds_RC \
 
18419
    old_archive_from_expsyms_cmds_RC \
 
18420
    allow_undefined_flag_RC \
 
18421
    no_undefined_flag_RC \
 
18422
    export_symbols_cmds_RC \
 
18423
    hardcode_libdir_flag_spec_RC \
 
18424
    hardcode_libdir_flag_spec_ld_RC \
 
18425
    hardcode_libdir_separator_RC \
 
18426
    hardcode_automatic_RC \
 
18427
    module_cmds_RC \
 
18428
    module_expsym_cmds_RC \
 
18429
    lt_cv_prog_compiler_c_o_RC \
 
18430
    exclude_expsyms_RC \
 
18431
    include_expsyms_RC; do
 
18432
 
 
18433
    case $var in
 
18434
    old_archive_cmds_RC | \
 
18435
    old_archive_from_new_cmds_RC | \
 
18436
    archive_cmds_RC | \
 
18437
    archive_expsym_cmds_RC | \
 
18438
    module_cmds_RC | \
 
18439
    module_expsym_cmds_RC | \
 
18440
    old_archive_from_expsyms_cmds_RC | \
 
18441
    export_symbols_cmds_RC | \
 
18442
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18443
    postinstall_cmds | postuninstall_cmds | \
 
18444
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18445
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18446
      # Double-quote double-evaled strings.
 
18447
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18448
      ;;
 
18449
    *)
 
18450
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18451
      ;;
 
18452
    esac
 
18453
  done
 
18454
 
 
18455
  case $lt_echo in
 
18456
  *'\$0 --fallback-echo"')
 
18457
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18458
    ;;
 
18459
  esac
 
18460
 
 
18461
cfgfile="$ofile"
 
18462
 
 
18463
  cat <<__EOF__ >> "$cfgfile"
 
18464
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18465
 
 
18466
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18467
 
 
18468
# Shell to use when invoking shell scripts.
 
18469
SHELL=$lt_SHELL
 
18470
 
 
18471
# Whether or not to build shared libraries.
 
18472
build_libtool_libs=$enable_shared
 
18473
 
 
18474
# Whether or not to build static libraries.
 
18475
build_old_libs=$enable_static
 
18476
 
 
18477
# Whether or not to add -lc for building shared libraries.
 
18478
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18479
 
 
18480
# Whether or not to disallow shared libs when runtime libs are static
 
18481
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18482
 
 
18483
# Whether or not to optimize for fast installation.
 
18484
fast_install=$enable_fast_install
 
18485
 
 
18486
# The host system.
 
18487
host_alias=$host_alias
 
18488
host=$host
 
18489
host_os=$host_os
 
18490
 
 
18491
# The build system.
 
18492
build_alias=$build_alias
 
18493
build=$build
 
18494
build_os=$build_os
 
18495
 
 
18496
# An echo program that does not interpret backslashes.
 
18497
echo=$lt_echo
 
18498
 
 
18499
# The archiver.
 
18500
AR=$lt_AR
 
18501
AR_FLAGS=$lt_AR_FLAGS
 
18502
 
 
18503
# A C compiler.
 
18504
LTCC=$lt_LTCC
 
18505
 
 
18506
# LTCC compiler flags.
 
18507
LTCFLAGS=$lt_LTCFLAGS
 
18508
 
 
18509
# A language-specific compiler.
 
18510
CC=$lt_compiler_RC
 
18511
 
 
18512
# Is the compiler the GNU C compiler?
 
18513
with_gcc=$GCC_RC
 
18514
 
 
18515
# An ERE matcher.
 
18516
EGREP=$lt_EGREP
 
18517
 
 
18518
# The linker used to build libraries.
 
18519
LD=$lt_LD_RC
 
18520
 
 
18521
# Whether we need hard or soft links.
 
18522
LN_S=$lt_LN_S
 
18523
 
 
18524
# A BSD-compatible nm program.
 
18525
NM=$lt_NM
 
18526
 
 
18527
# A symbol stripping program
 
18528
STRIP=$lt_STRIP
 
18529
 
 
18530
# Used to examine libraries when file_magic_cmd begins "file"
 
18531
MAGIC_CMD=$MAGIC_CMD
 
18532
 
 
18533
# Used on cygwin: DLL creation program.
 
18534
DLLTOOL="$DLLTOOL"
 
18535
 
 
18536
# Used on cygwin: object dumper.
 
18537
OBJDUMP="$OBJDUMP"
 
18538
 
 
18539
# Used on cygwin: assembler.
 
18540
AS="$AS"
 
18541
 
 
18542
# The name of the directory that contains temporary libtool files.
 
18543
objdir=$objdir
 
18544
 
 
18545
# How to create reloadable object files.
 
18546
reload_flag=$lt_reload_flag
 
18547
reload_cmds=$lt_reload_cmds
 
18548
 
 
18549
# How to pass a linker flag through the compiler.
 
18550
wl=$lt_lt_prog_compiler_wl_RC
 
18551
 
 
18552
# Object file suffix (normally "o").
 
18553
objext="$ac_objext"
 
18554
 
 
18555
# Old archive suffix (normally "a").
 
18556
libext="$libext"
 
18557
 
 
18558
# Shared library suffix (normally ".so").
 
18559
shrext_cmds='$shrext_cmds'
 
18560
 
 
18561
# Executable file suffix (normally "").
 
18562
exeext="$exeext"
 
18563
 
 
18564
# Additional compiler flags for building library objects.
 
18565
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18566
pic_mode=$pic_mode
 
18567
 
 
18568
# What is the maximum length of a command?
 
18569
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18570
 
 
18571
# Does compiler simultaneously support -c and -o options?
 
18572
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18573
 
 
18574
# Must we lock files when doing compilation?
 
18575
need_locks=$lt_need_locks
 
18576
 
 
18577
# Do we need the lib prefix for modules?
 
18578
need_lib_prefix=$need_lib_prefix
 
18579
 
 
18580
# Do we need a version for libraries?
 
18581
need_version=$need_version
 
18582
 
 
18583
# Whether dlopen is supported.
 
18584
dlopen_support=$enable_dlopen
 
18585
 
 
18586
# Whether dlopen of programs is supported.
 
18587
dlopen_self=$enable_dlopen_self
 
18588
 
 
18589
# Whether dlopen of statically linked programs is supported.
 
18590
dlopen_self_static=$enable_dlopen_self_static
 
18591
 
 
18592
# Compiler flag to prevent dynamic linking.
 
18593
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18594
 
 
18595
# Compiler flag to turn off builtin functions.
 
18596
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18597
 
 
18598
# Compiler flag to allow reflexive dlopens.
 
18599
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18600
 
 
18601
# Compiler flag to generate shared objects directly from archives.
 
18602
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18603
 
 
18604
# Compiler flag to generate thread-safe objects.
 
18605
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18606
 
 
18607
# Library versioning type.
 
18608
version_type=$version_type
 
18609
 
 
18610
# Format of library name prefix.
 
18611
libname_spec=$lt_libname_spec
 
18612
 
 
18613
# List of archive names.  First name is the real one, the rest are links.
 
18614
# The last name is the one that the linker finds with -lNAME.
 
18615
library_names_spec=$lt_library_names_spec
 
18616
 
 
18617
# The coded name of the library, if different from the real name.
 
18618
soname_spec=$lt_soname_spec
 
18619
 
 
18620
# Commands used to build and install an old-style archive.
 
18621
RANLIB=$lt_RANLIB
 
18622
old_archive_cmds=$lt_old_archive_cmds_RC
 
18623
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18624
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18625
 
 
18626
# Create an old-style archive from a shared archive.
 
18627
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18628
 
 
18629
# Create a temporary old-style archive to link instead of a shared archive.
 
18630
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18631
 
 
18632
# Commands used to build and install a shared archive.
 
18633
archive_cmds=$lt_archive_cmds_RC
 
18634
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18635
postinstall_cmds=$lt_postinstall_cmds
 
18636
postuninstall_cmds=$lt_postuninstall_cmds
 
18637
 
 
18638
# Commands used to build a loadable module (assumed same as above if empty)
 
18639
module_cmds=$lt_module_cmds_RC
 
18640
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18641
 
 
18642
# Commands to strip libraries.
 
18643
old_striplib=$lt_old_striplib
 
18644
striplib=$lt_striplib
 
18645
 
 
18646
# Dependencies to place before the objects being linked to create a
 
18647
# shared library.
 
18648
predep_objects=$lt_predep_objects_RC
 
18649
 
 
18650
# Dependencies to place after the objects being linked to create a
 
18651
# shared library.
 
18652
postdep_objects=$lt_postdep_objects_RC
 
18653
 
 
18654
# Dependencies to place before the objects being linked to create a
 
18655
# shared library.
 
18656
predeps=$lt_predeps_RC
 
18657
 
 
18658
# Dependencies to place after the objects being linked to create a
 
18659
# shared library.
 
18660
postdeps=$lt_postdeps_RC
 
18661
 
 
18662
# The library search path used internally by the compiler when linking
 
18663
# a shared library.
 
18664
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18665
 
 
18666
# Method to check whether dependent libraries are shared objects.
 
18667
deplibs_check_method=$lt_deplibs_check_method
 
18668
 
 
18669
# Command to use when deplibs_check_method == file_magic.
 
18670
file_magic_cmd=$lt_file_magic_cmd
 
18671
 
 
18672
# Flag that allows shared libraries with undefined symbols to be built.
 
18673
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18674
 
 
18675
# Flag that forces no undefined symbols.
 
18676
no_undefined_flag=$lt_no_undefined_flag_RC
 
18677
 
 
18678
# Commands used to finish a libtool library installation in a directory.
 
18679
finish_cmds=$lt_finish_cmds
 
18680
 
 
18681
# Same as above, but a single script fragment to be evaled but not shown.
 
18682
finish_eval=$lt_finish_eval
 
18683
 
 
18684
# Take the output of nm and produce a listing of raw symbols and C names.
 
18685
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18686
 
 
18687
# Transform the output of nm in a proper C declaration
 
18688
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18689
 
 
18690
# Transform the output of nm in a C name address pair
 
18691
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18692
 
 
18693
# This is the shared library runtime path variable.
 
18694
runpath_var=$runpath_var
 
18695
 
 
18696
# This is the shared library path variable.
 
18697
shlibpath_var=$shlibpath_var
 
18698
 
 
18699
# Is shlibpath searched before the hard-coded library search path?
 
18700
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18701
 
 
18702
# How to hardcode a shared library path into an executable.
 
18703
hardcode_action=$hardcode_action_RC
 
18704
 
 
18705
# Whether we should hardcode library paths into libraries.
 
18706
hardcode_into_libs=$hardcode_into_libs
 
18707
 
 
18708
# Flag to hardcode \$libdir into a binary during linking.
 
18709
# This must work even if \$libdir does not exist.
 
18710
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18711
 
 
18712
# If ld is used when linking, flag to hardcode \$libdir into
 
18713
# a binary during linking. This must work even if \$libdir does
 
18714
# not exist.
 
18715
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18716
 
 
18717
# Whether we need a single -rpath flag with a separated argument.
 
18718
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18719
 
 
18720
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18721
# resulting binary.
 
18722
hardcode_direct=$hardcode_direct_RC
 
18723
 
 
18724
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18725
# resulting binary.
 
18726
hardcode_minus_L=$hardcode_minus_L_RC
 
18727
 
 
18728
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18729
# the resulting binary.
 
18730
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18731
 
 
18732
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18733
# and all subsequent libraries and executables linked against it.
 
18734
hardcode_automatic=$hardcode_automatic_RC
 
18735
 
 
18736
# Variables whose values should be saved in libtool wrapper scripts and
 
18737
# restored at relink time.
 
18738
variables_saved_for_relink="$variables_saved_for_relink"
 
18739
 
 
18740
# Whether libtool must link a program against all its dependency libraries.
 
18741
link_all_deplibs=$link_all_deplibs_RC
 
18742
 
 
18743
# Compile-time system search path for libraries
 
18744
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18745
 
 
18746
# Run-time system search path for libraries
 
18747
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18748
 
 
18749
# Fix the shell variable \$srcfile for the compiler.
 
18750
fix_srcfile_path="$fix_srcfile_path_RC"
 
18751
 
 
18752
# Set to yes if exported symbols are required.
 
18753
always_export_symbols=$always_export_symbols_RC
 
18754
 
 
18755
# The commands to list exported symbols.
 
18756
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
18757
 
 
18758
# The commands to extract the exported symbol list from a shared archive.
 
18759
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18760
 
 
18761
# Symbols that should not be listed in the preloaded symbols.
 
18762
exclude_expsyms=$lt_exclude_expsyms_RC
 
18763
 
 
18764
# Symbols that must always be exported.
 
18765
include_expsyms=$lt_include_expsyms_RC
 
18766
 
 
18767
# ### END LIBTOOL TAG CONFIG: $tagname
 
18768
 
 
18769
__EOF__
 
18770
 
 
18771
 
 
18772
else
 
18773
  # If there is no Makefile yet, we rely on a make rule to execute
 
18774
  # `config.status --recheck' to rerun these tests and create the
 
18775
  # libtool script then.
 
18776
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18777
  if test -f "$ltmain_in"; then
 
18778
    test -f Makefile && make "$ltmain"
 
18779
  fi
 
18780
fi
 
18781
 
 
18782
 
 
18783
ac_ext=c
 
18784
ac_cpp='$CPP $CPPFLAGS'
 
18785
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18786
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18787
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18788
 
 
18789
CC="$lt_save_CC"
 
18790
 
 
18791
        ;;
 
18792
 
 
18793
      *)
 
18794
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
18795
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
18796
   { (exit 1); exit 1; }; }
 
18797
        ;;
 
18798
      esac
 
18799
 
 
18800
      # Append the new tag name to the list of available tags.
 
18801
      if test -n "$tagname" ; then
 
18802
      available_tags="$available_tags $tagname"
 
18803
    fi
 
18804
    fi
 
18805
  done
 
18806
  IFS="$lt_save_ifs"
 
18807
 
 
18808
  # Now substitute the updated list of available tags.
 
18809
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
18810
    mv "${ofile}T" "$ofile"
 
18811
    chmod +x "$ofile"
 
18812
  else
 
18813
    rm -f "${ofile}T"
 
18814
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
18815
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
18816
   { (exit 1); exit 1; }; }
 
18817
  fi
 
18818
fi
 
18819
 
 
18820
 
 
18821
 
 
18822
# This can be used to rebuild libtool when needed
 
18823
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
18824
 
 
18825
# Always use our own libtool.
 
18826
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
18827
 
 
18828
# Prevent multiple expansion
 
18829
 
 
18830
 
 
18831
 
 
18832
 
 
18833
 
 
18834
 
 
18835
 
 
18836
 
 
18837
 
 
18838
 
 
18839
 
 
18840
 
 
18841
 
 
18842
 
 
18843
 
 
18844
 
 
18845
 
 
18846
 
 
18847
 
 
18848
 
 
18849
 
 
18850
# Transfer these variables to the Makefile
 
18851
 
 
18852
 
 
18853
 
 
18854
 
 
18855
 
 
18856
                                                            ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile bin/Makefile doc/Makefile portaudiocpp.pc"
 
18857
 
 
18858
cat >confcache <<\_ACEOF
 
18859
# This file is a shell script that caches the results of configure
 
18860
# tests run on this system so they can be shared between configure
 
18861
# scripts and configure runs, see configure's option --config-cache.
 
18862
# It is not useful on other systems.  If it contains results you don't
 
18863
# want to keep, you may remove or edit it.
 
18864
#
 
18865
# config.status only pays attention to the cache file if you give it
 
18866
# the --recheck option to rerun configure.
 
18867
#
 
18868
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
18869
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
18870
# following values.
 
18871
 
 
18872
_ACEOF
 
18873
 
 
18874
# The following way of writing the cache mishandles newlines in values,
 
18875
# but we know of no workaround that is simple, portable, and efficient.
 
18876
# So, don't put newlines in cache variables' values.
 
18877
# Ultrix sh set writes to stderr and can't be redirected directly,
 
18878
# and sets the high bit in the cache file unless we assign to the vars.
 
18879
{
 
18880
  (set) 2>&1 |
 
18881
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
18882
    *ac_space=\ *)
 
18883
      # `set' does not quote correctly, so add quotes (double-quote
 
18884
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
18885
      sed -n \
 
18886
        "s/'/'\\\\''/g;
 
18887
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
18888
      ;;
 
18889
    *)
 
18890
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
18891
      sed -n \
 
18892
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
18893
      ;;
 
18894
    esac;
 
18895
} |
 
18896
  sed '
 
18897
     t clear
 
18898
     : clear
 
18899
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
18900
     t end
 
18901
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
18902
     : end' >>confcache
 
18903
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
18904
  if test -w $cache_file; then
 
18905
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
18906
    cat confcache >$cache_file
 
18907
  else
 
18908
    echo "not updating unwritable cache $cache_file"
 
18909
  fi
 
18910
fi
 
18911
rm -f confcache
 
18912
 
 
18913
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
18914
# Let make expand exec_prefix.
 
18915
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
18916
 
 
18917
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
18918
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
18919
# trailing colons and then remove the whole line if VPATH becomes empty
 
18920
# (actually we leave an empty line to preserve line numbers).
 
18921
if test "x$srcdir" = x.; then
 
18922
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
18923
s/:*\$(srcdir):*/:/;
 
18924
s/:*\${srcdir}:*/:/;
 
18925
s/:*@srcdir@:*/:/;
 
18926
s/^\([^=]*=[     ]*\):*/\1/;
 
18927
s/:*$//;
 
18928
s/^[^=]*=[       ]*$//;
 
18929
}'
 
18930
fi
 
18931
 
 
18932
# Transform confdefs.h into DEFS.
 
18933
# Protect against shell expansion while executing Makefile rules.
 
18934
# Protect against Makefile macro expansion.
 
18935
#
 
18936
# If the first sed substitution is executed (which looks for macros that
 
18937
# take arguments), then we branch to the quote section.  Otherwise,
 
18938
# look for a macro that doesn't take arguments.
 
18939
cat >confdef2opt.sed <<\_ACEOF
 
18940
t clear
 
18941
: clear
 
18942
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
18943
t quote
 
18944
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
18945
t quote
 
18946
d
 
18947
: quote
 
18948
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
 
18949
s,\[,\\&,g
 
18950
s,\],\\&,g
 
18951
s,\$,$$,g
 
18952
p
 
18953
_ACEOF
 
18954
# We use echo to avoid assuming a particular line-breaking character.
 
18955
# The extra dot is to prevent the shell from consuming trailing
 
18956
# line-breaks from the sub-command output.  A line-break within
 
18957
# single-quotes doesn't work because, if this script is created in a
 
18958
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
18959
# would break.
 
18960
ac_LF_and_DOT=`echo; echo .`
 
18961
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
18962
rm -f confdef2opt.sed
 
18963
 
 
18964
 
 
18965
ac_libobjs=
 
18966
ac_ltlibobjs=
 
18967
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
18968
  # 1. Remove the extension, and $U if already installed.
 
18969
  ac_i=`echo "$ac_i" |
 
18970
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
18971
  # 2. Add them.
 
18972
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
18973
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
18974
done
 
18975
LIBOBJS=$ac_libobjs
 
18976
 
 
18977
LTLIBOBJS=$ac_ltlibobjs
 
18978
 
 
18979
 
 
18980
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
18981
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
18982
Usually this means the macro was only invoked conditionally." >&5
 
18983
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
18984
Usually this means the macro was only invoked conditionally." >&2;}
 
18985
   { (exit 1); exit 1; }; }
 
18986
fi
 
18987
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
18988
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
18989
Usually this means the macro was only invoked conditionally." >&5
 
18990
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
18991
Usually this means the macro was only invoked conditionally." >&2;}
 
18992
   { (exit 1); exit 1; }; }
 
18993
fi
 
18994
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
18995
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
18996
Usually this means the macro was only invoked conditionally." >&5
 
18997
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
18998
Usually this means the macro was only invoked conditionally." >&2;}
 
18999
   { (exit 1); exit 1; }; }
 
19000
fi
 
19001
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
19002
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
19003
Usually this means the macro was only invoked conditionally." >&5
 
19004
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
19005
Usually this means the macro was only invoked conditionally." >&2;}
 
19006
   { (exit 1); exit 1; }; }
 
19007
fi
 
19008
 
 
19009
: ${CONFIG_STATUS=./config.status}
 
19010
ac_clean_files_save=$ac_clean_files
 
19011
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
19012
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
19013
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
19014
cat >$CONFIG_STATUS <<_ACEOF
 
19015
#! $SHELL
 
19016
# Generated by $as_me.
 
19017
# Run this file to recreate the current configuration.
 
19018
# Compiler output produced by configure, useful for debugging
 
19019
# configure, is in config.log if it exists.
 
19020
 
 
19021
debug=false
 
19022
ac_cs_recheck=false
 
19023
ac_cs_silent=false
 
19024
SHELL=\${CONFIG_SHELL-$SHELL}
 
19025
_ACEOF
 
19026
 
 
19027
cat >>$CONFIG_STATUS <<\_ACEOF
 
19028
## --------------------- ##
 
19029
## M4sh Initialization.  ##
 
19030
## --------------------- ##
 
19031
 
 
19032
# Be Bourne compatible
 
19033
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19034
  emulate sh
 
19035
  NULLCMD=:
 
19036
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19037
  # is contrary to our usage.  Disable this feature.
 
19038
  alias -g '${1+"$@"}'='"$@"'
 
19039
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
19040
  set -o posix
 
19041
fi
 
19042
DUALCASE=1; export DUALCASE # for MKS sh
 
19043
 
 
19044
# Support unset when possible.
 
19045
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
19046
  as_unset=unset
 
19047
else
 
19048
  as_unset=false
 
19049
fi
 
19050
 
 
19051
 
 
19052
# Work around bugs in pre-3.0 UWIN ksh.
 
19053
$as_unset ENV MAIL MAILPATH
 
19054
PS1='$ '
 
19055
PS2='> '
 
19056
PS4='+ '
 
19057
 
 
19058
# NLS nuisances.
 
19059
for as_var in \
 
19060
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
19061
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
19062
  LC_TELEPHONE LC_TIME
 
19063
do
 
19064
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
19065
    eval $as_var=C; export $as_var
 
19066
  else
 
19067
    $as_unset $as_var
 
19068
  fi
 
19069
done
 
19070
 
 
19071
# Required to use basename.
 
19072
if expr a : '\(a\)' >/dev/null 2>&1; then
 
19073
  as_expr=expr
 
19074
else
 
19075
  as_expr=false
 
19076
fi
 
19077
 
 
19078
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
19079
  as_basename=basename
 
19080
else
 
19081
  as_basename=false
 
19082
fi
 
19083
 
 
19084
 
 
19085
# Name of the executable.
 
19086
as_me=`$as_basename "$0" ||
 
19087
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
19088
         X"$0" : 'X\(//\)$' \| \
 
19089
         X"$0" : 'X\(/\)$' \| \
 
19090
         .     : '\(.\)' 2>/dev/null ||
 
19091
echo X/"$0" |
 
19092
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
19093
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
19094
          /^X\/\(\/\).*/{ s//\1/; q; }
 
19095
          s/.*/./; q'`
 
19096
 
 
19097
 
 
19098
# PATH needs CR, and LINENO needs CR and PATH.
 
19099
# Avoid depending upon Character Ranges.
 
19100
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
19101
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
19102
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
19103
as_cr_digits='0123456789'
 
19104
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
19105
 
 
19106
# The user is always right.
 
19107
if test "${PATH_SEPARATOR+set}" != set; then
 
19108
  echo "#! /bin/sh" >conf$$.sh
 
19109
  echo  "exit 0"   >>conf$$.sh
 
19110
  chmod +x conf$$.sh
 
19111
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
19112
    PATH_SEPARATOR=';'
 
19113
  else
 
19114
    PATH_SEPARATOR=:
 
19115
  fi
 
19116
  rm -f conf$$.sh
 
19117
fi
 
19118
 
 
19119
 
 
19120
  as_lineno_1=$LINENO
 
19121
  as_lineno_2=$LINENO
 
19122
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
19123
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
19124
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
19125
  # Find who we are.  Look in the path if we contain no path at all
 
19126
  # relative or not.
 
19127
  case $0 in
 
19128
    *[\\/]* ) as_myself=$0 ;;
 
19129
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19130
for as_dir in $PATH
 
19131
do
 
19132
  IFS=$as_save_IFS
 
19133
  test -z "$as_dir" && as_dir=.
 
19134
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
19135
done
 
19136
 
 
19137
       ;;
 
19138
  esac
 
19139
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
19140
  # in which case we are not to be found in the path.
 
19141
  if test "x$as_myself" = x; then
 
19142
    as_myself=$0
 
19143
  fi
 
19144
  if test ! -f "$as_myself"; then
 
19145
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
19146
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
19147
   { (exit 1); exit 1; }; }
 
19148
  fi
 
19149
  case $CONFIG_SHELL in
 
19150
  '')
 
19151
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19152
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
19153
do
 
19154
  IFS=$as_save_IFS
 
19155
  test -z "$as_dir" && as_dir=.
 
19156
  for as_base in sh bash ksh sh5; do
 
19157
         case $as_dir in
 
19158
         /*)
 
19159
           if ("$as_dir/$as_base" -c '
 
19160
  as_lineno_1=$LINENO
 
19161
  as_lineno_2=$LINENO
 
19162
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
19163
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
19164
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
19165
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
19166
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
19167
             CONFIG_SHELL=$as_dir/$as_base
 
19168
             export CONFIG_SHELL
 
19169
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
19170
           fi;;
 
19171
         esac
 
19172
       done
 
19173
done
 
19174
;;
 
19175
  esac
 
19176
 
 
19177
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
19178
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
19179
  # line-number line before each line; the second 'sed' does the real
 
19180
  # work.  The second script uses 'N' to pair each line-number line
 
19181
  # with the numbered line, and appends trailing '-' during
 
19182
  # substitution so that $LINENO is not a special case at line end.
 
19183
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
19184
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
19185
  sed '=' <$as_myself |
 
19186
    sed '
 
19187
      N
 
19188
      s,$,-,
 
19189
      : loop
 
19190
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
19191
      t loop
 
19192
      s,-$,,
 
19193
      s,^['$as_cr_digits']*\n,,
 
19194
    ' >$as_me.lineno &&
 
19195
  chmod +x $as_me.lineno ||
 
19196
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
19197
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
19198
   { (exit 1); exit 1; }; }
 
19199
 
 
19200
  # Don't try to exec as it changes $[0], causing all sort of problems
 
19201
  # (the dirname of $[0] is not the place where we might find the
 
19202
  # original and so on.  Autoconf is especially sensible to this).
 
19203
  . ./$as_me.lineno
 
19204
  # Exit status is that of the last command.
 
19205
  exit
 
19206
}
 
19207
 
 
19208
 
 
19209
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
19210
  *c*,-n*) ECHO_N= ECHO_C='
 
19211
' ECHO_T='      ' ;;
 
19212
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
19213
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
19214
esac
 
19215
 
 
19216
if expr a : '\(a\)' >/dev/null 2>&1; then
 
19217
  as_expr=expr
 
19218
else
 
19219
  as_expr=false
 
19220
fi
 
19221
 
 
19222
rm -f conf$$ conf$$.exe conf$$.file
 
19223
echo >conf$$.file
 
19224
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
19225
  # We could just check for DJGPP; but this test a) works b) is more generic
 
19226
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
19227
  if test -f conf$$.exe; then
 
19228
    # Don't use ln at all; we don't have any links
 
19229
    as_ln_s='cp -p'
 
19230
  else
 
19231
    as_ln_s='ln -s'
 
19232
  fi
 
19233
elif ln conf$$.file conf$$ 2>/dev/null; then
 
19234
  as_ln_s=ln
 
19235
else
 
19236
  as_ln_s='cp -p'
 
19237
fi
 
19238
rm -f conf$$ conf$$.exe conf$$.file
 
19239
 
 
19240
if mkdir -p . 2>/dev/null; then
 
19241
  as_mkdir_p=:
 
19242
else
 
19243
  test -d ./-p && rmdir ./-p
 
19244
  as_mkdir_p=false
 
19245
fi
 
19246
 
 
19247
as_executable_p="test -f"
 
19248
 
 
19249
# Sed expression to map a string onto a valid CPP name.
 
19250
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
19251
 
 
19252
# Sed expression to map a string onto a valid variable name.
 
19253
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
19254
 
 
19255
 
 
19256
# IFS
 
19257
# We need space, tab and new line, in precisely that order.
 
19258
as_nl='
 
19259
'
 
19260
IFS="   $as_nl"
 
19261
 
 
19262
# CDPATH.
 
19263
$as_unset CDPATH
 
19264
 
 
19265
exec 6>&1
 
19266
 
 
19267
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
19268
# report actual input values of CONFIG_FILES etc. instead of their
 
19269
# values after options handling.  Logging --version etc. is OK.
 
19270
exec 5>>config.log
 
19271
{
 
19272
  echo
 
19273
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
19274
## Running $as_me. ##
 
19275
_ASBOX
 
19276
} >&5
 
19277
cat >&5 <<_CSEOF
 
19278
 
 
19279
This file was extended by PortAudioCpp $as_me 12, which was
 
19280
generated by GNU Autoconf 2.59.  Invocation command line was
 
19281
 
 
19282
  CONFIG_FILES    = $CONFIG_FILES
 
19283
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
19284
  CONFIG_LINKS    = $CONFIG_LINKS
 
19285
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
19286
  $ $0 $@
 
19287
 
 
19288
_CSEOF
 
19289
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
19290
echo >&5
 
19291
_ACEOF
 
19292
 
 
19293
# Files that config.status was made for.
 
19294
if test -n "$ac_config_files"; then
 
19295
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
19296
fi
 
19297
 
 
19298
if test -n "$ac_config_headers"; then
 
19299
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
19300
fi
 
19301
 
 
19302
if test -n "$ac_config_links"; then
 
19303
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
19304
fi
 
19305
 
 
19306
if test -n "$ac_config_commands"; then
 
19307
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
19308
fi
 
19309
 
 
19310
cat >>$CONFIG_STATUS <<\_ACEOF
 
19311
 
 
19312
ac_cs_usage="\
 
19313
\`$as_me' instantiates files from templates according to the
 
19314
current configuration.
 
19315
 
 
19316
Usage: $0 [OPTIONS] [FILE]...
 
19317
 
 
19318
  -h, --help       print this help, then exit
 
19319
  -V, --version    print version number, then exit
 
19320
  -q, --quiet      do not print progress messages
 
19321
  -d, --debug      don't remove temporary files
 
19322
      --recheck    update $as_me by reconfiguring in the same conditions
 
19323
  --file=FILE[:TEMPLATE]
 
19324
                   instantiate the configuration file FILE
 
19325
 
 
19326
Configuration files:
 
19327
$config_files
 
19328
 
 
19329
Configuration commands:
 
19330
$config_commands
 
19331
 
 
19332
Report bugs to <bug-autoconf@gnu.org>."
 
19333
_ACEOF
 
19334
 
 
19335
cat >>$CONFIG_STATUS <<_ACEOF
 
19336
ac_cs_version="\\
 
19337
PortAudioCpp config.status 12
 
19338
configured by $0, generated by GNU Autoconf 2.59,
 
19339
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
19340
 
 
19341
Copyright (C) 2003 Free Software Foundation, Inc.
 
19342
This config.status script is free software; the Free Software Foundation
 
19343
gives unlimited permission to copy, distribute and modify it."
 
19344
srcdir=$srcdir
 
19345
INSTALL="$INSTALL"
 
19346
_ACEOF
 
19347
 
 
19348
cat >>$CONFIG_STATUS <<\_ACEOF
 
19349
# If no file are specified by the user, then we need to provide default
 
19350
# value.  By we need to know if files were specified by the user.
 
19351
ac_need_defaults=:
 
19352
while test $# != 0
 
19353
do
 
19354
  case $1 in
 
19355
  --*=*)
 
19356
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
19357
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
19358
    ac_shift=:
 
19359
    ;;
 
19360
  -*)
 
19361
    ac_option=$1
 
19362
    ac_optarg=$2
 
19363
    ac_shift=shift
 
19364
    ;;
 
19365
  *) # This is not an option, so the user has probably given explicit
 
19366
     # arguments.
 
19367
     ac_option=$1
 
19368
     ac_need_defaults=false;;
 
19369
  esac
 
19370
 
 
19371
  case $ac_option in
 
19372
  # Handling of the options.
 
19373
_ACEOF
 
19374
cat >>$CONFIG_STATUS <<\_ACEOF
 
19375
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
19376
    ac_cs_recheck=: ;;
 
19377
  --version | --vers* | -V )
 
19378
    echo "$ac_cs_version"; exit 0 ;;
 
19379
  --he | --h)
 
19380
    # Conflict between --help and --header
 
19381
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
19382
Try \`$0 --help' for more information." >&5
 
19383
echo "$as_me: error: ambiguous option: $1
 
19384
Try \`$0 --help' for more information." >&2;}
 
19385
   { (exit 1); exit 1; }; };;
 
19386
  --help | --hel | -h )
 
19387
    echo "$ac_cs_usage"; exit 0 ;;
 
19388
  --debug | --d* | -d )
 
19389
    debug=: ;;
 
19390
  --file | --fil | --fi | --f )
 
19391
    $ac_shift
 
19392
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
19393
    ac_need_defaults=false;;
 
19394
  --header | --heade | --head | --hea )
 
19395
    $ac_shift
 
19396
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
19397
    ac_need_defaults=false;;
 
19398
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
19399
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
19400
    ac_cs_silent=: ;;
 
19401
 
 
19402
  # This is an error.
 
19403
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
19404
Try \`$0 --help' for more information." >&5
 
19405
echo "$as_me: error: unrecognized option: $1
 
19406
Try \`$0 --help' for more information." >&2;}
 
19407
   { (exit 1); exit 1; }; } ;;
 
19408
 
 
19409
  *) ac_config_targets="$ac_config_targets $1" ;;
 
19410
 
 
19411
  esac
 
19412
  shift
 
19413
done
 
19414
 
 
19415
ac_configure_extra_args=
 
19416
 
 
19417
if $ac_cs_silent; then
 
19418
  exec 6>/dev/null
 
19419
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
19420
fi
 
19421
 
 
19422
_ACEOF
 
19423
cat >>$CONFIG_STATUS <<_ACEOF
 
19424
if \$ac_cs_recheck; then
 
19425
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
19426
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
19427
fi
 
19428
 
 
19429
_ACEOF
 
19430
 
 
19431
cat >>$CONFIG_STATUS <<_ACEOF
 
19432
#
 
19433
# INIT-COMMANDS section.
 
19434
#
 
19435
 
 
19436
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
19437
 
 
19438
_ACEOF
 
19439
 
 
19440
 
 
19441
 
 
19442
cat >>$CONFIG_STATUS <<\_ACEOF
 
19443
for ac_config_target in $ac_config_targets
 
19444
do
 
19445
  case "$ac_config_target" in
 
19446
  # Handling of arguments.
 
19447
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
19448
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
19449
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
19450
  "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
 
19451
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
19452
  "portaudiocpp.pc" ) CONFIG_FILES="$CONFIG_FILES portaudiocpp.pc" ;;
 
19453
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
19454
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
19455
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
19456
   { (exit 1); exit 1; }; };;
 
19457
  esac
 
19458
done
 
19459
 
 
19460
# If the user did not use the arguments to specify the items to instantiate,
 
19461
# then the envvar interface is used.  Set only those that are not.
 
19462
# We use the long form for the default assignment because of an extremely
 
19463
# bizarre bug on SunOS 4.1.3.
 
19464
if $ac_need_defaults; then
 
19465
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
19466
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
19467
fi
 
19468
 
 
19469
# Have a temporary directory for convenience.  Make it in the build tree
 
19470
# simply because there is no reason to put it here, and in addition,
 
19471
# creating and moving files from /tmp can sometimes cause problems.
 
19472
# Create a temporary directory, and hook for its removal unless debugging.
 
19473
$debug ||
 
19474
{
 
19475
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
19476
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
19477
}
 
19478
 
 
19479
# Create a (secure) tmp directory for tmp files.
 
19480
 
 
19481
{
 
19482
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
19483
  test -n "$tmp" && test -d "$tmp"
 
19484
}  ||
 
19485
{
 
19486
  tmp=./confstat$$-$RANDOM
 
19487
  (umask 077 && mkdir $tmp)
 
19488
} ||
 
19489
{
 
19490
   echo "$me: cannot create a temporary directory in ." >&2
 
19491
   { (exit 1); exit 1; }
 
19492
}
 
19493
 
 
19494
_ACEOF
 
19495
 
 
19496
cat >>$CONFIG_STATUS <<_ACEOF
 
19497
 
 
19498
#
 
19499
# CONFIG_FILES section.
 
19500
#
 
19501
 
 
19502
# No need to generate the scripts if there are no CONFIG_FILES.
 
19503
# This happens for instance when ./config.status config.h
 
19504
if test -n "\$CONFIG_FILES"; then
 
19505
  # Protect against being on the right side of a sed subst in config.status.
 
19506
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
19507
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
19508
s,@SHELL@,$SHELL,;t t
 
19509
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
19510
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
19511
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
19512
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
19513
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
19514
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
19515
s,@exec_prefix@,$exec_prefix,;t t
 
19516
s,@prefix@,$prefix,;t t
 
19517
s,@program_transform_name@,$program_transform_name,;t t
 
19518
s,@bindir@,$bindir,;t t
 
19519
s,@sbindir@,$sbindir,;t t
 
19520
s,@libexecdir@,$libexecdir,;t t
 
19521
s,@datadir@,$datadir,;t t
 
19522
s,@sysconfdir@,$sysconfdir,;t t
 
19523
s,@sharedstatedir@,$sharedstatedir,;t t
 
19524
s,@localstatedir@,$localstatedir,;t t
 
19525
s,@libdir@,$libdir,;t t
 
19526
s,@includedir@,$includedir,;t t
 
19527
s,@oldincludedir@,$oldincludedir,;t t
 
19528
s,@infodir@,$infodir,;t t
 
19529
s,@mandir@,$mandir,;t t
 
19530
s,@build_alias@,$build_alias,;t t
 
19531
s,@host_alias@,$host_alias,;t t
 
19532
s,@target_alias@,$target_alias,;t t
 
19533
s,@DEFS@,$DEFS,;t t
 
19534
s,@ECHO_C@,$ECHO_C,;t t
 
19535
s,@ECHO_N@,$ECHO_N,;t t
 
19536
s,@ECHO_T@,$ECHO_T,;t t
 
19537
s,@LIBS@,$LIBS,;t t
 
19538
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
19539
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
19540
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
19541
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
19542
s,@PACKAGE@,$PACKAGE,;t t
 
19543
s,@VERSION@,$VERSION,;t t
 
19544
s,@ACLOCAL@,$ACLOCAL,;t t
 
19545
s,@AUTOCONF@,$AUTOCONF,;t t
 
19546
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
19547
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
19548
s,@MAKEINFO@,$MAKEINFO,;t t
 
19549
s,@install_sh@,$install_sh,;t t
 
19550
s,@STRIP@,$STRIP,;t t
 
19551
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
19552
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
19553
s,@mkdir_p@,$mkdir_p,;t t
 
19554
s,@AWK@,$AWK,;t t
 
19555
s,@SET_MAKE@,$SET_MAKE,;t t
 
19556
s,@am__leading_dot@,$am__leading_dot,;t t
 
19557
s,@AMTAR@,$AMTAR,;t t
 
19558
s,@am__tar@,$am__tar,;t t
 
19559
s,@am__untar@,$am__untar,;t t
 
19560
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
19561
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
19562
s,@MAINT@,$MAINT,;t t
 
19563
s,@CC@,$CC,;t t
 
19564
s,@CFLAGS@,$CFLAGS,;t t
 
19565
s,@LDFLAGS@,$LDFLAGS,;t t
 
19566
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
19567
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
19568
s,@EXEEXT@,$EXEEXT,;t t
 
19569
s,@OBJEXT@,$OBJEXT,;t t
 
19570
s,@DEPDIR@,$DEPDIR,;t t
 
19571
s,@am__include@,$am__include,;t t
 
19572
s,@am__quote@,$am__quote,;t t
 
19573
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
19574
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
19575
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
19576
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
19577
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
19578
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
19579
s,@CXX@,$CXX,;t t
 
19580
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
19581
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
19582
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
19583
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
19584
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
19585
s,@build@,$build,;t t
 
19586
s,@build_cpu@,$build_cpu,;t t
 
19587
s,@build_vendor@,$build_vendor,;t t
 
19588
s,@build_os@,$build_os,;t t
 
19589
s,@host@,$host,;t t
 
19590
s,@host_cpu@,$host_cpu,;t t
 
19591
s,@host_vendor@,$host_vendor,;t t
 
19592
s,@host_os@,$host_os,;t t
 
19593
s,@EGREP@,$EGREP,;t t
 
19594
s,@LN_S@,$LN_S,;t t
 
19595
s,@ECHO@,$ECHO,;t t
 
19596
s,@AR@,$AR,;t t
 
19597
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
19598
s,@RANLIB@,$RANLIB,;t t
 
19599
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
19600
s,@DLLTOOL@,$DLLTOOL,;t t
 
19601
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
 
19602
s,@AS@,$AS,;t t
 
19603
s,@ac_ct_AS@,$ac_ct_AS,;t t
 
19604
s,@OBJDUMP@,$OBJDUMP,;t t
 
19605
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
 
19606
s,@CPP@,$CPP,;t t
 
19607
s,@CXXCPP@,$CXXCPP,;t t
 
19608
s,@F77@,$F77,;t t
 
19609
s,@FFLAGS@,$FFLAGS,;t t
 
19610
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
19611
s,@LIBTOOL@,$LIBTOOL,;t t
 
19612
s,@DEFAULT_INCLUDES@,$DEFAULT_INCLUDES,;t t
 
19613
s,@PORTAUDIO_ROOT@,$PORTAUDIO_ROOT,;t t
 
19614
s,@LT_VERSION_INFO@,$LT_VERSION_INFO,;t t
 
19615
s,@LIBOBJS@,$LIBOBJS,;t t
 
19616
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
19617
CEOF
 
19618
 
 
19619
_ACEOF
 
19620
 
 
19621
  cat >>$CONFIG_STATUS <<\_ACEOF
 
19622
  # Split the substitutions into bite-sized pieces for seds with
 
19623
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
19624
  ac_max_sed_lines=48
 
19625
  ac_sed_frag=1 # Number of current file.
 
19626
  ac_beg=1 # First line for current file.
 
19627
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
19628
  ac_more_lines=:
 
19629
  ac_sed_cmds=
 
19630
  while $ac_more_lines; do
 
19631
    if test $ac_beg -gt 1; then
 
19632
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
19633
    else
 
19634
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
19635
    fi
 
19636
    if test ! -s $tmp/subs.frag; then
 
19637
      ac_more_lines=false
 
19638
    else
 
19639
      # The purpose of the label and of the branching condition is to
 
19640
      # speed up the sed processing (if there are no `@' at all, there
 
19641
      # is no need to browse any of the substitutions).
 
19642
      # These are the two extra sed commands mentioned above.
 
19643
      (echo ':t
 
19644
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
19645
      if test -z "$ac_sed_cmds"; then
 
19646
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
19647
      else
 
19648
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
19649
      fi
 
19650
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
19651
      ac_beg=$ac_end
 
19652
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
19653
    fi
 
19654
  done
 
19655
  if test -z "$ac_sed_cmds"; then
 
19656
    ac_sed_cmds=cat
 
19657
  fi
 
19658
fi # test -n "$CONFIG_FILES"
 
19659
 
 
19660
_ACEOF
 
19661
cat >>$CONFIG_STATUS <<\_ACEOF
 
19662
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
19663
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
19664
  case $ac_file in
 
19665
  - | *:- | *:-:* ) # input from stdin
 
19666
        cat >$tmp/stdin
 
19667
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
19668
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
19669
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
19670
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
19671
  * )   ac_file_in=$ac_file.in ;;
 
19672
  esac
 
19673
 
 
19674
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
19675
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
19676
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19677
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
19678
         X"$ac_file" : 'X\(//\)$' \| \
 
19679
         X"$ac_file" : 'X\(/\)' \| \
 
19680
         .     : '\(.\)' 2>/dev/null ||
 
19681
echo X"$ac_file" |
 
19682
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19683
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19684
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19685
          /^X\(\/\).*/{ s//\1/; q; }
 
19686
          s/.*/./; q'`
 
19687
  { if $as_mkdir_p; then
 
19688
    mkdir -p "$ac_dir"
 
19689
  else
 
19690
    as_dir="$ac_dir"
 
19691
    as_dirs=
 
19692
    while test ! -d "$as_dir"; do
 
19693
      as_dirs="$as_dir $as_dirs"
 
19694
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
19695
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19696
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19697
         X"$as_dir" : 'X\(//\)$' \| \
 
19698
         X"$as_dir" : 'X\(/\)' \| \
 
19699
         .     : '\(.\)' 2>/dev/null ||
 
19700
echo X"$as_dir" |
 
19701
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19702
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19703
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19704
          /^X\(\/\).*/{ s//\1/; q; }
 
19705
          s/.*/./; q'`
 
19706
    done
 
19707
    test ! -n "$as_dirs" || mkdir $as_dirs
 
19708
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
19709
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
19710
   { (exit 1); exit 1; }; }; }
 
19711
 
 
19712
  ac_builddir=.
 
19713
 
 
19714
if test "$ac_dir" != .; then
 
19715
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
19716
  # A "../" for each directory in $ac_dir_suffix.
 
19717
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
19718
else
 
19719
  ac_dir_suffix= ac_top_builddir=
 
19720
fi
 
19721
 
 
19722
case $srcdir in
 
19723
  .)  # No --srcdir option.  We are building in place.
 
19724
    ac_srcdir=.
 
19725
    if test -z "$ac_top_builddir"; then
 
19726
       ac_top_srcdir=.
 
19727
    else
 
19728
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
19729
    fi ;;
 
19730
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
19731
    ac_srcdir=$srcdir$ac_dir_suffix;
 
19732
    ac_top_srcdir=$srcdir ;;
 
19733
  *) # Relative path.
 
19734
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
19735
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
19736
esac
 
19737
 
 
19738
# Do not use `cd foo && pwd` to compute absolute paths, because
 
19739
# the directories may not exist.
 
19740
case `pwd` in
 
19741
.) ac_abs_builddir="$ac_dir";;
 
19742
*)
 
19743
  case "$ac_dir" in
 
19744
  .) ac_abs_builddir=`pwd`;;
 
19745
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
19746
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
19747
  esac;;
 
19748
esac
 
19749
case $ac_abs_builddir in
 
19750
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
19751
*)
 
19752
  case ${ac_top_builddir}. in
 
19753
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
19754
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
19755
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
19756
  esac;;
 
19757
esac
 
19758
case $ac_abs_builddir in
 
19759
.) ac_abs_srcdir=$ac_srcdir;;
 
19760
*)
 
19761
  case $ac_srcdir in
 
19762
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
19763
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
19764
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
19765
  esac;;
 
19766
esac
 
19767
case $ac_abs_builddir in
 
19768
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
19769
*)
 
19770
  case $ac_top_srcdir in
 
19771
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
19772
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
19773
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
19774
  esac;;
 
19775
esac
 
19776
 
 
19777
 
 
19778
  case $INSTALL in
 
19779
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
19780
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
19781
  esac
 
19782
 
 
19783
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
19784
  # use $as_me), people would be surprised to read:
 
19785
  #    /* config.h.  Generated by config.status.  */
 
19786
  if test x"$ac_file" = x-; then
 
19787
    configure_input=
 
19788
  else
 
19789
    configure_input="$ac_file.  "
 
19790
  fi
 
19791
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
19792
                                     sed 's,.*/,,'` by configure."
 
19793
 
 
19794
  # First look for the input files in the build tree, otherwise in the
 
19795
  # src tree.
 
19796
  ac_file_inputs=`IFS=:
 
19797
    for f in $ac_file_in; do
 
19798
      case $f in
 
19799
      -) echo $tmp/stdin ;;
 
19800
      [\\/$]*)
 
19801
         # Absolute (can't be DOS-style, as IFS=:)
 
19802
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
19803
echo "$as_me: error: cannot find input file: $f" >&2;}
 
19804
   { (exit 1); exit 1; }; }
 
19805
         echo "$f";;
 
19806
      *) # Relative
 
19807
         if test -f "$f"; then
 
19808
           # Build tree
 
19809
           echo "$f"
 
19810
         elif test -f "$srcdir/$f"; then
 
19811
           # Source tree
 
19812
           echo "$srcdir/$f"
 
19813
         else
 
19814
           # /dev/null tree
 
19815
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
19816
echo "$as_me: error: cannot find input file: $f" >&2;}
 
19817
   { (exit 1); exit 1; }; }
 
19818
         fi;;
 
19819
      esac
 
19820
    done` || { (exit 1); exit 1; }
 
19821
 
 
19822
  if test x"$ac_file" != x-; then
 
19823
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
19824
echo "$as_me: creating $ac_file" >&6;}
 
19825
    rm -f "$ac_file"
 
19826
  fi
 
19827
_ACEOF
 
19828
cat >>$CONFIG_STATUS <<_ACEOF
 
19829
  sed "$ac_vpsub
 
19830
$extrasub
 
19831
_ACEOF
 
19832
cat >>$CONFIG_STATUS <<\_ACEOF
 
19833
:t
 
19834
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
19835
s,@configure_input@,$configure_input,;t t
 
19836
s,@srcdir@,$ac_srcdir,;t t
 
19837
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
19838
s,@top_srcdir@,$ac_top_srcdir,;t t
 
19839
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
19840
s,@builddir@,$ac_builddir,;t t
 
19841
s,@abs_builddir@,$ac_abs_builddir,;t t
 
19842
s,@top_builddir@,$ac_top_builddir,;t t
 
19843
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
19844
s,@INSTALL@,$ac_INSTALL,;t t
 
19845
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
19846
  rm -f $tmp/stdin
 
19847
  if test x"$ac_file" != x-; then
 
19848
    mv $tmp/out $ac_file
 
19849
  else
 
19850
    cat $tmp/out
 
19851
    rm -f $tmp/out
 
19852
  fi
 
19853
 
 
19854
done
 
19855
_ACEOF
 
19856
cat >>$CONFIG_STATUS <<\_ACEOF
 
19857
 
 
19858
#
 
19859
# CONFIG_COMMANDS section.
 
19860
#
 
19861
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
19862
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
19863
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
19864
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
19865
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19866
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
19867
         X"$ac_dest" : 'X\(//\)$' \| \
 
19868
         X"$ac_dest" : 'X\(/\)' \| \
 
19869
         .     : '\(.\)' 2>/dev/null ||
 
19870
echo X"$ac_dest" |
 
19871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19874
          /^X\(\/\).*/{ s//\1/; q; }
 
19875
          s/.*/./; q'`
 
19876
  { if $as_mkdir_p; then
 
19877
    mkdir -p "$ac_dir"
 
19878
  else
 
19879
    as_dir="$ac_dir"
 
19880
    as_dirs=
 
19881
    while test ! -d "$as_dir"; do
 
19882
      as_dirs="$as_dir $as_dirs"
 
19883
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
19884
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19885
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19886
         X"$as_dir" : 'X\(//\)$' \| \
 
19887
         X"$as_dir" : 'X\(/\)' \| \
 
19888
         .     : '\(.\)' 2>/dev/null ||
 
19889
echo X"$as_dir" |
 
19890
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19891
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19892
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19893
          /^X\(\/\).*/{ s//\1/; q; }
 
19894
          s/.*/./; q'`
 
19895
    done
 
19896
    test ! -n "$as_dirs" || mkdir $as_dirs
 
19897
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
19898
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
19899
   { (exit 1); exit 1; }; }; }
 
19900
 
 
19901
  ac_builddir=.
 
19902
 
 
19903
if test "$ac_dir" != .; then
 
19904
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
19905
  # A "../" for each directory in $ac_dir_suffix.
 
19906
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
19907
else
 
19908
  ac_dir_suffix= ac_top_builddir=
 
19909
fi
 
19910
 
 
19911
case $srcdir in
 
19912
  .)  # No --srcdir option.  We are building in place.
 
19913
    ac_srcdir=.
 
19914
    if test -z "$ac_top_builddir"; then
 
19915
       ac_top_srcdir=.
 
19916
    else
 
19917
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
19918
    fi ;;
 
19919
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
19920
    ac_srcdir=$srcdir$ac_dir_suffix;
 
19921
    ac_top_srcdir=$srcdir ;;
 
19922
  *) # Relative path.
 
19923
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
19924
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
19925
esac
 
19926
 
 
19927
# Do not use `cd foo && pwd` to compute absolute paths, because
 
19928
# the directories may not exist.
 
19929
case `pwd` in
 
19930
.) ac_abs_builddir="$ac_dir";;
 
19931
*)
 
19932
  case "$ac_dir" in
 
19933
  .) ac_abs_builddir=`pwd`;;
 
19934
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
19935
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
19936
  esac;;
 
19937
esac
 
19938
case $ac_abs_builddir in
 
19939
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
19940
*)
 
19941
  case ${ac_top_builddir}. in
 
19942
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
19943
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
19944
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
19945
  esac;;
 
19946
esac
 
19947
case $ac_abs_builddir in
 
19948
.) ac_abs_srcdir=$ac_srcdir;;
 
19949
*)
 
19950
  case $ac_srcdir in
 
19951
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
19952
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
19953
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
19954
  esac;;
 
19955
esac
 
19956
case $ac_abs_builddir in
 
19957
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
19958
*)
 
19959
  case $ac_top_srcdir in
 
19960
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
19961
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
19962
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
19963
  esac;;
 
19964
esac
 
19965
 
 
19966
 
 
19967
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
19968
echo "$as_me: executing $ac_dest commands" >&6;}
 
19969
  case $ac_dest in
 
19970
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
19971
  # Strip MF so we end up with the name of the file.
 
19972
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
19973
  # Check whether this is an Automake generated Makefile or not.
 
19974
  # We used to match only the files named `Makefile.in', but
 
19975
  # some people rename them; so instead we look at the file content.
 
19976
  # Grep'ing the first line is not enough: some people post-process
 
19977
  # each Makefile.in and add a new line on top of each file to say so.
 
19978
  # So let's grep whole file.
 
19979
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
19980
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
19981
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19982
         X"$mf" : 'X\(//\)[^/]' \| \
 
19983
         X"$mf" : 'X\(//\)$' \| \
 
19984
         X"$mf" : 'X\(/\)' \| \
 
19985
         .     : '\(.\)' 2>/dev/null ||
 
19986
echo X"$mf" |
 
19987
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19988
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19989
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19990
          /^X\(\/\).*/{ s//\1/; q; }
 
19991
          s/.*/./; q'`
 
19992
  else
 
19993
    continue
 
19994
  fi
 
19995
  # Extract the definition of DEPDIR, am__include, and am__quote
 
19996
  # from the Makefile without running `make'.
 
19997
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
19998
  test -z "$DEPDIR" && continue
 
19999
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
20000
  test -z "am__include" && continue
 
20001
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
20002
  # When using ansi2knr, U may be empty or an underscore; expand it
 
20003
  U=`sed -n 's/^U = //p' < "$mf"`
 
20004
  # Find all dependency output files, they are included files with
 
20005
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
20006
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
20007
  # expansion.
 
20008
  for file in `sed -n "
 
20009
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
20010
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
20011
    # Make sure the directory exists.
 
20012
    test -f "$dirpart/$file" && continue
 
20013
    fdir=`(dirname "$file") 2>/dev/null ||
 
20014
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20015
         X"$file" : 'X\(//\)[^/]' \| \
 
20016
         X"$file" : 'X\(//\)$' \| \
 
20017
         X"$file" : 'X\(/\)' \| \
 
20018
         .     : '\(.\)' 2>/dev/null ||
 
20019
echo X"$file" |
 
20020
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20021
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20022
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20023
          /^X\(\/\).*/{ s//\1/; q; }
 
20024
          s/.*/./; q'`
 
20025
    { if $as_mkdir_p; then
 
20026
    mkdir -p $dirpart/$fdir
 
20027
  else
 
20028
    as_dir=$dirpart/$fdir
 
20029
    as_dirs=
 
20030
    while test ! -d "$as_dir"; do
 
20031
      as_dirs="$as_dir $as_dirs"
 
20032
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20033
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20034
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20035
         X"$as_dir" : 'X\(//\)$' \| \
 
20036
         X"$as_dir" : 'X\(/\)' \| \
 
20037
         .     : '\(.\)' 2>/dev/null ||
 
20038
echo X"$as_dir" |
 
20039
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20040
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20041
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20042
          /^X\(\/\).*/{ s//\1/; q; }
 
20043
          s/.*/./; q'`
 
20044
    done
 
20045
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20046
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
20047
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
20048
   { (exit 1); exit 1; }; }; }
 
20049
 
 
20050
    # echo "creating $dirpart/$file"
 
20051
    echo '# dummy' > "$dirpart/$file"
 
20052
  done
 
20053
done
 
20054
 ;;
 
20055
  esac
 
20056
done
 
20057
_ACEOF
 
20058
 
 
20059
cat >>$CONFIG_STATUS <<\_ACEOF
 
20060
 
 
20061
{ (exit 0); exit 0; }
 
20062
_ACEOF
 
20063
chmod +x $CONFIG_STATUS
 
20064
ac_clean_files=$ac_clean_files_save
 
20065
 
 
20066
 
 
20067
# configure is writing to config.log, and then calls config.status.
 
20068
# config.status does its own redirection, appending to config.log.
 
20069
# Unfortunately, on DOS this fails, as config.log is still kept open
 
20070
# by configure, so config.status won't be able to write to it; its
 
20071
# output is simply discarded.  So we exec the FD to /dev/null,
 
20072
# effectively closing config.log, so it can be properly (re)opened and
 
20073
# appended to by config.status.  When coming back to configure, we
 
20074
# need to make the FD available again.
 
20075
if test "$no_create" != yes; then
 
20076
  ac_cs_success=:
 
20077
  ac_config_status_args=
 
20078
  test "$silent" = yes &&
 
20079
    ac_config_status_args="$ac_config_status_args --quiet"
 
20080
  exec 5>/dev/null
 
20081
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
20082
  exec 5>>config.log
 
20083
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
20084
  # would make configure fail if this is the last instruction.
 
20085
  $ac_cs_success || { (exit 1); exit 1; }
 
20086
fi
 
20087