~ubuntu-branches/ubuntu/lucid/libxpm/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Stone
  • Date: 2005-07-23 01:33:31 UTC
  • Revision ID: james.westby@ubuntu.com-20050723013331-3azqgwnbdc7sjosd
Tags: upstream-3.5.2
ImportĀ upstreamĀ versionĀ 3.5.2

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 libXpm 3.5.2.
 
4
#
 
5
# Report bugs to <daniel@freedesktop.org>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
 
 
247
# Check that we are running under the correct shell.
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
 
 
250
case X$ECHO in
 
251
X*--fallback-echo)
 
252
  # Remove one level of quotation (which was required for Make).
 
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
254
  ;;
 
255
esac
 
256
 
 
257
echo=${ECHO-echo}
 
258
if test "X$1" = X--no-reexec; then
 
259
  # Discard the --no-reexec flag, and continue.
 
260
  shift
 
261
elif test "X$1" = X--fallback-echo; then
 
262
  # Avoid inline document here, it may be left over
 
263
  :
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $echo works!
 
266
  :
 
267
else
 
268
  # Restart under the correct shell.
 
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
270
fi
 
271
 
 
272
if test "X$1" = X--fallback-echo; then
 
273
  # used as fallback echo
 
274
  shift
 
275
  cat <<EOF
 
276
$*
 
277
EOF
 
278
  exit 0
 
279
fi
 
280
 
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
282
# if CDPATH is set.
 
283
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
284
 
 
285
if test -z "$ECHO"; then
 
286
if test "X${echo_test_string+set}" != Xset; then
 
287
# find a string as large as possible, as long as the shell can cope with it
 
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
290
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
291
       echo_test_string="`eval $cmd`" &&
 
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
293
    then
 
294
      break
 
295
    fi
 
296
  done
 
297
fi
 
298
 
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
302
  :
 
303
else
 
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
305
  # backslashes.  This makes it impossible to quote backslashes using
 
306
  #   echo "$something" | sed 's/\\/\\\\/g'
 
307
  #
 
308
  # So, first we look for a working echo in the user's PATH.
 
309
 
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
 
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
317
      echo="$dir/echo"
 
318
      break
 
319
    fi
 
320
  done
 
321
  IFS="$lt_save_ifs"
 
322
 
 
323
  if test "X$echo" = Xecho; then
 
324
    # We didn't find a better echo, so look for alternatives.
 
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      # This shell has a builtin print -r that does the trick.
 
329
      echo='print -r'
 
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
332
      # If we have ksh, try running configure again with it.
 
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
334
      export ORIGINAL_CONFIG_SHELL
 
335
      CONFIG_SHELL=/bin/ksh
 
336
      export CONFIG_SHELL
 
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
338
    else
 
339
      # Try using printf.
 
340
      echo='printf %s\n'
 
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
344
        # Cool, printf works
 
345
        :
 
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = 'X\t' &&
 
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
351
        export CONFIG_SHELL
 
352
        SHELL="$CONFIG_SHELL"
 
353
        export SHELL
 
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
360
      else
 
361
        # maybe with a smaller string...
 
362
        prev=:
 
363
 
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
366
          then
 
367
            break
 
368
          fi
 
369
          prev="$cmd"
 
370
        done
 
371
 
 
372
        if test "$prev" != 'sed 50q "$0"'; then
 
373
          echo_test_string=`eval $prev`
 
374
          export echo_test_string
 
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
376
        else
 
377
          # Oops.  We lost completely, so just stick with echo.
 
378
          echo=echo
 
379
        fi
 
380
      fi
 
381
    fi
 
382
  fi
 
383
fi
 
384
fi
 
385
 
 
386
# Copy echo and quote the copy suitably for passing to libtool from
 
387
# the Makefile, instead of quoting the original, which is used later.
 
388
ECHO=$echo
 
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
391
fi
 
392
 
 
393
 
 
394
 
 
395
 
 
396
tagnames=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
 
400
# Name of the host.
 
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
402
# so uname gets run too.
 
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
404
 
 
405
exec 6>&1
 
406
 
 
407
#
 
408
# Initializations.
 
409
#
 
410
ac_default_prefix=/usr/local
 
411
ac_config_libobj_dir=.
 
412
cross_compiling=no
 
413
subdirs=
 
414
MFLAGS=
 
415
MAKEFLAGS=
 
416
SHELL=${CONFIG_SHELL-/bin/sh}
 
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
 
423
# Identity of this package.
 
424
PACKAGE_NAME='libXpm'
 
425
PACKAGE_TARNAME='libXpm'
 
426
PACKAGE_VERSION='3.5.2'
 
427
PACKAGE_STRING='libXpm 3.5.2'
 
428
PACKAGE_BUGREPORT='daniel@freedesktop.org'
 
429
 
 
430
ac_unique_file="Makefile.am"
 
431
# Factoring default headers for most tests.
 
432
ac_includes_default="\
 
433
#include <stdio.h>
 
434
#if HAVE_SYS_TYPES_H
 
435
# include <sys/types.h>
 
436
#endif
 
437
#if HAVE_SYS_STAT_H
 
438
# include <sys/stat.h>
 
439
#endif
 
440
#if STDC_HEADERS
 
441
# include <stdlib.h>
 
442
# include <stddef.h>
 
443
#else
 
444
# if HAVE_STDLIB_H
 
445
#  include <stdlib.h>
 
446
# endif
 
447
#endif
 
448
#if HAVE_STRING_H
 
449
# if !STDC_HEADERS && HAVE_MEMORY_H
 
450
#  include <memory.h>
 
451
# endif
 
452
# include <string.h>
 
453
#endif
 
454
#if HAVE_STRINGS_H
 
455
# include <strings.h>
 
456
#endif
 
457
#if HAVE_INTTYPES_H
 
458
# include <inttypes.h>
 
459
#else
 
460
# if HAVE_STDINT_H
 
461
#  include <stdint.h>
 
462
# endif
 
463
#endif
 
464
#if HAVE_UNISTD_H
 
465
# include <unistd.h>
 
466
#endif"
 
467
 
 
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XPM_CFLAGS XPM_LIBS SXPM_CFLAGS SXPM_LIBS BUILD_SXPM_TRUE BUILD_SXPM_FALSE LIBOBJS LTLIBOBJS'
 
469
ac_subst_files=''
 
470
 
 
471
# Initialize some variables set by options.
 
472
ac_init_help=
 
473
ac_init_version=false
 
474
# The variables have the same names as the options, with
 
475
# dashes changed to underlines.
 
476
cache_file=/dev/null
 
477
exec_prefix=NONE
 
478
no_create=
 
479
no_recursion=
 
480
prefix=NONE
 
481
program_prefix=NONE
 
482
program_suffix=NONE
 
483
program_transform_name=s,x,x,
 
484
silent=
 
485
site=
 
486
srcdir=
 
487
verbose=
 
488
x_includes=NONE
 
489
x_libraries=NONE
 
490
 
 
491
# Installation directory options.
 
492
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
493
# and all the variables that are supposed to be based on exec_prefix
 
494
# by default will actually change.
 
495
# Use braces instead of parens because sh, perl, etc. also accept them.
 
496
bindir='${exec_prefix}/bin'
 
497
sbindir='${exec_prefix}/sbin'
 
498
libexecdir='${exec_prefix}/libexec'
 
499
datadir='${prefix}/share'
 
500
sysconfdir='${prefix}/etc'
 
501
sharedstatedir='${prefix}/com'
 
502
localstatedir='${prefix}/var'
 
503
libdir='${exec_prefix}/lib'
 
504
includedir='${prefix}/include'
 
505
oldincludedir='/usr/include'
 
506
infodir='${prefix}/info'
 
507
mandir='${prefix}/man'
 
508
 
 
509
ac_prev=
 
510
for ac_option
 
511
do
 
512
  # If the previous option needs an argument, assign it.
 
513
  if test -n "$ac_prev"; then
 
514
    eval "$ac_prev=\$ac_option"
 
515
    ac_prev=
 
516
    continue
 
517
  fi
 
518
 
 
519
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
520
 
 
521
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
522
 
 
523
  case $ac_option in
 
524
 
 
525
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
526
    ac_prev=bindir ;;
 
527
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
528
    bindir=$ac_optarg ;;
 
529
 
 
530
  -build | --build | --buil | --bui | --bu)
 
531
    ac_prev=build_alias ;;
 
532
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
533
    build_alias=$ac_optarg ;;
 
534
 
 
535
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
536
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
537
    ac_prev=cache_file ;;
 
538
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
539
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
540
    cache_file=$ac_optarg ;;
 
541
 
 
542
  --config-cache | -C)
 
543
    cache_file=config.cache ;;
 
544
 
 
545
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
546
    ac_prev=datadir ;;
 
547
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
548
  | --da=*)
 
549
    datadir=$ac_optarg ;;
 
550
 
 
551
  -disable-* | --disable-*)
 
552
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
553
    # Reject names that are not valid shell variable names.
 
554
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
555
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
556
   { (exit 1); exit 1; }; }
 
557
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
558
    eval "enable_$ac_feature=no" ;;
 
559
 
 
560
  -enable-* | --enable-*)
 
561
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
562
    # Reject names that are not valid shell variable names.
 
563
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
564
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
565
   { (exit 1); exit 1; }; }
 
566
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
567
    case $ac_option in
 
568
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
569
      *) ac_optarg=yes ;;
 
570
    esac
 
571
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
572
 
 
573
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
574
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
575
  | --exec | --exe | --ex)
 
576
    ac_prev=exec_prefix ;;
 
577
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
578
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
579
  | --exec=* | --exe=* | --ex=*)
 
580
    exec_prefix=$ac_optarg ;;
 
581
 
 
582
  -gas | --gas | --ga | --g)
 
583
    # Obsolete; use --with-gas.
 
584
    with_gas=yes ;;
 
585
 
 
586
  -help | --help | --hel | --he | -h)
 
587
    ac_init_help=long ;;
 
588
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
589
    ac_init_help=recursive ;;
 
590
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
591
    ac_init_help=short ;;
 
592
 
 
593
  -host | --host | --hos | --ho)
 
594
    ac_prev=host_alias ;;
 
595
  -host=* | --host=* | --hos=* | --ho=*)
 
596
    host_alias=$ac_optarg ;;
 
597
 
 
598
  -includedir | --includedir | --includedi | --included | --include \
 
599
  | --includ | --inclu | --incl | --inc)
 
600
    ac_prev=includedir ;;
 
601
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
602
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
603
    includedir=$ac_optarg ;;
 
604
 
 
605
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
606
    ac_prev=infodir ;;
 
607
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
608
    infodir=$ac_optarg ;;
 
609
 
 
610
  -libdir | --libdir | --libdi | --libd)
 
611
    ac_prev=libdir ;;
 
612
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
613
    libdir=$ac_optarg ;;
 
614
 
 
615
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
616
  | --libexe | --libex | --libe)
 
617
    ac_prev=libexecdir ;;
 
618
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
619
  | --libexe=* | --libex=* | --libe=*)
 
620
    libexecdir=$ac_optarg ;;
 
621
 
 
622
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
623
  | --localstate | --localstat | --localsta | --localst \
 
624
  | --locals | --local | --loca | --loc | --lo)
 
625
    ac_prev=localstatedir ;;
 
626
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
627
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
628
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
629
    localstatedir=$ac_optarg ;;
 
630
 
 
631
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
632
    ac_prev=mandir ;;
 
633
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
634
    mandir=$ac_optarg ;;
 
635
 
 
636
  -nfp | --nfp | --nf)
 
637
    # Obsolete; use --without-fp.
 
638
    with_fp=no ;;
 
639
 
 
640
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
641
  | --no-cr | --no-c | -n)
 
642
    no_create=yes ;;
 
643
 
 
644
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
645
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
646
    no_recursion=yes ;;
 
647
 
 
648
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
649
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
650
  | --oldin | --oldi | --old | --ol | --o)
 
651
    ac_prev=oldincludedir ;;
 
652
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
653
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
654
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
655
    oldincludedir=$ac_optarg ;;
 
656
 
 
657
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
658
    ac_prev=prefix ;;
 
659
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
660
    prefix=$ac_optarg ;;
 
661
 
 
662
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
663
  | --program-pre | --program-pr | --program-p)
 
664
    ac_prev=program_prefix ;;
 
665
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
666
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
667
    program_prefix=$ac_optarg ;;
 
668
 
 
669
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
670
  | --program-suf | --program-su | --program-s)
 
671
    ac_prev=program_suffix ;;
 
672
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
673
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
674
    program_suffix=$ac_optarg ;;
 
675
 
 
676
  -program-transform-name | --program-transform-name \
 
677
  | --program-transform-nam | --program-transform-na \
 
678
  | --program-transform-n | --program-transform- \
 
679
  | --program-transform | --program-transfor \
 
680
  | --program-transfo | --program-transf \
 
681
  | --program-trans | --program-tran \
 
682
  | --progr-tra | --program-tr | --program-t)
 
683
    ac_prev=program_transform_name ;;
 
684
  -program-transform-name=* | --program-transform-name=* \
 
685
  | --program-transform-nam=* | --program-transform-na=* \
 
686
  | --program-transform-n=* | --program-transform-=* \
 
687
  | --program-transform=* | --program-transfor=* \
 
688
  | --program-transfo=* | --program-transf=* \
 
689
  | --program-trans=* | --program-tran=* \
 
690
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
691
    program_transform_name=$ac_optarg ;;
 
692
 
 
693
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
694
  | -silent | --silent | --silen | --sile | --sil)
 
695
    silent=yes ;;
 
696
 
 
697
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
698
    ac_prev=sbindir ;;
 
699
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
700
  | --sbi=* | --sb=*)
 
701
    sbindir=$ac_optarg ;;
 
702
 
 
703
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
704
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
705
  | --sharedst | --shareds | --shared | --share | --shar \
 
706
  | --sha | --sh)
 
707
    ac_prev=sharedstatedir ;;
 
708
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
709
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
710
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
711
  | --sha=* | --sh=*)
 
712
    sharedstatedir=$ac_optarg ;;
 
713
 
 
714
  -site | --site | --sit)
 
715
    ac_prev=site ;;
 
716
  -site=* | --site=* | --sit=*)
 
717
    site=$ac_optarg ;;
 
718
 
 
719
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
720
    ac_prev=srcdir ;;
 
721
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
722
    srcdir=$ac_optarg ;;
 
723
 
 
724
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
725
  | --syscon | --sysco | --sysc | --sys | --sy)
 
726
    ac_prev=sysconfdir ;;
 
727
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
728
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
729
    sysconfdir=$ac_optarg ;;
 
730
 
 
731
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
732
    ac_prev=target_alias ;;
 
733
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
734
    target_alias=$ac_optarg ;;
 
735
 
 
736
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
737
    verbose=yes ;;
 
738
 
 
739
  -version | --version | --versio | --versi | --vers | -V)
 
740
    ac_init_version=: ;;
 
741
 
 
742
  -with-* | --with-*)
 
743
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
744
    # Reject names that are not valid shell variable names.
 
745
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
746
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
747
   { (exit 1); exit 1; }; }
 
748
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
749
    case $ac_option in
 
750
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
751
      *) ac_optarg=yes ;;
 
752
    esac
 
753
    eval "with_$ac_package='$ac_optarg'" ;;
 
754
 
 
755
  -without-* | --without-*)
 
756
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
757
    # Reject names that are not valid shell variable names.
 
758
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
759
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
760
   { (exit 1); exit 1; }; }
 
761
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
762
    eval "with_$ac_package=no" ;;
 
763
 
 
764
  --x)
 
765
    # Obsolete; use --with-x.
 
766
    with_x=yes ;;
 
767
 
 
768
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
769
  | --x-incl | --x-inc | --x-in | --x-i)
 
770
    ac_prev=x_includes ;;
 
771
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
772
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
773
    x_includes=$ac_optarg ;;
 
774
 
 
775
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
776
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
777
    ac_prev=x_libraries ;;
 
778
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
779
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
780
    x_libraries=$ac_optarg ;;
 
781
 
 
782
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
783
Try \`$0 --help' for more information." >&2
 
784
   { (exit 1); exit 1; }; }
 
785
    ;;
 
786
 
 
787
  *=*)
 
788
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
789
    # Reject names that are not valid shell variable names.
 
790
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
791
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
792
   { (exit 1); exit 1; }; }
 
793
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
794
    eval "$ac_envvar='$ac_optarg'"
 
795
    export $ac_envvar ;;
 
796
 
 
797
  *)
 
798
    # FIXME: should be removed in autoconf 3.0.
 
799
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
800
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
801
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
802
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
803
    ;;
 
804
 
 
805
  esac
 
806
done
 
807
 
 
808
if test -n "$ac_prev"; then
 
809
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
810
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
811
   { (exit 1); exit 1; }; }
 
812
fi
 
813
 
 
814
# Be sure to have absolute paths.
 
815
for ac_var in exec_prefix prefix
 
816
do
 
817
  eval ac_val=$`echo $ac_var`
 
818
  case $ac_val in
 
819
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
820
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
821
   { (exit 1); exit 1; }; };;
 
822
  esac
 
823
done
 
824
 
 
825
# Be sure to have absolute paths.
 
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
827
              localstatedir libdir includedir oldincludedir infodir mandir
 
828
do
 
829
  eval ac_val=$`echo $ac_var`
 
830
  case $ac_val in
 
831
    [\\/$]* | ?:[\\/]* ) ;;
 
832
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
833
   { (exit 1); exit 1; }; };;
 
834
  esac
 
835
done
 
836
 
 
837
# There might be people who depend on the old broken behavior: `$host'
 
838
# used to hold the argument of --host etc.
 
839
# FIXME: To remove some day.
 
840
build=$build_alias
 
841
host=$host_alias
 
842
target=$target_alias
 
843
 
 
844
# FIXME: To remove some day.
 
845
if test "x$host_alias" != x; then
 
846
  if test "x$build_alias" = x; then
 
847
    cross_compiling=maybe
 
848
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
849
    If a cross compiler is detected then cross compile mode will be used." >&2
 
850
  elif test "x$build_alias" != "x$host_alias"; then
 
851
    cross_compiling=yes
 
852
  fi
 
853
fi
 
854
 
 
855
ac_tool_prefix=
 
856
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
857
 
 
858
test "$silent" = yes && exec 6>/dev/null
 
859
 
 
860
 
 
861
# Find the source files, if location was not specified.
 
862
if test -z "$srcdir"; then
 
863
  ac_srcdir_defaulted=yes
 
864
  # Try the directory containing this script, then its parent.
 
865
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
867
         X"$0" : 'X\(//\)[^/]' \| \
 
868
         X"$0" : 'X\(//\)$' \| \
 
869
         X"$0" : 'X\(/\)' \| \
 
870
         .     : '\(.\)' 2>/dev/null ||
 
871
echo X"$0" |
 
872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
874
          /^X\(\/\/\)$/{ s//\1/; q; }
 
875
          /^X\(\/\).*/{ s//\1/; q; }
 
876
          s/.*/./; q'`
 
877
  srcdir=$ac_confdir
 
878
  if test ! -r $srcdir/$ac_unique_file; then
 
879
    srcdir=..
 
880
  fi
 
881
else
 
882
  ac_srcdir_defaulted=no
 
883
fi
 
884
if test ! -r $srcdir/$ac_unique_file; then
 
885
  if test "$ac_srcdir_defaulted" = yes; then
 
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
887
   { (exit 1); exit 1; }; }
 
888
  else
 
889
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
890
   { (exit 1); exit 1; }; }
 
891
  fi
 
892
fi
 
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
894
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
895
   { (exit 1); exit 1; }; }
 
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
897
ac_env_build_alias_set=${build_alias+set}
 
898
ac_env_build_alias_value=$build_alias
 
899
ac_cv_env_build_alias_set=${build_alias+set}
 
900
ac_cv_env_build_alias_value=$build_alias
 
901
ac_env_host_alias_set=${host_alias+set}
 
902
ac_env_host_alias_value=$host_alias
 
903
ac_cv_env_host_alias_set=${host_alias+set}
 
904
ac_cv_env_host_alias_value=$host_alias
 
905
ac_env_target_alias_set=${target_alias+set}
 
906
ac_env_target_alias_value=$target_alias
 
907
ac_cv_env_target_alias_set=${target_alias+set}
 
908
ac_cv_env_target_alias_value=$target_alias
 
909
ac_env_CC_set=${CC+set}
 
910
ac_env_CC_value=$CC
 
911
ac_cv_env_CC_set=${CC+set}
 
912
ac_cv_env_CC_value=$CC
 
913
ac_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_env_CFLAGS_value=$CFLAGS
 
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
916
ac_cv_env_CFLAGS_value=$CFLAGS
 
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_env_LDFLAGS_value=$LDFLAGS
 
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
925
ac_env_CPP_set=${CPP+set}
 
926
ac_env_CPP_value=$CPP
 
927
ac_cv_env_CPP_set=${CPP+set}
 
928
ac_cv_env_CPP_value=$CPP
 
929
ac_env_CXX_set=${CXX+set}
 
930
ac_env_CXX_value=$CXX
 
931
ac_cv_env_CXX_set=${CXX+set}
 
932
ac_cv_env_CXX_value=$CXX
 
933
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
936
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
937
ac_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_env_CXXCPP_value=$CXXCPP
 
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
940
ac_cv_env_CXXCPP_value=$CXXCPP
 
941
ac_env_F77_set=${F77+set}
 
942
ac_env_F77_value=$F77
 
943
ac_cv_env_F77_set=${F77+set}
 
944
ac_cv_env_F77_value=$F77
 
945
ac_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_env_FFLAGS_value=$FFLAGS
 
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
948
ac_cv_env_FFLAGS_value=$FFLAGS
 
949
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
950
ac_env_PKG_CONFIG_value=$PKG_CONFIG
 
951
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
952
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
 
953
ac_env_XPM_CFLAGS_set=${XPM_CFLAGS+set}
 
954
ac_env_XPM_CFLAGS_value=$XPM_CFLAGS
 
955
ac_cv_env_XPM_CFLAGS_set=${XPM_CFLAGS+set}
 
956
ac_cv_env_XPM_CFLAGS_value=$XPM_CFLAGS
 
957
ac_env_XPM_LIBS_set=${XPM_LIBS+set}
 
958
ac_env_XPM_LIBS_value=$XPM_LIBS
 
959
ac_cv_env_XPM_LIBS_set=${XPM_LIBS+set}
 
960
ac_cv_env_XPM_LIBS_value=$XPM_LIBS
 
961
ac_env_SXPM_CFLAGS_set=${SXPM_CFLAGS+set}
 
962
ac_env_SXPM_CFLAGS_value=$SXPM_CFLAGS
 
963
ac_cv_env_SXPM_CFLAGS_set=${SXPM_CFLAGS+set}
 
964
ac_cv_env_SXPM_CFLAGS_value=$SXPM_CFLAGS
 
965
ac_env_SXPM_LIBS_set=${SXPM_LIBS+set}
 
966
ac_env_SXPM_LIBS_value=$SXPM_LIBS
 
967
ac_cv_env_SXPM_LIBS_set=${SXPM_LIBS+set}
 
968
ac_cv_env_SXPM_LIBS_value=$SXPM_LIBS
 
969
 
 
970
#
 
971
# Report the --help message.
 
972
#
 
973
if test "$ac_init_help" = "long"; then
 
974
  # Omit some internal or obsolete options to make the list less imposing.
 
975
  # This message is too long to be a string in the A/UX 3.1 sh.
 
976
  cat <<_ACEOF
 
977
\`configure' configures libXpm 3.5.2 to adapt to many kinds of systems.
 
978
 
 
979
Usage: $0 [OPTION]... [VAR=VALUE]...
 
980
 
 
981
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
982
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
983
 
 
984
Defaults for the options are specified in brackets.
 
985
 
 
986
Configuration:
 
987
  -h, --help              display this help and exit
 
988
      --help=short        display options specific to this package
 
989
      --help=recursive    display the short help of all the included packages
 
990
  -V, --version           display version information and exit
 
991
  -q, --quiet, --silent   do not print \`checking...' messages
 
992
      --cache-file=FILE   cache test results in FILE [disabled]
 
993
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
994
  -n, --no-create         do not create output files
 
995
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
996
 
 
997
_ACEOF
 
998
 
 
999
  cat <<_ACEOF
 
1000
Installation directories:
 
1001
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1002
                          [$ac_default_prefix]
 
1003
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1004
                          [PREFIX]
 
1005
 
 
1006
By default, \`make install' will install all the files in
 
1007
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1008
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1009
for instance \`--prefix=\$HOME'.
 
1010
 
 
1011
For better control, use the options below.
 
1012
 
 
1013
Fine tuning of the installation directories:
 
1014
  --bindir=DIR           user executables [EPREFIX/bin]
 
1015
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1016
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1017
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
1018
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1019
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1020
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1021
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1022
  --includedir=DIR       C header files [PREFIX/include]
 
1023
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1024
  --infodir=DIR          info documentation [PREFIX/info]
 
1025
  --mandir=DIR           man documentation [PREFIX/man]
 
1026
_ACEOF
 
1027
 
 
1028
  cat <<\_ACEOF
 
1029
 
 
1030
Program names:
 
1031
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1032
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1033
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1034
 
 
1035
System types:
 
1036
  --build=BUILD     configure for building on BUILD [guessed]
 
1037
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1038
_ACEOF
 
1039
fi
 
1040
 
 
1041
if test -n "$ac_init_help"; then
 
1042
  case $ac_init_help in
 
1043
     short | recursive ) echo "Configuration of libXpm 3.5.2:";;
 
1044
   esac
 
1045
  cat <<\_ACEOF
 
1046
 
 
1047
Optional Features:
 
1048
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1049
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1050
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1051
                          (and sometimes confusing) to the casual installer
 
1052
  --enable-shared[=PKGS]
 
1053
                          build shared libraries [default=yes]
 
1054
  --enable-static[=PKGS]
 
1055
                          build static libraries [default=yes]
 
1056
  --enable-fast-install[=PKGS]
 
1057
                          optimize for fast installation [default=yes]
 
1058
  --disable-dependency-tracking  speeds up one-time build
 
1059
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1060
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1061
 
 
1062
Optional Packages:
 
1063
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1064
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1065
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1066
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1067
                          both]
 
1068
  --with-tags[=TAGS]
 
1069
                          include additional configurations [automatic]
 
1070
 
 
1071
Some influential environment variables:
 
1072
  CC          C compiler command
 
1073
  CFLAGS      C compiler flags
 
1074
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1075
              nonstandard directory <lib dir>
 
1076
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1077
              headers in a nonstandard directory <include dir>
 
1078
  CPP         C preprocessor
 
1079
  CXX         C++ compiler command
 
1080
  CXXFLAGS    C++ compiler flags
 
1081
  CXXCPP      C++ preprocessor
 
1082
  F77         Fortran 77 compiler command
 
1083
  FFLAGS      Fortran 77 compiler flags
 
1084
  PKG_CONFIG  path to pkg-config utility
 
1085
  XPM_CFLAGS  C compiler flags for XPM, overriding pkg-config
 
1086
  XPM_LIBS    linker flags for XPM, overriding pkg-config
 
1087
  SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config
 
1088
  SXPM_LIBS   linker flags for SXPM, overriding pkg-config
 
1089
 
 
1090
Use these variables to override the choices made by `configure' or to help
 
1091
it to find libraries and programs with nonstandard names/locations.
 
1092
 
 
1093
Report bugs to <daniel@freedesktop.org>.
 
1094
_ACEOF
 
1095
fi
 
1096
 
 
1097
if test "$ac_init_help" = "recursive"; then
 
1098
  # If there are subdirs, report their specific --help.
 
1099
  ac_popdir=`pwd`
 
1100
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1101
    test -d $ac_dir || continue
 
1102
    ac_builddir=.
 
1103
 
 
1104
if test "$ac_dir" != .; then
 
1105
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1106
  # A "../" for each directory in $ac_dir_suffix.
 
1107
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1108
else
 
1109
  ac_dir_suffix= ac_top_builddir=
 
1110
fi
 
1111
 
 
1112
case $srcdir in
 
1113
  .)  # No --srcdir option.  We are building in place.
 
1114
    ac_srcdir=.
 
1115
    if test -z "$ac_top_builddir"; then
 
1116
       ac_top_srcdir=.
 
1117
    else
 
1118
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1119
    fi ;;
 
1120
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1121
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1122
    ac_top_srcdir=$srcdir ;;
 
1123
  *) # Relative path.
 
1124
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1125
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1126
esac
 
1127
 
 
1128
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1129
# the directories may not exist.
 
1130
case `pwd` in
 
1131
.) ac_abs_builddir="$ac_dir";;
 
1132
*)
 
1133
  case "$ac_dir" in
 
1134
  .) ac_abs_builddir=`pwd`;;
 
1135
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1136
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1137
  esac;;
 
1138
esac
 
1139
case $ac_abs_builddir in
 
1140
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1141
*)
 
1142
  case ${ac_top_builddir}. in
 
1143
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1144
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1145
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1146
  esac;;
 
1147
esac
 
1148
case $ac_abs_builddir in
 
1149
.) ac_abs_srcdir=$ac_srcdir;;
 
1150
*)
 
1151
  case $ac_srcdir in
 
1152
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1153
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1154
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1155
  esac;;
 
1156
esac
 
1157
case $ac_abs_builddir in
 
1158
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1159
*)
 
1160
  case $ac_top_srcdir in
 
1161
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1162
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1163
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1164
  esac;;
 
1165
esac
 
1166
 
 
1167
    cd $ac_dir
 
1168
    # Check for guested configure; otherwise get Cygnus style configure.
 
1169
    if test -f $ac_srcdir/configure.gnu; then
 
1170
      echo
 
1171
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1172
    elif test -f $ac_srcdir/configure; then
 
1173
      echo
 
1174
      $SHELL $ac_srcdir/configure  --help=recursive
 
1175
    elif test -f $ac_srcdir/configure.ac ||
 
1176
           test -f $ac_srcdir/configure.in; then
 
1177
      echo
 
1178
      $ac_configure --help
 
1179
    else
 
1180
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1181
    fi
 
1182
    cd "$ac_popdir"
 
1183
  done
 
1184
fi
 
1185
 
 
1186
test -n "$ac_init_help" && exit 0
 
1187
if $ac_init_version; then
 
1188
  cat <<\_ACEOF
 
1189
libXpm configure 3.5.2
 
1190
generated by GNU Autoconf 2.59
 
1191
 
 
1192
Copyright (C) 2003 Free Software Foundation, Inc.
 
1193
This configure script is free software; the Free Software Foundation
 
1194
gives unlimited permission to copy, distribute and modify it.
 
1195
_ACEOF
 
1196
  exit 0
 
1197
fi
 
1198
exec 5>config.log
 
1199
cat >&5 <<_ACEOF
 
1200
This file contains any messages produced by compilers while
 
1201
running configure, to aid debugging if configure makes a mistake.
 
1202
 
 
1203
It was created by libXpm $as_me 3.5.2, which was
 
1204
generated by GNU Autoconf 2.59.  Invocation command line was
 
1205
 
 
1206
  $ $0 $@
 
1207
 
 
1208
_ACEOF
 
1209
{
 
1210
cat <<_ASUNAME
 
1211
## --------- ##
 
1212
## Platform. ##
 
1213
## --------- ##
 
1214
 
 
1215
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1216
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1217
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1218
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1219
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1220
 
 
1221
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1222
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1223
 
 
1224
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1225
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1226
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1227
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1228
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1229
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1230
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1231
 
 
1232
_ASUNAME
 
1233
 
 
1234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1235
for as_dir in $PATH
 
1236
do
 
1237
  IFS=$as_save_IFS
 
1238
  test -z "$as_dir" && as_dir=.
 
1239
  echo "PATH: $as_dir"
 
1240
done
 
1241
 
 
1242
} >&5
 
1243
 
 
1244
cat >&5 <<_ACEOF
 
1245
 
 
1246
 
 
1247
## ----------- ##
 
1248
## Core tests. ##
 
1249
## ----------- ##
 
1250
 
 
1251
_ACEOF
 
1252
 
 
1253
 
 
1254
# Keep a trace of the command line.
 
1255
# Strip out --no-create and --no-recursion so they do not pile up.
 
1256
# Strip out --silent because we don't want to record it for future runs.
 
1257
# Also quote any args containing shell meta-characters.
 
1258
# Make two passes to allow for proper duplicate-argument suppression.
 
1259
ac_configure_args=
 
1260
ac_configure_args0=
 
1261
ac_configure_args1=
 
1262
ac_sep=
 
1263
ac_must_keep_next=false
 
1264
for ac_pass in 1 2
 
1265
do
 
1266
  for ac_arg
 
1267
  do
 
1268
    case $ac_arg in
 
1269
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1270
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1271
    | -silent | --silent | --silen | --sile | --sil)
 
1272
      continue ;;
 
1273
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1274
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1275
    esac
 
1276
    case $ac_pass in
 
1277
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1278
    2)
 
1279
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1280
      if test $ac_must_keep_next = true; then
 
1281
        ac_must_keep_next=false # Got value, back to normal.
 
1282
      else
 
1283
        case $ac_arg in
 
1284
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1285
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1286
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1287
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1288
            case "$ac_configure_args0 " in
 
1289
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1290
            esac
 
1291
            ;;
 
1292
          -* ) ac_must_keep_next=true ;;
 
1293
        esac
 
1294
      fi
 
1295
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1296
      # Get rid of the leading space.
 
1297
      ac_sep=" "
 
1298
      ;;
 
1299
    esac
 
1300
  done
 
1301
done
 
1302
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1303
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1304
 
 
1305
# When interrupted or exit'd, cleanup temporary files, and complete
 
1306
# config.log.  We remove comments because anyway the quotes in there
 
1307
# would cause problems or look ugly.
 
1308
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1309
# such as our DU 5.0 friend, will then `close' the trap.
 
1310
trap 'exit_status=$?
 
1311
  # Save into config.log some information that might help in debugging.
 
1312
  {
 
1313
    echo
 
1314
 
 
1315
    cat <<\_ASBOX
 
1316
## ---------------- ##
 
1317
## Cache variables. ##
 
1318
## ---------------- ##
 
1319
_ASBOX
 
1320
    echo
 
1321
    # The following way of writing the cache mishandles newlines in values,
 
1322
{
 
1323
  (set) 2>&1 |
 
1324
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1325
    *ac_space=\ *)
 
1326
      sed -n \
 
1327
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1328
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1329
      ;;
 
1330
    *)
 
1331
      sed -n \
 
1332
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1333
      ;;
 
1334
    esac;
 
1335
}
 
1336
    echo
 
1337
 
 
1338
    cat <<\_ASBOX
 
1339
## ----------------- ##
 
1340
## Output variables. ##
 
1341
## ----------------- ##
 
1342
_ASBOX
 
1343
    echo
 
1344
    for ac_var in $ac_subst_vars
 
1345
    do
 
1346
      eval ac_val=$`echo $ac_var`
 
1347
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1348
    done | sort
 
1349
    echo
 
1350
 
 
1351
    if test -n "$ac_subst_files"; then
 
1352
      cat <<\_ASBOX
 
1353
## ------------- ##
 
1354
## Output files. ##
 
1355
## ------------- ##
 
1356
_ASBOX
 
1357
      echo
 
1358
      for ac_var in $ac_subst_files
 
1359
      do
 
1360
        eval ac_val=$`echo $ac_var`
 
1361
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1362
      done | sort
 
1363
      echo
 
1364
    fi
 
1365
 
 
1366
    if test -s confdefs.h; then
 
1367
      cat <<\_ASBOX
 
1368
## ----------- ##
 
1369
## confdefs.h. ##
 
1370
## ----------- ##
 
1371
_ASBOX
 
1372
      echo
 
1373
      sed "/^$/d" confdefs.h | sort
 
1374
      echo
 
1375
    fi
 
1376
    test "$ac_signal" != 0 &&
 
1377
      echo "$as_me: caught signal $ac_signal"
 
1378
    echo "$as_me: exit $exit_status"
 
1379
  } >&5
 
1380
  rm -f core *.core &&
 
1381
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1382
    exit $exit_status
 
1383
     ' 0
 
1384
for ac_signal in 1 2 13 15; do
 
1385
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1386
done
 
1387
ac_signal=0
 
1388
 
 
1389
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1390
rm -rf conftest* confdefs.h
 
1391
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1392
echo >confdefs.h
 
1393
 
 
1394
# Predefined preprocessor variables.
 
1395
 
 
1396
cat >>confdefs.h <<_ACEOF
 
1397
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1398
_ACEOF
 
1399
 
 
1400
 
 
1401
cat >>confdefs.h <<_ACEOF
 
1402
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1403
_ACEOF
 
1404
 
 
1405
 
 
1406
cat >>confdefs.h <<_ACEOF
 
1407
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1408
_ACEOF
 
1409
 
 
1410
 
 
1411
cat >>confdefs.h <<_ACEOF
 
1412
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1413
_ACEOF
 
1414
 
 
1415
 
 
1416
cat >>confdefs.h <<_ACEOF
 
1417
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1418
_ACEOF
 
1419
 
 
1420
 
 
1421
# Let the site file select an alternate cache file if it wants to.
 
1422
# Prefer explicitly selected file to automatically selected ones.
 
1423
if test -z "$CONFIG_SITE"; then
 
1424
  if test "x$prefix" != xNONE; then
 
1425
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1426
  else
 
1427
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1428
  fi
 
1429
fi
 
1430
for ac_site_file in $CONFIG_SITE; do
 
1431
  if test -r "$ac_site_file"; then
 
1432
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1433
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1434
    sed 's/^/| /' "$ac_site_file" >&5
 
1435
    . "$ac_site_file"
 
1436
  fi
 
1437
done
 
1438
 
 
1439
if test -r "$cache_file"; then
 
1440
  # Some versions of bash will fail to source /dev/null (special
 
1441
  # files actually), so we avoid doing that.
 
1442
  if test -f "$cache_file"; then
 
1443
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1444
echo "$as_me: loading cache $cache_file" >&6;}
 
1445
    case $cache_file in
 
1446
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1447
      *)                      . ./$cache_file;;
 
1448
    esac
 
1449
  fi
 
1450
else
 
1451
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1452
echo "$as_me: creating cache $cache_file" >&6;}
 
1453
  >$cache_file
 
1454
fi
 
1455
 
 
1456
# Check that the precious variables saved in the cache have kept the same
 
1457
# value.
 
1458
ac_cache_corrupted=false
 
1459
for ac_var in `(set) 2>&1 |
 
1460
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1461
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1462
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1463
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1464
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1465
  case $ac_old_set,$ac_new_set in
 
1466
    set,)
 
1467
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1468
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1469
      ac_cache_corrupted=: ;;
 
1470
    ,set)
 
1471
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1472
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1473
      ac_cache_corrupted=: ;;
 
1474
    ,);;
 
1475
    *)
 
1476
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1477
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1478
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1479
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1480
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1481
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1482
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1483
        ac_cache_corrupted=:
 
1484
      fi;;
 
1485
  esac
 
1486
  # Pass precious variables to config.status.
 
1487
  if test "$ac_new_set" = set; then
 
1488
    case $ac_new_val in
 
1489
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1490
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1491
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1492
    esac
 
1493
    case " $ac_configure_args " in
 
1494
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1495
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1496
    esac
 
1497
  fi
 
1498
done
 
1499
if $ac_cache_corrupted; then
 
1500
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1501
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1502
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1503
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1504
   { (exit 1); exit 1; }; }
 
1505
fi
 
1506
 
 
1507
ac_ext=c
 
1508
ac_cpp='$CPP $CPPFLAGS'
 
1509
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1510
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1511
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
 
 
1529
 
 
1530
 
 
1531
 
 
1532
 
 
1533
 
 
1534
 
 
1535
 
 
1536
 
 
1537
 
 
1538
 
 
1539
 
 
1540
am__api_version="1.9"
 
1541
ac_aux_dir=
 
1542
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1543
  if test -f $ac_dir/install-sh; then
 
1544
    ac_aux_dir=$ac_dir
 
1545
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1546
    break
 
1547
  elif test -f $ac_dir/install.sh; then
 
1548
    ac_aux_dir=$ac_dir
 
1549
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1550
    break
 
1551
  elif test -f $ac_dir/shtool; then
 
1552
    ac_aux_dir=$ac_dir
 
1553
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1554
    break
 
1555
  fi
 
1556
done
 
1557
if test -z "$ac_aux_dir"; then
 
1558
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1559
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1560
   { (exit 1); exit 1; }; }
 
1561
fi
 
1562
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1563
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1564
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1565
 
 
1566
# Find a good install program.  We prefer a C program (faster),
 
1567
# so one script is as good as another.  But avoid the broken or
 
1568
# incompatible versions:
 
1569
# SysV /etc/install, /usr/sbin/install
 
1570
# SunOS /usr/etc/install
 
1571
# IRIX /sbin/install
 
1572
# AIX /bin/install
 
1573
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1574
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1575
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1576
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1577
# OS/2's system install, which has a completely different semantic
 
1578
# ./install, which can be erroneously created by make from ./install.sh.
 
1579
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1580
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1581
if test -z "$INSTALL"; then
 
1582
if test "${ac_cv_path_install+set}" = set; then
 
1583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1584
else
 
1585
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1586
for as_dir in $PATH
 
1587
do
 
1588
  IFS=$as_save_IFS
 
1589
  test -z "$as_dir" && as_dir=.
 
1590
  # Account for people who put trailing slashes in PATH elements.
 
1591
case $as_dir/ in
 
1592
  ./ | .// | /cC/* | \
 
1593
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1594
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1595
  /usr/ucb/* ) ;;
 
1596
  *)
 
1597
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1598
    # Don't use installbsd from OSF since it installs stuff as root
 
1599
    # by default.
 
1600
    for ac_prog in ginstall scoinst install; do
 
1601
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1602
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1603
          if test $ac_prog = install &&
 
1604
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1605
            # AIX install.  It has an incompatible calling convention.
 
1606
            :
 
1607
          elif test $ac_prog = install &&
 
1608
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1609
            # program-specific install script used by HP pwplus--don't use.
 
1610
            :
 
1611
          else
 
1612
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1613
            break 3
 
1614
          fi
 
1615
        fi
 
1616
      done
 
1617
    done
 
1618
    ;;
 
1619
esac
 
1620
done
 
1621
 
 
1622
 
 
1623
fi
 
1624
  if test "${ac_cv_path_install+set}" = set; then
 
1625
    INSTALL=$ac_cv_path_install
 
1626
  else
 
1627
    # As a last resort, use the slow shell script.  We don't cache a
 
1628
    # path for INSTALL within a source directory, because that will
 
1629
    # break other packages using the cache if that directory is
 
1630
    # removed, or if the path is relative.
 
1631
    INSTALL=$ac_install_sh
 
1632
  fi
 
1633
fi
 
1634
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1635
echo "${ECHO_T}$INSTALL" >&6
 
1636
 
 
1637
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1638
# It thinks the first close brace ends the variable substitution.
 
1639
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1640
 
 
1641
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1642
 
 
1643
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1644
 
 
1645
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1646
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1647
# Just in case
 
1648
sleep 1
 
1649
echo timestamp > conftest.file
 
1650
# Do `set' in a subshell so we don't clobber the current shell's
 
1651
# arguments.  Must try -L first in case configure is actually a
 
1652
# symlink; some systems play weird games with the mod time of symlinks
 
1653
# (eg FreeBSD returns the mod time of the symlink's containing
 
1654
# directory).
 
1655
if (
 
1656
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1657
   if test "$*" = "X"; then
 
1658
      # -L didn't work.
 
1659
      set X `ls -t $srcdir/configure conftest.file`
 
1660
   fi
 
1661
   rm -f conftest.file
 
1662
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1663
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1664
 
 
1665
      # If neither matched, then we have a broken ls.  This can happen
 
1666
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1667
      # broken ls alias from the environment.  This has actually
 
1668
      # happened.  Such a system could not be considered "sane".
 
1669
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1670
alias in your environment" >&5
 
1671
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1672
alias in your environment" >&2;}
 
1673
   { (exit 1); exit 1; }; }
 
1674
   fi
 
1675
 
 
1676
   test "$2" = conftest.file
 
1677
   )
 
1678
then
 
1679
   # Ok.
 
1680
   :
 
1681
else
 
1682
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1683
Check your system clock" >&5
 
1684
echo "$as_me: error: newly created file is older than distributed files!
 
1685
Check your system clock" >&2;}
 
1686
   { (exit 1); exit 1; }; }
 
1687
fi
 
1688
echo "$as_me:$LINENO: result: yes" >&5
 
1689
echo "${ECHO_T}yes" >&6
 
1690
test "$program_prefix" != NONE &&
 
1691
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1692
# Use a double $ so make ignores it.
 
1693
test "$program_suffix" != NONE &&
 
1694
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1695
# Double any \ or $.  echo might interpret backslashes.
 
1696
# By default was `s,x,x', remove it if useless.
 
1697
cat <<\_ACEOF >conftest.sed
 
1698
s/[\\$]/&&/g;s/;s,x,x,$//
 
1699
_ACEOF
 
1700
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1701
rm conftest.sed
 
1702
 
 
1703
# expand $ac_aux_dir to an absolute path
 
1704
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1705
 
 
1706
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1707
# Use eval to expand $SHELL
 
1708
if eval "$MISSING --run true"; then
 
1709
  am_missing_run="$MISSING --run "
 
1710
else
 
1711
  am_missing_run=
 
1712
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1713
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1714
fi
 
1715
 
 
1716
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1717
  # We used to keeping the `.' as first argument, in order to
 
1718
  # allow $(mkdir_p) to be used without argument.  As in
 
1719
  #   $(mkdir_p) $(somedir)
 
1720
  # where $(somedir) is conditionally defined.  However this is wrong
 
1721
  # for two reasons:
 
1722
  #  1. if the package is installed by a user who cannot write `.'
 
1723
  #     make install will fail,
 
1724
  #  2. the above comment should most certainly read
 
1725
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1726
  #     so it does not work when $(somedir) is undefined and
 
1727
  #     $(DESTDIR) is not.
 
1728
  #  To support the latter case, we have to write
 
1729
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1730
  #  so the `.' trick is pointless.
 
1731
  mkdir_p='mkdir -p --'
 
1732
else
 
1733
  # On NextStep and OpenStep, the `mkdir' command does not
 
1734
  # recognize any option.  It will interpret all options as
 
1735
  # directories to create, and then abort because `.' already
 
1736
  # exists.
 
1737
  for d in ./-p ./--version;
 
1738
  do
 
1739
    test -d $d && rmdir $d
 
1740
  done
 
1741
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1742
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1743
    mkdir_p='$(mkinstalldirs)'
 
1744
  else
 
1745
    mkdir_p='$(install_sh) -d'
 
1746
  fi
 
1747
fi
 
1748
 
 
1749
for ac_prog in gawk mawk nawk awk
 
1750
do
 
1751
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1752
set dummy $ac_prog; ac_word=$2
 
1753
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1754
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1755
if test "${ac_cv_prog_AWK+set}" = set; then
 
1756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1757
else
 
1758
  if test -n "$AWK"; then
 
1759
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1760
else
 
1761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1762
for as_dir in $PATH
 
1763
do
 
1764
  IFS=$as_save_IFS
 
1765
  test -z "$as_dir" && as_dir=.
 
1766
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1767
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1768
    ac_cv_prog_AWK="$ac_prog"
 
1769
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1770
    break 2
 
1771
  fi
 
1772
done
 
1773
done
 
1774
 
 
1775
fi
 
1776
fi
 
1777
AWK=$ac_cv_prog_AWK
 
1778
if test -n "$AWK"; then
 
1779
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1780
echo "${ECHO_T}$AWK" >&6
 
1781
else
 
1782
  echo "$as_me:$LINENO: result: no" >&5
 
1783
echo "${ECHO_T}no" >&6
 
1784
fi
 
1785
 
 
1786
  test -n "$AWK" && break
 
1787
done
 
1788
 
 
1789
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1790
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1791
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1792
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1794
else
 
1795
  cat >conftest.make <<\_ACEOF
 
1796
all:
 
1797
        @echo 'ac_maketemp="$(MAKE)"'
 
1798
_ACEOF
 
1799
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1800
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1801
if test -n "$ac_maketemp"; then
 
1802
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1803
else
 
1804
  eval ac_cv_prog_make_${ac_make}_set=no
 
1805
fi
 
1806
rm -f conftest.make
 
1807
fi
 
1808
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1809
  echo "$as_me:$LINENO: result: yes" >&5
 
1810
echo "${ECHO_T}yes" >&6
 
1811
  SET_MAKE=
 
1812
else
 
1813
  echo "$as_me:$LINENO: result: no" >&5
 
1814
echo "${ECHO_T}no" >&6
 
1815
  SET_MAKE="MAKE=${MAKE-make}"
 
1816
fi
 
1817
 
 
1818
rm -rf .tst 2>/dev/null
 
1819
mkdir .tst 2>/dev/null
 
1820
if test -d .tst; then
 
1821
  am__leading_dot=.
 
1822
else
 
1823
  am__leading_dot=_
 
1824
fi
 
1825
rmdir .tst 2>/dev/null
 
1826
 
 
1827
# test to see if srcdir already configured
 
1828
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1829
   test -f $srcdir/config.status; then
 
1830
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1831
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1832
   { (exit 1); exit 1; }; }
 
1833
fi
 
1834
 
 
1835
# test whether we have cygpath
 
1836
if test -z "$CYGPATH_W"; then
 
1837
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1838
    CYGPATH_W='cygpath -w'
 
1839
  else
 
1840
    CYGPATH_W=echo
 
1841
  fi
 
1842
fi
 
1843
 
 
1844
 
 
1845
# Define the identity of the package.
 
1846
 PACKAGE='libXpm'
 
1847
 VERSION='3.5.2'
 
1848
 
 
1849
 
 
1850
cat >>confdefs.h <<_ACEOF
 
1851
#define PACKAGE "$PACKAGE"
 
1852
_ACEOF
 
1853
 
 
1854
 
 
1855
cat >>confdefs.h <<_ACEOF
 
1856
#define VERSION "$VERSION"
 
1857
_ACEOF
 
1858
 
 
1859
# Some tools Automake needs.
 
1860
 
 
1861
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1862
 
 
1863
 
 
1864
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1865
 
 
1866
 
 
1867
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1868
 
 
1869
 
 
1870
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1871
 
 
1872
 
 
1873
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1874
 
 
1875
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1876
 
 
1877
# Installed binaries are usually stripped using `strip' when the user
 
1878
# run `make install-strip'.  However `strip' might not be the right
 
1879
# tool to use in cross-compilation environments, therefore Automake
 
1880
# will honor the `STRIP' environment variable to overrule this program.
 
1881
if test "$cross_compiling" != no; then
 
1882
  if test -n "$ac_tool_prefix"; then
 
1883
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1884
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1885
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1886
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1887
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1888
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1889
else
 
1890
  if test -n "$STRIP"; then
 
1891
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1892
else
 
1893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1894
for as_dir in $PATH
 
1895
do
 
1896
  IFS=$as_save_IFS
 
1897
  test -z "$as_dir" && as_dir=.
 
1898
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1899
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1900
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1901
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1902
    break 2
 
1903
  fi
 
1904
done
 
1905
done
 
1906
 
 
1907
fi
 
1908
fi
 
1909
STRIP=$ac_cv_prog_STRIP
 
1910
if test -n "$STRIP"; then
 
1911
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1912
echo "${ECHO_T}$STRIP" >&6
 
1913
else
 
1914
  echo "$as_me:$LINENO: result: no" >&5
 
1915
echo "${ECHO_T}no" >&6
 
1916
fi
 
1917
 
 
1918
fi
 
1919
if test -z "$ac_cv_prog_STRIP"; then
 
1920
  ac_ct_STRIP=$STRIP
 
1921
  # Extract the first word of "strip", so it can be a program name with args.
 
1922
set dummy strip; ac_word=$2
 
1923
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1924
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1925
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1926
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1927
else
 
1928
  if test -n "$ac_ct_STRIP"; then
 
1929
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1930
else
 
1931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1932
for as_dir in $PATH
 
1933
do
 
1934
  IFS=$as_save_IFS
 
1935
  test -z "$as_dir" && as_dir=.
 
1936
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1937
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1938
    ac_cv_prog_ac_ct_STRIP="strip"
 
1939
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1940
    break 2
 
1941
  fi
 
1942
done
 
1943
done
 
1944
 
 
1945
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1946
fi
 
1947
fi
 
1948
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1949
if test -n "$ac_ct_STRIP"; then
 
1950
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1951
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1952
else
 
1953
  echo "$as_me:$LINENO: result: no" >&5
 
1954
echo "${ECHO_T}no" >&6
 
1955
fi
 
1956
 
 
1957
  STRIP=$ac_ct_STRIP
 
1958
else
 
1959
  STRIP="$ac_cv_prog_STRIP"
 
1960
fi
 
1961
 
 
1962
fi
 
1963
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1964
 
 
1965
# We need awk for the "check" target.  The system "awk" is bad on
 
1966
# some platforms.
 
1967
# Always define AMTAR for backward compatibility.
 
1968
 
 
1969
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1970
 
 
1971
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1972
 
 
1973
 
 
1974
 
 
1975
 
 
1976
 
 
1977
 
 
1978
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1979
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1980
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1981
if test "${enable_maintainer_mode+set}" = set; then
 
1982
  enableval="$enable_maintainer_mode"
 
1983
  USE_MAINTAINER_MODE=$enableval
 
1984
else
 
1985
  USE_MAINTAINER_MODE=no
 
1986
fi;
 
1987
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1988
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1989
 
 
1990
 
 
1991
if test $USE_MAINTAINER_MODE = yes; then
 
1992
  MAINTAINER_MODE_TRUE=
 
1993
  MAINTAINER_MODE_FALSE='#'
 
1994
else
 
1995
  MAINTAINER_MODE_TRUE='#'
 
1996
  MAINTAINER_MODE_FALSE=
 
1997
fi
 
1998
 
 
1999
  MAINT=$MAINTAINER_MODE_TRUE
 
2000
 
 
2001
 
 
2002
 
 
2003
          ac_config_headers="$ac_config_headers config.h"
 
2004
 
 
2005
 
 
2006
# Checks for programs.
 
2007
# Check whether --enable-shared or --disable-shared was given.
 
2008
if test "${enable_shared+set}" = set; then
 
2009
  enableval="$enable_shared"
 
2010
  p=${PACKAGE-default}
 
2011
    case $enableval in
 
2012
    yes) enable_shared=yes ;;
 
2013
    no) enable_shared=no ;;
 
2014
    *)
 
2015
      enable_shared=no
 
2016
      # Look at the argument we got.  We use all the common list separators.
 
2017
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2018
      for pkg in $enableval; do
 
2019
        IFS="$lt_save_ifs"
 
2020
        if test "X$pkg" = "X$p"; then
 
2021
          enable_shared=yes
 
2022
        fi
 
2023
      done
 
2024
      IFS="$lt_save_ifs"
 
2025
      ;;
 
2026
    esac
 
2027
else
 
2028
  enable_shared=yes
 
2029
fi;
 
2030
 
 
2031
# Check whether --enable-static or --disable-static was given.
 
2032
if test "${enable_static+set}" = set; then
 
2033
  enableval="$enable_static"
 
2034
  p=${PACKAGE-default}
 
2035
    case $enableval in
 
2036
    yes) enable_static=yes ;;
 
2037
    no) enable_static=no ;;
 
2038
    *)
 
2039
     enable_static=no
 
2040
      # Look at the argument we got.  We use all the common list separators.
 
2041
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2042
      for pkg in $enableval; do
 
2043
        IFS="$lt_save_ifs"
 
2044
        if test "X$pkg" = "X$p"; then
 
2045
          enable_static=yes
 
2046
        fi
 
2047
      done
 
2048
      IFS="$lt_save_ifs"
 
2049
      ;;
 
2050
    esac
 
2051
else
 
2052
  enable_static=yes
 
2053
fi;
 
2054
 
 
2055
# Check whether --enable-fast-install or --disable-fast-install was given.
 
2056
if test "${enable_fast_install+set}" = set; then
 
2057
  enableval="$enable_fast_install"
 
2058
  p=${PACKAGE-default}
 
2059
    case $enableval in
 
2060
    yes) enable_fast_install=yes ;;
 
2061
    no) enable_fast_install=no ;;
 
2062
    *)
 
2063
      enable_fast_install=no
 
2064
      # Look at the argument we got.  We use all the common list separators.
 
2065
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2066
      for pkg in $enableval; do
 
2067
        IFS="$lt_save_ifs"
 
2068
        if test "X$pkg" = "X$p"; then
 
2069
          enable_fast_install=yes
 
2070
        fi
 
2071
      done
 
2072
      IFS="$lt_save_ifs"
 
2073
      ;;
 
2074
    esac
 
2075
else
 
2076
  enable_fast_install=yes
 
2077
fi;
 
2078
 
 
2079
# Make sure we can run config.sub.
 
2080
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2081
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
2082
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2083
   { (exit 1); exit 1; }; }
 
2084
 
 
2085
echo "$as_me:$LINENO: checking build system type" >&5
 
2086
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2087
if test "${ac_cv_build+set}" = set; then
 
2088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2089
else
 
2090
  ac_cv_build_alias=$build_alias
 
2091
test -z "$ac_cv_build_alias" &&
 
2092
  ac_cv_build_alias=`$ac_config_guess`
 
2093
test -z "$ac_cv_build_alias" &&
 
2094
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2095
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2096
   { (exit 1); exit 1; }; }
 
2097
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2098
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
2099
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2100
   { (exit 1); exit 1; }; }
 
2101
 
 
2102
fi
 
2103
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2104
echo "${ECHO_T}$ac_cv_build" >&6
 
2105
build=$ac_cv_build
 
2106
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2107
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2108
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2109
 
 
2110
 
 
2111
echo "$as_me:$LINENO: checking host system type" >&5
 
2112
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2113
if test "${ac_cv_host+set}" = set; then
 
2114
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2115
else
 
2116
  ac_cv_host_alias=$host_alias
 
2117
test -z "$ac_cv_host_alias" &&
 
2118
  ac_cv_host_alias=$ac_cv_build_alias
 
2119
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2120
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2121
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2122
   { (exit 1); exit 1; }; }
 
2123
 
 
2124
fi
 
2125
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2126
echo "${ECHO_T}$ac_cv_host" >&6
 
2127
host=$ac_cv_host
 
2128
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2129
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2130
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2131
 
 
2132
 
 
2133
DEPDIR="${am__leading_dot}deps"
 
2134
 
 
2135
          ac_config_commands="$ac_config_commands depfiles"
 
2136
 
 
2137
 
 
2138
am_make=${MAKE-make}
 
2139
cat > confinc << 'END'
 
2140
am__doit:
 
2141
        @echo done
 
2142
.PHONY: am__doit
 
2143
END
 
2144
# If we don't find an include directive, just comment out the code.
 
2145
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2146
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2147
am__include="#"
 
2148
am__quote=
 
2149
_am_result=none
 
2150
# First try GNU make style include.
 
2151
echo "include confinc" > confmf
 
2152
# We grep out `Entering directory' and `Leaving directory'
 
2153
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2154
# In particular we don't look at `^make:' because GNU make might
 
2155
# be invoked under some other name (usually "gmake"), in which
 
2156
# case it prints its new name instead of `make'.
 
2157
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2158
   am__include=include
 
2159
   am__quote=
 
2160
   _am_result=GNU
 
2161
fi
 
2162
# Now try BSD make style include.
 
2163
if test "$am__include" = "#"; then
 
2164
   echo '.include "confinc"' > confmf
 
2165
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2166
      am__include=.include
 
2167
      am__quote="\""
 
2168
      _am_result=BSD
 
2169
   fi
 
2170
fi
 
2171
 
 
2172
 
 
2173
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2174
echo "${ECHO_T}$_am_result" >&6
 
2175
rm -f confinc confmf
 
2176
 
 
2177
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2178
if test "${enable_dependency_tracking+set}" = set; then
 
2179
  enableval="$enable_dependency_tracking"
 
2180
 
 
2181
fi;
 
2182
if test "x$enable_dependency_tracking" != xno; then
 
2183
  am_depcomp="$ac_aux_dir/depcomp"
 
2184
  AMDEPBACKSLASH='\'
 
2185
fi
 
2186
 
 
2187
 
 
2188
if test "x$enable_dependency_tracking" != xno; then
 
2189
  AMDEP_TRUE=
 
2190
  AMDEP_FALSE='#'
 
2191
else
 
2192
  AMDEP_TRUE='#'
 
2193
  AMDEP_FALSE=
 
2194
fi
 
2195
 
 
2196
 
 
2197
 
 
2198
ac_ext=c
 
2199
ac_cpp='$CPP $CPPFLAGS'
 
2200
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2201
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2202
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2203
if test -n "$ac_tool_prefix"; then
 
2204
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2205
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2206
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2208
if test "${ac_cv_prog_CC+set}" = set; then
 
2209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2210
else
 
2211
  if test -n "$CC"; then
 
2212
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2213
else
 
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2215
for as_dir in $PATH
 
2216
do
 
2217
  IFS=$as_save_IFS
 
2218
  test -z "$as_dir" && as_dir=.
 
2219
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2220
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2221
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2223
    break 2
 
2224
  fi
 
2225
done
 
2226
done
 
2227
 
 
2228
fi
 
2229
fi
 
2230
CC=$ac_cv_prog_CC
 
2231
if test -n "$CC"; then
 
2232
  echo "$as_me:$LINENO: result: $CC" >&5
 
2233
echo "${ECHO_T}$CC" >&6
 
2234
else
 
2235
  echo "$as_me:$LINENO: result: no" >&5
 
2236
echo "${ECHO_T}no" >&6
 
2237
fi
 
2238
 
 
2239
fi
 
2240
if test -z "$ac_cv_prog_CC"; then
 
2241
  ac_ct_CC=$CC
 
2242
  # Extract the first word of "gcc", so it can be a program name with args.
 
2243
set dummy gcc; ac_word=$2
 
2244
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2246
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2248
else
 
2249
  if test -n "$ac_ct_CC"; then
 
2250
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2251
else
 
2252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2253
for as_dir in $PATH
 
2254
do
 
2255
  IFS=$as_save_IFS
 
2256
  test -z "$as_dir" && as_dir=.
 
2257
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2258
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2259
    ac_cv_prog_ac_ct_CC="gcc"
 
2260
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2261
    break 2
 
2262
  fi
 
2263
done
 
2264
done
 
2265
 
 
2266
fi
 
2267
fi
 
2268
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2269
if test -n "$ac_ct_CC"; then
 
2270
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2271
echo "${ECHO_T}$ac_ct_CC" >&6
 
2272
else
 
2273
  echo "$as_me:$LINENO: result: no" >&5
 
2274
echo "${ECHO_T}no" >&6
 
2275
fi
 
2276
 
 
2277
  CC=$ac_ct_CC
 
2278
else
 
2279
  CC="$ac_cv_prog_CC"
 
2280
fi
 
2281
 
 
2282
if test -z "$CC"; then
 
2283
  if test -n "$ac_tool_prefix"; then
 
2284
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2285
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2286
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2288
if test "${ac_cv_prog_CC+set}" = set; then
 
2289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2290
else
 
2291
  if test -n "$CC"; then
 
2292
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2293
else
 
2294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2295
for as_dir in $PATH
 
2296
do
 
2297
  IFS=$as_save_IFS
 
2298
  test -z "$as_dir" && as_dir=.
 
2299
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2300
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2301
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2302
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2303
    break 2
 
2304
  fi
 
2305
done
 
2306
done
 
2307
 
 
2308
fi
 
2309
fi
 
2310
CC=$ac_cv_prog_CC
 
2311
if test -n "$CC"; then
 
2312
  echo "$as_me:$LINENO: result: $CC" >&5
 
2313
echo "${ECHO_T}$CC" >&6
 
2314
else
 
2315
  echo "$as_me:$LINENO: result: no" >&5
 
2316
echo "${ECHO_T}no" >&6
 
2317
fi
 
2318
 
 
2319
fi
 
2320
if test -z "$ac_cv_prog_CC"; then
 
2321
  ac_ct_CC=$CC
 
2322
  # Extract the first word of "cc", so it can be a program name with args.
 
2323
set dummy cc; ac_word=$2
 
2324
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2326
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2328
else
 
2329
  if test -n "$ac_ct_CC"; then
 
2330
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2331
else
 
2332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2333
for as_dir in $PATH
 
2334
do
 
2335
  IFS=$as_save_IFS
 
2336
  test -z "$as_dir" && as_dir=.
 
2337
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2338
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2339
    ac_cv_prog_ac_ct_CC="cc"
 
2340
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2341
    break 2
 
2342
  fi
 
2343
done
 
2344
done
 
2345
 
 
2346
fi
 
2347
fi
 
2348
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2349
if test -n "$ac_ct_CC"; then
 
2350
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2351
echo "${ECHO_T}$ac_ct_CC" >&6
 
2352
else
 
2353
  echo "$as_me:$LINENO: result: no" >&5
 
2354
echo "${ECHO_T}no" >&6
 
2355
fi
 
2356
 
 
2357
  CC=$ac_ct_CC
 
2358
else
 
2359
  CC="$ac_cv_prog_CC"
 
2360
fi
 
2361
 
 
2362
fi
 
2363
if test -z "$CC"; then
 
2364
  # Extract the first word of "cc", so it can be a program name with args.
 
2365
set dummy cc; ac_word=$2
 
2366
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2367
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2368
if test "${ac_cv_prog_CC+set}" = set; then
 
2369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2370
else
 
2371
  if test -n "$CC"; then
 
2372
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2373
else
 
2374
  ac_prog_rejected=no
 
2375
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2376
for as_dir in $PATH
 
2377
do
 
2378
  IFS=$as_save_IFS
 
2379
  test -z "$as_dir" && as_dir=.
 
2380
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2381
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2382
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2383
       ac_prog_rejected=yes
 
2384
       continue
 
2385
     fi
 
2386
    ac_cv_prog_CC="cc"
 
2387
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2388
    break 2
 
2389
  fi
 
2390
done
 
2391
done
 
2392
 
 
2393
if test $ac_prog_rejected = yes; then
 
2394
  # We found a bogon in the path, so make sure we never use it.
 
2395
  set dummy $ac_cv_prog_CC
 
2396
  shift
 
2397
  if test $# != 0; then
 
2398
    # We chose a different compiler from the bogus one.
 
2399
    # However, it has the same basename, so the bogon will be chosen
 
2400
    # first if we set CC to just the basename; use the full file name.
 
2401
    shift
 
2402
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2403
  fi
 
2404
fi
 
2405
fi
 
2406
fi
 
2407
CC=$ac_cv_prog_CC
 
2408
if test -n "$CC"; then
 
2409
  echo "$as_me:$LINENO: result: $CC" >&5
 
2410
echo "${ECHO_T}$CC" >&6
 
2411
else
 
2412
  echo "$as_me:$LINENO: result: no" >&5
 
2413
echo "${ECHO_T}no" >&6
 
2414
fi
 
2415
 
 
2416
fi
 
2417
if test -z "$CC"; then
 
2418
  if test -n "$ac_tool_prefix"; then
 
2419
  for ac_prog in cl
 
2420
  do
 
2421
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2422
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2423
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2425
if test "${ac_cv_prog_CC+set}" = set; then
 
2426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2427
else
 
2428
  if test -n "$CC"; then
 
2429
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2430
else
 
2431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2432
for as_dir in $PATH
 
2433
do
 
2434
  IFS=$as_save_IFS
 
2435
  test -z "$as_dir" && as_dir=.
 
2436
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2437
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2438
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2439
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2440
    break 2
 
2441
  fi
 
2442
done
 
2443
done
 
2444
 
 
2445
fi
 
2446
fi
 
2447
CC=$ac_cv_prog_CC
 
2448
if test -n "$CC"; then
 
2449
  echo "$as_me:$LINENO: result: $CC" >&5
 
2450
echo "${ECHO_T}$CC" >&6
 
2451
else
 
2452
  echo "$as_me:$LINENO: result: no" >&5
 
2453
echo "${ECHO_T}no" >&6
 
2454
fi
 
2455
 
 
2456
    test -n "$CC" && break
 
2457
  done
 
2458
fi
 
2459
if test -z "$CC"; then
 
2460
  ac_ct_CC=$CC
 
2461
  for ac_prog in cl
 
2462
do
 
2463
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2464
set dummy $ac_prog; ac_word=$2
 
2465
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2467
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2469
else
 
2470
  if test -n "$ac_ct_CC"; then
 
2471
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2472
else
 
2473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2474
for as_dir in $PATH
 
2475
do
 
2476
  IFS=$as_save_IFS
 
2477
  test -z "$as_dir" && as_dir=.
 
2478
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2479
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2480
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2481
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2482
    break 2
 
2483
  fi
 
2484
done
 
2485
done
 
2486
 
 
2487
fi
 
2488
fi
 
2489
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2490
if test -n "$ac_ct_CC"; then
 
2491
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2492
echo "${ECHO_T}$ac_ct_CC" >&6
 
2493
else
 
2494
  echo "$as_me:$LINENO: result: no" >&5
 
2495
echo "${ECHO_T}no" >&6
 
2496
fi
 
2497
 
 
2498
  test -n "$ac_ct_CC" && break
 
2499
done
 
2500
 
 
2501
  CC=$ac_ct_CC
 
2502
fi
 
2503
 
 
2504
fi
 
2505
 
 
2506
 
 
2507
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2508
See \`config.log' for more details." >&5
 
2509
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2510
See \`config.log' for more details." >&2;}
 
2511
   { (exit 1); exit 1; }; }
 
2512
 
 
2513
# Provide some information about the compiler.
 
2514
echo "$as_me:$LINENO:" \
 
2515
     "checking for C compiler version" >&5
 
2516
ac_compiler=`set X $ac_compile; echo $2`
 
2517
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2518
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2519
  ac_status=$?
 
2520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2521
  (exit $ac_status); }
 
2522
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2523
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2524
  ac_status=$?
 
2525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2526
  (exit $ac_status); }
 
2527
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2528
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2529
  ac_status=$?
 
2530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2531
  (exit $ac_status); }
 
2532
 
 
2533
cat >conftest.$ac_ext <<_ACEOF
 
2534
/* confdefs.h.  */
 
2535
_ACEOF
 
2536
cat confdefs.h >>conftest.$ac_ext
 
2537
cat >>conftest.$ac_ext <<_ACEOF
 
2538
/* end confdefs.h.  */
 
2539
 
 
2540
int
 
2541
main ()
 
2542
{
 
2543
 
 
2544
  ;
 
2545
  return 0;
 
2546
}
 
2547
_ACEOF
 
2548
ac_clean_files_save=$ac_clean_files
 
2549
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2550
# Try to create an executable without -o first, disregard a.out.
 
2551
# It will help us diagnose broken compilers, and finding out an intuition
 
2552
# of exeext.
 
2553
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2554
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2555
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2556
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2557
  (eval $ac_link_default) 2>&5
 
2558
  ac_status=$?
 
2559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2560
  (exit $ac_status); }; then
 
2561
  # Find the output, starting from the most likely.  This scheme is
 
2562
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2563
# resort.
 
2564
 
 
2565
# Be careful to initialize this variable, since it used to be cached.
 
2566
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2567
ac_cv_exeext=
 
2568
# b.out is created by i960 compilers.
 
2569
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2570
do
 
2571
  test -f "$ac_file" || continue
 
2572
  case $ac_file in
 
2573
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2574
        ;;
 
2575
    conftest.$ac_ext )
 
2576
        # This is the source file.
 
2577
        ;;
 
2578
    [ab].out )
 
2579
        # We found the default executable, but exeext='' is most
 
2580
        # certainly right.
 
2581
        break;;
 
2582
    *.* )
 
2583
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2584
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2585
        # but it would be cool to find out if it's true.  Does anybody
 
2586
        # maintain Libtool? --akim.
 
2587
        export ac_cv_exeext
 
2588
        break;;
 
2589
    * )
 
2590
        break;;
 
2591
  esac
 
2592
done
 
2593
else
 
2594
  echo "$as_me: failed program was:" >&5
 
2595
sed 's/^/| /' conftest.$ac_ext >&5
 
2596
 
 
2597
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2598
See \`config.log' for more details." >&5
 
2599
echo "$as_me: error: C compiler cannot create executables
 
2600
See \`config.log' for more details." >&2;}
 
2601
   { (exit 77); exit 77; }; }
 
2602
fi
 
2603
 
 
2604
ac_exeext=$ac_cv_exeext
 
2605
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2606
echo "${ECHO_T}$ac_file" >&6
 
2607
 
 
2608
# Check the compiler produces executables we can run.  If not, either
 
2609
# the compiler is broken, or we cross compile.
 
2610
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2611
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2612
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2613
# If not cross compiling, check that we can run a simple program.
 
2614
if test "$cross_compiling" != yes; then
 
2615
  if { ac_try='./$ac_file'
 
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); }; }; then
 
2621
    cross_compiling=no
 
2622
  else
 
2623
    if test "$cross_compiling" = maybe; then
 
2624
        cross_compiling=yes
 
2625
    else
 
2626
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2627
If you meant to cross compile, use \`--host'.
 
2628
See \`config.log' for more details." >&5
 
2629
echo "$as_me: error: cannot run C compiled programs.
 
2630
If you meant to cross compile, use \`--host'.
 
2631
See \`config.log' for more details." >&2;}
 
2632
   { (exit 1); exit 1; }; }
 
2633
    fi
 
2634
  fi
 
2635
fi
 
2636
echo "$as_me:$LINENO: result: yes" >&5
 
2637
echo "${ECHO_T}yes" >&6
 
2638
 
 
2639
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2640
ac_clean_files=$ac_clean_files_save
 
2641
# Check the compiler produces executables we can run.  If not, either
 
2642
# the compiler is broken, or we cross compile.
 
2643
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2644
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2645
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2646
echo "${ECHO_T}$cross_compiling" >&6
 
2647
 
 
2648
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2649
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2650
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2651
  (eval $ac_link) 2>&5
 
2652
  ac_status=$?
 
2653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2654
  (exit $ac_status); }; then
 
2655
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2656
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2657
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2658
# `rm'.
 
2659
for ac_file in conftest.exe conftest conftest.*; do
 
2660
  test -f "$ac_file" || continue
 
2661
  case $ac_file in
 
2662
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2663
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2664
          export ac_cv_exeext
 
2665
          break;;
 
2666
    * ) break;;
 
2667
  esac
 
2668
done
 
2669
else
 
2670
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2671
See \`config.log' for more details." >&5
 
2672
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2673
See \`config.log' for more details." >&2;}
 
2674
   { (exit 1); exit 1; }; }
 
2675
fi
 
2676
 
 
2677
rm -f conftest$ac_cv_exeext
 
2678
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2679
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2680
 
 
2681
rm -f conftest.$ac_ext
 
2682
EXEEXT=$ac_cv_exeext
 
2683
ac_exeext=$EXEEXT
 
2684
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2685
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2686
if test "${ac_cv_objext+set}" = set; then
 
2687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2688
else
 
2689
  cat >conftest.$ac_ext <<_ACEOF
 
2690
/* confdefs.h.  */
 
2691
_ACEOF
 
2692
cat confdefs.h >>conftest.$ac_ext
 
2693
cat >>conftest.$ac_ext <<_ACEOF
 
2694
/* end confdefs.h.  */
 
2695
 
 
2696
int
 
2697
main ()
 
2698
{
 
2699
 
 
2700
  ;
 
2701
  return 0;
 
2702
}
 
2703
_ACEOF
 
2704
rm -f conftest.o conftest.obj
 
2705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2706
  (eval $ac_compile) 2>&5
 
2707
  ac_status=$?
 
2708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2709
  (exit $ac_status); }; then
 
2710
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2711
  case $ac_file in
 
2712
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2713
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2714
       break;;
 
2715
  esac
 
2716
done
 
2717
else
 
2718
  echo "$as_me: failed program was:" >&5
 
2719
sed 's/^/| /' conftest.$ac_ext >&5
 
2720
 
 
2721
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2722
See \`config.log' for more details." >&5
 
2723
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2724
See \`config.log' for more details." >&2;}
 
2725
   { (exit 1); exit 1; }; }
 
2726
fi
 
2727
 
 
2728
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2729
fi
 
2730
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2731
echo "${ECHO_T}$ac_cv_objext" >&6
 
2732
OBJEXT=$ac_cv_objext
 
2733
ac_objext=$OBJEXT
 
2734
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2735
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2736
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2738
else
 
2739
  cat >conftest.$ac_ext <<_ACEOF
 
2740
/* confdefs.h.  */
 
2741
_ACEOF
 
2742
cat confdefs.h >>conftest.$ac_ext
 
2743
cat >>conftest.$ac_ext <<_ACEOF
 
2744
/* end confdefs.h.  */
 
2745
 
 
2746
int
 
2747
main ()
 
2748
{
 
2749
#ifndef __GNUC__
 
2750
       choke me
 
2751
#endif
 
2752
 
 
2753
  ;
 
2754
  return 0;
 
2755
}
 
2756
_ACEOF
 
2757
rm -f conftest.$ac_objext
 
2758
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2759
  (eval $ac_compile) 2>conftest.er1
 
2760
  ac_status=$?
 
2761
  grep -v '^ *+' conftest.er1 >conftest.err
 
2762
  rm -f conftest.er1
 
2763
  cat conftest.err >&5
 
2764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2765
  (exit $ac_status); } &&
 
2766
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2768
  (eval $ac_try) 2>&5
 
2769
  ac_status=$?
 
2770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2771
  (exit $ac_status); }; } &&
 
2772
         { ac_try='test -s conftest.$ac_objext'
 
2773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2774
  (eval $ac_try) 2>&5
 
2775
  ac_status=$?
 
2776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2777
  (exit $ac_status); }; }; then
 
2778
  ac_compiler_gnu=yes
 
2779
else
 
2780
  echo "$as_me: failed program was:" >&5
 
2781
sed 's/^/| /' conftest.$ac_ext >&5
 
2782
 
 
2783
ac_compiler_gnu=no
 
2784
fi
 
2785
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2786
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2787
 
 
2788
fi
 
2789
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2790
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2791
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2792
ac_test_CFLAGS=${CFLAGS+set}
 
2793
ac_save_CFLAGS=$CFLAGS
 
2794
CFLAGS="-g"
 
2795
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2796
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2797
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2799
else
 
2800
  cat >conftest.$ac_ext <<_ACEOF
 
2801
/* confdefs.h.  */
 
2802
_ACEOF
 
2803
cat confdefs.h >>conftest.$ac_ext
 
2804
cat >>conftest.$ac_ext <<_ACEOF
 
2805
/* end confdefs.h.  */
 
2806
 
 
2807
int
 
2808
main ()
 
2809
{
 
2810
 
 
2811
  ;
 
2812
  return 0;
 
2813
}
 
2814
_ACEOF
 
2815
rm -f conftest.$ac_objext
 
2816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2817
  (eval $ac_compile) 2>conftest.er1
 
2818
  ac_status=$?
 
2819
  grep -v '^ *+' conftest.er1 >conftest.err
 
2820
  rm -f conftest.er1
 
2821
  cat conftest.err >&5
 
2822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2823
  (exit $ac_status); } &&
 
2824
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2826
  (eval $ac_try) 2>&5
 
2827
  ac_status=$?
 
2828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2829
  (exit $ac_status); }; } &&
 
2830
         { ac_try='test -s conftest.$ac_objext'
 
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); }; }; then
 
2836
  ac_cv_prog_cc_g=yes
 
2837
else
 
2838
  echo "$as_me: failed program was:" >&5
 
2839
sed 's/^/| /' conftest.$ac_ext >&5
 
2840
 
 
2841
ac_cv_prog_cc_g=no
 
2842
fi
 
2843
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2844
fi
 
2845
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2846
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2847
if test "$ac_test_CFLAGS" = set; then
 
2848
  CFLAGS=$ac_save_CFLAGS
 
2849
elif test $ac_cv_prog_cc_g = yes; then
 
2850
  if test "$GCC" = yes; then
 
2851
    CFLAGS="-g -O2"
 
2852
  else
 
2853
    CFLAGS="-g"
 
2854
  fi
 
2855
else
 
2856
  if test "$GCC" = yes; then
 
2857
    CFLAGS="-O2"
 
2858
  else
 
2859
    CFLAGS=
 
2860
  fi
 
2861
fi
 
2862
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2863
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2864
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2866
else
 
2867
  ac_cv_prog_cc_stdc=no
 
2868
ac_save_CC=$CC
 
2869
cat >conftest.$ac_ext <<_ACEOF
 
2870
/* confdefs.h.  */
 
2871
_ACEOF
 
2872
cat confdefs.h >>conftest.$ac_ext
 
2873
cat >>conftest.$ac_ext <<_ACEOF
 
2874
/* end confdefs.h.  */
 
2875
#include <stdarg.h>
 
2876
#include <stdio.h>
 
2877
#include <sys/types.h>
 
2878
#include <sys/stat.h>
 
2879
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2880
struct buf { int x; };
 
2881
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2882
static char *e (p, i)
 
2883
     char **p;
 
2884
     int i;
 
2885
{
 
2886
  return p[i];
 
2887
}
 
2888
static char *f (char * (*g) (char **, int), char **p, ...)
 
2889
{
 
2890
  char *s;
 
2891
  va_list v;
 
2892
  va_start (v,p);
 
2893
  s = g (p, va_arg (v,int));
 
2894
  va_end (v);
 
2895
  return s;
 
2896
}
 
2897
 
 
2898
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2899
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2900
   These don't provoke an error unfortunately, instead are silently treated
 
2901
   as 'x'.  The following induces an error, until -std1 is added to get
 
2902
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2903
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2904
   that's true only with -std1.  */
 
2905
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2906
 
 
2907
int test (int i, double x);
 
2908
struct s1 {int (*f) (int a);};
 
2909
struct s2 {int (*f) (double a);};
 
2910
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2911
int argc;
 
2912
char **argv;
 
2913
int
 
2914
main ()
 
2915
{
 
2916
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2917
  ;
 
2918
  return 0;
 
2919
}
 
2920
_ACEOF
 
2921
# Don't try gcc -ansi; that turns off useful extensions and
 
2922
# breaks some systems' header files.
 
2923
# AIX                   -qlanglvl=ansi
 
2924
# Ultrix and OSF/1      -std1
 
2925
# HP-UX 10.20 and later -Ae
 
2926
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2927
# SVR4                  -Xc -D__EXTENSIONS__
 
2928
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2929
do
 
2930
  CC="$ac_save_CC $ac_arg"
 
2931
  rm -f conftest.$ac_objext
 
2932
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2933
  (eval $ac_compile) 2>conftest.er1
 
2934
  ac_status=$?
 
2935
  grep -v '^ *+' conftest.er1 >conftest.err
 
2936
  rm -f conftest.er1
 
2937
  cat conftest.err >&5
 
2938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2939
  (exit $ac_status); } &&
 
2940
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2942
  (eval $ac_try) 2>&5
 
2943
  ac_status=$?
 
2944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2945
  (exit $ac_status); }; } &&
 
2946
         { ac_try='test -s conftest.$ac_objext'
 
2947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2948
  (eval $ac_try) 2>&5
 
2949
  ac_status=$?
 
2950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2951
  (exit $ac_status); }; }; then
 
2952
  ac_cv_prog_cc_stdc=$ac_arg
 
2953
break
 
2954
else
 
2955
  echo "$as_me: failed program was:" >&5
 
2956
sed 's/^/| /' conftest.$ac_ext >&5
 
2957
 
 
2958
fi
 
2959
rm -f conftest.err conftest.$ac_objext
 
2960
done
 
2961
rm -f conftest.$ac_ext conftest.$ac_objext
 
2962
CC=$ac_save_CC
 
2963
 
 
2964
fi
 
2965
 
 
2966
case "x$ac_cv_prog_cc_stdc" in
 
2967
  x|xno)
 
2968
    echo "$as_me:$LINENO: result: none needed" >&5
 
2969
echo "${ECHO_T}none needed" >&6 ;;
 
2970
  *)
 
2971
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2972
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2973
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2974
esac
 
2975
 
 
2976
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2977
# in C++ we need to declare it.  In case someone uses the same compiler
 
2978
# for both compiling C and C++ we need to have the C++ compiler decide
 
2979
# the declaration of exit, since it's the most demanding environment.
 
2980
cat >conftest.$ac_ext <<_ACEOF
 
2981
#ifndef __cplusplus
 
2982
  choke me
 
2983
#endif
 
2984
_ACEOF
 
2985
rm -f conftest.$ac_objext
 
2986
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2987
  (eval $ac_compile) 2>conftest.er1
 
2988
  ac_status=$?
 
2989
  grep -v '^ *+' conftest.er1 >conftest.err
 
2990
  rm -f conftest.er1
 
2991
  cat conftest.err >&5
 
2992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2993
  (exit $ac_status); } &&
 
2994
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2996
  (eval $ac_try) 2>&5
 
2997
  ac_status=$?
 
2998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2999
  (exit $ac_status); }; } &&
 
3000
         { ac_try='test -s conftest.$ac_objext'
 
3001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3002
  (eval $ac_try) 2>&5
 
3003
  ac_status=$?
 
3004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3005
  (exit $ac_status); }; }; then
 
3006
  for ac_declaration in \
 
3007
   '' \
 
3008
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3009
   'extern "C" void std::exit (int); using std::exit;' \
 
3010
   'extern "C" void exit (int) throw ();' \
 
3011
   'extern "C" void exit (int);' \
 
3012
   'void exit (int);'
 
3013
do
 
3014
  cat >conftest.$ac_ext <<_ACEOF
 
3015
/* confdefs.h.  */
 
3016
_ACEOF
 
3017
cat confdefs.h >>conftest.$ac_ext
 
3018
cat >>conftest.$ac_ext <<_ACEOF
 
3019
/* end confdefs.h.  */
 
3020
$ac_declaration
 
3021
#include <stdlib.h>
 
3022
int
 
3023
main ()
 
3024
{
 
3025
exit (42);
 
3026
  ;
 
3027
  return 0;
 
3028
}
 
3029
_ACEOF
 
3030
rm -f conftest.$ac_objext
 
3031
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3032
  (eval $ac_compile) 2>conftest.er1
 
3033
  ac_status=$?
 
3034
  grep -v '^ *+' conftest.er1 >conftest.err
 
3035
  rm -f conftest.er1
 
3036
  cat conftest.err >&5
 
3037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3038
  (exit $ac_status); } &&
 
3039
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3041
  (eval $ac_try) 2>&5
 
3042
  ac_status=$?
 
3043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3044
  (exit $ac_status); }; } &&
 
3045
         { ac_try='test -s conftest.$ac_objext'
 
3046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3047
  (eval $ac_try) 2>&5
 
3048
  ac_status=$?
 
3049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3050
  (exit $ac_status); }; }; then
 
3051
  :
 
3052
else
 
3053
  echo "$as_me: failed program was:" >&5
 
3054
sed 's/^/| /' conftest.$ac_ext >&5
 
3055
 
 
3056
continue
 
3057
fi
 
3058
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3059
  cat >conftest.$ac_ext <<_ACEOF
 
3060
/* confdefs.h.  */
 
3061
_ACEOF
 
3062
cat confdefs.h >>conftest.$ac_ext
 
3063
cat >>conftest.$ac_ext <<_ACEOF
 
3064
/* end confdefs.h.  */
 
3065
$ac_declaration
 
3066
int
 
3067
main ()
 
3068
{
 
3069
exit (42);
 
3070
  ;
 
3071
  return 0;
 
3072
}
 
3073
_ACEOF
 
3074
rm -f conftest.$ac_objext
 
3075
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3076
  (eval $ac_compile) 2>conftest.er1
 
3077
  ac_status=$?
 
3078
  grep -v '^ *+' conftest.er1 >conftest.err
 
3079
  rm -f conftest.er1
 
3080
  cat conftest.err >&5
 
3081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3082
  (exit $ac_status); } &&
 
3083
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3085
  (eval $ac_try) 2>&5
 
3086
  ac_status=$?
 
3087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3088
  (exit $ac_status); }; } &&
 
3089
         { ac_try='test -s conftest.$ac_objext'
 
3090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3091
  (eval $ac_try) 2>&5
 
3092
  ac_status=$?
 
3093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3094
  (exit $ac_status); }; }; then
 
3095
  break
 
3096
else
 
3097
  echo "$as_me: failed program was:" >&5
 
3098
sed 's/^/| /' conftest.$ac_ext >&5
 
3099
 
 
3100
fi
 
3101
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3102
done
 
3103
rm -f conftest*
 
3104
if test -n "$ac_declaration"; then
 
3105
  echo '#ifdef __cplusplus' >>confdefs.h
 
3106
  echo $ac_declaration      >>confdefs.h
 
3107
  echo '#endif'             >>confdefs.h
 
3108
fi
 
3109
 
 
3110
else
 
3111
  echo "$as_me: failed program was:" >&5
 
3112
sed 's/^/| /' conftest.$ac_ext >&5
 
3113
 
 
3114
fi
 
3115
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3116
ac_ext=c
 
3117
ac_cpp='$CPP $CPPFLAGS'
 
3118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3121
 
 
3122
depcc="$CC"   am_compiler_list=
 
3123
 
 
3124
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3125
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3126
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3128
else
 
3129
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3130
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3131
  # making bogus files that we don't know about and never remove.  For
 
3132
  # instance it was reported that on HP-UX the gcc test will end up
 
3133
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3134
  # in D'.
 
3135
  mkdir conftest.dir
 
3136
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3137
  # using a relative directory.
 
3138
  cp "$am_depcomp" conftest.dir
 
3139
  cd conftest.dir
 
3140
  # We will build objects and dependencies in a subdirectory because
 
3141
  # it helps to detect inapplicable dependency modes.  For instance
 
3142
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3143
  # side effect of compilation, but ICC will put the dependencies in
 
3144
  # the current directory while Tru64 will put them in the object
 
3145
  # directory.
 
3146
  mkdir sub
 
3147
 
 
3148
  am_cv_CC_dependencies_compiler_type=none
 
3149
  if test "$am_compiler_list" = ""; then
 
3150
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3151
  fi
 
3152
  for depmode in $am_compiler_list; do
 
3153
    # Setup a source with many dependencies, because some compilers
 
3154
    # like to wrap large dependency lists on column 80 (with \), and
 
3155
    # we should not choose a depcomp mode which is confused by this.
 
3156
    #
 
3157
    # We need to recreate these files for each test, as the compiler may
 
3158
    # overwrite some of them when testing with obscure command lines.
 
3159
    # This happens at least with the AIX C compiler.
 
3160
    : > sub/conftest.c
 
3161
    for i in 1 2 3 4 5 6; do
 
3162
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3163
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3164
      # Solaris 8's {/usr,}/bin/sh.
 
3165
      touch sub/conftst$i.h
 
3166
    done
 
3167
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3168
 
 
3169
    case $depmode in
 
3170
    nosideeffect)
 
3171
      # after this tag, mechanisms are not by side-effect, so they'll
 
3172
      # only be used when explicitly requested
 
3173
      if test "x$enable_dependency_tracking" = xyes; then
 
3174
        continue
 
3175
      else
 
3176
        break
 
3177
      fi
 
3178
      ;;
 
3179
    none) break ;;
 
3180
    esac
 
3181
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3182
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3183
    # handle `-M -o', and we need to detect this.
 
3184
    if depmode=$depmode \
 
3185
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3186
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3187
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3188
         >/dev/null 2>conftest.err &&
 
3189
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3190
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3191
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3192
      # icc doesn't choke on unknown options, it will just issue warnings
 
3193
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3194
      # that says an option was ignored or not supported.
 
3195
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3196
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3197
      # The diagnosis changed in icc 8.0:
 
3198
      #   icc: Command line remark: option '-MP' not supported
 
3199
      if (grep 'ignoring option' conftest.err ||
 
3200
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3201
        am_cv_CC_dependencies_compiler_type=$depmode
 
3202
        break
 
3203
      fi
 
3204
    fi
 
3205
  done
 
3206
 
 
3207
  cd ..
 
3208
  rm -rf conftest.dir
 
3209
else
 
3210
  am_cv_CC_dependencies_compiler_type=none
 
3211
fi
 
3212
 
 
3213
fi
 
3214
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3215
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3216
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3217
 
 
3218
 
 
3219
 
 
3220
if
 
3221
  test "x$enable_dependency_tracking" != xno \
 
3222
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3223
  am__fastdepCC_TRUE=
 
3224
  am__fastdepCC_FALSE='#'
 
3225
else
 
3226
  am__fastdepCC_TRUE='#'
 
3227
  am__fastdepCC_FALSE=
 
3228
fi
 
3229
 
 
3230
 
 
3231
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3232
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3233
if test "${lt_cv_path_SED+set}" = set; then
 
3234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3235
else
 
3236
  # Loop through the user's path and test for sed and gsed.
 
3237
# Then use that list of sed's as ones to test for truncation.
 
3238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3239
for as_dir in $PATH
 
3240
do
 
3241
  IFS=$as_save_IFS
 
3242
  test -z "$as_dir" && as_dir=.
 
3243
  for lt_ac_prog in sed gsed; do
 
3244
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3245
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3246
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3247
      fi
 
3248
    done
 
3249
  done
 
3250
done
 
3251
lt_ac_max=0
 
3252
lt_ac_count=0
 
3253
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3254
# along with /bin/sed that truncates output.
 
3255
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3256
  test ! -f $lt_ac_sed && break
 
3257
  cat /dev/null > conftest.in
 
3258
  lt_ac_count=0
 
3259
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3260
  # Check for GNU sed and select it if it is found.
 
3261
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3262
    lt_cv_path_SED=$lt_ac_sed
 
3263
    break
 
3264
  fi
 
3265
  while true; do
 
3266
    cat conftest.in conftest.in >conftest.tmp
 
3267
    mv conftest.tmp conftest.in
 
3268
    cp conftest.in conftest.nl
 
3269
    echo >>conftest.nl
 
3270
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3271
    cmp -s conftest.out conftest.nl || break
 
3272
    # 10000 chars as input seems more than enough
 
3273
    test $lt_ac_count -gt 10 && break
 
3274
    lt_ac_count=`expr $lt_ac_count + 1`
 
3275
    if test $lt_ac_count -gt $lt_ac_max; then
 
3276
      lt_ac_max=$lt_ac_count
 
3277
      lt_cv_path_SED=$lt_ac_sed
 
3278
    fi
 
3279
  done
 
3280
done
 
3281
SED=$lt_cv_path_SED
 
3282
 
 
3283
fi
 
3284
 
 
3285
echo "$as_me:$LINENO: result: $SED" >&5
 
3286
echo "${ECHO_T}$SED" >&6
 
3287
 
 
3288
echo "$as_me:$LINENO: checking for egrep" >&5
 
3289
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3290
if test "${ac_cv_prog_egrep+set}" = set; then
 
3291
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3292
else
 
3293
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3294
    then ac_cv_prog_egrep='grep -E'
 
3295
    else ac_cv_prog_egrep='egrep'
 
3296
    fi
 
3297
fi
 
3298
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3299
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3300
 EGREP=$ac_cv_prog_egrep
 
3301
 
 
3302
 
 
3303
 
 
3304
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3305
if test "${with_gnu_ld+set}" = set; then
 
3306
  withval="$with_gnu_ld"
 
3307
  test "$withval" = no || with_gnu_ld=yes
 
3308
else
 
3309
  with_gnu_ld=no
 
3310
fi;
 
3311
ac_prog=ld
 
3312
if test "$GCC" = yes; then
 
3313
  # Check if gcc -print-prog-name=ld gives a path.
 
3314
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3315
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3316
  case $host in
 
3317
  *-*-mingw*)
 
3318
    # gcc leaves a trailing carriage return which upsets mingw
 
3319
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3320
  *)
 
3321
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3322
  esac
 
3323
  case $ac_prog in
 
3324
    # Accept absolute paths.
 
3325
    [\\/]* | ?:[\\/]*)
 
3326
      re_direlt='/[^/][^/]*/\.\./'
 
3327
      # Canonicalize the pathname of ld
 
3328
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3329
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3330
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3331
      done
 
3332
      test -z "$LD" && LD="$ac_prog"
 
3333
      ;;
 
3334
  "")
 
3335
    # If it fails, then pretend we aren't using GCC.
 
3336
    ac_prog=ld
 
3337
    ;;
 
3338
  *)
 
3339
    # If it is relative, then search for the first ld in PATH.
 
3340
    with_gnu_ld=unknown
 
3341
    ;;
 
3342
  esac
 
3343
elif test "$with_gnu_ld" = yes; then
 
3344
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3345
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3346
else
 
3347
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3348
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3349
fi
 
3350
if test "${lt_cv_path_LD+set}" = set; then
 
3351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3352
else
 
3353
  if test -z "$LD"; then
 
3354
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3355
  for ac_dir in $PATH; do
 
3356
    IFS="$lt_save_ifs"
 
3357
    test -z "$ac_dir" && ac_dir=.
 
3358
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3359
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3360
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3361
      # but apparently some GNU ld's only accept -v.
 
3362
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3363
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3364
      *GNU* | *'with BFD'*)
 
3365
        test "$with_gnu_ld" != no && break
 
3366
        ;;
 
3367
      *)
 
3368
        test "$with_gnu_ld" != yes && break
 
3369
        ;;
 
3370
      esac
 
3371
    fi
 
3372
  done
 
3373
  IFS="$lt_save_ifs"
 
3374
else
 
3375
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3376
fi
 
3377
fi
 
3378
 
 
3379
LD="$lt_cv_path_LD"
 
3380
if test -n "$LD"; then
 
3381
  echo "$as_me:$LINENO: result: $LD" >&5
 
3382
echo "${ECHO_T}$LD" >&6
 
3383
else
 
3384
  echo "$as_me:$LINENO: result: no" >&5
 
3385
echo "${ECHO_T}no" >&6
 
3386
fi
 
3387
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3388
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3389
   { (exit 1); exit 1; }; }
 
3390
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3391
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3392
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3394
else
 
3395
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3396
case `$LD -v 2>&1 </dev/null` in
 
3397
*GNU* | *'with BFD'*)
 
3398
  lt_cv_prog_gnu_ld=yes
 
3399
  ;;
 
3400
*)
 
3401
  lt_cv_prog_gnu_ld=no
 
3402
  ;;
 
3403
esac
 
3404
fi
 
3405
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3406
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3407
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3408
 
 
3409
 
 
3410
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3411
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3412
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3413
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3414
else
 
3415
  lt_cv_ld_reload_flag='-r'
 
3416
fi
 
3417
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3418
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3419
reload_flag=$lt_cv_ld_reload_flag
 
3420
case $reload_flag in
 
3421
"" | " "*) ;;
 
3422
*) reload_flag=" $reload_flag" ;;
 
3423
esac
 
3424
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3425
 
 
3426
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3427
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3428
if test "${lt_cv_path_NM+set}" = set; then
 
3429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3430
else
 
3431
  if test -n "$NM"; then
 
3432
  # Let the user override the test.
 
3433
  lt_cv_path_NM="$NM"
 
3434
else
 
3435
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3436
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3437
    IFS="$lt_save_ifs"
 
3438
    test -z "$ac_dir" && ac_dir=.
 
3439
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3440
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3441
      # Check to see if the nm accepts a BSD-compat flag.
 
3442
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3443
      #   nm: unknown option "B" ignored
 
3444
      # Tru64's nm complains that /dev/null is an invalid object file
 
3445
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3446
      */dev/null* | *'Invalid file or object type'*)
 
3447
        lt_cv_path_NM="$tmp_nm -B"
 
3448
        break
 
3449
        ;;
 
3450
      *)
 
3451
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3452
        */dev/null*)
 
3453
          lt_cv_path_NM="$tmp_nm -p"
 
3454
          break
 
3455
          ;;
 
3456
        *)
 
3457
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3458
          continue # so that we can try to find one that supports BSD flags
 
3459
          ;;
 
3460
        esac
 
3461
      esac
 
3462
    fi
 
3463
  done
 
3464
  IFS="$lt_save_ifs"
 
3465
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3466
fi
 
3467
fi
 
3468
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3469
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3470
NM="$lt_cv_path_NM"
 
3471
 
 
3472
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3473
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3474
LN_S=$as_ln_s
 
3475
if test "$LN_S" = "ln -s"; then
 
3476
  echo "$as_me:$LINENO: result: yes" >&5
 
3477
echo "${ECHO_T}yes" >&6
 
3478
else
 
3479
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3480
echo "${ECHO_T}no, using $LN_S" >&6
 
3481
fi
 
3482
 
 
3483
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3484
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3485
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3486
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3487
else
 
3488
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3489
lt_cv_file_magic_test_file=
 
3490
lt_cv_deplibs_check_method='unknown'
 
3491
# Need to set the preceding variable on all platforms that support
 
3492
# interlibrary dependencies.
 
3493
# 'none' -- dependencies not supported.
 
3494
# `unknown' -- same as none, but documents that we really don't know.
 
3495
# 'pass_all' -- all dependencies passed with no checks.
 
3496
# 'test_compile' -- check by making test program.
 
3497
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3498
# which responds to the $file_magic_cmd with a given extended regex.
 
3499
# If you have `file' or equivalent on your system and you're not sure
 
3500
# whether `pass_all' will *always* work, you probably want this one.
 
3501
 
 
3502
case $host_os in
 
3503
aix4* | aix5*)
 
3504
  lt_cv_deplibs_check_method=pass_all
 
3505
  ;;
 
3506
 
 
3507
beos*)
 
3508
  lt_cv_deplibs_check_method=pass_all
 
3509
  ;;
 
3510
 
 
3511
bsdi4*)
 
3512
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3513
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3514
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3515
  ;;
 
3516
 
 
3517
cygwin*)
 
3518
  # func_win32_libid is a shell function defined in ltmain.sh
 
3519
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3520
  lt_cv_file_magic_cmd='func_win32_libid'
 
3521
  ;;
 
3522
 
 
3523
mingw* | pw32*)
 
3524
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3525
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3526
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3527
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3528
  ;;
 
3529
 
 
3530
darwin* | rhapsody*)
 
3531
  lt_cv_deplibs_check_method=pass_all
 
3532
  ;;
 
3533
 
 
3534
freebsd* | kfreebsd*-gnu)
 
3535
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3536
    case $host_cpu in
 
3537
    i*86 )
 
3538
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3539
      # Let's accept both of them until this is cleared up.
 
3540
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3541
      lt_cv_file_magic_cmd=/usr/bin/file
 
3542
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3543
      ;;
 
3544
    esac
 
3545
  else
 
3546
    lt_cv_deplibs_check_method=pass_all
 
3547
  fi
 
3548
  ;;
 
3549
 
 
3550
gnu*)
 
3551
  lt_cv_deplibs_check_method=pass_all
 
3552
  ;;
 
3553
 
 
3554
hpux10.20* | hpux11*)
 
3555
  lt_cv_file_magic_cmd=/usr/bin/file
 
3556
  case "$host_cpu" in
 
3557
  ia64*)
 
3558
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3559
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3560
    ;;
 
3561
  hppa*64*)
 
3562
    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]'
 
3563
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3564
    ;;
 
3565
  *)
 
3566
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3567
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3568
    ;;
 
3569
  esac
 
3570
  ;;
 
3571
 
 
3572
irix5* | irix6* | nonstopux*)
 
3573
  case $LD in
 
3574
  *-32|*"-32 ") libmagic=32-bit;;
 
3575
  *-n32|*"-n32 ") libmagic=N32;;
 
3576
  *-64|*"-64 ") libmagic=64-bit;;
 
3577
  *) libmagic=never-match;;
 
3578
  esac
 
3579
  lt_cv_deplibs_check_method=pass_all
 
3580
  ;;
 
3581
 
 
3582
# This must be Linux ELF.
 
3583
linux*)
 
3584
  lt_cv_deplibs_check_method=pass_all
 
3585
  ;;
 
3586
 
 
3587
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3588
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3589
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3590
  else
 
3591
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3592
  fi
 
3593
  ;;
 
3594
 
 
3595
newos6*)
 
3596
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3597
  lt_cv_file_magic_cmd=/usr/bin/file
 
3598
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3599
  ;;
 
3600
 
 
3601
nto-qnx*)
 
3602
  lt_cv_deplibs_check_method=unknown
 
3603
  ;;
 
3604
 
 
3605
openbsd*)
 
3606
  lt_cv_file_magic_cmd=/usr/bin/file
 
3607
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3608
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3609
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3610
  else
 
3611
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3612
  fi
 
3613
  ;;
 
3614
 
 
3615
osf3* | osf4* | osf5*)
 
3616
  lt_cv_deplibs_check_method=pass_all
 
3617
  ;;
 
3618
 
 
3619
sco3.2v5*)
 
3620
  lt_cv_deplibs_check_method=pass_all
 
3621
  ;;
 
3622
 
 
3623
solaris*)
 
3624
  lt_cv_deplibs_check_method=pass_all
 
3625
  ;;
 
3626
 
 
3627
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3628
  case $host_vendor in
 
3629
  motorola)
 
3630
    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]'
 
3631
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3632
    ;;
 
3633
  ncr)
 
3634
    lt_cv_deplibs_check_method=pass_all
 
3635
    ;;
 
3636
  sequent)
 
3637
    lt_cv_file_magic_cmd='/bin/file'
 
3638
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3639
    ;;
 
3640
  sni)
 
3641
    lt_cv_file_magic_cmd='/bin/file'
 
3642
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3643
    lt_cv_file_magic_test_file=/lib/libc.so
 
3644
    ;;
 
3645
  siemens)
 
3646
    lt_cv_deplibs_check_method=pass_all
 
3647
    ;;
 
3648
  esac
 
3649
  ;;
 
3650
 
 
3651
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3652
  lt_cv_deplibs_check_method=pass_all
 
3653
  ;;
 
3654
esac
 
3655
 
 
3656
fi
 
3657
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3658
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3659
file_magic_cmd=$lt_cv_file_magic_cmd
 
3660
deplibs_check_method=$lt_cv_deplibs_check_method
 
3661
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3662
 
 
3663
 
 
3664
 
 
3665
 
 
3666
# If no C compiler was specified, use CC.
 
3667
LTCC=${LTCC-"$CC"}
 
3668
 
 
3669
# Allow CC to be a program name with arguments.
 
3670
compiler=$CC
 
3671
 
 
3672
 
 
3673
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3674
if test "${enable_libtool_lock+set}" = set; then
 
3675
  enableval="$enable_libtool_lock"
 
3676
 
 
3677
fi;
 
3678
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3679
 
 
3680
# Some flags need to be propagated to the compiler or linker for good
 
3681
# libtool support.
 
3682
case $host in
 
3683
ia64-*-hpux*)
 
3684
  # Find out which ABI we are using.
 
3685
  echo 'int i;' > conftest.$ac_ext
 
3686
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3687
  (eval $ac_compile) 2>&5
 
3688
  ac_status=$?
 
3689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3690
  (exit $ac_status); }; then
 
3691
    case `/usr/bin/file conftest.$ac_objext` in
 
3692
    *ELF-32*)
 
3693
      HPUX_IA64_MODE="32"
 
3694
      ;;
 
3695
    *ELF-64*)
 
3696
      HPUX_IA64_MODE="64"
 
3697
      ;;
 
3698
    esac
 
3699
  fi
 
3700
  rm -rf conftest*
 
3701
  ;;
 
3702
*-*-irix6*)
 
3703
  # Find out which ABI we are using.
 
3704
  echo '#line 3704 "configure"' > conftest.$ac_ext
 
3705
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3706
  (eval $ac_compile) 2>&5
 
3707
  ac_status=$?
 
3708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3709
  (exit $ac_status); }; then
 
3710
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3711
    case `/usr/bin/file conftest.$ac_objext` in
 
3712
    *32-bit*)
 
3713
      LD="${LD-ld} -melf32bsmip"
 
3714
      ;;
 
3715
    *N32*)
 
3716
      LD="${LD-ld} -melf32bmipn32"
 
3717
      ;;
 
3718
    *64-bit*)
 
3719
      LD="${LD-ld} -melf64bmip"
 
3720
      ;;
 
3721
    esac
 
3722
   else
 
3723
    case `/usr/bin/file conftest.$ac_objext` in
 
3724
    *32-bit*)
 
3725
      LD="${LD-ld} -32"
 
3726
      ;;
 
3727
    *N32*)
 
3728
      LD="${LD-ld} -n32"
 
3729
      ;;
 
3730
    *64-bit*)
 
3731
      LD="${LD-ld} -64"
 
3732
      ;;
 
3733
    esac
 
3734
   fi
 
3735
  fi
 
3736
  rm -rf conftest*
 
3737
  ;;
 
3738
 
 
3739
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3740
  # Find out which ABI we are using.
 
3741
  echo 'int i;' > conftest.$ac_ext
 
3742
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3743
  (eval $ac_compile) 2>&5
 
3744
  ac_status=$?
 
3745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3746
  (exit $ac_status); }; then
 
3747
    case "`/usr/bin/file conftest.o`" in
 
3748
    *32-bit*)
 
3749
      case $host in
 
3750
        x86_64-*linux*)
 
3751
          LD="${LD-ld} -m elf_i386"
 
3752
          ;;
 
3753
        ppc64-*linux*|powerpc64-*linux*)
 
3754
          LD="${LD-ld} -m elf32ppclinux"
 
3755
          ;;
 
3756
        s390x-*linux*)
 
3757
          LD="${LD-ld} -m elf_s390"
 
3758
          ;;
 
3759
        sparc64-*linux*)
 
3760
          LD="${LD-ld} -m elf32_sparc"
 
3761
          ;;
 
3762
      esac
 
3763
      ;;
 
3764
    *64-bit*)
 
3765
      case $host in
 
3766
        x86_64-*linux*)
 
3767
          LD="${LD-ld} -m elf_x86_64"
 
3768
          ;;
 
3769
        ppc*-*linux*|powerpc*-*linux*)
 
3770
          LD="${LD-ld} -m elf64ppc"
 
3771
          ;;
 
3772
        s390*-*linux*)
 
3773
          LD="${LD-ld} -m elf64_s390"
 
3774
          ;;
 
3775
        sparc*-*linux*)
 
3776
          LD="${LD-ld} -m elf64_sparc"
 
3777
          ;;
 
3778
      esac
 
3779
      ;;
 
3780
    esac
 
3781
  fi
 
3782
  rm -rf conftest*
 
3783
  ;;
 
3784
 
 
3785
*-*-sco3.2v5*)
 
3786
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3787
  SAVE_CFLAGS="$CFLAGS"
 
3788
  CFLAGS="$CFLAGS -belf"
 
3789
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3790
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3791
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3792
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3793
else
 
3794
  ac_ext=c
 
3795
ac_cpp='$CPP $CPPFLAGS'
 
3796
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3797
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3798
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3799
 
 
3800
     cat >conftest.$ac_ext <<_ACEOF
 
3801
/* confdefs.h.  */
 
3802
_ACEOF
 
3803
cat confdefs.h >>conftest.$ac_ext
 
3804
cat >>conftest.$ac_ext <<_ACEOF
 
3805
/* end confdefs.h.  */
 
3806
 
 
3807
int
 
3808
main ()
 
3809
{
 
3810
 
 
3811
  ;
 
3812
  return 0;
 
3813
}
 
3814
_ACEOF
 
3815
rm -f conftest.$ac_objext conftest$ac_exeext
 
3816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3817
  (eval $ac_link) 2>conftest.er1
 
3818
  ac_status=$?
 
3819
  grep -v '^ *+' conftest.er1 >conftest.err
 
3820
  rm -f conftest.er1
 
3821
  cat conftest.err >&5
 
3822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3823
  (exit $ac_status); } &&
 
3824
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3826
  (eval $ac_try) 2>&5
 
3827
  ac_status=$?
 
3828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3829
  (exit $ac_status); }; } &&
 
3830
         { ac_try='test -s conftest$ac_exeext'
 
3831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3832
  (eval $ac_try) 2>&5
 
3833
  ac_status=$?
 
3834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3835
  (exit $ac_status); }; }; then
 
3836
  lt_cv_cc_needs_belf=yes
 
3837
else
 
3838
  echo "$as_me: failed program was:" >&5
 
3839
sed 's/^/| /' conftest.$ac_ext >&5
 
3840
 
 
3841
lt_cv_cc_needs_belf=no
 
3842
fi
 
3843
rm -f conftest.err conftest.$ac_objext \
 
3844
      conftest$ac_exeext conftest.$ac_ext
 
3845
     ac_ext=c
 
3846
ac_cpp='$CPP $CPPFLAGS'
 
3847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3850
 
 
3851
fi
 
3852
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3853
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3854
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3855
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3856
    CFLAGS="$SAVE_CFLAGS"
 
3857
  fi
 
3858
  ;;
 
3859
 
 
3860
esac
 
3861
 
 
3862
need_locks="$enable_libtool_lock"
 
3863
 
 
3864
 
 
3865
ac_ext=c
 
3866
ac_cpp='$CPP $CPPFLAGS'
 
3867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3870
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3871
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3872
# On Suns, sometimes $CPP names a directory.
 
3873
if test -n "$CPP" && test -d "$CPP"; then
 
3874
  CPP=
 
3875
fi
 
3876
if test -z "$CPP"; then
 
3877
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3879
else
 
3880
      # Double quotes because CPP needs to be expanded
 
3881
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3882
    do
 
3883
      ac_preproc_ok=false
 
3884
for ac_c_preproc_warn_flag in '' yes
 
3885
do
 
3886
  # Use a header file that comes with gcc, so configuring glibc
 
3887
  # with a fresh cross-compiler works.
 
3888
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3889
  # <limits.h> exists even on freestanding compilers.
 
3890
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3891
  # not just through cpp. "Syntax error" is here to catch this case.
 
3892
  cat >conftest.$ac_ext <<_ACEOF
 
3893
/* confdefs.h.  */
 
3894
_ACEOF
 
3895
cat confdefs.h >>conftest.$ac_ext
 
3896
cat >>conftest.$ac_ext <<_ACEOF
 
3897
/* end confdefs.h.  */
 
3898
#ifdef __STDC__
 
3899
# include <limits.h>
 
3900
#else
 
3901
# include <assert.h>
 
3902
#endif
 
3903
                     Syntax error
 
3904
_ACEOF
 
3905
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3906
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3907
  ac_status=$?
 
3908
  grep -v '^ *+' conftest.er1 >conftest.err
 
3909
  rm -f conftest.er1
 
3910
  cat conftest.err >&5
 
3911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3912
  (exit $ac_status); } >/dev/null; then
 
3913
  if test -s conftest.err; then
 
3914
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3915
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3916
  else
 
3917
    ac_cpp_err=
 
3918
  fi
 
3919
else
 
3920
  ac_cpp_err=yes
 
3921
fi
 
3922
if test -z "$ac_cpp_err"; then
 
3923
  :
 
3924
else
 
3925
  echo "$as_me: failed program was:" >&5
 
3926
sed 's/^/| /' conftest.$ac_ext >&5
 
3927
 
 
3928
  # Broken: fails on valid input.
 
3929
continue
 
3930
fi
 
3931
rm -f conftest.err conftest.$ac_ext
 
3932
 
 
3933
  # OK, works on sane cases.  Now check whether non-existent headers
 
3934
  # can be detected and how.
 
3935
  cat >conftest.$ac_ext <<_ACEOF
 
3936
/* confdefs.h.  */
 
3937
_ACEOF
 
3938
cat confdefs.h >>conftest.$ac_ext
 
3939
cat >>conftest.$ac_ext <<_ACEOF
 
3940
/* end confdefs.h.  */
 
3941
#include <ac_nonexistent.h>
 
3942
_ACEOF
 
3943
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3944
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3945
  ac_status=$?
 
3946
  grep -v '^ *+' conftest.er1 >conftest.err
 
3947
  rm -f conftest.er1
 
3948
  cat conftest.err >&5
 
3949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3950
  (exit $ac_status); } >/dev/null; then
 
3951
  if test -s conftest.err; then
 
3952
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3953
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3954
  else
 
3955
    ac_cpp_err=
 
3956
  fi
 
3957
else
 
3958
  ac_cpp_err=yes
 
3959
fi
 
3960
if test -z "$ac_cpp_err"; then
 
3961
  # Broken: success on invalid input.
 
3962
continue
 
3963
else
 
3964
  echo "$as_me: failed program was:" >&5
 
3965
sed 's/^/| /' conftest.$ac_ext >&5
 
3966
 
 
3967
  # Passes both tests.
 
3968
ac_preproc_ok=:
 
3969
break
 
3970
fi
 
3971
rm -f conftest.err conftest.$ac_ext
 
3972
 
 
3973
done
 
3974
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3975
rm -f conftest.err conftest.$ac_ext
 
3976
if $ac_preproc_ok; then
 
3977
  break
 
3978
fi
 
3979
 
 
3980
    done
 
3981
    ac_cv_prog_CPP=$CPP
 
3982
 
 
3983
fi
 
3984
  CPP=$ac_cv_prog_CPP
 
3985
else
 
3986
  ac_cv_prog_CPP=$CPP
 
3987
fi
 
3988
echo "$as_me:$LINENO: result: $CPP" >&5
 
3989
echo "${ECHO_T}$CPP" >&6
 
3990
ac_preproc_ok=false
 
3991
for ac_c_preproc_warn_flag in '' yes
 
3992
do
 
3993
  # Use a header file that comes with gcc, so configuring glibc
 
3994
  # with a fresh cross-compiler works.
 
3995
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3996
  # <limits.h> exists even on freestanding compilers.
 
3997
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3998
  # not just through cpp. "Syntax error" is here to catch this case.
 
3999
  cat >conftest.$ac_ext <<_ACEOF
 
4000
/* confdefs.h.  */
 
4001
_ACEOF
 
4002
cat confdefs.h >>conftest.$ac_ext
 
4003
cat >>conftest.$ac_ext <<_ACEOF
 
4004
/* end confdefs.h.  */
 
4005
#ifdef __STDC__
 
4006
# include <limits.h>
 
4007
#else
 
4008
# include <assert.h>
 
4009
#endif
 
4010
                     Syntax error
 
4011
_ACEOF
 
4012
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4013
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4014
  ac_status=$?
 
4015
  grep -v '^ *+' conftest.er1 >conftest.err
 
4016
  rm -f conftest.er1
 
4017
  cat conftest.err >&5
 
4018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4019
  (exit $ac_status); } >/dev/null; then
 
4020
  if test -s conftest.err; then
 
4021
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4022
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4023
  else
 
4024
    ac_cpp_err=
 
4025
  fi
 
4026
else
 
4027
  ac_cpp_err=yes
 
4028
fi
 
4029
if test -z "$ac_cpp_err"; then
 
4030
  :
 
4031
else
 
4032
  echo "$as_me: failed program was:" >&5
 
4033
sed 's/^/| /' conftest.$ac_ext >&5
 
4034
 
 
4035
  # Broken: fails on valid input.
 
4036
continue
 
4037
fi
 
4038
rm -f conftest.err conftest.$ac_ext
 
4039
 
 
4040
  # OK, works on sane cases.  Now check whether non-existent headers
 
4041
  # can be detected and how.
 
4042
  cat >conftest.$ac_ext <<_ACEOF
 
4043
/* confdefs.h.  */
 
4044
_ACEOF
 
4045
cat confdefs.h >>conftest.$ac_ext
 
4046
cat >>conftest.$ac_ext <<_ACEOF
 
4047
/* end confdefs.h.  */
 
4048
#include <ac_nonexistent.h>
 
4049
_ACEOF
 
4050
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4051
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4052
  ac_status=$?
 
4053
  grep -v '^ *+' conftest.er1 >conftest.err
 
4054
  rm -f conftest.er1
 
4055
  cat conftest.err >&5
 
4056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4057
  (exit $ac_status); } >/dev/null; then
 
4058
  if test -s conftest.err; then
 
4059
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4060
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4061
  else
 
4062
    ac_cpp_err=
 
4063
  fi
 
4064
else
 
4065
  ac_cpp_err=yes
 
4066
fi
 
4067
if test -z "$ac_cpp_err"; then
 
4068
  # Broken: success on invalid input.
 
4069
continue
 
4070
else
 
4071
  echo "$as_me: failed program was:" >&5
 
4072
sed 's/^/| /' conftest.$ac_ext >&5
 
4073
 
 
4074
  # Passes both tests.
 
4075
ac_preproc_ok=:
 
4076
break
 
4077
fi
 
4078
rm -f conftest.err conftest.$ac_ext
 
4079
 
 
4080
done
 
4081
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4082
rm -f conftest.err conftest.$ac_ext
 
4083
if $ac_preproc_ok; then
 
4084
  :
 
4085
else
 
4086
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4087
See \`config.log' for more details." >&5
 
4088
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4089
See \`config.log' for more details." >&2;}
 
4090
   { (exit 1); exit 1; }; }
 
4091
fi
 
4092
 
 
4093
ac_ext=c
 
4094
ac_cpp='$CPP $CPPFLAGS'
 
4095
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4096
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4097
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4098
 
 
4099
 
 
4100
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4101
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4102
if test "${ac_cv_header_stdc+set}" = set; then
 
4103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4104
else
 
4105
  cat >conftest.$ac_ext <<_ACEOF
 
4106
/* confdefs.h.  */
 
4107
_ACEOF
 
4108
cat confdefs.h >>conftest.$ac_ext
 
4109
cat >>conftest.$ac_ext <<_ACEOF
 
4110
/* end confdefs.h.  */
 
4111
#include <stdlib.h>
 
4112
#include <stdarg.h>
 
4113
#include <string.h>
 
4114
#include <float.h>
 
4115
 
 
4116
int
 
4117
main ()
 
4118
{
 
4119
 
 
4120
  ;
 
4121
  return 0;
 
4122
}
 
4123
_ACEOF
 
4124
rm -f conftest.$ac_objext
 
4125
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4126
  (eval $ac_compile) 2>conftest.er1
 
4127
  ac_status=$?
 
4128
  grep -v '^ *+' conftest.er1 >conftest.err
 
4129
  rm -f conftest.er1
 
4130
  cat conftest.err >&5
 
4131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4132
  (exit $ac_status); } &&
 
4133
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4134
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4135
  (eval $ac_try) 2>&5
 
4136
  ac_status=$?
 
4137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4138
  (exit $ac_status); }; } &&
 
4139
         { ac_try='test -s conftest.$ac_objext'
 
4140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4141
  (eval $ac_try) 2>&5
 
4142
  ac_status=$?
 
4143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4144
  (exit $ac_status); }; }; then
 
4145
  ac_cv_header_stdc=yes
 
4146
else
 
4147
  echo "$as_me: failed program was:" >&5
 
4148
sed 's/^/| /' conftest.$ac_ext >&5
 
4149
 
 
4150
ac_cv_header_stdc=no
 
4151
fi
 
4152
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4153
 
 
4154
if test $ac_cv_header_stdc = yes; then
 
4155
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4156
  cat >conftest.$ac_ext <<_ACEOF
 
4157
/* confdefs.h.  */
 
4158
_ACEOF
 
4159
cat confdefs.h >>conftest.$ac_ext
 
4160
cat >>conftest.$ac_ext <<_ACEOF
 
4161
/* end confdefs.h.  */
 
4162
#include <string.h>
 
4163
 
 
4164
_ACEOF
 
4165
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4166
  $EGREP "memchr" >/dev/null 2>&1; then
 
4167
  :
 
4168
else
 
4169
  ac_cv_header_stdc=no
 
4170
fi
 
4171
rm -f conftest*
 
4172
 
 
4173
fi
 
4174
 
 
4175
if test $ac_cv_header_stdc = yes; then
 
4176
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4177
  cat >conftest.$ac_ext <<_ACEOF
 
4178
/* confdefs.h.  */
 
4179
_ACEOF
 
4180
cat confdefs.h >>conftest.$ac_ext
 
4181
cat >>conftest.$ac_ext <<_ACEOF
 
4182
/* end confdefs.h.  */
 
4183
#include <stdlib.h>
 
4184
 
 
4185
_ACEOF
 
4186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4187
  $EGREP "free" >/dev/null 2>&1; then
 
4188
  :
 
4189
else
 
4190
  ac_cv_header_stdc=no
 
4191
fi
 
4192
rm -f conftest*
 
4193
 
 
4194
fi
 
4195
 
 
4196
if test $ac_cv_header_stdc = yes; then
 
4197
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4198
  if test "$cross_compiling" = yes; then
 
4199
  :
 
4200
else
 
4201
  cat >conftest.$ac_ext <<_ACEOF
 
4202
/* confdefs.h.  */
 
4203
_ACEOF
 
4204
cat confdefs.h >>conftest.$ac_ext
 
4205
cat >>conftest.$ac_ext <<_ACEOF
 
4206
/* end confdefs.h.  */
 
4207
#include <ctype.h>
 
4208
#if ((' ' & 0x0FF) == 0x020)
 
4209
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4210
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4211
#else
 
4212
# define ISLOWER(c) \
 
4213
                   (('a' <= (c) && (c) <= 'i') \
 
4214
                     || ('j' <= (c) && (c) <= 'r') \
 
4215
                     || ('s' <= (c) && (c) <= 'z'))
 
4216
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4217
#endif
 
4218
 
 
4219
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4220
int
 
4221
main ()
 
4222
{
 
4223
  int i;
 
4224
  for (i = 0; i < 256; i++)
 
4225
    if (XOR (islower (i), ISLOWER (i))
 
4226
        || toupper (i) != TOUPPER (i))
 
4227
      exit(2);
 
4228
  exit (0);
 
4229
}
 
4230
_ACEOF
 
4231
rm -f conftest$ac_exeext
 
4232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4233
  (eval $ac_link) 2>&5
 
4234
  ac_status=$?
 
4235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4236
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4238
  (eval $ac_try) 2>&5
 
4239
  ac_status=$?
 
4240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4241
  (exit $ac_status); }; }; then
 
4242
  :
 
4243
else
 
4244
  echo "$as_me: program exited with status $ac_status" >&5
 
4245
echo "$as_me: failed program was:" >&5
 
4246
sed 's/^/| /' conftest.$ac_ext >&5
 
4247
 
 
4248
( exit $ac_status )
 
4249
ac_cv_header_stdc=no
 
4250
fi
 
4251
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4252
fi
 
4253
fi
 
4254
fi
 
4255
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4256
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4257
if test $ac_cv_header_stdc = yes; then
 
4258
 
 
4259
cat >>confdefs.h <<\_ACEOF
 
4260
#define STDC_HEADERS 1
 
4261
_ACEOF
 
4262
 
 
4263
fi
 
4264
 
 
4265
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4266
 
 
4267
 
 
4268
 
 
4269
 
 
4270
 
 
4271
 
 
4272
 
 
4273
 
 
4274
 
 
4275
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4276
                  inttypes.h stdint.h unistd.h
 
4277
do
 
4278
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4279
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4280
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4281
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4282
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4283
else
 
4284
  cat >conftest.$ac_ext <<_ACEOF
 
4285
/* confdefs.h.  */
 
4286
_ACEOF
 
4287
cat confdefs.h >>conftest.$ac_ext
 
4288
cat >>conftest.$ac_ext <<_ACEOF
 
4289
/* end confdefs.h.  */
 
4290
$ac_includes_default
 
4291
 
 
4292
#include <$ac_header>
 
4293
_ACEOF
 
4294
rm -f conftest.$ac_objext
 
4295
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4296
  (eval $ac_compile) 2>conftest.er1
 
4297
  ac_status=$?
 
4298
  grep -v '^ *+' conftest.er1 >conftest.err
 
4299
  rm -f conftest.er1
 
4300
  cat conftest.err >&5
 
4301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4302
  (exit $ac_status); } &&
 
4303
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4305
  (eval $ac_try) 2>&5
 
4306
  ac_status=$?
 
4307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4308
  (exit $ac_status); }; } &&
 
4309
         { ac_try='test -s conftest.$ac_objext'
 
4310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4311
  (eval $ac_try) 2>&5
 
4312
  ac_status=$?
 
4313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4314
  (exit $ac_status); }; }; then
 
4315
  eval "$as_ac_Header=yes"
 
4316
else
 
4317
  echo "$as_me: failed program was:" >&5
 
4318
sed 's/^/| /' conftest.$ac_ext >&5
 
4319
 
 
4320
eval "$as_ac_Header=no"
 
4321
fi
 
4322
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4323
fi
 
4324
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4325
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4326
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4327
  cat >>confdefs.h <<_ACEOF
 
4328
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4329
_ACEOF
 
4330
 
 
4331
fi
 
4332
 
 
4333
done
 
4334
 
 
4335
 
 
4336
 
 
4337
for ac_header in dlfcn.h
 
4338
do
 
4339
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4340
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4341
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4342
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4343
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4345
fi
 
4346
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4347
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4348
else
 
4349
  # Is the header compilable?
 
4350
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4351
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4352
cat >conftest.$ac_ext <<_ACEOF
 
4353
/* confdefs.h.  */
 
4354
_ACEOF
 
4355
cat confdefs.h >>conftest.$ac_ext
 
4356
cat >>conftest.$ac_ext <<_ACEOF
 
4357
/* end confdefs.h.  */
 
4358
$ac_includes_default
 
4359
#include <$ac_header>
 
4360
_ACEOF
 
4361
rm -f conftest.$ac_objext
 
4362
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4363
  (eval $ac_compile) 2>conftest.er1
 
4364
  ac_status=$?
 
4365
  grep -v '^ *+' conftest.er1 >conftest.err
 
4366
  rm -f conftest.er1
 
4367
  cat conftest.err >&5
 
4368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4369
  (exit $ac_status); } &&
 
4370
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4372
  (eval $ac_try) 2>&5
 
4373
  ac_status=$?
 
4374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4375
  (exit $ac_status); }; } &&
 
4376
         { ac_try='test -s conftest.$ac_objext'
 
4377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4378
  (eval $ac_try) 2>&5
 
4379
  ac_status=$?
 
4380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4381
  (exit $ac_status); }; }; then
 
4382
  ac_header_compiler=yes
 
4383
else
 
4384
  echo "$as_me: failed program was:" >&5
 
4385
sed 's/^/| /' conftest.$ac_ext >&5
 
4386
 
 
4387
ac_header_compiler=no
 
4388
fi
 
4389
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4390
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4391
echo "${ECHO_T}$ac_header_compiler" >&6
 
4392
 
 
4393
# Is the header present?
 
4394
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4395
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4396
cat >conftest.$ac_ext <<_ACEOF
 
4397
/* confdefs.h.  */
 
4398
_ACEOF
 
4399
cat confdefs.h >>conftest.$ac_ext
 
4400
cat >>conftest.$ac_ext <<_ACEOF
 
4401
/* end confdefs.h.  */
 
4402
#include <$ac_header>
 
4403
_ACEOF
 
4404
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4405
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4406
  ac_status=$?
 
4407
  grep -v '^ *+' conftest.er1 >conftest.err
 
4408
  rm -f conftest.er1
 
4409
  cat conftest.err >&5
 
4410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4411
  (exit $ac_status); } >/dev/null; then
 
4412
  if test -s conftest.err; then
 
4413
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4414
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4415
  else
 
4416
    ac_cpp_err=
 
4417
  fi
 
4418
else
 
4419
  ac_cpp_err=yes
 
4420
fi
 
4421
if test -z "$ac_cpp_err"; then
 
4422
  ac_header_preproc=yes
 
4423
else
 
4424
  echo "$as_me: failed program was:" >&5
 
4425
sed 's/^/| /' conftest.$ac_ext >&5
 
4426
 
 
4427
  ac_header_preproc=no
 
4428
fi
 
4429
rm -f conftest.err conftest.$ac_ext
 
4430
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4431
echo "${ECHO_T}$ac_header_preproc" >&6
 
4432
 
 
4433
# So?  What about this header?
 
4434
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4435
  yes:no: )
 
4436
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4437
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4438
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4439
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4440
    ac_header_preproc=yes
 
4441
    ;;
 
4442
  no:yes:* )
 
4443
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4444
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4445
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4446
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4447
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4448
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4449
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4450
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4451
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4452
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4453
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4454
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4455
    (
 
4456
      cat <<\_ASBOX
 
4457
## ------------------------------------- ##
 
4458
## Report this to daniel@freedesktop.org ##
 
4459
## ------------------------------------- ##
 
4460
_ASBOX
 
4461
    ) |
 
4462
      sed "s/^/$as_me: WARNING:     /" >&2
 
4463
    ;;
 
4464
esac
 
4465
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4466
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4467
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4469
else
 
4470
  eval "$as_ac_Header=\$ac_header_preproc"
 
4471
fi
 
4472
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4473
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4474
 
 
4475
fi
 
4476
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4477
  cat >>confdefs.h <<_ACEOF
 
4478
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4479
_ACEOF
 
4480
 
 
4481
fi
 
4482
 
 
4483
done
 
4484
 
 
4485
ac_ext=cc
 
4486
ac_cpp='$CXXCPP $CPPFLAGS'
 
4487
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4488
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4489
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4490
if test -n "$ac_tool_prefix"; then
 
4491
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4492
  do
 
4493
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4494
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4495
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4496
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4497
if test "${ac_cv_prog_CXX+set}" = set; then
 
4498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4499
else
 
4500
  if test -n "$CXX"; then
 
4501
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4502
else
 
4503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4504
for as_dir in $PATH
 
4505
do
 
4506
  IFS=$as_save_IFS
 
4507
  test -z "$as_dir" && as_dir=.
 
4508
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4509
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4510
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4511
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4512
    break 2
 
4513
  fi
 
4514
done
 
4515
done
 
4516
 
 
4517
fi
 
4518
fi
 
4519
CXX=$ac_cv_prog_CXX
 
4520
if test -n "$CXX"; then
 
4521
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4522
echo "${ECHO_T}$CXX" >&6
 
4523
else
 
4524
  echo "$as_me:$LINENO: result: no" >&5
 
4525
echo "${ECHO_T}no" >&6
 
4526
fi
 
4527
 
 
4528
    test -n "$CXX" && break
 
4529
  done
 
4530
fi
 
4531
if test -z "$CXX"; then
 
4532
  ac_ct_CXX=$CXX
 
4533
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4534
do
 
4535
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4536
set dummy $ac_prog; ac_word=$2
 
4537
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4538
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4539
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4541
else
 
4542
  if test -n "$ac_ct_CXX"; then
 
4543
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4544
else
 
4545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4546
for as_dir in $PATH
 
4547
do
 
4548
  IFS=$as_save_IFS
 
4549
  test -z "$as_dir" && as_dir=.
 
4550
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4551
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4552
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4553
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4554
    break 2
 
4555
  fi
 
4556
done
 
4557
done
 
4558
 
 
4559
fi
 
4560
fi
 
4561
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4562
if test -n "$ac_ct_CXX"; then
 
4563
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4564
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4565
else
 
4566
  echo "$as_me:$LINENO: result: no" >&5
 
4567
echo "${ECHO_T}no" >&6
 
4568
fi
 
4569
 
 
4570
  test -n "$ac_ct_CXX" && break
 
4571
done
 
4572
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4573
 
 
4574
  CXX=$ac_ct_CXX
 
4575
fi
 
4576
 
 
4577
 
 
4578
# Provide some information about the compiler.
 
4579
echo "$as_me:$LINENO:" \
 
4580
     "checking for C++ compiler version" >&5
 
4581
ac_compiler=`set X $ac_compile; echo $2`
 
4582
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4583
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4584
  ac_status=$?
 
4585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4586
  (exit $ac_status); }
 
4587
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4588
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4589
  ac_status=$?
 
4590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4591
  (exit $ac_status); }
 
4592
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4593
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4594
  ac_status=$?
 
4595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4596
  (exit $ac_status); }
 
4597
 
 
4598
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4599
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4600
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4602
else
 
4603
  cat >conftest.$ac_ext <<_ACEOF
 
4604
/* confdefs.h.  */
 
4605
_ACEOF
 
4606
cat confdefs.h >>conftest.$ac_ext
 
4607
cat >>conftest.$ac_ext <<_ACEOF
 
4608
/* end confdefs.h.  */
 
4609
 
 
4610
int
 
4611
main ()
 
4612
{
 
4613
#ifndef __GNUC__
 
4614
       choke me
 
4615
#endif
 
4616
 
 
4617
  ;
 
4618
  return 0;
 
4619
}
 
4620
_ACEOF
 
4621
rm -f conftest.$ac_objext
 
4622
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4623
  (eval $ac_compile) 2>conftest.er1
 
4624
  ac_status=$?
 
4625
  grep -v '^ *+' conftest.er1 >conftest.err
 
4626
  rm -f conftest.er1
 
4627
  cat conftest.err >&5
 
4628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4629
  (exit $ac_status); } &&
 
4630
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4632
  (eval $ac_try) 2>&5
 
4633
  ac_status=$?
 
4634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4635
  (exit $ac_status); }; } &&
 
4636
         { ac_try='test -s conftest.$ac_objext'
 
4637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4638
  (eval $ac_try) 2>&5
 
4639
  ac_status=$?
 
4640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4641
  (exit $ac_status); }; }; then
 
4642
  ac_compiler_gnu=yes
 
4643
else
 
4644
  echo "$as_me: failed program was:" >&5
 
4645
sed 's/^/| /' conftest.$ac_ext >&5
 
4646
 
 
4647
ac_compiler_gnu=no
 
4648
fi
 
4649
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4650
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4651
 
 
4652
fi
 
4653
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4654
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4655
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4656
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4657
ac_save_CXXFLAGS=$CXXFLAGS
 
4658
CXXFLAGS="-g"
 
4659
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4660
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4661
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4663
else
 
4664
  cat >conftest.$ac_ext <<_ACEOF
 
4665
/* confdefs.h.  */
 
4666
_ACEOF
 
4667
cat confdefs.h >>conftest.$ac_ext
 
4668
cat >>conftest.$ac_ext <<_ACEOF
 
4669
/* end confdefs.h.  */
 
4670
 
 
4671
int
 
4672
main ()
 
4673
{
 
4674
 
 
4675
  ;
 
4676
  return 0;
 
4677
}
 
4678
_ACEOF
 
4679
rm -f conftest.$ac_objext
 
4680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4681
  (eval $ac_compile) 2>conftest.er1
 
4682
  ac_status=$?
 
4683
  grep -v '^ *+' conftest.er1 >conftest.err
 
4684
  rm -f conftest.er1
 
4685
  cat conftest.err >&5
 
4686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4687
  (exit $ac_status); } &&
 
4688
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4690
  (eval $ac_try) 2>&5
 
4691
  ac_status=$?
 
4692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4693
  (exit $ac_status); }; } &&
 
4694
         { ac_try='test -s conftest.$ac_objext'
 
4695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4696
  (eval $ac_try) 2>&5
 
4697
  ac_status=$?
 
4698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4699
  (exit $ac_status); }; }; then
 
4700
  ac_cv_prog_cxx_g=yes
 
4701
else
 
4702
  echo "$as_me: failed program was:" >&5
 
4703
sed 's/^/| /' conftest.$ac_ext >&5
 
4704
 
 
4705
ac_cv_prog_cxx_g=no
 
4706
fi
 
4707
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4708
fi
 
4709
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4710
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4711
if test "$ac_test_CXXFLAGS" = set; then
 
4712
  CXXFLAGS=$ac_save_CXXFLAGS
 
4713
elif test $ac_cv_prog_cxx_g = yes; then
 
4714
  if test "$GXX" = yes; then
 
4715
    CXXFLAGS="-g -O2"
 
4716
  else
 
4717
    CXXFLAGS="-g"
 
4718
  fi
 
4719
else
 
4720
  if test "$GXX" = yes; then
 
4721
    CXXFLAGS="-O2"
 
4722
  else
 
4723
    CXXFLAGS=
 
4724
  fi
 
4725
fi
 
4726
for ac_declaration in \
 
4727
   '' \
 
4728
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4729
   'extern "C" void std::exit (int); using std::exit;' \
 
4730
   'extern "C" void exit (int) throw ();' \
 
4731
   'extern "C" void exit (int);' \
 
4732
   'void exit (int);'
 
4733
do
 
4734
  cat >conftest.$ac_ext <<_ACEOF
 
4735
/* confdefs.h.  */
 
4736
_ACEOF
 
4737
cat confdefs.h >>conftest.$ac_ext
 
4738
cat >>conftest.$ac_ext <<_ACEOF
 
4739
/* end confdefs.h.  */
 
4740
$ac_declaration
 
4741
#include <stdlib.h>
 
4742
int
 
4743
main ()
 
4744
{
 
4745
exit (42);
 
4746
  ;
 
4747
  return 0;
 
4748
}
 
4749
_ACEOF
 
4750
rm -f conftest.$ac_objext
 
4751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4752
  (eval $ac_compile) 2>conftest.er1
 
4753
  ac_status=$?
 
4754
  grep -v '^ *+' conftest.er1 >conftest.err
 
4755
  rm -f conftest.er1
 
4756
  cat conftest.err >&5
 
4757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4758
  (exit $ac_status); } &&
 
4759
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4761
  (eval $ac_try) 2>&5
 
4762
  ac_status=$?
 
4763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4764
  (exit $ac_status); }; } &&
 
4765
         { ac_try='test -s conftest.$ac_objext'
 
4766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4767
  (eval $ac_try) 2>&5
 
4768
  ac_status=$?
 
4769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4770
  (exit $ac_status); }; }; then
 
4771
  :
 
4772
else
 
4773
  echo "$as_me: failed program was:" >&5
 
4774
sed 's/^/| /' conftest.$ac_ext >&5
 
4775
 
 
4776
continue
 
4777
fi
 
4778
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4779
  cat >conftest.$ac_ext <<_ACEOF
 
4780
/* confdefs.h.  */
 
4781
_ACEOF
 
4782
cat confdefs.h >>conftest.$ac_ext
 
4783
cat >>conftest.$ac_ext <<_ACEOF
 
4784
/* end confdefs.h.  */
 
4785
$ac_declaration
 
4786
int
 
4787
main ()
 
4788
{
 
4789
exit (42);
 
4790
  ;
 
4791
  return 0;
 
4792
}
 
4793
_ACEOF
 
4794
rm -f conftest.$ac_objext
 
4795
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4796
  (eval $ac_compile) 2>conftest.er1
 
4797
  ac_status=$?
 
4798
  grep -v '^ *+' conftest.er1 >conftest.err
 
4799
  rm -f conftest.er1
 
4800
  cat conftest.err >&5
 
4801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4802
  (exit $ac_status); } &&
 
4803
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4805
  (eval $ac_try) 2>&5
 
4806
  ac_status=$?
 
4807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4808
  (exit $ac_status); }; } &&
 
4809
         { ac_try='test -s conftest.$ac_objext'
 
4810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4811
  (eval $ac_try) 2>&5
 
4812
  ac_status=$?
 
4813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4814
  (exit $ac_status); }; }; then
 
4815
  break
 
4816
else
 
4817
  echo "$as_me: failed program was:" >&5
 
4818
sed 's/^/| /' conftest.$ac_ext >&5
 
4819
 
 
4820
fi
 
4821
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4822
done
 
4823
rm -f conftest*
 
4824
if test -n "$ac_declaration"; then
 
4825
  echo '#ifdef __cplusplus' >>confdefs.h
 
4826
  echo $ac_declaration      >>confdefs.h
 
4827
  echo '#endif'             >>confdefs.h
 
4828
fi
 
4829
 
 
4830
ac_ext=cc
 
4831
ac_cpp='$CXXCPP $CPPFLAGS'
 
4832
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4833
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4834
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4835
 
 
4836
depcc="$CXX"  am_compiler_list=
 
4837
 
 
4838
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4839
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4840
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4842
else
 
4843
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4844
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4845
  # making bogus files that we don't know about and never remove.  For
 
4846
  # instance it was reported that on HP-UX the gcc test will end up
 
4847
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4848
  # in D'.
 
4849
  mkdir conftest.dir
 
4850
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4851
  # using a relative directory.
 
4852
  cp "$am_depcomp" conftest.dir
 
4853
  cd conftest.dir
 
4854
  # We will build objects and dependencies in a subdirectory because
 
4855
  # it helps to detect inapplicable dependency modes.  For instance
 
4856
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4857
  # side effect of compilation, but ICC will put the dependencies in
 
4858
  # the current directory while Tru64 will put them in the object
 
4859
  # directory.
 
4860
  mkdir sub
 
4861
 
 
4862
  am_cv_CXX_dependencies_compiler_type=none
 
4863
  if test "$am_compiler_list" = ""; then
 
4864
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4865
  fi
 
4866
  for depmode in $am_compiler_list; do
 
4867
    # Setup a source with many dependencies, because some compilers
 
4868
    # like to wrap large dependency lists on column 80 (with \), and
 
4869
    # we should not choose a depcomp mode which is confused by this.
 
4870
    #
 
4871
    # We need to recreate these files for each test, as the compiler may
 
4872
    # overwrite some of them when testing with obscure command lines.
 
4873
    # This happens at least with the AIX C compiler.
 
4874
    : > sub/conftest.c
 
4875
    for i in 1 2 3 4 5 6; do
 
4876
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4877
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4878
      # Solaris 8's {/usr,}/bin/sh.
 
4879
      touch sub/conftst$i.h
 
4880
    done
 
4881
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4882
 
 
4883
    case $depmode in
 
4884
    nosideeffect)
 
4885
      # after this tag, mechanisms are not by side-effect, so they'll
 
4886
      # only be used when explicitly requested
 
4887
      if test "x$enable_dependency_tracking" = xyes; then
 
4888
        continue
 
4889
      else
 
4890
        break
 
4891
      fi
 
4892
      ;;
 
4893
    none) break ;;
 
4894
    esac
 
4895
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4896
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4897
    # handle `-M -o', and we need to detect this.
 
4898
    if depmode=$depmode \
 
4899
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4900
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4901
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4902
         >/dev/null 2>conftest.err &&
 
4903
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4904
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4905
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4906
      # icc doesn't choke on unknown options, it will just issue warnings
 
4907
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4908
      # that says an option was ignored or not supported.
 
4909
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4910
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4911
      # The diagnosis changed in icc 8.0:
 
4912
      #   icc: Command line remark: option '-MP' not supported
 
4913
      if (grep 'ignoring option' conftest.err ||
 
4914
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4915
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4916
        break
 
4917
      fi
 
4918
    fi
 
4919
  done
 
4920
 
 
4921
  cd ..
 
4922
  rm -rf conftest.dir
 
4923
else
 
4924
  am_cv_CXX_dependencies_compiler_type=none
 
4925
fi
 
4926
 
 
4927
fi
 
4928
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4929
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4930
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4931
 
 
4932
 
 
4933
 
 
4934
if
 
4935
  test "x$enable_dependency_tracking" != xno \
 
4936
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4937
  am__fastdepCXX_TRUE=
 
4938
  am__fastdepCXX_FALSE='#'
 
4939
else
 
4940
  am__fastdepCXX_TRUE='#'
 
4941
  am__fastdepCXX_FALSE=
 
4942
fi
 
4943
 
 
4944
 
 
4945
ac_ext=cc
 
4946
ac_cpp='$CXXCPP $CPPFLAGS'
 
4947
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4948
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4949
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4950
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4951
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4952
if test -z "$CXXCPP"; then
 
4953
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4955
else
 
4956
      # Double quotes because CXXCPP needs to be expanded
 
4957
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4958
    do
 
4959
      ac_preproc_ok=false
 
4960
for ac_cxx_preproc_warn_flag in '' yes
 
4961
do
 
4962
  # Use a header file that comes with gcc, so configuring glibc
 
4963
  # with a fresh cross-compiler works.
 
4964
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4965
  # <limits.h> exists even on freestanding compilers.
 
4966
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4967
  # not just through cpp. "Syntax error" is here to catch this case.
 
4968
  cat >conftest.$ac_ext <<_ACEOF
 
4969
/* confdefs.h.  */
 
4970
_ACEOF
 
4971
cat confdefs.h >>conftest.$ac_ext
 
4972
cat >>conftest.$ac_ext <<_ACEOF
 
4973
/* end confdefs.h.  */
 
4974
#ifdef __STDC__
 
4975
# include <limits.h>
 
4976
#else
 
4977
# include <assert.h>
 
4978
#endif
 
4979
                     Syntax error
 
4980
_ACEOF
 
4981
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4982
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4983
  ac_status=$?
 
4984
  grep -v '^ *+' conftest.er1 >conftest.err
 
4985
  rm -f conftest.er1
 
4986
  cat conftest.err >&5
 
4987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4988
  (exit $ac_status); } >/dev/null; then
 
4989
  if test -s conftest.err; then
 
4990
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4991
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4992
  else
 
4993
    ac_cpp_err=
 
4994
  fi
 
4995
else
 
4996
  ac_cpp_err=yes
 
4997
fi
 
4998
if test -z "$ac_cpp_err"; then
 
4999
  :
 
5000
else
 
5001
  echo "$as_me: failed program was:" >&5
 
5002
sed 's/^/| /' conftest.$ac_ext >&5
 
5003
 
 
5004
  # Broken: fails on valid input.
 
5005
continue
 
5006
fi
 
5007
rm -f conftest.err conftest.$ac_ext
 
5008
 
 
5009
  # OK, works on sane cases.  Now check whether non-existent headers
 
5010
  # can be detected and how.
 
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
#include <ac_nonexistent.h>
 
5018
_ACEOF
 
5019
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5020
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5021
  ac_status=$?
 
5022
  grep -v '^ *+' conftest.er1 >conftest.err
 
5023
  rm -f conftest.er1
 
5024
  cat conftest.err >&5
 
5025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5026
  (exit $ac_status); } >/dev/null; then
 
5027
  if test -s conftest.err; then
 
5028
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5029
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5030
  else
 
5031
    ac_cpp_err=
 
5032
  fi
 
5033
else
 
5034
  ac_cpp_err=yes
 
5035
fi
 
5036
if test -z "$ac_cpp_err"; then
 
5037
  # Broken: success on invalid input.
 
5038
continue
 
5039
else
 
5040
  echo "$as_me: failed program was:" >&5
 
5041
sed 's/^/| /' conftest.$ac_ext >&5
 
5042
 
 
5043
  # Passes both tests.
 
5044
ac_preproc_ok=:
 
5045
break
 
5046
fi
 
5047
rm -f conftest.err conftest.$ac_ext
 
5048
 
 
5049
done
 
5050
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5051
rm -f conftest.err conftest.$ac_ext
 
5052
if $ac_preproc_ok; then
 
5053
  break
 
5054
fi
 
5055
 
 
5056
    done
 
5057
    ac_cv_prog_CXXCPP=$CXXCPP
 
5058
 
 
5059
fi
 
5060
  CXXCPP=$ac_cv_prog_CXXCPP
 
5061
else
 
5062
  ac_cv_prog_CXXCPP=$CXXCPP
 
5063
fi
 
5064
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5065
echo "${ECHO_T}$CXXCPP" >&6
 
5066
ac_preproc_ok=false
 
5067
for ac_cxx_preproc_warn_flag in '' yes
 
5068
do
 
5069
  # Use a header file that comes with gcc, so configuring glibc
 
5070
  # with a fresh cross-compiler works.
 
5071
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5072
  # <limits.h> exists even on freestanding compilers.
 
5073
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5074
  # not just through cpp. "Syntax error" is here to catch this case.
 
5075
  cat >conftest.$ac_ext <<_ACEOF
 
5076
/* confdefs.h.  */
 
5077
_ACEOF
 
5078
cat confdefs.h >>conftest.$ac_ext
 
5079
cat >>conftest.$ac_ext <<_ACEOF
 
5080
/* end confdefs.h.  */
 
5081
#ifdef __STDC__
 
5082
# include <limits.h>
 
5083
#else
 
5084
# include <assert.h>
 
5085
#endif
 
5086
                     Syntax error
 
5087
_ACEOF
 
5088
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5089
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5090
  ac_status=$?
 
5091
  grep -v '^ *+' conftest.er1 >conftest.err
 
5092
  rm -f conftest.er1
 
5093
  cat conftest.err >&5
 
5094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5095
  (exit $ac_status); } >/dev/null; then
 
5096
  if test -s conftest.err; then
 
5097
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5098
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5099
  else
 
5100
    ac_cpp_err=
 
5101
  fi
 
5102
else
 
5103
  ac_cpp_err=yes
 
5104
fi
 
5105
if test -z "$ac_cpp_err"; then
 
5106
  :
 
5107
else
 
5108
  echo "$as_me: failed program was:" >&5
 
5109
sed 's/^/| /' conftest.$ac_ext >&5
 
5110
 
 
5111
  # Broken: fails on valid input.
 
5112
continue
 
5113
fi
 
5114
rm -f conftest.err conftest.$ac_ext
 
5115
 
 
5116
  # OK, works on sane cases.  Now check whether non-existent headers
 
5117
  # can be detected and how.
 
5118
  cat >conftest.$ac_ext <<_ACEOF
 
5119
/* confdefs.h.  */
 
5120
_ACEOF
 
5121
cat confdefs.h >>conftest.$ac_ext
 
5122
cat >>conftest.$ac_ext <<_ACEOF
 
5123
/* end confdefs.h.  */
 
5124
#include <ac_nonexistent.h>
 
5125
_ACEOF
 
5126
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5127
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5128
  ac_status=$?
 
5129
  grep -v '^ *+' conftest.er1 >conftest.err
 
5130
  rm -f conftest.er1
 
5131
  cat conftest.err >&5
 
5132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5133
  (exit $ac_status); } >/dev/null; then
 
5134
  if test -s conftest.err; then
 
5135
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5136
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5137
  else
 
5138
    ac_cpp_err=
 
5139
  fi
 
5140
else
 
5141
  ac_cpp_err=yes
 
5142
fi
 
5143
if test -z "$ac_cpp_err"; then
 
5144
  # Broken: success on invalid input.
 
5145
continue
 
5146
else
 
5147
  echo "$as_me: failed program was:" >&5
 
5148
sed 's/^/| /' conftest.$ac_ext >&5
 
5149
 
 
5150
  # Passes both tests.
 
5151
ac_preproc_ok=:
 
5152
break
 
5153
fi
 
5154
rm -f conftest.err conftest.$ac_ext
 
5155
 
 
5156
done
 
5157
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5158
rm -f conftest.err conftest.$ac_ext
 
5159
if $ac_preproc_ok; then
 
5160
  :
 
5161
else
 
5162
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5163
See \`config.log' for more details." >&5
 
5164
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5165
See \`config.log' for more details." >&2;}
 
5166
   { (exit 1); exit 1; }; }
 
5167
fi
 
5168
 
 
5169
ac_ext=cc
 
5170
ac_cpp='$CXXCPP $CPPFLAGS'
 
5171
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5172
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5173
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5174
 
 
5175
 
 
5176
ac_ext=f
 
5177
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5178
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5179
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5180
if test -n "$ac_tool_prefix"; then
 
5181
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5182
  do
 
5183
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5184
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5185
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5186
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5187
if test "${ac_cv_prog_F77+set}" = set; then
 
5188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5189
else
 
5190
  if test -n "$F77"; then
 
5191
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5192
else
 
5193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5194
for as_dir in $PATH
 
5195
do
 
5196
  IFS=$as_save_IFS
 
5197
  test -z "$as_dir" && as_dir=.
 
5198
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5199
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5200
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5201
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5202
    break 2
 
5203
  fi
 
5204
done
 
5205
done
 
5206
 
 
5207
fi
 
5208
fi
 
5209
F77=$ac_cv_prog_F77
 
5210
if test -n "$F77"; then
 
5211
  echo "$as_me:$LINENO: result: $F77" >&5
 
5212
echo "${ECHO_T}$F77" >&6
 
5213
else
 
5214
  echo "$as_me:$LINENO: result: no" >&5
 
5215
echo "${ECHO_T}no" >&6
 
5216
fi
 
5217
 
 
5218
    test -n "$F77" && break
 
5219
  done
 
5220
fi
 
5221
if test -z "$F77"; then
 
5222
  ac_ct_F77=$F77
 
5223
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5224
do
 
5225
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5226
set dummy $ac_prog; ac_word=$2
 
5227
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5228
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5229
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5231
else
 
5232
  if test -n "$ac_ct_F77"; then
 
5233
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5234
else
 
5235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5236
for as_dir in $PATH
 
5237
do
 
5238
  IFS=$as_save_IFS
 
5239
  test -z "$as_dir" && as_dir=.
 
5240
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5241
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5242
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5243
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5244
    break 2
 
5245
  fi
 
5246
done
 
5247
done
 
5248
 
 
5249
fi
 
5250
fi
 
5251
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5252
if test -n "$ac_ct_F77"; then
 
5253
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5254
echo "${ECHO_T}$ac_ct_F77" >&6
 
5255
else
 
5256
  echo "$as_me:$LINENO: result: no" >&5
 
5257
echo "${ECHO_T}no" >&6
 
5258
fi
 
5259
 
 
5260
  test -n "$ac_ct_F77" && break
 
5261
done
 
5262
 
 
5263
  F77=$ac_ct_F77
 
5264
fi
 
5265
 
 
5266
 
 
5267
# Provide some information about the compiler.
 
5268
echo "$as_me:5268:" \
 
5269
     "checking for Fortran 77 compiler version" >&5
 
5270
ac_compiler=`set X $ac_compile; echo $2`
 
5271
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5272
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5273
  ac_status=$?
 
5274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5275
  (exit $ac_status); }
 
5276
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5277
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5278
  ac_status=$?
 
5279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5280
  (exit $ac_status); }
 
5281
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5282
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5283
  ac_status=$?
 
5284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5285
  (exit $ac_status); }
 
5286
rm -f a.out
 
5287
 
 
5288
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5289
# input file.  (Note that this only needs to work for GNU compilers.)
 
5290
ac_save_ext=$ac_ext
 
5291
ac_ext=F
 
5292
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5293
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5294
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5296
else
 
5297
  cat >conftest.$ac_ext <<_ACEOF
 
5298
      program main
 
5299
#ifndef __GNUC__
 
5300
       choke me
 
5301
#endif
 
5302
 
 
5303
      end
 
5304
_ACEOF
 
5305
rm -f conftest.$ac_objext
 
5306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5307
  (eval $ac_compile) 2>conftest.er1
 
5308
  ac_status=$?
 
5309
  grep -v '^ *+' conftest.er1 >conftest.err
 
5310
  rm -f conftest.er1
 
5311
  cat conftest.err >&5
 
5312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5313
  (exit $ac_status); } &&
 
5314
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5316
  (eval $ac_try) 2>&5
 
5317
  ac_status=$?
 
5318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5319
  (exit $ac_status); }; } &&
 
5320
         { ac_try='test -s conftest.$ac_objext'
 
5321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5322
  (eval $ac_try) 2>&5
 
5323
  ac_status=$?
 
5324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5325
  (exit $ac_status); }; }; then
 
5326
  ac_compiler_gnu=yes
 
5327
else
 
5328
  echo "$as_me: failed program was:" >&5
 
5329
sed 's/^/| /' conftest.$ac_ext >&5
 
5330
 
 
5331
ac_compiler_gnu=no
 
5332
fi
 
5333
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5334
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5335
 
 
5336
fi
 
5337
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5338
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5339
ac_ext=$ac_save_ext
 
5340
ac_test_FFLAGS=${FFLAGS+set}
 
5341
ac_save_FFLAGS=$FFLAGS
 
5342
FFLAGS=
 
5343
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5344
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5345
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5347
else
 
5348
  FFLAGS=-g
 
5349
cat >conftest.$ac_ext <<_ACEOF
 
5350
      program main
 
5351
 
 
5352
      end
 
5353
_ACEOF
 
5354
rm -f conftest.$ac_objext
 
5355
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5356
  (eval $ac_compile) 2>conftest.er1
 
5357
  ac_status=$?
 
5358
  grep -v '^ *+' conftest.er1 >conftest.err
 
5359
  rm -f conftest.er1
 
5360
  cat conftest.err >&5
 
5361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5362
  (exit $ac_status); } &&
 
5363
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5365
  (eval $ac_try) 2>&5
 
5366
  ac_status=$?
 
5367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5368
  (exit $ac_status); }; } &&
 
5369
         { ac_try='test -s conftest.$ac_objext'
 
5370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5371
  (eval $ac_try) 2>&5
 
5372
  ac_status=$?
 
5373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5374
  (exit $ac_status); }; }; then
 
5375
  ac_cv_prog_f77_g=yes
 
5376
else
 
5377
  echo "$as_me: failed program was:" >&5
 
5378
sed 's/^/| /' conftest.$ac_ext >&5
 
5379
 
 
5380
ac_cv_prog_f77_g=no
 
5381
fi
 
5382
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5383
 
 
5384
fi
 
5385
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5386
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5387
if test "$ac_test_FFLAGS" = set; then
 
5388
  FFLAGS=$ac_save_FFLAGS
 
5389
elif test $ac_cv_prog_f77_g = yes; then
 
5390
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5391
    FFLAGS="-g -O2"
 
5392
  else
 
5393
    FFLAGS="-g"
 
5394
  fi
 
5395
else
 
5396
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5397
    FFLAGS="-O2"
 
5398
  else
 
5399
    FFLAGS=
 
5400
  fi
 
5401
fi
 
5402
 
 
5403
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5404
ac_ext=c
 
5405
ac_cpp='$CPP $CPPFLAGS'
 
5406
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5407
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5408
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5409
 
 
5410
 
 
5411
 
 
5412
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5413
 
 
5414
# find the maximum length of command line arguments
 
5415
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5416
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5417
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5419
else
 
5420
    i=0
 
5421
  teststring="ABCD"
 
5422
 
 
5423
  case $build_os in
 
5424
  msdosdjgpp*)
 
5425
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5426
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5427
    # during glob expansion).  Even if it were fixed, the result of this
 
5428
    # check would be larger than it should be.
 
5429
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5430
    ;;
 
5431
 
 
5432
  gnu*)
 
5433
    # Under GNU Hurd, this test is not required because there is
 
5434
    # no limit to the length of command line arguments.
 
5435
    # Libtool will interpret -1 as no limit whatsoever
 
5436
    lt_cv_sys_max_cmd_len=-1;
 
5437
    ;;
 
5438
 
 
5439
  cygwin* | mingw*)
 
5440
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5441
    # about 5 minutes as the teststring grows exponentially.
 
5442
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5443
    # you end up with a "frozen" computer, even though with patience
 
5444
    # the test eventually succeeds (with a max line length of 256k).
 
5445
    # Instead, let's just punt: use the minimum linelength reported by
 
5446
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5447
    lt_cv_sys_max_cmd_len=8192;
 
5448
    ;;
 
5449
 
 
5450
  amigaos*)
 
5451
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5452
    # So we just punt and use a minimum line length of 8192.
 
5453
    lt_cv_sys_max_cmd_len=8192;
 
5454
    ;;
 
5455
 
 
5456
 *)
 
5457
    # If test is not a shell built-in, we'll probably end up computing a
 
5458
    # maximum length that is only half of the actual maximum length, but
 
5459
    # we can't tell.
 
5460
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5461
               = "XX$teststring") >/dev/null 2>&1 &&
 
5462
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5463
            lt_cv_sys_max_cmd_len=$new_result &&
 
5464
            test $i != 17 # 1/2 MB should be enough
 
5465
    do
 
5466
      i=`expr $i + 1`
 
5467
      teststring=$teststring$teststring
 
5468
    done
 
5469
    teststring=
 
5470
    # Add a significant safety factor because C++ compilers can tack on massive
 
5471
    # amounts of additional arguments before passing them to the linker.
 
5472
    # It appears as though 1/2 is a usable value.
 
5473
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5474
    ;;
 
5475
  esac
 
5476
 
 
5477
fi
 
5478
 
 
5479
if test -n $lt_cv_sys_max_cmd_len ; then
 
5480
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5481
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5482
else
 
5483
  echo "$as_me:$LINENO: result: none" >&5
 
5484
echo "${ECHO_T}none" >&6
 
5485
fi
 
5486
 
 
5487
 
 
5488
 
 
5489
 
 
5490
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5491
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5492
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5493
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5495
else
 
5496
 
 
5497
# These are sane defaults that work on at least a few old systems.
 
5498
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5499
 
 
5500
# Character class describing NM global symbol codes.
 
5501
symcode='[BCDEGRST]'
 
5502
 
 
5503
# Regexp to match symbols that can be accessed directly from C.
 
5504
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5505
 
 
5506
# Transform the above into a raw symbol and a C symbol.
 
5507
symxfrm='\1 \2\3 \3'
 
5508
 
 
5509
# Transform an extracted symbol line into a proper C declaration
 
5510
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5511
 
 
5512
# Transform an extracted symbol line into symbol name and symbol address
 
5513
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'"
 
5514
 
 
5515
# Define system-specific variables.
 
5516
case $host_os in
 
5517
aix*)
 
5518
  symcode='[BCDT]'
 
5519
  ;;
 
5520
cygwin* | mingw* | pw32*)
 
5521
  symcode='[ABCDGISTW]'
 
5522
  ;;
 
5523
hpux*) # Its linker distinguishes data from code symbols
 
5524
  if test "$host_cpu" = ia64; then
 
5525
    symcode='[ABCDEGRST]'
 
5526
  fi
 
5527
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5528
  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'"
 
5529
  ;;
 
5530
irix* | nonstopux*)
 
5531
  symcode='[BCDEGRST]'
 
5532
  ;;
 
5533
osf*)
 
5534
  symcode='[BCDEGQRST]'
 
5535
  ;;
 
5536
solaris* | sysv5*)
 
5537
  symcode='[BDRT]'
 
5538
  ;;
 
5539
sysv4)
 
5540
  symcode='[DFNSTU]'
 
5541
  ;;
 
5542
esac
 
5543
 
 
5544
# Handle CRLF in mingw tool chain
 
5545
opt_cr=
 
5546
case $build_os in
 
5547
mingw*)
 
5548
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5549
  ;;
 
5550
esac
 
5551
 
 
5552
# If we're using GNU nm, then use its standard symbol codes.
 
5553
case `$NM -V 2>&1` in
 
5554
*GNU* | *'with BFD'*)
 
5555
  symcode='[ABCDGIRSTW]' ;;
 
5556
esac
 
5557
 
 
5558
# Try without a prefix undercore, then with it.
 
5559
for ac_symprfx in "" "_"; do
 
5560
 
 
5561
  # Write the raw and C identifiers.
 
5562
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5563
 
 
5564
  # Check to see that the pipe works correctly.
 
5565
  pipe_works=no
 
5566
 
 
5567
  rm -f conftest*
 
5568
  cat > conftest.$ac_ext <<EOF
 
5569
#ifdef __cplusplus
 
5570
extern "C" {
 
5571
#endif
 
5572
char nm_test_var;
 
5573
void nm_test_func(){}
 
5574
#ifdef __cplusplus
 
5575
}
 
5576
#endif
 
5577
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5578
EOF
 
5579
 
 
5580
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5581
  (eval $ac_compile) 2>&5
 
5582
  ac_status=$?
 
5583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5584
  (exit $ac_status); }; then
 
5585
    # Now try to grab the symbols.
 
5586
    nlist=conftest.nm
 
5587
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5588
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5589
  ac_status=$?
 
5590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5591
  (exit $ac_status); } && test -s "$nlist"; then
 
5592
      # Try sorting and uniquifying the output.
 
5593
      if sort "$nlist" | uniq > "$nlist"T; then
 
5594
        mv -f "$nlist"T "$nlist"
 
5595
      else
 
5596
        rm -f "$nlist"T
 
5597
      fi
 
5598
 
 
5599
      # Make sure that we snagged all the symbols we need.
 
5600
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5601
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5602
          cat <<EOF > conftest.$ac_ext
 
5603
#ifdef __cplusplus
 
5604
extern "C" {
 
5605
#endif
 
5606
 
 
5607
EOF
 
5608
          # Now generate the symbol file.
 
5609
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5610
 
 
5611
          cat <<EOF >> conftest.$ac_ext
 
5612
#if defined (__STDC__) && __STDC__
 
5613
# define lt_ptr_t void *
 
5614
#else
 
5615
# define lt_ptr_t char *
 
5616
# define const
 
5617
#endif
 
5618
 
 
5619
/* The mapping between symbol names and symbols. */
 
5620
const struct {
 
5621
  const char *name;
 
5622
  lt_ptr_t address;
 
5623
}
 
5624
lt_preloaded_symbols[] =
 
5625
{
 
5626
EOF
 
5627
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5628
          cat <<\EOF >> conftest.$ac_ext
 
5629
  {0, (lt_ptr_t) 0}
 
5630
};
 
5631
 
 
5632
#ifdef __cplusplus
 
5633
}
 
5634
#endif
 
5635
EOF
 
5636
          # Now try linking the two files.
 
5637
          mv conftest.$ac_objext conftstm.$ac_objext
 
5638
          lt_save_LIBS="$LIBS"
 
5639
          lt_save_CFLAGS="$CFLAGS"
 
5640
          LIBS="conftstm.$ac_objext"
 
5641
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5642
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5643
  (eval $ac_link) 2>&5
 
5644
  ac_status=$?
 
5645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5646
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5647
            pipe_works=yes
 
5648
          fi
 
5649
          LIBS="$lt_save_LIBS"
 
5650
          CFLAGS="$lt_save_CFLAGS"
 
5651
        else
 
5652
          echo "cannot find nm_test_func in $nlist" >&5
 
5653
        fi
 
5654
      else
 
5655
        echo "cannot find nm_test_var in $nlist" >&5
 
5656
      fi
 
5657
    else
 
5658
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5659
    fi
 
5660
  else
 
5661
    echo "$progname: failed program was:" >&5
 
5662
    cat conftest.$ac_ext >&5
 
5663
  fi
 
5664
  rm -f conftest* conftst*
 
5665
 
 
5666
  # Do not use the global_symbol_pipe unless it works.
 
5667
  if test "$pipe_works" = yes; then
 
5668
    break
 
5669
  else
 
5670
    lt_cv_sys_global_symbol_pipe=
 
5671
  fi
 
5672
done
 
5673
 
 
5674
fi
 
5675
 
 
5676
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5677
  lt_cv_sys_global_symbol_to_cdecl=
 
5678
fi
 
5679
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5680
  echo "$as_me:$LINENO: result: failed" >&5
 
5681
echo "${ECHO_T}failed" >&6
 
5682
else
 
5683
  echo "$as_me:$LINENO: result: ok" >&5
 
5684
echo "${ECHO_T}ok" >&6
 
5685
fi
 
5686
 
 
5687
echo "$as_me:$LINENO: checking for objdir" >&5
 
5688
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5689
if test "${lt_cv_objdir+set}" = set; then
 
5690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5691
else
 
5692
  rm -f .libs 2>/dev/null
 
5693
mkdir .libs 2>/dev/null
 
5694
if test -d .libs; then
 
5695
  lt_cv_objdir=.libs
 
5696
else
 
5697
  # MS-DOS does not allow filenames that begin with a dot.
 
5698
  lt_cv_objdir=_libs
 
5699
fi
 
5700
rmdir .libs 2>/dev/null
 
5701
fi
 
5702
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5703
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5704
objdir=$lt_cv_objdir
 
5705
 
 
5706
 
 
5707
 
 
5708
 
 
5709
 
 
5710
case $host_os in
 
5711
aix3*)
 
5712
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5713
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5714
  # vanish in a puff of smoke.
 
5715
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5716
    COLLECT_NAMES=
 
5717
    export COLLECT_NAMES
 
5718
  fi
 
5719
  ;;
 
5720
esac
 
5721
 
 
5722
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5723
# metacharacters that are still active within double-quoted strings.
 
5724
Xsed='sed -e s/^X//'
 
5725
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5726
 
 
5727
# Same as above, but do not quote variable references.
 
5728
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5729
 
 
5730
# Sed substitution to delay expansion of an escaped shell variable in a
 
5731
# double_quote_subst'ed string.
 
5732
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5733
 
 
5734
# Sed substitution to avoid accidental globbing in evaled expressions
 
5735
no_glob_subst='s/\*/\\\*/g'
 
5736
 
 
5737
# Constants:
 
5738
rm="rm -f"
 
5739
 
 
5740
# Global variables:
 
5741
default_ofile=libtool
 
5742
can_build_shared=yes
 
5743
 
 
5744
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5745
# which needs '.lib').
 
5746
libext=a
 
5747
ltmain="$ac_aux_dir/ltmain.sh"
 
5748
ofile="$default_ofile"
 
5749
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5750
 
 
5751
if test -n "$ac_tool_prefix"; then
 
5752
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5753
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5754
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5756
if test "${ac_cv_prog_AR+set}" = set; then
 
5757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5758
else
 
5759
  if test -n "$AR"; then
 
5760
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5761
else
 
5762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5763
for as_dir in $PATH
 
5764
do
 
5765
  IFS=$as_save_IFS
 
5766
  test -z "$as_dir" && as_dir=.
 
5767
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5768
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5769
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5770
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5771
    break 2
 
5772
  fi
 
5773
done
 
5774
done
 
5775
 
 
5776
fi
 
5777
fi
 
5778
AR=$ac_cv_prog_AR
 
5779
if test -n "$AR"; then
 
5780
  echo "$as_me:$LINENO: result: $AR" >&5
 
5781
echo "${ECHO_T}$AR" >&6
 
5782
else
 
5783
  echo "$as_me:$LINENO: result: no" >&5
 
5784
echo "${ECHO_T}no" >&6
 
5785
fi
 
5786
 
 
5787
fi
 
5788
if test -z "$ac_cv_prog_AR"; then
 
5789
  ac_ct_AR=$AR
 
5790
  # Extract the first word of "ar", so it can be a program name with args.
 
5791
set dummy ar; ac_word=$2
 
5792
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5793
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5794
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5796
else
 
5797
  if test -n "$ac_ct_AR"; then
 
5798
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5799
else
 
5800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5801
for as_dir in $PATH
 
5802
do
 
5803
  IFS=$as_save_IFS
 
5804
  test -z "$as_dir" && as_dir=.
 
5805
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5806
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5807
    ac_cv_prog_ac_ct_AR="ar"
 
5808
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5809
    break 2
 
5810
  fi
 
5811
done
 
5812
done
 
5813
 
 
5814
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5815
fi
 
5816
fi
 
5817
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5818
if test -n "$ac_ct_AR"; then
 
5819
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5820
echo "${ECHO_T}$ac_ct_AR" >&6
 
5821
else
 
5822
  echo "$as_me:$LINENO: result: no" >&5
 
5823
echo "${ECHO_T}no" >&6
 
5824
fi
 
5825
 
 
5826
  AR=$ac_ct_AR
 
5827
else
 
5828
  AR="$ac_cv_prog_AR"
 
5829
fi
 
5830
 
 
5831
if test -n "$ac_tool_prefix"; then
 
5832
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5833
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5834
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5835
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5836
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5838
else
 
5839
  if test -n "$RANLIB"; then
 
5840
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5841
else
 
5842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5843
for as_dir in $PATH
 
5844
do
 
5845
  IFS=$as_save_IFS
 
5846
  test -z "$as_dir" && as_dir=.
 
5847
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5848
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5849
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5850
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5851
    break 2
 
5852
  fi
 
5853
done
 
5854
done
 
5855
 
 
5856
fi
 
5857
fi
 
5858
RANLIB=$ac_cv_prog_RANLIB
 
5859
if test -n "$RANLIB"; then
 
5860
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5861
echo "${ECHO_T}$RANLIB" >&6
 
5862
else
 
5863
  echo "$as_me:$LINENO: result: no" >&5
 
5864
echo "${ECHO_T}no" >&6
 
5865
fi
 
5866
 
 
5867
fi
 
5868
if test -z "$ac_cv_prog_RANLIB"; then
 
5869
  ac_ct_RANLIB=$RANLIB
 
5870
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5871
set dummy ranlib; ac_word=$2
 
5872
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5873
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5874
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5876
else
 
5877
  if test -n "$ac_ct_RANLIB"; then
 
5878
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5879
else
 
5880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5881
for as_dir in $PATH
 
5882
do
 
5883
  IFS=$as_save_IFS
 
5884
  test -z "$as_dir" && as_dir=.
 
5885
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5886
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5887
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5888
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5889
    break 2
 
5890
  fi
 
5891
done
 
5892
done
 
5893
 
 
5894
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5895
fi
 
5896
fi
 
5897
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5898
if test -n "$ac_ct_RANLIB"; then
 
5899
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5900
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5901
else
 
5902
  echo "$as_me:$LINENO: result: no" >&5
 
5903
echo "${ECHO_T}no" >&6
 
5904
fi
 
5905
 
 
5906
  RANLIB=$ac_ct_RANLIB
 
5907
else
 
5908
  RANLIB="$ac_cv_prog_RANLIB"
 
5909
fi
 
5910
 
 
5911
if test -n "$ac_tool_prefix"; then
 
5912
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5913
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5914
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5915
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5916
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5918
else
 
5919
  if test -n "$STRIP"; then
 
5920
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5921
else
 
5922
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5923
for as_dir in $PATH
 
5924
do
 
5925
  IFS=$as_save_IFS
 
5926
  test -z "$as_dir" && as_dir=.
 
5927
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5928
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5929
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5930
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5931
    break 2
 
5932
  fi
 
5933
done
 
5934
done
 
5935
 
 
5936
fi
 
5937
fi
 
5938
STRIP=$ac_cv_prog_STRIP
 
5939
if test -n "$STRIP"; then
 
5940
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5941
echo "${ECHO_T}$STRIP" >&6
 
5942
else
 
5943
  echo "$as_me:$LINENO: result: no" >&5
 
5944
echo "${ECHO_T}no" >&6
 
5945
fi
 
5946
 
 
5947
fi
 
5948
if test -z "$ac_cv_prog_STRIP"; then
 
5949
  ac_ct_STRIP=$STRIP
 
5950
  # Extract the first word of "strip", so it can be a program name with args.
 
5951
set dummy strip; ac_word=$2
 
5952
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5953
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5954
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5956
else
 
5957
  if test -n "$ac_ct_STRIP"; then
 
5958
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5959
else
 
5960
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5961
for as_dir in $PATH
 
5962
do
 
5963
  IFS=$as_save_IFS
 
5964
  test -z "$as_dir" && as_dir=.
 
5965
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5966
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5967
    ac_cv_prog_ac_ct_STRIP="strip"
 
5968
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5969
    break 2
 
5970
  fi
 
5971
done
 
5972
done
 
5973
 
 
5974
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5975
fi
 
5976
fi
 
5977
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5978
if test -n "$ac_ct_STRIP"; then
 
5979
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5980
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5981
else
 
5982
  echo "$as_me:$LINENO: result: no" >&5
 
5983
echo "${ECHO_T}no" >&6
 
5984
fi
 
5985
 
 
5986
  STRIP=$ac_ct_STRIP
 
5987
else
 
5988
  STRIP="$ac_cv_prog_STRIP"
 
5989
fi
 
5990
 
 
5991
 
 
5992
old_CC="$CC"
 
5993
old_CFLAGS="$CFLAGS"
 
5994
 
 
5995
# Set sane defaults for various variables
 
5996
test -z "$AR" && AR=ar
 
5997
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5998
test -z "$AS" && AS=as
 
5999
test -z "$CC" && CC=cc
 
6000
test -z "$LTCC" && LTCC=$CC
 
6001
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6002
test -z "$LD" && LD=ld
 
6003
test -z "$LN_S" && LN_S="ln -s"
 
6004
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6005
test -z "$NM" && NM=nm
 
6006
test -z "$SED" && SED=sed
 
6007
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6008
test -z "$RANLIB" && RANLIB=:
 
6009
test -z "$STRIP" && STRIP=:
 
6010
test -z "$ac_objext" && ac_objext=o
 
6011
 
 
6012
# Determine commands to create old-style static archives.
 
6013
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6014
old_postinstall_cmds='chmod 644 $oldlib'
 
6015
old_postuninstall_cmds=
 
6016
 
 
6017
if test -n "$RANLIB"; then
 
6018
  case $host_os in
 
6019
  openbsd*)
 
6020
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6021
    ;;
 
6022
  *)
 
6023
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6024
    ;;
 
6025
  esac
 
6026
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6027
fi
 
6028
 
 
6029
# Only perform the check for file, if the check method requires it
 
6030
case $deplibs_check_method in
 
6031
file_magic*)
 
6032
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6033
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6034
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6035
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6036
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6037
else
 
6038
  case $MAGIC_CMD in
 
6039
[\\/*] |  ?:[\\/]*)
 
6040
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6041
  ;;
 
6042
*)
 
6043
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6044
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6045
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6046
  for ac_dir in $ac_dummy; do
 
6047
    IFS="$lt_save_ifs"
 
6048
    test -z "$ac_dir" && ac_dir=.
 
6049
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6050
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6051
      if test -n "$file_magic_test_file"; then
 
6052
        case $deplibs_check_method in
 
6053
        "file_magic "*)
 
6054
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6055
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6056
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6057
            $EGREP "$file_magic_regex" > /dev/null; then
 
6058
            :
 
6059
          else
 
6060
            cat <<EOF 1>&2
 
6061
 
 
6062
*** Warning: the command libtool uses to detect shared libraries,
 
6063
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6064
*** The result is that libtool may fail to recognize shared libraries
 
6065
*** as such.  This will affect the creation of libtool libraries that
 
6066
*** depend on shared libraries, but programs linked with such libtool
 
6067
*** libraries will work regardless of this problem.  Nevertheless, you
 
6068
*** may want to report the problem to your system manager and/or to
 
6069
*** bug-libtool@gnu.org
 
6070
 
 
6071
EOF
 
6072
          fi ;;
 
6073
        esac
 
6074
      fi
 
6075
      break
 
6076
    fi
 
6077
  done
 
6078
  IFS="$lt_save_ifs"
 
6079
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6080
  ;;
 
6081
esac
 
6082
fi
 
6083
 
 
6084
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6085
if test -n "$MAGIC_CMD"; then
 
6086
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6087
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6088
else
 
6089
  echo "$as_me:$LINENO: result: no" >&5
 
6090
echo "${ECHO_T}no" >&6
 
6091
fi
 
6092
 
 
6093
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6094
  if test -n "$ac_tool_prefix"; then
 
6095
    echo "$as_me:$LINENO: checking for file" >&5
 
6096
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6097
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6099
else
 
6100
  case $MAGIC_CMD in
 
6101
[\\/*] |  ?:[\\/]*)
 
6102
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6103
  ;;
 
6104
*)
 
6105
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6106
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6107
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6108
  for ac_dir in $ac_dummy; do
 
6109
    IFS="$lt_save_ifs"
 
6110
    test -z "$ac_dir" && ac_dir=.
 
6111
    if test -f $ac_dir/file; then
 
6112
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6113
      if test -n "$file_magic_test_file"; then
 
6114
        case $deplibs_check_method in
 
6115
        "file_magic "*)
 
6116
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6117
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6118
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6119
            $EGREP "$file_magic_regex" > /dev/null; then
 
6120
            :
 
6121
          else
 
6122
            cat <<EOF 1>&2
 
6123
 
 
6124
*** Warning: the command libtool uses to detect shared libraries,
 
6125
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6126
*** The result is that libtool may fail to recognize shared libraries
 
6127
*** as such.  This will affect the creation of libtool libraries that
 
6128
*** depend on shared libraries, but programs linked with such libtool
 
6129
*** libraries will work regardless of this problem.  Nevertheless, you
 
6130
*** may want to report the problem to your system manager and/or to
 
6131
*** bug-libtool@gnu.org
 
6132
 
 
6133
EOF
 
6134
          fi ;;
 
6135
        esac
 
6136
      fi
 
6137
      break
 
6138
    fi
 
6139
  done
 
6140
  IFS="$lt_save_ifs"
 
6141
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6142
  ;;
 
6143
esac
 
6144
fi
 
6145
 
 
6146
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6147
if test -n "$MAGIC_CMD"; then
 
6148
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6149
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6150
else
 
6151
  echo "$as_me:$LINENO: result: no" >&5
 
6152
echo "${ECHO_T}no" >&6
 
6153
fi
 
6154
 
 
6155
  else
 
6156
    MAGIC_CMD=:
 
6157
  fi
 
6158
fi
 
6159
 
 
6160
  fi
 
6161
  ;;
 
6162
esac
 
6163
 
 
6164
enable_dlopen=no
 
6165
enable_win32_dll=no
 
6166
 
 
6167
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6168
if test "${enable_libtool_lock+set}" = set; then
 
6169
  enableval="$enable_libtool_lock"
 
6170
 
 
6171
fi;
 
6172
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6173
 
 
6174
 
 
6175
# Check whether --with-pic or --without-pic was given.
 
6176
if test "${with_pic+set}" = set; then
 
6177
  withval="$with_pic"
 
6178
  pic_mode="$withval"
 
6179
else
 
6180
  pic_mode=default
 
6181
fi;
 
6182
test -z "$pic_mode" && pic_mode=default
 
6183
 
 
6184
# Use C for the default configuration in the libtool script
 
6185
tagname=
 
6186
lt_save_CC="$CC"
 
6187
ac_ext=c
 
6188
ac_cpp='$CPP $CPPFLAGS'
 
6189
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6190
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6191
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6192
 
 
6193
 
 
6194
# Source file extension for C test sources.
 
6195
ac_ext=c
 
6196
 
 
6197
# Object file extension for compiled C test sources.
 
6198
objext=o
 
6199
objext=$objext
 
6200
 
 
6201
# Code to be used in simple compile tests
 
6202
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6203
 
 
6204
# Code to be used in simple link tests
 
6205
lt_simple_link_test_code='int main(){return(0);}\n'
 
6206
 
 
6207
 
 
6208
# If no C compiler was specified, use CC.
 
6209
LTCC=${LTCC-"$CC"}
 
6210
 
 
6211
# Allow CC to be a program name with arguments.
 
6212
compiler=$CC
 
6213
 
 
6214
 
 
6215
#
 
6216
# Check for any special shared library compilation flags.
 
6217
#
 
6218
lt_prog_cc_shlib=
 
6219
if test "$GCC" = no; then
 
6220
  case $host_os in
 
6221
  sco3.2v5*)
 
6222
    lt_prog_cc_shlib='-belf'
 
6223
    ;;
 
6224
  esac
 
6225
fi
 
6226
if test -n "$lt_prog_cc_shlib"; then
 
6227
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6228
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6229
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
6230
  else
 
6231
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6232
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6233
    lt_cv_prog_cc_can_build_shared=no
 
6234
  fi
 
6235
fi
 
6236
 
 
6237
 
 
6238
#
 
6239
# Check to make sure the static flag actually works.
 
6240
#
 
6241
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6242
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6243
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6245
else
 
6246
  lt_prog_compiler_static_works=no
 
6247
   save_LDFLAGS="$LDFLAGS"
 
6248
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6249
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6250
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6251
     # The compiler can only warn and ignore the option if not recognized
 
6252
     # So say no if there are warnings
 
6253
     if test -s conftest.err; then
 
6254
       # Append any errors to the config.log.
 
6255
       cat conftest.err 1>&5
 
6256
     else
 
6257
       lt_prog_compiler_static_works=yes
 
6258
     fi
 
6259
   fi
 
6260
   $rm conftest*
 
6261
   LDFLAGS="$save_LDFLAGS"
 
6262
 
 
6263
fi
 
6264
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6265
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6266
 
 
6267
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6268
    :
 
6269
else
 
6270
    lt_prog_compiler_static=
 
6271
fi
 
6272
 
 
6273
 
 
6274
 
 
6275
 
 
6276
lt_prog_compiler_no_builtin_flag=
 
6277
 
 
6278
if test "$GCC" = yes; then
 
6279
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6280
 
 
6281
 
 
6282
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6283
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6284
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6286
else
 
6287
  lt_cv_prog_compiler_rtti_exceptions=no
 
6288
  ac_outfile=conftest.$ac_objext
 
6289
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6290
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6291
   # Insert the option either (1) after the last *FLAGS variable, or
 
6292
   # (2) before a word containing "conftest.", or (3) at the end.
 
6293
   # Note that $ac_compile itself does not contain backslashes and begins
 
6294
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6295
   # The option is referenced via a variable to avoid confusing sed.
 
6296
   lt_compile=`echo "$ac_compile" | $SED \
 
6297
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6298
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6299
   -e 's:$: $lt_compiler_flag:'`
 
6300
   (eval echo "\"\$as_me:6300: $lt_compile\"" >&5)
 
6301
   (eval "$lt_compile" 2>conftest.err)
 
6302
   ac_status=$?
 
6303
   cat conftest.err >&5
 
6304
   echo "$as_me:6304: \$? = $ac_status" >&5
 
6305
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6306
     # The compiler can only warn and ignore the option if not recognized
 
6307
     # So say no if there are warnings
 
6308
     if test ! -s conftest.err; then
 
6309
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6310
     fi
 
6311
   fi
 
6312
   $rm conftest*
 
6313
 
 
6314
fi
 
6315
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6316
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6317
 
 
6318
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6319
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6320
else
 
6321
    :
 
6322
fi
 
6323
 
 
6324
fi
 
6325
 
 
6326
lt_prog_compiler_wl=
 
6327
lt_prog_compiler_pic=
 
6328
lt_prog_compiler_static=
 
6329
 
 
6330
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6331
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6332
 
 
6333
  if test "$GCC" = yes; then
 
6334
    lt_prog_compiler_wl='-Wl,'
 
6335
    lt_prog_compiler_static='-static'
 
6336
 
 
6337
    case $host_os in
 
6338
      aix*)
 
6339
      # All AIX code is PIC.
 
6340
      if test "$host_cpu" = ia64; then
 
6341
        # AIX 5 now supports IA64 processor
 
6342
        lt_prog_compiler_static='-Bstatic'
 
6343
      fi
 
6344
      ;;
 
6345
 
 
6346
    amigaos*)
 
6347
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6348
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6349
      # like `-m68040'.
 
6350
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6351
      ;;
 
6352
 
 
6353
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6354
      # PIC is the default for these OSes.
 
6355
      ;;
 
6356
 
 
6357
    mingw* | pw32* | os2*)
 
6358
      # This hack is so that the source file can tell whether it is being
 
6359
      # built for inclusion in a dll (and should export symbols for example).
 
6360
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6361
      ;;
 
6362
 
 
6363
    darwin* | rhapsody*)
 
6364
      # PIC is the default on this platform
 
6365
      # Common symbols not allowed in MH_DYLIB files
 
6366
      lt_prog_compiler_pic='-fno-common'
 
6367
      ;;
 
6368
 
 
6369
    msdosdjgpp*)
 
6370
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6371
      # on systems that don't support them.
 
6372
      lt_prog_compiler_can_build_shared=no
 
6373
      enable_shared=no
 
6374
      ;;
 
6375
 
 
6376
    sysv4*MP*)
 
6377
      if test -d /usr/nec; then
 
6378
        lt_prog_compiler_pic=-Kconform_pic
 
6379
      fi
 
6380
      ;;
 
6381
 
 
6382
    hpux*)
 
6383
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6384
      # not for PA HP-UX.
 
6385
      case "$host_cpu" in
 
6386
      hppa*64*|ia64*)
 
6387
        # +Z the default
 
6388
        ;;
 
6389
      *)
 
6390
        lt_prog_compiler_pic='-fPIC'
 
6391
        ;;
 
6392
      esac
 
6393
      ;;
 
6394
 
 
6395
    *)
 
6396
      lt_prog_compiler_pic='-fPIC'
 
6397
      ;;
 
6398
    esac
 
6399
  else
 
6400
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6401
    case $host_os in
 
6402
    aix*)
 
6403
      lt_prog_compiler_wl='-Wl,'
 
6404
      if test "$host_cpu" = ia64; then
 
6405
        # AIX 5 now supports IA64 processor
 
6406
        lt_prog_compiler_static='-Bstatic'
 
6407
      else
 
6408
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6409
      fi
 
6410
      ;;
 
6411
 
 
6412
    mingw* | pw32* | os2*)
 
6413
      # This hack is so that the source file can tell whether it is being
 
6414
      # built for inclusion in a dll (and should export symbols for example).
 
6415
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6416
      ;;
 
6417
 
 
6418
    hpux9* | hpux10* | hpux11*)
 
6419
      lt_prog_compiler_wl='-Wl,'
 
6420
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6421
      # not for PA HP-UX.
 
6422
      case "$host_cpu" in
 
6423
      hppa*64*|ia64*)
 
6424
        # +Z the default
 
6425
        ;;
 
6426
      *)
 
6427
        lt_prog_compiler_pic='+Z'
 
6428
        ;;
 
6429
      esac
 
6430
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6431
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6432
      ;;
 
6433
 
 
6434
    irix5* | irix6* | nonstopux*)
 
6435
      lt_prog_compiler_wl='-Wl,'
 
6436
      # PIC (with -KPIC) is the default.
 
6437
      lt_prog_compiler_static='-non_shared'
 
6438
      ;;
 
6439
 
 
6440
    newsos6)
 
6441
      lt_prog_compiler_pic='-KPIC'
 
6442
      lt_prog_compiler_static='-Bstatic'
 
6443
      ;;
 
6444
 
 
6445
    linux*)
 
6446
      case $CC in
 
6447
      icc* | ecc*)
 
6448
        lt_prog_compiler_wl='-Wl,'
 
6449
        lt_prog_compiler_pic='-KPIC'
 
6450
        lt_prog_compiler_static='-static'
 
6451
        ;;
 
6452
      ccc*)
 
6453
        lt_prog_compiler_wl='-Wl,'
 
6454
        # All Alpha code is PIC.
 
6455
        lt_prog_compiler_static='-non_shared'
 
6456
        ;;
 
6457
      esac
 
6458
      ;;
 
6459
 
 
6460
    osf3* | osf4* | osf5*)
 
6461
      lt_prog_compiler_wl='-Wl,'
 
6462
      # All OSF/1 code is PIC.
 
6463
      lt_prog_compiler_static='-non_shared'
 
6464
      ;;
 
6465
 
 
6466
    sco3.2v5*)
 
6467
      lt_prog_compiler_pic='-Kpic'
 
6468
      lt_prog_compiler_static='-dn'
 
6469
      ;;
 
6470
 
 
6471
    solaris*)
 
6472
      lt_prog_compiler_wl='-Wl,'
 
6473
      lt_prog_compiler_pic='-KPIC'
 
6474
      lt_prog_compiler_static='-Bstatic'
 
6475
      ;;
 
6476
 
 
6477
    sunos4*)
 
6478
      lt_prog_compiler_wl='-Qoption ld '
 
6479
      lt_prog_compiler_pic='-PIC'
 
6480
      lt_prog_compiler_static='-Bstatic'
 
6481
      ;;
 
6482
 
 
6483
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6484
      lt_prog_compiler_wl='-Wl,'
 
6485
      lt_prog_compiler_pic='-KPIC'
 
6486
      lt_prog_compiler_static='-Bstatic'
 
6487
      ;;
 
6488
 
 
6489
    sysv4*MP*)
 
6490
      if test -d /usr/nec ;then
 
6491
        lt_prog_compiler_pic='-Kconform_pic'
 
6492
        lt_prog_compiler_static='-Bstatic'
 
6493
      fi
 
6494
      ;;
 
6495
 
 
6496
    uts4*)
 
6497
      lt_prog_compiler_pic='-pic'
 
6498
      lt_prog_compiler_static='-Bstatic'
 
6499
      ;;
 
6500
 
 
6501
    *)
 
6502
      lt_prog_compiler_can_build_shared=no
 
6503
      ;;
 
6504
    esac
 
6505
  fi
 
6506
 
 
6507
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6508
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6509
 
 
6510
#
 
6511
# Check to make sure the PIC flag actually works.
 
6512
#
 
6513
if test -n "$lt_prog_compiler_pic"; then
 
6514
 
 
6515
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6516
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6517
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6518
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6519
else
 
6520
  lt_prog_compiler_pic_works=no
 
6521
  ac_outfile=conftest.$ac_objext
 
6522
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6523
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6524
   # Insert the option either (1) after the last *FLAGS variable, or
 
6525
   # (2) before a word containing "conftest.", or (3) at the end.
 
6526
   # Note that $ac_compile itself does not contain backslashes and begins
 
6527
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6528
   # The option is referenced via a variable to avoid confusing sed.
 
6529
   lt_compile=`echo "$ac_compile" | $SED \
 
6530
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6531
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6532
   -e 's:$: $lt_compiler_flag:'`
 
6533
   (eval echo "\"\$as_me:6533: $lt_compile\"" >&5)
 
6534
   (eval "$lt_compile" 2>conftest.err)
 
6535
   ac_status=$?
 
6536
   cat conftest.err >&5
 
6537
   echo "$as_me:6537: \$? = $ac_status" >&5
 
6538
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6539
     # The compiler can only warn and ignore the option if not recognized
 
6540
     # So say no if there are warnings
 
6541
     if test ! -s conftest.err; then
 
6542
       lt_prog_compiler_pic_works=yes
 
6543
     fi
 
6544
   fi
 
6545
   $rm conftest*
 
6546
 
 
6547
fi
 
6548
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6549
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6550
 
 
6551
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6552
    case $lt_prog_compiler_pic in
 
6553
     "" | " "*) ;;
 
6554
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6555
     esac
 
6556
else
 
6557
    lt_prog_compiler_pic=
 
6558
     lt_prog_compiler_can_build_shared=no
 
6559
fi
 
6560
 
 
6561
fi
 
6562
case "$host_os" in
 
6563
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6564
  *djgpp*)
 
6565
    lt_prog_compiler_pic=
 
6566
    ;;
 
6567
  *)
 
6568
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6569
    ;;
 
6570
esac
 
6571
 
 
6572
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6573
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6574
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6576
else
 
6577
  lt_cv_prog_compiler_c_o=no
 
6578
   $rm -r conftest 2>/dev/null
 
6579
   mkdir conftest
 
6580
   cd conftest
 
6581
   mkdir out
 
6582
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6583
 
 
6584
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6585
   # Insert the option either (1) after the last *FLAGS variable, or
 
6586
   # (2) before a word containing "conftest.", or (3) at the end.
 
6587
   # Note that $ac_compile itself does not contain backslashes and begins
 
6588
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6589
   lt_compile=`echo "$ac_compile" | $SED \
 
6590
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6591
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6592
   -e 's:$: $lt_compiler_flag:'`
 
6593
   (eval echo "\"\$as_me:6593: $lt_compile\"" >&5)
 
6594
   (eval "$lt_compile" 2>out/conftest.err)
 
6595
   ac_status=$?
 
6596
   cat out/conftest.err >&5
 
6597
   echo "$as_me:6597: \$? = $ac_status" >&5
 
6598
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6599
   then
 
6600
     # The compiler can only warn and ignore the option if not recognized
 
6601
     # So say no if there are warnings
 
6602
     if test ! -s out/conftest.err; then
 
6603
       lt_cv_prog_compiler_c_o=yes
 
6604
     fi
 
6605
   fi
 
6606
   chmod u+w .
 
6607
   $rm conftest*
 
6608
   # SGI C++ compiler will create directory out/ii_files/ for
 
6609
   # template instantiation
 
6610
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6611
   $rm out/* && rmdir out
 
6612
   cd ..
 
6613
   rmdir conftest
 
6614
   $rm conftest*
 
6615
 
 
6616
fi
 
6617
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6618
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6619
 
 
6620
 
 
6621
hard_links="nottested"
 
6622
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6623
  # do not overwrite the value of need_locks provided by the user
 
6624
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6625
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6626
  hard_links=yes
 
6627
  $rm conftest*
 
6628
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6629
  touch conftest.a
 
6630
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6631
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6632
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6633
echo "${ECHO_T}$hard_links" >&6
 
6634
  if test "$hard_links" = no; then
 
6635
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6636
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6637
    need_locks=warn
 
6638
  fi
 
6639
else
 
6640
  need_locks=no
 
6641
fi
 
6642
 
 
6643
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6644
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6645
 
 
6646
  runpath_var=
 
6647
  allow_undefined_flag=
 
6648
  enable_shared_with_static_runtimes=no
 
6649
  archive_cmds=
 
6650
  archive_expsym_cmds=
 
6651
  old_archive_From_new_cmds=
 
6652
  old_archive_from_expsyms_cmds=
 
6653
  export_dynamic_flag_spec=
 
6654
  whole_archive_flag_spec=
 
6655
  thread_safe_flag_spec=
 
6656
  hardcode_libdir_flag_spec=
 
6657
  hardcode_libdir_flag_spec_ld=
 
6658
  hardcode_libdir_separator=
 
6659
  hardcode_direct=no
 
6660
  hardcode_minus_L=no
 
6661
  hardcode_shlibpath_var=unsupported
 
6662
  link_all_deplibs=unknown
 
6663
  hardcode_automatic=no
 
6664
  module_cmds=
 
6665
  module_expsym_cmds=
 
6666
  always_export_symbols=no
 
6667
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6668
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6669
  # included in the symbol list
 
6670
  include_expsyms=
 
6671
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6672
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6673
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6674
  # as well as any symbol that contains `d'.
 
6675
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6676
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6677
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6678
  # the symbol is explicitly referenced.  Since portable code cannot
 
6679
  # rely on this symbol name, it's probably fine to never include it in
 
6680
  # preloaded symbol tables.
 
6681
  extract_expsyms_cmds=
 
6682
 
 
6683
  case $host_os in
 
6684
  cygwin* | mingw* | pw32*)
 
6685
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6686
    # When not using gcc, we currently assume that we are using
 
6687
    # Microsoft Visual C++.
 
6688
    if test "$GCC" != yes; then
 
6689
      with_gnu_ld=no
 
6690
    fi
 
6691
    ;;
 
6692
  openbsd*)
 
6693
    with_gnu_ld=no
 
6694
    ;;
 
6695
  esac
 
6696
 
 
6697
  ld_shlibs=yes
 
6698
  if test "$with_gnu_ld" = yes; then
 
6699
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6700
    wlarc='${wl}'
 
6701
 
 
6702
    # See if GNU ld supports shared libraries.
 
6703
    case $host_os in
 
6704
    aix3* | aix4* | aix5*)
 
6705
      # On AIX/PPC, the GNU linker is very broken
 
6706
      if test "$host_cpu" != ia64; then
 
6707
        ld_shlibs=no
 
6708
        cat <<EOF 1>&2
 
6709
 
 
6710
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6711
*** to be unable to reliably create shared libraries on AIX.
 
6712
*** Therefore, libtool is disabling shared libraries support.  If you
 
6713
*** really care for shared libraries, you may want to modify your PATH
 
6714
*** so that a non-GNU linker is found, and then restart.
 
6715
 
 
6716
EOF
 
6717
      fi
 
6718
      ;;
 
6719
 
 
6720
    amigaos*)
 
6721
      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)'
 
6722
      hardcode_libdir_flag_spec='-L$libdir'
 
6723
      hardcode_minus_L=yes
 
6724
 
 
6725
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6726
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6727
      # to version 4, is to share data among multiple programs linked
 
6728
      # with the same dynamic library.  Since this doesn't match the
 
6729
      # behavior of shared libraries on other platforms, we can't use
 
6730
      # them.
 
6731
      ld_shlibs=no
 
6732
      ;;
 
6733
 
 
6734
    beos*)
 
6735
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6736
        allow_undefined_flag=unsupported
 
6737
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6738
        # support --undefined.  This deserves some investigation.  FIXME
 
6739
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6740
      else
 
6741
        ld_shlibs=no
 
6742
      fi
 
6743
      ;;
 
6744
 
 
6745
    cygwin* | mingw* | pw32*)
 
6746
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6747
      # as there is no search path for DLLs.
 
6748
      hardcode_libdir_flag_spec='-L$libdir'
 
6749
      allow_undefined_flag=unsupported
 
6750
      always_export_symbols=no
 
6751
      enable_shared_with_static_runtimes=yes
 
6752
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6753
 
 
6754
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6755
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6756
        # If the export-symbols file already is a .def file (1st line
 
6757
        # is EXPORTS), use it as is; otherwise, prepend...
 
6758
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6759
          cp $export_symbols $output_objdir/$soname.def;
 
6760
        else
 
6761
          echo EXPORTS > $output_objdir/$soname.def;
 
6762
          cat $export_symbols >> $output_objdir/$soname.def;
 
6763
        fi~
 
6764
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6765
      else
 
6766
        ld_shlibs=no
 
6767
      fi
 
6768
      ;;
 
6769
 
 
6770
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6771
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6772
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6773
        wlarc=
 
6774
      else
 
6775
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6776
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6777
      fi
 
6778
      ;;
 
6779
 
 
6780
    solaris* | sysv5*)
 
6781
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6782
        ld_shlibs=no
 
6783
        cat <<EOF 1>&2
 
6784
 
 
6785
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6786
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6787
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6788
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6789
*** your PATH or compiler configuration so that the native linker is
 
6790
*** used, and then restart.
 
6791
 
 
6792
EOF
 
6793
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6794
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6795
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6796
      else
 
6797
        ld_shlibs=no
 
6798
      fi
 
6799
      ;;
 
6800
 
 
6801
    sunos4*)
 
6802
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6803
      wlarc=
 
6804
      hardcode_direct=yes
 
6805
      hardcode_shlibpath_var=no
 
6806
      ;;
 
6807
 
 
6808
  linux*)
 
6809
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6810
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6811
        archive_cmds="$tmp_archive_cmds"
 
6812
      supports_anon_versioning=no
 
6813
      case `$LD -v 2>/dev/null` in
 
6814
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6815
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6816
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6817
        *\ 2.11.*) ;; # other 2.11 versions
 
6818
        *) supports_anon_versioning=yes ;;
 
6819
      esac
 
6820
      if test $supports_anon_versioning = yes; then
 
6821
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6822
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6823
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
6824
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6825
      else
 
6826
        archive_expsym_cmds="$tmp_archive_cmds"
 
6827
      fi
 
6828
      link_all_deplibs=no
 
6829
    else
 
6830
      ld_shlibs=no
 
6831
    fi
 
6832
    ;;
 
6833
 
 
6834
    *)
 
6835
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6836
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6837
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6838
      else
 
6839
        ld_shlibs=no
 
6840
      fi
 
6841
      ;;
 
6842
    esac
 
6843
 
 
6844
    if test "$ld_shlibs" = yes; then
 
6845
      runpath_var=LD_RUN_PATH
 
6846
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6847
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
6848
      # ancient GNU ld didn't support --whole-archive et. al.
 
6849
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6850
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6851
      else
 
6852
        whole_archive_flag_spec=
 
6853
      fi
 
6854
    fi
 
6855
  else
 
6856
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6857
    case $host_os in
 
6858
    aix3*)
 
6859
      allow_undefined_flag=unsupported
 
6860
      always_export_symbols=yes
 
6861
      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'
 
6862
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6863
      # are no directories specified by -L.
 
6864
      hardcode_minus_L=yes
 
6865
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6866
        # Neither direct hardcoding nor static linking is supported with a
 
6867
        # broken collect2.
 
6868
        hardcode_direct=unsupported
 
6869
      fi
 
6870
      ;;
 
6871
 
 
6872
    aix4* | aix5*)
 
6873
      if test "$host_cpu" = ia64; then
 
6874
        # On IA64, the linker does run time linking by default, so we don't
 
6875
        # have to do anything special.
 
6876
        aix_use_runtimelinking=no
 
6877
        exp_sym_flag='-Bexport'
 
6878
        no_entry_flag=""
 
6879
      else
 
6880
        # If we're using GNU nm, then we don't want the "-C" option.
 
6881
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6882
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6883
          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'
 
6884
        else
 
6885
          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'
 
6886
        fi
 
6887
        aix_use_runtimelinking=no
 
6888
 
 
6889
        # Test if we are trying to use run time linking or normal
 
6890
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6891
        # need to do runtime linking.
 
6892
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6893
          for ld_flag in $LDFLAGS; do
 
6894
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6895
            aix_use_runtimelinking=yes
 
6896
            break
 
6897
          fi
 
6898
          done
 
6899
        esac
 
6900
 
 
6901
        exp_sym_flag='-bexport'
 
6902
        no_entry_flag='-bnoentry'
 
6903
      fi
 
6904
 
 
6905
      # When large executables or shared objects are built, AIX ld can
 
6906
      # have problems creating the table of contents.  If linking a library
 
6907
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6908
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6909
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6910
 
 
6911
      archive_cmds=''
 
6912
      hardcode_direct=yes
 
6913
      hardcode_libdir_separator=':'
 
6914
      link_all_deplibs=yes
 
6915
 
 
6916
      if test "$GCC" = yes; then
 
6917
        case $host_os in aix4.012|aix4.012.*)
 
6918
        # We only want to do this on AIX 4.2 and lower, the check
 
6919
        # below for broken collect2 doesn't work under 4.3+
 
6920
          collect2name=`${CC} -print-prog-name=collect2`
 
6921
          if test -f "$collect2name" && \
 
6922
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6923
          then
 
6924
          # We have reworked collect2
 
6925
          hardcode_direct=yes
 
6926
          else
 
6927
          # We have old collect2
 
6928
          hardcode_direct=unsupported
 
6929
          # It fails to find uninstalled libraries when the uninstalled
 
6930
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6931
          # to unsupported forces relinking
 
6932
          hardcode_minus_L=yes
 
6933
          hardcode_libdir_flag_spec='-L$libdir'
 
6934
          hardcode_libdir_separator=
 
6935
          fi
 
6936
        esac
 
6937
        shared_flag='-shared'
 
6938
      else
 
6939
        # not using gcc
 
6940
        if test "$host_cpu" = ia64; then
 
6941
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6942
        # chokes on -Wl,-G. The following line is correct:
 
6943
          shared_flag='-G'
 
6944
        else
 
6945
        if test "$aix_use_runtimelinking" = yes; then
 
6946
            shared_flag='${wl}-G'
 
6947
          else
 
6948
            shared_flag='${wl}-bM:SRE'
 
6949
        fi
 
6950
        fi
 
6951
      fi
 
6952
 
 
6953
      # It seems that -bexpall does not export symbols beginning with
 
6954
      # underscore (_), so it is better to generate a list of symbols to export.
 
6955
      always_export_symbols=yes
 
6956
      if test "$aix_use_runtimelinking" = yes; then
 
6957
        # Warning - without using the other runtime loading flags (-brtl),
 
6958
        # -berok will link without error, but may produce a broken library.
 
6959
        allow_undefined_flag='-berok'
 
6960
       # Determine the default libpath from the value encoded in an empty executable.
 
6961
       cat >conftest.$ac_ext <<_ACEOF
 
6962
/* confdefs.h.  */
 
6963
_ACEOF
 
6964
cat confdefs.h >>conftest.$ac_ext
 
6965
cat >>conftest.$ac_ext <<_ACEOF
 
6966
/* end confdefs.h.  */
 
6967
 
 
6968
int
 
6969
main ()
 
6970
{
 
6971
 
 
6972
  ;
 
6973
  return 0;
 
6974
}
 
6975
_ACEOF
 
6976
rm -f conftest.$ac_objext conftest$ac_exeext
 
6977
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6978
  (eval $ac_link) 2>conftest.er1
 
6979
  ac_status=$?
 
6980
  grep -v '^ *+' conftest.er1 >conftest.err
 
6981
  rm -f conftest.er1
 
6982
  cat conftest.err >&5
 
6983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6984
  (exit $ac_status); } &&
 
6985
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6987
  (eval $ac_try) 2>&5
 
6988
  ac_status=$?
 
6989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6990
  (exit $ac_status); }; } &&
 
6991
         { ac_try='test -s conftest$ac_exeext'
 
6992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6993
  (eval $ac_try) 2>&5
 
6994
  ac_status=$?
 
6995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6996
  (exit $ac_status); }; }; then
 
6997
 
 
6998
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6999
}'`
 
7000
# Check for a 64-bit object if we didn't find anything.
 
7001
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; }
 
7002
}'`; fi
 
7003
else
 
7004
  echo "$as_me: failed program was:" >&5
 
7005
sed 's/^/| /' conftest.$ac_ext >&5
 
7006
 
 
7007
fi
 
7008
rm -f conftest.err conftest.$ac_objext \
 
7009
      conftest$ac_exeext conftest.$ac_ext
 
7010
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7011
 
 
7012
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7013
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7014
       else
 
7015
        if test "$host_cpu" = ia64; then
 
7016
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7017
          allow_undefined_flag="-z nodefs"
 
7018
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
7019
        else
 
7020
         # Determine the default libpath from the value encoded in an empty executable.
 
7021
         cat >conftest.$ac_ext <<_ACEOF
 
7022
/* confdefs.h.  */
 
7023
_ACEOF
 
7024
cat confdefs.h >>conftest.$ac_ext
 
7025
cat >>conftest.$ac_ext <<_ACEOF
 
7026
/* end confdefs.h.  */
 
7027
 
 
7028
int
 
7029
main ()
 
7030
{
 
7031
 
 
7032
  ;
 
7033
  return 0;
 
7034
}
 
7035
_ACEOF
 
7036
rm -f conftest.$ac_objext conftest$ac_exeext
 
7037
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7038
  (eval $ac_link) 2>conftest.er1
 
7039
  ac_status=$?
 
7040
  grep -v '^ *+' conftest.er1 >conftest.err
 
7041
  rm -f conftest.er1
 
7042
  cat conftest.err >&5
 
7043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7044
  (exit $ac_status); } &&
 
7045
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7047
  (eval $ac_try) 2>&5
 
7048
  ac_status=$?
 
7049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7050
  (exit $ac_status); }; } &&
 
7051
         { ac_try='test -s conftest$ac_exeext'
 
7052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7053
  (eval $ac_try) 2>&5
 
7054
  ac_status=$?
 
7055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7056
  (exit $ac_status); }; }; then
 
7057
 
 
7058
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7059
}'`
 
7060
# Check for a 64-bit object if we didn't find anything.
 
7061
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; }
 
7062
}'`; fi
 
7063
else
 
7064
  echo "$as_me: failed program was:" >&5
 
7065
sed 's/^/| /' conftest.$ac_ext >&5
 
7066
 
 
7067
fi
 
7068
rm -f conftest.err conftest.$ac_objext \
 
7069
      conftest$ac_exeext conftest.$ac_ext
 
7070
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7071
 
 
7072
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7073
          # Warning - without using the other run time loading flags,
 
7074
          # -berok will link without error, but may produce a broken library.
 
7075
          no_undefined_flag=' ${wl}-bernotok'
 
7076
          allow_undefined_flag=' ${wl}-berok'
 
7077
          # -bexpall does not export symbols beginning with underscore (_)
 
7078
          always_export_symbols=yes
 
7079
          # Exported symbols can be pulled into shared objects from archives
 
7080
          whole_archive_flag_spec=' '
 
7081
          archive_cmds_need_lc=yes
 
7082
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7083
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7084
        fi
 
7085
      fi
 
7086
      ;;
 
7087
 
 
7088
    amigaos*)
 
7089
      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)'
 
7090
      hardcode_libdir_flag_spec='-L$libdir'
 
7091
      hardcode_minus_L=yes
 
7092
      # see comment about different semantics on the GNU ld section
 
7093
      ld_shlibs=no
 
7094
      ;;
 
7095
 
 
7096
    bsdi4*)
 
7097
      export_dynamic_flag_spec=-rdynamic
 
7098
      ;;
 
7099
 
 
7100
    cygwin* | mingw* | pw32*)
 
7101
      # When not using gcc, we currently assume that we are using
 
7102
      # Microsoft Visual C++.
 
7103
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7104
      # no search path for DLLs.
 
7105
      hardcode_libdir_flag_spec=' '
 
7106
      allow_undefined_flag=unsupported
 
7107
      # Tell ltmain to make .lib files, not .a files.
 
7108
      libext=lib
 
7109
      # Tell ltmain to make .dll files, not .so files.
 
7110
      shrext_cmds=".dll"
 
7111
      # FIXME: Setting linknames here is a bad hack.
 
7112
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7113
      # The linker will automatically build a .lib file if we build a DLL.
 
7114
      old_archive_From_new_cmds='true'
 
7115
      # FIXME: Should let the user specify the lib program.
 
7116
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7117
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7118
      enable_shared_with_static_runtimes=yes
 
7119
      ;;
 
7120
 
 
7121
    darwin* | rhapsody*)
 
7122
    if test "$GXX" = yes ; then
 
7123
      archive_cmds_need_lc=no
 
7124
      case "$host_os" in
 
7125
      rhapsody* | darwin1.[012])
 
7126
        allow_undefined_flag='-undefined suppress'
 
7127
        ;;
 
7128
      *) # Darwin 1.3 on
 
7129
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7130
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
7131
      else
 
7132
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
7133
          10.[012])
 
7134
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
7135
            ;;
 
7136
          10.*)
 
7137
            allow_undefined_flag='-undefined dynamic_lookup'
 
7138
            ;;
 
7139
        esac
 
7140
      fi
 
7141
        ;;
 
7142
      esac
 
7143
        lt_int_apple_cc_single_mod=no
 
7144
        output_verbose_link_cmd='echo'
 
7145
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
7146
          lt_int_apple_cc_single_mod=yes
 
7147
        fi
 
7148
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7149
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7150
        else
 
7151
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7152
      fi
 
7153
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7154
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7155
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7156
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7157
        else
 
7158
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7159
        fi
 
7160
          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}'
 
7161
      hardcode_direct=no
 
7162
      hardcode_automatic=yes
 
7163
      hardcode_shlibpath_var=unsupported
 
7164
      whole_archive_flag_spec='-all_load $convenience'
 
7165
      link_all_deplibs=yes
 
7166
    else
 
7167
      ld_shlibs=no
 
7168
    fi
 
7169
      ;;
 
7170
 
 
7171
    dgux*)
 
7172
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7173
      hardcode_libdir_flag_spec='-L$libdir'
 
7174
      hardcode_shlibpath_var=no
 
7175
      ;;
 
7176
 
 
7177
    freebsd1*)
 
7178
      ld_shlibs=no
 
7179
      ;;
 
7180
 
 
7181
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7182
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7183
    # does not break anything, and helps significantly (at the cost of a little
 
7184
    # extra space).
 
7185
    freebsd2.2*)
 
7186
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7187
      hardcode_libdir_flag_spec='-R$libdir'
 
7188
      hardcode_direct=yes
 
7189
      hardcode_shlibpath_var=no
 
7190
      ;;
 
7191
 
 
7192
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7193
    freebsd2*)
 
7194
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7195
      hardcode_direct=yes
 
7196
      hardcode_minus_L=yes
 
7197
      hardcode_shlibpath_var=no
 
7198
      ;;
 
7199
 
 
7200
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7201
    freebsd* | kfreebsd*-gnu)
 
7202
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7203
      hardcode_libdir_flag_spec='-R$libdir'
 
7204
      hardcode_direct=yes
 
7205
      hardcode_shlibpath_var=no
 
7206
      ;;
 
7207
 
 
7208
    hpux9*)
 
7209
      if test "$GCC" = yes; then
 
7210
        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'
 
7211
      else
 
7212
        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'
 
7213
      fi
 
7214
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7215
      hardcode_libdir_separator=:
 
7216
      hardcode_direct=yes
 
7217
 
 
7218
      # hardcode_minus_L: Not really in the search PATH,
 
7219
      # but as the default location of the library.
 
7220
      hardcode_minus_L=yes
 
7221
      export_dynamic_flag_spec='${wl}-E'
 
7222
      ;;
 
7223
 
 
7224
    hpux10* | hpux11*)
 
7225
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7226
        case "$host_cpu" in
 
7227
        hppa*64*|ia64*)
 
7228
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7229
          ;;
 
7230
        *)
 
7231
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7232
          ;;
 
7233
        esac
 
7234
      else
 
7235
        case "$host_cpu" in
 
7236
        hppa*64*|ia64*)
 
7237
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7238
          ;;
 
7239
        *)
 
7240
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7241
          ;;
 
7242
        esac
 
7243
      fi
 
7244
      if test "$with_gnu_ld" = no; then
 
7245
        case "$host_cpu" in
 
7246
        hppa*64*)
 
7247
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7248
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7249
          hardcode_libdir_separator=:
 
7250
          hardcode_direct=no
 
7251
          hardcode_shlibpath_var=no
 
7252
          ;;
 
7253
        ia64*)
 
7254
          hardcode_libdir_flag_spec='-L$libdir'
 
7255
          hardcode_direct=no
 
7256
          hardcode_shlibpath_var=no
 
7257
 
 
7258
          # hardcode_minus_L: Not really in the search PATH,
 
7259
          # but as the default location of the library.
 
7260
          hardcode_minus_L=yes
 
7261
          ;;
 
7262
        *)
 
7263
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7264
          hardcode_libdir_separator=:
 
7265
          hardcode_direct=yes
 
7266
          export_dynamic_flag_spec='${wl}-E'
 
7267
 
 
7268
          # hardcode_minus_L: Not really in the search PATH,
 
7269
          # but as the default location of the library.
 
7270
          hardcode_minus_L=yes
 
7271
          ;;
 
7272
        esac
 
7273
      fi
 
7274
      ;;
 
7275
 
 
7276
    irix5* | irix6* | nonstopux*)
 
7277
      if test "$GCC" = yes; then
 
7278
        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'
 
7279
      else
 
7280
        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'
 
7281
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7282
      fi
 
7283
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7284
      hardcode_libdir_separator=:
 
7285
      link_all_deplibs=yes
 
7286
      ;;
 
7287
 
 
7288
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7289
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7290
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7291
      else
 
7292
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7293
      fi
 
7294
      hardcode_libdir_flag_spec='-R$libdir'
 
7295
      hardcode_direct=yes
 
7296
      hardcode_shlibpath_var=no
 
7297
      ;;
 
7298
 
 
7299
    newsos6)
 
7300
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7301
      hardcode_direct=yes
 
7302
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7303
      hardcode_libdir_separator=:
 
7304
      hardcode_shlibpath_var=no
 
7305
      ;;
 
7306
 
 
7307
    openbsd*)
 
7308
      hardcode_direct=yes
 
7309
      hardcode_shlibpath_var=no
 
7310
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7311
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7312
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7313
        export_dynamic_flag_spec='${wl}-E'
 
7314
      else
 
7315
       case $host_os in
 
7316
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7317
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7318
           hardcode_libdir_flag_spec='-R$libdir'
 
7319
           ;;
 
7320
         *)
 
7321
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7322
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7323
           ;;
 
7324
       esac
 
7325
      fi
 
7326
      ;;
 
7327
 
 
7328
    os2*)
 
7329
      hardcode_libdir_flag_spec='-L$libdir'
 
7330
      hardcode_minus_L=yes
 
7331
      allow_undefined_flag=unsupported
 
7332
      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'
 
7333
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7334
      ;;
 
7335
 
 
7336
    osf3*)
 
7337
      if test "$GCC" = yes; then
 
7338
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7339
        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'
 
7340
      else
 
7341
        allow_undefined_flag=' -expect_unresolved \*'
 
7342
        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'
 
7343
      fi
 
7344
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7345
      hardcode_libdir_separator=:
 
7346
      ;;
 
7347
 
 
7348
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7349
      if test "$GCC" = yes; then
 
7350
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7351
        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'
 
7352
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7353
      else
 
7354
        allow_undefined_flag=' -expect_unresolved \*'
 
7355
        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'
 
7356
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7357
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
7358
 
 
7359
        # Both c and cxx compiler support -rpath directly
 
7360
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7361
      fi
 
7362
      hardcode_libdir_separator=:
 
7363
      ;;
 
7364
 
 
7365
    sco3.2v5*)
 
7366
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7367
      hardcode_shlibpath_var=no
 
7368
      export_dynamic_flag_spec='${wl}-Bexport'
 
7369
      runpath_var=LD_RUN_PATH
 
7370
      hardcode_runpath_var=yes
 
7371
      ;;
 
7372
 
 
7373
    solaris*)
 
7374
      no_undefined_flag=' -z text'
 
7375
      if test "$GCC" = yes; then
 
7376
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7377
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7378
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7379
      else
 
7380
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7381
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7382
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7383
      fi
 
7384
      hardcode_libdir_flag_spec='-R$libdir'
 
7385
      hardcode_shlibpath_var=no
 
7386
      case $host_os in
 
7387
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7388
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7389
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7390
      esac
 
7391
      link_all_deplibs=yes
 
7392
      ;;
 
7393
 
 
7394
    sunos4*)
 
7395
      if test "x$host_vendor" = xsequent; then
 
7396
        # Use $CC to link under sequent, because it throws in some extra .o
 
7397
        # files that make .init and .fini sections work.
 
7398
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7399
      else
 
7400
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7401
      fi
 
7402
      hardcode_libdir_flag_spec='-L$libdir'
 
7403
      hardcode_direct=yes
 
7404
      hardcode_minus_L=yes
 
7405
      hardcode_shlibpath_var=no
 
7406
      ;;
 
7407
 
 
7408
    sysv4)
 
7409
      case $host_vendor in
 
7410
        sni)
 
7411
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7412
          hardcode_direct=yes # is this really true???
 
7413
        ;;
 
7414
        siemens)
 
7415
          ## LD is ld it makes a PLAMLIB
 
7416
          ## CC just makes a GrossModule.
 
7417
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7418
          reload_cmds='$CC -r -o $output$reload_objs'
 
7419
          hardcode_direct=no
 
7420
        ;;
 
7421
        motorola)
 
7422
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7423
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7424
        ;;
 
7425
      esac
 
7426
      runpath_var='LD_RUN_PATH'
 
7427
      hardcode_shlibpath_var=no
 
7428
      ;;
 
7429
 
 
7430
    sysv4.3*)
 
7431
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7432
      hardcode_shlibpath_var=no
 
7433
      export_dynamic_flag_spec='-Bexport'
 
7434
      ;;
 
7435
 
 
7436
    sysv4*MP*)
 
7437
      if test -d /usr/nec; then
 
7438
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7439
        hardcode_shlibpath_var=no
 
7440
        runpath_var=LD_RUN_PATH
 
7441
        hardcode_runpath_var=yes
 
7442
        ld_shlibs=yes
 
7443
      fi
 
7444
      ;;
 
7445
 
 
7446
    sysv4.2uw2*)
 
7447
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7448
      hardcode_direct=yes
 
7449
      hardcode_minus_L=no
 
7450
      hardcode_shlibpath_var=no
 
7451
      hardcode_runpath_var=yes
 
7452
      runpath_var=LD_RUN_PATH
 
7453
      ;;
 
7454
 
 
7455
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7456
      no_undefined_flag='${wl}-z ${wl}text'
 
7457
      if test "$GCC" = yes; then
 
7458
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7459
      else
 
7460
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7461
      fi
 
7462
      runpath_var='LD_RUN_PATH'
 
7463
      hardcode_shlibpath_var=no
 
7464
      ;;
 
7465
 
 
7466
    sysv5*)
 
7467
      no_undefined_flag=' -z text'
 
7468
      # $CC -shared without GNU ld will not create a library from C++
 
7469
      # object files and a static libstdc++, better avoid it by now
 
7470
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7471
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7472
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7473
      hardcode_libdir_flag_spec=
 
7474
      hardcode_shlibpath_var=no
 
7475
      runpath_var='LD_RUN_PATH'
 
7476
      ;;
 
7477
 
 
7478
    uts4*)
 
7479
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7480
      hardcode_libdir_flag_spec='-L$libdir'
 
7481
      hardcode_shlibpath_var=no
 
7482
      ;;
 
7483
 
 
7484
    *)
 
7485
      ld_shlibs=no
 
7486
      ;;
 
7487
    esac
 
7488
  fi
 
7489
 
 
7490
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7491
echo "${ECHO_T}$ld_shlibs" >&6
 
7492
test "$ld_shlibs" = no && can_build_shared=no
 
7493
 
 
7494
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7495
if test "$GCC" = yes; then
 
7496
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7497
fi
 
7498
 
 
7499
#
 
7500
# Do we need to explicitly link libc?
 
7501
#
 
7502
case "x$archive_cmds_need_lc" in
 
7503
x|xyes)
 
7504
  # Assume -lc should be added
 
7505
  archive_cmds_need_lc=yes
 
7506
 
 
7507
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7508
    case $archive_cmds in
 
7509
    *'~'*)
 
7510
      # FIXME: we may have to deal with multi-command sequences.
 
7511
      ;;
 
7512
    '$CC '*)
 
7513
      # Test whether the compiler implicitly links with -lc since on some
 
7514
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7515
      # to ld, don't add -lc before -lgcc.
 
7516
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7517
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7518
      $rm conftest*
 
7519
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7520
 
 
7521
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7522
  (eval $ac_compile) 2>&5
 
7523
  ac_status=$?
 
7524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7525
  (exit $ac_status); } 2>conftest.err; then
 
7526
        soname=conftest
 
7527
        lib=conftest
 
7528
        libobjs=conftest.$ac_objext
 
7529
        deplibs=
 
7530
        wl=$lt_prog_compiler_wl
 
7531
        compiler_flags=-v
 
7532
        linker_flags=-v
 
7533
        verstring=
 
7534
        output_objdir=.
 
7535
        libname=conftest
 
7536
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7537
        allow_undefined_flag=
 
7538
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7539
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7540
  ac_status=$?
 
7541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7542
  (exit $ac_status); }
 
7543
        then
 
7544
          archive_cmds_need_lc=no
 
7545
        else
 
7546
          archive_cmds_need_lc=yes
 
7547
        fi
 
7548
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7549
      else
 
7550
        cat conftest.err 1>&5
 
7551
      fi
 
7552
      $rm conftest*
 
7553
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7554
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7555
      ;;
 
7556
    esac
 
7557
  fi
 
7558
  ;;
 
7559
esac
 
7560
 
 
7561
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7562
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7563
library_names_spec=
 
7564
libname_spec='lib$name'
 
7565
soname_spec=
 
7566
shrext_cmds=".so"
 
7567
postinstall_cmds=
 
7568
postuninstall_cmds=
 
7569
finish_cmds=
 
7570
finish_eval=
 
7571
shlibpath_var=
 
7572
shlibpath_overrides_runpath=unknown
 
7573
version_type=none
 
7574
dynamic_linker="$host_os ld.so"
 
7575
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7576
if test "$GCC" = yes; then
 
7577
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7578
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7579
    # if the path contains ";" then we assume it to be the separator
 
7580
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7581
    # assumed that no part of a normal pathname contains ";" but that should
 
7582
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7583
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7584
  else
 
7585
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7586
  fi
 
7587
else
 
7588
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7589
fi
 
7590
need_lib_prefix=unknown
 
7591
hardcode_into_libs=no
 
7592
 
 
7593
# when you set need_version to no, make sure it does not cause -set_version
 
7594
# flags to be left without arguments
 
7595
need_version=unknown
 
7596
 
 
7597
case $host_os in
 
7598
aix3*)
 
7599
  version_type=linux
 
7600
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7601
  shlibpath_var=LIBPATH
 
7602
 
 
7603
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7604
  soname_spec='${libname}${release}${shared_ext}$major'
 
7605
  ;;
 
7606
 
 
7607
aix4* | aix5*)
 
7608
  version_type=linux
 
7609
  need_lib_prefix=no
 
7610
  need_version=no
 
7611
  hardcode_into_libs=yes
 
7612
  if test "$host_cpu" = ia64; then
 
7613
    # AIX 5 supports IA64
 
7614
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7615
    shlibpath_var=LD_LIBRARY_PATH
 
7616
  else
 
7617
    # With GCC up to 2.95.x, collect2 would create an import file
 
7618
    # for dependence libraries.  The import file would start with
 
7619
    # the line `#! .'.  This would cause the generated library to
 
7620
    # depend on `.', always an invalid library.  This was fixed in
 
7621
    # development snapshots of GCC prior to 3.0.
 
7622
    case $host_os in
 
7623
      aix4 | aix4.[01] | aix4.[01].*)
 
7624
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7625
           echo ' yes '
 
7626
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7627
        :
 
7628
      else
 
7629
        can_build_shared=no
 
7630
      fi
 
7631
      ;;
 
7632
    esac
 
7633
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7634
    # soname into executable. Probably we can add versioning support to
 
7635
    # collect2, so additional links can be useful in future.
 
7636
    if test "$aix_use_runtimelinking" = yes; then
 
7637
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7638
      # instead of lib<name>.a to let people know that these are not
 
7639
      # typical AIX shared libraries.
 
7640
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7641
    else
 
7642
      # We preserve .a as extension for shared libraries through AIX4.2
 
7643
      # and later when we are not doing run time linking.
 
7644
      library_names_spec='${libname}${release}.a $libname.a'
 
7645
      soname_spec='${libname}${release}${shared_ext}$major'
 
7646
    fi
 
7647
    shlibpath_var=LIBPATH
 
7648
  fi
 
7649
  ;;
 
7650
 
 
7651
amigaos*)
 
7652
  library_names_spec='$libname.ixlibrary $libname.a'
 
7653
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7654
  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'
 
7655
  ;;
 
7656
 
 
7657
beos*)
 
7658
  library_names_spec='${libname}${shared_ext}'
 
7659
  dynamic_linker="$host_os ld.so"
 
7660
  shlibpath_var=LIBRARY_PATH
 
7661
  ;;
 
7662
 
 
7663
bsdi4*)
 
7664
  version_type=linux
 
7665
  need_version=no
 
7666
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7667
  soname_spec='${libname}${release}${shared_ext}$major'
 
7668
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7669
  shlibpath_var=LD_LIBRARY_PATH
 
7670
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7671
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7672
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7673
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7674
  # libtool to hard-code these into programs
 
7675
  ;;
 
7676
 
 
7677
cygwin* | mingw* | pw32*)
 
7678
  version_type=windows
 
7679
  shrext_cmds=".dll"
 
7680
  need_version=no
 
7681
  need_lib_prefix=no
 
7682
 
 
7683
  case $GCC,$host_os in
 
7684
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7685
    library_names_spec='$libname.dll.a'
 
7686
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7687
    postinstall_cmds='base_file=`basename \${file}`~
 
7688
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7689
      dldir=$destdir/`dirname \$dlpath`~
 
7690
      test -d \$dldir || mkdir -p \$dldir~
 
7691
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7692
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7693
      dlpath=$dir/\$dldll~
 
7694
       $rm \$dlpath'
 
7695
    shlibpath_overrides_runpath=yes
 
7696
 
 
7697
    case $host_os in
 
7698
    cygwin*)
 
7699
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7700
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7701
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7702
      ;;
 
7703
    mingw*)
 
7704
      # MinGW DLLs use traditional 'lib' prefix
 
7705
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7706
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7707
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7708
        # It is most probably a Windows format PATH printed by
 
7709
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7710
        # path with ; separators, and with drive letters. We can handle the
 
7711
        # drive letters (cygwin fileutils understands them), so leave them,
 
7712
        # especially as we might pass files found there to a mingw objdump,
 
7713
        # which wouldn't understand a cygwinified path. Ahh.
 
7714
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7715
      else
 
7716
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7717
      fi
 
7718
      ;;
 
7719
    pw32*)
 
7720
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7721
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7722
      ;;
 
7723
    esac
 
7724
    ;;
 
7725
 
 
7726
  *)
 
7727
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7728
    ;;
 
7729
  esac
 
7730
  dynamic_linker='Win32 ld.exe'
 
7731
  # FIXME: first we should search . and the directory the executable is in
 
7732
  shlibpath_var=PATH
 
7733
  ;;
 
7734
 
 
7735
darwin* | rhapsody*)
 
7736
  dynamic_linker="$host_os dyld"
 
7737
  version_type=darwin
 
7738
  need_lib_prefix=no
 
7739
  need_version=no
 
7740
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7741
  soname_spec='${libname}${release}${major}$shared_ext'
 
7742
  shlibpath_overrides_runpath=yes
 
7743
  shlibpath_var=DYLD_LIBRARY_PATH
 
7744
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7745
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7746
  if test "$GCC" = yes; then
 
7747
    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"`
 
7748
  else
 
7749
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7750
  fi
 
7751
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7752
  ;;
 
7753
 
 
7754
dgux*)
 
7755
  version_type=linux
 
7756
  need_lib_prefix=no
 
7757
  need_version=no
 
7758
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7759
  soname_spec='${libname}${release}${shared_ext}$major'
 
7760
  shlibpath_var=LD_LIBRARY_PATH
 
7761
  ;;
 
7762
 
 
7763
freebsd1*)
 
7764
  dynamic_linker=no
 
7765
  ;;
 
7766
 
 
7767
kfreebsd*-gnu)
 
7768
  version_type=linux
 
7769
  need_lib_prefix=no
 
7770
  need_version=no
 
7771
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7772
  soname_spec='${libname}${release}${shared_ext}$major'
 
7773
  shlibpath_var=LD_LIBRARY_PATH
 
7774
  shlibpath_overrides_runpath=no
 
7775
  hardcode_into_libs=yes
 
7776
  dynamic_linker='GNU ld.so'
 
7777
  ;;
 
7778
 
 
7779
freebsd*)
 
7780
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7781
  version_type=freebsd-$objformat
 
7782
  case $version_type in
 
7783
    freebsd-elf*)
 
7784
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7785
      need_version=no
 
7786
      need_lib_prefix=no
 
7787
      ;;
 
7788
    freebsd-*)
 
7789
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7790
      need_version=yes
 
7791
      ;;
 
7792
  esac
 
7793
  shlibpath_var=LD_LIBRARY_PATH
 
7794
  case $host_os in
 
7795
  freebsd2*)
 
7796
    shlibpath_overrides_runpath=yes
 
7797
    ;;
 
7798
  freebsd3.01* | freebsdelf3.01*)
 
7799
    shlibpath_overrides_runpath=yes
 
7800
    hardcode_into_libs=yes
 
7801
    ;;
 
7802
  *) # from 3.2 on
 
7803
    shlibpath_overrides_runpath=no
 
7804
    hardcode_into_libs=yes
 
7805
    ;;
 
7806
  esac
 
7807
  ;;
 
7808
 
 
7809
gnu*)
 
7810
  version_type=linux
 
7811
  need_lib_prefix=no
 
7812
  need_version=no
 
7813
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7814
  soname_spec='${libname}${release}${shared_ext}$major'
 
7815
  shlibpath_var=LD_LIBRARY_PATH
 
7816
  hardcode_into_libs=yes
 
7817
  ;;
 
7818
 
 
7819
hpux9* | hpux10* | hpux11*)
 
7820
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7821
  # link against other versions.
 
7822
  version_type=sunos
 
7823
  need_lib_prefix=no
 
7824
  need_version=no
 
7825
  case "$host_cpu" in
 
7826
  ia64*)
 
7827
    shrext_cmds='.so'
 
7828
    hardcode_into_libs=yes
 
7829
    dynamic_linker="$host_os dld.so"
 
7830
    shlibpath_var=LD_LIBRARY_PATH
 
7831
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7832
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7833
    soname_spec='${libname}${release}${shared_ext}$major'
 
7834
    if test "X$HPUX_IA64_MODE" = X32; then
 
7835
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7836
    else
 
7837
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7838
    fi
 
7839
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7840
    ;;
 
7841
   hppa*64*)
 
7842
     shrext_cmds='.sl'
 
7843
     hardcode_into_libs=yes
 
7844
     dynamic_linker="$host_os dld.sl"
 
7845
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7846
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7847
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7848
     soname_spec='${libname}${release}${shared_ext}$major'
 
7849
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7850
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7851
     ;;
 
7852
   *)
 
7853
    shrext_cmds='.sl'
 
7854
    dynamic_linker="$host_os dld.sl"
 
7855
    shlibpath_var=SHLIB_PATH
 
7856
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7857
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7858
    soname_spec='${libname}${release}${shared_ext}$major'
 
7859
    ;;
 
7860
  esac
 
7861
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7862
  postinstall_cmds='chmod 555 $lib'
 
7863
  ;;
 
7864
 
 
7865
irix5* | irix6* | nonstopux*)
 
7866
  case $host_os in
 
7867
    nonstopux*) version_type=nonstopux ;;
 
7868
    *)
 
7869
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7870
                version_type=linux
 
7871
        else
 
7872
                version_type=irix
 
7873
        fi ;;
 
7874
  esac
 
7875
  need_lib_prefix=no
 
7876
  need_version=no
 
7877
  soname_spec='${libname}${release}${shared_ext}$major'
 
7878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7879
  case $host_os in
 
7880
  irix5* | nonstopux*)
 
7881
    libsuff= shlibsuff=
 
7882
    ;;
 
7883
  *)
 
7884
    case $LD in # libtool.m4 will add one of these switches to LD
 
7885
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7886
      libsuff= shlibsuff= libmagic=32-bit;;
 
7887
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7888
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7889
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7890
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7891
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7892
    esac
 
7893
    ;;
 
7894
  esac
 
7895
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7896
  shlibpath_overrides_runpath=no
 
7897
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7898
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7899
  hardcode_into_libs=yes
 
7900
  ;;
 
7901
 
 
7902
# No shared lib support for Linux oldld, aout, or coff.
 
7903
linux*oldld* | linux*aout* | linux*coff*)
 
7904
  dynamic_linker=no
 
7905
  ;;
 
7906
 
 
7907
# This must be Linux ELF.
 
7908
linux*)
 
7909
  version_type=linux
 
7910
  need_lib_prefix=no
 
7911
  need_version=no
 
7912
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7913
  soname_spec='${libname}${release}${shared_ext}$major'
 
7914
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7915
  shlibpath_var=LD_LIBRARY_PATH
 
7916
  shlibpath_overrides_runpath=no
 
7917
  # This implies no fast_install, which is unacceptable.
 
7918
  # Some rework will be needed to allow for fast_install
 
7919
  # before this can be enabled.
 
7920
  hardcode_into_libs=yes
 
7921
 
 
7922
  # Append ld.so.conf contents to the search path
 
7923
  if test -f /etc/ld.so.conf; then
 
7924
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
7925
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7926
  fi
 
7927
 
 
7928
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7929
  # powerpc, because MkLinux only supported shared libraries with the
 
7930
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7931
  # most powerpc-linux boxes support dynamic linking these days and
 
7932
  # people can always --disable-shared, the test was removed, and we
 
7933
  # assume the GNU/Linux dynamic linker is in use.
 
7934
  dynamic_linker='GNU/Linux ld.so'
 
7935
  ;;
 
7936
 
 
7937
netbsdelf*-gnu)
 
7938
  version_type=linux
 
7939
  need_lib_prefix=no
 
7940
  need_version=no
 
7941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7942
  soname_spec='${libname}${release}${shared_ext}$major'
 
7943
  shlibpath_var=LD_LIBRARY_PATH
 
7944
  shlibpath_overrides_runpath=no
 
7945
  hardcode_into_libs=yes
 
7946
  dynamic_linker='NetBSD ld.elf_so'
 
7947
  ;;
 
7948
 
 
7949
knetbsd*-gnu)
 
7950
  version_type=linux
 
7951
  need_lib_prefix=no
 
7952
  need_version=no
 
7953
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7954
  soname_spec='${libname}${release}${shared_ext}$major'
 
7955
  shlibpath_var=LD_LIBRARY_PATH
 
7956
  shlibpath_overrides_runpath=no
 
7957
  hardcode_into_libs=yes
 
7958
  dynamic_linker='GNU ld.so'
 
7959
  ;;
 
7960
 
 
7961
netbsd*)
 
7962
  version_type=sunos
 
7963
  need_lib_prefix=no
 
7964
  need_version=no
 
7965
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7966
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7967
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7968
    dynamic_linker='NetBSD (a.out) ld.so'
 
7969
  else
 
7970
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7971
    soname_spec='${libname}${release}${shared_ext}$major'
 
7972
    dynamic_linker='NetBSD ld.elf_so'
 
7973
  fi
 
7974
  shlibpath_var=LD_LIBRARY_PATH
 
7975
  shlibpath_overrides_runpath=yes
 
7976
  hardcode_into_libs=yes
 
7977
  ;;
 
7978
 
 
7979
newsos6)
 
7980
  version_type=linux
 
7981
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7982
  shlibpath_var=LD_LIBRARY_PATH
 
7983
  shlibpath_overrides_runpath=yes
 
7984
  ;;
 
7985
 
 
7986
nto-qnx*)
 
7987
  version_type=linux
 
7988
  need_lib_prefix=no
 
7989
  need_version=no
 
7990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7991
  soname_spec='${libname}${release}${shared_ext}$major'
 
7992
  shlibpath_var=LD_LIBRARY_PATH
 
7993
  shlibpath_overrides_runpath=yes
 
7994
  ;;
 
7995
 
 
7996
openbsd*)
 
7997
  version_type=sunos
 
7998
  need_lib_prefix=no
 
7999
  need_version=yes
 
8000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8001
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8002
  shlibpath_var=LD_LIBRARY_PATH
 
8003
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8004
    case $host_os in
 
8005
      openbsd2.[89] | openbsd2.[89].*)
 
8006
        shlibpath_overrides_runpath=no
 
8007
        ;;
 
8008
      *)
 
8009
        shlibpath_overrides_runpath=yes
 
8010
        ;;
 
8011
      esac
 
8012
  else
 
8013
    shlibpath_overrides_runpath=yes
 
8014
  fi
 
8015
  ;;
 
8016
 
 
8017
os2*)
 
8018
  libname_spec='$name'
 
8019
  shrext_cmds=".dll"
 
8020
  need_lib_prefix=no
 
8021
  library_names_spec='$libname${shared_ext} $libname.a'
 
8022
  dynamic_linker='OS/2 ld.exe'
 
8023
  shlibpath_var=LIBPATH
 
8024
  ;;
 
8025
 
 
8026
osf3* | osf4* | osf5*)
 
8027
  version_type=osf
 
8028
  need_lib_prefix=no
 
8029
  need_version=no
 
8030
  soname_spec='${libname}${release}${shared_ext}$major'
 
8031
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8032
  shlibpath_var=LD_LIBRARY_PATH
 
8033
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8034
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8035
  ;;
 
8036
 
 
8037
sco3.2v5*)
 
8038
  version_type=osf
 
8039
  soname_spec='${libname}${release}${shared_ext}$major'
 
8040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8041
  shlibpath_var=LD_LIBRARY_PATH
 
8042
  ;;
 
8043
 
 
8044
solaris*)
 
8045
  version_type=linux
 
8046
  need_lib_prefix=no
 
8047
  need_version=no
 
8048
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8049
  soname_spec='${libname}${release}${shared_ext}$major'
 
8050
  shlibpath_var=LD_LIBRARY_PATH
 
8051
  shlibpath_overrides_runpath=yes
 
8052
  hardcode_into_libs=yes
 
8053
  # ldd complains unless libraries are executable
 
8054
  postinstall_cmds='chmod +x $lib'
 
8055
  ;;
 
8056
 
 
8057
sunos4*)
 
8058
  version_type=sunos
 
8059
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8060
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8061
  shlibpath_var=LD_LIBRARY_PATH
 
8062
  shlibpath_overrides_runpath=yes
 
8063
  if test "$with_gnu_ld" = yes; then
 
8064
    need_lib_prefix=no
 
8065
  fi
 
8066
  need_version=yes
 
8067
  ;;
 
8068
 
 
8069
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8070
  version_type=linux
 
8071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8072
  soname_spec='${libname}${release}${shared_ext}$major'
 
8073
  shlibpath_var=LD_LIBRARY_PATH
 
8074
  case $host_vendor in
 
8075
    sni)
 
8076
      shlibpath_overrides_runpath=no
 
8077
      need_lib_prefix=no
 
8078
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8079
      runpath_var=LD_RUN_PATH
 
8080
      ;;
 
8081
    siemens)
 
8082
      need_lib_prefix=no
 
8083
      ;;
 
8084
    motorola)
 
8085
      need_lib_prefix=no
 
8086
      need_version=no
 
8087
      shlibpath_overrides_runpath=no
 
8088
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8089
      ;;
 
8090
  esac
 
8091
  ;;
 
8092
 
 
8093
sysv4*MP*)
 
8094
  if test -d /usr/nec ;then
 
8095
    version_type=linux
 
8096
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8097
    soname_spec='$libname${shared_ext}.$major'
 
8098
    shlibpath_var=LD_LIBRARY_PATH
 
8099
  fi
 
8100
  ;;
 
8101
 
 
8102
uts4*)
 
8103
  version_type=linux
 
8104
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8105
  soname_spec='${libname}${release}${shared_ext}$major'
 
8106
  shlibpath_var=LD_LIBRARY_PATH
 
8107
  ;;
 
8108
 
 
8109
*)
 
8110
  dynamic_linker=no
 
8111
  ;;
 
8112
esac
 
8113
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8114
echo "${ECHO_T}$dynamic_linker" >&6
 
8115
test "$dynamic_linker" = no && can_build_shared=no
 
8116
 
 
8117
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8118
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8119
hardcode_action=
 
8120
if test -n "$hardcode_libdir_flag_spec" || \
 
8121
   test -n "$runpath_var " || \
 
8122
   test "X$hardcode_automatic"="Xyes" ; then
 
8123
 
 
8124
  # We can hardcode non-existant directories.
 
8125
  if test "$hardcode_direct" != no &&
 
8126
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8127
     # have to relink, otherwise we might link with an installed library
 
8128
     # when we should be linking with a yet-to-be-installed one
 
8129
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8130
     test "$hardcode_minus_L" != no; then
 
8131
    # Linking always hardcodes the temporary library directory.
 
8132
    hardcode_action=relink
 
8133
  else
 
8134
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8135
    hardcode_action=immediate
 
8136
  fi
 
8137
else
 
8138
  # We cannot hardcode anything, or else we can only hardcode existing
 
8139
  # directories.
 
8140
  hardcode_action=unsupported
 
8141
fi
 
8142
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8143
echo "${ECHO_T}$hardcode_action" >&6
 
8144
 
 
8145
if test "$hardcode_action" = relink; then
 
8146
  # Fast installation is not supported
 
8147
  enable_fast_install=no
 
8148
elif test "$shlibpath_overrides_runpath" = yes ||
 
8149
     test "$enable_shared" = no; then
 
8150
  # Fast installation is not necessary
 
8151
  enable_fast_install=needless
 
8152
fi
 
8153
 
 
8154
striplib=
 
8155
old_striplib=
 
8156
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8157
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8158
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8159
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8160
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8161
  echo "$as_me:$LINENO: result: yes" >&5
 
8162
echo "${ECHO_T}yes" >&6
 
8163
else
 
8164
# FIXME - insert some real tests, host_os isn't really good enough
 
8165
  case $host_os in
 
8166
   darwin*)
 
8167
       if test -n "$STRIP" ; then
 
8168
         striplib="$STRIP -x"
 
8169
         echo "$as_me:$LINENO: result: yes" >&5
 
8170
echo "${ECHO_T}yes" >&6
 
8171
       else
 
8172
  echo "$as_me:$LINENO: result: no" >&5
 
8173
echo "${ECHO_T}no" >&6
 
8174
fi
 
8175
       ;;
 
8176
   *)
 
8177
  echo "$as_me:$LINENO: result: no" >&5
 
8178
echo "${ECHO_T}no" >&6
 
8179
    ;;
 
8180
  esac
 
8181
fi
 
8182
 
 
8183
if test "x$enable_dlopen" != xyes; then
 
8184
  enable_dlopen=unknown
 
8185
  enable_dlopen_self=unknown
 
8186
  enable_dlopen_self_static=unknown
 
8187
else
 
8188
  lt_cv_dlopen=no
 
8189
  lt_cv_dlopen_libs=
 
8190
 
 
8191
  case $host_os in
 
8192
  beos*)
 
8193
    lt_cv_dlopen="load_add_on"
 
8194
    lt_cv_dlopen_libs=
 
8195
    lt_cv_dlopen_self=yes
 
8196
    ;;
 
8197
 
 
8198
  mingw* | pw32*)
 
8199
    lt_cv_dlopen="LoadLibrary"
 
8200
    lt_cv_dlopen_libs=
 
8201
   ;;
 
8202
 
 
8203
  cygwin*)
 
8204
    lt_cv_dlopen="dlopen"
 
8205
    lt_cv_dlopen_libs=
 
8206
   ;;
 
8207
 
 
8208
  darwin*)
 
8209
  # if libdl is installed we need to link against it
 
8210
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8211
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8212
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8214
else
 
8215
  ac_check_lib_save_LIBS=$LIBS
 
8216
LIBS="-ldl  $LIBS"
 
8217
cat >conftest.$ac_ext <<_ACEOF
 
8218
/* confdefs.h.  */
 
8219
_ACEOF
 
8220
cat confdefs.h >>conftest.$ac_ext
 
8221
cat >>conftest.$ac_ext <<_ACEOF
 
8222
/* end confdefs.h.  */
 
8223
 
 
8224
/* Override any gcc2 internal prototype to avoid an error.  */
 
8225
#ifdef __cplusplus
 
8226
extern "C"
 
8227
#endif
 
8228
/* We use char because int might match the return type of a gcc2
 
8229
   builtin and then its argument prototype would still apply.  */
 
8230
char dlopen ();
 
8231
int
 
8232
main ()
 
8233
{
 
8234
dlopen ();
 
8235
  ;
 
8236
  return 0;
 
8237
}
 
8238
_ACEOF
 
8239
rm -f conftest.$ac_objext conftest$ac_exeext
 
8240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8241
  (eval $ac_link) 2>conftest.er1
 
8242
  ac_status=$?
 
8243
  grep -v '^ *+' conftest.er1 >conftest.err
 
8244
  rm -f conftest.er1
 
8245
  cat conftest.err >&5
 
8246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8247
  (exit $ac_status); } &&
 
8248
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8250
  (eval $ac_try) 2>&5
 
8251
  ac_status=$?
 
8252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8253
  (exit $ac_status); }; } &&
 
8254
         { ac_try='test -s conftest$ac_exeext'
 
8255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8256
  (eval $ac_try) 2>&5
 
8257
  ac_status=$?
 
8258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8259
  (exit $ac_status); }; }; then
 
8260
  ac_cv_lib_dl_dlopen=yes
 
8261
else
 
8262
  echo "$as_me: failed program was:" >&5
 
8263
sed 's/^/| /' conftest.$ac_ext >&5
 
8264
 
 
8265
ac_cv_lib_dl_dlopen=no
 
8266
fi
 
8267
rm -f conftest.err conftest.$ac_objext \
 
8268
      conftest$ac_exeext conftest.$ac_ext
 
8269
LIBS=$ac_check_lib_save_LIBS
 
8270
fi
 
8271
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8272
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8273
if test $ac_cv_lib_dl_dlopen = yes; then
 
8274
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8275
else
 
8276
 
 
8277
    lt_cv_dlopen="dyld"
 
8278
    lt_cv_dlopen_libs=
 
8279
    lt_cv_dlopen_self=yes
 
8280
 
 
8281
fi
 
8282
 
 
8283
   ;;
 
8284
 
 
8285
  *)
 
8286
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8287
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8288
if test "${ac_cv_func_shl_load+set}" = set; then
 
8289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8290
else
 
8291
  cat >conftest.$ac_ext <<_ACEOF
 
8292
/* confdefs.h.  */
 
8293
_ACEOF
 
8294
cat confdefs.h >>conftest.$ac_ext
 
8295
cat >>conftest.$ac_ext <<_ACEOF
 
8296
/* end confdefs.h.  */
 
8297
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8298
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8299
#define shl_load innocuous_shl_load
 
8300
 
 
8301
/* System header to define __stub macros and hopefully few prototypes,
 
8302
    which can conflict with char shl_load (); below.
 
8303
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8304
    <limits.h> exists even on freestanding compilers.  */
 
8305
 
 
8306
#ifdef __STDC__
 
8307
# include <limits.h>
 
8308
#else
 
8309
# include <assert.h>
 
8310
#endif
 
8311
 
 
8312
#undef shl_load
 
8313
 
 
8314
/* Override any gcc2 internal prototype to avoid an error.  */
 
8315
#ifdef __cplusplus
 
8316
extern "C"
 
8317
{
 
8318
#endif
 
8319
/* We use char because int might match the return type of a gcc2
 
8320
   builtin and then its argument prototype would still apply.  */
 
8321
char shl_load ();
 
8322
/* The GNU C library defines this for functions which it implements
 
8323
    to always fail with ENOSYS.  Some functions are actually named
 
8324
    something starting with __ and the normal name is an alias.  */
 
8325
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8326
choke me
 
8327
#else
 
8328
char (*f) () = shl_load;
 
8329
#endif
 
8330
#ifdef __cplusplus
 
8331
}
 
8332
#endif
 
8333
 
 
8334
int
 
8335
main ()
 
8336
{
 
8337
return f != shl_load;
 
8338
  ;
 
8339
  return 0;
 
8340
}
 
8341
_ACEOF
 
8342
rm -f conftest.$ac_objext conftest$ac_exeext
 
8343
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8344
  (eval $ac_link) 2>conftest.er1
 
8345
  ac_status=$?
 
8346
  grep -v '^ *+' conftest.er1 >conftest.err
 
8347
  rm -f conftest.er1
 
8348
  cat conftest.err >&5
 
8349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8350
  (exit $ac_status); } &&
 
8351
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8353
  (eval $ac_try) 2>&5
 
8354
  ac_status=$?
 
8355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8356
  (exit $ac_status); }; } &&
 
8357
         { ac_try='test -s conftest$ac_exeext'
 
8358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8359
  (eval $ac_try) 2>&5
 
8360
  ac_status=$?
 
8361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8362
  (exit $ac_status); }; }; then
 
8363
  ac_cv_func_shl_load=yes
 
8364
else
 
8365
  echo "$as_me: failed program was:" >&5
 
8366
sed 's/^/| /' conftest.$ac_ext >&5
 
8367
 
 
8368
ac_cv_func_shl_load=no
 
8369
fi
 
8370
rm -f conftest.err conftest.$ac_objext \
 
8371
      conftest$ac_exeext conftest.$ac_ext
 
8372
fi
 
8373
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8374
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8375
if test $ac_cv_func_shl_load = yes; then
 
8376
  lt_cv_dlopen="shl_load"
 
8377
else
 
8378
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8379
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8380
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8382
else
 
8383
  ac_check_lib_save_LIBS=$LIBS
 
8384
LIBS="-ldld  $LIBS"
 
8385
cat >conftest.$ac_ext <<_ACEOF
 
8386
/* confdefs.h.  */
 
8387
_ACEOF
 
8388
cat confdefs.h >>conftest.$ac_ext
 
8389
cat >>conftest.$ac_ext <<_ACEOF
 
8390
/* end confdefs.h.  */
 
8391
 
 
8392
/* Override any gcc2 internal prototype to avoid an error.  */
 
8393
#ifdef __cplusplus
 
8394
extern "C"
 
8395
#endif
 
8396
/* We use char because int might match the return type of a gcc2
 
8397
   builtin and then its argument prototype would still apply.  */
 
8398
char shl_load ();
 
8399
int
 
8400
main ()
 
8401
{
 
8402
shl_load ();
 
8403
  ;
 
8404
  return 0;
 
8405
}
 
8406
_ACEOF
 
8407
rm -f conftest.$ac_objext conftest$ac_exeext
 
8408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8409
  (eval $ac_link) 2>conftest.er1
 
8410
  ac_status=$?
 
8411
  grep -v '^ *+' conftest.er1 >conftest.err
 
8412
  rm -f conftest.er1
 
8413
  cat conftest.err >&5
 
8414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8415
  (exit $ac_status); } &&
 
8416
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8418
  (eval $ac_try) 2>&5
 
8419
  ac_status=$?
 
8420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8421
  (exit $ac_status); }; } &&
 
8422
         { ac_try='test -s conftest$ac_exeext'
 
8423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8424
  (eval $ac_try) 2>&5
 
8425
  ac_status=$?
 
8426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8427
  (exit $ac_status); }; }; then
 
8428
  ac_cv_lib_dld_shl_load=yes
 
8429
else
 
8430
  echo "$as_me: failed program was:" >&5
 
8431
sed 's/^/| /' conftest.$ac_ext >&5
 
8432
 
 
8433
ac_cv_lib_dld_shl_load=no
 
8434
fi
 
8435
rm -f conftest.err conftest.$ac_objext \
 
8436
      conftest$ac_exeext conftest.$ac_ext
 
8437
LIBS=$ac_check_lib_save_LIBS
 
8438
fi
 
8439
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8440
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8441
if test $ac_cv_lib_dld_shl_load = yes; then
 
8442
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8443
else
 
8444
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8445
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8446
if test "${ac_cv_func_dlopen+set}" = set; then
 
8447
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8448
else
 
8449
  cat >conftest.$ac_ext <<_ACEOF
 
8450
/* confdefs.h.  */
 
8451
_ACEOF
 
8452
cat confdefs.h >>conftest.$ac_ext
 
8453
cat >>conftest.$ac_ext <<_ACEOF
 
8454
/* end confdefs.h.  */
 
8455
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8456
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8457
#define dlopen innocuous_dlopen
 
8458
 
 
8459
/* System header to define __stub macros and hopefully few prototypes,
 
8460
    which can conflict with char dlopen (); below.
 
8461
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8462
    <limits.h> exists even on freestanding compilers.  */
 
8463
 
 
8464
#ifdef __STDC__
 
8465
# include <limits.h>
 
8466
#else
 
8467
# include <assert.h>
 
8468
#endif
 
8469
 
 
8470
#undef dlopen
 
8471
 
 
8472
/* Override any gcc2 internal prototype to avoid an error.  */
 
8473
#ifdef __cplusplus
 
8474
extern "C"
 
8475
{
 
8476
#endif
 
8477
/* We use char because int might match the return type of a gcc2
 
8478
   builtin and then its argument prototype would still apply.  */
 
8479
char dlopen ();
 
8480
/* The GNU C library defines this for functions which it implements
 
8481
    to always fail with ENOSYS.  Some functions are actually named
 
8482
    something starting with __ and the normal name is an alias.  */
 
8483
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8484
choke me
 
8485
#else
 
8486
char (*f) () = dlopen;
 
8487
#endif
 
8488
#ifdef __cplusplus
 
8489
}
 
8490
#endif
 
8491
 
 
8492
int
 
8493
main ()
 
8494
{
 
8495
return f != dlopen;
 
8496
  ;
 
8497
  return 0;
 
8498
}
 
8499
_ACEOF
 
8500
rm -f conftest.$ac_objext conftest$ac_exeext
 
8501
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8502
  (eval $ac_link) 2>conftest.er1
 
8503
  ac_status=$?
 
8504
  grep -v '^ *+' conftest.er1 >conftest.err
 
8505
  rm -f conftest.er1
 
8506
  cat conftest.err >&5
 
8507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8508
  (exit $ac_status); } &&
 
8509
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8511
  (eval $ac_try) 2>&5
 
8512
  ac_status=$?
 
8513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8514
  (exit $ac_status); }; } &&
 
8515
         { ac_try='test -s conftest$ac_exeext'
 
8516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8517
  (eval $ac_try) 2>&5
 
8518
  ac_status=$?
 
8519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8520
  (exit $ac_status); }; }; then
 
8521
  ac_cv_func_dlopen=yes
 
8522
else
 
8523
  echo "$as_me: failed program was:" >&5
 
8524
sed 's/^/| /' conftest.$ac_ext >&5
 
8525
 
 
8526
ac_cv_func_dlopen=no
 
8527
fi
 
8528
rm -f conftest.err conftest.$ac_objext \
 
8529
      conftest$ac_exeext conftest.$ac_ext
 
8530
fi
 
8531
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8532
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8533
if test $ac_cv_func_dlopen = yes; then
 
8534
  lt_cv_dlopen="dlopen"
 
8535
else
 
8536
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8537
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8538
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8540
else
 
8541
  ac_check_lib_save_LIBS=$LIBS
 
8542
LIBS="-ldl  $LIBS"
 
8543
cat >conftest.$ac_ext <<_ACEOF
 
8544
/* confdefs.h.  */
 
8545
_ACEOF
 
8546
cat confdefs.h >>conftest.$ac_ext
 
8547
cat >>conftest.$ac_ext <<_ACEOF
 
8548
/* end confdefs.h.  */
 
8549
 
 
8550
/* Override any gcc2 internal prototype to avoid an error.  */
 
8551
#ifdef __cplusplus
 
8552
extern "C"
 
8553
#endif
 
8554
/* We use char because int might match the return type of a gcc2
 
8555
   builtin and then its argument prototype would still apply.  */
 
8556
char dlopen ();
 
8557
int
 
8558
main ()
 
8559
{
 
8560
dlopen ();
 
8561
  ;
 
8562
  return 0;
 
8563
}
 
8564
_ACEOF
 
8565
rm -f conftest.$ac_objext conftest$ac_exeext
 
8566
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8567
  (eval $ac_link) 2>conftest.er1
 
8568
  ac_status=$?
 
8569
  grep -v '^ *+' conftest.er1 >conftest.err
 
8570
  rm -f conftest.er1
 
8571
  cat conftest.err >&5
 
8572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8573
  (exit $ac_status); } &&
 
8574
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8576
  (eval $ac_try) 2>&5
 
8577
  ac_status=$?
 
8578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8579
  (exit $ac_status); }; } &&
 
8580
         { ac_try='test -s conftest$ac_exeext'
 
8581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8582
  (eval $ac_try) 2>&5
 
8583
  ac_status=$?
 
8584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8585
  (exit $ac_status); }; }; then
 
8586
  ac_cv_lib_dl_dlopen=yes
 
8587
else
 
8588
  echo "$as_me: failed program was:" >&5
 
8589
sed 's/^/| /' conftest.$ac_ext >&5
 
8590
 
 
8591
ac_cv_lib_dl_dlopen=no
 
8592
fi
 
8593
rm -f conftest.err conftest.$ac_objext \
 
8594
      conftest$ac_exeext conftest.$ac_ext
 
8595
LIBS=$ac_check_lib_save_LIBS
 
8596
fi
 
8597
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8598
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8599
if test $ac_cv_lib_dl_dlopen = yes; then
 
8600
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8601
else
 
8602
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8603
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8604
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8606
else
 
8607
  ac_check_lib_save_LIBS=$LIBS
 
8608
LIBS="-lsvld  $LIBS"
 
8609
cat >conftest.$ac_ext <<_ACEOF
 
8610
/* confdefs.h.  */
 
8611
_ACEOF
 
8612
cat confdefs.h >>conftest.$ac_ext
 
8613
cat >>conftest.$ac_ext <<_ACEOF
 
8614
/* end confdefs.h.  */
 
8615
 
 
8616
/* Override any gcc2 internal prototype to avoid an error.  */
 
8617
#ifdef __cplusplus
 
8618
extern "C"
 
8619
#endif
 
8620
/* We use char because int might match the return type of a gcc2
 
8621
   builtin and then its argument prototype would still apply.  */
 
8622
char dlopen ();
 
8623
int
 
8624
main ()
 
8625
{
 
8626
dlopen ();
 
8627
  ;
 
8628
  return 0;
 
8629
}
 
8630
_ACEOF
 
8631
rm -f conftest.$ac_objext conftest$ac_exeext
 
8632
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8633
  (eval $ac_link) 2>conftest.er1
 
8634
  ac_status=$?
 
8635
  grep -v '^ *+' conftest.er1 >conftest.err
 
8636
  rm -f conftest.er1
 
8637
  cat conftest.err >&5
 
8638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8639
  (exit $ac_status); } &&
 
8640
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8642
  (eval $ac_try) 2>&5
 
8643
  ac_status=$?
 
8644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8645
  (exit $ac_status); }; } &&
 
8646
         { ac_try='test -s conftest$ac_exeext'
 
8647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8648
  (eval $ac_try) 2>&5
 
8649
  ac_status=$?
 
8650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8651
  (exit $ac_status); }; }; then
 
8652
  ac_cv_lib_svld_dlopen=yes
 
8653
else
 
8654
  echo "$as_me: failed program was:" >&5
 
8655
sed 's/^/| /' conftest.$ac_ext >&5
 
8656
 
 
8657
ac_cv_lib_svld_dlopen=no
 
8658
fi
 
8659
rm -f conftest.err conftest.$ac_objext \
 
8660
      conftest$ac_exeext conftest.$ac_ext
 
8661
LIBS=$ac_check_lib_save_LIBS
 
8662
fi
 
8663
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8664
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8665
if test $ac_cv_lib_svld_dlopen = yes; then
 
8666
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8667
else
 
8668
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8669
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8670
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8672
else
 
8673
  ac_check_lib_save_LIBS=$LIBS
 
8674
LIBS="-ldld  $LIBS"
 
8675
cat >conftest.$ac_ext <<_ACEOF
 
8676
/* confdefs.h.  */
 
8677
_ACEOF
 
8678
cat confdefs.h >>conftest.$ac_ext
 
8679
cat >>conftest.$ac_ext <<_ACEOF
 
8680
/* end confdefs.h.  */
 
8681
 
 
8682
/* Override any gcc2 internal prototype to avoid an error.  */
 
8683
#ifdef __cplusplus
 
8684
extern "C"
 
8685
#endif
 
8686
/* We use char because int might match the return type of a gcc2
 
8687
   builtin and then its argument prototype would still apply.  */
 
8688
char dld_link ();
 
8689
int
 
8690
main ()
 
8691
{
 
8692
dld_link ();
 
8693
  ;
 
8694
  return 0;
 
8695
}
 
8696
_ACEOF
 
8697
rm -f conftest.$ac_objext conftest$ac_exeext
 
8698
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8699
  (eval $ac_link) 2>conftest.er1
 
8700
  ac_status=$?
 
8701
  grep -v '^ *+' conftest.er1 >conftest.err
 
8702
  rm -f conftest.er1
 
8703
  cat conftest.err >&5
 
8704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8705
  (exit $ac_status); } &&
 
8706
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8708
  (eval $ac_try) 2>&5
 
8709
  ac_status=$?
 
8710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8711
  (exit $ac_status); }; } &&
 
8712
         { ac_try='test -s conftest$ac_exeext'
 
8713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8714
  (eval $ac_try) 2>&5
 
8715
  ac_status=$?
 
8716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8717
  (exit $ac_status); }; }; then
 
8718
  ac_cv_lib_dld_dld_link=yes
 
8719
else
 
8720
  echo "$as_me: failed program was:" >&5
 
8721
sed 's/^/| /' conftest.$ac_ext >&5
 
8722
 
 
8723
ac_cv_lib_dld_dld_link=no
 
8724
fi
 
8725
rm -f conftest.err conftest.$ac_objext \
 
8726
      conftest$ac_exeext conftest.$ac_ext
 
8727
LIBS=$ac_check_lib_save_LIBS
 
8728
fi
 
8729
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8730
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8731
if test $ac_cv_lib_dld_dld_link = yes; then
 
8732
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8733
fi
 
8734
 
 
8735
 
 
8736
fi
 
8737
 
 
8738
 
 
8739
fi
 
8740
 
 
8741
 
 
8742
fi
 
8743
 
 
8744
 
 
8745
fi
 
8746
 
 
8747
 
 
8748
fi
 
8749
 
 
8750
    ;;
 
8751
  esac
 
8752
 
 
8753
  if test "x$lt_cv_dlopen" != xno; then
 
8754
    enable_dlopen=yes
 
8755
  else
 
8756
    enable_dlopen=no
 
8757
  fi
 
8758
 
 
8759
  case $lt_cv_dlopen in
 
8760
  dlopen)
 
8761
    save_CPPFLAGS="$CPPFLAGS"
 
8762
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8763
 
 
8764
    save_LDFLAGS="$LDFLAGS"
 
8765
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8766
 
 
8767
    save_LIBS="$LIBS"
 
8768
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8769
 
 
8770
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8771
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8772
if test "${lt_cv_dlopen_self+set}" = set; then
 
8773
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8774
else
 
8775
          if test "$cross_compiling" = yes; then :
 
8776
  lt_cv_dlopen_self=cross
 
8777
else
 
8778
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8779
  lt_status=$lt_dlunknown
 
8780
  cat > conftest.$ac_ext <<EOF
 
8781
#line 8781 "configure"
 
8782
#include "confdefs.h"
 
8783
 
 
8784
#if HAVE_DLFCN_H
 
8785
#include <dlfcn.h>
 
8786
#endif
 
8787
 
 
8788
#include <stdio.h>
 
8789
 
 
8790
#ifdef RTLD_GLOBAL
 
8791
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8792
#else
 
8793
#  ifdef DL_GLOBAL
 
8794
#    define LT_DLGLOBAL         DL_GLOBAL
 
8795
#  else
 
8796
#    define LT_DLGLOBAL         0
 
8797
#  endif
 
8798
#endif
 
8799
 
 
8800
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8801
   find out it does not work in some platform. */
 
8802
#ifndef LT_DLLAZY_OR_NOW
 
8803
#  ifdef RTLD_LAZY
 
8804
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8805
#  else
 
8806
#    ifdef DL_LAZY
 
8807
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8808
#    else
 
8809
#      ifdef RTLD_NOW
 
8810
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8811
#      else
 
8812
#        ifdef DL_NOW
 
8813
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8814
#        else
 
8815
#          define LT_DLLAZY_OR_NOW      0
 
8816
#        endif
 
8817
#      endif
 
8818
#    endif
 
8819
#  endif
 
8820
#endif
 
8821
 
 
8822
#ifdef __cplusplus
 
8823
extern "C" void exit (int);
 
8824
#endif
 
8825
 
 
8826
void fnord() { int i=42;}
 
8827
int main ()
 
8828
{
 
8829
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8830
  int status = $lt_dlunknown;
 
8831
 
 
8832
  if (self)
 
8833
    {
 
8834
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8835
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8836
      /* dlclose (self); */
 
8837
    }
 
8838
 
 
8839
    exit (status);
 
8840
}
 
8841
EOF
 
8842
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8843
  (eval $ac_link) 2>&5
 
8844
  ac_status=$?
 
8845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8846
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8847
    (./conftest; exit; ) 2>/dev/null
 
8848
    lt_status=$?
 
8849
    case x$lt_status in
 
8850
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8851
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8852
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8853
    esac
 
8854
  else :
 
8855
    # compilation failed
 
8856
    lt_cv_dlopen_self=no
 
8857
  fi
 
8858
fi
 
8859
rm -fr conftest*
 
8860
 
 
8861
 
 
8862
fi
 
8863
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8864
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8865
 
 
8866
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8867
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8868
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8869
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8870
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8871
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8872
else
 
8873
          if test "$cross_compiling" = yes; then :
 
8874
  lt_cv_dlopen_self_static=cross
 
8875
else
 
8876
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8877
  lt_status=$lt_dlunknown
 
8878
  cat > conftest.$ac_ext <<EOF
 
8879
#line 8879 "configure"
 
8880
#include "confdefs.h"
 
8881
 
 
8882
#if HAVE_DLFCN_H
 
8883
#include <dlfcn.h>
 
8884
#endif
 
8885
 
 
8886
#include <stdio.h>
 
8887
 
 
8888
#ifdef RTLD_GLOBAL
 
8889
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8890
#else
 
8891
#  ifdef DL_GLOBAL
 
8892
#    define LT_DLGLOBAL         DL_GLOBAL
 
8893
#  else
 
8894
#    define LT_DLGLOBAL         0
 
8895
#  endif
 
8896
#endif
 
8897
 
 
8898
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8899
   find out it does not work in some platform. */
 
8900
#ifndef LT_DLLAZY_OR_NOW
 
8901
#  ifdef RTLD_LAZY
 
8902
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8903
#  else
 
8904
#    ifdef DL_LAZY
 
8905
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8906
#    else
 
8907
#      ifdef RTLD_NOW
 
8908
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8909
#      else
 
8910
#        ifdef DL_NOW
 
8911
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8912
#        else
 
8913
#          define LT_DLLAZY_OR_NOW      0
 
8914
#        endif
 
8915
#      endif
 
8916
#    endif
 
8917
#  endif
 
8918
#endif
 
8919
 
 
8920
#ifdef __cplusplus
 
8921
extern "C" void exit (int);
 
8922
#endif
 
8923
 
 
8924
void fnord() { int i=42;}
 
8925
int main ()
 
8926
{
 
8927
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8928
  int status = $lt_dlunknown;
 
8929
 
 
8930
  if (self)
 
8931
    {
 
8932
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8933
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8934
      /* dlclose (self); */
 
8935
    }
 
8936
 
 
8937
    exit (status);
 
8938
}
 
8939
EOF
 
8940
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8941
  (eval $ac_link) 2>&5
 
8942
  ac_status=$?
 
8943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8944
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8945
    (./conftest; exit; ) 2>/dev/null
 
8946
    lt_status=$?
 
8947
    case x$lt_status in
 
8948
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8949
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8950
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8951
    esac
 
8952
  else :
 
8953
    # compilation failed
 
8954
    lt_cv_dlopen_self_static=no
 
8955
  fi
 
8956
fi
 
8957
rm -fr conftest*
 
8958
 
 
8959
 
 
8960
fi
 
8961
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8962
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8963
    fi
 
8964
 
 
8965
    CPPFLAGS="$save_CPPFLAGS"
 
8966
    LDFLAGS="$save_LDFLAGS"
 
8967
    LIBS="$save_LIBS"
 
8968
    ;;
 
8969
  esac
 
8970
 
 
8971
  case $lt_cv_dlopen_self in
 
8972
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8973
  *) enable_dlopen_self=unknown ;;
 
8974
  esac
 
8975
 
 
8976
  case $lt_cv_dlopen_self_static in
 
8977
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8978
  *) enable_dlopen_self_static=unknown ;;
 
8979
  esac
 
8980
fi
 
8981
 
 
8982
 
 
8983
# Report which librarie types wil actually be built
 
8984
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8985
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8986
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8987
echo "${ECHO_T}$can_build_shared" >&6
 
8988
 
 
8989
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8990
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
8991
test "$can_build_shared" = "no" && enable_shared=no
 
8992
 
 
8993
# On AIX, shared libraries and static libraries use the same namespace, and
 
8994
# are all built from PIC.
 
8995
case "$host_os" in
 
8996
aix3*)
 
8997
  test "$enable_shared" = yes && enable_static=no
 
8998
  if test -n "$RANLIB"; then
 
8999
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9000
    postinstall_cmds='$RANLIB $lib'
 
9001
  fi
 
9002
  ;;
 
9003
 
 
9004
aix4* | aix5*)
 
9005
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9006
    test "$enable_shared" = yes && enable_static=no
 
9007
  fi
 
9008
  ;;
 
9009
  darwin* | rhapsody*)
 
9010
  if test "$GCC" = yes; then
 
9011
    archive_cmds_need_lc=no
 
9012
    case "$host_os" in
 
9013
    rhapsody* | darwin1.[012])
 
9014
      allow_undefined_flag='-undefined suppress'
 
9015
      ;;
 
9016
    *) # Darwin 1.3 on
 
9017
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9018
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9019
      else
 
9020
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9021
          10.[012])
 
9022
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9023
            ;;
 
9024
          10.*)
 
9025
            allow_undefined_flag='-undefined dynamic_lookup'
 
9026
            ;;
 
9027
        esac
 
9028
      fi
 
9029
      ;;
 
9030
    esac
 
9031
    output_verbose_link_cmd='echo'
 
9032
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
9033
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9034
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9035
    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}'
 
9036
    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}'
 
9037
    hardcode_direct=no
 
9038
    hardcode_automatic=yes
 
9039
    hardcode_shlibpath_var=unsupported
 
9040
    whole_archive_flag_spec='-all_load $convenience'
 
9041
    link_all_deplibs=yes
 
9042
  else
 
9043
    ld_shlibs=no
 
9044
  fi
 
9045
    ;;
 
9046
esac
 
9047
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9048
echo "${ECHO_T}$enable_shared" >&6
 
9049
 
 
9050
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9051
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9052
# Make sure either enable_shared or enable_static is yes.
 
9053
test "$enable_shared" = yes || enable_static=yes
 
9054
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9055
echo "${ECHO_T}$enable_static" >&6
 
9056
 
 
9057
# The else clause should only fire when bootstrapping the
 
9058
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9059
# with your package, and you will get complaints that there are
 
9060
# no rules to generate ltmain.sh.
 
9061
if test -f "$ltmain"; then
 
9062
  # See if we are running on zsh, and set the options which allow our commands through
 
9063
  # without removal of \ escapes.
 
9064
  if test -n "${ZSH_VERSION+set}" ; then
 
9065
    setopt NO_GLOB_SUBST
 
9066
  fi
 
9067
  # Now quote all the things that may contain metacharacters while being
 
9068
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9069
  # variables and quote the copies for generation of the libtool script.
 
9070
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9071
    SED SHELL STRIP \
 
9072
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9073
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9074
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9075
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9076
    lt_cv_sys_global_symbol_to_c_name_address \
 
9077
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9078
    old_postinstall_cmds old_postuninstall_cmds \
 
9079
    compiler \
 
9080
    CC \
 
9081
    LD \
 
9082
    lt_prog_compiler_wl \
 
9083
    lt_prog_compiler_pic \
 
9084
    lt_prog_compiler_static \
 
9085
    lt_prog_compiler_no_builtin_flag \
 
9086
    export_dynamic_flag_spec \
 
9087
    thread_safe_flag_spec \
 
9088
    whole_archive_flag_spec \
 
9089
    enable_shared_with_static_runtimes \
 
9090
    old_archive_cmds \
 
9091
    old_archive_from_new_cmds \
 
9092
    predep_objects \
 
9093
    postdep_objects \
 
9094
    predeps \
 
9095
    postdeps \
 
9096
    compiler_lib_search_path \
 
9097
    archive_cmds \
 
9098
    archive_expsym_cmds \
 
9099
    postinstall_cmds \
 
9100
    postuninstall_cmds \
 
9101
    old_archive_from_expsyms_cmds \
 
9102
    allow_undefined_flag \
 
9103
    no_undefined_flag \
 
9104
    export_symbols_cmds \
 
9105
    hardcode_libdir_flag_spec \
 
9106
    hardcode_libdir_flag_spec_ld \
 
9107
    hardcode_libdir_separator \
 
9108
    hardcode_automatic \
 
9109
    module_cmds \
 
9110
    module_expsym_cmds \
 
9111
    lt_cv_prog_compiler_c_o \
 
9112
    exclude_expsyms \
 
9113
    include_expsyms; do
 
9114
 
 
9115
    case $var in
 
9116
    old_archive_cmds | \
 
9117
    old_archive_from_new_cmds | \
 
9118
    archive_cmds | \
 
9119
    archive_expsym_cmds | \
 
9120
    module_cmds | \
 
9121
    module_expsym_cmds | \
 
9122
    old_archive_from_expsyms_cmds | \
 
9123
    export_symbols_cmds | \
 
9124
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9125
    postinstall_cmds | postuninstall_cmds | \
 
9126
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9127
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9128
      # Double-quote double-evaled strings.
 
9129
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9130
      ;;
 
9131
    *)
 
9132
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9133
      ;;
 
9134
    esac
 
9135
  done
 
9136
 
 
9137
  case $lt_echo in
 
9138
  *'\$0 --fallback-echo"')
 
9139
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9140
    ;;
 
9141
  esac
 
9142
 
 
9143
cfgfile="${ofile}T"
 
9144
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9145
  $rm -f "$cfgfile"
 
9146
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9147
echo "$as_me: creating $ofile" >&6;}
 
9148
 
 
9149
  cat <<__EOF__ >> "$cfgfile"
 
9150
#! $SHELL
 
9151
 
 
9152
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9153
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9154
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9155
#
 
9156
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9157
# Free Software Foundation, Inc.
 
9158
#
 
9159
# This file is part of GNU Libtool:
 
9160
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9161
#
 
9162
# This program is free software; you can redistribute it and/or modify
 
9163
# it under the terms of the GNU General Public License as published by
 
9164
# the Free Software Foundation; either version 2 of the License, or
 
9165
# (at your option) any later version.
 
9166
#
 
9167
# This program is distributed in the hope that it will be useful, but
 
9168
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9169
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9170
# General Public License for more details.
 
9171
#
 
9172
# You should have received a copy of the GNU General Public License
 
9173
# along with this program; if not, write to the Free Software
 
9174
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9175
#
 
9176
# As a special exception to the GNU General Public License, if you
 
9177
# distribute this file as part of a program that contains a
 
9178
# configuration script generated by Autoconf, you may include it under
 
9179
# the same distribution terms that you use for the rest of that program.
 
9180
 
 
9181
# A sed program that does not truncate output.
 
9182
SED=$lt_SED
 
9183
 
 
9184
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9185
Xsed="$SED -e s/^X//"
 
9186
 
 
9187
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9188
# if CDPATH is set.
 
9189
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9190
 
 
9191
# The names of the tagged configurations supported by this script.
 
9192
available_tags=
 
9193
 
 
9194
# ### BEGIN LIBTOOL CONFIG
 
9195
 
 
9196
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9197
 
 
9198
# Shell to use when invoking shell scripts.
 
9199
SHELL=$lt_SHELL
 
9200
 
 
9201
# Whether or not to build shared libraries.
 
9202
build_libtool_libs=$enable_shared
 
9203
 
 
9204
# Whether or not to build static libraries.
 
9205
build_old_libs=$enable_static
 
9206
 
 
9207
# Whether or not to add -lc for building shared libraries.
 
9208
build_libtool_need_lc=$archive_cmds_need_lc
 
9209
 
 
9210
# Whether or not to disallow shared libs when runtime libs are static
 
9211
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9212
 
 
9213
# Whether or not to optimize for fast installation.
 
9214
fast_install=$enable_fast_install
 
9215
 
 
9216
# The host system.
 
9217
host_alias=$host_alias
 
9218
host=$host
 
9219
 
 
9220
# An echo program that does not interpret backslashes.
 
9221
echo=$lt_echo
 
9222
 
 
9223
# The archiver.
 
9224
AR=$lt_AR
 
9225
AR_FLAGS=$lt_AR_FLAGS
 
9226
 
 
9227
# A C compiler.
 
9228
LTCC=$lt_LTCC
 
9229
 
 
9230
# A language-specific compiler.
 
9231
CC=$lt_compiler
 
9232
 
 
9233
# Is the compiler the GNU C compiler?
 
9234
with_gcc=$GCC
 
9235
 
 
9236
# An ERE matcher.
 
9237
EGREP=$lt_EGREP
 
9238
 
 
9239
# The linker used to build libraries.
 
9240
LD=$lt_LD
 
9241
 
 
9242
# Whether we need hard or soft links.
 
9243
LN_S=$lt_LN_S
 
9244
 
 
9245
# A BSD-compatible nm program.
 
9246
NM=$lt_NM
 
9247
 
 
9248
# A symbol stripping program
 
9249
STRIP=$lt_STRIP
 
9250
 
 
9251
# Used to examine libraries when file_magic_cmd begins "file"
 
9252
MAGIC_CMD=$MAGIC_CMD
 
9253
 
 
9254
# Used on cygwin: DLL creation program.
 
9255
DLLTOOL="$DLLTOOL"
 
9256
 
 
9257
# Used on cygwin: object dumper.
 
9258
OBJDUMP="$OBJDUMP"
 
9259
 
 
9260
# Used on cygwin: assembler.
 
9261
AS="$AS"
 
9262
 
 
9263
# The name of the directory that contains temporary libtool files.
 
9264
objdir=$objdir
 
9265
 
 
9266
# How to create reloadable object files.
 
9267
reload_flag=$lt_reload_flag
 
9268
reload_cmds=$lt_reload_cmds
 
9269
 
 
9270
# How to pass a linker flag through the compiler.
 
9271
wl=$lt_lt_prog_compiler_wl
 
9272
 
 
9273
# Object file suffix (normally "o").
 
9274
objext="$ac_objext"
 
9275
 
 
9276
# Old archive suffix (normally "a").
 
9277
libext="$libext"
 
9278
 
 
9279
# Shared library suffix (normally ".so").
 
9280
shrext_cmds='$shrext_cmds'
 
9281
 
 
9282
# Executable file suffix (normally "").
 
9283
exeext="$exeext"
 
9284
 
 
9285
# Additional compiler flags for building library objects.
 
9286
pic_flag=$lt_lt_prog_compiler_pic
 
9287
pic_mode=$pic_mode
 
9288
 
 
9289
# What is the maximum length of a command?
 
9290
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9291
 
 
9292
# Does compiler simultaneously support -c and -o options?
 
9293
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9294
 
 
9295
# Must we lock files when doing compilation ?
 
9296
need_locks=$lt_need_locks
 
9297
 
 
9298
# Do we need the lib prefix for modules?
 
9299
need_lib_prefix=$need_lib_prefix
 
9300
 
 
9301
# Do we need a version for libraries?
 
9302
need_version=$need_version
 
9303
 
 
9304
# Whether dlopen is supported.
 
9305
dlopen_support=$enable_dlopen
 
9306
 
 
9307
# Whether dlopen of programs is supported.
 
9308
dlopen_self=$enable_dlopen_self
 
9309
 
 
9310
# Whether dlopen of statically linked programs is supported.
 
9311
dlopen_self_static=$enable_dlopen_self_static
 
9312
 
 
9313
# Compiler flag to prevent dynamic linking.
 
9314
link_static_flag=$lt_lt_prog_compiler_static
 
9315
 
 
9316
# Compiler flag to turn off builtin functions.
 
9317
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9318
 
 
9319
# Compiler flag to allow reflexive dlopens.
 
9320
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9321
 
 
9322
# Compiler flag to generate shared objects directly from archives.
 
9323
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9324
 
 
9325
# Compiler flag to generate thread-safe objects.
 
9326
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9327
 
 
9328
# Library versioning type.
 
9329
version_type=$version_type
 
9330
 
 
9331
# Format of library name prefix.
 
9332
libname_spec=$lt_libname_spec
 
9333
 
 
9334
# List of archive names.  First name is the real one, the rest are links.
 
9335
# The last name is the one that the linker finds with -lNAME.
 
9336
library_names_spec=$lt_library_names_spec
 
9337
 
 
9338
# The coded name of the library, if different from the real name.
 
9339
soname_spec=$lt_soname_spec
 
9340
 
 
9341
# Commands used to build and install an old-style archive.
 
9342
RANLIB=$lt_RANLIB
 
9343
old_archive_cmds=$lt_old_archive_cmds
 
9344
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9345
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9346
 
 
9347
# Create an old-style archive from a shared archive.
 
9348
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9349
 
 
9350
# Create a temporary old-style archive to link instead of a shared archive.
 
9351
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9352
 
 
9353
# Commands used to build and install a shared archive.
 
9354
archive_cmds=$lt_archive_cmds
 
9355
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9356
postinstall_cmds=$lt_postinstall_cmds
 
9357
postuninstall_cmds=$lt_postuninstall_cmds
 
9358
 
 
9359
# Commands used to build a loadable module (assumed same as above if empty)
 
9360
module_cmds=$lt_module_cmds
 
9361
module_expsym_cmds=$lt_module_expsym_cmds
 
9362
 
 
9363
# Commands to strip libraries.
 
9364
old_striplib=$lt_old_striplib
 
9365
striplib=$lt_striplib
 
9366
 
 
9367
# Dependencies to place before the objects being linked to create a
 
9368
# shared library.
 
9369
predep_objects=$lt_predep_objects
 
9370
 
 
9371
# Dependencies to place after the objects being linked to create a
 
9372
# shared library.
 
9373
postdep_objects=$lt_postdep_objects
 
9374
 
 
9375
# Dependencies to place before the objects being linked to create a
 
9376
# shared library.
 
9377
predeps=$lt_predeps
 
9378
 
 
9379
# Dependencies to place after the objects being linked to create a
 
9380
# shared library.
 
9381
postdeps=$lt_postdeps
 
9382
 
 
9383
# The library search path used internally by the compiler when linking
 
9384
# a shared library.
 
9385
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9386
 
 
9387
# Method to check whether dependent libraries are shared objects.
 
9388
deplibs_check_method=$lt_deplibs_check_method
 
9389
 
 
9390
# Command to use when deplibs_check_method == file_magic.
 
9391
file_magic_cmd=$lt_file_magic_cmd
 
9392
 
 
9393
# Flag that allows shared libraries with undefined symbols to be built.
 
9394
allow_undefined_flag=$lt_allow_undefined_flag
 
9395
 
 
9396
# Flag that forces no undefined symbols.
 
9397
no_undefined_flag=$lt_no_undefined_flag
 
9398
 
 
9399
# Commands used to finish a libtool library installation in a directory.
 
9400
finish_cmds=$lt_finish_cmds
 
9401
 
 
9402
# Same as above, but a single script fragment to be evaled but not shown.
 
9403
finish_eval=$lt_finish_eval
 
9404
 
 
9405
# Take the output of nm and produce a listing of raw symbols and C names.
 
9406
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9407
 
 
9408
# Transform the output of nm in a proper C declaration
 
9409
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9410
 
 
9411
# Transform the output of nm in a C name address pair
 
9412
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9413
 
 
9414
# This is the shared library runtime path variable.
 
9415
runpath_var=$runpath_var
 
9416
 
 
9417
# This is the shared library path variable.
 
9418
shlibpath_var=$shlibpath_var
 
9419
 
 
9420
# Is shlibpath searched before the hard-coded library search path?
 
9421
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9422
 
 
9423
# How to hardcode a shared library path into an executable.
 
9424
hardcode_action=$hardcode_action
 
9425
 
 
9426
# Whether we should hardcode library paths into libraries.
 
9427
hardcode_into_libs=$hardcode_into_libs
 
9428
 
 
9429
# Flag to hardcode \$libdir into a binary during linking.
 
9430
# This must work even if \$libdir does not exist.
 
9431
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9432
 
 
9433
# If ld is used when linking, flag to hardcode \$libdir into
 
9434
# a binary during linking. This must work even if \$libdir does
 
9435
# not exist.
 
9436
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9437
 
 
9438
# Whether we need a single -rpath flag with a separated argument.
 
9439
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9440
 
 
9441
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9442
# resulting binary.
 
9443
hardcode_direct=$hardcode_direct
 
9444
 
 
9445
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9446
# resulting binary.
 
9447
hardcode_minus_L=$hardcode_minus_L
 
9448
 
 
9449
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9450
# the resulting binary.
 
9451
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9452
 
 
9453
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9454
# and all subsequent libraries and executables linked against it.
 
9455
hardcode_automatic=$hardcode_automatic
 
9456
 
 
9457
# Variables whose values should be saved in libtool wrapper scripts and
 
9458
# restored at relink time.
 
9459
variables_saved_for_relink="$variables_saved_for_relink"
 
9460
 
 
9461
# Whether libtool must link a program against all its dependency libraries.
 
9462
link_all_deplibs=$link_all_deplibs
 
9463
 
 
9464
# Compile-time system search path for libraries
 
9465
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9466
 
 
9467
# Run-time system search path for libraries
 
9468
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9469
 
 
9470
# Fix the shell variable \$srcfile for the compiler.
 
9471
fix_srcfile_path="$fix_srcfile_path"
 
9472
 
 
9473
# Set to yes if exported symbols are required.
 
9474
always_export_symbols=$always_export_symbols
 
9475
 
 
9476
# The commands to list exported symbols.
 
9477
export_symbols_cmds=$lt_export_symbols_cmds
 
9478
 
 
9479
# The commands to extract the exported symbol list from a shared archive.
 
9480
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9481
 
 
9482
# Symbols that should not be listed in the preloaded symbols.
 
9483
exclude_expsyms=$lt_exclude_expsyms
 
9484
 
 
9485
# Symbols that must always be exported.
 
9486
include_expsyms=$lt_include_expsyms
 
9487
 
 
9488
# ### END LIBTOOL CONFIG
 
9489
 
 
9490
__EOF__
 
9491
 
 
9492
 
 
9493
  case $host_os in
 
9494
  aix3*)
 
9495
    cat <<\EOF >> "$cfgfile"
 
9496
 
 
9497
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9498
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9499
# vanish in a puff of smoke.
 
9500
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9501
  COLLECT_NAMES=
 
9502
  export COLLECT_NAMES
 
9503
fi
 
9504
EOF
 
9505
    ;;
 
9506
  esac
 
9507
 
 
9508
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9509
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9510
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9511
  # is reportedly fixed, but why not run on old versions too?
 
9512
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9513
 
 
9514
  mv -f "$cfgfile" "$ofile" || \
 
9515
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9516
  chmod +x "$ofile"
 
9517
 
 
9518
else
 
9519
  # If there is no Makefile yet, we rely on a make rule to execute
 
9520
  # `config.status --recheck' to rerun these tests and create the
 
9521
  # libtool script then.
 
9522
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9523
  if test -f "$ltmain_in"; then
 
9524
    test -f Makefile && make "$ltmain"
 
9525
  fi
 
9526
fi
 
9527
 
 
9528
 
 
9529
ac_ext=c
 
9530
ac_cpp='$CPP $CPPFLAGS'
 
9531
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9532
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9534
 
 
9535
CC="$lt_save_CC"
 
9536
 
 
9537
 
 
9538
# Check whether --with-tags or --without-tags was given.
 
9539
if test "${with_tags+set}" = set; then
 
9540
  withval="$with_tags"
 
9541
  tagnames="$withval"
 
9542
fi;
 
9543
 
 
9544
if test -f "$ltmain" && test -n "$tagnames"; then
 
9545
  if test ! -f "${ofile}"; then
 
9546
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9547
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9548
  fi
 
9549
 
 
9550
  if test -z "$LTCC"; then
 
9551
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9552
    if test -z "$LTCC"; then
 
9553
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9554
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9555
    else
 
9556
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9557
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9558
    fi
 
9559
  fi
 
9560
 
 
9561
  # Extract list of available tagged configurations in $ofile.
 
9562
  # Note that this assumes the entire list is on one line.
 
9563
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9564
 
 
9565
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9566
  for tagname in $tagnames; do
 
9567
    IFS="$lt_save_ifs"
 
9568
    # Check whether tagname contains only valid characters
 
9569
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9570
    "") ;;
 
9571
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9572
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9573
   { (exit 1); exit 1; }; }
 
9574
        ;;
 
9575
    esac
 
9576
 
 
9577
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9578
    then
 
9579
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9580
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9581
   { (exit 1); exit 1; }; }
 
9582
    fi
 
9583
 
 
9584
    # Update the list of available tags.
 
9585
    if test -n "$tagname"; then
 
9586
      echo appending configuration tag \"$tagname\" to $ofile
 
9587
 
 
9588
      case $tagname in
 
9589
      CXX)
 
9590
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9591
          ac_ext=cc
 
9592
ac_cpp='$CXXCPP $CPPFLAGS'
 
9593
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9594
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9595
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9596
 
 
9597
 
 
9598
 
 
9599
 
 
9600
archive_cmds_need_lc_CXX=no
 
9601
allow_undefined_flag_CXX=
 
9602
always_export_symbols_CXX=no
 
9603
archive_expsym_cmds_CXX=
 
9604
export_dynamic_flag_spec_CXX=
 
9605
hardcode_direct_CXX=no
 
9606
hardcode_libdir_flag_spec_CXX=
 
9607
hardcode_libdir_flag_spec_ld_CXX=
 
9608
hardcode_libdir_separator_CXX=
 
9609
hardcode_minus_L_CXX=no
 
9610
hardcode_automatic_CXX=no
 
9611
module_cmds_CXX=
 
9612
module_expsym_cmds_CXX=
 
9613
link_all_deplibs_CXX=unknown
 
9614
old_archive_cmds_CXX=$old_archive_cmds
 
9615
no_undefined_flag_CXX=
 
9616
whole_archive_flag_spec_CXX=
 
9617
enable_shared_with_static_runtimes_CXX=no
 
9618
 
 
9619
# Dependencies to place before and after the object being linked:
 
9620
predep_objects_CXX=
 
9621
postdep_objects_CXX=
 
9622
predeps_CXX=
 
9623
postdeps_CXX=
 
9624
compiler_lib_search_path_CXX=
 
9625
 
 
9626
# Source file extension for C++ test sources.
 
9627
ac_ext=cc
 
9628
 
 
9629
# Object file extension for compiled C++ test sources.
 
9630
objext=o
 
9631
objext_CXX=$objext
 
9632
 
 
9633
# Code to be used in simple compile tests
 
9634
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9635
 
 
9636
# Code to be used in simple link tests
 
9637
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9638
 
 
9639
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9640
 
 
9641
# If no C compiler was specified, use CC.
 
9642
LTCC=${LTCC-"$CC"}
 
9643
 
 
9644
# Allow CC to be a program name with arguments.
 
9645
compiler=$CC
 
9646
 
 
9647
 
 
9648
# Allow CC to be a program name with arguments.
 
9649
lt_save_CC=$CC
 
9650
lt_save_LD=$LD
 
9651
lt_save_GCC=$GCC
 
9652
GCC=$GXX
 
9653
lt_save_with_gnu_ld=$with_gnu_ld
 
9654
lt_save_path_LD=$lt_cv_path_LD
 
9655
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9656
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9657
else
 
9658
  unset lt_cv_prog_gnu_ld
 
9659
fi
 
9660
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9661
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9662
else
 
9663
  unset lt_cv_path_LD
 
9664
fi
 
9665
test -z "${LDCXX+set}" || LD=$LDCXX
 
9666
CC=${CXX-"c++"}
 
9667
compiler=$CC
 
9668
compiler_CXX=$CC
 
9669
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9670
 
 
9671
# We don't want -fno-exception wen compiling C++ code, so set the
 
9672
# no_builtin_flag separately
 
9673
if test "$GXX" = yes; then
 
9674
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9675
else
 
9676
  lt_prog_compiler_no_builtin_flag_CXX=
 
9677
fi
 
9678
 
 
9679
if test "$GXX" = yes; then
 
9680
  # Set up default GNU C++ configuration
 
9681
 
 
9682
 
 
9683
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9684
if test "${with_gnu_ld+set}" = set; then
 
9685
  withval="$with_gnu_ld"
 
9686
  test "$withval" = no || with_gnu_ld=yes
 
9687
else
 
9688
  with_gnu_ld=no
 
9689
fi;
 
9690
ac_prog=ld
 
9691
if test "$GCC" = yes; then
 
9692
  # Check if gcc -print-prog-name=ld gives a path.
 
9693
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9694
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9695
  case $host in
 
9696
  *-*-mingw*)
 
9697
    # gcc leaves a trailing carriage return which upsets mingw
 
9698
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9699
  *)
 
9700
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9701
  esac
 
9702
  case $ac_prog in
 
9703
    # Accept absolute paths.
 
9704
    [\\/]* | ?:[\\/]*)
 
9705
      re_direlt='/[^/][^/]*/\.\./'
 
9706
      # Canonicalize the pathname of ld
 
9707
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9708
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9709
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9710
      done
 
9711
      test -z "$LD" && LD="$ac_prog"
 
9712
      ;;
 
9713
  "")
 
9714
    # If it fails, then pretend we aren't using GCC.
 
9715
    ac_prog=ld
 
9716
    ;;
 
9717
  *)
 
9718
    # If it is relative, then search for the first ld in PATH.
 
9719
    with_gnu_ld=unknown
 
9720
    ;;
 
9721
  esac
 
9722
elif test "$with_gnu_ld" = yes; then
 
9723
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9724
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9725
else
 
9726
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9727
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9728
fi
 
9729
if test "${lt_cv_path_LD+set}" = set; then
 
9730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9731
else
 
9732
  if test -z "$LD"; then
 
9733
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9734
  for ac_dir in $PATH; do
 
9735
    IFS="$lt_save_ifs"
 
9736
    test -z "$ac_dir" && ac_dir=.
 
9737
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9738
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9739
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9740
      # but apparently some GNU ld's only accept -v.
 
9741
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9742
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9743
      *GNU* | *'with BFD'*)
 
9744
        test "$with_gnu_ld" != no && break
 
9745
        ;;
 
9746
      *)
 
9747
        test "$with_gnu_ld" != yes && break
 
9748
        ;;
 
9749
      esac
 
9750
    fi
 
9751
  done
 
9752
  IFS="$lt_save_ifs"
 
9753
else
 
9754
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9755
fi
 
9756
fi
 
9757
 
 
9758
LD="$lt_cv_path_LD"
 
9759
if test -n "$LD"; then
 
9760
  echo "$as_me:$LINENO: result: $LD" >&5
 
9761
echo "${ECHO_T}$LD" >&6
 
9762
else
 
9763
  echo "$as_me:$LINENO: result: no" >&5
 
9764
echo "${ECHO_T}no" >&6
 
9765
fi
 
9766
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9767
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9768
   { (exit 1); exit 1; }; }
 
9769
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9770
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9771
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9773
else
 
9774
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9775
case `$LD -v 2>&1 </dev/null` in
 
9776
*GNU* | *'with BFD'*)
 
9777
  lt_cv_prog_gnu_ld=yes
 
9778
  ;;
 
9779
*)
 
9780
  lt_cv_prog_gnu_ld=no
 
9781
  ;;
 
9782
esac
 
9783
fi
 
9784
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9785
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9786
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9787
 
 
9788
 
 
9789
 
 
9790
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9791
  # archiving commands below assume that GNU ld is being used.
 
9792
  if test "$with_gnu_ld" = yes; then
 
9793
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9794
    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'
 
9795
 
 
9796
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9797
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9798
 
 
9799
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9800
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9801
    #     investigate it a little bit more. (MM)
 
9802
    wlarc='${wl}'
 
9803
 
 
9804
    # ancient GNU ld didn't support --whole-archive et. al.
 
9805
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9806
        grep 'no-whole-archive' > /dev/null; then
 
9807
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9808
    else
 
9809
      whole_archive_flag_spec_CXX=
 
9810
    fi
 
9811
  else
 
9812
    with_gnu_ld=no
 
9813
    wlarc=
 
9814
 
 
9815
    # A generic and very simple default shared library creation
 
9816
    # command for GNU C++ for the case where it uses the native
 
9817
    # linker, instead of GNU ld.  If possible, this setting should
 
9818
    # overridden to take advantage of the native linker features on
 
9819
    # the platform it is being used on.
 
9820
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9821
  fi
 
9822
 
 
9823
  # Commands to make compiler produce verbose output that lists
 
9824
  # what "hidden" libraries, object files and flags are used when
 
9825
  # linking a shared library.
 
9826
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9827
 
 
9828
else
 
9829
  GXX=no
 
9830
  with_gnu_ld=no
 
9831
  wlarc=
 
9832
fi
 
9833
 
 
9834
# PORTME: fill in a description of your system's C++ link characteristics
 
9835
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9836
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9837
ld_shlibs_CXX=yes
 
9838
case $host_os in
 
9839
  aix3*)
 
9840
    # FIXME: insert proper C++ library support
 
9841
    ld_shlibs_CXX=no
 
9842
    ;;
 
9843
  aix4* | aix5*)
 
9844
    if test "$host_cpu" = ia64; then
 
9845
      # On IA64, the linker does run time linking by default, so we don't
 
9846
      # have to do anything special.
 
9847
      aix_use_runtimelinking=no
 
9848
      exp_sym_flag='-Bexport'
 
9849
      no_entry_flag=""
 
9850
    else
 
9851
      aix_use_runtimelinking=no
 
9852
 
 
9853
      # Test if we are trying to use run time linking or normal
 
9854
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9855
      # need to do runtime linking.
 
9856
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9857
        for ld_flag in $LDFLAGS; do
 
9858
          case $ld_flag in
 
9859
          *-brtl*)
 
9860
            aix_use_runtimelinking=yes
 
9861
            break
 
9862
            ;;
 
9863
          esac
 
9864
        done
 
9865
      esac
 
9866
 
 
9867
      exp_sym_flag='-bexport'
 
9868
      no_entry_flag='-bnoentry'
 
9869
    fi
 
9870
 
 
9871
    # When large executables or shared objects are built, AIX ld can
 
9872
    # have problems creating the table of contents.  If linking a library
 
9873
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9874
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9875
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9876
 
 
9877
    archive_cmds_CXX=''
 
9878
    hardcode_direct_CXX=yes
 
9879
    hardcode_libdir_separator_CXX=':'
 
9880
    link_all_deplibs_CXX=yes
 
9881
 
 
9882
    if test "$GXX" = yes; then
 
9883
      case $host_os in aix4.012|aix4.012.*)
 
9884
      # We only want to do this on AIX 4.2 and lower, the check
 
9885
      # below for broken collect2 doesn't work under 4.3+
 
9886
        collect2name=`${CC} -print-prog-name=collect2`
 
9887
        if test -f "$collect2name" && \
 
9888
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9889
        then
 
9890
          # We have reworked collect2
 
9891
          hardcode_direct_CXX=yes
 
9892
        else
 
9893
          # We have old collect2
 
9894
          hardcode_direct_CXX=unsupported
 
9895
          # It fails to find uninstalled libraries when the uninstalled
 
9896
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9897
          # to unsupported forces relinking
 
9898
          hardcode_minus_L_CXX=yes
 
9899
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9900
          hardcode_libdir_separator_CXX=
 
9901
        fi
 
9902
      esac
 
9903
      shared_flag='-shared'
 
9904
    else
 
9905
      # not using gcc
 
9906
      if test "$host_cpu" = ia64; then
 
9907
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9908
        # chokes on -Wl,-G. The following line is correct:
 
9909
        shared_flag='-G'
 
9910
      else
 
9911
        if test "$aix_use_runtimelinking" = yes; then
 
9912
          shared_flag='${wl}-G'
 
9913
        else
 
9914
          shared_flag='${wl}-bM:SRE'
 
9915
        fi
 
9916
      fi
 
9917
    fi
 
9918
 
 
9919
    # It seems that -bexpall does not export symbols beginning with
 
9920
    # underscore (_), so it is better to generate a list of symbols to export.
 
9921
    always_export_symbols_CXX=yes
 
9922
    if test "$aix_use_runtimelinking" = yes; then
 
9923
      # Warning - without using the other runtime loading flags (-brtl),
 
9924
      # -berok will link without error, but may produce a broken library.
 
9925
      allow_undefined_flag_CXX='-berok'
 
9926
      # Determine the default libpath from the value encoded in an empty executable.
 
9927
      cat >conftest.$ac_ext <<_ACEOF
 
9928
/* confdefs.h.  */
 
9929
_ACEOF
 
9930
cat confdefs.h >>conftest.$ac_ext
 
9931
cat >>conftest.$ac_ext <<_ACEOF
 
9932
/* end confdefs.h.  */
 
9933
 
 
9934
int
 
9935
main ()
 
9936
{
 
9937
 
 
9938
  ;
 
9939
  return 0;
 
9940
}
 
9941
_ACEOF
 
9942
rm -f conftest.$ac_objext conftest$ac_exeext
 
9943
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9944
  (eval $ac_link) 2>conftest.er1
 
9945
  ac_status=$?
 
9946
  grep -v '^ *+' conftest.er1 >conftest.err
 
9947
  rm -f conftest.er1
 
9948
  cat conftest.err >&5
 
9949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9950
  (exit $ac_status); } &&
 
9951
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
9952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9953
  (eval $ac_try) 2>&5
 
9954
  ac_status=$?
 
9955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9956
  (exit $ac_status); }; } &&
 
9957
         { ac_try='test -s conftest$ac_exeext'
 
9958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9959
  (eval $ac_try) 2>&5
 
9960
  ac_status=$?
 
9961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9962
  (exit $ac_status); }; }; then
 
9963
 
 
9964
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9965
}'`
 
9966
# Check for a 64-bit object if we didn't find anything.
 
9967
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; }
 
9968
}'`; fi
 
9969
else
 
9970
  echo "$as_me: failed program was:" >&5
 
9971
sed 's/^/| /' conftest.$ac_ext >&5
 
9972
 
 
9973
fi
 
9974
rm -f conftest.err conftest.$ac_objext \
 
9975
      conftest$ac_exeext conftest.$ac_ext
 
9976
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9977
 
 
9978
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9979
 
 
9980
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9981
     else
 
9982
      if test "$host_cpu" = ia64; then
 
9983
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
9984
        allow_undefined_flag_CXX="-z nodefs"
 
9985
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
9986
      else
 
9987
        # Determine the default libpath from the value encoded in an empty executable.
 
9988
        cat >conftest.$ac_ext <<_ACEOF
 
9989
/* confdefs.h.  */
 
9990
_ACEOF
 
9991
cat confdefs.h >>conftest.$ac_ext
 
9992
cat >>conftest.$ac_ext <<_ACEOF
 
9993
/* end confdefs.h.  */
 
9994
 
 
9995
int
 
9996
main ()
 
9997
{
 
9998
 
 
9999
  ;
 
10000
  return 0;
 
10001
}
 
10002
_ACEOF
 
10003
rm -f conftest.$ac_objext conftest$ac_exeext
 
10004
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10005
  (eval $ac_link) 2>conftest.er1
 
10006
  ac_status=$?
 
10007
  grep -v '^ *+' conftest.er1 >conftest.err
 
10008
  rm -f conftest.er1
 
10009
  cat conftest.err >&5
 
10010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10011
  (exit $ac_status); } &&
 
10012
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10014
  (eval $ac_try) 2>&5
 
10015
  ac_status=$?
 
10016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10017
  (exit $ac_status); }; } &&
 
10018
         { ac_try='test -s conftest$ac_exeext'
 
10019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10020
  (eval $ac_try) 2>&5
 
10021
  ac_status=$?
 
10022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10023
  (exit $ac_status); }; }; then
 
10024
 
 
10025
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10026
}'`
 
10027
# Check for a 64-bit object if we didn't find anything.
 
10028
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; }
 
10029
}'`; fi
 
10030
else
 
10031
  echo "$as_me: failed program was:" >&5
 
10032
sed 's/^/| /' conftest.$ac_ext >&5
 
10033
 
 
10034
fi
 
10035
rm -f conftest.err conftest.$ac_objext \
 
10036
      conftest$ac_exeext conftest.$ac_ext
 
10037
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10038
 
 
10039
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10040
        # Warning - without using the other run time loading flags,
 
10041
        # -berok will link without error, but may produce a broken library.
 
10042
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10043
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10044
        # -bexpall does not export symbols beginning with underscore (_)
 
10045
        always_export_symbols_CXX=yes
 
10046
        # Exported symbols can be pulled into shared objects from archives
 
10047
        whole_archive_flag_spec_CXX=' '
 
10048
        archive_cmds_need_lc_CXX=yes
 
10049
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10050
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10051
      fi
 
10052
    fi
 
10053
    ;;
 
10054
  chorus*)
 
10055
    case $cc_basename in
 
10056
      *)
 
10057
        # FIXME: insert proper C++ library support
 
10058
        ld_shlibs_CXX=no
 
10059
        ;;
 
10060
    esac
 
10061
    ;;
 
10062
 
 
10063
  cygwin* | mingw* | pw32*)
 
10064
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10065
    # as there is no search path for DLLs.
 
10066
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10067
    allow_undefined_flag_CXX=unsupported
 
10068
    always_export_symbols_CXX=no
 
10069
    enable_shared_with_static_runtimes_CXX=yes
 
10070
 
 
10071
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10072
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10073
      # If the export-symbols file already is a .def file (1st line
 
10074
      # is EXPORTS), use it as is; otherwise, prepend...
 
10075
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10076
        cp $export_symbols $output_objdir/$soname.def;
 
10077
      else
 
10078
        echo EXPORTS > $output_objdir/$soname.def;
 
10079
        cat $export_symbols >> $output_objdir/$soname.def;
 
10080
      fi~
 
10081
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10082
    else
 
10083
      ld_shlibs_CXX=no
 
10084
    fi
 
10085
  ;;
 
10086
 
 
10087
  darwin* | rhapsody*)
 
10088
  if test "$GXX" = yes; then
 
10089
    archive_cmds_need_lc_CXX=no
 
10090
    case "$host_os" in
 
10091
    rhapsody* | darwin1.[012])
 
10092
      allow_undefined_flag_CXX='-undefined suppress'
 
10093
      ;;
 
10094
    *) # Darwin 1.3 on
 
10095
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10096
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10097
      else
 
10098
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10099
          10.[012])
 
10100
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10101
            ;;
 
10102
          10.*)
 
10103
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
10104
            ;;
 
10105
        esac
 
10106
      fi
 
10107
      ;;
 
10108
    esac
 
10109
    lt_int_apple_cc_single_mod=no
 
10110
    output_verbose_link_cmd='echo'
 
10111
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
10112
      lt_int_apple_cc_single_mod=yes
 
10113
    fi
 
10114
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10115
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10116
    else
 
10117
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10118
    fi
 
10119
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10120
 
 
10121
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10122
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10123
      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}'
 
10124
    else
 
10125
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10126
    fi
 
10127
    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}'
 
10128
    hardcode_direct_CXX=no
 
10129
    hardcode_automatic_CXX=yes
 
10130
    hardcode_shlibpath_var_CXX=unsupported
 
10131
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
10132
    link_all_deplibs_CXX=yes
 
10133
  else
 
10134
    ld_shlibs_CXX=no
 
10135
  fi
 
10136
    ;;
 
10137
 
 
10138
  dgux*)
 
10139
    case $cc_basename in
 
10140
      ec++)
 
10141
        # FIXME: insert proper C++ library support
 
10142
        ld_shlibs_CXX=no
 
10143
        ;;
 
10144
      ghcx)
 
10145
        # Green Hills C++ Compiler
 
10146
        # FIXME: insert proper C++ library support
 
10147
        ld_shlibs_CXX=no
 
10148
        ;;
 
10149
      *)
 
10150
        # FIXME: insert proper C++ library support
 
10151
        ld_shlibs_CXX=no
 
10152
        ;;
 
10153
    esac
 
10154
    ;;
 
10155
  freebsd12*)
 
10156
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10157
    ld_shlibs_CXX=no
 
10158
    ;;
 
10159
  freebsd-elf*)
 
10160
    archive_cmds_need_lc_CXX=no
 
10161
    ;;
 
10162
  freebsd* | kfreebsd*-gnu)
 
10163
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10164
    # conventions
 
10165
    ld_shlibs_CXX=yes
 
10166
    ;;
 
10167
  gnu*)
 
10168
    ;;
 
10169
  hpux9*)
 
10170
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10171
    hardcode_libdir_separator_CXX=:
 
10172
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10173
    hardcode_direct_CXX=yes
 
10174
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10175
                                # but as the default
 
10176
                                # location of the library.
 
10177
 
 
10178
    case $cc_basename in
 
10179
    CC)
 
10180
      # FIXME: insert proper C++ library support
 
10181
      ld_shlibs_CXX=no
 
10182
      ;;
 
10183
    aCC)
 
10184
      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'
 
10185
      # Commands to make compiler produce verbose output that lists
 
10186
      # what "hidden" libraries, object files and flags are used when
 
10187
      # linking a shared library.
 
10188
      #
 
10189
      # There doesn't appear to be a way to prevent this compiler from
 
10190
      # explicitly linking system object files so we need to strip them
 
10191
      # from the output so that they don't get included in the library
 
10192
      # dependencies.
 
10193
      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'
 
10194
      ;;
 
10195
    *)
 
10196
      if test "$GXX" = yes; then
 
10197
        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'
 
10198
      else
 
10199
        # FIXME: insert proper C++ library support
 
10200
        ld_shlibs_CXX=no
 
10201
      fi
 
10202
      ;;
 
10203
    esac
 
10204
    ;;
 
10205
  hpux10*|hpux11*)
 
10206
    if test $with_gnu_ld = no; then
 
10207
      case "$host_cpu" in
 
10208
      hppa*64*)
 
10209
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10210
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10211
        hardcode_libdir_separator_CXX=:
 
10212
        ;;
 
10213
      ia64*)
 
10214
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10215
        ;;
 
10216
      *)
 
10217
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10218
        hardcode_libdir_separator_CXX=:
 
10219
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10220
        ;;
 
10221
      esac
 
10222
    fi
 
10223
    case "$host_cpu" in
 
10224
    hppa*64*)
 
10225
      hardcode_direct_CXX=no
 
10226
      hardcode_shlibpath_var_CXX=no
 
10227
      ;;
 
10228
    ia64*)
 
10229
      hardcode_direct_CXX=no
 
10230
      hardcode_shlibpath_var_CXX=no
 
10231
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10232
                                              # but as the default
 
10233
                                              # location of the library.
 
10234
      ;;
 
10235
    *)
 
10236
      hardcode_direct_CXX=yes
 
10237
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10238
                                              # but as the default
 
10239
                                              # location of the library.
 
10240
      ;;
 
10241
    esac
 
10242
 
 
10243
    case $cc_basename in
 
10244
      CC)
 
10245
        # FIXME: insert proper C++ library support
 
10246
        ld_shlibs_CXX=no
 
10247
        ;;
 
10248
      aCC)
 
10249
        case "$host_cpu" in
 
10250
        hppa*64*|ia64*)
 
10251
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10252
          ;;
 
10253
        *)
 
10254
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10255
          ;;
 
10256
        esac
 
10257
        # Commands to make compiler produce verbose output that lists
 
10258
        # what "hidden" libraries, object files and flags are used when
 
10259
        # linking a shared library.
 
10260
        #
 
10261
        # There doesn't appear to be a way to prevent this compiler from
 
10262
        # explicitly linking system object files so we need to strip them
 
10263
        # from the output so that they don't get included in the library
 
10264
        # dependencies.
 
10265
        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'
 
10266
        ;;
 
10267
      *)
 
10268
        if test "$GXX" = yes; then
 
10269
          if test $with_gnu_ld = no; then
 
10270
            case "$host_cpu" in
 
10271
            ia64*|hppa*64*)
 
10272
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10273
              ;;
 
10274
            *)
 
10275
              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'
 
10276
              ;;
 
10277
            esac
 
10278
          fi
 
10279
        else
 
10280
          # FIXME: insert proper C++ library support
 
10281
          ld_shlibs_CXX=no
 
10282
        fi
 
10283
        ;;
 
10284
    esac
 
10285
    ;;
 
10286
  irix5* | irix6*)
 
10287
    case $cc_basename in
 
10288
      CC)
 
10289
        # SGI C++
 
10290
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10291
 
 
10292
        # Archives containing C++ object files must be created using
 
10293
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10294
        # necessary to make sure instantiated templates are included
 
10295
        # in the archive.
 
10296
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10297
        ;;
 
10298
      *)
 
10299
        if test "$GXX" = yes; then
 
10300
          if test "$with_gnu_ld" = no; then
 
10301
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10302
          else
 
10303
            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'
 
10304
          fi
 
10305
        fi
 
10306
        link_all_deplibs_CXX=yes
 
10307
        ;;
 
10308
    esac
 
10309
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10310
    hardcode_libdir_separator_CXX=:
 
10311
    ;;
 
10312
  linux*)
 
10313
    case $cc_basename in
 
10314
      KCC)
 
10315
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10316
 
 
10317
        # KCC will only create a shared library if the output file
 
10318
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10319
        # to its proper name (with version) after linking.
 
10320
        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'
 
10321
        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'
 
10322
        # Commands to make compiler produce verbose output that lists
 
10323
        # what "hidden" libraries, object files and flags are used when
 
10324
        # linking a shared library.
 
10325
        #
 
10326
        # There doesn't appear to be a way to prevent this compiler from
 
10327
        # explicitly linking system object files so we need to strip them
 
10328
        # from the output so that they don't get included in the library
 
10329
        # dependencies.
 
10330
        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'
 
10331
 
 
10332
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10333
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10334
 
 
10335
        # Archives containing C++ object files must be created using
 
10336
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10337
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10338
        ;;
 
10339
      icpc)
 
10340
        # Intel C++
 
10341
        with_gnu_ld=yes
 
10342
        archive_cmds_need_lc_CXX=no
 
10343
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10344
        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'
 
10345
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10346
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10347
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10348
        ;;
 
10349
      cxx)
 
10350
        # Compaq C++
 
10351
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10352
        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'
 
10353
 
 
10354
        runpath_var=LD_RUN_PATH
 
10355
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10356
        hardcode_libdir_separator_CXX=:
 
10357
 
 
10358
        # Commands to make compiler produce verbose output that lists
 
10359
        # what "hidden" libraries, object files and flags are used when
 
10360
        # linking a shared library.
 
10361
        #
 
10362
        # There doesn't appear to be a way to prevent this compiler from
 
10363
        # explicitly linking system object files so we need to strip them
 
10364
        # from the output so that they don't get included in the library
 
10365
        # dependencies.
 
10366
        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'
 
10367
        ;;
 
10368
    esac
 
10369
    ;;
 
10370
  lynxos*)
 
10371
    # FIXME: insert proper C++ library support
 
10372
    ld_shlibs_CXX=no
 
10373
    ;;
 
10374
  m88k*)
 
10375
    # FIXME: insert proper C++ library support
 
10376
    ld_shlibs_CXX=no
 
10377
    ;;
 
10378
  mvs*)
 
10379
    case $cc_basename in
 
10380
      cxx)
 
10381
        # FIXME: insert proper C++ library support
 
10382
        ld_shlibs_CXX=no
 
10383
        ;;
 
10384
      *)
 
10385
        # FIXME: insert proper C++ library support
 
10386
        ld_shlibs_CXX=no
 
10387
        ;;
 
10388
    esac
 
10389
    ;;
 
10390
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10391
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10392
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10393
      wlarc=
 
10394
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10395
      hardcode_direct_CXX=yes
 
10396
      hardcode_shlibpath_var_CXX=no
 
10397
    fi
 
10398
    # Workaround some broken pre-1.5 toolchains
 
10399
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10400
    ;;
 
10401
  osf3*)
 
10402
    case $cc_basename in
 
10403
      KCC)
 
10404
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10405
 
 
10406
        # KCC will only create a shared library if the output file
 
10407
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10408
        # to its proper name (with version) after linking.
 
10409
        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'
 
10410
 
 
10411
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10412
        hardcode_libdir_separator_CXX=:
 
10413
 
 
10414
        # Archives containing C++ object files must be created using
 
10415
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10416
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10417
 
 
10418
        ;;
 
10419
      RCC)
 
10420
        # Rational C++ 2.4.1
 
10421
        # FIXME: insert proper C++ library support
 
10422
        ld_shlibs_CXX=no
 
10423
        ;;
 
10424
      cxx)
 
10425
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10426
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10427
 
 
10428
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10429
        hardcode_libdir_separator_CXX=:
 
10430
 
 
10431
        # Commands to make compiler produce verbose output that lists
 
10432
        # what "hidden" libraries, object files and flags are used when
 
10433
        # linking a shared library.
 
10434
        #
 
10435
        # There doesn't appear to be a way to prevent this compiler from
 
10436
        # explicitly linking system object files so we need to strip them
 
10437
        # from the output so that they don't get included in the library
 
10438
        # dependencies.
 
10439
        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'
 
10440
        ;;
 
10441
      *)
 
10442
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10443
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10444
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10445
 
 
10446
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10447
          hardcode_libdir_separator_CXX=:
 
10448
 
 
10449
          # Commands to make compiler produce verbose output that lists
 
10450
          # what "hidden" libraries, object files and flags are used when
 
10451
          # linking a shared library.
 
10452
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10453
 
 
10454
        else
 
10455
          # FIXME: insert proper C++ library support
 
10456
          ld_shlibs_CXX=no
 
10457
        fi
 
10458
        ;;
 
10459
    esac
 
10460
    ;;
 
10461
  osf4* | osf5*)
 
10462
    case $cc_basename in
 
10463
      KCC)
 
10464
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10465
 
 
10466
        # KCC will only create a shared library if the output file
 
10467
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10468
        # to its proper name (with version) after linking.
 
10469
        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'
 
10470
 
 
10471
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10472
        hardcode_libdir_separator_CXX=:
 
10473
 
 
10474
        # Archives containing C++ object files must be created using
 
10475
        # the KAI C++ compiler.
 
10476
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10477
        ;;
 
10478
      RCC)
 
10479
        # Rational C++ 2.4.1
 
10480
        # FIXME: insert proper C++ library support
 
10481
        ld_shlibs_CXX=no
 
10482
        ;;
 
10483
      cxx)
 
10484
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10485
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10486
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10487
          echo "-hidden">> $lib.exp~
 
10488
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
10489
          $rm $lib.exp'
 
10490
 
 
10491
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10492
        hardcode_libdir_separator_CXX=:
 
10493
 
 
10494
        # Commands to make compiler produce verbose output that lists
 
10495
        # what "hidden" libraries, object files and flags are used when
 
10496
        # linking a shared library.
 
10497
        #
 
10498
        # There doesn't appear to be a way to prevent this compiler from
 
10499
        # explicitly linking system object files so we need to strip them
 
10500
        # from the output so that they don't get included in the library
 
10501
        # dependencies.
 
10502
        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'
 
10503
        ;;
 
10504
      *)
 
10505
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10506
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10507
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10508
 
 
10509
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10510
          hardcode_libdir_separator_CXX=:
 
10511
 
 
10512
          # Commands to make compiler produce verbose output that lists
 
10513
          # what "hidden" libraries, object files and flags are used when
 
10514
          # linking a shared library.
 
10515
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10516
 
 
10517
        else
 
10518
          # FIXME: insert proper C++ library support
 
10519
          ld_shlibs_CXX=no
 
10520
        fi
 
10521
        ;;
 
10522
    esac
 
10523
    ;;
 
10524
  psos*)
 
10525
    # FIXME: insert proper C++ library support
 
10526
    ld_shlibs_CXX=no
 
10527
    ;;
 
10528
  sco*)
 
10529
    archive_cmds_need_lc_CXX=no
 
10530
    case $cc_basename in
 
10531
      CC)
 
10532
        # FIXME: insert proper C++ library support
 
10533
        ld_shlibs_CXX=no
 
10534
        ;;
 
10535
      *)
 
10536
        # FIXME: insert proper C++ library support
 
10537
        ld_shlibs_CXX=no
 
10538
        ;;
 
10539
    esac
 
10540
    ;;
 
10541
  sunos4*)
 
10542
    case $cc_basename in
 
10543
      CC)
 
10544
        # Sun C++ 4.x
 
10545
        # FIXME: insert proper C++ library support
 
10546
        ld_shlibs_CXX=no
 
10547
        ;;
 
10548
      lcc)
 
10549
        # Lucid
 
10550
        # FIXME: insert proper C++ library support
 
10551
        ld_shlibs_CXX=no
 
10552
        ;;
 
10553
      *)
 
10554
        # FIXME: insert proper C++ library support
 
10555
        ld_shlibs_CXX=no
 
10556
        ;;
 
10557
    esac
 
10558
    ;;
 
10559
  solaris*)
 
10560
    case $cc_basename in
 
10561
      CC)
 
10562
        # Sun C++ 4.2, 5.x and Centerline C++
 
10563
        no_undefined_flag_CXX=' -zdefs'
 
10564
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10565
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10566
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10567
 
 
10568
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10569
        hardcode_shlibpath_var_CXX=no
 
10570
        case $host_os in
 
10571
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10572
          *)
 
10573
            # The C++ compiler is used as linker so we must use $wl
 
10574
            # flag to pass the commands to the underlying system
 
10575
            # linker.
 
10576
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10577
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10578
            ;;
 
10579
        esac
 
10580
        link_all_deplibs_CXX=yes
 
10581
 
 
10582
        # Commands to make compiler produce verbose output that lists
 
10583
        # what "hidden" libraries, object files and flags are used when
 
10584
        # linking a shared library.
 
10585
        #
 
10586
        # There doesn't appear to be a way to prevent this compiler from
 
10587
        # explicitly linking system object files so we need to strip them
 
10588
        # from the output so that they don't get included in the library
 
10589
        # dependencies.
 
10590
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10591
 
 
10592
        # Archives containing C++ object files must be created using
 
10593
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10594
        # necessary to make sure instantiated templates are included
 
10595
        # in the archive.
 
10596
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10597
        ;;
 
10598
      gcx)
 
10599
        # Green Hills C++ Compiler
 
10600
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10601
 
 
10602
        # The C++ compiler must be used to create the archive.
 
10603
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10604
        ;;
 
10605
      *)
 
10606
        # GNU C++ compiler with Solaris linker
 
10607
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10608
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10609
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10610
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10611
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10612
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10613
 
 
10614
            # Commands to make compiler produce verbose output that lists
 
10615
            # what "hidden" libraries, object files and flags are used when
 
10616
            # linking a shared library.
 
10617
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10618
          else
 
10619
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10620
            # platform.
 
10621
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10622
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10623
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10624
 
 
10625
            # Commands to make compiler produce verbose output that lists
 
10626
            # what "hidden" libraries, object files and flags are used when
 
10627
            # linking a shared library.
 
10628
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10629
          fi
 
10630
 
 
10631
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10632
        fi
 
10633
        ;;
 
10634
    esac
 
10635
    ;;
 
10636
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10637
    archive_cmds_need_lc_CXX=no
 
10638
    ;;
 
10639
  tandem*)
 
10640
    case $cc_basename in
 
10641
      NCC)
 
10642
        # NonStop-UX NCC 3.20
 
10643
        # FIXME: insert proper C++ library support
 
10644
        ld_shlibs_CXX=no
 
10645
        ;;
 
10646
      *)
 
10647
        # FIXME: insert proper C++ library support
 
10648
        ld_shlibs_CXX=no
 
10649
        ;;
 
10650
    esac
 
10651
    ;;
 
10652
  vxworks*)
 
10653
    # FIXME: insert proper C++ library support
 
10654
    ld_shlibs_CXX=no
 
10655
    ;;
 
10656
  *)
 
10657
    # FIXME: insert proper C++ library support
 
10658
    ld_shlibs_CXX=no
 
10659
    ;;
 
10660
esac
 
10661
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10662
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10663
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10664
 
 
10665
GCC_CXX="$GXX"
 
10666
LD_CXX="$LD"
 
10667
 
 
10668
 
 
10669
cat > conftest.$ac_ext <<EOF
 
10670
class Foo
 
10671
{
 
10672
public:
 
10673
  Foo (void) { a = 0; }
 
10674
private:
 
10675
  int a;
 
10676
};
 
10677
EOF
 
10678
 
 
10679
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10680
  (eval $ac_compile) 2>&5
 
10681
  ac_status=$?
 
10682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10683
  (exit $ac_status); }; then
 
10684
  # Parse the compiler output and extract the necessary
 
10685
  # objects, libraries and library flags.
 
10686
 
 
10687
  # Sentinel used to keep track of whether or not we are before
 
10688
  # the conftest object file.
 
10689
  pre_test_object_deps_done=no
 
10690
 
 
10691
  # The `*' in the case matches for architectures that use `case' in
 
10692
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10693
  # eval without this substitution.
 
10694
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10695
 
 
10696
  for p in `eval $output_verbose_link_cmd`; do
 
10697
    case $p in
 
10698
 
 
10699
    -L* | -R* | -l*)
 
10700
       # Some compilers place space between "-{L,R}" and the path.
 
10701
       # Remove the space.
 
10702
       if test $p = "-L" \
 
10703
          || test $p = "-R"; then
 
10704
         prev=$p
 
10705
         continue
 
10706
       else
 
10707
         prev=
 
10708
       fi
 
10709
 
 
10710
       if test "$pre_test_object_deps_done" = no; then
 
10711
         case $p in
 
10712
         -L* | -R*)
 
10713
           # Internal compiler library paths should come after those
 
10714
           # provided the user.  The postdeps already come after the
 
10715
           # user supplied libs so there is no need to process them.
 
10716
           if test -z "$compiler_lib_search_path_CXX"; then
 
10717
             compiler_lib_search_path_CXX="${prev}${p}"
 
10718
           else
 
10719
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
10720
           fi
 
10721
           ;;
 
10722
         # The "-l" case would never come before the object being
 
10723
         # linked, so don't bother handling this case.
 
10724
         esac
 
10725
       else
 
10726
         if test -z "$postdeps_CXX"; then
 
10727
           postdeps_CXX="${prev}${p}"
 
10728
         else
 
10729
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
10730
         fi
 
10731
       fi
 
10732
       ;;
 
10733
 
 
10734
    *.$objext)
 
10735
       # This assumes that the test object file only shows up
 
10736
       # once in the compiler output.
 
10737
       if test "$p" = "conftest.$objext"; then
 
10738
         pre_test_object_deps_done=yes
 
10739
         continue
 
10740
       fi
 
10741
 
 
10742
       if test "$pre_test_object_deps_done" = no; then
 
10743
         if test -z "$predep_objects_CXX"; then
 
10744
           predep_objects_CXX="$p"
 
10745
         else
 
10746
           predep_objects_CXX="$predep_objects_CXX $p"
 
10747
         fi
 
10748
       else
 
10749
         if test -z "$postdep_objects_CXX"; then
 
10750
           postdep_objects_CXX="$p"
 
10751
         else
 
10752
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
10753
         fi
 
10754
       fi
 
10755
       ;;
 
10756
 
 
10757
    *) ;; # Ignore the rest.
 
10758
 
 
10759
    esac
 
10760
  done
 
10761
 
 
10762
  # Clean up.
 
10763
  rm -f a.out a.exe
 
10764
else
 
10765
  echo "libtool.m4: error: problem compiling CXX test program"
 
10766
fi
 
10767
 
 
10768
$rm -f confest.$objext
 
10769
 
 
10770
case " $postdeps_CXX " in
 
10771
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10772
esac
 
10773
 
 
10774
lt_prog_compiler_wl_CXX=
 
10775
lt_prog_compiler_pic_CXX=
 
10776
lt_prog_compiler_static_CXX=
 
10777
 
 
10778
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10779
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10780
 
 
10781
  # C++ specific cases for pic, static, wl, etc.
 
10782
  if test "$GXX" = yes; then
 
10783
    lt_prog_compiler_wl_CXX='-Wl,'
 
10784
    lt_prog_compiler_static_CXX='-static'
 
10785
 
 
10786
    case $host_os in
 
10787
    aix*)
 
10788
      # All AIX code is PIC.
 
10789
      if test "$host_cpu" = ia64; then
 
10790
        # AIX 5 now supports IA64 processor
 
10791
        lt_prog_compiler_static_CXX='-Bstatic'
 
10792
      fi
 
10793
      ;;
 
10794
    amigaos*)
 
10795
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10796
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10797
      # like `-m68040'.
 
10798
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10799
      ;;
 
10800
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10801
      # PIC is the default for these OSes.
 
10802
      ;;
 
10803
    mingw* | os2* | pw32*)
 
10804
      # This hack is so that the source file can tell whether it is being
 
10805
      # built for inclusion in a dll (and should export symbols for example).
 
10806
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10807
      ;;
 
10808
    darwin* | rhapsody*)
 
10809
      # PIC is the default on this platform
 
10810
      # Common symbols not allowed in MH_DYLIB files
 
10811
      lt_prog_compiler_pic_CXX='-fno-common'
 
10812
      ;;
 
10813
    *djgpp*)
 
10814
      # DJGPP does not support shared libraries at all
 
10815
      lt_prog_compiler_pic_CXX=
 
10816
      ;;
 
10817
    sysv4*MP*)
 
10818
      if test -d /usr/nec; then
 
10819
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10820
      fi
 
10821
      ;;
 
10822
    hpux*)
 
10823
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10824
      # not for PA HP-UX.
 
10825
      case "$host_cpu" in
 
10826
      hppa*64*|ia64*)
 
10827
        ;;
 
10828
      *)
 
10829
        lt_prog_compiler_pic_CXX='-fPIC'
 
10830
        ;;
 
10831
      esac
 
10832
      ;;
 
10833
    *)
 
10834
      lt_prog_compiler_pic_CXX='-fPIC'
 
10835
      ;;
 
10836
    esac
 
10837
  else
 
10838
    case $host_os in
 
10839
      aix4* | aix5*)
 
10840
        # All AIX code is PIC.
 
10841
        if test "$host_cpu" = ia64; then
 
10842
          # AIX 5 now supports IA64 processor
 
10843
          lt_prog_compiler_static_CXX='-Bstatic'
 
10844
        else
 
10845
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10846
        fi
 
10847
        ;;
 
10848
      chorus*)
 
10849
        case $cc_basename in
 
10850
        cxch68)
 
10851
          # Green Hills C++ Compiler
 
10852
          # _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"
 
10853
          ;;
 
10854
        esac
 
10855
        ;;
 
10856
      dgux*)
 
10857
        case $cc_basename in
 
10858
          ec++)
 
10859
            lt_prog_compiler_pic_CXX='-KPIC'
 
10860
            ;;
 
10861
          ghcx)
 
10862
            # Green Hills C++ Compiler
 
10863
            lt_prog_compiler_pic_CXX='-pic'
 
10864
            ;;
 
10865
          *)
 
10866
            ;;
 
10867
        esac
 
10868
        ;;
 
10869
      freebsd* | kfreebsd*-gnu)
 
10870
        # FreeBSD uses GNU C++
 
10871
        ;;
 
10872
      hpux9* | hpux10* | hpux11*)
 
10873
        case $cc_basename in
 
10874
          CC)
 
10875
            lt_prog_compiler_wl_CXX='-Wl,'
 
10876
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10877
            if test "$host_cpu" != ia64; then
 
10878
              lt_prog_compiler_pic_CXX='+Z'
 
10879
            fi
 
10880
            ;;
 
10881
          aCC)
 
10882
            lt_prog_compiler_wl_CXX='-Wl,'
 
10883
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10884
            case "$host_cpu" in
 
10885
            hppa*64*|ia64*)
 
10886
              # +Z the default
 
10887
              ;;
 
10888
            *)
 
10889
              lt_prog_compiler_pic_CXX='+Z'
 
10890
              ;;
 
10891
            esac
 
10892
            ;;
 
10893
          *)
 
10894
            ;;
 
10895
        esac
 
10896
        ;;
 
10897
      irix5* | irix6* | nonstopux*)
 
10898
        case $cc_basename in
 
10899
          CC)
 
10900
            lt_prog_compiler_wl_CXX='-Wl,'
 
10901
            lt_prog_compiler_static_CXX='-non_shared'
 
10902
            # CC pic flag -KPIC is the default.
 
10903
            ;;
 
10904
          *)
 
10905
            ;;
 
10906
        esac
 
10907
        ;;
 
10908
      linux*)
 
10909
        case $cc_basename in
 
10910
          KCC)
 
10911
            # KAI C++ Compiler
 
10912
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10913
            lt_prog_compiler_pic_CXX='-fPIC'
 
10914
            ;;
 
10915
          icpc)
 
10916
            # Intel C++
 
10917
            lt_prog_compiler_wl_CXX='-Wl,'
 
10918
            lt_prog_compiler_pic_CXX='-KPIC'
 
10919
            lt_prog_compiler_static_CXX='-static'
 
10920
            ;;
 
10921
          cxx)
 
10922
            # Compaq C++
 
10923
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10924
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10925
            lt_prog_compiler_pic_CXX=
 
10926
            lt_prog_compiler_static_CXX='-non_shared'
 
10927
            ;;
 
10928
          *)
 
10929
            ;;
 
10930
        esac
 
10931
        ;;
 
10932
      lynxos*)
 
10933
        ;;
 
10934
      m88k*)
 
10935
        ;;
 
10936
      mvs*)
 
10937
        case $cc_basename in
 
10938
          cxx)
 
10939
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
10940
            ;;
 
10941
          *)
 
10942
            ;;
 
10943
        esac
 
10944
        ;;
 
10945
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10946
        ;;
 
10947
      osf3* | osf4* | osf5*)
 
10948
        case $cc_basename in
 
10949
          KCC)
 
10950
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10951
            ;;
 
10952
          RCC)
 
10953
            # Rational C++ 2.4.1
 
10954
            lt_prog_compiler_pic_CXX='-pic'
 
10955
            ;;
 
10956
          cxx)
 
10957
            # Digital/Compaq C++
 
10958
            lt_prog_compiler_wl_CXX='-Wl,'
 
10959
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10960
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10961
            lt_prog_compiler_pic_CXX=
 
10962
            lt_prog_compiler_static_CXX='-non_shared'
 
10963
            ;;
 
10964
          *)
 
10965
            ;;
 
10966
        esac
 
10967
        ;;
 
10968
      psos*)
 
10969
        ;;
 
10970
      sco*)
 
10971
        case $cc_basename in
 
10972
          CC)
 
10973
            lt_prog_compiler_pic_CXX='-fPIC'
 
10974
            ;;
 
10975
          *)
 
10976
            ;;
 
10977
        esac
 
10978
        ;;
 
10979
      solaris*)
 
10980
        case $cc_basename in
 
10981
          CC)
 
10982
            # Sun C++ 4.2, 5.x and Centerline C++
 
10983
            lt_prog_compiler_pic_CXX='-KPIC'
 
10984
            lt_prog_compiler_static_CXX='-Bstatic'
 
10985
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
10986
            ;;
 
10987
          gcx)
 
10988
            # Green Hills C++ Compiler
 
10989
            lt_prog_compiler_pic_CXX='-PIC'
 
10990
            ;;
 
10991
          *)
 
10992
            ;;
 
10993
        esac
 
10994
        ;;
 
10995
      sunos4*)
 
10996
        case $cc_basename in
 
10997
          CC)
 
10998
            # Sun C++ 4.x
 
10999
            lt_prog_compiler_pic_CXX='-pic'
 
11000
            lt_prog_compiler_static_CXX='-Bstatic'
 
11001
            ;;
 
11002
          lcc)
 
11003
            # Lucid
 
11004
            lt_prog_compiler_pic_CXX='-pic'
 
11005
            ;;
 
11006
          *)
 
11007
            ;;
 
11008
        esac
 
11009
        ;;
 
11010
      tandem*)
 
11011
        case $cc_basename in
 
11012
          NCC)
 
11013
            # NonStop-UX NCC 3.20
 
11014
            lt_prog_compiler_pic_CXX='-KPIC'
 
11015
            ;;
 
11016
          *)
 
11017
            ;;
 
11018
        esac
 
11019
        ;;
 
11020
      unixware*)
 
11021
        ;;
 
11022
      vxworks*)
 
11023
        ;;
 
11024
      *)
 
11025
        lt_prog_compiler_can_build_shared_CXX=no
 
11026
        ;;
 
11027
    esac
 
11028
  fi
 
11029
 
 
11030
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11031
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11032
 
 
11033
#
 
11034
# Check to make sure the PIC flag actually works.
 
11035
#
 
11036
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11037
 
 
11038
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11039
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11040
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11042
else
 
11043
  lt_prog_compiler_pic_works_CXX=no
 
11044
  ac_outfile=conftest.$ac_objext
 
11045
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11046
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11047
   # Insert the option either (1) after the last *FLAGS variable, or
 
11048
   # (2) before a word containing "conftest.", or (3) at the end.
 
11049
   # Note that $ac_compile itself does not contain backslashes and begins
 
11050
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11051
   # The option is referenced via a variable to avoid confusing sed.
 
11052
   lt_compile=`echo "$ac_compile" | $SED \
 
11053
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11054
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11055
   -e 's:$: $lt_compiler_flag:'`
 
11056
   (eval echo "\"\$as_me:11056: $lt_compile\"" >&5)
 
11057
   (eval "$lt_compile" 2>conftest.err)
 
11058
   ac_status=$?
 
11059
   cat conftest.err >&5
 
11060
   echo "$as_me:11060: \$? = $ac_status" >&5
 
11061
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11062
     # The compiler can only warn and ignore the option if not recognized
 
11063
     # So say no if there are warnings
 
11064
     if test ! -s conftest.err; then
 
11065
       lt_prog_compiler_pic_works_CXX=yes
 
11066
     fi
 
11067
   fi
 
11068
   $rm conftest*
 
11069
 
 
11070
fi
 
11071
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11072
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11073
 
 
11074
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11075
    case $lt_prog_compiler_pic_CXX in
 
11076
     "" | " "*) ;;
 
11077
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11078
     esac
 
11079
else
 
11080
    lt_prog_compiler_pic_CXX=
 
11081
     lt_prog_compiler_can_build_shared_CXX=no
 
11082
fi
 
11083
 
 
11084
fi
 
11085
case "$host_os" in
 
11086
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11087
  *djgpp*)
 
11088
    lt_prog_compiler_pic_CXX=
 
11089
    ;;
 
11090
  *)
 
11091
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11092
    ;;
 
11093
esac
 
11094
 
 
11095
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11096
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11097
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11099
else
 
11100
  lt_cv_prog_compiler_c_o_CXX=no
 
11101
   $rm -r conftest 2>/dev/null
 
11102
   mkdir conftest
 
11103
   cd conftest
 
11104
   mkdir out
 
11105
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11106
 
 
11107
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11108
   # Insert the option either (1) after the last *FLAGS variable, or
 
11109
   # (2) before a word containing "conftest.", or (3) at the end.
 
11110
   # Note that $ac_compile itself does not contain backslashes and begins
 
11111
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11112
   lt_compile=`echo "$ac_compile" | $SED \
 
11113
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11114
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11115
   -e 's:$: $lt_compiler_flag:'`
 
11116
   (eval echo "\"\$as_me:11116: $lt_compile\"" >&5)
 
11117
   (eval "$lt_compile" 2>out/conftest.err)
 
11118
   ac_status=$?
 
11119
   cat out/conftest.err >&5
 
11120
   echo "$as_me:11120: \$? = $ac_status" >&5
 
11121
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11122
   then
 
11123
     # The compiler can only warn and ignore the option if not recognized
 
11124
     # So say no if there are warnings
 
11125
     if test ! -s out/conftest.err; then
 
11126
       lt_cv_prog_compiler_c_o_CXX=yes
 
11127
     fi
 
11128
   fi
 
11129
   chmod u+w .
 
11130
   $rm conftest*
 
11131
   # SGI C++ compiler will create directory out/ii_files/ for
 
11132
   # template instantiation
 
11133
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11134
   $rm out/* && rmdir out
 
11135
   cd ..
 
11136
   rmdir conftest
 
11137
   $rm conftest*
 
11138
 
 
11139
fi
 
11140
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11141
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11142
 
 
11143
 
 
11144
hard_links="nottested"
 
11145
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11146
  # do not overwrite the value of need_locks provided by the user
 
11147
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11148
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11149
  hard_links=yes
 
11150
  $rm conftest*
 
11151
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11152
  touch conftest.a
 
11153
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11154
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11155
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11156
echo "${ECHO_T}$hard_links" >&6
 
11157
  if test "$hard_links" = no; then
 
11158
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11159
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11160
    need_locks=warn
 
11161
  fi
 
11162
else
 
11163
  need_locks=no
 
11164
fi
 
11165
 
 
11166
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11167
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11168
 
 
11169
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11170
  case $host_os in
 
11171
  aix4* | aix5*)
 
11172
    # If we're using GNU nm, then we don't want the "-C" option.
 
11173
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11174
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11175
      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'
 
11176
    else
 
11177
      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'
 
11178
    fi
 
11179
    ;;
 
11180
  pw32*)
 
11181
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11182
  ;;
 
11183
  cygwin* | mingw*)
 
11184
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11185
  ;;
 
11186
  linux*)
 
11187
    link_all_deplibs_CXX=no
 
11188
  ;;
 
11189
  *)
 
11190
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11191
  ;;
 
11192
  esac
 
11193
 
 
11194
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11195
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11196
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11197
 
 
11198
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11199
if test "$GCC" = yes; then
 
11200
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11201
fi
 
11202
 
 
11203
#
 
11204
# Do we need to explicitly link libc?
 
11205
#
 
11206
case "x$archive_cmds_need_lc_CXX" in
 
11207
x|xyes)
 
11208
  # Assume -lc should be added
 
11209
  archive_cmds_need_lc_CXX=yes
 
11210
 
 
11211
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11212
    case $archive_cmds_CXX in
 
11213
    *'~'*)
 
11214
      # FIXME: we may have to deal with multi-command sequences.
 
11215
      ;;
 
11216
    '$CC '*)
 
11217
      # Test whether the compiler implicitly links with -lc since on some
 
11218
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11219
      # to ld, don't add -lc before -lgcc.
 
11220
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11221
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11222
      $rm conftest*
 
11223
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11224
 
 
11225
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11226
  (eval $ac_compile) 2>&5
 
11227
  ac_status=$?
 
11228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11229
  (exit $ac_status); } 2>conftest.err; then
 
11230
        soname=conftest
 
11231
        lib=conftest
 
11232
        libobjs=conftest.$ac_objext
 
11233
        deplibs=
 
11234
        wl=$lt_prog_compiler_wl_CXX
 
11235
        compiler_flags=-v
 
11236
        linker_flags=-v
 
11237
        verstring=
 
11238
        output_objdir=.
 
11239
        libname=conftest
 
11240
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11241
        allow_undefined_flag_CXX=
 
11242
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11243
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11244
  ac_status=$?
 
11245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11246
  (exit $ac_status); }
 
11247
        then
 
11248
          archive_cmds_need_lc_CXX=no
 
11249
        else
 
11250
          archive_cmds_need_lc_CXX=yes
 
11251
        fi
 
11252
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11253
      else
 
11254
        cat conftest.err 1>&5
 
11255
      fi
 
11256
      $rm conftest*
 
11257
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11258
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11259
      ;;
 
11260
    esac
 
11261
  fi
 
11262
  ;;
 
11263
esac
 
11264
 
 
11265
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11266
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11267
library_names_spec=
 
11268
libname_spec='lib$name'
 
11269
soname_spec=
 
11270
shrext_cmds=".so"
 
11271
postinstall_cmds=
 
11272
postuninstall_cmds=
 
11273
finish_cmds=
 
11274
finish_eval=
 
11275
shlibpath_var=
 
11276
shlibpath_overrides_runpath=unknown
 
11277
version_type=none
 
11278
dynamic_linker="$host_os ld.so"
 
11279
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11280
if test "$GCC" = yes; then
 
11281
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11282
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11283
    # if the path contains ";" then we assume it to be the separator
 
11284
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11285
    # assumed that no part of a normal pathname contains ";" but that should
 
11286
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11287
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11288
  else
 
11289
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11290
  fi
 
11291
else
 
11292
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11293
fi
 
11294
need_lib_prefix=unknown
 
11295
hardcode_into_libs=no
 
11296
 
 
11297
# when you set need_version to no, make sure it does not cause -set_version
 
11298
# flags to be left without arguments
 
11299
need_version=unknown
 
11300
 
 
11301
case $host_os in
 
11302
aix3*)
 
11303
  version_type=linux
 
11304
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11305
  shlibpath_var=LIBPATH
 
11306
 
 
11307
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11308
  soname_spec='${libname}${release}${shared_ext}$major'
 
11309
  ;;
 
11310
 
 
11311
aix4* | aix5*)
 
11312
  version_type=linux
 
11313
  need_lib_prefix=no
 
11314
  need_version=no
 
11315
  hardcode_into_libs=yes
 
11316
  if test "$host_cpu" = ia64; then
 
11317
    # AIX 5 supports IA64
 
11318
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11319
    shlibpath_var=LD_LIBRARY_PATH
 
11320
  else
 
11321
    # With GCC up to 2.95.x, collect2 would create an import file
 
11322
    # for dependence libraries.  The import file would start with
 
11323
    # the line `#! .'.  This would cause the generated library to
 
11324
    # depend on `.', always an invalid library.  This was fixed in
 
11325
    # development snapshots of GCC prior to 3.0.
 
11326
    case $host_os in
 
11327
      aix4 | aix4.[01] | aix4.[01].*)
 
11328
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11329
           echo ' yes '
 
11330
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11331
        :
 
11332
      else
 
11333
        can_build_shared=no
 
11334
      fi
 
11335
      ;;
 
11336
    esac
 
11337
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11338
    # soname into executable. Probably we can add versioning support to
 
11339
    # collect2, so additional links can be useful in future.
 
11340
    if test "$aix_use_runtimelinking" = yes; then
 
11341
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11342
      # instead of lib<name>.a to let people know that these are not
 
11343
      # typical AIX shared libraries.
 
11344
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11345
    else
 
11346
      # We preserve .a as extension for shared libraries through AIX4.2
 
11347
      # and later when we are not doing run time linking.
 
11348
      library_names_spec='${libname}${release}.a $libname.a'
 
11349
      soname_spec='${libname}${release}${shared_ext}$major'
 
11350
    fi
 
11351
    shlibpath_var=LIBPATH
 
11352
  fi
 
11353
  ;;
 
11354
 
 
11355
amigaos*)
 
11356
  library_names_spec='$libname.ixlibrary $libname.a'
 
11357
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11358
  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'
 
11359
  ;;
 
11360
 
 
11361
beos*)
 
11362
  library_names_spec='${libname}${shared_ext}'
 
11363
  dynamic_linker="$host_os ld.so"
 
11364
  shlibpath_var=LIBRARY_PATH
 
11365
  ;;
 
11366
 
 
11367
bsdi4*)
 
11368
  version_type=linux
 
11369
  need_version=no
 
11370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11371
  soname_spec='${libname}${release}${shared_ext}$major'
 
11372
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11373
  shlibpath_var=LD_LIBRARY_PATH
 
11374
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11375
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11376
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11377
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11378
  # libtool to hard-code these into programs
 
11379
  ;;
 
11380
 
 
11381
cygwin* | mingw* | pw32*)
 
11382
  version_type=windows
 
11383
  shrext_cmds=".dll"
 
11384
  need_version=no
 
11385
  need_lib_prefix=no
 
11386
 
 
11387
  case $GCC,$host_os in
 
11388
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11389
    library_names_spec='$libname.dll.a'
 
11390
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11391
    postinstall_cmds='base_file=`basename \${file}`~
 
11392
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11393
      dldir=$destdir/`dirname \$dlpath`~
 
11394
      test -d \$dldir || mkdir -p \$dldir~
 
11395
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11396
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11397
      dlpath=$dir/\$dldll~
 
11398
       $rm \$dlpath'
 
11399
    shlibpath_overrides_runpath=yes
 
11400
 
 
11401
    case $host_os in
 
11402
    cygwin*)
 
11403
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11404
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11405
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11406
      ;;
 
11407
    mingw*)
 
11408
      # MinGW DLLs use traditional 'lib' prefix
 
11409
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11410
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11411
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11412
        # It is most probably a Windows format PATH printed by
 
11413
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11414
        # path with ; separators, and with drive letters. We can handle the
 
11415
        # drive letters (cygwin fileutils understands them), so leave them,
 
11416
        # especially as we might pass files found there to a mingw objdump,
 
11417
        # which wouldn't understand a cygwinified path. Ahh.
 
11418
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11419
      else
 
11420
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11421
      fi
 
11422
      ;;
 
11423
    pw32*)
 
11424
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11425
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11426
      ;;
 
11427
    esac
 
11428
    ;;
 
11429
 
 
11430
  *)
 
11431
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11432
    ;;
 
11433
  esac
 
11434
  dynamic_linker='Win32 ld.exe'
 
11435
  # FIXME: first we should search . and the directory the executable is in
 
11436
  shlibpath_var=PATH
 
11437
  ;;
 
11438
 
 
11439
darwin* | rhapsody*)
 
11440
  dynamic_linker="$host_os dyld"
 
11441
  version_type=darwin
 
11442
  need_lib_prefix=no
 
11443
  need_version=no
 
11444
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11445
  soname_spec='${libname}${release}${major}$shared_ext'
 
11446
  shlibpath_overrides_runpath=yes
 
11447
  shlibpath_var=DYLD_LIBRARY_PATH
 
11448
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11449
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11450
  if test "$GCC" = yes; then
 
11451
    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"`
 
11452
  else
 
11453
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11454
  fi
 
11455
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11456
  ;;
 
11457
 
 
11458
dgux*)
 
11459
  version_type=linux
 
11460
  need_lib_prefix=no
 
11461
  need_version=no
 
11462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11463
  soname_spec='${libname}${release}${shared_ext}$major'
 
11464
  shlibpath_var=LD_LIBRARY_PATH
 
11465
  ;;
 
11466
 
 
11467
freebsd1*)
 
11468
  dynamic_linker=no
 
11469
  ;;
 
11470
 
 
11471
kfreebsd*-gnu)
 
11472
  version_type=linux
 
11473
  need_lib_prefix=no
 
11474
  need_version=no
 
11475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11476
  soname_spec='${libname}${release}${shared_ext}$major'
 
11477
  shlibpath_var=LD_LIBRARY_PATH
 
11478
  shlibpath_overrides_runpath=no
 
11479
  hardcode_into_libs=yes
 
11480
  dynamic_linker='GNU ld.so'
 
11481
  ;;
 
11482
 
 
11483
freebsd*)
 
11484
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11485
  version_type=freebsd-$objformat
 
11486
  case $version_type in
 
11487
    freebsd-elf*)
 
11488
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11489
      need_version=no
 
11490
      need_lib_prefix=no
 
11491
      ;;
 
11492
    freebsd-*)
 
11493
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11494
      need_version=yes
 
11495
      ;;
 
11496
  esac
 
11497
  shlibpath_var=LD_LIBRARY_PATH
 
11498
  case $host_os in
 
11499
  freebsd2*)
 
11500
    shlibpath_overrides_runpath=yes
 
11501
    ;;
 
11502
  freebsd3.01* | freebsdelf3.01*)
 
11503
    shlibpath_overrides_runpath=yes
 
11504
    hardcode_into_libs=yes
 
11505
    ;;
 
11506
  *) # from 3.2 on
 
11507
    shlibpath_overrides_runpath=no
 
11508
    hardcode_into_libs=yes
 
11509
    ;;
 
11510
  esac
 
11511
  ;;
 
11512
 
 
11513
gnu*)
 
11514
  version_type=linux
 
11515
  need_lib_prefix=no
 
11516
  need_version=no
 
11517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11518
  soname_spec='${libname}${release}${shared_ext}$major'
 
11519
  shlibpath_var=LD_LIBRARY_PATH
 
11520
  hardcode_into_libs=yes
 
11521
  ;;
 
11522
 
 
11523
hpux9* | hpux10* | hpux11*)
 
11524
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11525
  # link against other versions.
 
11526
  version_type=sunos
 
11527
  need_lib_prefix=no
 
11528
  need_version=no
 
11529
  case "$host_cpu" in
 
11530
  ia64*)
 
11531
    shrext_cmds='.so'
 
11532
    hardcode_into_libs=yes
 
11533
    dynamic_linker="$host_os dld.so"
 
11534
    shlibpath_var=LD_LIBRARY_PATH
 
11535
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11536
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11537
    soname_spec='${libname}${release}${shared_ext}$major'
 
11538
    if test "X$HPUX_IA64_MODE" = X32; then
 
11539
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11540
    else
 
11541
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11542
    fi
 
11543
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11544
    ;;
 
11545
   hppa*64*)
 
11546
     shrext_cmds='.sl'
 
11547
     hardcode_into_libs=yes
 
11548
     dynamic_linker="$host_os dld.sl"
 
11549
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11550
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11551
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11552
     soname_spec='${libname}${release}${shared_ext}$major'
 
11553
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11554
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11555
     ;;
 
11556
   *)
 
11557
    shrext_cmds='.sl'
 
11558
    dynamic_linker="$host_os dld.sl"
 
11559
    shlibpath_var=SHLIB_PATH
 
11560
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11561
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11562
    soname_spec='${libname}${release}${shared_ext}$major'
 
11563
    ;;
 
11564
  esac
 
11565
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11566
  postinstall_cmds='chmod 555 $lib'
 
11567
  ;;
 
11568
 
 
11569
irix5* | irix6* | nonstopux*)
 
11570
  case $host_os in
 
11571
    nonstopux*) version_type=nonstopux ;;
 
11572
    *)
 
11573
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11574
                version_type=linux
 
11575
        else
 
11576
                version_type=irix
 
11577
        fi ;;
 
11578
  esac
 
11579
  need_lib_prefix=no
 
11580
  need_version=no
 
11581
  soname_spec='${libname}${release}${shared_ext}$major'
 
11582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11583
  case $host_os in
 
11584
  irix5* | nonstopux*)
 
11585
    libsuff= shlibsuff=
 
11586
    ;;
 
11587
  *)
 
11588
    case $LD in # libtool.m4 will add one of these switches to LD
 
11589
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11590
      libsuff= shlibsuff= libmagic=32-bit;;
 
11591
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11592
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11593
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11594
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11595
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11596
    esac
 
11597
    ;;
 
11598
  esac
 
11599
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11600
  shlibpath_overrides_runpath=no
 
11601
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11602
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11603
  hardcode_into_libs=yes
 
11604
  ;;
 
11605
 
 
11606
# No shared lib support for Linux oldld, aout, or coff.
 
11607
linux*oldld* | linux*aout* | linux*coff*)
 
11608
  dynamic_linker=no
 
11609
  ;;
 
11610
 
 
11611
# This must be Linux ELF.
 
11612
linux*)
 
11613
  version_type=linux
 
11614
  need_lib_prefix=no
 
11615
  need_version=no
 
11616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11617
  soname_spec='${libname}${release}${shared_ext}$major'
 
11618
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11619
  shlibpath_var=LD_LIBRARY_PATH
 
11620
  shlibpath_overrides_runpath=no
 
11621
  # This implies no fast_install, which is unacceptable.
 
11622
  # Some rework will be needed to allow for fast_install
 
11623
  # before this can be enabled.
 
11624
  hardcode_into_libs=yes
 
11625
 
 
11626
  # Append ld.so.conf contents to the search path
 
11627
  if test -f /etc/ld.so.conf; then
 
11628
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
11629
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11630
  fi
 
11631
 
 
11632
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11633
  # powerpc, because MkLinux only supported shared libraries with the
 
11634
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11635
  # most powerpc-linux boxes support dynamic linking these days and
 
11636
  # people can always --disable-shared, the test was removed, and we
 
11637
  # assume the GNU/Linux dynamic linker is in use.
 
11638
  dynamic_linker='GNU/Linux ld.so'
 
11639
  ;;
 
11640
 
 
11641
netbsdelf*-gnu)
 
11642
  version_type=linux
 
11643
  need_lib_prefix=no
 
11644
  need_version=no
 
11645
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11646
  soname_spec='${libname}${release}${shared_ext}$major'
 
11647
  shlibpath_var=LD_LIBRARY_PATH
 
11648
  shlibpath_overrides_runpath=no
 
11649
  hardcode_into_libs=yes
 
11650
  dynamic_linker='NetBSD ld.elf_so'
 
11651
  ;;
 
11652
 
 
11653
knetbsd*-gnu)
 
11654
  version_type=linux
 
11655
  need_lib_prefix=no
 
11656
  need_version=no
 
11657
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11658
  soname_spec='${libname}${release}${shared_ext}$major'
 
11659
  shlibpath_var=LD_LIBRARY_PATH
 
11660
  shlibpath_overrides_runpath=no
 
11661
  hardcode_into_libs=yes
 
11662
  dynamic_linker='GNU ld.so'
 
11663
  ;;
 
11664
 
 
11665
netbsd*)
 
11666
  version_type=sunos
 
11667
  need_lib_prefix=no
 
11668
  need_version=no
 
11669
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11670
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11671
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11672
    dynamic_linker='NetBSD (a.out) ld.so'
 
11673
  else
 
11674
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11675
    soname_spec='${libname}${release}${shared_ext}$major'
 
11676
    dynamic_linker='NetBSD ld.elf_so'
 
11677
  fi
 
11678
  shlibpath_var=LD_LIBRARY_PATH
 
11679
  shlibpath_overrides_runpath=yes
 
11680
  hardcode_into_libs=yes
 
11681
  ;;
 
11682
 
 
11683
newsos6)
 
11684
  version_type=linux
 
11685
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11686
  shlibpath_var=LD_LIBRARY_PATH
 
11687
  shlibpath_overrides_runpath=yes
 
11688
  ;;
 
11689
 
 
11690
nto-qnx*)
 
11691
  version_type=linux
 
11692
  need_lib_prefix=no
 
11693
  need_version=no
 
11694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11695
  soname_spec='${libname}${release}${shared_ext}$major'
 
11696
  shlibpath_var=LD_LIBRARY_PATH
 
11697
  shlibpath_overrides_runpath=yes
 
11698
  ;;
 
11699
 
 
11700
openbsd*)
 
11701
  version_type=sunos
 
11702
  need_lib_prefix=no
 
11703
  need_version=yes
 
11704
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11705
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11706
  shlibpath_var=LD_LIBRARY_PATH
 
11707
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11708
    case $host_os in
 
11709
      openbsd2.[89] | openbsd2.[89].*)
 
11710
        shlibpath_overrides_runpath=no
 
11711
        ;;
 
11712
      *)
 
11713
        shlibpath_overrides_runpath=yes
 
11714
        ;;
 
11715
      esac
 
11716
  else
 
11717
    shlibpath_overrides_runpath=yes
 
11718
  fi
 
11719
  ;;
 
11720
 
 
11721
os2*)
 
11722
  libname_spec='$name'
 
11723
  shrext_cmds=".dll"
 
11724
  need_lib_prefix=no
 
11725
  library_names_spec='$libname${shared_ext} $libname.a'
 
11726
  dynamic_linker='OS/2 ld.exe'
 
11727
  shlibpath_var=LIBPATH
 
11728
  ;;
 
11729
 
 
11730
osf3* | osf4* | osf5*)
 
11731
  version_type=osf
 
11732
  need_lib_prefix=no
 
11733
  need_version=no
 
11734
  soname_spec='${libname}${release}${shared_ext}$major'
 
11735
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11736
  shlibpath_var=LD_LIBRARY_PATH
 
11737
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11738
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11739
  ;;
 
11740
 
 
11741
sco3.2v5*)
 
11742
  version_type=osf
 
11743
  soname_spec='${libname}${release}${shared_ext}$major'
 
11744
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11745
  shlibpath_var=LD_LIBRARY_PATH
 
11746
  ;;
 
11747
 
 
11748
solaris*)
 
11749
  version_type=linux
 
11750
  need_lib_prefix=no
 
11751
  need_version=no
 
11752
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11753
  soname_spec='${libname}${release}${shared_ext}$major'
 
11754
  shlibpath_var=LD_LIBRARY_PATH
 
11755
  shlibpath_overrides_runpath=yes
 
11756
  hardcode_into_libs=yes
 
11757
  # ldd complains unless libraries are executable
 
11758
  postinstall_cmds='chmod +x $lib'
 
11759
  ;;
 
11760
 
 
11761
sunos4*)
 
11762
  version_type=sunos
 
11763
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11764
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11765
  shlibpath_var=LD_LIBRARY_PATH
 
11766
  shlibpath_overrides_runpath=yes
 
11767
  if test "$with_gnu_ld" = yes; then
 
11768
    need_lib_prefix=no
 
11769
  fi
 
11770
  need_version=yes
 
11771
  ;;
 
11772
 
 
11773
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11774
  version_type=linux
 
11775
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11776
  soname_spec='${libname}${release}${shared_ext}$major'
 
11777
  shlibpath_var=LD_LIBRARY_PATH
 
11778
  case $host_vendor in
 
11779
    sni)
 
11780
      shlibpath_overrides_runpath=no
 
11781
      need_lib_prefix=no
 
11782
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11783
      runpath_var=LD_RUN_PATH
 
11784
      ;;
 
11785
    siemens)
 
11786
      need_lib_prefix=no
 
11787
      ;;
 
11788
    motorola)
 
11789
      need_lib_prefix=no
 
11790
      need_version=no
 
11791
      shlibpath_overrides_runpath=no
 
11792
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11793
      ;;
 
11794
  esac
 
11795
  ;;
 
11796
 
 
11797
sysv4*MP*)
 
11798
  if test -d /usr/nec ;then
 
11799
    version_type=linux
 
11800
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11801
    soname_spec='$libname${shared_ext}.$major'
 
11802
    shlibpath_var=LD_LIBRARY_PATH
 
11803
  fi
 
11804
  ;;
 
11805
 
 
11806
uts4*)
 
11807
  version_type=linux
 
11808
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11809
  soname_spec='${libname}${release}${shared_ext}$major'
 
11810
  shlibpath_var=LD_LIBRARY_PATH
 
11811
  ;;
 
11812
 
 
11813
*)
 
11814
  dynamic_linker=no
 
11815
  ;;
 
11816
esac
 
11817
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11818
echo "${ECHO_T}$dynamic_linker" >&6
 
11819
test "$dynamic_linker" = no && can_build_shared=no
 
11820
 
 
11821
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11822
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
11823
hardcode_action_CXX=
 
11824
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
11825
   test -n "$runpath_var CXX" || \
 
11826
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
11827
 
 
11828
  # We can hardcode non-existant directories.
 
11829
  if test "$hardcode_direct_CXX" != no &&
 
11830
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11831
     # have to relink, otherwise we might link with an installed library
 
11832
     # when we should be linking with a yet-to-be-installed one
 
11833
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
11834
     test "$hardcode_minus_L_CXX" != no; then
 
11835
    # Linking always hardcodes the temporary library directory.
 
11836
    hardcode_action_CXX=relink
 
11837
  else
 
11838
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11839
    hardcode_action_CXX=immediate
 
11840
  fi
 
11841
else
 
11842
  # We cannot hardcode anything, or else we can only hardcode existing
 
11843
  # directories.
 
11844
  hardcode_action_CXX=unsupported
 
11845
fi
 
11846
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11847
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
11848
 
 
11849
if test "$hardcode_action_CXX" = relink; then
 
11850
  # Fast installation is not supported
 
11851
  enable_fast_install=no
 
11852
elif test "$shlibpath_overrides_runpath" = yes ||
 
11853
     test "$enable_shared" = no; then
 
11854
  # Fast installation is not necessary
 
11855
  enable_fast_install=needless
 
11856
fi
 
11857
 
 
11858
striplib=
 
11859
old_striplib=
 
11860
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11861
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11862
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11863
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11864
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11865
  echo "$as_me:$LINENO: result: yes" >&5
 
11866
echo "${ECHO_T}yes" >&6
 
11867
else
 
11868
# FIXME - insert some real tests, host_os isn't really good enough
 
11869
  case $host_os in
 
11870
   darwin*)
 
11871
       if test -n "$STRIP" ; then
 
11872
         striplib="$STRIP -x"
 
11873
         echo "$as_me:$LINENO: result: yes" >&5
 
11874
echo "${ECHO_T}yes" >&6
 
11875
       else
 
11876
  echo "$as_me:$LINENO: result: no" >&5
 
11877
echo "${ECHO_T}no" >&6
 
11878
fi
 
11879
       ;;
 
11880
   *)
 
11881
  echo "$as_me:$LINENO: result: no" >&5
 
11882
echo "${ECHO_T}no" >&6
 
11883
    ;;
 
11884
  esac
 
11885
fi
 
11886
 
 
11887
if test "x$enable_dlopen" != xyes; then
 
11888
  enable_dlopen=unknown
 
11889
  enable_dlopen_self=unknown
 
11890
  enable_dlopen_self_static=unknown
 
11891
else
 
11892
  lt_cv_dlopen=no
 
11893
  lt_cv_dlopen_libs=
 
11894
 
 
11895
  case $host_os in
 
11896
  beos*)
 
11897
    lt_cv_dlopen="load_add_on"
 
11898
    lt_cv_dlopen_libs=
 
11899
    lt_cv_dlopen_self=yes
 
11900
    ;;
 
11901
 
 
11902
  mingw* | pw32*)
 
11903
    lt_cv_dlopen="LoadLibrary"
 
11904
    lt_cv_dlopen_libs=
 
11905
   ;;
 
11906
 
 
11907
  cygwin*)
 
11908
    lt_cv_dlopen="dlopen"
 
11909
    lt_cv_dlopen_libs=
 
11910
   ;;
 
11911
 
 
11912
  darwin*)
 
11913
  # if libdl is installed we need to link against it
 
11914
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11915
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11916
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11918
else
 
11919
  ac_check_lib_save_LIBS=$LIBS
 
11920
LIBS="-ldl  $LIBS"
 
11921
cat >conftest.$ac_ext <<_ACEOF
 
11922
/* confdefs.h.  */
 
11923
_ACEOF
 
11924
cat confdefs.h >>conftest.$ac_ext
 
11925
cat >>conftest.$ac_ext <<_ACEOF
 
11926
/* end confdefs.h.  */
 
11927
 
 
11928
/* Override any gcc2 internal prototype to avoid an error.  */
 
11929
#ifdef __cplusplus
 
11930
extern "C"
 
11931
#endif
 
11932
/* We use char because int might match the return type of a gcc2
 
11933
   builtin and then its argument prototype would still apply.  */
 
11934
char dlopen ();
 
11935
int
 
11936
main ()
 
11937
{
 
11938
dlopen ();
 
11939
  ;
 
11940
  return 0;
 
11941
}
 
11942
_ACEOF
 
11943
rm -f conftest.$ac_objext conftest$ac_exeext
 
11944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11945
  (eval $ac_link) 2>conftest.er1
 
11946
  ac_status=$?
 
11947
  grep -v '^ *+' conftest.er1 >conftest.err
 
11948
  rm -f conftest.er1
 
11949
  cat conftest.err >&5
 
11950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11951
  (exit $ac_status); } &&
 
11952
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11954
  (eval $ac_try) 2>&5
 
11955
  ac_status=$?
 
11956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11957
  (exit $ac_status); }; } &&
 
11958
         { ac_try='test -s conftest$ac_exeext'
 
11959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11960
  (eval $ac_try) 2>&5
 
11961
  ac_status=$?
 
11962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11963
  (exit $ac_status); }; }; then
 
11964
  ac_cv_lib_dl_dlopen=yes
 
11965
else
 
11966
  echo "$as_me: failed program was:" >&5
 
11967
sed 's/^/| /' conftest.$ac_ext >&5
 
11968
 
 
11969
ac_cv_lib_dl_dlopen=no
 
11970
fi
 
11971
rm -f conftest.err conftest.$ac_objext \
 
11972
      conftest$ac_exeext conftest.$ac_ext
 
11973
LIBS=$ac_check_lib_save_LIBS
 
11974
fi
 
11975
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11976
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11977
if test $ac_cv_lib_dl_dlopen = yes; then
 
11978
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11979
else
 
11980
 
 
11981
    lt_cv_dlopen="dyld"
 
11982
    lt_cv_dlopen_libs=
 
11983
    lt_cv_dlopen_self=yes
 
11984
 
 
11985
fi
 
11986
 
 
11987
   ;;
 
11988
 
 
11989
  *)
 
11990
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11991
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11992
if test "${ac_cv_func_shl_load+set}" = set; then
 
11993
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11994
else
 
11995
  cat >conftest.$ac_ext <<_ACEOF
 
11996
/* confdefs.h.  */
 
11997
_ACEOF
 
11998
cat confdefs.h >>conftest.$ac_ext
 
11999
cat >>conftest.$ac_ext <<_ACEOF
 
12000
/* end confdefs.h.  */
 
12001
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12002
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12003
#define shl_load innocuous_shl_load
 
12004
 
 
12005
/* System header to define __stub macros and hopefully few prototypes,
 
12006
    which can conflict with char shl_load (); below.
 
12007
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12008
    <limits.h> exists even on freestanding compilers.  */
 
12009
 
 
12010
#ifdef __STDC__
 
12011
# include <limits.h>
 
12012
#else
 
12013
# include <assert.h>
 
12014
#endif
 
12015
 
 
12016
#undef shl_load
 
12017
 
 
12018
/* Override any gcc2 internal prototype to avoid an error.  */
 
12019
#ifdef __cplusplus
 
12020
extern "C"
 
12021
{
 
12022
#endif
 
12023
/* We use char because int might match the return type of a gcc2
 
12024
   builtin and then its argument prototype would still apply.  */
 
12025
char shl_load ();
 
12026
/* The GNU C library defines this for functions which it implements
 
12027
    to always fail with ENOSYS.  Some functions are actually named
 
12028
    something starting with __ and the normal name is an alias.  */
 
12029
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12030
choke me
 
12031
#else
 
12032
char (*f) () = shl_load;
 
12033
#endif
 
12034
#ifdef __cplusplus
 
12035
}
 
12036
#endif
 
12037
 
 
12038
int
 
12039
main ()
 
12040
{
 
12041
return f != shl_load;
 
12042
  ;
 
12043
  return 0;
 
12044
}
 
12045
_ACEOF
 
12046
rm -f conftest.$ac_objext conftest$ac_exeext
 
12047
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12048
  (eval $ac_link) 2>conftest.er1
 
12049
  ac_status=$?
 
12050
  grep -v '^ *+' conftest.er1 >conftest.err
 
12051
  rm -f conftest.er1
 
12052
  cat conftest.err >&5
 
12053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12054
  (exit $ac_status); } &&
 
12055
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12057
  (eval $ac_try) 2>&5
 
12058
  ac_status=$?
 
12059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12060
  (exit $ac_status); }; } &&
 
12061
         { ac_try='test -s conftest$ac_exeext'
 
12062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12063
  (eval $ac_try) 2>&5
 
12064
  ac_status=$?
 
12065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12066
  (exit $ac_status); }; }; then
 
12067
  ac_cv_func_shl_load=yes
 
12068
else
 
12069
  echo "$as_me: failed program was:" >&5
 
12070
sed 's/^/| /' conftest.$ac_ext >&5
 
12071
 
 
12072
ac_cv_func_shl_load=no
 
12073
fi
 
12074
rm -f conftest.err conftest.$ac_objext \
 
12075
      conftest$ac_exeext conftest.$ac_ext
 
12076
fi
 
12077
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12078
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12079
if test $ac_cv_func_shl_load = yes; then
 
12080
  lt_cv_dlopen="shl_load"
 
12081
else
 
12082
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12083
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12084
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12086
else
 
12087
  ac_check_lib_save_LIBS=$LIBS
 
12088
LIBS="-ldld  $LIBS"
 
12089
cat >conftest.$ac_ext <<_ACEOF
 
12090
/* confdefs.h.  */
 
12091
_ACEOF
 
12092
cat confdefs.h >>conftest.$ac_ext
 
12093
cat >>conftest.$ac_ext <<_ACEOF
 
12094
/* end confdefs.h.  */
 
12095
 
 
12096
/* Override any gcc2 internal prototype to avoid an error.  */
 
12097
#ifdef __cplusplus
 
12098
extern "C"
 
12099
#endif
 
12100
/* We use char because int might match the return type of a gcc2
 
12101
   builtin and then its argument prototype would still apply.  */
 
12102
char shl_load ();
 
12103
int
 
12104
main ()
 
12105
{
 
12106
shl_load ();
 
12107
  ;
 
12108
  return 0;
 
12109
}
 
12110
_ACEOF
 
12111
rm -f conftest.$ac_objext conftest$ac_exeext
 
12112
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12113
  (eval $ac_link) 2>conftest.er1
 
12114
  ac_status=$?
 
12115
  grep -v '^ *+' conftest.er1 >conftest.err
 
12116
  rm -f conftest.er1
 
12117
  cat conftest.err >&5
 
12118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12119
  (exit $ac_status); } &&
 
12120
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12122
  (eval $ac_try) 2>&5
 
12123
  ac_status=$?
 
12124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12125
  (exit $ac_status); }; } &&
 
12126
         { ac_try='test -s conftest$ac_exeext'
 
12127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12128
  (eval $ac_try) 2>&5
 
12129
  ac_status=$?
 
12130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12131
  (exit $ac_status); }; }; then
 
12132
  ac_cv_lib_dld_shl_load=yes
 
12133
else
 
12134
  echo "$as_me: failed program was:" >&5
 
12135
sed 's/^/| /' conftest.$ac_ext >&5
 
12136
 
 
12137
ac_cv_lib_dld_shl_load=no
 
12138
fi
 
12139
rm -f conftest.err conftest.$ac_objext \
 
12140
      conftest$ac_exeext conftest.$ac_ext
 
12141
LIBS=$ac_check_lib_save_LIBS
 
12142
fi
 
12143
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12144
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12145
if test $ac_cv_lib_dld_shl_load = yes; then
 
12146
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12147
else
 
12148
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12149
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12150
if test "${ac_cv_func_dlopen+set}" = set; then
 
12151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12152
else
 
12153
  cat >conftest.$ac_ext <<_ACEOF
 
12154
/* confdefs.h.  */
 
12155
_ACEOF
 
12156
cat confdefs.h >>conftest.$ac_ext
 
12157
cat >>conftest.$ac_ext <<_ACEOF
 
12158
/* end confdefs.h.  */
 
12159
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12160
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12161
#define dlopen innocuous_dlopen
 
12162
 
 
12163
/* System header to define __stub macros and hopefully few prototypes,
 
12164
    which can conflict with char dlopen (); below.
 
12165
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12166
    <limits.h> exists even on freestanding compilers.  */
 
12167
 
 
12168
#ifdef __STDC__
 
12169
# include <limits.h>
 
12170
#else
 
12171
# include <assert.h>
 
12172
#endif
 
12173
 
 
12174
#undef dlopen
 
12175
 
 
12176
/* Override any gcc2 internal prototype to avoid an error.  */
 
12177
#ifdef __cplusplus
 
12178
extern "C"
 
12179
{
 
12180
#endif
 
12181
/* We use char because int might match the return type of a gcc2
 
12182
   builtin and then its argument prototype would still apply.  */
 
12183
char dlopen ();
 
12184
/* The GNU C library defines this for functions which it implements
 
12185
    to always fail with ENOSYS.  Some functions are actually named
 
12186
    something starting with __ and the normal name is an alias.  */
 
12187
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12188
choke me
 
12189
#else
 
12190
char (*f) () = dlopen;
 
12191
#endif
 
12192
#ifdef __cplusplus
 
12193
}
 
12194
#endif
 
12195
 
 
12196
int
 
12197
main ()
 
12198
{
 
12199
return f != dlopen;
 
12200
  ;
 
12201
  return 0;
 
12202
}
 
12203
_ACEOF
 
12204
rm -f conftest.$ac_objext conftest$ac_exeext
 
12205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12206
  (eval $ac_link) 2>conftest.er1
 
12207
  ac_status=$?
 
12208
  grep -v '^ *+' conftest.er1 >conftest.err
 
12209
  rm -f conftest.er1
 
12210
  cat conftest.err >&5
 
12211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12212
  (exit $ac_status); } &&
 
12213
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12215
  (eval $ac_try) 2>&5
 
12216
  ac_status=$?
 
12217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12218
  (exit $ac_status); }; } &&
 
12219
         { ac_try='test -s conftest$ac_exeext'
 
12220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12221
  (eval $ac_try) 2>&5
 
12222
  ac_status=$?
 
12223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12224
  (exit $ac_status); }; }; then
 
12225
  ac_cv_func_dlopen=yes
 
12226
else
 
12227
  echo "$as_me: failed program was:" >&5
 
12228
sed 's/^/| /' conftest.$ac_ext >&5
 
12229
 
 
12230
ac_cv_func_dlopen=no
 
12231
fi
 
12232
rm -f conftest.err conftest.$ac_objext \
 
12233
      conftest$ac_exeext conftest.$ac_ext
 
12234
fi
 
12235
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12236
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12237
if test $ac_cv_func_dlopen = yes; then
 
12238
  lt_cv_dlopen="dlopen"
 
12239
else
 
12240
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12241
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12242
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12243
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12244
else
 
12245
  ac_check_lib_save_LIBS=$LIBS
 
12246
LIBS="-ldl  $LIBS"
 
12247
cat >conftest.$ac_ext <<_ACEOF
 
12248
/* confdefs.h.  */
 
12249
_ACEOF
 
12250
cat confdefs.h >>conftest.$ac_ext
 
12251
cat >>conftest.$ac_ext <<_ACEOF
 
12252
/* end confdefs.h.  */
 
12253
 
 
12254
/* Override any gcc2 internal prototype to avoid an error.  */
 
12255
#ifdef __cplusplus
 
12256
extern "C"
 
12257
#endif
 
12258
/* We use char because int might match the return type of a gcc2
 
12259
   builtin and then its argument prototype would still apply.  */
 
12260
char dlopen ();
 
12261
int
 
12262
main ()
 
12263
{
 
12264
dlopen ();
 
12265
  ;
 
12266
  return 0;
 
12267
}
 
12268
_ACEOF
 
12269
rm -f conftest.$ac_objext conftest$ac_exeext
 
12270
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12271
  (eval $ac_link) 2>conftest.er1
 
12272
  ac_status=$?
 
12273
  grep -v '^ *+' conftest.er1 >conftest.err
 
12274
  rm -f conftest.er1
 
12275
  cat conftest.err >&5
 
12276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12277
  (exit $ac_status); } &&
 
12278
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12280
  (eval $ac_try) 2>&5
 
12281
  ac_status=$?
 
12282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12283
  (exit $ac_status); }; } &&
 
12284
         { ac_try='test -s conftest$ac_exeext'
 
12285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12286
  (eval $ac_try) 2>&5
 
12287
  ac_status=$?
 
12288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12289
  (exit $ac_status); }; }; then
 
12290
  ac_cv_lib_dl_dlopen=yes
 
12291
else
 
12292
  echo "$as_me: failed program was:" >&5
 
12293
sed 's/^/| /' conftest.$ac_ext >&5
 
12294
 
 
12295
ac_cv_lib_dl_dlopen=no
 
12296
fi
 
12297
rm -f conftest.err conftest.$ac_objext \
 
12298
      conftest$ac_exeext conftest.$ac_ext
 
12299
LIBS=$ac_check_lib_save_LIBS
 
12300
fi
 
12301
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12302
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12303
if test $ac_cv_lib_dl_dlopen = yes; then
 
12304
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12305
else
 
12306
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12307
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12308
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12309
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12310
else
 
12311
  ac_check_lib_save_LIBS=$LIBS
 
12312
LIBS="-lsvld  $LIBS"
 
12313
cat >conftest.$ac_ext <<_ACEOF
 
12314
/* confdefs.h.  */
 
12315
_ACEOF
 
12316
cat confdefs.h >>conftest.$ac_ext
 
12317
cat >>conftest.$ac_ext <<_ACEOF
 
12318
/* end confdefs.h.  */
 
12319
 
 
12320
/* Override any gcc2 internal prototype to avoid an error.  */
 
12321
#ifdef __cplusplus
 
12322
extern "C"
 
12323
#endif
 
12324
/* We use char because int might match the return type of a gcc2
 
12325
   builtin and then its argument prototype would still apply.  */
 
12326
char dlopen ();
 
12327
int
 
12328
main ()
 
12329
{
 
12330
dlopen ();
 
12331
  ;
 
12332
  return 0;
 
12333
}
 
12334
_ACEOF
 
12335
rm -f conftest.$ac_objext conftest$ac_exeext
 
12336
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12337
  (eval $ac_link) 2>conftest.er1
 
12338
  ac_status=$?
 
12339
  grep -v '^ *+' conftest.er1 >conftest.err
 
12340
  rm -f conftest.er1
 
12341
  cat conftest.err >&5
 
12342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12343
  (exit $ac_status); } &&
 
12344
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12346
  (eval $ac_try) 2>&5
 
12347
  ac_status=$?
 
12348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12349
  (exit $ac_status); }; } &&
 
12350
         { ac_try='test -s conftest$ac_exeext'
 
12351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12352
  (eval $ac_try) 2>&5
 
12353
  ac_status=$?
 
12354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12355
  (exit $ac_status); }; }; then
 
12356
  ac_cv_lib_svld_dlopen=yes
 
12357
else
 
12358
  echo "$as_me: failed program was:" >&5
 
12359
sed 's/^/| /' conftest.$ac_ext >&5
 
12360
 
 
12361
ac_cv_lib_svld_dlopen=no
 
12362
fi
 
12363
rm -f conftest.err conftest.$ac_objext \
 
12364
      conftest$ac_exeext conftest.$ac_ext
 
12365
LIBS=$ac_check_lib_save_LIBS
 
12366
fi
 
12367
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12368
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12369
if test $ac_cv_lib_svld_dlopen = yes; then
 
12370
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12371
else
 
12372
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12373
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12374
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12375
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12376
else
 
12377
  ac_check_lib_save_LIBS=$LIBS
 
12378
LIBS="-ldld  $LIBS"
 
12379
cat >conftest.$ac_ext <<_ACEOF
 
12380
/* confdefs.h.  */
 
12381
_ACEOF
 
12382
cat confdefs.h >>conftest.$ac_ext
 
12383
cat >>conftest.$ac_ext <<_ACEOF
 
12384
/* end confdefs.h.  */
 
12385
 
 
12386
/* Override any gcc2 internal prototype to avoid an error.  */
 
12387
#ifdef __cplusplus
 
12388
extern "C"
 
12389
#endif
 
12390
/* We use char because int might match the return type of a gcc2
 
12391
   builtin and then its argument prototype would still apply.  */
 
12392
char dld_link ();
 
12393
int
 
12394
main ()
 
12395
{
 
12396
dld_link ();
 
12397
  ;
 
12398
  return 0;
 
12399
}
 
12400
_ACEOF
 
12401
rm -f conftest.$ac_objext conftest$ac_exeext
 
12402
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12403
  (eval $ac_link) 2>conftest.er1
 
12404
  ac_status=$?
 
12405
  grep -v '^ *+' conftest.er1 >conftest.err
 
12406
  rm -f conftest.er1
 
12407
  cat conftest.err >&5
 
12408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12409
  (exit $ac_status); } &&
 
12410
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12412
  (eval $ac_try) 2>&5
 
12413
  ac_status=$?
 
12414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12415
  (exit $ac_status); }; } &&
 
12416
         { ac_try='test -s conftest$ac_exeext'
 
12417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12418
  (eval $ac_try) 2>&5
 
12419
  ac_status=$?
 
12420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12421
  (exit $ac_status); }; }; then
 
12422
  ac_cv_lib_dld_dld_link=yes
 
12423
else
 
12424
  echo "$as_me: failed program was:" >&5
 
12425
sed 's/^/| /' conftest.$ac_ext >&5
 
12426
 
 
12427
ac_cv_lib_dld_dld_link=no
 
12428
fi
 
12429
rm -f conftest.err conftest.$ac_objext \
 
12430
      conftest$ac_exeext conftest.$ac_ext
 
12431
LIBS=$ac_check_lib_save_LIBS
 
12432
fi
 
12433
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12434
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12435
if test $ac_cv_lib_dld_dld_link = yes; then
 
12436
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12437
fi
 
12438
 
 
12439
 
 
12440
fi
 
12441
 
 
12442
 
 
12443
fi
 
12444
 
 
12445
 
 
12446
fi
 
12447
 
 
12448
 
 
12449
fi
 
12450
 
 
12451
 
 
12452
fi
 
12453
 
 
12454
    ;;
 
12455
  esac
 
12456
 
 
12457
  if test "x$lt_cv_dlopen" != xno; then
 
12458
    enable_dlopen=yes
 
12459
  else
 
12460
    enable_dlopen=no
 
12461
  fi
 
12462
 
 
12463
  case $lt_cv_dlopen in
 
12464
  dlopen)
 
12465
    save_CPPFLAGS="$CPPFLAGS"
 
12466
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12467
 
 
12468
    save_LDFLAGS="$LDFLAGS"
 
12469
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12470
 
 
12471
    save_LIBS="$LIBS"
 
12472
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12473
 
 
12474
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12475
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12476
if test "${lt_cv_dlopen_self+set}" = set; then
 
12477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12478
else
 
12479
          if test "$cross_compiling" = yes; then :
 
12480
  lt_cv_dlopen_self=cross
 
12481
else
 
12482
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12483
  lt_status=$lt_dlunknown
 
12484
  cat > conftest.$ac_ext <<EOF
 
12485
#line 12485 "configure"
 
12486
#include "confdefs.h"
 
12487
 
 
12488
#if HAVE_DLFCN_H
 
12489
#include <dlfcn.h>
 
12490
#endif
 
12491
 
 
12492
#include <stdio.h>
 
12493
 
 
12494
#ifdef RTLD_GLOBAL
 
12495
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12496
#else
 
12497
#  ifdef DL_GLOBAL
 
12498
#    define LT_DLGLOBAL         DL_GLOBAL
 
12499
#  else
 
12500
#    define LT_DLGLOBAL         0
 
12501
#  endif
 
12502
#endif
 
12503
 
 
12504
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12505
   find out it does not work in some platform. */
 
12506
#ifndef LT_DLLAZY_OR_NOW
 
12507
#  ifdef RTLD_LAZY
 
12508
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12509
#  else
 
12510
#    ifdef DL_LAZY
 
12511
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12512
#    else
 
12513
#      ifdef RTLD_NOW
 
12514
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12515
#      else
 
12516
#        ifdef DL_NOW
 
12517
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12518
#        else
 
12519
#          define LT_DLLAZY_OR_NOW      0
 
12520
#        endif
 
12521
#      endif
 
12522
#    endif
 
12523
#  endif
 
12524
#endif
 
12525
 
 
12526
#ifdef __cplusplus
 
12527
extern "C" void exit (int);
 
12528
#endif
 
12529
 
 
12530
void fnord() { int i=42;}
 
12531
int main ()
 
12532
{
 
12533
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12534
  int status = $lt_dlunknown;
 
12535
 
 
12536
  if (self)
 
12537
    {
 
12538
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12539
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12540
      /* dlclose (self); */
 
12541
    }
 
12542
 
 
12543
    exit (status);
 
12544
}
 
12545
EOF
 
12546
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12547
  (eval $ac_link) 2>&5
 
12548
  ac_status=$?
 
12549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12550
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12551
    (./conftest; exit; ) 2>/dev/null
 
12552
    lt_status=$?
 
12553
    case x$lt_status in
 
12554
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12555
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12556
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12557
    esac
 
12558
  else :
 
12559
    # compilation failed
 
12560
    lt_cv_dlopen_self=no
 
12561
  fi
 
12562
fi
 
12563
rm -fr conftest*
 
12564
 
 
12565
 
 
12566
fi
 
12567
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12568
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12569
 
 
12570
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12571
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12572
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12573
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12574
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12576
else
 
12577
          if test "$cross_compiling" = yes; then :
 
12578
  lt_cv_dlopen_self_static=cross
 
12579
else
 
12580
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12581
  lt_status=$lt_dlunknown
 
12582
  cat > conftest.$ac_ext <<EOF
 
12583
#line 12583 "configure"
 
12584
#include "confdefs.h"
 
12585
 
 
12586
#if HAVE_DLFCN_H
 
12587
#include <dlfcn.h>
 
12588
#endif
 
12589
 
 
12590
#include <stdio.h>
 
12591
 
 
12592
#ifdef RTLD_GLOBAL
 
12593
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12594
#else
 
12595
#  ifdef DL_GLOBAL
 
12596
#    define LT_DLGLOBAL         DL_GLOBAL
 
12597
#  else
 
12598
#    define LT_DLGLOBAL         0
 
12599
#  endif
 
12600
#endif
 
12601
 
 
12602
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12603
   find out it does not work in some platform. */
 
12604
#ifndef LT_DLLAZY_OR_NOW
 
12605
#  ifdef RTLD_LAZY
 
12606
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12607
#  else
 
12608
#    ifdef DL_LAZY
 
12609
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12610
#    else
 
12611
#      ifdef RTLD_NOW
 
12612
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12613
#      else
 
12614
#        ifdef DL_NOW
 
12615
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12616
#        else
 
12617
#          define LT_DLLAZY_OR_NOW      0
 
12618
#        endif
 
12619
#      endif
 
12620
#    endif
 
12621
#  endif
 
12622
#endif
 
12623
 
 
12624
#ifdef __cplusplus
 
12625
extern "C" void exit (int);
 
12626
#endif
 
12627
 
 
12628
void fnord() { int i=42;}
 
12629
int main ()
 
12630
{
 
12631
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12632
  int status = $lt_dlunknown;
 
12633
 
 
12634
  if (self)
 
12635
    {
 
12636
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12637
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12638
      /* dlclose (self); */
 
12639
    }
 
12640
 
 
12641
    exit (status);
 
12642
}
 
12643
EOF
 
12644
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12645
  (eval $ac_link) 2>&5
 
12646
  ac_status=$?
 
12647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12648
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12649
    (./conftest; exit; ) 2>/dev/null
 
12650
    lt_status=$?
 
12651
    case x$lt_status in
 
12652
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12653
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12654
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12655
    esac
 
12656
  else :
 
12657
    # compilation failed
 
12658
    lt_cv_dlopen_self_static=no
 
12659
  fi
 
12660
fi
 
12661
rm -fr conftest*
 
12662
 
 
12663
 
 
12664
fi
 
12665
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12666
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12667
    fi
 
12668
 
 
12669
    CPPFLAGS="$save_CPPFLAGS"
 
12670
    LDFLAGS="$save_LDFLAGS"
 
12671
    LIBS="$save_LIBS"
 
12672
    ;;
 
12673
  esac
 
12674
 
 
12675
  case $lt_cv_dlopen_self in
 
12676
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12677
  *) enable_dlopen_self=unknown ;;
 
12678
  esac
 
12679
 
 
12680
  case $lt_cv_dlopen_self_static in
 
12681
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12682
  *) enable_dlopen_self_static=unknown ;;
 
12683
  esac
 
12684
fi
 
12685
 
 
12686
 
 
12687
# The else clause should only fire when bootstrapping the
 
12688
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12689
# with your package, and you will get complaints that there are
 
12690
# no rules to generate ltmain.sh.
 
12691
if test -f "$ltmain"; then
 
12692
  # See if we are running on zsh, and set the options which allow our commands through
 
12693
  # without removal of \ escapes.
 
12694
  if test -n "${ZSH_VERSION+set}" ; then
 
12695
    setopt NO_GLOB_SUBST
 
12696
  fi
 
12697
  # Now quote all the things that may contain metacharacters while being
 
12698
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12699
  # variables and quote the copies for generation of the libtool script.
 
12700
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12701
    SED SHELL STRIP \
 
12702
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12703
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12704
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12705
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12706
    lt_cv_sys_global_symbol_to_c_name_address \
 
12707
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12708
    old_postinstall_cmds old_postuninstall_cmds \
 
12709
    compiler_CXX \
 
12710
    CC_CXX \
 
12711
    LD_CXX \
 
12712
    lt_prog_compiler_wl_CXX \
 
12713
    lt_prog_compiler_pic_CXX \
 
12714
    lt_prog_compiler_static_CXX \
 
12715
    lt_prog_compiler_no_builtin_flag_CXX \
 
12716
    export_dynamic_flag_spec_CXX \
 
12717
    thread_safe_flag_spec_CXX \
 
12718
    whole_archive_flag_spec_CXX \
 
12719
    enable_shared_with_static_runtimes_CXX \
 
12720
    old_archive_cmds_CXX \
 
12721
    old_archive_from_new_cmds_CXX \
 
12722
    predep_objects_CXX \
 
12723
    postdep_objects_CXX \
 
12724
    predeps_CXX \
 
12725
    postdeps_CXX \
 
12726
    compiler_lib_search_path_CXX \
 
12727
    archive_cmds_CXX \
 
12728
    archive_expsym_cmds_CXX \
 
12729
    postinstall_cmds_CXX \
 
12730
    postuninstall_cmds_CXX \
 
12731
    old_archive_from_expsyms_cmds_CXX \
 
12732
    allow_undefined_flag_CXX \
 
12733
    no_undefined_flag_CXX \
 
12734
    export_symbols_cmds_CXX \
 
12735
    hardcode_libdir_flag_spec_CXX \
 
12736
    hardcode_libdir_flag_spec_ld_CXX \
 
12737
    hardcode_libdir_separator_CXX \
 
12738
    hardcode_automatic_CXX \
 
12739
    module_cmds_CXX \
 
12740
    module_expsym_cmds_CXX \
 
12741
    lt_cv_prog_compiler_c_o_CXX \
 
12742
    exclude_expsyms_CXX \
 
12743
    include_expsyms_CXX; do
 
12744
 
 
12745
    case $var in
 
12746
    old_archive_cmds_CXX | \
 
12747
    old_archive_from_new_cmds_CXX | \
 
12748
    archive_cmds_CXX | \
 
12749
    archive_expsym_cmds_CXX | \
 
12750
    module_cmds_CXX | \
 
12751
    module_expsym_cmds_CXX | \
 
12752
    old_archive_from_expsyms_cmds_CXX | \
 
12753
    export_symbols_cmds_CXX | \
 
12754
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12755
    postinstall_cmds | postuninstall_cmds | \
 
12756
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12757
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12758
      # Double-quote double-evaled strings.
 
12759
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12760
      ;;
 
12761
    *)
 
12762
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12763
      ;;
 
12764
    esac
 
12765
  done
 
12766
 
 
12767
  case $lt_echo in
 
12768
  *'\$0 --fallback-echo"')
 
12769
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12770
    ;;
 
12771
  esac
 
12772
 
 
12773
cfgfile="$ofile"
 
12774
 
 
12775
  cat <<__EOF__ >> "$cfgfile"
 
12776
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12777
 
 
12778
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12779
 
 
12780
# Shell to use when invoking shell scripts.
 
12781
SHELL=$lt_SHELL
 
12782
 
 
12783
# Whether or not to build shared libraries.
 
12784
build_libtool_libs=$enable_shared
 
12785
 
 
12786
# Whether or not to build static libraries.
 
12787
build_old_libs=$enable_static
 
12788
 
 
12789
# Whether or not to add -lc for building shared libraries.
 
12790
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12791
 
 
12792
# Whether or not to disallow shared libs when runtime libs are static
 
12793
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12794
 
 
12795
# Whether or not to optimize for fast installation.
 
12796
fast_install=$enable_fast_install
 
12797
 
 
12798
# The host system.
 
12799
host_alias=$host_alias
 
12800
host=$host
 
12801
 
 
12802
# An echo program that does not interpret backslashes.
 
12803
echo=$lt_echo
 
12804
 
 
12805
# The archiver.
 
12806
AR=$lt_AR
 
12807
AR_FLAGS=$lt_AR_FLAGS
 
12808
 
 
12809
# A C compiler.
 
12810
LTCC=$lt_LTCC
 
12811
 
 
12812
# A language-specific compiler.
 
12813
CC=$lt_compiler_CXX
 
12814
 
 
12815
# Is the compiler the GNU C compiler?
 
12816
with_gcc=$GCC_CXX
 
12817
 
 
12818
# An ERE matcher.
 
12819
EGREP=$lt_EGREP
 
12820
 
 
12821
# The linker used to build libraries.
 
12822
LD=$lt_LD_CXX
 
12823
 
 
12824
# Whether we need hard or soft links.
 
12825
LN_S=$lt_LN_S
 
12826
 
 
12827
# A BSD-compatible nm program.
 
12828
NM=$lt_NM
 
12829
 
 
12830
# A symbol stripping program
 
12831
STRIP=$lt_STRIP
 
12832
 
 
12833
# Used to examine libraries when file_magic_cmd begins "file"
 
12834
MAGIC_CMD=$MAGIC_CMD
 
12835
 
 
12836
# Used on cygwin: DLL creation program.
 
12837
DLLTOOL="$DLLTOOL"
 
12838
 
 
12839
# Used on cygwin: object dumper.
 
12840
OBJDUMP="$OBJDUMP"
 
12841
 
 
12842
# Used on cygwin: assembler.
 
12843
AS="$AS"
 
12844
 
 
12845
# The name of the directory that contains temporary libtool files.
 
12846
objdir=$objdir
 
12847
 
 
12848
# How to create reloadable object files.
 
12849
reload_flag=$lt_reload_flag
 
12850
reload_cmds=$lt_reload_cmds
 
12851
 
 
12852
# How to pass a linker flag through the compiler.
 
12853
wl=$lt_lt_prog_compiler_wl_CXX
 
12854
 
 
12855
# Object file suffix (normally "o").
 
12856
objext="$ac_objext"
 
12857
 
 
12858
# Old archive suffix (normally "a").
 
12859
libext="$libext"
 
12860
 
 
12861
# Shared library suffix (normally ".so").
 
12862
shrext_cmds='$shrext_cmds'
 
12863
 
 
12864
# Executable file suffix (normally "").
 
12865
exeext="$exeext"
 
12866
 
 
12867
# Additional compiler flags for building library objects.
 
12868
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12869
pic_mode=$pic_mode
 
12870
 
 
12871
# What is the maximum length of a command?
 
12872
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12873
 
 
12874
# Does compiler simultaneously support -c and -o options?
 
12875
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12876
 
 
12877
# Must we lock files when doing compilation ?
 
12878
need_locks=$lt_need_locks
 
12879
 
 
12880
# Do we need the lib prefix for modules?
 
12881
need_lib_prefix=$need_lib_prefix
 
12882
 
 
12883
# Do we need a version for libraries?
 
12884
need_version=$need_version
 
12885
 
 
12886
# Whether dlopen is supported.
 
12887
dlopen_support=$enable_dlopen
 
12888
 
 
12889
# Whether dlopen of programs is supported.
 
12890
dlopen_self=$enable_dlopen_self
 
12891
 
 
12892
# Whether dlopen of statically linked programs is supported.
 
12893
dlopen_self_static=$enable_dlopen_self_static
 
12894
 
 
12895
# Compiler flag to prevent dynamic linking.
 
12896
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12897
 
 
12898
# Compiler flag to turn off builtin functions.
 
12899
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12900
 
 
12901
# Compiler flag to allow reflexive dlopens.
 
12902
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12903
 
 
12904
# Compiler flag to generate shared objects directly from archives.
 
12905
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12906
 
 
12907
# Compiler flag to generate thread-safe objects.
 
12908
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12909
 
 
12910
# Library versioning type.
 
12911
version_type=$version_type
 
12912
 
 
12913
# Format of library name prefix.
 
12914
libname_spec=$lt_libname_spec
 
12915
 
 
12916
# List of archive names.  First name is the real one, the rest are links.
 
12917
# The last name is the one that the linker finds with -lNAME.
 
12918
library_names_spec=$lt_library_names_spec
 
12919
 
 
12920
# The coded name of the library, if different from the real name.
 
12921
soname_spec=$lt_soname_spec
 
12922
 
 
12923
# Commands used to build and install an old-style archive.
 
12924
RANLIB=$lt_RANLIB
 
12925
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12926
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12927
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12928
 
 
12929
# Create an old-style archive from a shared archive.
 
12930
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12931
 
 
12932
# Create a temporary old-style archive to link instead of a shared archive.
 
12933
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12934
 
 
12935
# Commands used to build and install a shared archive.
 
12936
archive_cmds=$lt_archive_cmds_CXX
 
12937
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12938
postinstall_cmds=$lt_postinstall_cmds
 
12939
postuninstall_cmds=$lt_postuninstall_cmds
 
12940
 
 
12941
# Commands used to build a loadable module (assumed same as above if empty)
 
12942
module_cmds=$lt_module_cmds_CXX
 
12943
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12944
 
 
12945
# Commands to strip libraries.
 
12946
old_striplib=$lt_old_striplib
 
12947
striplib=$lt_striplib
 
12948
 
 
12949
# Dependencies to place before the objects being linked to create a
 
12950
# shared library.
 
12951
predep_objects=$lt_predep_objects_CXX
 
12952
 
 
12953
# Dependencies to place after the objects being linked to create a
 
12954
# shared library.
 
12955
postdep_objects=$lt_postdep_objects_CXX
 
12956
 
 
12957
# Dependencies to place before the objects being linked to create a
 
12958
# shared library.
 
12959
predeps=$lt_predeps_CXX
 
12960
 
 
12961
# Dependencies to place after the objects being linked to create a
 
12962
# shared library.
 
12963
postdeps=$lt_postdeps_CXX
 
12964
 
 
12965
# The library search path used internally by the compiler when linking
 
12966
# a shared library.
 
12967
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12968
 
 
12969
# Method to check whether dependent libraries are shared objects.
 
12970
deplibs_check_method=$lt_deplibs_check_method
 
12971
 
 
12972
# Command to use when deplibs_check_method == file_magic.
 
12973
file_magic_cmd=$lt_file_magic_cmd
 
12974
 
 
12975
# Flag that allows shared libraries with undefined symbols to be built.
 
12976
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12977
 
 
12978
# Flag that forces no undefined symbols.
 
12979
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12980
 
 
12981
# Commands used to finish a libtool library installation in a directory.
 
12982
finish_cmds=$lt_finish_cmds
 
12983
 
 
12984
# Same as above, but a single script fragment to be evaled but not shown.
 
12985
finish_eval=$lt_finish_eval
 
12986
 
 
12987
# Take the output of nm and produce a listing of raw symbols and C names.
 
12988
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12989
 
 
12990
# Transform the output of nm in a proper C declaration
 
12991
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12992
 
 
12993
# Transform the output of nm in a C name address pair
 
12994
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12995
 
 
12996
# This is the shared library runtime path variable.
 
12997
runpath_var=$runpath_var
 
12998
 
 
12999
# This is the shared library path variable.
 
13000
shlibpath_var=$shlibpath_var
 
13001
 
 
13002
# Is shlibpath searched before the hard-coded library search path?
 
13003
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13004
 
 
13005
# How to hardcode a shared library path into an executable.
 
13006
hardcode_action=$hardcode_action_CXX
 
13007
 
 
13008
# Whether we should hardcode library paths into libraries.
 
13009
hardcode_into_libs=$hardcode_into_libs
 
13010
 
 
13011
# Flag to hardcode \$libdir into a binary during linking.
 
13012
# This must work even if \$libdir does not exist.
 
13013
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13014
 
 
13015
# If ld is used when linking, flag to hardcode \$libdir into
 
13016
# a binary during linking. This must work even if \$libdir does
 
13017
# not exist.
 
13018
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13019
 
 
13020
# Whether we need a single -rpath flag with a separated argument.
 
13021
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13022
 
 
13023
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13024
# resulting binary.
 
13025
hardcode_direct=$hardcode_direct_CXX
 
13026
 
 
13027
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13028
# resulting binary.
 
13029
hardcode_minus_L=$hardcode_minus_L_CXX
 
13030
 
 
13031
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13032
# the resulting binary.
 
13033
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13034
 
 
13035
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13036
# and all subsequent libraries and executables linked against it.
 
13037
hardcode_automatic=$hardcode_automatic_CXX
 
13038
 
 
13039
# Variables whose values should be saved in libtool wrapper scripts and
 
13040
# restored at relink time.
 
13041
variables_saved_for_relink="$variables_saved_for_relink"
 
13042
 
 
13043
# Whether libtool must link a program against all its dependency libraries.
 
13044
link_all_deplibs=$link_all_deplibs_CXX
 
13045
 
 
13046
# Compile-time system search path for libraries
 
13047
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13048
 
 
13049
# Run-time system search path for libraries
 
13050
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13051
 
 
13052
# Fix the shell variable \$srcfile for the compiler.
 
13053
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13054
 
 
13055
# Set to yes if exported symbols are required.
 
13056
always_export_symbols=$always_export_symbols_CXX
 
13057
 
 
13058
# The commands to list exported symbols.
 
13059
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13060
 
 
13061
# The commands to extract the exported symbol list from a shared archive.
 
13062
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13063
 
 
13064
# Symbols that should not be listed in the preloaded symbols.
 
13065
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13066
 
 
13067
# Symbols that must always be exported.
 
13068
include_expsyms=$lt_include_expsyms_CXX
 
13069
 
 
13070
# ### END LIBTOOL TAG CONFIG: $tagname
 
13071
 
 
13072
__EOF__
 
13073
 
 
13074
 
 
13075
else
 
13076
  # If there is no Makefile yet, we rely on a make rule to execute
 
13077
  # `config.status --recheck' to rerun these tests and create the
 
13078
  # libtool script then.
 
13079
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13080
  if test -f "$ltmain_in"; then
 
13081
    test -f Makefile && make "$ltmain"
 
13082
  fi
 
13083
fi
 
13084
 
 
13085
 
 
13086
ac_ext=c
 
13087
ac_cpp='$CPP $CPPFLAGS'
 
13088
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13089
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13090
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13091
 
 
13092
CC=$lt_save_CC
 
13093
LDCXX=$LD
 
13094
LD=$lt_save_LD
 
13095
GCC=$lt_save_GCC
 
13096
with_gnu_ldcxx=$with_gnu_ld
 
13097
with_gnu_ld=$lt_save_with_gnu_ld
 
13098
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13099
lt_cv_path_LD=$lt_save_path_LD
 
13100
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13101
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13102
 
 
13103
        else
 
13104
          tagname=""
 
13105
        fi
 
13106
        ;;
 
13107
 
 
13108
      F77)
 
13109
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13110
 
 
13111
ac_ext=f
 
13112
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13113
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13114
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13115
 
 
13116
 
 
13117
archive_cmds_need_lc_F77=no
 
13118
allow_undefined_flag_F77=
 
13119
always_export_symbols_F77=no
 
13120
archive_expsym_cmds_F77=
 
13121
export_dynamic_flag_spec_F77=
 
13122
hardcode_direct_F77=no
 
13123
hardcode_libdir_flag_spec_F77=
 
13124
hardcode_libdir_flag_spec_ld_F77=
 
13125
hardcode_libdir_separator_F77=
 
13126
hardcode_minus_L_F77=no
 
13127
hardcode_automatic_F77=no
 
13128
module_cmds_F77=
 
13129
module_expsym_cmds_F77=
 
13130
link_all_deplibs_F77=unknown
 
13131
old_archive_cmds_F77=$old_archive_cmds
 
13132
no_undefined_flag_F77=
 
13133
whole_archive_flag_spec_F77=
 
13134
enable_shared_with_static_runtimes_F77=no
 
13135
 
 
13136
# Source file extension for f77 test sources.
 
13137
ac_ext=f
 
13138
 
 
13139
# Object file extension for compiled f77 test sources.
 
13140
objext=o
 
13141
objext_F77=$objext
 
13142
 
 
13143
# Code to be used in simple compile tests
 
13144
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13145
 
 
13146
# Code to be used in simple link tests
 
13147
lt_simple_link_test_code="      program t\n      end\n"
 
13148
 
 
13149
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13150
 
 
13151
# If no C compiler was specified, use CC.
 
13152
LTCC=${LTCC-"$CC"}
 
13153
 
 
13154
# Allow CC to be a program name with arguments.
 
13155
compiler=$CC
 
13156
 
 
13157
 
 
13158
# Allow CC to be a program name with arguments.
 
13159
lt_save_CC="$CC"
 
13160
CC=${F77-"f77"}
 
13161
compiler=$CC
 
13162
compiler_F77=$CC
 
13163
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13164
 
 
13165
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13166
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13167
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13168
echo "${ECHO_T}$can_build_shared" >&6
 
13169
 
 
13170
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13171
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13172
test "$can_build_shared" = "no" && enable_shared=no
 
13173
 
 
13174
# On AIX, shared libraries and static libraries use the same namespace, and
 
13175
# are all built from PIC.
 
13176
case "$host_os" in
 
13177
aix3*)
 
13178
  test "$enable_shared" = yes && enable_static=no
 
13179
  if test -n "$RANLIB"; then
 
13180
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13181
    postinstall_cmds='$RANLIB $lib'
 
13182
  fi
 
13183
  ;;
 
13184
aix4* | aix5*)
 
13185
  test "$enable_shared" = yes && enable_static=no
 
13186
  ;;
 
13187
esac
 
13188
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13189
echo "${ECHO_T}$enable_shared" >&6
 
13190
 
 
13191
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13192
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13193
# Make sure either enable_shared or enable_static is yes.
 
13194
test "$enable_shared" = yes || enable_static=yes
 
13195
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13196
echo "${ECHO_T}$enable_static" >&6
 
13197
 
 
13198
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13199
 
 
13200
GCC_F77="$G77"
 
13201
LD_F77="$LD"
 
13202
 
 
13203
lt_prog_compiler_wl_F77=
 
13204
lt_prog_compiler_pic_F77=
 
13205
lt_prog_compiler_static_F77=
 
13206
 
 
13207
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13208
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13209
 
 
13210
  if test "$GCC" = yes; then
 
13211
    lt_prog_compiler_wl_F77='-Wl,'
 
13212
    lt_prog_compiler_static_F77='-static'
 
13213
 
 
13214
    case $host_os in
 
13215
      aix*)
 
13216
      # All AIX code is PIC.
 
13217
      if test "$host_cpu" = ia64; then
 
13218
        # AIX 5 now supports IA64 processor
 
13219
        lt_prog_compiler_static_F77='-Bstatic'
 
13220
      fi
 
13221
      ;;
 
13222
 
 
13223
    amigaos*)
 
13224
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13225
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13226
      # like `-m68040'.
 
13227
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13228
      ;;
 
13229
 
 
13230
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13231
      # PIC is the default for these OSes.
 
13232
      ;;
 
13233
 
 
13234
    mingw* | pw32* | os2*)
 
13235
      # This hack is so that the source file can tell whether it is being
 
13236
      # built for inclusion in a dll (and should export symbols for example).
 
13237
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13238
      ;;
 
13239
 
 
13240
    darwin* | rhapsody*)
 
13241
      # PIC is the default on this platform
 
13242
      # Common symbols not allowed in MH_DYLIB files
 
13243
      lt_prog_compiler_pic_F77='-fno-common'
 
13244
      ;;
 
13245
 
 
13246
    msdosdjgpp*)
 
13247
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13248
      # on systems that don't support them.
 
13249
      lt_prog_compiler_can_build_shared_F77=no
 
13250
      enable_shared=no
 
13251
      ;;
 
13252
 
 
13253
    sysv4*MP*)
 
13254
      if test -d /usr/nec; then
 
13255
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13256
      fi
 
13257
      ;;
 
13258
 
 
13259
    hpux*)
 
13260
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13261
      # not for PA HP-UX.
 
13262
      case "$host_cpu" in
 
13263
      hppa*64*|ia64*)
 
13264
        # +Z the default
 
13265
        ;;
 
13266
      *)
 
13267
        lt_prog_compiler_pic_F77='-fPIC'
 
13268
        ;;
 
13269
      esac
 
13270
      ;;
 
13271
 
 
13272
    *)
 
13273
      lt_prog_compiler_pic_F77='-fPIC'
 
13274
      ;;
 
13275
    esac
 
13276
  else
 
13277
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13278
    case $host_os in
 
13279
    aix*)
 
13280
      lt_prog_compiler_wl_F77='-Wl,'
 
13281
      if test "$host_cpu" = ia64; then
 
13282
        # AIX 5 now supports IA64 processor
 
13283
        lt_prog_compiler_static_F77='-Bstatic'
 
13284
      else
 
13285
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13286
      fi
 
13287
      ;;
 
13288
 
 
13289
    mingw* | pw32* | os2*)
 
13290
      # This hack is so that the source file can tell whether it is being
 
13291
      # built for inclusion in a dll (and should export symbols for example).
 
13292
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13293
      ;;
 
13294
 
 
13295
    hpux9* | hpux10* | hpux11*)
 
13296
      lt_prog_compiler_wl_F77='-Wl,'
 
13297
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13298
      # not for PA HP-UX.
 
13299
      case "$host_cpu" in
 
13300
      hppa*64*|ia64*)
 
13301
        # +Z the default
 
13302
        ;;
 
13303
      *)
 
13304
        lt_prog_compiler_pic_F77='+Z'
 
13305
        ;;
 
13306
      esac
 
13307
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13308
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13309
      ;;
 
13310
 
 
13311
    irix5* | irix6* | nonstopux*)
 
13312
      lt_prog_compiler_wl_F77='-Wl,'
 
13313
      # PIC (with -KPIC) is the default.
 
13314
      lt_prog_compiler_static_F77='-non_shared'
 
13315
      ;;
 
13316
 
 
13317
    newsos6)
 
13318
      lt_prog_compiler_pic_F77='-KPIC'
 
13319
      lt_prog_compiler_static_F77='-Bstatic'
 
13320
      ;;
 
13321
 
 
13322
    linux*)
 
13323
      case $CC in
 
13324
      icc* | ecc*)
 
13325
        lt_prog_compiler_wl_F77='-Wl,'
 
13326
        lt_prog_compiler_pic_F77='-KPIC'
 
13327
        lt_prog_compiler_static_F77='-static'
 
13328
        ;;
 
13329
      ccc*)
 
13330
        lt_prog_compiler_wl_F77='-Wl,'
 
13331
        # All Alpha code is PIC.
 
13332
        lt_prog_compiler_static_F77='-non_shared'
 
13333
        ;;
 
13334
      esac
 
13335
      ;;
 
13336
 
 
13337
    osf3* | osf4* | osf5*)
 
13338
      lt_prog_compiler_wl_F77='-Wl,'
 
13339
      # All OSF/1 code is PIC.
 
13340
      lt_prog_compiler_static_F77='-non_shared'
 
13341
      ;;
 
13342
 
 
13343
    sco3.2v5*)
 
13344
      lt_prog_compiler_pic_F77='-Kpic'
 
13345
      lt_prog_compiler_static_F77='-dn'
 
13346
      ;;
 
13347
 
 
13348
    solaris*)
 
13349
      lt_prog_compiler_wl_F77='-Wl,'
 
13350
      lt_prog_compiler_pic_F77='-KPIC'
 
13351
      lt_prog_compiler_static_F77='-Bstatic'
 
13352
      ;;
 
13353
 
 
13354
    sunos4*)
 
13355
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13356
      lt_prog_compiler_pic_F77='-PIC'
 
13357
      lt_prog_compiler_static_F77='-Bstatic'
 
13358
      ;;
 
13359
 
 
13360
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13361
      lt_prog_compiler_wl_F77='-Wl,'
 
13362
      lt_prog_compiler_pic_F77='-KPIC'
 
13363
      lt_prog_compiler_static_F77='-Bstatic'
 
13364
      ;;
 
13365
 
 
13366
    sysv4*MP*)
 
13367
      if test -d /usr/nec ;then
 
13368
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13369
        lt_prog_compiler_static_F77='-Bstatic'
 
13370
      fi
 
13371
      ;;
 
13372
 
 
13373
    uts4*)
 
13374
      lt_prog_compiler_pic_F77='-pic'
 
13375
      lt_prog_compiler_static_F77='-Bstatic'
 
13376
      ;;
 
13377
 
 
13378
    *)
 
13379
      lt_prog_compiler_can_build_shared_F77=no
 
13380
      ;;
 
13381
    esac
 
13382
  fi
 
13383
 
 
13384
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13385
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13386
 
 
13387
#
 
13388
# Check to make sure the PIC flag actually works.
 
13389
#
 
13390
if test -n "$lt_prog_compiler_pic_F77"; then
 
13391
 
 
13392
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13393
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13394
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13395
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13396
else
 
13397
  lt_prog_compiler_pic_works_F77=no
 
13398
  ac_outfile=conftest.$ac_objext
 
13399
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13400
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13401
   # Insert the option either (1) after the last *FLAGS variable, or
 
13402
   # (2) before a word containing "conftest.", or (3) at the end.
 
13403
   # Note that $ac_compile itself does not contain backslashes and begins
 
13404
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13405
   # The option is referenced via a variable to avoid confusing sed.
 
13406
   lt_compile=`echo "$ac_compile" | $SED \
 
13407
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13408
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13409
   -e 's:$: $lt_compiler_flag:'`
 
13410
   (eval echo "\"\$as_me:13410: $lt_compile\"" >&5)
 
13411
   (eval "$lt_compile" 2>conftest.err)
 
13412
   ac_status=$?
 
13413
   cat conftest.err >&5
 
13414
   echo "$as_me:13414: \$? = $ac_status" >&5
 
13415
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13416
     # The compiler can only warn and ignore the option if not recognized
 
13417
     # So say no if there are warnings
 
13418
     if test ! -s conftest.err; then
 
13419
       lt_prog_compiler_pic_works_F77=yes
 
13420
     fi
 
13421
   fi
 
13422
   $rm conftest*
 
13423
 
 
13424
fi
 
13425
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13426
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13427
 
 
13428
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13429
    case $lt_prog_compiler_pic_F77 in
 
13430
     "" | " "*) ;;
 
13431
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13432
     esac
 
13433
else
 
13434
    lt_prog_compiler_pic_F77=
 
13435
     lt_prog_compiler_can_build_shared_F77=no
 
13436
fi
 
13437
 
 
13438
fi
 
13439
case "$host_os" in
 
13440
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13441
  *djgpp*)
 
13442
    lt_prog_compiler_pic_F77=
 
13443
    ;;
 
13444
  *)
 
13445
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13446
    ;;
 
13447
esac
 
13448
 
 
13449
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13450
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13451
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13453
else
 
13454
  lt_cv_prog_compiler_c_o_F77=no
 
13455
   $rm -r conftest 2>/dev/null
 
13456
   mkdir conftest
 
13457
   cd conftest
 
13458
   mkdir out
 
13459
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13460
 
 
13461
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13462
   # Insert the option either (1) after the last *FLAGS variable, or
 
13463
   # (2) before a word containing "conftest.", or (3) at the end.
 
13464
   # Note that $ac_compile itself does not contain backslashes and begins
 
13465
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13466
   lt_compile=`echo "$ac_compile" | $SED \
 
13467
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13468
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13469
   -e 's:$: $lt_compiler_flag:'`
 
13470
   (eval echo "\"\$as_me:13470: $lt_compile\"" >&5)
 
13471
   (eval "$lt_compile" 2>out/conftest.err)
 
13472
   ac_status=$?
 
13473
   cat out/conftest.err >&5
 
13474
   echo "$as_me:13474: \$? = $ac_status" >&5
 
13475
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13476
   then
 
13477
     # The compiler can only warn and ignore the option if not recognized
 
13478
     # So say no if there are warnings
 
13479
     if test ! -s out/conftest.err; then
 
13480
       lt_cv_prog_compiler_c_o_F77=yes
 
13481
     fi
 
13482
   fi
 
13483
   chmod u+w .
 
13484
   $rm conftest*
 
13485
   # SGI C++ compiler will create directory out/ii_files/ for
 
13486
   # template instantiation
 
13487
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13488
   $rm out/* && rmdir out
 
13489
   cd ..
 
13490
   rmdir conftest
 
13491
   $rm conftest*
 
13492
 
 
13493
fi
 
13494
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13495
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13496
 
 
13497
 
 
13498
hard_links="nottested"
 
13499
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13500
  # do not overwrite the value of need_locks provided by the user
 
13501
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13502
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13503
  hard_links=yes
 
13504
  $rm conftest*
 
13505
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13506
  touch conftest.a
 
13507
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13508
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13509
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13510
echo "${ECHO_T}$hard_links" >&6
 
13511
  if test "$hard_links" = no; then
 
13512
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13513
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13514
    need_locks=warn
 
13515
  fi
 
13516
else
 
13517
  need_locks=no
 
13518
fi
 
13519
 
 
13520
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13521
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13522
 
 
13523
  runpath_var=
 
13524
  allow_undefined_flag_F77=
 
13525
  enable_shared_with_static_runtimes_F77=no
 
13526
  archive_cmds_F77=
 
13527
  archive_expsym_cmds_F77=
 
13528
  old_archive_From_new_cmds_F77=
 
13529
  old_archive_from_expsyms_cmds_F77=
 
13530
  export_dynamic_flag_spec_F77=
 
13531
  whole_archive_flag_spec_F77=
 
13532
  thread_safe_flag_spec_F77=
 
13533
  hardcode_libdir_flag_spec_F77=
 
13534
  hardcode_libdir_flag_spec_ld_F77=
 
13535
  hardcode_libdir_separator_F77=
 
13536
  hardcode_direct_F77=no
 
13537
  hardcode_minus_L_F77=no
 
13538
  hardcode_shlibpath_var_F77=unsupported
 
13539
  link_all_deplibs_F77=unknown
 
13540
  hardcode_automatic_F77=no
 
13541
  module_cmds_F77=
 
13542
  module_expsym_cmds_F77=
 
13543
  always_export_symbols_F77=no
 
13544
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13545
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13546
  # included in the symbol list
 
13547
  include_expsyms_F77=
 
13548
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13549
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13550
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13551
  # as well as any symbol that contains `d'.
 
13552
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13553
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13554
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13555
  # the symbol is explicitly referenced.  Since portable code cannot
 
13556
  # rely on this symbol name, it's probably fine to never include it in
 
13557
  # preloaded symbol tables.
 
13558
  extract_expsyms_cmds=
 
13559
 
 
13560
  case $host_os in
 
13561
  cygwin* | mingw* | pw32*)
 
13562
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13563
    # When not using gcc, we currently assume that we are using
 
13564
    # Microsoft Visual C++.
 
13565
    if test "$GCC" != yes; then
 
13566
      with_gnu_ld=no
 
13567
    fi
 
13568
    ;;
 
13569
  openbsd*)
 
13570
    with_gnu_ld=no
 
13571
    ;;
 
13572
  esac
 
13573
 
 
13574
  ld_shlibs_F77=yes
 
13575
  if test "$with_gnu_ld" = yes; then
 
13576
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13577
    wlarc='${wl}'
 
13578
 
 
13579
    # See if GNU ld supports shared libraries.
 
13580
    case $host_os in
 
13581
    aix3* | aix4* | aix5*)
 
13582
      # On AIX/PPC, the GNU linker is very broken
 
13583
      if test "$host_cpu" != ia64; then
 
13584
        ld_shlibs_F77=no
 
13585
        cat <<EOF 1>&2
 
13586
 
 
13587
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13588
*** to be unable to reliably create shared libraries on AIX.
 
13589
*** Therefore, libtool is disabling shared libraries support.  If you
 
13590
*** really care for shared libraries, you may want to modify your PATH
 
13591
*** so that a non-GNU linker is found, and then restart.
 
13592
 
 
13593
EOF
 
13594
      fi
 
13595
      ;;
 
13596
 
 
13597
    amigaos*)
 
13598
      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)'
 
13599
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13600
      hardcode_minus_L_F77=yes
 
13601
 
 
13602
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13603
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13604
      # to version 4, is to share data among multiple programs linked
 
13605
      # with the same dynamic library.  Since this doesn't match the
 
13606
      # behavior of shared libraries on other platforms, we can't use
 
13607
      # them.
 
13608
      ld_shlibs_F77=no
 
13609
      ;;
 
13610
 
 
13611
    beos*)
 
13612
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13613
        allow_undefined_flag_F77=unsupported
 
13614
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13615
        # support --undefined.  This deserves some investigation.  FIXME
 
13616
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13617
      else
 
13618
        ld_shlibs_F77=no
 
13619
      fi
 
13620
      ;;
 
13621
 
 
13622
    cygwin* | mingw* | pw32*)
 
13623
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13624
      # as there is no search path for DLLs.
 
13625
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13626
      allow_undefined_flag_F77=unsupported
 
13627
      always_export_symbols_F77=no
 
13628
      enable_shared_with_static_runtimes_F77=yes
 
13629
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13630
 
 
13631
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13632
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13633
        # If the export-symbols file already is a .def file (1st line
 
13634
        # is EXPORTS), use it as is; otherwise, prepend...
 
13635
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13636
          cp $export_symbols $output_objdir/$soname.def;
 
13637
        else
 
13638
          echo EXPORTS > $output_objdir/$soname.def;
 
13639
          cat $export_symbols >> $output_objdir/$soname.def;
 
13640
        fi~
 
13641
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13642
      else
 
13643
        ld_shlibs=no
 
13644
      fi
 
13645
      ;;
 
13646
 
 
13647
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13648
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13649
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13650
        wlarc=
 
13651
      else
 
13652
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13653
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13654
      fi
 
13655
      ;;
 
13656
 
 
13657
    solaris* | sysv5*)
 
13658
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13659
        ld_shlibs_F77=no
 
13660
        cat <<EOF 1>&2
 
13661
 
 
13662
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13663
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13664
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13665
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13666
*** your PATH or compiler configuration so that the native linker is
 
13667
*** used, and then restart.
 
13668
 
 
13669
EOF
 
13670
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13671
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13672
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13673
      else
 
13674
        ld_shlibs_F77=no
 
13675
      fi
 
13676
      ;;
 
13677
 
 
13678
    sunos4*)
 
13679
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13680
      wlarc=
 
13681
      hardcode_direct_F77=yes
 
13682
      hardcode_shlibpath_var_F77=no
 
13683
      ;;
 
13684
 
 
13685
  linux*)
 
13686
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13687
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13688
        archive_cmds_F77="$tmp_archive_cmds"
 
13689
      supports_anon_versioning=no
 
13690
      case `$LD -v 2>/dev/null` in
 
13691
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13692
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13693
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13694
        *\ 2.11.*) ;; # other 2.11 versions
 
13695
        *) supports_anon_versioning=yes ;;
 
13696
      esac
 
13697
      if test $supports_anon_versioning = yes; then
 
13698
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13699
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13700
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
13701
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13702
      else
 
13703
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
13704
      fi
 
13705
      link_all_deplibs_F77=no
 
13706
    else
 
13707
      ld_shlibs_F77=no
 
13708
    fi
 
13709
    ;;
 
13710
 
 
13711
    *)
 
13712
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13713
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13714
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13715
      else
 
13716
        ld_shlibs_F77=no
 
13717
      fi
 
13718
      ;;
 
13719
    esac
 
13720
 
 
13721
    if test "$ld_shlibs_F77" = yes; then
 
13722
      runpath_var=LD_RUN_PATH
 
13723
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13724
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13725
      # ancient GNU ld didn't support --whole-archive et. al.
 
13726
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13727
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13728
      else
 
13729
        whole_archive_flag_spec_F77=
 
13730
      fi
 
13731
    fi
 
13732
  else
 
13733
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13734
    case $host_os in
 
13735
    aix3*)
 
13736
      allow_undefined_flag_F77=unsupported
 
13737
      always_export_symbols_F77=yes
 
13738
      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'
 
13739
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13740
      # are no directories specified by -L.
 
13741
      hardcode_minus_L_F77=yes
 
13742
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13743
        # Neither direct hardcoding nor static linking is supported with a
 
13744
        # broken collect2.
 
13745
        hardcode_direct_F77=unsupported
 
13746
      fi
 
13747
      ;;
 
13748
 
 
13749
    aix4* | aix5*)
 
13750
      if test "$host_cpu" = ia64; then
 
13751
        # On IA64, the linker does run time linking by default, so we don't
 
13752
        # have to do anything special.
 
13753
        aix_use_runtimelinking=no
 
13754
        exp_sym_flag='-Bexport'
 
13755
        no_entry_flag=""
 
13756
      else
 
13757
        # If we're using GNU nm, then we don't want the "-C" option.
 
13758
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13759
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13760
          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'
 
13761
        else
 
13762
          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'
 
13763
        fi
 
13764
        aix_use_runtimelinking=no
 
13765
 
 
13766
        # Test if we are trying to use run time linking or normal
 
13767
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13768
        # need to do runtime linking.
 
13769
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13770
          for ld_flag in $LDFLAGS; do
 
13771
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13772
            aix_use_runtimelinking=yes
 
13773
            break
 
13774
          fi
 
13775
          done
 
13776
        esac
 
13777
 
 
13778
        exp_sym_flag='-bexport'
 
13779
        no_entry_flag='-bnoentry'
 
13780
      fi
 
13781
 
 
13782
      # When large executables or shared objects are built, AIX ld can
 
13783
      # have problems creating the table of contents.  If linking a library
 
13784
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13785
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13786
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13787
 
 
13788
      archive_cmds_F77=''
 
13789
      hardcode_direct_F77=yes
 
13790
      hardcode_libdir_separator_F77=':'
 
13791
      link_all_deplibs_F77=yes
 
13792
 
 
13793
      if test "$GCC" = yes; then
 
13794
        case $host_os in aix4.012|aix4.012.*)
 
13795
        # We only want to do this on AIX 4.2 and lower, the check
 
13796
        # below for broken collect2 doesn't work under 4.3+
 
13797
          collect2name=`${CC} -print-prog-name=collect2`
 
13798
          if test -f "$collect2name" && \
 
13799
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13800
          then
 
13801
          # We have reworked collect2
 
13802
          hardcode_direct_F77=yes
 
13803
          else
 
13804
          # We have old collect2
 
13805
          hardcode_direct_F77=unsupported
 
13806
          # It fails to find uninstalled libraries when the uninstalled
 
13807
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13808
          # to unsupported forces relinking
 
13809
          hardcode_minus_L_F77=yes
 
13810
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13811
          hardcode_libdir_separator_F77=
 
13812
          fi
 
13813
        esac
 
13814
        shared_flag='-shared'
 
13815
      else
 
13816
        # not using gcc
 
13817
        if test "$host_cpu" = ia64; then
 
13818
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13819
        # chokes on -Wl,-G. The following line is correct:
 
13820
          shared_flag='-G'
 
13821
        else
 
13822
        if test "$aix_use_runtimelinking" = yes; then
 
13823
            shared_flag='${wl}-G'
 
13824
          else
 
13825
            shared_flag='${wl}-bM:SRE'
 
13826
        fi
 
13827
        fi
 
13828
      fi
 
13829
 
 
13830
      # It seems that -bexpall does not export symbols beginning with
 
13831
      # underscore (_), so it is better to generate a list of symbols to export.
 
13832
      always_export_symbols_F77=yes
 
13833
      if test "$aix_use_runtimelinking" = yes; then
 
13834
        # Warning - without using the other runtime loading flags (-brtl),
 
13835
        # -berok will link without error, but may produce a broken library.
 
13836
        allow_undefined_flag_F77='-berok'
 
13837
       # Determine the default libpath from the value encoded in an empty executable.
 
13838
       cat >conftest.$ac_ext <<_ACEOF
 
13839
      program main
 
13840
 
 
13841
      end
 
13842
_ACEOF
 
13843
rm -f conftest.$ac_objext conftest$ac_exeext
 
13844
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13845
  (eval $ac_link) 2>conftest.er1
 
13846
  ac_status=$?
 
13847
  grep -v '^ *+' conftest.er1 >conftest.err
 
13848
  rm -f conftest.er1
 
13849
  cat conftest.err >&5
 
13850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13851
  (exit $ac_status); } &&
 
13852
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13854
  (eval $ac_try) 2>&5
 
13855
  ac_status=$?
 
13856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13857
  (exit $ac_status); }; } &&
 
13858
         { ac_try='test -s conftest$ac_exeext'
 
13859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13860
  (eval $ac_try) 2>&5
 
13861
  ac_status=$?
 
13862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13863
  (exit $ac_status); }; }; then
 
13864
 
 
13865
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13866
}'`
 
13867
# Check for a 64-bit object if we didn't find anything.
 
13868
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; }
 
13869
}'`; fi
 
13870
else
 
13871
  echo "$as_me: failed program was:" >&5
 
13872
sed 's/^/| /' conftest.$ac_ext >&5
 
13873
 
 
13874
fi
 
13875
rm -f conftest.err conftest.$ac_objext \
 
13876
      conftest$ac_exeext conftest.$ac_ext
 
13877
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13878
 
 
13879
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13880
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13881
       else
 
13882
        if test "$host_cpu" = ia64; then
 
13883
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13884
          allow_undefined_flag_F77="-z nodefs"
 
13885
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
13886
        else
 
13887
         # Determine the default libpath from the value encoded in an empty executable.
 
13888
         cat >conftest.$ac_ext <<_ACEOF
 
13889
      program main
 
13890
 
 
13891
      end
 
13892
_ACEOF
 
13893
rm -f conftest.$ac_objext conftest$ac_exeext
 
13894
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13895
  (eval $ac_link) 2>conftest.er1
 
13896
  ac_status=$?
 
13897
  grep -v '^ *+' conftest.er1 >conftest.err
 
13898
  rm -f conftest.er1
 
13899
  cat conftest.err >&5
 
13900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13901
  (exit $ac_status); } &&
 
13902
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13904
  (eval $ac_try) 2>&5
 
13905
  ac_status=$?
 
13906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13907
  (exit $ac_status); }; } &&
 
13908
         { ac_try='test -s conftest$ac_exeext'
 
13909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13910
  (eval $ac_try) 2>&5
 
13911
  ac_status=$?
 
13912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13913
  (exit $ac_status); }; }; then
 
13914
 
 
13915
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13916
}'`
 
13917
# Check for a 64-bit object if we didn't find anything.
 
13918
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; }
 
13919
}'`; fi
 
13920
else
 
13921
  echo "$as_me: failed program was:" >&5
 
13922
sed 's/^/| /' conftest.$ac_ext >&5
 
13923
 
 
13924
fi
 
13925
rm -f conftest.err conftest.$ac_objext \
 
13926
      conftest$ac_exeext conftest.$ac_ext
 
13927
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13928
 
 
13929
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13930
          # Warning - without using the other run time loading flags,
 
13931
          # -berok will link without error, but may produce a broken library.
 
13932
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13933
          allow_undefined_flag_F77=' ${wl}-berok'
 
13934
          # -bexpall does not export symbols beginning with underscore (_)
 
13935
          always_export_symbols_F77=yes
 
13936
          # Exported symbols can be pulled into shared objects from archives
 
13937
          whole_archive_flag_spec_F77=' '
 
13938
          archive_cmds_need_lc_F77=yes
 
13939
          # This is similar to how AIX traditionally builds it's shared libraries.
 
13940
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13941
        fi
 
13942
      fi
 
13943
      ;;
 
13944
 
 
13945
    amigaos*)
 
13946
      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)'
 
13947
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13948
      hardcode_minus_L_F77=yes
 
13949
      # see comment about different semantics on the GNU ld section
 
13950
      ld_shlibs_F77=no
 
13951
      ;;
 
13952
 
 
13953
    bsdi4*)
 
13954
      export_dynamic_flag_spec_F77=-rdynamic
 
13955
      ;;
 
13956
 
 
13957
    cygwin* | mingw* | pw32*)
 
13958
      # When not using gcc, we currently assume that we are using
 
13959
      # Microsoft Visual C++.
 
13960
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13961
      # no search path for DLLs.
 
13962
      hardcode_libdir_flag_spec_F77=' '
 
13963
      allow_undefined_flag_F77=unsupported
 
13964
      # Tell ltmain to make .lib files, not .a files.
 
13965
      libext=lib
 
13966
      # Tell ltmain to make .dll files, not .so files.
 
13967
      shrext_cmds=".dll"
 
13968
      # FIXME: Setting linknames here is a bad hack.
 
13969
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13970
      # The linker will automatically build a .lib file if we build a DLL.
 
13971
      old_archive_From_new_cmds_F77='true'
 
13972
      # FIXME: Should let the user specify the lib program.
 
13973
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13974
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13975
      enable_shared_with_static_runtimes_F77=yes
 
13976
      ;;
 
13977
 
 
13978
    darwin* | rhapsody*)
 
13979
    if test "$GXX" = yes ; then
 
13980
      archive_cmds_need_lc_F77=no
 
13981
      case "$host_os" in
 
13982
      rhapsody* | darwin1.[012])
 
13983
        allow_undefined_flag_F77='-undefined suppress'
 
13984
        ;;
 
13985
      *) # Darwin 1.3 on
 
13986
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13987
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13988
      else
 
13989
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
13990
          10.[012])
 
13991
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13992
            ;;
 
13993
          10.*)
 
13994
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
13995
            ;;
 
13996
        esac
 
13997
      fi
 
13998
        ;;
 
13999
      esac
 
14000
        lt_int_apple_cc_single_mod=no
 
14001
        output_verbose_link_cmd='echo'
 
14002
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
14003
          lt_int_apple_cc_single_mod=yes
 
14004
        fi
 
14005
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14006
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14007
        else
 
14008
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14009
      fi
 
14010
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14011
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14012
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14013
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14014
        else
 
14015
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14016
        fi
 
14017
          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}'
 
14018
      hardcode_direct_F77=no
 
14019
      hardcode_automatic_F77=yes
 
14020
      hardcode_shlibpath_var_F77=unsupported
 
14021
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14022
      link_all_deplibs_F77=yes
 
14023
    else
 
14024
      ld_shlibs_F77=no
 
14025
    fi
 
14026
      ;;
 
14027
 
 
14028
    dgux*)
 
14029
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14030
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14031
      hardcode_shlibpath_var_F77=no
 
14032
      ;;
 
14033
 
 
14034
    freebsd1*)
 
14035
      ld_shlibs_F77=no
 
14036
      ;;
 
14037
 
 
14038
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14039
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14040
    # does not break anything, and helps significantly (at the cost of a little
 
14041
    # extra space).
 
14042
    freebsd2.2*)
 
14043
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14044
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14045
      hardcode_direct_F77=yes
 
14046
      hardcode_shlibpath_var_F77=no
 
14047
      ;;
 
14048
 
 
14049
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14050
    freebsd2*)
 
14051
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14052
      hardcode_direct_F77=yes
 
14053
      hardcode_minus_L_F77=yes
 
14054
      hardcode_shlibpath_var_F77=no
 
14055
      ;;
 
14056
 
 
14057
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14058
    freebsd* | kfreebsd*-gnu)
 
14059
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14060
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14061
      hardcode_direct_F77=yes
 
14062
      hardcode_shlibpath_var_F77=no
 
14063
      ;;
 
14064
 
 
14065
    hpux9*)
 
14066
      if test "$GCC" = yes; then
 
14067
        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'
 
14068
      else
 
14069
        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'
 
14070
      fi
 
14071
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14072
      hardcode_libdir_separator_F77=:
 
14073
      hardcode_direct_F77=yes
 
14074
 
 
14075
      # hardcode_minus_L: Not really in the search PATH,
 
14076
      # but as the default location of the library.
 
14077
      hardcode_minus_L_F77=yes
 
14078
      export_dynamic_flag_spec_F77='${wl}-E'
 
14079
      ;;
 
14080
 
 
14081
    hpux10* | hpux11*)
 
14082
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14083
        case "$host_cpu" in
 
14084
        hppa*64*|ia64*)
 
14085
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14086
          ;;
 
14087
        *)
 
14088
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14089
          ;;
 
14090
        esac
 
14091
      else
 
14092
        case "$host_cpu" in
 
14093
        hppa*64*|ia64*)
 
14094
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14095
          ;;
 
14096
        *)
 
14097
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14098
          ;;
 
14099
        esac
 
14100
      fi
 
14101
      if test "$with_gnu_ld" = no; then
 
14102
        case "$host_cpu" in
 
14103
        hppa*64*)
 
14104
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14105
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14106
          hardcode_libdir_separator_F77=:
 
14107
          hardcode_direct_F77=no
 
14108
          hardcode_shlibpath_var_F77=no
 
14109
          ;;
 
14110
        ia64*)
 
14111
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14112
          hardcode_direct_F77=no
 
14113
          hardcode_shlibpath_var_F77=no
 
14114
 
 
14115
          # hardcode_minus_L: Not really in the search PATH,
 
14116
          # but as the default location of the library.
 
14117
          hardcode_minus_L_F77=yes
 
14118
          ;;
 
14119
        *)
 
14120
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14121
          hardcode_libdir_separator_F77=:
 
14122
          hardcode_direct_F77=yes
 
14123
          export_dynamic_flag_spec_F77='${wl}-E'
 
14124
 
 
14125
          # hardcode_minus_L: Not really in the search PATH,
 
14126
          # but as the default location of the library.
 
14127
          hardcode_minus_L_F77=yes
 
14128
          ;;
 
14129
        esac
 
14130
      fi
 
14131
      ;;
 
14132
 
 
14133
    irix5* | irix6* | nonstopux*)
 
14134
      if test "$GCC" = yes; then
 
14135
        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'
 
14136
      else
 
14137
        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'
 
14138
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14139
      fi
 
14140
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14141
      hardcode_libdir_separator_F77=:
 
14142
      link_all_deplibs_F77=yes
 
14143
      ;;
 
14144
 
 
14145
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14146
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14147
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14148
      else
 
14149
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14150
      fi
 
14151
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14152
      hardcode_direct_F77=yes
 
14153
      hardcode_shlibpath_var_F77=no
 
14154
      ;;
 
14155
 
 
14156
    newsos6)
 
14157
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14158
      hardcode_direct_F77=yes
 
14159
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14160
      hardcode_libdir_separator_F77=:
 
14161
      hardcode_shlibpath_var_F77=no
 
14162
      ;;
 
14163
 
 
14164
    openbsd*)
 
14165
      hardcode_direct_F77=yes
 
14166
      hardcode_shlibpath_var_F77=no
 
14167
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14168
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14169
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14170
        export_dynamic_flag_spec_F77='${wl}-E'
 
14171
      else
 
14172
       case $host_os in
 
14173
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14174
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14175
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14176
           ;;
 
14177
         *)
 
14178
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14179
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14180
           ;;
 
14181
       esac
 
14182
      fi
 
14183
      ;;
 
14184
 
 
14185
    os2*)
 
14186
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14187
      hardcode_minus_L_F77=yes
 
14188
      allow_undefined_flag_F77=unsupported
 
14189
      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'
 
14190
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14191
      ;;
 
14192
 
 
14193
    osf3*)
 
14194
      if test "$GCC" = yes; then
 
14195
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14196
        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'
 
14197
      else
 
14198
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14199
        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'
 
14200
      fi
 
14201
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14202
      hardcode_libdir_separator_F77=:
 
14203
      ;;
 
14204
 
 
14205
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14206
      if test "$GCC" = yes; then
 
14207
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14208
        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'
 
14209
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14210
      else
 
14211
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14212
        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'
 
14213
        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~
 
14214
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
14215
 
 
14216
        # Both c and cxx compiler support -rpath directly
 
14217
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14218
      fi
 
14219
      hardcode_libdir_separator_F77=:
 
14220
      ;;
 
14221
 
 
14222
    sco3.2v5*)
 
14223
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14224
      hardcode_shlibpath_var_F77=no
 
14225
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14226
      runpath_var=LD_RUN_PATH
 
14227
      hardcode_runpath_var=yes
 
14228
      ;;
 
14229
 
 
14230
    solaris*)
 
14231
      no_undefined_flag_F77=' -z text'
 
14232
      if test "$GCC" = yes; then
 
14233
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14234
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14235
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14236
      else
 
14237
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14238
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14239
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14240
      fi
 
14241
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14242
      hardcode_shlibpath_var_F77=no
 
14243
      case $host_os in
 
14244
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14245
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14246
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14247
      esac
 
14248
      link_all_deplibs_F77=yes
 
14249
      ;;
 
14250
 
 
14251
    sunos4*)
 
14252
      if test "x$host_vendor" = xsequent; then
 
14253
        # Use $CC to link under sequent, because it throws in some extra .o
 
14254
        # files that make .init and .fini sections work.
 
14255
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14256
      else
 
14257
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14258
      fi
 
14259
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14260
      hardcode_direct_F77=yes
 
14261
      hardcode_minus_L_F77=yes
 
14262
      hardcode_shlibpath_var_F77=no
 
14263
      ;;
 
14264
 
 
14265
    sysv4)
 
14266
      case $host_vendor in
 
14267
        sni)
 
14268
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14269
          hardcode_direct_F77=yes # is this really true???
 
14270
        ;;
 
14271
        siemens)
 
14272
          ## LD is ld it makes a PLAMLIB
 
14273
          ## CC just makes a GrossModule.
 
14274
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14275
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14276
          hardcode_direct_F77=no
 
14277
        ;;
 
14278
        motorola)
 
14279
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14280
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14281
        ;;
 
14282
      esac
 
14283
      runpath_var='LD_RUN_PATH'
 
14284
      hardcode_shlibpath_var_F77=no
 
14285
      ;;
 
14286
 
 
14287
    sysv4.3*)
 
14288
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14289
      hardcode_shlibpath_var_F77=no
 
14290
      export_dynamic_flag_spec_F77='-Bexport'
 
14291
      ;;
 
14292
 
 
14293
    sysv4*MP*)
 
14294
      if test -d /usr/nec; then
 
14295
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14296
        hardcode_shlibpath_var_F77=no
 
14297
        runpath_var=LD_RUN_PATH
 
14298
        hardcode_runpath_var=yes
 
14299
        ld_shlibs_F77=yes
 
14300
      fi
 
14301
      ;;
 
14302
 
 
14303
    sysv4.2uw2*)
 
14304
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14305
      hardcode_direct_F77=yes
 
14306
      hardcode_minus_L_F77=no
 
14307
      hardcode_shlibpath_var_F77=no
 
14308
      hardcode_runpath_var=yes
 
14309
      runpath_var=LD_RUN_PATH
 
14310
      ;;
 
14311
 
 
14312
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14313
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14314
      if test "$GCC" = yes; then
 
14315
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14316
      else
 
14317
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14318
      fi
 
14319
      runpath_var='LD_RUN_PATH'
 
14320
      hardcode_shlibpath_var_F77=no
 
14321
      ;;
 
14322
 
 
14323
    sysv5*)
 
14324
      no_undefined_flag_F77=' -z text'
 
14325
      # $CC -shared without GNU ld will not create a library from C++
 
14326
      # object files and a static libstdc++, better avoid it by now
 
14327
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14328
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14329
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14330
      hardcode_libdir_flag_spec_F77=
 
14331
      hardcode_shlibpath_var_F77=no
 
14332
      runpath_var='LD_RUN_PATH'
 
14333
      ;;
 
14334
 
 
14335
    uts4*)
 
14336
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14337
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14338
      hardcode_shlibpath_var_F77=no
 
14339
      ;;
 
14340
 
 
14341
    *)
 
14342
      ld_shlibs_F77=no
 
14343
      ;;
 
14344
    esac
 
14345
  fi
 
14346
 
 
14347
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14348
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14349
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14350
 
 
14351
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14352
if test "$GCC" = yes; then
 
14353
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14354
fi
 
14355
 
 
14356
#
 
14357
# Do we need to explicitly link libc?
 
14358
#
 
14359
case "x$archive_cmds_need_lc_F77" in
 
14360
x|xyes)
 
14361
  # Assume -lc should be added
 
14362
  archive_cmds_need_lc_F77=yes
 
14363
 
 
14364
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14365
    case $archive_cmds_F77 in
 
14366
    *'~'*)
 
14367
      # FIXME: we may have to deal with multi-command sequences.
 
14368
      ;;
 
14369
    '$CC '*)
 
14370
      # Test whether the compiler implicitly links with -lc since on some
 
14371
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14372
      # to ld, don't add -lc before -lgcc.
 
14373
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14374
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14375
      $rm conftest*
 
14376
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14377
 
 
14378
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14379
  (eval $ac_compile) 2>&5
 
14380
  ac_status=$?
 
14381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14382
  (exit $ac_status); } 2>conftest.err; then
 
14383
        soname=conftest
 
14384
        lib=conftest
 
14385
        libobjs=conftest.$ac_objext
 
14386
        deplibs=
 
14387
        wl=$lt_prog_compiler_wl_F77
 
14388
        compiler_flags=-v
 
14389
        linker_flags=-v
 
14390
        verstring=
 
14391
        output_objdir=.
 
14392
        libname=conftest
 
14393
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14394
        allow_undefined_flag_F77=
 
14395
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14396
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14397
  ac_status=$?
 
14398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14399
  (exit $ac_status); }
 
14400
        then
 
14401
          archive_cmds_need_lc_F77=no
 
14402
        else
 
14403
          archive_cmds_need_lc_F77=yes
 
14404
        fi
 
14405
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14406
      else
 
14407
        cat conftest.err 1>&5
 
14408
      fi
 
14409
      $rm conftest*
 
14410
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14411
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14412
      ;;
 
14413
    esac
 
14414
  fi
 
14415
  ;;
 
14416
esac
 
14417
 
 
14418
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14419
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14420
library_names_spec=
 
14421
libname_spec='lib$name'
 
14422
soname_spec=
 
14423
shrext_cmds=".so"
 
14424
postinstall_cmds=
 
14425
postuninstall_cmds=
 
14426
finish_cmds=
 
14427
finish_eval=
 
14428
shlibpath_var=
 
14429
shlibpath_overrides_runpath=unknown
 
14430
version_type=none
 
14431
dynamic_linker="$host_os ld.so"
 
14432
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14433
if test "$GCC" = yes; then
 
14434
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14435
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14436
    # if the path contains ";" then we assume it to be the separator
 
14437
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14438
    # assumed that no part of a normal pathname contains ";" but that should
 
14439
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14440
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14441
  else
 
14442
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14443
  fi
 
14444
else
 
14445
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14446
fi
 
14447
need_lib_prefix=unknown
 
14448
hardcode_into_libs=no
 
14449
 
 
14450
# when you set need_version to no, make sure it does not cause -set_version
 
14451
# flags to be left without arguments
 
14452
need_version=unknown
 
14453
 
 
14454
case $host_os in
 
14455
aix3*)
 
14456
  version_type=linux
 
14457
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14458
  shlibpath_var=LIBPATH
 
14459
 
 
14460
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14461
  soname_spec='${libname}${release}${shared_ext}$major'
 
14462
  ;;
 
14463
 
 
14464
aix4* | aix5*)
 
14465
  version_type=linux
 
14466
  need_lib_prefix=no
 
14467
  need_version=no
 
14468
  hardcode_into_libs=yes
 
14469
  if test "$host_cpu" = ia64; then
 
14470
    # AIX 5 supports IA64
 
14471
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14472
    shlibpath_var=LD_LIBRARY_PATH
 
14473
  else
 
14474
    # With GCC up to 2.95.x, collect2 would create an import file
 
14475
    # for dependence libraries.  The import file would start with
 
14476
    # the line `#! .'.  This would cause the generated library to
 
14477
    # depend on `.', always an invalid library.  This was fixed in
 
14478
    # development snapshots of GCC prior to 3.0.
 
14479
    case $host_os in
 
14480
      aix4 | aix4.[01] | aix4.[01].*)
 
14481
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14482
           echo ' yes '
 
14483
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14484
        :
 
14485
      else
 
14486
        can_build_shared=no
 
14487
      fi
 
14488
      ;;
 
14489
    esac
 
14490
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14491
    # soname into executable. Probably we can add versioning support to
 
14492
    # collect2, so additional links can be useful in future.
 
14493
    if test "$aix_use_runtimelinking" = yes; then
 
14494
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14495
      # instead of lib<name>.a to let people know that these are not
 
14496
      # typical AIX shared libraries.
 
14497
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14498
    else
 
14499
      # We preserve .a as extension for shared libraries through AIX4.2
 
14500
      # and later when we are not doing run time linking.
 
14501
      library_names_spec='${libname}${release}.a $libname.a'
 
14502
      soname_spec='${libname}${release}${shared_ext}$major'
 
14503
    fi
 
14504
    shlibpath_var=LIBPATH
 
14505
  fi
 
14506
  ;;
 
14507
 
 
14508
amigaos*)
 
14509
  library_names_spec='$libname.ixlibrary $libname.a'
 
14510
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14511
  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'
 
14512
  ;;
 
14513
 
 
14514
beos*)
 
14515
  library_names_spec='${libname}${shared_ext}'
 
14516
  dynamic_linker="$host_os ld.so"
 
14517
  shlibpath_var=LIBRARY_PATH
 
14518
  ;;
 
14519
 
 
14520
bsdi4*)
 
14521
  version_type=linux
 
14522
  need_version=no
 
14523
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14524
  soname_spec='${libname}${release}${shared_ext}$major'
 
14525
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14526
  shlibpath_var=LD_LIBRARY_PATH
 
14527
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14528
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14529
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14530
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14531
  # libtool to hard-code these into programs
 
14532
  ;;
 
14533
 
 
14534
cygwin* | mingw* | pw32*)
 
14535
  version_type=windows
 
14536
  shrext_cmds=".dll"
 
14537
  need_version=no
 
14538
  need_lib_prefix=no
 
14539
 
 
14540
  case $GCC,$host_os in
 
14541
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14542
    library_names_spec='$libname.dll.a'
 
14543
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14544
    postinstall_cmds='base_file=`basename \${file}`~
 
14545
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14546
      dldir=$destdir/`dirname \$dlpath`~
 
14547
      test -d \$dldir || mkdir -p \$dldir~
 
14548
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14549
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14550
      dlpath=$dir/\$dldll~
 
14551
       $rm \$dlpath'
 
14552
    shlibpath_overrides_runpath=yes
 
14553
 
 
14554
    case $host_os in
 
14555
    cygwin*)
 
14556
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14557
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14558
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14559
      ;;
 
14560
    mingw*)
 
14561
      # MinGW DLLs use traditional 'lib' prefix
 
14562
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14563
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14564
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14565
        # It is most probably a Windows format PATH printed by
 
14566
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14567
        # path with ; separators, and with drive letters. We can handle the
 
14568
        # drive letters (cygwin fileutils understands them), so leave them,
 
14569
        # especially as we might pass files found there to a mingw objdump,
 
14570
        # which wouldn't understand a cygwinified path. Ahh.
 
14571
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14572
      else
 
14573
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14574
      fi
 
14575
      ;;
 
14576
    pw32*)
 
14577
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14578
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14579
      ;;
 
14580
    esac
 
14581
    ;;
 
14582
 
 
14583
  *)
 
14584
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14585
    ;;
 
14586
  esac
 
14587
  dynamic_linker='Win32 ld.exe'
 
14588
  # FIXME: first we should search . and the directory the executable is in
 
14589
  shlibpath_var=PATH
 
14590
  ;;
 
14591
 
 
14592
darwin* | rhapsody*)
 
14593
  dynamic_linker="$host_os dyld"
 
14594
  version_type=darwin
 
14595
  need_lib_prefix=no
 
14596
  need_version=no
 
14597
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14598
  soname_spec='${libname}${release}${major}$shared_ext'
 
14599
  shlibpath_overrides_runpath=yes
 
14600
  shlibpath_var=DYLD_LIBRARY_PATH
 
14601
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14602
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14603
  if test "$GCC" = yes; then
 
14604
    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"`
 
14605
  else
 
14606
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14607
  fi
 
14608
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14609
  ;;
 
14610
 
 
14611
dgux*)
 
14612
  version_type=linux
 
14613
  need_lib_prefix=no
 
14614
  need_version=no
 
14615
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14616
  soname_spec='${libname}${release}${shared_ext}$major'
 
14617
  shlibpath_var=LD_LIBRARY_PATH
 
14618
  ;;
 
14619
 
 
14620
freebsd1*)
 
14621
  dynamic_linker=no
 
14622
  ;;
 
14623
 
 
14624
kfreebsd*-gnu)
 
14625
  version_type=linux
 
14626
  need_lib_prefix=no
 
14627
  need_version=no
 
14628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14629
  soname_spec='${libname}${release}${shared_ext}$major'
 
14630
  shlibpath_var=LD_LIBRARY_PATH
 
14631
  shlibpath_overrides_runpath=no
 
14632
  hardcode_into_libs=yes
 
14633
  dynamic_linker='GNU ld.so'
 
14634
  ;;
 
14635
 
 
14636
freebsd*)
 
14637
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14638
  version_type=freebsd-$objformat
 
14639
  case $version_type in
 
14640
    freebsd-elf*)
 
14641
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14642
      need_version=no
 
14643
      need_lib_prefix=no
 
14644
      ;;
 
14645
    freebsd-*)
 
14646
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14647
      need_version=yes
 
14648
      ;;
 
14649
  esac
 
14650
  shlibpath_var=LD_LIBRARY_PATH
 
14651
  case $host_os in
 
14652
  freebsd2*)
 
14653
    shlibpath_overrides_runpath=yes
 
14654
    ;;
 
14655
  freebsd3.01* | freebsdelf3.01*)
 
14656
    shlibpath_overrides_runpath=yes
 
14657
    hardcode_into_libs=yes
 
14658
    ;;
 
14659
  *) # from 3.2 on
 
14660
    shlibpath_overrides_runpath=no
 
14661
    hardcode_into_libs=yes
 
14662
    ;;
 
14663
  esac
 
14664
  ;;
 
14665
 
 
14666
gnu*)
 
14667
  version_type=linux
 
14668
  need_lib_prefix=no
 
14669
  need_version=no
 
14670
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14671
  soname_spec='${libname}${release}${shared_ext}$major'
 
14672
  shlibpath_var=LD_LIBRARY_PATH
 
14673
  hardcode_into_libs=yes
 
14674
  ;;
 
14675
 
 
14676
hpux9* | hpux10* | hpux11*)
 
14677
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14678
  # link against other versions.
 
14679
  version_type=sunos
 
14680
  need_lib_prefix=no
 
14681
  need_version=no
 
14682
  case "$host_cpu" in
 
14683
  ia64*)
 
14684
    shrext_cmds='.so'
 
14685
    hardcode_into_libs=yes
 
14686
    dynamic_linker="$host_os dld.so"
 
14687
    shlibpath_var=LD_LIBRARY_PATH
 
14688
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14689
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14690
    soname_spec='${libname}${release}${shared_ext}$major'
 
14691
    if test "X$HPUX_IA64_MODE" = X32; then
 
14692
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14693
    else
 
14694
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14695
    fi
 
14696
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14697
    ;;
 
14698
   hppa*64*)
 
14699
     shrext_cmds='.sl'
 
14700
     hardcode_into_libs=yes
 
14701
     dynamic_linker="$host_os dld.sl"
 
14702
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14703
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14704
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14705
     soname_spec='${libname}${release}${shared_ext}$major'
 
14706
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14707
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14708
     ;;
 
14709
   *)
 
14710
    shrext_cmds='.sl'
 
14711
    dynamic_linker="$host_os dld.sl"
 
14712
    shlibpath_var=SHLIB_PATH
 
14713
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14714
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14715
    soname_spec='${libname}${release}${shared_ext}$major'
 
14716
    ;;
 
14717
  esac
 
14718
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14719
  postinstall_cmds='chmod 555 $lib'
 
14720
  ;;
 
14721
 
 
14722
irix5* | irix6* | nonstopux*)
 
14723
  case $host_os in
 
14724
    nonstopux*) version_type=nonstopux ;;
 
14725
    *)
 
14726
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14727
                version_type=linux
 
14728
        else
 
14729
                version_type=irix
 
14730
        fi ;;
 
14731
  esac
 
14732
  need_lib_prefix=no
 
14733
  need_version=no
 
14734
  soname_spec='${libname}${release}${shared_ext}$major'
 
14735
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14736
  case $host_os in
 
14737
  irix5* | nonstopux*)
 
14738
    libsuff= shlibsuff=
 
14739
    ;;
 
14740
  *)
 
14741
    case $LD in # libtool.m4 will add one of these switches to LD
 
14742
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14743
      libsuff= shlibsuff= libmagic=32-bit;;
 
14744
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14745
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14746
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14747
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14748
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14749
    esac
 
14750
    ;;
 
14751
  esac
 
14752
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14753
  shlibpath_overrides_runpath=no
 
14754
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14755
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14756
  hardcode_into_libs=yes
 
14757
  ;;
 
14758
 
 
14759
# No shared lib support for Linux oldld, aout, or coff.
 
14760
linux*oldld* | linux*aout* | linux*coff*)
 
14761
  dynamic_linker=no
 
14762
  ;;
 
14763
 
 
14764
# This must be Linux ELF.
 
14765
linux*)
 
14766
  version_type=linux
 
14767
  need_lib_prefix=no
 
14768
  need_version=no
 
14769
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14770
  soname_spec='${libname}${release}${shared_ext}$major'
 
14771
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14772
  shlibpath_var=LD_LIBRARY_PATH
 
14773
  shlibpath_overrides_runpath=no
 
14774
  # This implies no fast_install, which is unacceptable.
 
14775
  # Some rework will be needed to allow for fast_install
 
14776
  # before this can be enabled.
 
14777
  hardcode_into_libs=yes
 
14778
 
 
14779
  # Append ld.so.conf contents to the search path
 
14780
  if test -f /etc/ld.so.conf; then
 
14781
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
14782
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14783
  fi
 
14784
 
 
14785
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14786
  # powerpc, because MkLinux only supported shared libraries with the
 
14787
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14788
  # most powerpc-linux boxes support dynamic linking these days and
 
14789
  # people can always --disable-shared, the test was removed, and we
 
14790
  # assume the GNU/Linux dynamic linker is in use.
 
14791
  dynamic_linker='GNU/Linux ld.so'
 
14792
  ;;
 
14793
 
 
14794
netbsdelf*-gnu)
 
14795
  version_type=linux
 
14796
  need_lib_prefix=no
 
14797
  need_version=no
 
14798
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14799
  soname_spec='${libname}${release}${shared_ext}$major'
 
14800
  shlibpath_var=LD_LIBRARY_PATH
 
14801
  shlibpath_overrides_runpath=no
 
14802
  hardcode_into_libs=yes
 
14803
  dynamic_linker='NetBSD ld.elf_so'
 
14804
  ;;
 
14805
 
 
14806
knetbsd*-gnu)
 
14807
  version_type=linux
 
14808
  need_lib_prefix=no
 
14809
  need_version=no
 
14810
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14811
  soname_spec='${libname}${release}${shared_ext}$major'
 
14812
  shlibpath_var=LD_LIBRARY_PATH
 
14813
  shlibpath_overrides_runpath=no
 
14814
  hardcode_into_libs=yes
 
14815
  dynamic_linker='GNU ld.so'
 
14816
  ;;
 
14817
 
 
14818
netbsd*)
 
14819
  version_type=sunos
 
14820
  need_lib_prefix=no
 
14821
  need_version=no
 
14822
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14823
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14824
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14825
    dynamic_linker='NetBSD (a.out) ld.so'
 
14826
  else
 
14827
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14828
    soname_spec='${libname}${release}${shared_ext}$major'
 
14829
    dynamic_linker='NetBSD ld.elf_so'
 
14830
  fi
 
14831
  shlibpath_var=LD_LIBRARY_PATH
 
14832
  shlibpath_overrides_runpath=yes
 
14833
  hardcode_into_libs=yes
 
14834
  ;;
 
14835
 
 
14836
newsos6)
 
14837
  version_type=linux
 
14838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14839
  shlibpath_var=LD_LIBRARY_PATH
 
14840
  shlibpath_overrides_runpath=yes
 
14841
  ;;
 
14842
 
 
14843
nto-qnx*)
 
14844
  version_type=linux
 
14845
  need_lib_prefix=no
 
14846
  need_version=no
 
14847
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14848
  soname_spec='${libname}${release}${shared_ext}$major'
 
14849
  shlibpath_var=LD_LIBRARY_PATH
 
14850
  shlibpath_overrides_runpath=yes
 
14851
  ;;
 
14852
 
 
14853
openbsd*)
 
14854
  version_type=sunos
 
14855
  need_lib_prefix=no
 
14856
  need_version=yes
 
14857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14858
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14859
  shlibpath_var=LD_LIBRARY_PATH
 
14860
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14861
    case $host_os in
 
14862
      openbsd2.[89] | openbsd2.[89].*)
 
14863
        shlibpath_overrides_runpath=no
 
14864
        ;;
 
14865
      *)
 
14866
        shlibpath_overrides_runpath=yes
 
14867
        ;;
 
14868
      esac
 
14869
  else
 
14870
    shlibpath_overrides_runpath=yes
 
14871
  fi
 
14872
  ;;
 
14873
 
 
14874
os2*)
 
14875
  libname_spec='$name'
 
14876
  shrext_cmds=".dll"
 
14877
  need_lib_prefix=no
 
14878
  library_names_spec='$libname${shared_ext} $libname.a'
 
14879
  dynamic_linker='OS/2 ld.exe'
 
14880
  shlibpath_var=LIBPATH
 
14881
  ;;
 
14882
 
 
14883
osf3* | osf4* | osf5*)
 
14884
  version_type=osf
 
14885
  need_lib_prefix=no
 
14886
  need_version=no
 
14887
  soname_spec='${libname}${release}${shared_ext}$major'
 
14888
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14889
  shlibpath_var=LD_LIBRARY_PATH
 
14890
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14891
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14892
  ;;
 
14893
 
 
14894
sco3.2v5*)
 
14895
  version_type=osf
 
14896
  soname_spec='${libname}${release}${shared_ext}$major'
 
14897
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14898
  shlibpath_var=LD_LIBRARY_PATH
 
14899
  ;;
 
14900
 
 
14901
solaris*)
 
14902
  version_type=linux
 
14903
  need_lib_prefix=no
 
14904
  need_version=no
 
14905
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14906
  soname_spec='${libname}${release}${shared_ext}$major'
 
14907
  shlibpath_var=LD_LIBRARY_PATH
 
14908
  shlibpath_overrides_runpath=yes
 
14909
  hardcode_into_libs=yes
 
14910
  # ldd complains unless libraries are executable
 
14911
  postinstall_cmds='chmod +x $lib'
 
14912
  ;;
 
14913
 
 
14914
sunos4*)
 
14915
  version_type=sunos
 
14916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14917
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14918
  shlibpath_var=LD_LIBRARY_PATH
 
14919
  shlibpath_overrides_runpath=yes
 
14920
  if test "$with_gnu_ld" = yes; then
 
14921
    need_lib_prefix=no
 
14922
  fi
 
14923
  need_version=yes
 
14924
  ;;
 
14925
 
 
14926
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14927
  version_type=linux
 
14928
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14929
  soname_spec='${libname}${release}${shared_ext}$major'
 
14930
  shlibpath_var=LD_LIBRARY_PATH
 
14931
  case $host_vendor in
 
14932
    sni)
 
14933
      shlibpath_overrides_runpath=no
 
14934
      need_lib_prefix=no
 
14935
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14936
      runpath_var=LD_RUN_PATH
 
14937
      ;;
 
14938
    siemens)
 
14939
      need_lib_prefix=no
 
14940
      ;;
 
14941
    motorola)
 
14942
      need_lib_prefix=no
 
14943
      need_version=no
 
14944
      shlibpath_overrides_runpath=no
 
14945
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14946
      ;;
 
14947
  esac
 
14948
  ;;
 
14949
 
 
14950
sysv4*MP*)
 
14951
  if test -d /usr/nec ;then
 
14952
    version_type=linux
 
14953
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14954
    soname_spec='$libname${shared_ext}.$major'
 
14955
    shlibpath_var=LD_LIBRARY_PATH
 
14956
  fi
 
14957
  ;;
 
14958
 
 
14959
uts4*)
 
14960
  version_type=linux
 
14961
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14962
  soname_spec='${libname}${release}${shared_ext}$major'
 
14963
  shlibpath_var=LD_LIBRARY_PATH
 
14964
  ;;
 
14965
 
 
14966
*)
 
14967
  dynamic_linker=no
 
14968
  ;;
 
14969
esac
 
14970
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14971
echo "${ECHO_T}$dynamic_linker" >&6
 
14972
test "$dynamic_linker" = no && can_build_shared=no
 
14973
 
 
14974
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14975
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14976
hardcode_action_F77=
 
14977
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14978
   test -n "$runpath_var F77" || \
 
14979
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
14980
 
 
14981
  # We can hardcode non-existant directories.
 
14982
  if test "$hardcode_direct_F77" != no &&
 
14983
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14984
     # have to relink, otherwise we might link with an installed library
 
14985
     # when we should be linking with a yet-to-be-installed one
 
14986
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
14987
     test "$hardcode_minus_L_F77" != no; then
 
14988
    # Linking always hardcodes the temporary library directory.
 
14989
    hardcode_action_F77=relink
 
14990
  else
 
14991
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14992
    hardcode_action_F77=immediate
 
14993
  fi
 
14994
else
 
14995
  # We cannot hardcode anything, or else we can only hardcode existing
 
14996
  # directories.
 
14997
  hardcode_action_F77=unsupported
 
14998
fi
 
14999
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15000
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15001
 
 
15002
if test "$hardcode_action_F77" = relink; then
 
15003
  # Fast installation is not supported
 
15004
  enable_fast_install=no
 
15005
elif test "$shlibpath_overrides_runpath" = yes ||
 
15006
     test "$enable_shared" = no; then
 
15007
  # Fast installation is not necessary
 
15008
  enable_fast_install=needless
 
15009
fi
 
15010
 
 
15011
striplib=
 
15012
old_striplib=
 
15013
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15014
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15015
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15016
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15017
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15018
  echo "$as_me:$LINENO: result: yes" >&5
 
15019
echo "${ECHO_T}yes" >&6
 
15020
else
 
15021
# FIXME - insert some real tests, host_os isn't really good enough
 
15022
  case $host_os in
 
15023
   darwin*)
 
15024
       if test -n "$STRIP" ; then
 
15025
         striplib="$STRIP -x"
 
15026
         echo "$as_me:$LINENO: result: yes" >&5
 
15027
echo "${ECHO_T}yes" >&6
 
15028
       else
 
15029
  echo "$as_me:$LINENO: result: no" >&5
 
15030
echo "${ECHO_T}no" >&6
 
15031
fi
 
15032
       ;;
 
15033
   *)
 
15034
  echo "$as_me:$LINENO: result: no" >&5
 
15035
echo "${ECHO_T}no" >&6
 
15036
    ;;
 
15037
  esac
 
15038
fi
 
15039
 
 
15040
 
 
15041
 
 
15042
# The else clause should only fire when bootstrapping the
 
15043
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15044
# with your package, and you will get complaints that there are
 
15045
# no rules to generate ltmain.sh.
 
15046
if test -f "$ltmain"; then
 
15047
  # See if we are running on zsh, and set the options which allow our commands through
 
15048
  # without removal of \ escapes.
 
15049
  if test -n "${ZSH_VERSION+set}" ; then
 
15050
    setopt NO_GLOB_SUBST
 
15051
  fi
 
15052
  # Now quote all the things that may contain metacharacters while being
 
15053
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15054
  # variables and quote the copies for generation of the libtool script.
 
15055
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15056
    SED SHELL STRIP \
 
15057
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15058
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15059
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15060
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15061
    lt_cv_sys_global_symbol_to_c_name_address \
 
15062
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15063
    old_postinstall_cmds old_postuninstall_cmds \
 
15064
    compiler_F77 \
 
15065
    CC_F77 \
 
15066
    LD_F77 \
 
15067
    lt_prog_compiler_wl_F77 \
 
15068
    lt_prog_compiler_pic_F77 \
 
15069
    lt_prog_compiler_static_F77 \
 
15070
    lt_prog_compiler_no_builtin_flag_F77 \
 
15071
    export_dynamic_flag_spec_F77 \
 
15072
    thread_safe_flag_spec_F77 \
 
15073
    whole_archive_flag_spec_F77 \
 
15074
    enable_shared_with_static_runtimes_F77 \
 
15075
    old_archive_cmds_F77 \
 
15076
    old_archive_from_new_cmds_F77 \
 
15077
    predep_objects_F77 \
 
15078
    postdep_objects_F77 \
 
15079
    predeps_F77 \
 
15080
    postdeps_F77 \
 
15081
    compiler_lib_search_path_F77 \
 
15082
    archive_cmds_F77 \
 
15083
    archive_expsym_cmds_F77 \
 
15084
    postinstall_cmds_F77 \
 
15085
    postuninstall_cmds_F77 \
 
15086
    old_archive_from_expsyms_cmds_F77 \
 
15087
    allow_undefined_flag_F77 \
 
15088
    no_undefined_flag_F77 \
 
15089
    export_symbols_cmds_F77 \
 
15090
    hardcode_libdir_flag_spec_F77 \
 
15091
    hardcode_libdir_flag_spec_ld_F77 \
 
15092
    hardcode_libdir_separator_F77 \
 
15093
    hardcode_automatic_F77 \
 
15094
    module_cmds_F77 \
 
15095
    module_expsym_cmds_F77 \
 
15096
    lt_cv_prog_compiler_c_o_F77 \
 
15097
    exclude_expsyms_F77 \
 
15098
    include_expsyms_F77; do
 
15099
 
 
15100
    case $var in
 
15101
    old_archive_cmds_F77 | \
 
15102
    old_archive_from_new_cmds_F77 | \
 
15103
    archive_cmds_F77 | \
 
15104
    archive_expsym_cmds_F77 | \
 
15105
    module_cmds_F77 | \
 
15106
    module_expsym_cmds_F77 | \
 
15107
    old_archive_from_expsyms_cmds_F77 | \
 
15108
    export_symbols_cmds_F77 | \
 
15109
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15110
    postinstall_cmds | postuninstall_cmds | \
 
15111
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15112
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15113
      # Double-quote double-evaled strings.
 
15114
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15115
      ;;
 
15116
    *)
 
15117
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15118
      ;;
 
15119
    esac
 
15120
  done
 
15121
 
 
15122
  case $lt_echo in
 
15123
  *'\$0 --fallback-echo"')
 
15124
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15125
    ;;
 
15126
  esac
 
15127
 
 
15128
cfgfile="$ofile"
 
15129
 
 
15130
  cat <<__EOF__ >> "$cfgfile"
 
15131
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15132
 
 
15133
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15134
 
 
15135
# Shell to use when invoking shell scripts.
 
15136
SHELL=$lt_SHELL
 
15137
 
 
15138
# Whether or not to build shared libraries.
 
15139
build_libtool_libs=$enable_shared
 
15140
 
 
15141
# Whether or not to build static libraries.
 
15142
build_old_libs=$enable_static
 
15143
 
 
15144
# Whether or not to add -lc for building shared libraries.
 
15145
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15146
 
 
15147
# Whether or not to disallow shared libs when runtime libs are static
 
15148
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15149
 
 
15150
# Whether or not to optimize for fast installation.
 
15151
fast_install=$enable_fast_install
 
15152
 
 
15153
# The host system.
 
15154
host_alias=$host_alias
 
15155
host=$host
 
15156
 
 
15157
# An echo program that does not interpret backslashes.
 
15158
echo=$lt_echo
 
15159
 
 
15160
# The archiver.
 
15161
AR=$lt_AR
 
15162
AR_FLAGS=$lt_AR_FLAGS
 
15163
 
 
15164
# A C compiler.
 
15165
LTCC=$lt_LTCC
 
15166
 
 
15167
# A language-specific compiler.
 
15168
CC=$lt_compiler_F77
 
15169
 
 
15170
# Is the compiler the GNU C compiler?
 
15171
with_gcc=$GCC_F77
 
15172
 
 
15173
# An ERE matcher.
 
15174
EGREP=$lt_EGREP
 
15175
 
 
15176
# The linker used to build libraries.
 
15177
LD=$lt_LD_F77
 
15178
 
 
15179
# Whether we need hard or soft links.
 
15180
LN_S=$lt_LN_S
 
15181
 
 
15182
# A BSD-compatible nm program.
 
15183
NM=$lt_NM
 
15184
 
 
15185
# A symbol stripping program
 
15186
STRIP=$lt_STRIP
 
15187
 
 
15188
# Used to examine libraries when file_magic_cmd begins "file"
 
15189
MAGIC_CMD=$MAGIC_CMD
 
15190
 
 
15191
# Used on cygwin: DLL creation program.
 
15192
DLLTOOL="$DLLTOOL"
 
15193
 
 
15194
# Used on cygwin: object dumper.
 
15195
OBJDUMP="$OBJDUMP"
 
15196
 
 
15197
# Used on cygwin: assembler.
 
15198
AS="$AS"
 
15199
 
 
15200
# The name of the directory that contains temporary libtool files.
 
15201
objdir=$objdir
 
15202
 
 
15203
# How to create reloadable object files.
 
15204
reload_flag=$lt_reload_flag
 
15205
reload_cmds=$lt_reload_cmds
 
15206
 
 
15207
# How to pass a linker flag through the compiler.
 
15208
wl=$lt_lt_prog_compiler_wl_F77
 
15209
 
 
15210
# Object file suffix (normally "o").
 
15211
objext="$ac_objext"
 
15212
 
 
15213
# Old archive suffix (normally "a").
 
15214
libext="$libext"
 
15215
 
 
15216
# Shared library suffix (normally ".so").
 
15217
shrext_cmds='$shrext_cmds'
 
15218
 
 
15219
# Executable file suffix (normally "").
 
15220
exeext="$exeext"
 
15221
 
 
15222
# Additional compiler flags for building library objects.
 
15223
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15224
pic_mode=$pic_mode
 
15225
 
 
15226
# What is the maximum length of a command?
 
15227
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15228
 
 
15229
# Does compiler simultaneously support -c and -o options?
 
15230
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15231
 
 
15232
# Must we lock files when doing compilation ?
 
15233
need_locks=$lt_need_locks
 
15234
 
 
15235
# Do we need the lib prefix for modules?
 
15236
need_lib_prefix=$need_lib_prefix
 
15237
 
 
15238
# Do we need a version for libraries?
 
15239
need_version=$need_version
 
15240
 
 
15241
# Whether dlopen is supported.
 
15242
dlopen_support=$enable_dlopen
 
15243
 
 
15244
# Whether dlopen of programs is supported.
 
15245
dlopen_self=$enable_dlopen_self
 
15246
 
 
15247
# Whether dlopen of statically linked programs is supported.
 
15248
dlopen_self_static=$enable_dlopen_self_static
 
15249
 
 
15250
# Compiler flag to prevent dynamic linking.
 
15251
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15252
 
 
15253
# Compiler flag to turn off builtin functions.
 
15254
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15255
 
 
15256
# Compiler flag to allow reflexive dlopens.
 
15257
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15258
 
 
15259
# Compiler flag to generate shared objects directly from archives.
 
15260
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15261
 
 
15262
# Compiler flag to generate thread-safe objects.
 
15263
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15264
 
 
15265
# Library versioning type.
 
15266
version_type=$version_type
 
15267
 
 
15268
# Format of library name prefix.
 
15269
libname_spec=$lt_libname_spec
 
15270
 
 
15271
# List of archive names.  First name is the real one, the rest are links.
 
15272
# The last name is the one that the linker finds with -lNAME.
 
15273
library_names_spec=$lt_library_names_spec
 
15274
 
 
15275
# The coded name of the library, if different from the real name.
 
15276
soname_spec=$lt_soname_spec
 
15277
 
 
15278
# Commands used to build and install an old-style archive.
 
15279
RANLIB=$lt_RANLIB
 
15280
old_archive_cmds=$lt_old_archive_cmds_F77
 
15281
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15282
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15283
 
 
15284
# Create an old-style archive from a shared archive.
 
15285
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15286
 
 
15287
# Create a temporary old-style archive to link instead of a shared archive.
 
15288
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15289
 
 
15290
# Commands used to build and install a shared archive.
 
15291
archive_cmds=$lt_archive_cmds_F77
 
15292
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15293
postinstall_cmds=$lt_postinstall_cmds
 
15294
postuninstall_cmds=$lt_postuninstall_cmds
 
15295
 
 
15296
# Commands used to build a loadable module (assumed same as above if empty)
 
15297
module_cmds=$lt_module_cmds_F77
 
15298
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15299
 
 
15300
# Commands to strip libraries.
 
15301
old_striplib=$lt_old_striplib
 
15302
striplib=$lt_striplib
 
15303
 
 
15304
# Dependencies to place before the objects being linked to create a
 
15305
# shared library.
 
15306
predep_objects=$lt_predep_objects_F77
 
15307
 
 
15308
# Dependencies to place after the objects being linked to create a
 
15309
# shared library.
 
15310
postdep_objects=$lt_postdep_objects_F77
 
15311
 
 
15312
# Dependencies to place before the objects being linked to create a
 
15313
# shared library.
 
15314
predeps=$lt_predeps_F77
 
15315
 
 
15316
# Dependencies to place after the objects being linked to create a
 
15317
# shared library.
 
15318
postdeps=$lt_postdeps_F77
 
15319
 
 
15320
# The library search path used internally by the compiler when linking
 
15321
# a shared library.
 
15322
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15323
 
 
15324
# Method to check whether dependent libraries are shared objects.
 
15325
deplibs_check_method=$lt_deplibs_check_method
 
15326
 
 
15327
# Command to use when deplibs_check_method == file_magic.
 
15328
file_magic_cmd=$lt_file_magic_cmd
 
15329
 
 
15330
# Flag that allows shared libraries with undefined symbols to be built.
 
15331
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15332
 
 
15333
# Flag that forces no undefined symbols.
 
15334
no_undefined_flag=$lt_no_undefined_flag_F77
 
15335
 
 
15336
# Commands used to finish a libtool library installation in a directory.
 
15337
finish_cmds=$lt_finish_cmds
 
15338
 
 
15339
# Same as above, but a single script fragment to be evaled but not shown.
 
15340
finish_eval=$lt_finish_eval
 
15341
 
 
15342
# Take the output of nm and produce a listing of raw symbols and C names.
 
15343
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15344
 
 
15345
# Transform the output of nm in a proper C declaration
 
15346
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15347
 
 
15348
# Transform the output of nm in a C name address pair
 
15349
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15350
 
 
15351
# This is the shared library runtime path variable.
 
15352
runpath_var=$runpath_var
 
15353
 
 
15354
# This is the shared library path variable.
 
15355
shlibpath_var=$shlibpath_var
 
15356
 
 
15357
# Is shlibpath searched before the hard-coded library search path?
 
15358
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15359
 
 
15360
# How to hardcode a shared library path into an executable.
 
15361
hardcode_action=$hardcode_action_F77
 
15362
 
 
15363
# Whether we should hardcode library paths into libraries.
 
15364
hardcode_into_libs=$hardcode_into_libs
 
15365
 
 
15366
# Flag to hardcode \$libdir into a binary during linking.
 
15367
# This must work even if \$libdir does not exist.
 
15368
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15369
 
 
15370
# If ld is used when linking, flag to hardcode \$libdir into
 
15371
# a binary during linking. This must work even if \$libdir does
 
15372
# not exist.
 
15373
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15374
 
 
15375
# Whether we need a single -rpath flag with a separated argument.
 
15376
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15377
 
 
15378
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15379
# resulting binary.
 
15380
hardcode_direct=$hardcode_direct_F77
 
15381
 
 
15382
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15383
# resulting binary.
 
15384
hardcode_minus_L=$hardcode_minus_L_F77
 
15385
 
 
15386
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15387
# the resulting binary.
 
15388
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15389
 
 
15390
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15391
# and all subsequent libraries and executables linked against it.
 
15392
hardcode_automatic=$hardcode_automatic_F77
 
15393
 
 
15394
# Variables whose values should be saved in libtool wrapper scripts and
 
15395
# restored at relink time.
 
15396
variables_saved_for_relink="$variables_saved_for_relink"
 
15397
 
 
15398
# Whether libtool must link a program against all its dependency libraries.
 
15399
link_all_deplibs=$link_all_deplibs_F77
 
15400
 
 
15401
# Compile-time system search path for libraries
 
15402
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15403
 
 
15404
# Run-time system search path for libraries
 
15405
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15406
 
 
15407
# Fix the shell variable \$srcfile for the compiler.
 
15408
fix_srcfile_path="$fix_srcfile_path_F77"
 
15409
 
 
15410
# Set to yes if exported symbols are required.
 
15411
always_export_symbols=$always_export_symbols_F77
 
15412
 
 
15413
# The commands to list exported symbols.
 
15414
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15415
 
 
15416
# The commands to extract the exported symbol list from a shared archive.
 
15417
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15418
 
 
15419
# Symbols that should not be listed in the preloaded symbols.
 
15420
exclude_expsyms=$lt_exclude_expsyms_F77
 
15421
 
 
15422
# Symbols that must always be exported.
 
15423
include_expsyms=$lt_include_expsyms_F77
 
15424
 
 
15425
# ### END LIBTOOL TAG CONFIG: $tagname
 
15426
 
 
15427
__EOF__
 
15428
 
 
15429
 
 
15430
else
 
15431
  # If there is no Makefile yet, we rely on a make rule to execute
 
15432
  # `config.status --recheck' to rerun these tests and create the
 
15433
  # libtool script then.
 
15434
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15435
  if test -f "$ltmain_in"; then
 
15436
    test -f Makefile && make "$ltmain"
 
15437
  fi
 
15438
fi
 
15439
 
 
15440
 
 
15441
ac_ext=c
 
15442
ac_cpp='$CPP $CPPFLAGS'
 
15443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15446
 
 
15447
CC="$lt_save_CC"
 
15448
 
 
15449
        else
 
15450
          tagname=""
 
15451
        fi
 
15452
        ;;
 
15453
 
 
15454
      GCJ)
 
15455
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15456
 
 
15457
 
 
15458
 
 
15459
# Source file extension for Java test sources.
 
15460
ac_ext=java
 
15461
 
 
15462
# Object file extension for compiled Java test sources.
 
15463
objext=o
 
15464
objext_GCJ=$objext
 
15465
 
 
15466
# Code to be used in simple compile tests
 
15467
lt_simple_compile_test_code="class foo {}\n"
 
15468
 
 
15469
# Code to be used in simple link tests
 
15470
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15471
 
 
15472
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15473
 
 
15474
# If no C compiler was specified, use CC.
 
15475
LTCC=${LTCC-"$CC"}
 
15476
 
 
15477
# Allow CC to be a program name with arguments.
 
15478
compiler=$CC
 
15479
 
 
15480
 
 
15481
# Allow CC to be a program name with arguments.
 
15482
lt_save_CC="$CC"
 
15483
CC=${GCJ-"gcj"}
 
15484
compiler=$CC
 
15485
compiler_GCJ=$CC
 
15486
 
 
15487
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15488
archive_cmds_need_lc_GCJ=no
 
15489
 
 
15490
 
 
15491
lt_prog_compiler_no_builtin_flag_GCJ=
 
15492
 
 
15493
if test "$GCC" = yes; then
 
15494
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15495
 
 
15496
 
 
15497
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15498
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15499
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15501
else
 
15502
  lt_cv_prog_compiler_rtti_exceptions=no
 
15503
  ac_outfile=conftest.$ac_objext
 
15504
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15505
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15506
   # Insert the option either (1) after the last *FLAGS variable, or
 
15507
   # (2) before a word containing "conftest.", or (3) at the end.
 
15508
   # Note that $ac_compile itself does not contain backslashes and begins
 
15509
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15510
   # The option is referenced via a variable to avoid confusing sed.
 
15511
   lt_compile=`echo "$ac_compile" | $SED \
 
15512
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15513
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15514
   -e 's:$: $lt_compiler_flag:'`
 
15515
   (eval echo "\"\$as_me:15515: $lt_compile\"" >&5)
 
15516
   (eval "$lt_compile" 2>conftest.err)
 
15517
   ac_status=$?
 
15518
   cat conftest.err >&5
 
15519
   echo "$as_me:15519: \$? = $ac_status" >&5
 
15520
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15521
     # The compiler can only warn and ignore the option if not recognized
 
15522
     # So say no if there are warnings
 
15523
     if test ! -s conftest.err; then
 
15524
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15525
     fi
 
15526
   fi
 
15527
   $rm conftest*
 
15528
 
 
15529
fi
 
15530
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15531
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15532
 
 
15533
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15534
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15535
else
 
15536
    :
 
15537
fi
 
15538
 
 
15539
fi
 
15540
 
 
15541
lt_prog_compiler_wl_GCJ=
 
15542
lt_prog_compiler_pic_GCJ=
 
15543
lt_prog_compiler_static_GCJ=
 
15544
 
 
15545
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15546
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15547
 
 
15548
  if test "$GCC" = yes; then
 
15549
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15550
    lt_prog_compiler_static_GCJ='-static'
 
15551
 
 
15552
    case $host_os in
 
15553
      aix*)
 
15554
      # All AIX code is PIC.
 
15555
      if test "$host_cpu" = ia64; then
 
15556
        # AIX 5 now supports IA64 processor
 
15557
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15558
      fi
 
15559
      ;;
 
15560
 
 
15561
    amigaos*)
 
15562
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15563
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15564
      # like `-m68040'.
 
15565
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15566
      ;;
 
15567
 
 
15568
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15569
      # PIC is the default for these OSes.
 
15570
      ;;
 
15571
 
 
15572
    mingw* | pw32* | os2*)
 
15573
      # This hack is so that the source file can tell whether it is being
 
15574
      # built for inclusion in a dll (and should export symbols for example).
 
15575
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15576
      ;;
 
15577
 
 
15578
    darwin* | rhapsody*)
 
15579
      # PIC is the default on this platform
 
15580
      # Common symbols not allowed in MH_DYLIB files
 
15581
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15582
      ;;
 
15583
 
 
15584
    msdosdjgpp*)
 
15585
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15586
      # on systems that don't support them.
 
15587
      lt_prog_compiler_can_build_shared_GCJ=no
 
15588
      enable_shared=no
 
15589
      ;;
 
15590
 
 
15591
    sysv4*MP*)
 
15592
      if test -d /usr/nec; then
 
15593
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15594
      fi
 
15595
      ;;
 
15596
 
 
15597
    hpux*)
 
15598
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15599
      # not for PA HP-UX.
 
15600
      case "$host_cpu" in
 
15601
      hppa*64*|ia64*)
 
15602
        # +Z the default
 
15603
        ;;
 
15604
      *)
 
15605
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15606
        ;;
 
15607
      esac
 
15608
      ;;
 
15609
 
 
15610
    *)
 
15611
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15612
      ;;
 
15613
    esac
 
15614
  else
 
15615
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15616
    case $host_os in
 
15617
    aix*)
 
15618
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15619
      if test "$host_cpu" = ia64; then
 
15620
        # AIX 5 now supports IA64 processor
 
15621
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15622
      else
 
15623
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15624
      fi
 
15625
      ;;
 
15626
 
 
15627
    mingw* | pw32* | os2*)
 
15628
      # This hack is so that the source file can tell whether it is being
 
15629
      # built for inclusion in a dll (and should export symbols for example).
 
15630
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15631
      ;;
 
15632
 
 
15633
    hpux9* | hpux10* | hpux11*)
 
15634
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15635
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15636
      # not for PA HP-UX.
 
15637
      case "$host_cpu" in
 
15638
      hppa*64*|ia64*)
 
15639
        # +Z the default
 
15640
        ;;
 
15641
      *)
 
15642
        lt_prog_compiler_pic_GCJ='+Z'
 
15643
        ;;
 
15644
      esac
 
15645
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15646
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15647
      ;;
 
15648
 
 
15649
    irix5* | irix6* | nonstopux*)
 
15650
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15651
      # PIC (with -KPIC) is the default.
 
15652
      lt_prog_compiler_static_GCJ='-non_shared'
 
15653
      ;;
 
15654
 
 
15655
    newsos6)
 
15656
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15657
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15658
      ;;
 
15659
 
 
15660
    linux*)
 
15661
      case $CC in
 
15662
      icc* | ecc*)
 
15663
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15664
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15665
        lt_prog_compiler_static_GCJ='-static'
 
15666
        ;;
 
15667
      ccc*)
 
15668
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15669
        # All Alpha code is PIC.
 
15670
        lt_prog_compiler_static_GCJ='-non_shared'
 
15671
        ;;
 
15672
      esac
 
15673
      ;;
 
15674
 
 
15675
    osf3* | osf4* | osf5*)
 
15676
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15677
      # All OSF/1 code is PIC.
 
15678
      lt_prog_compiler_static_GCJ='-non_shared'
 
15679
      ;;
 
15680
 
 
15681
    sco3.2v5*)
 
15682
      lt_prog_compiler_pic_GCJ='-Kpic'
 
15683
      lt_prog_compiler_static_GCJ='-dn'
 
15684
      ;;
 
15685
 
 
15686
    solaris*)
 
15687
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15688
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15689
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15690
      ;;
 
15691
 
 
15692
    sunos4*)
 
15693
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15694
      lt_prog_compiler_pic_GCJ='-PIC'
 
15695
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15696
      ;;
 
15697
 
 
15698
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15699
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15700
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15701
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15702
      ;;
 
15703
 
 
15704
    sysv4*MP*)
 
15705
      if test -d /usr/nec ;then
 
15706
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15707
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15708
      fi
 
15709
      ;;
 
15710
 
 
15711
    uts4*)
 
15712
      lt_prog_compiler_pic_GCJ='-pic'
 
15713
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15714
      ;;
 
15715
 
 
15716
    *)
 
15717
      lt_prog_compiler_can_build_shared_GCJ=no
 
15718
      ;;
 
15719
    esac
 
15720
  fi
 
15721
 
 
15722
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15723
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15724
 
 
15725
#
 
15726
# Check to make sure the PIC flag actually works.
 
15727
#
 
15728
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15729
 
 
15730
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15731
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15732
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15734
else
 
15735
  lt_prog_compiler_pic_works_GCJ=no
 
15736
  ac_outfile=conftest.$ac_objext
 
15737
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15738
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15739
   # Insert the option either (1) after the last *FLAGS variable, or
 
15740
   # (2) before a word containing "conftest.", or (3) at the end.
 
15741
   # Note that $ac_compile itself does not contain backslashes and begins
 
15742
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15743
   # The option is referenced via a variable to avoid confusing sed.
 
15744
   lt_compile=`echo "$ac_compile" | $SED \
 
15745
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15746
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15747
   -e 's:$: $lt_compiler_flag:'`
 
15748
   (eval echo "\"\$as_me:15748: $lt_compile\"" >&5)
 
15749
   (eval "$lt_compile" 2>conftest.err)
 
15750
   ac_status=$?
 
15751
   cat conftest.err >&5
 
15752
   echo "$as_me:15752: \$? = $ac_status" >&5
 
15753
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15754
     # The compiler can only warn and ignore the option if not recognized
 
15755
     # So say no if there are warnings
 
15756
     if test ! -s conftest.err; then
 
15757
       lt_prog_compiler_pic_works_GCJ=yes
 
15758
     fi
 
15759
   fi
 
15760
   $rm conftest*
 
15761
 
 
15762
fi
 
15763
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15764
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15765
 
 
15766
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15767
    case $lt_prog_compiler_pic_GCJ in
 
15768
     "" | " "*) ;;
 
15769
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15770
     esac
 
15771
else
 
15772
    lt_prog_compiler_pic_GCJ=
 
15773
     lt_prog_compiler_can_build_shared_GCJ=no
 
15774
fi
 
15775
 
 
15776
fi
 
15777
case "$host_os" in
 
15778
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15779
  *djgpp*)
 
15780
    lt_prog_compiler_pic_GCJ=
 
15781
    ;;
 
15782
  *)
 
15783
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15784
    ;;
 
15785
esac
 
15786
 
 
15787
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15788
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15789
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15791
else
 
15792
  lt_cv_prog_compiler_c_o_GCJ=no
 
15793
   $rm -r conftest 2>/dev/null
 
15794
   mkdir conftest
 
15795
   cd conftest
 
15796
   mkdir out
 
15797
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15798
 
 
15799
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15800
   # Insert the option either (1) after the last *FLAGS variable, or
 
15801
   # (2) before a word containing "conftest.", or (3) at the end.
 
15802
   # Note that $ac_compile itself does not contain backslashes and begins
 
15803
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15804
   lt_compile=`echo "$ac_compile" | $SED \
 
15805
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15806
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15807
   -e 's:$: $lt_compiler_flag:'`
 
15808
   (eval echo "\"\$as_me:15808: $lt_compile\"" >&5)
 
15809
   (eval "$lt_compile" 2>out/conftest.err)
 
15810
   ac_status=$?
 
15811
   cat out/conftest.err >&5
 
15812
   echo "$as_me:15812: \$? = $ac_status" >&5
 
15813
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15814
   then
 
15815
     # The compiler can only warn and ignore the option if not recognized
 
15816
     # So say no if there are warnings
 
15817
     if test ! -s out/conftest.err; then
 
15818
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15819
     fi
 
15820
   fi
 
15821
   chmod u+w .
 
15822
   $rm conftest*
 
15823
   # SGI C++ compiler will create directory out/ii_files/ for
 
15824
   # template instantiation
 
15825
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15826
   $rm out/* && rmdir out
 
15827
   cd ..
 
15828
   rmdir conftest
 
15829
   $rm conftest*
 
15830
 
 
15831
fi
 
15832
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15833
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15834
 
 
15835
 
 
15836
hard_links="nottested"
 
15837
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15838
  # do not overwrite the value of need_locks provided by the user
 
15839
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15840
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15841
  hard_links=yes
 
15842
  $rm conftest*
 
15843
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15844
  touch conftest.a
 
15845
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15846
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15847
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15848
echo "${ECHO_T}$hard_links" >&6
 
15849
  if test "$hard_links" = no; then
 
15850
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15851
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15852
    need_locks=warn
 
15853
  fi
 
15854
else
 
15855
  need_locks=no
 
15856
fi
 
15857
 
 
15858
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15859
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15860
 
 
15861
  runpath_var=
 
15862
  allow_undefined_flag_GCJ=
 
15863
  enable_shared_with_static_runtimes_GCJ=no
 
15864
  archive_cmds_GCJ=
 
15865
  archive_expsym_cmds_GCJ=
 
15866
  old_archive_From_new_cmds_GCJ=
 
15867
  old_archive_from_expsyms_cmds_GCJ=
 
15868
  export_dynamic_flag_spec_GCJ=
 
15869
  whole_archive_flag_spec_GCJ=
 
15870
  thread_safe_flag_spec_GCJ=
 
15871
  hardcode_libdir_flag_spec_GCJ=
 
15872
  hardcode_libdir_flag_spec_ld_GCJ=
 
15873
  hardcode_libdir_separator_GCJ=
 
15874
  hardcode_direct_GCJ=no
 
15875
  hardcode_minus_L_GCJ=no
 
15876
  hardcode_shlibpath_var_GCJ=unsupported
 
15877
  link_all_deplibs_GCJ=unknown
 
15878
  hardcode_automatic_GCJ=no
 
15879
  module_cmds_GCJ=
 
15880
  module_expsym_cmds_GCJ=
 
15881
  always_export_symbols_GCJ=no
 
15882
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15883
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15884
  # included in the symbol list
 
15885
  include_expsyms_GCJ=
 
15886
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15887
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15888
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15889
  # as well as any symbol that contains `d'.
 
15890
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15891
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15892
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15893
  # the symbol is explicitly referenced.  Since portable code cannot
 
15894
  # rely on this symbol name, it's probably fine to never include it in
 
15895
  # preloaded symbol tables.
 
15896
  extract_expsyms_cmds=
 
15897
 
 
15898
  case $host_os in
 
15899
  cygwin* | mingw* | pw32*)
 
15900
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15901
    # When not using gcc, we currently assume that we are using
 
15902
    # Microsoft Visual C++.
 
15903
    if test "$GCC" != yes; then
 
15904
      with_gnu_ld=no
 
15905
    fi
 
15906
    ;;
 
15907
  openbsd*)
 
15908
    with_gnu_ld=no
 
15909
    ;;
 
15910
  esac
 
15911
 
 
15912
  ld_shlibs_GCJ=yes
 
15913
  if test "$with_gnu_ld" = yes; then
 
15914
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15915
    wlarc='${wl}'
 
15916
 
 
15917
    # See if GNU ld supports shared libraries.
 
15918
    case $host_os in
 
15919
    aix3* | aix4* | aix5*)
 
15920
      # On AIX/PPC, the GNU linker is very broken
 
15921
      if test "$host_cpu" != ia64; then
 
15922
        ld_shlibs_GCJ=no
 
15923
        cat <<EOF 1>&2
 
15924
 
 
15925
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15926
*** to be unable to reliably create shared libraries on AIX.
 
15927
*** Therefore, libtool is disabling shared libraries support.  If you
 
15928
*** really care for shared libraries, you may want to modify your PATH
 
15929
*** so that a non-GNU linker is found, and then restart.
 
15930
 
 
15931
EOF
 
15932
      fi
 
15933
      ;;
 
15934
 
 
15935
    amigaos*)
 
15936
      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)'
 
15937
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15938
      hardcode_minus_L_GCJ=yes
 
15939
 
 
15940
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15941
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15942
      # to version 4, is to share data among multiple programs linked
 
15943
      # with the same dynamic library.  Since this doesn't match the
 
15944
      # behavior of shared libraries on other platforms, we can't use
 
15945
      # them.
 
15946
      ld_shlibs_GCJ=no
 
15947
      ;;
 
15948
 
 
15949
    beos*)
 
15950
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15951
        allow_undefined_flag_GCJ=unsupported
 
15952
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15953
        # support --undefined.  This deserves some investigation.  FIXME
 
15954
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15955
      else
 
15956
        ld_shlibs_GCJ=no
 
15957
      fi
 
15958
      ;;
 
15959
 
 
15960
    cygwin* | mingw* | pw32*)
 
15961
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
15962
      # as there is no search path for DLLs.
 
15963
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15964
      allow_undefined_flag_GCJ=unsupported
 
15965
      always_export_symbols_GCJ=no
 
15966
      enable_shared_with_static_runtimes_GCJ=yes
 
15967
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15968
 
 
15969
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15970
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15971
        # If the export-symbols file already is a .def file (1st line
 
15972
        # is EXPORTS), use it as is; otherwise, prepend...
 
15973
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15974
          cp $export_symbols $output_objdir/$soname.def;
 
15975
        else
 
15976
          echo EXPORTS > $output_objdir/$soname.def;
 
15977
          cat $export_symbols >> $output_objdir/$soname.def;
 
15978
        fi~
 
15979
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15980
      else
 
15981
        ld_shlibs=no
 
15982
      fi
 
15983
      ;;
 
15984
 
 
15985
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
15986
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15987
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15988
        wlarc=
 
15989
      else
 
15990
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15991
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15992
      fi
 
15993
      ;;
 
15994
 
 
15995
    solaris* | sysv5*)
 
15996
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15997
        ld_shlibs_GCJ=no
 
15998
        cat <<EOF 1>&2
 
15999
 
 
16000
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16001
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16002
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16003
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16004
*** your PATH or compiler configuration so that the native linker is
 
16005
*** used, and then restart.
 
16006
 
 
16007
EOF
 
16008
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16009
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16010
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16011
      else
 
16012
        ld_shlibs_GCJ=no
 
16013
      fi
 
16014
      ;;
 
16015
 
 
16016
    sunos4*)
 
16017
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16018
      wlarc=
 
16019
      hardcode_direct_GCJ=yes
 
16020
      hardcode_shlibpath_var_GCJ=no
 
16021
      ;;
 
16022
 
 
16023
  linux*)
 
16024
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16025
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16026
        archive_cmds_GCJ="$tmp_archive_cmds"
 
16027
      supports_anon_versioning=no
 
16028
      case `$LD -v 2>/dev/null` in
 
16029
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16030
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16031
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16032
        *\ 2.11.*) ;; # other 2.11 versions
 
16033
        *) supports_anon_versioning=yes ;;
 
16034
      esac
 
16035
      if test $supports_anon_versioning = yes; then
 
16036
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16037
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16038
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16039
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16040
      else
 
16041
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
16042
      fi
 
16043
      link_all_deplibs_GCJ=no
 
16044
    else
 
16045
      ld_shlibs_GCJ=no
 
16046
    fi
 
16047
    ;;
 
16048
 
 
16049
    *)
 
16050
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16051
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16052
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16053
      else
 
16054
        ld_shlibs_GCJ=no
 
16055
      fi
 
16056
      ;;
 
16057
    esac
 
16058
 
 
16059
    if test "$ld_shlibs_GCJ" = yes; then
 
16060
      runpath_var=LD_RUN_PATH
 
16061
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16062
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16063
      # ancient GNU ld didn't support --whole-archive et. al.
 
16064
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16065
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16066
      else
 
16067
        whole_archive_flag_spec_GCJ=
 
16068
      fi
 
16069
    fi
 
16070
  else
 
16071
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16072
    case $host_os in
 
16073
    aix3*)
 
16074
      allow_undefined_flag_GCJ=unsupported
 
16075
      always_export_symbols_GCJ=yes
 
16076
      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'
 
16077
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16078
      # are no directories specified by -L.
 
16079
      hardcode_minus_L_GCJ=yes
 
16080
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16081
        # Neither direct hardcoding nor static linking is supported with a
 
16082
        # broken collect2.
 
16083
        hardcode_direct_GCJ=unsupported
 
16084
      fi
 
16085
      ;;
 
16086
 
 
16087
    aix4* | aix5*)
 
16088
      if test "$host_cpu" = ia64; then
 
16089
        # On IA64, the linker does run time linking by default, so we don't
 
16090
        # have to do anything special.
 
16091
        aix_use_runtimelinking=no
 
16092
        exp_sym_flag='-Bexport'
 
16093
        no_entry_flag=""
 
16094
      else
 
16095
        # If we're using GNU nm, then we don't want the "-C" option.
 
16096
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16097
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16098
          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'
 
16099
        else
 
16100
          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'
 
16101
        fi
 
16102
        aix_use_runtimelinking=no
 
16103
 
 
16104
        # Test if we are trying to use run time linking or normal
 
16105
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16106
        # need to do runtime linking.
 
16107
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16108
          for ld_flag in $LDFLAGS; do
 
16109
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16110
            aix_use_runtimelinking=yes
 
16111
            break
 
16112
          fi
 
16113
          done
 
16114
        esac
 
16115
 
 
16116
        exp_sym_flag='-bexport'
 
16117
        no_entry_flag='-bnoentry'
 
16118
      fi
 
16119
 
 
16120
      # When large executables or shared objects are built, AIX ld can
 
16121
      # have problems creating the table of contents.  If linking a library
 
16122
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16123
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16124
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16125
 
 
16126
      archive_cmds_GCJ=''
 
16127
      hardcode_direct_GCJ=yes
 
16128
      hardcode_libdir_separator_GCJ=':'
 
16129
      link_all_deplibs_GCJ=yes
 
16130
 
 
16131
      if test "$GCC" = yes; then
 
16132
        case $host_os in aix4.012|aix4.012.*)
 
16133
        # We only want to do this on AIX 4.2 and lower, the check
 
16134
        # below for broken collect2 doesn't work under 4.3+
 
16135
          collect2name=`${CC} -print-prog-name=collect2`
 
16136
          if test -f "$collect2name" && \
 
16137
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16138
          then
 
16139
          # We have reworked collect2
 
16140
          hardcode_direct_GCJ=yes
 
16141
          else
 
16142
          # We have old collect2
 
16143
          hardcode_direct_GCJ=unsupported
 
16144
          # It fails to find uninstalled libraries when the uninstalled
 
16145
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16146
          # to unsupported forces relinking
 
16147
          hardcode_minus_L_GCJ=yes
 
16148
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16149
          hardcode_libdir_separator_GCJ=
 
16150
          fi
 
16151
        esac
 
16152
        shared_flag='-shared'
 
16153
      else
 
16154
        # not using gcc
 
16155
        if test "$host_cpu" = ia64; then
 
16156
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16157
        # chokes on -Wl,-G. The following line is correct:
 
16158
          shared_flag='-G'
 
16159
        else
 
16160
        if test "$aix_use_runtimelinking" = yes; then
 
16161
            shared_flag='${wl}-G'
 
16162
          else
 
16163
            shared_flag='${wl}-bM:SRE'
 
16164
        fi
 
16165
        fi
 
16166
      fi
 
16167
 
 
16168
      # It seems that -bexpall does not export symbols beginning with
 
16169
      # underscore (_), so it is better to generate a list of symbols to export.
 
16170
      always_export_symbols_GCJ=yes
 
16171
      if test "$aix_use_runtimelinking" = yes; then
 
16172
        # Warning - without using the other runtime loading flags (-brtl),
 
16173
        # -berok will link without error, but may produce a broken library.
 
16174
        allow_undefined_flag_GCJ='-berok'
 
16175
       # Determine the default libpath from the value encoded in an empty executable.
 
16176
       cat >conftest.$ac_ext <<_ACEOF
 
16177
/* confdefs.h.  */
 
16178
_ACEOF
 
16179
cat confdefs.h >>conftest.$ac_ext
 
16180
cat >>conftest.$ac_ext <<_ACEOF
 
16181
/* end confdefs.h.  */
 
16182
 
 
16183
int
 
16184
main ()
 
16185
{
 
16186
 
 
16187
  ;
 
16188
  return 0;
 
16189
}
 
16190
_ACEOF
 
16191
rm -f conftest.$ac_objext conftest$ac_exeext
 
16192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16193
  (eval $ac_link) 2>conftest.er1
 
16194
  ac_status=$?
 
16195
  grep -v '^ *+' conftest.er1 >conftest.err
 
16196
  rm -f conftest.er1
 
16197
  cat conftest.err >&5
 
16198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16199
  (exit $ac_status); } &&
 
16200
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16202
  (eval $ac_try) 2>&5
 
16203
  ac_status=$?
 
16204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16205
  (exit $ac_status); }; } &&
 
16206
         { ac_try='test -s conftest$ac_exeext'
 
16207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16208
  (eval $ac_try) 2>&5
 
16209
  ac_status=$?
 
16210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16211
  (exit $ac_status); }; }; then
 
16212
 
 
16213
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16214
}'`
 
16215
# Check for a 64-bit object if we didn't find anything.
 
16216
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; }
 
16217
}'`; fi
 
16218
else
 
16219
  echo "$as_me: failed program was:" >&5
 
16220
sed 's/^/| /' conftest.$ac_ext >&5
 
16221
 
 
16222
fi
 
16223
rm -f conftest.err conftest.$ac_objext \
 
16224
      conftest$ac_exeext conftest.$ac_ext
 
16225
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16226
 
 
16227
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16228
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16229
       else
 
16230
        if test "$host_cpu" = ia64; then
 
16231
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16232
          allow_undefined_flag_GCJ="-z nodefs"
 
16233
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
16234
        else
 
16235
         # Determine the default libpath from the value encoded in an empty executable.
 
16236
         cat >conftest.$ac_ext <<_ACEOF
 
16237
/* confdefs.h.  */
 
16238
_ACEOF
 
16239
cat confdefs.h >>conftest.$ac_ext
 
16240
cat >>conftest.$ac_ext <<_ACEOF
 
16241
/* end confdefs.h.  */
 
16242
 
 
16243
int
 
16244
main ()
 
16245
{
 
16246
 
 
16247
  ;
 
16248
  return 0;
 
16249
}
 
16250
_ACEOF
 
16251
rm -f conftest.$ac_objext conftest$ac_exeext
 
16252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16253
  (eval $ac_link) 2>conftest.er1
 
16254
  ac_status=$?
 
16255
  grep -v '^ *+' conftest.er1 >conftest.err
 
16256
  rm -f conftest.er1
 
16257
  cat conftest.err >&5
 
16258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16259
  (exit $ac_status); } &&
 
16260
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16262
  (eval $ac_try) 2>&5
 
16263
  ac_status=$?
 
16264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16265
  (exit $ac_status); }; } &&
 
16266
         { ac_try='test -s conftest$ac_exeext'
 
16267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16268
  (eval $ac_try) 2>&5
 
16269
  ac_status=$?
 
16270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16271
  (exit $ac_status); }; }; then
 
16272
 
 
16273
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16274
}'`
 
16275
# Check for a 64-bit object if we didn't find anything.
 
16276
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; }
 
16277
}'`; fi
 
16278
else
 
16279
  echo "$as_me: failed program was:" >&5
 
16280
sed 's/^/| /' conftest.$ac_ext >&5
 
16281
 
 
16282
fi
 
16283
rm -f conftest.err conftest.$ac_objext \
 
16284
      conftest$ac_exeext conftest.$ac_ext
 
16285
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16286
 
 
16287
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16288
          # Warning - without using the other run time loading flags,
 
16289
          # -berok will link without error, but may produce a broken library.
 
16290
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16291
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16292
          # -bexpall does not export symbols beginning with underscore (_)
 
16293
          always_export_symbols_GCJ=yes
 
16294
          # Exported symbols can be pulled into shared objects from archives
 
16295
          whole_archive_flag_spec_GCJ=' '
 
16296
          archive_cmds_need_lc_GCJ=yes
 
16297
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16298
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16299
        fi
 
16300
      fi
 
16301
      ;;
 
16302
 
 
16303
    amigaos*)
 
16304
      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)'
 
16305
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16306
      hardcode_minus_L_GCJ=yes
 
16307
      # see comment about different semantics on the GNU ld section
 
16308
      ld_shlibs_GCJ=no
 
16309
      ;;
 
16310
 
 
16311
    bsdi4*)
 
16312
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16313
      ;;
 
16314
 
 
16315
    cygwin* | mingw* | pw32*)
 
16316
      # When not using gcc, we currently assume that we are using
 
16317
      # Microsoft Visual C++.
 
16318
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16319
      # no search path for DLLs.
 
16320
      hardcode_libdir_flag_spec_GCJ=' '
 
16321
      allow_undefined_flag_GCJ=unsupported
 
16322
      # Tell ltmain to make .lib files, not .a files.
 
16323
      libext=lib
 
16324
      # Tell ltmain to make .dll files, not .so files.
 
16325
      shrext_cmds=".dll"
 
16326
      # FIXME: Setting linknames here is a bad hack.
 
16327
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16328
      # The linker will automatically build a .lib file if we build a DLL.
 
16329
      old_archive_From_new_cmds_GCJ='true'
 
16330
      # FIXME: Should let the user specify the lib program.
 
16331
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16332
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16333
      enable_shared_with_static_runtimes_GCJ=yes
 
16334
      ;;
 
16335
 
 
16336
    darwin* | rhapsody*)
 
16337
    if test "$GXX" = yes ; then
 
16338
      archive_cmds_need_lc_GCJ=no
 
16339
      case "$host_os" in
 
16340
      rhapsody* | darwin1.[012])
 
16341
        allow_undefined_flag_GCJ='-undefined suppress'
 
16342
        ;;
 
16343
      *) # Darwin 1.3 on
 
16344
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16345
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16346
      else
 
16347
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
16348
          10.[012])
 
16349
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16350
            ;;
 
16351
          10.*)
 
16352
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
16353
            ;;
 
16354
        esac
 
16355
      fi
 
16356
        ;;
 
16357
      esac
 
16358
        lt_int_apple_cc_single_mod=no
 
16359
        output_verbose_link_cmd='echo'
 
16360
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16361
          lt_int_apple_cc_single_mod=yes
 
16362
        fi
 
16363
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16364
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16365
        else
 
16366
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16367
      fi
 
16368
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16369
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16370
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16371
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16372
        else
 
16373
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16374
        fi
 
16375
          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}'
 
16376
      hardcode_direct_GCJ=no
 
16377
      hardcode_automatic_GCJ=yes
 
16378
      hardcode_shlibpath_var_GCJ=unsupported
 
16379
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16380
      link_all_deplibs_GCJ=yes
 
16381
    else
 
16382
      ld_shlibs_GCJ=no
 
16383
    fi
 
16384
      ;;
 
16385
 
 
16386
    dgux*)
 
16387
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16388
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16389
      hardcode_shlibpath_var_GCJ=no
 
16390
      ;;
 
16391
 
 
16392
    freebsd1*)
 
16393
      ld_shlibs_GCJ=no
 
16394
      ;;
 
16395
 
 
16396
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16397
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16398
    # does not break anything, and helps significantly (at the cost of a little
 
16399
    # extra space).
 
16400
    freebsd2.2*)
 
16401
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16402
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16403
      hardcode_direct_GCJ=yes
 
16404
      hardcode_shlibpath_var_GCJ=no
 
16405
      ;;
 
16406
 
 
16407
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16408
    freebsd2*)
 
16409
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16410
      hardcode_direct_GCJ=yes
 
16411
      hardcode_minus_L_GCJ=yes
 
16412
      hardcode_shlibpath_var_GCJ=no
 
16413
      ;;
 
16414
 
 
16415
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16416
    freebsd* | kfreebsd*-gnu)
 
16417
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16418
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16419
      hardcode_direct_GCJ=yes
 
16420
      hardcode_shlibpath_var_GCJ=no
 
16421
      ;;
 
16422
 
 
16423
    hpux9*)
 
16424
      if test "$GCC" = yes; then
 
16425
        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'
 
16426
      else
 
16427
        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'
 
16428
      fi
 
16429
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16430
      hardcode_libdir_separator_GCJ=:
 
16431
      hardcode_direct_GCJ=yes
 
16432
 
 
16433
      # hardcode_minus_L: Not really in the search PATH,
 
16434
      # but as the default location of the library.
 
16435
      hardcode_minus_L_GCJ=yes
 
16436
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16437
      ;;
 
16438
 
 
16439
    hpux10* | hpux11*)
 
16440
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16441
        case "$host_cpu" in
 
16442
        hppa*64*|ia64*)
 
16443
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16444
          ;;
 
16445
        *)
 
16446
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16447
          ;;
 
16448
        esac
 
16449
      else
 
16450
        case "$host_cpu" in
 
16451
        hppa*64*|ia64*)
 
16452
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16453
          ;;
 
16454
        *)
 
16455
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16456
          ;;
 
16457
        esac
 
16458
      fi
 
16459
      if test "$with_gnu_ld" = no; then
 
16460
        case "$host_cpu" in
 
16461
        hppa*64*)
 
16462
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16463
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16464
          hardcode_libdir_separator_GCJ=:
 
16465
          hardcode_direct_GCJ=no
 
16466
          hardcode_shlibpath_var_GCJ=no
 
16467
          ;;
 
16468
        ia64*)
 
16469
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16470
          hardcode_direct_GCJ=no
 
16471
          hardcode_shlibpath_var_GCJ=no
 
16472
 
 
16473
          # hardcode_minus_L: Not really in the search PATH,
 
16474
          # but as the default location of the library.
 
16475
          hardcode_minus_L_GCJ=yes
 
16476
          ;;
 
16477
        *)
 
16478
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16479
          hardcode_libdir_separator_GCJ=:
 
16480
          hardcode_direct_GCJ=yes
 
16481
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16482
 
 
16483
          # hardcode_minus_L: Not really in the search PATH,
 
16484
          # but as the default location of the library.
 
16485
          hardcode_minus_L_GCJ=yes
 
16486
          ;;
 
16487
        esac
 
16488
      fi
 
16489
      ;;
 
16490
 
 
16491
    irix5* | irix6* | nonstopux*)
 
16492
      if test "$GCC" = yes; then
 
16493
        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'
 
16494
      else
 
16495
        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'
 
16496
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16497
      fi
 
16498
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16499
      hardcode_libdir_separator_GCJ=:
 
16500
      link_all_deplibs_GCJ=yes
 
16501
      ;;
 
16502
 
 
16503
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16504
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16505
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16506
      else
 
16507
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16508
      fi
 
16509
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16510
      hardcode_direct_GCJ=yes
 
16511
      hardcode_shlibpath_var_GCJ=no
 
16512
      ;;
 
16513
 
 
16514
    newsos6)
 
16515
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16516
      hardcode_direct_GCJ=yes
 
16517
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16518
      hardcode_libdir_separator_GCJ=:
 
16519
      hardcode_shlibpath_var_GCJ=no
 
16520
      ;;
 
16521
 
 
16522
    openbsd*)
 
16523
      hardcode_direct_GCJ=yes
 
16524
      hardcode_shlibpath_var_GCJ=no
 
16525
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16526
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16527
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16528
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16529
      else
 
16530
       case $host_os in
 
16531
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16532
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16533
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16534
           ;;
 
16535
         *)
 
16536
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16537
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16538
           ;;
 
16539
       esac
 
16540
      fi
 
16541
      ;;
 
16542
 
 
16543
    os2*)
 
16544
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16545
      hardcode_minus_L_GCJ=yes
 
16546
      allow_undefined_flag_GCJ=unsupported
 
16547
      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'
 
16548
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16549
      ;;
 
16550
 
 
16551
    osf3*)
 
16552
      if test "$GCC" = yes; then
 
16553
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16554
        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'
 
16555
      else
 
16556
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16557
        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'
 
16558
      fi
 
16559
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16560
      hardcode_libdir_separator_GCJ=:
 
16561
      ;;
 
16562
 
 
16563
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16564
      if test "$GCC" = yes; then
 
16565
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16566
        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'
 
16567
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16568
      else
 
16569
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16570
        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'
 
16571
        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~
 
16572
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
16573
 
 
16574
        # Both c and cxx compiler support -rpath directly
 
16575
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16576
      fi
 
16577
      hardcode_libdir_separator_GCJ=:
 
16578
      ;;
 
16579
 
 
16580
    sco3.2v5*)
 
16581
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16582
      hardcode_shlibpath_var_GCJ=no
 
16583
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16584
      runpath_var=LD_RUN_PATH
 
16585
      hardcode_runpath_var=yes
 
16586
      ;;
 
16587
 
 
16588
    solaris*)
 
16589
      no_undefined_flag_GCJ=' -z text'
 
16590
      if test "$GCC" = yes; then
 
16591
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16592
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16593
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16594
      else
 
16595
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16596
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16597
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16598
      fi
 
16599
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16600
      hardcode_shlibpath_var_GCJ=no
 
16601
      case $host_os in
 
16602
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16603
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16604
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16605
      esac
 
16606
      link_all_deplibs_GCJ=yes
 
16607
      ;;
 
16608
 
 
16609
    sunos4*)
 
16610
      if test "x$host_vendor" = xsequent; then
 
16611
        # Use $CC to link under sequent, because it throws in some extra .o
 
16612
        # files that make .init and .fini sections work.
 
16613
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16614
      else
 
16615
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16616
      fi
 
16617
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16618
      hardcode_direct_GCJ=yes
 
16619
      hardcode_minus_L_GCJ=yes
 
16620
      hardcode_shlibpath_var_GCJ=no
 
16621
      ;;
 
16622
 
 
16623
    sysv4)
 
16624
      case $host_vendor in
 
16625
        sni)
 
16626
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16627
          hardcode_direct_GCJ=yes # is this really true???
 
16628
        ;;
 
16629
        siemens)
 
16630
          ## LD is ld it makes a PLAMLIB
 
16631
          ## CC just makes a GrossModule.
 
16632
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16633
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16634
          hardcode_direct_GCJ=no
 
16635
        ;;
 
16636
        motorola)
 
16637
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16638
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16639
        ;;
 
16640
      esac
 
16641
      runpath_var='LD_RUN_PATH'
 
16642
      hardcode_shlibpath_var_GCJ=no
 
16643
      ;;
 
16644
 
 
16645
    sysv4.3*)
 
16646
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16647
      hardcode_shlibpath_var_GCJ=no
 
16648
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16649
      ;;
 
16650
 
 
16651
    sysv4*MP*)
 
16652
      if test -d /usr/nec; then
 
16653
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16654
        hardcode_shlibpath_var_GCJ=no
 
16655
        runpath_var=LD_RUN_PATH
 
16656
        hardcode_runpath_var=yes
 
16657
        ld_shlibs_GCJ=yes
 
16658
      fi
 
16659
      ;;
 
16660
 
 
16661
    sysv4.2uw2*)
 
16662
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16663
      hardcode_direct_GCJ=yes
 
16664
      hardcode_minus_L_GCJ=no
 
16665
      hardcode_shlibpath_var_GCJ=no
 
16666
      hardcode_runpath_var=yes
 
16667
      runpath_var=LD_RUN_PATH
 
16668
      ;;
 
16669
 
 
16670
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16671
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
16672
      if test "$GCC" = yes; then
 
16673
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16674
      else
 
16675
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16676
      fi
 
16677
      runpath_var='LD_RUN_PATH'
 
16678
      hardcode_shlibpath_var_GCJ=no
 
16679
      ;;
 
16680
 
 
16681
    sysv5*)
 
16682
      no_undefined_flag_GCJ=' -z text'
 
16683
      # $CC -shared without GNU ld will not create a library from C++
 
16684
      # object files and a static libstdc++, better avoid it by now
 
16685
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16686
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16687
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16688
      hardcode_libdir_flag_spec_GCJ=
 
16689
      hardcode_shlibpath_var_GCJ=no
 
16690
      runpath_var='LD_RUN_PATH'
 
16691
      ;;
 
16692
 
 
16693
    uts4*)
 
16694
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16695
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16696
      hardcode_shlibpath_var_GCJ=no
 
16697
      ;;
 
16698
 
 
16699
    *)
 
16700
      ld_shlibs_GCJ=no
 
16701
      ;;
 
16702
    esac
 
16703
  fi
 
16704
 
 
16705
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16706
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16707
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16708
 
 
16709
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16710
if test "$GCC" = yes; then
 
16711
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16712
fi
 
16713
 
 
16714
#
 
16715
# Do we need to explicitly link libc?
 
16716
#
 
16717
case "x$archive_cmds_need_lc_GCJ" in
 
16718
x|xyes)
 
16719
  # Assume -lc should be added
 
16720
  archive_cmds_need_lc_GCJ=yes
 
16721
 
 
16722
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16723
    case $archive_cmds_GCJ in
 
16724
    *'~'*)
 
16725
      # FIXME: we may have to deal with multi-command sequences.
 
16726
      ;;
 
16727
    '$CC '*)
 
16728
      # Test whether the compiler implicitly links with -lc since on some
 
16729
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16730
      # to ld, don't add -lc before -lgcc.
 
16731
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16732
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16733
      $rm conftest*
 
16734
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16735
 
 
16736
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16737
  (eval $ac_compile) 2>&5
 
16738
  ac_status=$?
 
16739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16740
  (exit $ac_status); } 2>conftest.err; then
 
16741
        soname=conftest
 
16742
        lib=conftest
 
16743
        libobjs=conftest.$ac_objext
 
16744
        deplibs=
 
16745
        wl=$lt_prog_compiler_wl_GCJ
 
16746
        compiler_flags=-v
 
16747
        linker_flags=-v
 
16748
        verstring=
 
16749
        output_objdir=.
 
16750
        libname=conftest
 
16751
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16752
        allow_undefined_flag_GCJ=
 
16753
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16754
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16755
  ac_status=$?
 
16756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16757
  (exit $ac_status); }
 
16758
        then
 
16759
          archive_cmds_need_lc_GCJ=no
 
16760
        else
 
16761
          archive_cmds_need_lc_GCJ=yes
 
16762
        fi
 
16763
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16764
      else
 
16765
        cat conftest.err 1>&5
 
16766
      fi
 
16767
      $rm conftest*
 
16768
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16769
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16770
      ;;
 
16771
    esac
 
16772
  fi
 
16773
  ;;
 
16774
esac
 
16775
 
 
16776
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16777
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16778
library_names_spec=
 
16779
libname_spec='lib$name'
 
16780
soname_spec=
 
16781
shrext_cmds=".so"
 
16782
postinstall_cmds=
 
16783
postuninstall_cmds=
 
16784
finish_cmds=
 
16785
finish_eval=
 
16786
shlibpath_var=
 
16787
shlibpath_overrides_runpath=unknown
 
16788
version_type=none
 
16789
dynamic_linker="$host_os ld.so"
 
16790
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16791
if test "$GCC" = yes; then
 
16792
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16793
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16794
    # if the path contains ";" then we assume it to be the separator
 
16795
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16796
    # assumed that no part of a normal pathname contains ";" but that should
 
16797
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16798
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16799
  else
 
16800
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16801
  fi
 
16802
else
 
16803
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16804
fi
 
16805
need_lib_prefix=unknown
 
16806
hardcode_into_libs=no
 
16807
 
 
16808
# when you set need_version to no, make sure it does not cause -set_version
 
16809
# flags to be left without arguments
 
16810
need_version=unknown
 
16811
 
 
16812
case $host_os in
 
16813
aix3*)
 
16814
  version_type=linux
 
16815
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16816
  shlibpath_var=LIBPATH
 
16817
 
 
16818
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16819
  soname_spec='${libname}${release}${shared_ext}$major'
 
16820
  ;;
 
16821
 
 
16822
aix4* | aix5*)
 
16823
  version_type=linux
 
16824
  need_lib_prefix=no
 
16825
  need_version=no
 
16826
  hardcode_into_libs=yes
 
16827
  if test "$host_cpu" = ia64; then
 
16828
    # AIX 5 supports IA64
 
16829
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16830
    shlibpath_var=LD_LIBRARY_PATH
 
16831
  else
 
16832
    # With GCC up to 2.95.x, collect2 would create an import file
 
16833
    # for dependence libraries.  The import file would start with
 
16834
    # the line `#! .'.  This would cause the generated library to
 
16835
    # depend on `.', always an invalid library.  This was fixed in
 
16836
    # development snapshots of GCC prior to 3.0.
 
16837
    case $host_os in
 
16838
      aix4 | aix4.[01] | aix4.[01].*)
 
16839
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16840
           echo ' yes '
 
16841
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16842
        :
 
16843
      else
 
16844
        can_build_shared=no
 
16845
      fi
 
16846
      ;;
 
16847
    esac
 
16848
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16849
    # soname into executable. Probably we can add versioning support to
 
16850
    # collect2, so additional links can be useful in future.
 
16851
    if test "$aix_use_runtimelinking" = yes; then
 
16852
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16853
      # instead of lib<name>.a to let people know that these are not
 
16854
      # typical AIX shared libraries.
 
16855
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16856
    else
 
16857
      # We preserve .a as extension for shared libraries through AIX4.2
 
16858
      # and later when we are not doing run time linking.
 
16859
      library_names_spec='${libname}${release}.a $libname.a'
 
16860
      soname_spec='${libname}${release}${shared_ext}$major'
 
16861
    fi
 
16862
    shlibpath_var=LIBPATH
 
16863
  fi
 
16864
  ;;
 
16865
 
 
16866
amigaos*)
 
16867
  library_names_spec='$libname.ixlibrary $libname.a'
 
16868
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16869
  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'
 
16870
  ;;
 
16871
 
 
16872
beos*)
 
16873
  library_names_spec='${libname}${shared_ext}'
 
16874
  dynamic_linker="$host_os ld.so"
 
16875
  shlibpath_var=LIBRARY_PATH
 
16876
  ;;
 
16877
 
 
16878
bsdi4*)
 
16879
  version_type=linux
 
16880
  need_version=no
 
16881
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16882
  soname_spec='${libname}${release}${shared_ext}$major'
 
16883
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16884
  shlibpath_var=LD_LIBRARY_PATH
 
16885
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16886
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16887
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16888
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16889
  # libtool to hard-code these into programs
 
16890
  ;;
 
16891
 
 
16892
cygwin* | mingw* | pw32*)
 
16893
  version_type=windows
 
16894
  shrext_cmds=".dll"
 
16895
  need_version=no
 
16896
  need_lib_prefix=no
 
16897
 
 
16898
  case $GCC,$host_os in
 
16899
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16900
    library_names_spec='$libname.dll.a'
 
16901
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16902
    postinstall_cmds='base_file=`basename \${file}`~
 
16903
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16904
      dldir=$destdir/`dirname \$dlpath`~
 
16905
      test -d \$dldir || mkdir -p \$dldir~
 
16906
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16907
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16908
      dlpath=$dir/\$dldll~
 
16909
       $rm \$dlpath'
 
16910
    shlibpath_overrides_runpath=yes
 
16911
 
 
16912
    case $host_os in
 
16913
    cygwin*)
 
16914
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16915
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16916
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16917
      ;;
 
16918
    mingw*)
 
16919
      # MinGW DLLs use traditional 'lib' prefix
 
16920
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16921
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16922
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16923
        # It is most probably a Windows format PATH printed by
 
16924
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16925
        # path with ; separators, and with drive letters. We can handle the
 
16926
        # drive letters (cygwin fileutils understands them), so leave them,
 
16927
        # especially as we might pass files found there to a mingw objdump,
 
16928
        # which wouldn't understand a cygwinified path. Ahh.
 
16929
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16930
      else
 
16931
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16932
      fi
 
16933
      ;;
 
16934
    pw32*)
 
16935
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16936
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16937
      ;;
 
16938
    esac
 
16939
    ;;
 
16940
 
 
16941
  *)
 
16942
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16943
    ;;
 
16944
  esac
 
16945
  dynamic_linker='Win32 ld.exe'
 
16946
  # FIXME: first we should search . and the directory the executable is in
 
16947
  shlibpath_var=PATH
 
16948
  ;;
 
16949
 
 
16950
darwin* | rhapsody*)
 
16951
  dynamic_linker="$host_os dyld"
 
16952
  version_type=darwin
 
16953
  need_lib_prefix=no
 
16954
  need_version=no
 
16955
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16956
  soname_spec='${libname}${release}${major}$shared_ext'
 
16957
  shlibpath_overrides_runpath=yes
 
16958
  shlibpath_var=DYLD_LIBRARY_PATH
 
16959
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16960
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16961
  if test "$GCC" = yes; then
 
16962
    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"`
 
16963
  else
 
16964
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16965
  fi
 
16966
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16967
  ;;
 
16968
 
 
16969
dgux*)
 
16970
  version_type=linux
 
16971
  need_lib_prefix=no
 
16972
  need_version=no
 
16973
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16974
  soname_spec='${libname}${release}${shared_ext}$major'
 
16975
  shlibpath_var=LD_LIBRARY_PATH
 
16976
  ;;
 
16977
 
 
16978
freebsd1*)
 
16979
  dynamic_linker=no
 
16980
  ;;
 
16981
 
 
16982
kfreebsd*-gnu)
 
16983
  version_type=linux
 
16984
  need_lib_prefix=no
 
16985
  need_version=no
 
16986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16987
  soname_spec='${libname}${release}${shared_ext}$major'
 
16988
  shlibpath_var=LD_LIBRARY_PATH
 
16989
  shlibpath_overrides_runpath=no
 
16990
  hardcode_into_libs=yes
 
16991
  dynamic_linker='GNU ld.so'
 
16992
  ;;
 
16993
 
 
16994
freebsd*)
 
16995
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16996
  version_type=freebsd-$objformat
 
16997
  case $version_type in
 
16998
    freebsd-elf*)
 
16999
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17000
      need_version=no
 
17001
      need_lib_prefix=no
 
17002
      ;;
 
17003
    freebsd-*)
 
17004
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17005
      need_version=yes
 
17006
      ;;
 
17007
  esac
 
17008
  shlibpath_var=LD_LIBRARY_PATH
 
17009
  case $host_os in
 
17010
  freebsd2*)
 
17011
    shlibpath_overrides_runpath=yes
 
17012
    ;;
 
17013
  freebsd3.01* | freebsdelf3.01*)
 
17014
    shlibpath_overrides_runpath=yes
 
17015
    hardcode_into_libs=yes
 
17016
    ;;
 
17017
  *) # from 3.2 on
 
17018
    shlibpath_overrides_runpath=no
 
17019
    hardcode_into_libs=yes
 
17020
    ;;
 
17021
  esac
 
17022
  ;;
 
17023
 
 
17024
gnu*)
 
17025
  version_type=linux
 
17026
  need_lib_prefix=no
 
17027
  need_version=no
 
17028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17029
  soname_spec='${libname}${release}${shared_ext}$major'
 
17030
  shlibpath_var=LD_LIBRARY_PATH
 
17031
  hardcode_into_libs=yes
 
17032
  ;;
 
17033
 
 
17034
hpux9* | hpux10* | hpux11*)
 
17035
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17036
  # link against other versions.
 
17037
  version_type=sunos
 
17038
  need_lib_prefix=no
 
17039
  need_version=no
 
17040
  case "$host_cpu" in
 
17041
  ia64*)
 
17042
    shrext_cmds='.so'
 
17043
    hardcode_into_libs=yes
 
17044
    dynamic_linker="$host_os dld.so"
 
17045
    shlibpath_var=LD_LIBRARY_PATH
 
17046
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17047
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17048
    soname_spec='${libname}${release}${shared_ext}$major'
 
17049
    if test "X$HPUX_IA64_MODE" = X32; then
 
17050
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17051
    else
 
17052
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17053
    fi
 
17054
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17055
    ;;
 
17056
   hppa*64*)
 
17057
     shrext_cmds='.sl'
 
17058
     hardcode_into_libs=yes
 
17059
     dynamic_linker="$host_os dld.sl"
 
17060
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17061
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17062
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17063
     soname_spec='${libname}${release}${shared_ext}$major'
 
17064
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17065
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17066
     ;;
 
17067
   *)
 
17068
    shrext_cmds='.sl'
 
17069
    dynamic_linker="$host_os dld.sl"
 
17070
    shlibpath_var=SHLIB_PATH
 
17071
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17072
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17073
    soname_spec='${libname}${release}${shared_ext}$major'
 
17074
    ;;
 
17075
  esac
 
17076
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17077
  postinstall_cmds='chmod 555 $lib'
 
17078
  ;;
 
17079
 
 
17080
irix5* | irix6* | nonstopux*)
 
17081
  case $host_os in
 
17082
    nonstopux*) version_type=nonstopux ;;
 
17083
    *)
 
17084
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17085
                version_type=linux
 
17086
        else
 
17087
                version_type=irix
 
17088
        fi ;;
 
17089
  esac
 
17090
  need_lib_prefix=no
 
17091
  need_version=no
 
17092
  soname_spec='${libname}${release}${shared_ext}$major'
 
17093
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17094
  case $host_os in
 
17095
  irix5* | nonstopux*)
 
17096
    libsuff= shlibsuff=
 
17097
    ;;
 
17098
  *)
 
17099
    case $LD in # libtool.m4 will add one of these switches to LD
 
17100
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17101
      libsuff= shlibsuff= libmagic=32-bit;;
 
17102
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17103
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17104
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17105
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17106
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17107
    esac
 
17108
    ;;
 
17109
  esac
 
17110
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17111
  shlibpath_overrides_runpath=no
 
17112
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17113
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17114
  hardcode_into_libs=yes
 
17115
  ;;
 
17116
 
 
17117
# No shared lib support for Linux oldld, aout, or coff.
 
17118
linux*oldld* | linux*aout* | linux*coff*)
 
17119
  dynamic_linker=no
 
17120
  ;;
 
17121
 
 
17122
# This must be Linux ELF.
 
17123
linux*)
 
17124
  version_type=linux
 
17125
  need_lib_prefix=no
 
17126
  need_version=no
 
17127
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17128
  soname_spec='${libname}${release}${shared_ext}$major'
 
17129
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17130
  shlibpath_var=LD_LIBRARY_PATH
 
17131
  shlibpath_overrides_runpath=no
 
17132
  # This implies no fast_install, which is unacceptable.
 
17133
  # Some rework will be needed to allow for fast_install
 
17134
  # before this can be enabled.
 
17135
  hardcode_into_libs=yes
 
17136
 
 
17137
  # Append ld.so.conf contents to the search path
 
17138
  if test -f /etc/ld.so.conf; then
 
17139
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17140
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17141
  fi
 
17142
 
 
17143
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17144
  # powerpc, because MkLinux only supported shared libraries with the
 
17145
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17146
  # most powerpc-linux boxes support dynamic linking these days and
 
17147
  # people can always --disable-shared, the test was removed, and we
 
17148
  # assume the GNU/Linux dynamic linker is in use.
 
17149
  dynamic_linker='GNU/Linux ld.so'
 
17150
  ;;
 
17151
 
 
17152
netbsdelf*-gnu)
 
17153
  version_type=linux
 
17154
  need_lib_prefix=no
 
17155
  need_version=no
 
17156
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17157
  soname_spec='${libname}${release}${shared_ext}$major'
 
17158
  shlibpath_var=LD_LIBRARY_PATH
 
17159
  shlibpath_overrides_runpath=no
 
17160
  hardcode_into_libs=yes
 
17161
  dynamic_linker='NetBSD ld.elf_so'
 
17162
  ;;
 
17163
 
 
17164
knetbsd*-gnu)
 
17165
  version_type=linux
 
17166
  need_lib_prefix=no
 
17167
  need_version=no
 
17168
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17169
  soname_spec='${libname}${release}${shared_ext}$major'
 
17170
  shlibpath_var=LD_LIBRARY_PATH
 
17171
  shlibpath_overrides_runpath=no
 
17172
  hardcode_into_libs=yes
 
17173
  dynamic_linker='GNU ld.so'
 
17174
  ;;
 
17175
 
 
17176
netbsd*)
 
17177
  version_type=sunos
 
17178
  need_lib_prefix=no
 
17179
  need_version=no
 
17180
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17181
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17182
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17183
    dynamic_linker='NetBSD (a.out) ld.so'
 
17184
  else
 
17185
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17186
    soname_spec='${libname}${release}${shared_ext}$major'
 
17187
    dynamic_linker='NetBSD ld.elf_so'
 
17188
  fi
 
17189
  shlibpath_var=LD_LIBRARY_PATH
 
17190
  shlibpath_overrides_runpath=yes
 
17191
  hardcode_into_libs=yes
 
17192
  ;;
 
17193
 
 
17194
newsos6)
 
17195
  version_type=linux
 
17196
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17197
  shlibpath_var=LD_LIBRARY_PATH
 
17198
  shlibpath_overrides_runpath=yes
 
17199
  ;;
 
17200
 
 
17201
nto-qnx*)
 
17202
  version_type=linux
 
17203
  need_lib_prefix=no
 
17204
  need_version=no
 
17205
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17206
  soname_spec='${libname}${release}${shared_ext}$major'
 
17207
  shlibpath_var=LD_LIBRARY_PATH
 
17208
  shlibpath_overrides_runpath=yes
 
17209
  ;;
 
17210
 
 
17211
openbsd*)
 
17212
  version_type=sunos
 
17213
  need_lib_prefix=no
 
17214
  need_version=yes
 
17215
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17216
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17217
  shlibpath_var=LD_LIBRARY_PATH
 
17218
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17219
    case $host_os in
 
17220
      openbsd2.[89] | openbsd2.[89].*)
 
17221
        shlibpath_overrides_runpath=no
 
17222
        ;;
 
17223
      *)
 
17224
        shlibpath_overrides_runpath=yes
 
17225
        ;;
 
17226
      esac
 
17227
  else
 
17228
    shlibpath_overrides_runpath=yes
 
17229
  fi
 
17230
  ;;
 
17231
 
 
17232
os2*)
 
17233
  libname_spec='$name'
 
17234
  shrext_cmds=".dll"
 
17235
  need_lib_prefix=no
 
17236
  library_names_spec='$libname${shared_ext} $libname.a'
 
17237
  dynamic_linker='OS/2 ld.exe'
 
17238
  shlibpath_var=LIBPATH
 
17239
  ;;
 
17240
 
 
17241
osf3* | osf4* | osf5*)
 
17242
  version_type=osf
 
17243
  need_lib_prefix=no
 
17244
  need_version=no
 
17245
  soname_spec='${libname}${release}${shared_ext}$major'
 
17246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17247
  shlibpath_var=LD_LIBRARY_PATH
 
17248
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17249
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17250
  ;;
 
17251
 
 
17252
sco3.2v5*)
 
17253
  version_type=osf
 
17254
  soname_spec='${libname}${release}${shared_ext}$major'
 
17255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17256
  shlibpath_var=LD_LIBRARY_PATH
 
17257
  ;;
 
17258
 
 
17259
solaris*)
 
17260
  version_type=linux
 
17261
  need_lib_prefix=no
 
17262
  need_version=no
 
17263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17264
  soname_spec='${libname}${release}${shared_ext}$major'
 
17265
  shlibpath_var=LD_LIBRARY_PATH
 
17266
  shlibpath_overrides_runpath=yes
 
17267
  hardcode_into_libs=yes
 
17268
  # ldd complains unless libraries are executable
 
17269
  postinstall_cmds='chmod +x $lib'
 
17270
  ;;
 
17271
 
 
17272
sunos4*)
 
17273
  version_type=sunos
 
17274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17275
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17276
  shlibpath_var=LD_LIBRARY_PATH
 
17277
  shlibpath_overrides_runpath=yes
 
17278
  if test "$with_gnu_ld" = yes; then
 
17279
    need_lib_prefix=no
 
17280
  fi
 
17281
  need_version=yes
 
17282
  ;;
 
17283
 
 
17284
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17285
  version_type=linux
 
17286
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17287
  soname_spec='${libname}${release}${shared_ext}$major'
 
17288
  shlibpath_var=LD_LIBRARY_PATH
 
17289
  case $host_vendor in
 
17290
    sni)
 
17291
      shlibpath_overrides_runpath=no
 
17292
      need_lib_prefix=no
 
17293
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17294
      runpath_var=LD_RUN_PATH
 
17295
      ;;
 
17296
    siemens)
 
17297
      need_lib_prefix=no
 
17298
      ;;
 
17299
    motorola)
 
17300
      need_lib_prefix=no
 
17301
      need_version=no
 
17302
      shlibpath_overrides_runpath=no
 
17303
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17304
      ;;
 
17305
  esac
 
17306
  ;;
 
17307
 
 
17308
sysv4*MP*)
 
17309
  if test -d /usr/nec ;then
 
17310
    version_type=linux
 
17311
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17312
    soname_spec='$libname${shared_ext}.$major'
 
17313
    shlibpath_var=LD_LIBRARY_PATH
 
17314
  fi
 
17315
  ;;
 
17316
 
 
17317
uts4*)
 
17318
  version_type=linux
 
17319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17320
  soname_spec='${libname}${release}${shared_ext}$major'
 
17321
  shlibpath_var=LD_LIBRARY_PATH
 
17322
  ;;
 
17323
 
 
17324
*)
 
17325
  dynamic_linker=no
 
17326
  ;;
 
17327
esac
 
17328
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17329
echo "${ECHO_T}$dynamic_linker" >&6
 
17330
test "$dynamic_linker" = no && can_build_shared=no
 
17331
 
 
17332
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17333
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17334
hardcode_action_GCJ=
 
17335
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17336
   test -n "$runpath_var GCJ" || \
 
17337
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17338
 
 
17339
  # We can hardcode non-existant directories.
 
17340
  if test "$hardcode_direct_GCJ" != no &&
 
17341
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17342
     # have to relink, otherwise we might link with an installed library
 
17343
     # when we should be linking with a yet-to-be-installed one
 
17344
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17345
     test "$hardcode_minus_L_GCJ" != no; then
 
17346
    # Linking always hardcodes the temporary library directory.
 
17347
    hardcode_action_GCJ=relink
 
17348
  else
 
17349
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17350
    hardcode_action_GCJ=immediate
 
17351
  fi
 
17352
else
 
17353
  # We cannot hardcode anything, or else we can only hardcode existing
 
17354
  # directories.
 
17355
  hardcode_action_GCJ=unsupported
 
17356
fi
 
17357
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17358
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17359
 
 
17360
if test "$hardcode_action_GCJ" = relink; then
 
17361
  # Fast installation is not supported
 
17362
  enable_fast_install=no
 
17363
elif test "$shlibpath_overrides_runpath" = yes ||
 
17364
     test "$enable_shared" = no; then
 
17365
  # Fast installation is not necessary
 
17366
  enable_fast_install=needless
 
17367
fi
 
17368
 
 
17369
striplib=
 
17370
old_striplib=
 
17371
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17372
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17373
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17374
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17375
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17376
  echo "$as_me:$LINENO: result: yes" >&5
 
17377
echo "${ECHO_T}yes" >&6
 
17378
else
 
17379
# FIXME - insert some real tests, host_os isn't really good enough
 
17380
  case $host_os in
 
17381
   darwin*)
 
17382
       if test -n "$STRIP" ; then
 
17383
         striplib="$STRIP -x"
 
17384
         echo "$as_me:$LINENO: result: yes" >&5
 
17385
echo "${ECHO_T}yes" >&6
 
17386
       else
 
17387
  echo "$as_me:$LINENO: result: no" >&5
 
17388
echo "${ECHO_T}no" >&6
 
17389
fi
 
17390
       ;;
 
17391
   *)
 
17392
  echo "$as_me:$LINENO: result: no" >&5
 
17393
echo "${ECHO_T}no" >&6
 
17394
    ;;
 
17395
  esac
 
17396
fi
 
17397
 
 
17398
if test "x$enable_dlopen" != xyes; then
 
17399
  enable_dlopen=unknown
 
17400
  enable_dlopen_self=unknown
 
17401
  enable_dlopen_self_static=unknown
 
17402
else
 
17403
  lt_cv_dlopen=no
 
17404
  lt_cv_dlopen_libs=
 
17405
 
 
17406
  case $host_os in
 
17407
  beos*)
 
17408
    lt_cv_dlopen="load_add_on"
 
17409
    lt_cv_dlopen_libs=
 
17410
    lt_cv_dlopen_self=yes
 
17411
    ;;
 
17412
 
 
17413
  mingw* | pw32*)
 
17414
    lt_cv_dlopen="LoadLibrary"
 
17415
    lt_cv_dlopen_libs=
 
17416
   ;;
 
17417
 
 
17418
  cygwin*)
 
17419
    lt_cv_dlopen="dlopen"
 
17420
    lt_cv_dlopen_libs=
 
17421
   ;;
 
17422
 
 
17423
  darwin*)
 
17424
  # if libdl is installed we need to link against it
 
17425
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17426
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17427
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17429
else
 
17430
  ac_check_lib_save_LIBS=$LIBS
 
17431
LIBS="-ldl  $LIBS"
 
17432
cat >conftest.$ac_ext <<_ACEOF
 
17433
/* confdefs.h.  */
 
17434
_ACEOF
 
17435
cat confdefs.h >>conftest.$ac_ext
 
17436
cat >>conftest.$ac_ext <<_ACEOF
 
17437
/* end confdefs.h.  */
 
17438
 
 
17439
/* Override any gcc2 internal prototype to avoid an error.  */
 
17440
#ifdef __cplusplus
 
17441
extern "C"
 
17442
#endif
 
17443
/* We use char because int might match the return type of a gcc2
 
17444
   builtin and then its argument prototype would still apply.  */
 
17445
char dlopen ();
 
17446
int
 
17447
main ()
 
17448
{
 
17449
dlopen ();
 
17450
  ;
 
17451
  return 0;
 
17452
}
 
17453
_ACEOF
 
17454
rm -f conftest.$ac_objext conftest$ac_exeext
 
17455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17456
  (eval $ac_link) 2>conftest.er1
 
17457
  ac_status=$?
 
17458
  grep -v '^ *+' conftest.er1 >conftest.err
 
17459
  rm -f conftest.er1
 
17460
  cat conftest.err >&5
 
17461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17462
  (exit $ac_status); } &&
 
17463
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17465
  (eval $ac_try) 2>&5
 
17466
  ac_status=$?
 
17467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17468
  (exit $ac_status); }; } &&
 
17469
         { ac_try='test -s conftest$ac_exeext'
 
17470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17471
  (eval $ac_try) 2>&5
 
17472
  ac_status=$?
 
17473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17474
  (exit $ac_status); }; }; then
 
17475
  ac_cv_lib_dl_dlopen=yes
 
17476
else
 
17477
  echo "$as_me: failed program was:" >&5
 
17478
sed 's/^/| /' conftest.$ac_ext >&5
 
17479
 
 
17480
ac_cv_lib_dl_dlopen=no
 
17481
fi
 
17482
rm -f conftest.err conftest.$ac_objext \
 
17483
      conftest$ac_exeext conftest.$ac_ext
 
17484
LIBS=$ac_check_lib_save_LIBS
 
17485
fi
 
17486
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17487
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17488
if test $ac_cv_lib_dl_dlopen = yes; then
 
17489
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17490
else
 
17491
 
 
17492
    lt_cv_dlopen="dyld"
 
17493
    lt_cv_dlopen_libs=
 
17494
    lt_cv_dlopen_self=yes
 
17495
 
 
17496
fi
 
17497
 
 
17498
   ;;
 
17499
 
 
17500
  *)
 
17501
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17502
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17503
if test "${ac_cv_func_shl_load+set}" = set; then
 
17504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17505
else
 
17506
  cat >conftest.$ac_ext <<_ACEOF
 
17507
/* confdefs.h.  */
 
17508
_ACEOF
 
17509
cat confdefs.h >>conftest.$ac_ext
 
17510
cat >>conftest.$ac_ext <<_ACEOF
 
17511
/* end confdefs.h.  */
 
17512
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17513
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17514
#define shl_load innocuous_shl_load
 
17515
 
 
17516
/* System header to define __stub macros and hopefully few prototypes,
 
17517
    which can conflict with char shl_load (); below.
 
17518
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17519
    <limits.h> exists even on freestanding compilers.  */
 
17520
 
 
17521
#ifdef __STDC__
 
17522
# include <limits.h>
 
17523
#else
 
17524
# include <assert.h>
 
17525
#endif
 
17526
 
 
17527
#undef shl_load
 
17528
 
 
17529
/* Override any gcc2 internal prototype to avoid an error.  */
 
17530
#ifdef __cplusplus
 
17531
extern "C"
 
17532
{
 
17533
#endif
 
17534
/* We use char because int might match the return type of a gcc2
 
17535
   builtin and then its argument prototype would still apply.  */
 
17536
char shl_load ();
 
17537
/* The GNU C library defines this for functions which it implements
 
17538
    to always fail with ENOSYS.  Some functions are actually named
 
17539
    something starting with __ and the normal name is an alias.  */
 
17540
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17541
choke me
 
17542
#else
 
17543
char (*f) () = shl_load;
 
17544
#endif
 
17545
#ifdef __cplusplus
 
17546
}
 
17547
#endif
 
17548
 
 
17549
int
 
17550
main ()
 
17551
{
 
17552
return f != shl_load;
 
17553
  ;
 
17554
  return 0;
 
17555
}
 
17556
_ACEOF
 
17557
rm -f conftest.$ac_objext conftest$ac_exeext
 
17558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17559
  (eval $ac_link) 2>conftest.er1
 
17560
  ac_status=$?
 
17561
  grep -v '^ *+' conftest.er1 >conftest.err
 
17562
  rm -f conftest.er1
 
17563
  cat conftest.err >&5
 
17564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17565
  (exit $ac_status); } &&
 
17566
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17567
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17568
  (eval $ac_try) 2>&5
 
17569
  ac_status=$?
 
17570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17571
  (exit $ac_status); }; } &&
 
17572
         { ac_try='test -s conftest$ac_exeext'
 
17573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17574
  (eval $ac_try) 2>&5
 
17575
  ac_status=$?
 
17576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17577
  (exit $ac_status); }; }; then
 
17578
  ac_cv_func_shl_load=yes
 
17579
else
 
17580
  echo "$as_me: failed program was:" >&5
 
17581
sed 's/^/| /' conftest.$ac_ext >&5
 
17582
 
 
17583
ac_cv_func_shl_load=no
 
17584
fi
 
17585
rm -f conftest.err conftest.$ac_objext \
 
17586
      conftest$ac_exeext conftest.$ac_ext
 
17587
fi
 
17588
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17589
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17590
if test $ac_cv_func_shl_load = yes; then
 
17591
  lt_cv_dlopen="shl_load"
 
17592
else
 
17593
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17594
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17595
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17597
else
 
17598
  ac_check_lib_save_LIBS=$LIBS
 
17599
LIBS="-ldld  $LIBS"
 
17600
cat >conftest.$ac_ext <<_ACEOF
 
17601
/* confdefs.h.  */
 
17602
_ACEOF
 
17603
cat confdefs.h >>conftest.$ac_ext
 
17604
cat >>conftest.$ac_ext <<_ACEOF
 
17605
/* end confdefs.h.  */
 
17606
 
 
17607
/* Override any gcc2 internal prototype to avoid an error.  */
 
17608
#ifdef __cplusplus
 
17609
extern "C"
 
17610
#endif
 
17611
/* We use char because int might match the return type of a gcc2
 
17612
   builtin and then its argument prototype would still apply.  */
 
17613
char shl_load ();
 
17614
int
 
17615
main ()
 
17616
{
 
17617
shl_load ();
 
17618
  ;
 
17619
  return 0;
 
17620
}
 
17621
_ACEOF
 
17622
rm -f conftest.$ac_objext conftest$ac_exeext
 
17623
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17624
  (eval $ac_link) 2>conftest.er1
 
17625
  ac_status=$?
 
17626
  grep -v '^ *+' conftest.er1 >conftest.err
 
17627
  rm -f conftest.er1
 
17628
  cat conftest.err >&5
 
17629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17630
  (exit $ac_status); } &&
 
17631
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17633
  (eval $ac_try) 2>&5
 
17634
  ac_status=$?
 
17635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17636
  (exit $ac_status); }; } &&
 
17637
         { ac_try='test -s conftest$ac_exeext'
 
17638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17639
  (eval $ac_try) 2>&5
 
17640
  ac_status=$?
 
17641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17642
  (exit $ac_status); }; }; then
 
17643
  ac_cv_lib_dld_shl_load=yes
 
17644
else
 
17645
  echo "$as_me: failed program was:" >&5
 
17646
sed 's/^/| /' conftest.$ac_ext >&5
 
17647
 
 
17648
ac_cv_lib_dld_shl_load=no
 
17649
fi
 
17650
rm -f conftest.err conftest.$ac_objext \
 
17651
      conftest$ac_exeext conftest.$ac_ext
 
17652
LIBS=$ac_check_lib_save_LIBS
 
17653
fi
 
17654
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
17655
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
17656
if test $ac_cv_lib_dld_shl_load = yes; then
 
17657
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
17658
else
 
17659
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
17660
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
17661
if test "${ac_cv_func_dlopen+set}" = set; then
 
17662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17663
else
 
17664
  cat >conftest.$ac_ext <<_ACEOF
 
17665
/* confdefs.h.  */
 
17666
_ACEOF
 
17667
cat confdefs.h >>conftest.$ac_ext
 
17668
cat >>conftest.$ac_ext <<_ACEOF
 
17669
/* end confdefs.h.  */
 
17670
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
17671
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17672
#define dlopen innocuous_dlopen
 
17673
 
 
17674
/* System header to define __stub macros and hopefully few prototypes,
 
17675
    which can conflict with char dlopen (); below.
 
17676
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17677
    <limits.h> exists even on freestanding compilers.  */
 
17678
 
 
17679
#ifdef __STDC__
 
17680
# include <limits.h>
 
17681
#else
 
17682
# include <assert.h>
 
17683
#endif
 
17684
 
 
17685
#undef dlopen
 
17686
 
 
17687
/* Override any gcc2 internal prototype to avoid an error.  */
 
17688
#ifdef __cplusplus
 
17689
extern "C"
 
17690
{
 
17691
#endif
 
17692
/* We use char because int might match the return type of a gcc2
 
17693
   builtin and then its argument prototype would still apply.  */
 
17694
char dlopen ();
 
17695
/* The GNU C library defines this for functions which it implements
 
17696
    to always fail with ENOSYS.  Some functions are actually named
 
17697
    something starting with __ and the normal name is an alias.  */
 
17698
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
17699
choke me
 
17700
#else
 
17701
char (*f) () = dlopen;
 
17702
#endif
 
17703
#ifdef __cplusplus
 
17704
}
 
17705
#endif
 
17706
 
 
17707
int
 
17708
main ()
 
17709
{
 
17710
return f != dlopen;
 
17711
  ;
 
17712
  return 0;
 
17713
}
 
17714
_ACEOF
 
17715
rm -f conftest.$ac_objext conftest$ac_exeext
 
17716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17717
  (eval $ac_link) 2>conftest.er1
 
17718
  ac_status=$?
 
17719
  grep -v '^ *+' conftest.er1 >conftest.err
 
17720
  rm -f conftest.er1
 
17721
  cat conftest.err >&5
 
17722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17723
  (exit $ac_status); } &&
 
17724
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17726
  (eval $ac_try) 2>&5
 
17727
  ac_status=$?
 
17728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17729
  (exit $ac_status); }; } &&
 
17730
         { ac_try='test -s conftest$ac_exeext'
 
17731
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17732
  (eval $ac_try) 2>&5
 
17733
  ac_status=$?
 
17734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17735
  (exit $ac_status); }; }; then
 
17736
  ac_cv_func_dlopen=yes
 
17737
else
 
17738
  echo "$as_me: failed program was:" >&5
 
17739
sed 's/^/| /' conftest.$ac_ext >&5
 
17740
 
 
17741
ac_cv_func_dlopen=no
 
17742
fi
 
17743
rm -f conftest.err conftest.$ac_objext \
 
17744
      conftest$ac_exeext conftest.$ac_ext
 
17745
fi
 
17746
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
17747
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
17748
if test $ac_cv_func_dlopen = yes; then
 
17749
  lt_cv_dlopen="dlopen"
 
17750
else
 
17751
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17752
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17753
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17755
else
 
17756
  ac_check_lib_save_LIBS=$LIBS
 
17757
LIBS="-ldl  $LIBS"
 
17758
cat >conftest.$ac_ext <<_ACEOF
 
17759
/* confdefs.h.  */
 
17760
_ACEOF
 
17761
cat confdefs.h >>conftest.$ac_ext
 
17762
cat >>conftest.$ac_ext <<_ACEOF
 
17763
/* end confdefs.h.  */
 
17764
 
 
17765
/* Override any gcc2 internal prototype to avoid an error.  */
 
17766
#ifdef __cplusplus
 
17767
extern "C"
 
17768
#endif
 
17769
/* We use char because int might match the return type of a gcc2
 
17770
   builtin and then its argument prototype would still apply.  */
 
17771
char dlopen ();
 
17772
int
 
17773
main ()
 
17774
{
 
17775
dlopen ();
 
17776
  ;
 
17777
  return 0;
 
17778
}
 
17779
_ACEOF
 
17780
rm -f conftest.$ac_objext conftest$ac_exeext
 
17781
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17782
  (eval $ac_link) 2>conftest.er1
 
17783
  ac_status=$?
 
17784
  grep -v '^ *+' conftest.er1 >conftest.err
 
17785
  rm -f conftest.er1
 
17786
  cat conftest.err >&5
 
17787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17788
  (exit $ac_status); } &&
 
17789
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17791
  (eval $ac_try) 2>&5
 
17792
  ac_status=$?
 
17793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17794
  (exit $ac_status); }; } &&
 
17795
         { ac_try='test -s conftest$ac_exeext'
 
17796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17797
  (eval $ac_try) 2>&5
 
17798
  ac_status=$?
 
17799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17800
  (exit $ac_status); }; }; then
 
17801
  ac_cv_lib_dl_dlopen=yes
 
17802
else
 
17803
  echo "$as_me: failed program was:" >&5
 
17804
sed 's/^/| /' conftest.$ac_ext >&5
 
17805
 
 
17806
ac_cv_lib_dl_dlopen=no
 
17807
fi
 
17808
rm -f conftest.err conftest.$ac_objext \
 
17809
      conftest$ac_exeext conftest.$ac_ext
 
17810
LIBS=$ac_check_lib_save_LIBS
 
17811
fi
 
17812
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17813
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17814
if test $ac_cv_lib_dl_dlopen = yes; then
 
17815
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17816
else
 
17817
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
17818
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
17819
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
17820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17821
else
 
17822
  ac_check_lib_save_LIBS=$LIBS
 
17823
LIBS="-lsvld  $LIBS"
 
17824
cat >conftest.$ac_ext <<_ACEOF
 
17825
/* confdefs.h.  */
 
17826
_ACEOF
 
17827
cat confdefs.h >>conftest.$ac_ext
 
17828
cat >>conftest.$ac_ext <<_ACEOF
 
17829
/* end confdefs.h.  */
 
17830
 
 
17831
/* Override any gcc2 internal prototype to avoid an error.  */
 
17832
#ifdef __cplusplus
 
17833
extern "C"
 
17834
#endif
 
17835
/* We use char because int might match the return type of a gcc2
 
17836
   builtin and then its argument prototype would still apply.  */
 
17837
char dlopen ();
 
17838
int
 
17839
main ()
 
17840
{
 
17841
dlopen ();
 
17842
  ;
 
17843
  return 0;
 
17844
}
 
17845
_ACEOF
 
17846
rm -f conftest.$ac_objext conftest$ac_exeext
 
17847
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17848
  (eval $ac_link) 2>conftest.er1
 
17849
  ac_status=$?
 
17850
  grep -v '^ *+' conftest.er1 >conftest.err
 
17851
  rm -f conftest.er1
 
17852
  cat conftest.err >&5
 
17853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17854
  (exit $ac_status); } &&
 
17855
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17857
  (eval $ac_try) 2>&5
 
17858
  ac_status=$?
 
17859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17860
  (exit $ac_status); }; } &&
 
17861
         { ac_try='test -s conftest$ac_exeext'
 
17862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17863
  (eval $ac_try) 2>&5
 
17864
  ac_status=$?
 
17865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17866
  (exit $ac_status); }; }; then
 
17867
  ac_cv_lib_svld_dlopen=yes
 
17868
else
 
17869
  echo "$as_me: failed program was:" >&5
 
17870
sed 's/^/| /' conftest.$ac_ext >&5
 
17871
 
 
17872
ac_cv_lib_svld_dlopen=no
 
17873
fi
 
17874
rm -f conftest.err conftest.$ac_objext \
 
17875
      conftest$ac_exeext conftest.$ac_ext
 
17876
LIBS=$ac_check_lib_save_LIBS
 
17877
fi
 
17878
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17879
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17880
if test $ac_cv_lib_svld_dlopen = yes; then
 
17881
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17882
else
 
17883
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17884
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17885
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17886
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17887
else
 
17888
  ac_check_lib_save_LIBS=$LIBS
 
17889
LIBS="-ldld  $LIBS"
 
17890
cat >conftest.$ac_ext <<_ACEOF
 
17891
/* confdefs.h.  */
 
17892
_ACEOF
 
17893
cat confdefs.h >>conftest.$ac_ext
 
17894
cat >>conftest.$ac_ext <<_ACEOF
 
17895
/* end confdefs.h.  */
 
17896
 
 
17897
/* Override any gcc2 internal prototype to avoid an error.  */
 
17898
#ifdef __cplusplus
 
17899
extern "C"
 
17900
#endif
 
17901
/* We use char because int might match the return type of a gcc2
 
17902
   builtin and then its argument prototype would still apply.  */
 
17903
char dld_link ();
 
17904
int
 
17905
main ()
 
17906
{
 
17907
dld_link ();
 
17908
  ;
 
17909
  return 0;
 
17910
}
 
17911
_ACEOF
 
17912
rm -f conftest.$ac_objext conftest$ac_exeext
 
17913
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17914
  (eval $ac_link) 2>conftest.er1
 
17915
  ac_status=$?
 
17916
  grep -v '^ *+' conftest.er1 >conftest.err
 
17917
  rm -f conftest.er1
 
17918
  cat conftest.err >&5
 
17919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17920
  (exit $ac_status); } &&
 
17921
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17923
  (eval $ac_try) 2>&5
 
17924
  ac_status=$?
 
17925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17926
  (exit $ac_status); }; } &&
 
17927
         { ac_try='test -s conftest$ac_exeext'
 
17928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17929
  (eval $ac_try) 2>&5
 
17930
  ac_status=$?
 
17931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17932
  (exit $ac_status); }; }; then
 
17933
  ac_cv_lib_dld_dld_link=yes
 
17934
else
 
17935
  echo "$as_me: failed program was:" >&5
 
17936
sed 's/^/| /' conftest.$ac_ext >&5
 
17937
 
 
17938
ac_cv_lib_dld_dld_link=no
 
17939
fi
 
17940
rm -f conftest.err conftest.$ac_objext \
 
17941
      conftest$ac_exeext conftest.$ac_ext
 
17942
LIBS=$ac_check_lib_save_LIBS
 
17943
fi
 
17944
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17945
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17946
if test $ac_cv_lib_dld_dld_link = yes; then
 
17947
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17948
fi
 
17949
 
 
17950
 
 
17951
fi
 
17952
 
 
17953
 
 
17954
fi
 
17955
 
 
17956
 
 
17957
fi
 
17958
 
 
17959
 
 
17960
fi
 
17961
 
 
17962
 
 
17963
fi
 
17964
 
 
17965
    ;;
 
17966
  esac
 
17967
 
 
17968
  if test "x$lt_cv_dlopen" != xno; then
 
17969
    enable_dlopen=yes
 
17970
  else
 
17971
    enable_dlopen=no
 
17972
  fi
 
17973
 
 
17974
  case $lt_cv_dlopen in
 
17975
  dlopen)
 
17976
    save_CPPFLAGS="$CPPFLAGS"
 
17977
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17978
 
 
17979
    save_LDFLAGS="$LDFLAGS"
 
17980
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17981
 
 
17982
    save_LIBS="$LIBS"
 
17983
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17984
 
 
17985
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17986
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
17987
if test "${lt_cv_dlopen_self+set}" = set; then
 
17988
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17989
else
 
17990
          if test "$cross_compiling" = yes; then :
 
17991
  lt_cv_dlopen_self=cross
 
17992
else
 
17993
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17994
  lt_status=$lt_dlunknown
 
17995
  cat > conftest.$ac_ext <<EOF
 
17996
#line 17996 "configure"
 
17997
#include "confdefs.h"
 
17998
 
 
17999
#if HAVE_DLFCN_H
 
18000
#include <dlfcn.h>
 
18001
#endif
 
18002
 
 
18003
#include <stdio.h>
 
18004
 
 
18005
#ifdef RTLD_GLOBAL
 
18006
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18007
#else
 
18008
#  ifdef DL_GLOBAL
 
18009
#    define LT_DLGLOBAL         DL_GLOBAL
 
18010
#  else
 
18011
#    define LT_DLGLOBAL         0
 
18012
#  endif
 
18013
#endif
 
18014
 
 
18015
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18016
   find out it does not work in some platform. */
 
18017
#ifndef LT_DLLAZY_OR_NOW
 
18018
#  ifdef RTLD_LAZY
 
18019
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18020
#  else
 
18021
#    ifdef DL_LAZY
 
18022
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18023
#    else
 
18024
#      ifdef RTLD_NOW
 
18025
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18026
#      else
 
18027
#        ifdef DL_NOW
 
18028
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18029
#        else
 
18030
#          define LT_DLLAZY_OR_NOW      0
 
18031
#        endif
 
18032
#      endif
 
18033
#    endif
 
18034
#  endif
 
18035
#endif
 
18036
 
 
18037
#ifdef __cplusplus
 
18038
extern "C" void exit (int);
 
18039
#endif
 
18040
 
 
18041
void fnord() { int i=42;}
 
18042
int main ()
 
18043
{
 
18044
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18045
  int status = $lt_dlunknown;
 
18046
 
 
18047
  if (self)
 
18048
    {
 
18049
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18050
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18051
      /* dlclose (self); */
 
18052
    }
 
18053
 
 
18054
    exit (status);
 
18055
}
 
18056
EOF
 
18057
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18058
  (eval $ac_link) 2>&5
 
18059
  ac_status=$?
 
18060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18061
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18062
    (./conftest; exit; ) 2>/dev/null
 
18063
    lt_status=$?
 
18064
    case x$lt_status in
 
18065
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18066
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18067
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18068
    esac
 
18069
  else :
 
18070
    # compilation failed
 
18071
    lt_cv_dlopen_self=no
 
18072
  fi
 
18073
fi
 
18074
rm -fr conftest*
 
18075
 
 
18076
 
 
18077
fi
 
18078
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18079
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18080
 
 
18081
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18082
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18083
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18084
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18085
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18087
else
 
18088
          if test "$cross_compiling" = yes; then :
 
18089
  lt_cv_dlopen_self_static=cross
 
18090
else
 
18091
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18092
  lt_status=$lt_dlunknown
 
18093
  cat > conftest.$ac_ext <<EOF
 
18094
#line 18094 "configure"
 
18095
#include "confdefs.h"
 
18096
 
 
18097
#if HAVE_DLFCN_H
 
18098
#include <dlfcn.h>
 
18099
#endif
 
18100
 
 
18101
#include <stdio.h>
 
18102
 
 
18103
#ifdef RTLD_GLOBAL
 
18104
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18105
#else
 
18106
#  ifdef DL_GLOBAL
 
18107
#    define LT_DLGLOBAL         DL_GLOBAL
 
18108
#  else
 
18109
#    define LT_DLGLOBAL         0
 
18110
#  endif
 
18111
#endif
 
18112
 
 
18113
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18114
   find out it does not work in some platform. */
 
18115
#ifndef LT_DLLAZY_OR_NOW
 
18116
#  ifdef RTLD_LAZY
 
18117
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18118
#  else
 
18119
#    ifdef DL_LAZY
 
18120
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18121
#    else
 
18122
#      ifdef RTLD_NOW
 
18123
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18124
#      else
 
18125
#        ifdef DL_NOW
 
18126
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18127
#        else
 
18128
#          define LT_DLLAZY_OR_NOW      0
 
18129
#        endif
 
18130
#      endif
 
18131
#    endif
 
18132
#  endif
 
18133
#endif
 
18134
 
 
18135
#ifdef __cplusplus
 
18136
extern "C" void exit (int);
 
18137
#endif
 
18138
 
 
18139
void fnord() { int i=42;}
 
18140
int main ()
 
18141
{
 
18142
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18143
  int status = $lt_dlunknown;
 
18144
 
 
18145
  if (self)
 
18146
    {
 
18147
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18148
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18149
      /* dlclose (self); */
 
18150
    }
 
18151
 
 
18152
    exit (status);
 
18153
}
 
18154
EOF
 
18155
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18156
  (eval $ac_link) 2>&5
 
18157
  ac_status=$?
 
18158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18159
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18160
    (./conftest; exit; ) 2>/dev/null
 
18161
    lt_status=$?
 
18162
    case x$lt_status in
 
18163
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18164
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18165
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18166
    esac
 
18167
  else :
 
18168
    # compilation failed
 
18169
    lt_cv_dlopen_self_static=no
 
18170
  fi
 
18171
fi
 
18172
rm -fr conftest*
 
18173
 
 
18174
 
 
18175
fi
 
18176
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18177
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18178
    fi
 
18179
 
 
18180
    CPPFLAGS="$save_CPPFLAGS"
 
18181
    LDFLAGS="$save_LDFLAGS"
 
18182
    LIBS="$save_LIBS"
 
18183
    ;;
 
18184
  esac
 
18185
 
 
18186
  case $lt_cv_dlopen_self in
 
18187
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18188
  *) enable_dlopen_self=unknown ;;
 
18189
  esac
 
18190
 
 
18191
  case $lt_cv_dlopen_self_static in
 
18192
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18193
  *) enable_dlopen_self_static=unknown ;;
 
18194
  esac
 
18195
fi
 
18196
 
 
18197
 
 
18198
# The else clause should only fire when bootstrapping the
 
18199
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18200
# with your package, and you will get complaints that there are
 
18201
# no rules to generate ltmain.sh.
 
18202
if test -f "$ltmain"; then
 
18203
  # See if we are running on zsh, and set the options which allow our commands through
 
18204
  # without removal of \ escapes.
 
18205
  if test -n "${ZSH_VERSION+set}" ; then
 
18206
    setopt NO_GLOB_SUBST
 
18207
  fi
 
18208
  # Now quote all the things that may contain metacharacters while being
 
18209
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18210
  # variables and quote the copies for generation of the libtool script.
 
18211
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18212
    SED SHELL STRIP \
 
18213
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18214
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18215
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18216
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18217
    lt_cv_sys_global_symbol_to_c_name_address \
 
18218
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18219
    old_postinstall_cmds old_postuninstall_cmds \
 
18220
    compiler_GCJ \
 
18221
    CC_GCJ \
 
18222
    LD_GCJ \
 
18223
    lt_prog_compiler_wl_GCJ \
 
18224
    lt_prog_compiler_pic_GCJ \
 
18225
    lt_prog_compiler_static_GCJ \
 
18226
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18227
    export_dynamic_flag_spec_GCJ \
 
18228
    thread_safe_flag_spec_GCJ \
 
18229
    whole_archive_flag_spec_GCJ \
 
18230
    enable_shared_with_static_runtimes_GCJ \
 
18231
    old_archive_cmds_GCJ \
 
18232
    old_archive_from_new_cmds_GCJ \
 
18233
    predep_objects_GCJ \
 
18234
    postdep_objects_GCJ \
 
18235
    predeps_GCJ \
 
18236
    postdeps_GCJ \
 
18237
    compiler_lib_search_path_GCJ \
 
18238
    archive_cmds_GCJ \
 
18239
    archive_expsym_cmds_GCJ \
 
18240
    postinstall_cmds_GCJ \
 
18241
    postuninstall_cmds_GCJ \
 
18242
    old_archive_from_expsyms_cmds_GCJ \
 
18243
    allow_undefined_flag_GCJ \
 
18244
    no_undefined_flag_GCJ \
 
18245
    export_symbols_cmds_GCJ \
 
18246
    hardcode_libdir_flag_spec_GCJ \
 
18247
    hardcode_libdir_flag_spec_ld_GCJ \
 
18248
    hardcode_libdir_separator_GCJ \
 
18249
    hardcode_automatic_GCJ \
 
18250
    module_cmds_GCJ \
 
18251
    module_expsym_cmds_GCJ \
 
18252
    lt_cv_prog_compiler_c_o_GCJ \
 
18253
    exclude_expsyms_GCJ \
 
18254
    include_expsyms_GCJ; do
 
18255
 
 
18256
    case $var in
 
18257
    old_archive_cmds_GCJ | \
 
18258
    old_archive_from_new_cmds_GCJ | \
 
18259
    archive_cmds_GCJ | \
 
18260
    archive_expsym_cmds_GCJ | \
 
18261
    module_cmds_GCJ | \
 
18262
    module_expsym_cmds_GCJ | \
 
18263
    old_archive_from_expsyms_cmds_GCJ | \
 
18264
    export_symbols_cmds_GCJ | \
 
18265
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18266
    postinstall_cmds | postuninstall_cmds | \
 
18267
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18268
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18269
      # Double-quote double-evaled strings.
 
18270
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18271
      ;;
 
18272
    *)
 
18273
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18274
      ;;
 
18275
    esac
 
18276
  done
 
18277
 
 
18278
  case $lt_echo in
 
18279
  *'\$0 --fallback-echo"')
 
18280
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18281
    ;;
 
18282
  esac
 
18283
 
 
18284
cfgfile="$ofile"
 
18285
 
 
18286
  cat <<__EOF__ >> "$cfgfile"
 
18287
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18288
 
 
18289
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18290
 
 
18291
# Shell to use when invoking shell scripts.
 
18292
SHELL=$lt_SHELL
 
18293
 
 
18294
# Whether or not to build shared libraries.
 
18295
build_libtool_libs=$enable_shared
 
18296
 
 
18297
# Whether or not to build static libraries.
 
18298
build_old_libs=$enable_static
 
18299
 
 
18300
# Whether or not to add -lc for building shared libraries.
 
18301
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18302
 
 
18303
# Whether or not to disallow shared libs when runtime libs are static
 
18304
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18305
 
 
18306
# Whether or not to optimize for fast installation.
 
18307
fast_install=$enable_fast_install
 
18308
 
 
18309
# The host system.
 
18310
host_alias=$host_alias
 
18311
host=$host
 
18312
 
 
18313
# An echo program that does not interpret backslashes.
 
18314
echo=$lt_echo
 
18315
 
 
18316
# The archiver.
 
18317
AR=$lt_AR
 
18318
AR_FLAGS=$lt_AR_FLAGS
 
18319
 
 
18320
# A C compiler.
 
18321
LTCC=$lt_LTCC
 
18322
 
 
18323
# A language-specific compiler.
 
18324
CC=$lt_compiler_GCJ
 
18325
 
 
18326
# Is the compiler the GNU C compiler?
 
18327
with_gcc=$GCC_GCJ
 
18328
 
 
18329
# An ERE matcher.
 
18330
EGREP=$lt_EGREP
 
18331
 
 
18332
# The linker used to build libraries.
 
18333
LD=$lt_LD_GCJ
 
18334
 
 
18335
# Whether we need hard or soft links.
 
18336
LN_S=$lt_LN_S
 
18337
 
 
18338
# A BSD-compatible nm program.
 
18339
NM=$lt_NM
 
18340
 
 
18341
# A symbol stripping program
 
18342
STRIP=$lt_STRIP
 
18343
 
 
18344
# Used to examine libraries when file_magic_cmd begins "file"
 
18345
MAGIC_CMD=$MAGIC_CMD
 
18346
 
 
18347
# Used on cygwin: DLL creation program.
 
18348
DLLTOOL="$DLLTOOL"
 
18349
 
 
18350
# Used on cygwin: object dumper.
 
18351
OBJDUMP="$OBJDUMP"
 
18352
 
 
18353
# Used on cygwin: assembler.
 
18354
AS="$AS"
 
18355
 
 
18356
# The name of the directory that contains temporary libtool files.
 
18357
objdir=$objdir
 
18358
 
 
18359
# How to create reloadable object files.
 
18360
reload_flag=$lt_reload_flag
 
18361
reload_cmds=$lt_reload_cmds
 
18362
 
 
18363
# How to pass a linker flag through the compiler.
 
18364
wl=$lt_lt_prog_compiler_wl_GCJ
 
18365
 
 
18366
# Object file suffix (normally "o").
 
18367
objext="$ac_objext"
 
18368
 
 
18369
# Old archive suffix (normally "a").
 
18370
libext="$libext"
 
18371
 
 
18372
# Shared library suffix (normally ".so").
 
18373
shrext_cmds='$shrext_cmds'
 
18374
 
 
18375
# Executable file suffix (normally "").
 
18376
exeext="$exeext"
 
18377
 
 
18378
# Additional compiler flags for building library objects.
 
18379
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18380
pic_mode=$pic_mode
 
18381
 
 
18382
# What is the maximum length of a command?
 
18383
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18384
 
 
18385
# Does compiler simultaneously support -c and -o options?
 
18386
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18387
 
 
18388
# Must we lock files when doing compilation ?
 
18389
need_locks=$lt_need_locks
 
18390
 
 
18391
# Do we need the lib prefix for modules?
 
18392
need_lib_prefix=$need_lib_prefix
 
18393
 
 
18394
# Do we need a version for libraries?
 
18395
need_version=$need_version
 
18396
 
 
18397
# Whether dlopen is supported.
 
18398
dlopen_support=$enable_dlopen
 
18399
 
 
18400
# Whether dlopen of programs is supported.
 
18401
dlopen_self=$enable_dlopen_self
 
18402
 
 
18403
# Whether dlopen of statically linked programs is supported.
 
18404
dlopen_self_static=$enable_dlopen_self_static
 
18405
 
 
18406
# Compiler flag to prevent dynamic linking.
 
18407
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18408
 
 
18409
# Compiler flag to turn off builtin functions.
 
18410
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18411
 
 
18412
# Compiler flag to allow reflexive dlopens.
 
18413
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18414
 
 
18415
# Compiler flag to generate shared objects directly from archives.
 
18416
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18417
 
 
18418
# Compiler flag to generate thread-safe objects.
 
18419
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18420
 
 
18421
# Library versioning type.
 
18422
version_type=$version_type
 
18423
 
 
18424
# Format of library name prefix.
 
18425
libname_spec=$lt_libname_spec
 
18426
 
 
18427
# List of archive names.  First name is the real one, the rest are links.
 
18428
# The last name is the one that the linker finds with -lNAME.
 
18429
library_names_spec=$lt_library_names_spec
 
18430
 
 
18431
# The coded name of the library, if different from the real name.
 
18432
soname_spec=$lt_soname_spec
 
18433
 
 
18434
# Commands used to build and install an old-style archive.
 
18435
RANLIB=$lt_RANLIB
 
18436
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18437
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18438
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18439
 
 
18440
# Create an old-style archive from a shared archive.
 
18441
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18442
 
 
18443
# Create a temporary old-style archive to link instead of a shared archive.
 
18444
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18445
 
 
18446
# Commands used to build and install a shared archive.
 
18447
archive_cmds=$lt_archive_cmds_GCJ
 
18448
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18449
postinstall_cmds=$lt_postinstall_cmds
 
18450
postuninstall_cmds=$lt_postuninstall_cmds
 
18451
 
 
18452
# Commands used to build a loadable module (assumed same as above if empty)
 
18453
module_cmds=$lt_module_cmds_GCJ
 
18454
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18455
 
 
18456
# Commands to strip libraries.
 
18457
old_striplib=$lt_old_striplib
 
18458
striplib=$lt_striplib
 
18459
 
 
18460
# Dependencies to place before the objects being linked to create a
 
18461
# shared library.
 
18462
predep_objects=$lt_predep_objects_GCJ
 
18463
 
 
18464
# Dependencies to place after the objects being linked to create a
 
18465
# shared library.
 
18466
postdep_objects=$lt_postdep_objects_GCJ
 
18467
 
 
18468
# Dependencies to place before the objects being linked to create a
 
18469
# shared library.
 
18470
predeps=$lt_predeps_GCJ
 
18471
 
 
18472
# Dependencies to place after the objects being linked to create a
 
18473
# shared library.
 
18474
postdeps=$lt_postdeps_GCJ
 
18475
 
 
18476
# The library search path used internally by the compiler when linking
 
18477
# a shared library.
 
18478
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18479
 
 
18480
# Method to check whether dependent libraries are shared objects.
 
18481
deplibs_check_method=$lt_deplibs_check_method
 
18482
 
 
18483
# Command to use when deplibs_check_method == file_magic.
 
18484
file_magic_cmd=$lt_file_magic_cmd
 
18485
 
 
18486
# Flag that allows shared libraries with undefined symbols to be built.
 
18487
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18488
 
 
18489
# Flag that forces no undefined symbols.
 
18490
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18491
 
 
18492
# Commands used to finish a libtool library installation in a directory.
 
18493
finish_cmds=$lt_finish_cmds
 
18494
 
 
18495
# Same as above, but a single script fragment to be evaled but not shown.
 
18496
finish_eval=$lt_finish_eval
 
18497
 
 
18498
# Take the output of nm and produce a listing of raw symbols and C names.
 
18499
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18500
 
 
18501
# Transform the output of nm in a proper C declaration
 
18502
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18503
 
 
18504
# Transform the output of nm in a C name address pair
 
18505
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18506
 
 
18507
# This is the shared library runtime path variable.
 
18508
runpath_var=$runpath_var
 
18509
 
 
18510
# This is the shared library path variable.
 
18511
shlibpath_var=$shlibpath_var
 
18512
 
 
18513
# Is shlibpath searched before the hard-coded library search path?
 
18514
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18515
 
 
18516
# How to hardcode a shared library path into an executable.
 
18517
hardcode_action=$hardcode_action_GCJ
 
18518
 
 
18519
# Whether we should hardcode library paths into libraries.
 
18520
hardcode_into_libs=$hardcode_into_libs
 
18521
 
 
18522
# Flag to hardcode \$libdir into a binary during linking.
 
18523
# This must work even if \$libdir does not exist.
 
18524
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18525
 
 
18526
# If ld is used when linking, flag to hardcode \$libdir into
 
18527
# a binary during linking. This must work even if \$libdir does
 
18528
# not exist.
 
18529
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18530
 
 
18531
# Whether we need a single -rpath flag with a separated argument.
 
18532
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18533
 
 
18534
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18535
# resulting binary.
 
18536
hardcode_direct=$hardcode_direct_GCJ
 
18537
 
 
18538
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18539
# resulting binary.
 
18540
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18541
 
 
18542
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18543
# the resulting binary.
 
18544
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18545
 
 
18546
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18547
# and all subsequent libraries and executables linked against it.
 
18548
hardcode_automatic=$hardcode_automatic_GCJ
 
18549
 
 
18550
# Variables whose values should be saved in libtool wrapper scripts and
 
18551
# restored at relink time.
 
18552
variables_saved_for_relink="$variables_saved_for_relink"
 
18553
 
 
18554
# Whether libtool must link a program against all its dependency libraries.
 
18555
link_all_deplibs=$link_all_deplibs_GCJ
 
18556
 
 
18557
# Compile-time system search path for libraries
 
18558
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18559
 
 
18560
# Run-time system search path for libraries
 
18561
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18562
 
 
18563
# Fix the shell variable \$srcfile for the compiler.
 
18564
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18565
 
 
18566
# Set to yes if exported symbols are required.
 
18567
always_export_symbols=$always_export_symbols_GCJ
 
18568
 
 
18569
# The commands to list exported symbols.
 
18570
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18571
 
 
18572
# The commands to extract the exported symbol list from a shared archive.
 
18573
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18574
 
 
18575
# Symbols that should not be listed in the preloaded symbols.
 
18576
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18577
 
 
18578
# Symbols that must always be exported.
 
18579
include_expsyms=$lt_include_expsyms_GCJ
 
18580
 
 
18581
# ### END LIBTOOL TAG CONFIG: $tagname
 
18582
 
 
18583
__EOF__
 
18584
 
 
18585
 
 
18586
else
 
18587
  # If there is no Makefile yet, we rely on a make rule to execute
 
18588
  # `config.status --recheck' to rerun these tests and create the
 
18589
  # libtool script then.
 
18590
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18591
  if test -f "$ltmain_in"; then
 
18592
    test -f Makefile && make "$ltmain"
 
18593
  fi
 
18594
fi
 
18595
 
 
18596
 
 
18597
ac_ext=c
 
18598
ac_cpp='$CPP $CPPFLAGS'
 
18599
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18600
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18601
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18602
 
 
18603
CC="$lt_save_CC"
 
18604
 
 
18605
        else
 
18606
          tagname=""
 
18607
        fi
 
18608
        ;;
 
18609
 
 
18610
      RC)
 
18611
 
 
18612
 
 
18613
 
 
18614
# Source file extension for RC test sources.
 
18615
ac_ext=rc
 
18616
 
 
18617
# Object file extension for compiled RC test sources.
 
18618
objext=o
 
18619
objext_RC=$objext
 
18620
 
 
18621
# Code to be used in simple compile tests
 
18622
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18623
 
 
18624
# Code to be used in simple link tests
 
18625
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18626
 
 
18627
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18628
 
 
18629
# If no C compiler was specified, use CC.
 
18630
LTCC=${LTCC-"$CC"}
 
18631
 
 
18632
# Allow CC to be a program name with arguments.
 
18633
compiler=$CC
 
18634
 
 
18635
 
 
18636
# Allow CC to be a program name with arguments.
 
18637
lt_save_CC="$CC"
 
18638
CC=${RC-"windres"}
 
18639
compiler=$CC
 
18640
compiler_RC=$CC
 
18641
lt_cv_prog_compiler_c_o_RC=yes
 
18642
 
 
18643
# The else clause should only fire when bootstrapping the
 
18644
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18645
# with your package, and you will get complaints that there are
 
18646
# no rules to generate ltmain.sh.
 
18647
if test -f "$ltmain"; then
 
18648
  # See if we are running on zsh, and set the options which allow our commands through
 
18649
  # without removal of \ escapes.
 
18650
  if test -n "${ZSH_VERSION+set}" ; then
 
18651
    setopt NO_GLOB_SUBST
 
18652
  fi
 
18653
  # Now quote all the things that may contain metacharacters while being
 
18654
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18655
  # variables and quote the copies for generation of the libtool script.
 
18656
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18657
    SED SHELL STRIP \
 
18658
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18659
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18660
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18661
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18662
    lt_cv_sys_global_symbol_to_c_name_address \
 
18663
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18664
    old_postinstall_cmds old_postuninstall_cmds \
 
18665
    compiler_RC \
 
18666
    CC_RC \
 
18667
    LD_RC \
 
18668
    lt_prog_compiler_wl_RC \
 
18669
    lt_prog_compiler_pic_RC \
 
18670
    lt_prog_compiler_static_RC \
 
18671
    lt_prog_compiler_no_builtin_flag_RC \
 
18672
    export_dynamic_flag_spec_RC \
 
18673
    thread_safe_flag_spec_RC \
 
18674
    whole_archive_flag_spec_RC \
 
18675
    enable_shared_with_static_runtimes_RC \
 
18676
    old_archive_cmds_RC \
 
18677
    old_archive_from_new_cmds_RC \
 
18678
    predep_objects_RC \
 
18679
    postdep_objects_RC \
 
18680
    predeps_RC \
 
18681
    postdeps_RC \
 
18682
    compiler_lib_search_path_RC \
 
18683
    archive_cmds_RC \
 
18684
    archive_expsym_cmds_RC \
 
18685
    postinstall_cmds_RC \
 
18686
    postuninstall_cmds_RC \
 
18687
    old_archive_from_expsyms_cmds_RC \
 
18688
    allow_undefined_flag_RC \
 
18689
    no_undefined_flag_RC \
 
18690
    export_symbols_cmds_RC \
 
18691
    hardcode_libdir_flag_spec_RC \
 
18692
    hardcode_libdir_flag_spec_ld_RC \
 
18693
    hardcode_libdir_separator_RC \
 
18694
    hardcode_automatic_RC \
 
18695
    module_cmds_RC \
 
18696
    module_expsym_cmds_RC \
 
18697
    lt_cv_prog_compiler_c_o_RC \
 
18698
    exclude_expsyms_RC \
 
18699
    include_expsyms_RC; do
 
18700
 
 
18701
    case $var in
 
18702
    old_archive_cmds_RC | \
 
18703
    old_archive_from_new_cmds_RC | \
 
18704
    archive_cmds_RC | \
 
18705
    archive_expsym_cmds_RC | \
 
18706
    module_cmds_RC | \
 
18707
    module_expsym_cmds_RC | \
 
18708
    old_archive_from_expsyms_cmds_RC | \
 
18709
    export_symbols_cmds_RC | \
 
18710
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18711
    postinstall_cmds | postuninstall_cmds | \
 
18712
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18713
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18714
      # Double-quote double-evaled strings.
 
18715
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18716
      ;;
 
18717
    *)
 
18718
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18719
      ;;
 
18720
    esac
 
18721
  done
 
18722
 
 
18723
  case $lt_echo in
 
18724
  *'\$0 --fallback-echo"')
 
18725
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18726
    ;;
 
18727
  esac
 
18728
 
 
18729
cfgfile="$ofile"
 
18730
 
 
18731
  cat <<__EOF__ >> "$cfgfile"
 
18732
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18733
 
 
18734
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18735
 
 
18736
# Shell to use when invoking shell scripts.
 
18737
SHELL=$lt_SHELL
 
18738
 
 
18739
# Whether or not to build shared libraries.
 
18740
build_libtool_libs=$enable_shared
 
18741
 
 
18742
# Whether or not to build static libraries.
 
18743
build_old_libs=$enable_static
 
18744
 
 
18745
# Whether or not to add -lc for building shared libraries.
 
18746
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18747
 
 
18748
# Whether or not to disallow shared libs when runtime libs are static
 
18749
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18750
 
 
18751
# Whether or not to optimize for fast installation.
 
18752
fast_install=$enable_fast_install
 
18753
 
 
18754
# The host system.
 
18755
host_alias=$host_alias
 
18756
host=$host
 
18757
 
 
18758
# An echo program that does not interpret backslashes.
 
18759
echo=$lt_echo
 
18760
 
 
18761
# The archiver.
 
18762
AR=$lt_AR
 
18763
AR_FLAGS=$lt_AR_FLAGS
 
18764
 
 
18765
# A C compiler.
 
18766
LTCC=$lt_LTCC
 
18767
 
 
18768
# A language-specific compiler.
 
18769
CC=$lt_compiler_RC
 
18770
 
 
18771
# Is the compiler the GNU C compiler?
 
18772
with_gcc=$GCC_RC
 
18773
 
 
18774
# An ERE matcher.
 
18775
EGREP=$lt_EGREP
 
18776
 
 
18777
# The linker used to build libraries.
 
18778
LD=$lt_LD_RC
 
18779
 
 
18780
# Whether we need hard or soft links.
 
18781
LN_S=$lt_LN_S
 
18782
 
 
18783
# A BSD-compatible nm program.
 
18784
NM=$lt_NM
 
18785
 
 
18786
# A symbol stripping program
 
18787
STRIP=$lt_STRIP
 
18788
 
 
18789
# Used to examine libraries when file_magic_cmd begins "file"
 
18790
MAGIC_CMD=$MAGIC_CMD
 
18791
 
 
18792
# Used on cygwin: DLL creation program.
 
18793
DLLTOOL="$DLLTOOL"
 
18794
 
 
18795
# Used on cygwin: object dumper.
 
18796
OBJDUMP="$OBJDUMP"
 
18797
 
 
18798
# Used on cygwin: assembler.
 
18799
AS="$AS"
 
18800
 
 
18801
# The name of the directory that contains temporary libtool files.
 
18802
objdir=$objdir
 
18803
 
 
18804
# How to create reloadable object files.
 
18805
reload_flag=$lt_reload_flag
 
18806
reload_cmds=$lt_reload_cmds
 
18807
 
 
18808
# How to pass a linker flag through the compiler.
 
18809
wl=$lt_lt_prog_compiler_wl_RC
 
18810
 
 
18811
# Object file suffix (normally "o").
 
18812
objext="$ac_objext"
 
18813
 
 
18814
# Old archive suffix (normally "a").
 
18815
libext="$libext"
 
18816
 
 
18817
# Shared library suffix (normally ".so").
 
18818
shrext_cmds='$shrext_cmds'
 
18819
 
 
18820
# Executable file suffix (normally "").
 
18821
exeext="$exeext"
 
18822
 
 
18823
# Additional compiler flags for building library objects.
 
18824
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18825
pic_mode=$pic_mode
 
18826
 
 
18827
# What is the maximum length of a command?
 
18828
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18829
 
 
18830
# Does compiler simultaneously support -c and -o options?
 
18831
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18832
 
 
18833
# Must we lock files when doing compilation ?
 
18834
need_locks=$lt_need_locks
 
18835
 
 
18836
# Do we need the lib prefix for modules?
 
18837
need_lib_prefix=$need_lib_prefix
 
18838
 
 
18839
# Do we need a version for libraries?
 
18840
need_version=$need_version
 
18841
 
 
18842
# Whether dlopen is supported.
 
18843
dlopen_support=$enable_dlopen
 
18844
 
 
18845
# Whether dlopen of programs is supported.
 
18846
dlopen_self=$enable_dlopen_self
 
18847
 
 
18848
# Whether dlopen of statically linked programs is supported.
 
18849
dlopen_self_static=$enable_dlopen_self_static
 
18850
 
 
18851
# Compiler flag to prevent dynamic linking.
 
18852
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18853
 
 
18854
# Compiler flag to turn off builtin functions.
 
18855
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18856
 
 
18857
# Compiler flag to allow reflexive dlopens.
 
18858
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18859
 
 
18860
# Compiler flag to generate shared objects directly from archives.
 
18861
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18862
 
 
18863
# Compiler flag to generate thread-safe objects.
 
18864
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18865
 
 
18866
# Library versioning type.
 
18867
version_type=$version_type
 
18868
 
 
18869
# Format of library name prefix.
 
18870
libname_spec=$lt_libname_spec
 
18871
 
 
18872
# List of archive names.  First name is the real one, the rest are links.
 
18873
# The last name is the one that the linker finds with -lNAME.
 
18874
library_names_spec=$lt_library_names_spec
 
18875
 
 
18876
# The coded name of the library, if different from the real name.
 
18877
soname_spec=$lt_soname_spec
 
18878
 
 
18879
# Commands used to build and install an old-style archive.
 
18880
RANLIB=$lt_RANLIB
 
18881
old_archive_cmds=$lt_old_archive_cmds_RC
 
18882
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18883
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18884
 
 
18885
# Create an old-style archive from a shared archive.
 
18886
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18887
 
 
18888
# Create a temporary old-style archive to link instead of a shared archive.
 
18889
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18890
 
 
18891
# Commands used to build and install a shared archive.
 
18892
archive_cmds=$lt_archive_cmds_RC
 
18893
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18894
postinstall_cmds=$lt_postinstall_cmds
 
18895
postuninstall_cmds=$lt_postuninstall_cmds
 
18896
 
 
18897
# Commands used to build a loadable module (assumed same as above if empty)
 
18898
module_cmds=$lt_module_cmds_RC
 
18899
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18900
 
 
18901
# Commands to strip libraries.
 
18902
old_striplib=$lt_old_striplib
 
18903
striplib=$lt_striplib
 
18904
 
 
18905
# Dependencies to place before the objects being linked to create a
 
18906
# shared library.
 
18907
predep_objects=$lt_predep_objects_RC
 
18908
 
 
18909
# Dependencies to place after the objects being linked to create a
 
18910
# shared library.
 
18911
postdep_objects=$lt_postdep_objects_RC
 
18912
 
 
18913
# Dependencies to place before the objects being linked to create a
 
18914
# shared library.
 
18915
predeps=$lt_predeps_RC
 
18916
 
 
18917
# Dependencies to place after the objects being linked to create a
 
18918
# shared library.
 
18919
postdeps=$lt_postdeps_RC
 
18920
 
 
18921
# The library search path used internally by the compiler when linking
 
18922
# a shared library.
 
18923
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18924
 
 
18925
# Method to check whether dependent libraries are shared objects.
 
18926
deplibs_check_method=$lt_deplibs_check_method
 
18927
 
 
18928
# Command to use when deplibs_check_method == file_magic.
 
18929
file_magic_cmd=$lt_file_magic_cmd
 
18930
 
 
18931
# Flag that allows shared libraries with undefined symbols to be built.
 
18932
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18933
 
 
18934
# Flag that forces no undefined symbols.
 
18935
no_undefined_flag=$lt_no_undefined_flag_RC
 
18936
 
 
18937
# Commands used to finish a libtool library installation in a directory.
 
18938
finish_cmds=$lt_finish_cmds
 
18939
 
 
18940
# Same as above, but a single script fragment to be evaled but not shown.
 
18941
finish_eval=$lt_finish_eval
 
18942
 
 
18943
# Take the output of nm and produce a listing of raw symbols and C names.
 
18944
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18945
 
 
18946
# Transform the output of nm in a proper C declaration
 
18947
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18948
 
 
18949
# Transform the output of nm in a C name address pair
 
18950
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18951
 
 
18952
# This is the shared library runtime path variable.
 
18953
runpath_var=$runpath_var
 
18954
 
 
18955
# This is the shared library path variable.
 
18956
shlibpath_var=$shlibpath_var
 
18957
 
 
18958
# Is shlibpath searched before the hard-coded library search path?
 
18959
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18960
 
 
18961
# How to hardcode a shared library path into an executable.
 
18962
hardcode_action=$hardcode_action_RC
 
18963
 
 
18964
# Whether we should hardcode library paths into libraries.
 
18965
hardcode_into_libs=$hardcode_into_libs
 
18966
 
 
18967
# Flag to hardcode \$libdir into a binary during linking.
 
18968
# This must work even if \$libdir does not exist.
 
18969
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18970
 
 
18971
# If ld is used when linking, flag to hardcode \$libdir into
 
18972
# a binary during linking. This must work even if \$libdir does
 
18973
# not exist.
 
18974
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18975
 
 
18976
# Whether we need a single -rpath flag with a separated argument.
 
18977
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18978
 
 
18979
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18980
# resulting binary.
 
18981
hardcode_direct=$hardcode_direct_RC
 
18982
 
 
18983
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18984
# resulting binary.
 
18985
hardcode_minus_L=$hardcode_minus_L_RC
 
18986
 
 
18987
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18988
# the resulting binary.
 
18989
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18990
 
 
18991
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18992
# and all subsequent libraries and executables linked against it.
 
18993
hardcode_automatic=$hardcode_automatic_RC
 
18994
 
 
18995
# Variables whose values should be saved in libtool wrapper scripts and
 
18996
# restored at relink time.
 
18997
variables_saved_for_relink="$variables_saved_for_relink"
 
18998
 
 
18999
# Whether libtool must link a program against all its dependency libraries.
 
19000
link_all_deplibs=$link_all_deplibs_RC
 
19001
 
 
19002
# Compile-time system search path for libraries
 
19003
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19004
 
 
19005
# Run-time system search path for libraries
 
19006
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19007
 
 
19008
# Fix the shell variable \$srcfile for the compiler.
 
19009
fix_srcfile_path="$fix_srcfile_path_RC"
 
19010
 
 
19011
# Set to yes if exported symbols are required.
 
19012
always_export_symbols=$always_export_symbols_RC
 
19013
 
 
19014
# The commands to list exported symbols.
 
19015
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19016
 
 
19017
# The commands to extract the exported symbol list from a shared archive.
 
19018
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19019
 
 
19020
# Symbols that should not be listed in the preloaded symbols.
 
19021
exclude_expsyms=$lt_exclude_expsyms_RC
 
19022
 
 
19023
# Symbols that must always be exported.
 
19024
include_expsyms=$lt_include_expsyms_RC
 
19025
 
 
19026
# ### END LIBTOOL TAG CONFIG: $tagname
 
19027
 
 
19028
__EOF__
 
19029
 
 
19030
 
 
19031
else
 
19032
  # If there is no Makefile yet, we rely on a make rule to execute
 
19033
  # `config.status --recheck' to rerun these tests and create the
 
19034
  # libtool script then.
 
19035
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19036
  if test -f "$ltmain_in"; then
 
19037
    test -f Makefile && make "$ltmain"
 
19038
  fi
 
19039
fi
 
19040
 
 
19041
 
 
19042
ac_ext=c
 
19043
ac_cpp='$CPP $CPPFLAGS'
 
19044
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19045
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19046
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19047
 
 
19048
CC="$lt_save_CC"
 
19049
 
 
19050
        ;;
 
19051
 
 
19052
      *)
 
19053
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19054
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19055
   { (exit 1); exit 1; }; }
 
19056
        ;;
 
19057
      esac
 
19058
 
 
19059
      # Append the new tag name to the list of available tags.
 
19060
      if test -n "$tagname" ; then
 
19061
      available_tags="$available_tags $tagname"
 
19062
    fi
 
19063
    fi
 
19064
  done
 
19065
  IFS="$lt_save_ifs"
 
19066
 
 
19067
  # Now substitute the updated list of available tags.
 
19068
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19069
    mv "${ofile}T" "$ofile"
 
19070
    chmod +x "$ofile"
 
19071
  else
 
19072
    rm -f "${ofile}T"
 
19073
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19074
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19075
   { (exit 1); exit 1; }; }
 
19076
  fi
 
19077
fi
 
19078
 
 
19079
 
 
19080
 
 
19081
# This can be used to rebuild libtool when needed
 
19082
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19083
 
 
19084
# Always use our own libtool.
 
19085
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19086
 
 
19087
# Prevent multiple expansion
 
19088
 
 
19089
 
 
19090
 
 
19091
 
 
19092
 
 
19093
 
 
19094
 
 
19095
 
 
19096
 
 
19097
 
 
19098
 
 
19099
 
 
19100
 
 
19101
 
 
19102
 
 
19103
 
 
19104
 
 
19105
 
 
19106
 
 
19107
 
 
19108
ac_ext=c
 
19109
ac_cpp='$CPP $CPPFLAGS'
 
19110
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19111
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19112
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19113
if test -n "$ac_tool_prefix"; then
 
19114
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
19115
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
19116
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19117
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19118
if test "${ac_cv_prog_CC+set}" = set; then
 
19119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19120
else
 
19121
  if test -n "$CC"; then
 
19122
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19123
else
 
19124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19125
for as_dir in $PATH
 
19126
do
 
19127
  IFS=$as_save_IFS
 
19128
  test -z "$as_dir" && as_dir=.
 
19129
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19130
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19131
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
19132
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19133
    break 2
 
19134
  fi
 
19135
done
 
19136
done
 
19137
 
 
19138
fi
 
19139
fi
 
19140
CC=$ac_cv_prog_CC
 
19141
if test -n "$CC"; then
 
19142
  echo "$as_me:$LINENO: result: $CC" >&5
 
19143
echo "${ECHO_T}$CC" >&6
 
19144
else
 
19145
  echo "$as_me:$LINENO: result: no" >&5
 
19146
echo "${ECHO_T}no" >&6
 
19147
fi
 
19148
 
 
19149
fi
 
19150
if test -z "$ac_cv_prog_CC"; then
 
19151
  ac_ct_CC=$CC
 
19152
  # Extract the first word of "gcc", so it can be a program name with args.
 
19153
set dummy gcc; ac_word=$2
 
19154
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19155
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19156
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19158
else
 
19159
  if test -n "$ac_ct_CC"; then
 
19160
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19161
else
 
19162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19163
for as_dir in $PATH
 
19164
do
 
19165
  IFS=$as_save_IFS
 
19166
  test -z "$as_dir" && as_dir=.
 
19167
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19168
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19169
    ac_cv_prog_ac_ct_CC="gcc"
 
19170
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19171
    break 2
 
19172
  fi
 
19173
done
 
19174
done
 
19175
 
 
19176
fi
 
19177
fi
 
19178
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19179
if test -n "$ac_ct_CC"; then
 
19180
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19181
echo "${ECHO_T}$ac_ct_CC" >&6
 
19182
else
 
19183
  echo "$as_me:$LINENO: result: no" >&5
 
19184
echo "${ECHO_T}no" >&6
 
19185
fi
 
19186
 
 
19187
  CC=$ac_ct_CC
 
19188
else
 
19189
  CC="$ac_cv_prog_CC"
 
19190
fi
 
19191
 
 
19192
if test -z "$CC"; then
 
19193
  if test -n "$ac_tool_prefix"; then
 
19194
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
19195
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
19196
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19197
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19198
if test "${ac_cv_prog_CC+set}" = set; then
 
19199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19200
else
 
19201
  if test -n "$CC"; then
 
19202
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19203
else
 
19204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19205
for as_dir in $PATH
 
19206
do
 
19207
  IFS=$as_save_IFS
 
19208
  test -z "$as_dir" && as_dir=.
 
19209
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19210
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19211
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
19212
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19213
    break 2
 
19214
  fi
 
19215
done
 
19216
done
 
19217
 
 
19218
fi
 
19219
fi
 
19220
CC=$ac_cv_prog_CC
 
19221
if test -n "$CC"; then
 
19222
  echo "$as_me:$LINENO: result: $CC" >&5
 
19223
echo "${ECHO_T}$CC" >&6
 
19224
else
 
19225
  echo "$as_me:$LINENO: result: no" >&5
 
19226
echo "${ECHO_T}no" >&6
 
19227
fi
 
19228
 
 
19229
fi
 
19230
if test -z "$ac_cv_prog_CC"; then
 
19231
  ac_ct_CC=$CC
 
19232
  # Extract the first word of "cc", so it can be a program name with args.
 
19233
set dummy cc; ac_word=$2
 
19234
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19235
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19236
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19238
else
 
19239
  if test -n "$ac_ct_CC"; then
 
19240
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19241
else
 
19242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19243
for as_dir in $PATH
 
19244
do
 
19245
  IFS=$as_save_IFS
 
19246
  test -z "$as_dir" && as_dir=.
 
19247
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19248
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19249
    ac_cv_prog_ac_ct_CC="cc"
 
19250
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19251
    break 2
 
19252
  fi
 
19253
done
 
19254
done
 
19255
 
 
19256
fi
 
19257
fi
 
19258
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19259
if test -n "$ac_ct_CC"; then
 
19260
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19261
echo "${ECHO_T}$ac_ct_CC" >&6
 
19262
else
 
19263
  echo "$as_me:$LINENO: result: no" >&5
 
19264
echo "${ECHO_T}no" >&6
 
19265
fi
 
19266
 
 
19267
  CC=$ac_ct_CC
 
19268
else
 
19269
  CC="$ac_cv_prog_CC"
 
19270
fi
 
19271
 
 
19272
fi
 
19273
if test -z "$CC"; then
 
19274
  # Extract the first word of "cc", so it can be a program name with args.
 
19275
set dummy cc; ac_word=$2
 
19276
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19277
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19278
if test "${ac_cv_prog_CC+set}" = set; then
 
19279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19280
else
 
19281
  if test -n "$CC"; then
 
19282
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19283
else
 
19284
  ac_prog_rejected=no
 
19285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19286
for as_dir in $PATH
 
19287
do
 
19288
  IFS=$as_save_IFS
 
19289
  test -z "$as_dir" && as_dir=.
 
19290
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19291
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19292
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
19293
       ac_prog_rejected=yes
 
19294
       continue
 
19295
     fi
 
19296
    ac_cv_prog_CC="cc"
 
19297
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19298
    break 2
 
19299
  fi
 
19300
done
 
19301
done
 
19302
 
 
19303
if test $ac_prog_rejected = yes; then
 
19304
  # We found a bogon in the path, so make sure we never use it.
 
19305
  set dummy $ac_cv_prog_CC
 
19306
  shift
 
19307
  if test $# != 0; then
 
19308
    # We chose a different compiler from the bogus one.
 
19309
    # However, it has the same basename, so the bogon will be chosen
 
19310
    # first if we set CC to just the basename; use the full file name.
 
19311
    shift
 
19312
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
19313
  fi
 
19314
fi
 
19315
fi
 
19316
fi
 
19317
CC=$ac_cv_prog_CC
 
19318
if test -n "$CC"; then
 
19319
  echo "$as_me:$LINENO: result: $CC" >&5
 
19320
echo "${ECHO_T}$CC" >&6
 
19321
else
 
19322
  echo "$as_me:$LINENO: result: no" >&5
 
19323
echo "${ECHO_T}no" >&6
 
19324
fi
 
19325
 
 
19326
fi
 
19327
if test -z "$CC"; then
 
19328
  if test -n "$ac_tool_prefix"; then
 
19329
  for ac_prog in cl
 
19330
  do
 
19331
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
19332
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
19333
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19334
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19335
if test "${ac_cv_prog_CC+set}" = set; then
 
19336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19337
else
 
19338
  if test -n "$CC"; then
 
19339
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19340
else
 
19341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19342
for as_dir in $PATH
 
19343
do
 
19344
  IFS=$as_save_IFS
 
19345
  test -z "$as_dir" && as_dir=.
 
19346
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19347
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19348
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
19349
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19350
    break 2
 
19351
  fi
 
19352
done
 
19353
done
 
19354
 
 
19355
fi
 
19356
fi
 
19357
CC=$ac_cv_prog_CC
 
19358
if test -n "$CC"; then
 
19359
  echo "$as_me:$LINENO: result: $CC" >&5
 
19360
echo "${ECHO_T}$CC" >&6
 
19361
else
 
19362
  echo "$as_me:$LINENO: result: no" >&5
 
19363
echo "${ECHO_T}no" >&6
 
19364
fi
 
19365
 
 
19366
    test -n "$CC" && break
 
19367
  done
 
19368
fi
 
19369
if test -z "$CC"; then
 
19370
  ac_ct_CC=$CC
 
19371
  for ac_prog in cl
 
19372
do
 
19373
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19374
set dummy $ac_prog; ac_word=$2
 
19375
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19376
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19377
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19379
else
 
19380
  if test -n "$ac_ct_CC"; then
 
19381
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19382
else
 
19383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19384
for as_dir in $PATH
 
19385
do
 
19386
  IFS=$as_save_IFS
 
19387
  test -z "$as_dir" && as_dir=.
 
19388
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19389
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19390
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
19391
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19392
    break 2
 
19393
  fi
 
19394
done
 
19395
done
 
19396
 
 
19397
fi
 
19398
fi
 
19399
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19400
if test -n "$ac_ct_CC"; then
 
19401
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19402
echo "${ECHO_T}$ac_ct_CC" >&6
 
19403
else
 
19404
  echo "$as_me:$LINENO: result: no" >&5
 
19405
echo "${ECHO_T}no" >&6
 
19406
fi
 
19407
 
 
19408
  test -n "$ac_ct_CC" && break
 
19409
done
 
19410
 
 
19411
  CC=$ac_ct_CC
 
19412
fi
 
19413
 
 
19414
fi
 
19415
 
 
19416
 
 
19417
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
19418
See \`config.log' for more details." >&5
 
19419
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
19420
See \`config.log' for more details." >&2;}
 
19421
   { (exit 1); exit 1; }; }
 
19422
 
 
19423
# Provide some information about the compiler.
 
19424
echo "$as_me:$LINENO:" \
 
19425
     "checking for C compiler version" >&5
 
19426
ac_compiler=`set X $ac_compile; echo $2`
 
19427
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
19428
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
19429
  ac_status=$?
 
19430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19431
  (exit $ac_status); }
 
19432
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
19433
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
19434
  ac_status=$?
 
19435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19436
  (exit $ac_status); }
 
19437
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
19438
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
19439
  ac_status=$?
 
19440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19441
  (exit $ac_status); }
 
19442
 
 
19443
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
19444
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
19445
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
19446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19447
else
 
19448
  cat >conftest.$ac_ext <<_ACEOF
 
19449
/* confdefs.h.  */
 
19450
_ACEOF
 
19451
cat confdefs.h >>conftest.$ac_ext
 
19452
cat >>conftest.$ac_ext <<_ACEOF
 
19453
/* end confdefs.h.  */
 
19454
 
 
19455
int
 
19456
main ()
 
19457
{
 
19458
#ifndef __GNUC__
 
19459
       choke me
 
19460
#endif
 
19461
 
 
19462
  ;
 
19463
  return 0;
 
19464
}
 
19465
_ACEOF
 
19466
rm -f conftest.$ac_objext
 
19467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19468
  (eval $ac_compile) 2>conftest.er1
 
19469
  ac_status=$?
 
19470
  grep -v '^ *+' conftest.er1 >conftest.err
 
19471
  rm -f conftest.er1
 
19472
  cat conftest.err >&5
 
19473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19474
  (exit $ac_status); } &&
 
19475
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19476
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19477
  (eval $ac_try) 2>&5
 
19478
  ac_status=$?
 
19479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19480
  (exit $ac_status); }; } &&
 
19481
         { ac_try='test -s conftest.$ac_objext'
 
19482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19483
  (eval $ac_try) 2>&5
 
19484
  ac_status=$?
 
19485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19486
  (exit $ac_status); }; }; then
 
19487
  ac_compiler_gnu=yes
 
19488
else
 
19489
  echo "$as_me: failed program was:" >&5
 
19490
sed 's/^/| /' conftest.$ac_ext >&5
 
19491
 
 
19492
ac_compiler_gnu=no
 
19493
fi
 
19494
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19495
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
19496
 
 
19497
fi
 
19498
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
19499
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
19500
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
19501
ac_test_CFLAGS=${CFLAGS+set}
 
19502
ac_save_CFLAGS=$CFLAGS
 
19503
CFLAGS="-g"
 
19504
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
19505
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
19506
if test "${ac_cv_prog_cc_g+set}" = set; then
 
19507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19508
else
 
19509
  cat >conftest.$ac_ext <<_ACEOF
 
19510
/* confdefs.h.  */
 
19511
_ACEOF
 
19512
cat confdefs.h >>conftest.$ac_ext
 
19513
cat >>conftest.$ac_ext <<_ACEOF
 
19514
/* end confdefs.h.  */
 
19515
 
 
19516
int
 
19517
main ()
 
19518
{
 
19519
 
 
19520
  ;
 
19521
  return 0;
 
19522
}
 
19523
_ACEOF
 
19524
rm -f conftest.$ac_objext
 
19525
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19526
  (eval $ac_compile) 2>conftest.er1
 
19527
  ac_status=$?
 
19528
  grep -v '^ *+' conftest.er1 >conftest.err
 
19529
  rm -f conftest.er1
 
19530
  cat conftest.err >&5
 
19531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19532
  (exit $ac_status); } &&
 
19533
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19535
  (eval $ac_try) 2>&5
 
19536
  ac_status=$?
 
19537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19538
  (exit $ac_status); }; } &&
 
19539
         { ac_try='test -s conftest.$ac_objext'
 
19540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19541
  (eval $ac_try) 2>&5
 
19542
  ac_status=$?
 
19543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19544
  (exit $ac_status); }; }; then
 
19545
  ac_cv_prog_cc_g=yes
 
19546
else
 
19547
  echo "$as_me: failed program was:" >&5
 
19548
sed 's/^/| /' conftest.$ac_ext >&5
 
19549
 
 
19550
ac_cv_prog_cc_g=no
 
19551
fi
 
19552
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19553
fi
 
19554
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
19555
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
19556
if test "$ac_test_CFLAGS" = set; then
 
19557
  CFLAGS=$ac_save_CFLAGS
 
19558
elif test $ac_cv_prog_cc_g = yes; then
 
19559
  if test "$GCC" = yes; then
 
19560
    CFLAGS="-g -O2"
 
19561
  else
 
19562
    CFLAGS="-g"
 
19563
  fi
 
19564
else
 
19565
  if test "$GCC" = yes; then
 
19566
    CFLAGS="-O2"
 
19567
  else
 
19568
    CFLAGS=
 
19569
  fi
 
19570
fi
 
19571
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
19572
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
19573
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
19574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19575
else
 
19576
  ac_cv_prog_cc_stdc=no
 
19577
ac_save_CC=$CC
 
19578
cat >conftest.$ac_ext <<_ACEOF
 
19579
/* confdefs.h.  */
 
19580
_ACEOF
 
19581
cat confdefs.h >>conftest.$ac_ext
 
19582
cat >>conftest.$ac_ext <<_ACEOF
 
19583
/* end confdefs.h.  */
 
19584
#include <stdarg.h>
 
19585
#include <stdio.h>
 
19586
#include <sys/types.h>
 
19587
#include <sys/stat.h>
 
19588
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
19589
struct buf { int x; };
 
19590
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
19591
static char *e (p, i)
 
19592
     char **p;
 
19593
     int i;
 
19594
{
 
19595
  return p[i];
 
19596
}
 
19597
static char *f (char * (*g) (char **, int), char **p, ...)
 
19598
{
 
19599
  char *s;
 
19600
  va_list v;
 
19601
  va_start (v,p);
 
19602
  s = g (p, va_arg (v,int));
 
19603
  va_end (v);
 
19604
  return s;
 
19605
}
 
19606
 
 
19607
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
19608
   function prototypes and stuff, but not '\xHH' hex character constants.
 
19609
   These don't provoke an error unfortunately, instead are silently treated
 
19610
   as 'x'.  The following induces an error, until -std1 is added to get
 
19611
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
19612
   array size at least.  It's necessary to write '\x00'==0 to get something
 
19613
   that's true only with -std1.  */
 
19614
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
19615
 
 
19616
int test (int i, double x);
 
19617
struct s1 {int (*f) (int a);};
 
19618
struct s2 {int (*f) (double a);};
 
19619
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
19620
int argc;
 
19621
char **argv;
 
19622
int
 
19623
main ()
 
19624
{
 
19625
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
19626
  ;
 
19627
  return 0;
 
19628
}
 
19629
_ACEOF
 
19630
# Don't try gcc -ansi; that turns off useful extensions and
 
19631
# breaks some systems' header files.
 
19632
# AIX                   -qlanglvl=ansi
 
19633
# Ultrix and OSF/1      -std1
 
19634
# HP-UX 10.20 and later -Ae
 
19635
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
19636
# SVR4                  -Xc -D__EXTENSIONS__
 
19637
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
19638
do
 
19639
  CC="$ac_save_CC $ac_arg"
 
19640
  rm -f conftest.$ac_objext
 
19641
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19642
  (eval $ac_compile) 2>conftest.er1
 
19643
  ac_status=$?
 
19644
  grep -v '^ *+' conftest.er1 >conftest.err
 
19645
  rm -f conftest.er1
 
19646
  cat conftest.err >&5
 
19647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19648
  (exit $ac_status); } &&
 
19649
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19651
  (eval $ac_try) 2>&5
 
19652
  ac_status=$?
 
19653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19654
  (exit $ac_status); }; } &&
 
19655
         { ac_try='test -s conftest.$ac_objext'
 
19656
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19657
  (eval $ac_try) 2>&5
 
19658
  ac_status=$?
 
19659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19660
  (exit $ac_status); }; }; then
 
19661
  ac_cv_prog_cc_stdc=$ac_arg
 
19662
break
 
19663
else
 
19664
  echo "$as_me: failed program was:" >&5
 
19665
sed 's/^/| /' conftest.$ac_ext >&5
 
19666
 
 
19667
fi
 
19668
rm -f conftest.err conftest.$ac_objext
 
19669
done
 
19670
rm -f conftest.$ac_ext conftest.$ac_objext
 
19671
CC=$ac_save_CC
 
19672
 
 
19673
fi
 
19674
 
 
19675
case "x$ac_cv_prog_cc_stdc" in
 
19676
  x|xno)
 
19677
    echo "$as_me:$LINENO: result: none needed" >&5
 
19678
echo "${ECHO_T}none needed" >&6 ;;
 
19679
  *)
 
19680
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
19681
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
19682
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
19683
esac
 
19684
 
 
19685
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
19686
# in C++ we need to declare it.  In case someone uses the same compiler
 
19687
# for both compiling C and C++ we need to have the C++ compiler decide
 
19688
# the declaration of exit, since it's the most demanding environment.
 
19689
cat >conftest.$ac_ext <<_ACEOF
 
19690
#ifndef __cplusplus
 
19691
  choke me
 
19692
#endif
 
19693
_ACEOF
 
19694
rm -f conftest.$ac_objext
 
19695
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19696
  (eval $ac_compile) 2>conftest.er1
 
19697
  ac_status=$?
 
19698
  grep -v '^ *+' conftest.er1 >conftest.err
 
19699
  rm -f conftest.er1
 
19700
  cat conftest.err >&5
 
19701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19702
  (exit $ac_status); } &&
 
19703
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19704
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19705
  (eval $ac_try) 2>&5
 
19706
  ac_status=$?
 
19707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19708
  (exit $ac_status); }; } &&
 
19709
         { ac_try='test -s conftest.$ac_objext'
 
19710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19711
  (eval $ac_try) 2>&5
 
19712
  ac_status=$?
 
19713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19714
  (exit $ac_status); }; }; then
 
19715
  for ac_declaration in \
 
19716
   '' \
 
19717
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
19718
   'extern "C" void std::exit (int); using std::exit;' \
 
19719
   'extern "C" void exit (int) throw ();' \
 
19720
   'extern "C" void exit (int);' \
 
19721
   'void exit (int);'
 
19722
do
 
19723
  cat >conftest.$ac_ext <<_ACEOF
 
19724
/* confdefs.h.  */
 
19725
_ACEOF
 
19726
cat confdefs.h >>conftest.$ac_ext
 
19727
cat >>conftest.$ac_ext <<_ACEOF
 
19728
/* end confdefs.h.  */
 
19729
$ac_declaration
 
19730
#include <stdlib.h>
 
19731
int
 
19732
main ()
 
19733
{
 
19734
exit (42);
 
19735
  ;
 
19736
  return 0;
 
19737
}
 
19738
_ACEOF
 
19739
rm -f conftest.$ac_objext
 
19740
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19741
  (eval $ac_compile) 2>conftest.er1
 
19742
  ac_status=$?
 
19743
  grep -v '^ *+' conftest.er1 >conftest.err
 
19744
  rm -f conftest.er1
 
19745
  cat conftest.err >&5
 
19746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19747
  (exit $ac_status); } &&
 
19748
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19750
  (eval $ac_try) 2>&5
 
19751
  ac_status=$?
 
19752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19753
  (exit $ac_status); }; } &&
 
19754
         { ac_try='test -s conftest.$ac_objext'
 
19755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19756
  (eval $ac_try) 2>&5
 
19757
  ac_status=$?
 
19758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19759
  (exit $ac_status); }; }; then
 
19760
  :
 
19761
else
 
19762
  echo "$as_me: failed program was:" >&5
 
19763
sed 's/^/| /' conftest.$ac_ext >&5
 
19764
 
 
19765
continue
 
19766
fi
 
19767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19768
  cat >conftest.$ac_ext <<_ACEOF
 
19769
/* confdefs.h.  */
 
19770
_ACEOF
 
19771
cat confdefs.h >>conftest.$ac_ext
 
19772
cat >>conftest.$ac_ext <<_ACEOF
 
19773
/* end confdefs.h.  */
 
19774
$ac_declaration
 
19775
int
 
19776
main ()
 
19777
{
 
19778
exit (42);
 
19779
  ;
 
19780
  return 0;
 
19781
}
 
19782
_ACEOF
 
19783
rm -f conftest.$ac_objext
 
19784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19785
  (eval $ac_compile) 2>conftest.er1
 
19786
  ac_status=$?
 
19787
  grep -v '^ *+' conftest.er1 >conftest.err
 
19788
  rm -f conftest.er1
 
19789
  cat conftest.err >&5
 
19790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19791
  (exit $ac_status); } &&
 
19792
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19794
  (eval $ac_try) 2>&5
 
19795
  ac_status=$?
 
19796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19797
  (exit $ac_status); }; } &&
 
19798
         { ac_try='test -s conftest.$ac_objext'
 
19799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19800
  (eval $ac_try) 2>&5
 
19801
  ac_status=$?
 
19802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19803
  (exit $ac_status); }; }; then
 
19804
  break
 
19805
else
 
19806
  echo "$as_me: failed program was:" >&5
 
19807
sed 's/^/| /' conftest.$ac_ext >&5
 
19808
 
 
19809
fi
 
19810
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19811
done
 
19812
rm -f conftest*
 
19813
if test -n "$ac_declaration"; then
 
19814
  echo '#ifdef __cplusplus' >>confdefs.h
 
19815
  echo $ac_declaration      >>confdefs.h
 
19816
  echo '#endif'             >>confdefs.h
 
19817
fi
 
19818
 
 
19819
else
 
19820
  echo "$as_me: failed program was:" >&5
 
19821
sed 's/^/| /' conftest.$ac_ext >&5
 
19822
 
 
19823
fi
 
19824
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19825
ac_ext=c
 
19826
ac_cpp='$CPP $CPPFLAGS'
 
19827
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19828
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19829
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19830
 
 
19831
depcc="$CC"   am_compiler_list=
 
19832
 
 
19833
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
19834
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
19835
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
19836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19837
else
 
19838
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
19839
  # We make a subdir and do the tests there.  Otherwise we can end up
 
19840
  # making bogus files that we don't know about and never remove.  For
 
19841
  # instance it was reported that on HP-UX the gcc test will end up
 
19842
  # making a dummy file named `D' -- because `-MD' means `put the output
 
19843
  # in D'.
 
19844
  mkdir conftest.dir
 
19845
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
19846
  # using a relative directory.
 
19847
  cp "$am_depcomp" conftest.dir
 
19848
  cd conftest.dir
 
19849
  # We will build objects and dependencies in a subdirectory because
 
19850
  # it helps to detect inapplicable dependency modes.  For instance
 
19851
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
19852
  # side effect of compilation, but ICC will put the dependencies in
 
19853
  # the current directory while Tru64 will put them in the object
 
19854
  # directory.
 
19855
  mkdir sub
 
19856
 
 
19857
  am_cv_CC_dependencies_compiler_type=none
 
19858
  if test "$am_compiler_list" = ""; then
 
19859
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
19860
  fi
 
19861
  for depmode in $am_compiler_list; do
 
19862
    # Setup a source with many dependencies, because some compilers
 
19863
    # like to wrap large dependency lists on column 80 (with \), and
 
19864
    # we should not choose a depcomp mode which is confused by this.
 
19865
    #
 
19866
    # We need to recreate these files for each test, as the compiler may
 
19867
    # overwrite some of them when testing with obscure command lines.
 
19868
    # This happens at least with the AIX C compiler.
 
19869
    : > sub/conftest.c
 
19870
    for i in 1 2 3 4 5 6; do
 
19871
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
19872
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
19873
      # Solaris 8's {/usr,}/bin/sh.
 
19874
      touch sub/conftst$i.h
 
19875
    done
 
19876
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
19877
 
 
19878
    case $depmode in
 
19879
    nosideeffect)
 
19880
      # after this tag, mechanisms are not by side-effect, so they'll
 
19881
      # only be used when explicitly requested
 
19882
      if test "x$enable_dependency_tracking" = xyes; then
 
19883
        continue
 
19884
      else
 
19885
        break
 
19886
      fi
 
19887
      ;;
 
19888
    none) break ;;
 
19889
    esac
 
19890
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
19891
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
19892
    # handle `-M -o', and we need to detect this.
 
19893
    if depmode=$depmode \
 
19894
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
19895
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
19896
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
19897
         >/dev/null 2>conftest.err &&
 
19898
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
19899
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
19900
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
19901
      # icc doesn't choke on unknown options, it will just issue warnings
 
19902
      # or remarks (even with -Werror).  So we grep stderr for any message
 
19903
      # that says an option was ignored or not supported.
 
19904
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
19905
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
19906
      # The diagnosis changed in icc 8.0:
 
19907
      #   icc: Command line remark: option '-MP' not supported
 
19908
      if (grep 'ignoring option' conftest.err ||
 
19909
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
19910
        am_cv_CC_dependencies_compiler_type=$depmode
 
19911
        break
 
19912
      fi
 
19913
    fi
 
19914
  done
 
19915
 
 
19916
  cd ..
 
19917
  rm -rf conftest.dir
 
19918
else
 
19919
  am_cv_CC_dependencies_compiler_type=none
 
19920
fi
 
19921
 
 
19922
fi
 
19923
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
19924
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
19925
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
19926
 
 
19927
 
 
19928
 
 
19929
if
 
19930
  test "x$enable_dependency_tracking" != xno \
 
19931
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
19932
  am__fastdepCC_TRUE=
 
19933
  am__fastdepCC_FALSE='#'
 
19934
else
 
19935
  am__fastdepCC_TRUE='#'
 
19936
  am__fastdepCC_FALSE=
 
19937
fi
 
19938
 
 
19939
 
 
19940
 
 
19941
# Checks for pkg-config packages
 
19942
 
 
19943
 
 
19944
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
19945
        if test -n "$ac_tool_prefix"; then
 
19946
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
19947
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
19948
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19949
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19950
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
19951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19952
else
 
19953
  case $PKG_CONFIG in
 
19954
  [\\/]* | ?:[\\/]*)
 
19955
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
19956
  ;;
 
19957
  *)
 
19958
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19959
for as_dir in $PATH
 
19960
do
 
19961
  IFS=$as_save_IFS
 
19962
  test -z "$as_dir" && as_dir=.
 
19963
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19964
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19965
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19966
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19967
    break 2
 
19968
  fi
 
19969
done
 
19970
done
 
19971
 
 
19972
  ;;
 
19973
esac
 
19974
fi
 
19975
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
19976
 
 
19977
if test -n "$PKG_CONFIG"; then
 
19978
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
19979
echo "${ECHO_T}$PKG_CONFIG" >&6
 
19980
else
 
19981
  echo "$as_me:$LINENO: result: no" >&5
 
19982
echo "${ECHO_T}no" >&6
 
19983
fi
 
19984
 
 
19985
fi
 
19986
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
19987
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
19988
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
19989
set dummy pkg-config; ac_word=$2
 
19990
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19991
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19992
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
19993
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19994
else
 
19995
  case $ac_pt_PKG_CONFIG in
 
19996
  [\\/]* | ?:[\\/]*)
 
19997
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
19998
  ;;
 
19999
  *)
 
20000
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20001
for as_dir in $PATH
 
20002
do
 
20003
  IFS=$as_save_IFS
 
20004
  test -z "$as_dir" && as_dir=.
 
20005
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20006
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20007
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20008
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20009
    break 2
 
20010
  fi
 
20011
done
 
20012
done
 
20013
 
 
20014
  ;;
 
20015
esac
 
20016
fi
 
20017
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
20018
 
 
20019
if test -n "$ac_pt_PKG_CONFIG"; then
 
20020
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
20021
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
20022
else
 
20023
  echo "$as_me:$LINENO: result: no" >&5
 
20024
echo "${ECHO_T}no" >&6
 
20025
fi
 
20026
 
 
20027
  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
20028
else
 
20029
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
20030
fi
 
20031
 
 
20032
fi
 
20033
if test -n "$PKG_CONFIG"; then
 
20034
        _pkg_min_version=0.9.0
 
20035
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
20036
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
20037
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
20038
                echo "$as_me:$LINENO: result: yes" >&5
 
20039
echo "${ECHO_T}yes" >&6
 
20040
        else
 
20041
                echo "$as_me:$LINENO: result: no" >&5
 
20042
echo "${ECHO_T}no" >&6
 
20043
                PKG_CONFIG=""
 
20044
        fi
 
20045
 
 
20046
fi
 
20047
 
 
20048
pkg_failed=no
 
20049
echo "$as_me:$LINENO: checking for XPM" >&5
 
20050
echo $ECHO_N "checking for XPM... $ECHO_C" >&6
 
20051
 
 
20052
if test -n "$PKG_CONFIG"; then
 
20053
        if test -n "$PKG_CONFIG" && \
 
20054
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11\"") >&5
 
20055
  ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
 
20056
  ac_status=$?
 
20057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20058
  (exit $ac_status); }; then
 
20059
  pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null`
 
20060
else
 
20061
  pkg_failed=yes
 
20062
fi
 
20063
else
 
20064
        pkg_failed=untried
 
20065
fi
 
20066
if test -n "$PKG_CONFIG"; then
 
20067
        if test -n "$PKG_CONFIG" && \
 
20068
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11\"") >&5
 
20069
  ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5
 
20070
  ac_status=$?
 
20071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20072
  (exit $ac_status); }; then
 
20073
  pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null`
 
20074
else
 
20075
  pkg_failed=yes
 
20076
fi
 
20077
else
 
20078
        pkg_failed=untried
 
20079
fi
 
20080
 
 
20081
if test $pkg_failed = yes; then
 
20082
        XPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto x11"`
 
20083
        # Put the nasty error message in config.log where it belongs
 
20084
        echo "$XPM_PKG_ERRORS" 1>&5
 
20085
 
 
20086
        { { echo "$as_me:$LINENO: error: Package requirements (xproto x11) were not met.
 
20087
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20088
installed software in a non-standard prefix.
 
20089
 
 
20090
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
 
20091
to avoid the need to call pkg-config.  See the pkg-config man page for
 
20092
more details." >&5
 
20093
echo "$as_me: error: Package requirements (xproto x11) were not met.
 
20094
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20095
installed software in a non-standard prefix.
 
20096
 
 
20097
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
 
20098
to avoid the need to call pkg-config.  See the pkg-config man page for
 
20099
more details." >&2;}
 
20100
   { (exit 1); exit 1; }; }
 
20101
elif test $pkg_failed = untried; then
 
20102
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
20103
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20104
path to pkg-config.
 
20105
 
 
20106
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
 
20107
to avoid the need to call pkg-config.  See the pkg-config man page for
 
20108
more details.
 
20109
 
 
20110
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20111
See \`config.log' for more details." >&5
 
20112
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
20113
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20114
path to pkg-config.
 
20115
 
 
20116
Alternatively you may set the XPM_CFLAGS and XPM_LIBS environment variables
 
20117
to avoid the need to call pkg-config.  See the pkg-config man page for
 
20118
more details.
 
20119
 
 
20120
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20121
See \`config.log' for more details." >&2;}
 
20122
   { (exit 1); exit 1; }; }
 
20123
else
 
20124
        XPM_CFLAGS=$pkg_cv_XPM_CFLAGS
 
20125
        XPM_LIBS=$pkg_cv_XPM_LIBS
 
20126
        :
 
20127
fi
 
20128
 
 
20129
 
 
20130
 
 
20131
# Checks for header files.
 
20132
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20133
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
20134
if test "${ac_cv_header_stdc+set}" = set; then
 
20135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20136
else
 
20137
  cat >conftest.$ac_ext <<_ACEOF
 
20138
/* confdefs.h.  */
 
20139
_ACEOF
 
20140
cat confdefs.h >>conftest.$ac_ext
 
20141
cat >>conftest.$ac_ext <<_ACEOF
 
20142
/* end confdefs.h.  */
 
20143
#include <stdlib.h>
 
20144
#include <stdarg.h>
 
20145
#include <string.h>
 
20146
#include <float.h>
 
20147
 
 
20148
int
 
20149
main ()
 
20150
{
 
20151
 
 
20152
  ;
 
20153
  return 0;
 
20154
}
 
20155
_ACEOF
 
20156
rm -f conftest.$ac_objext
 
20157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20158
  (eval $ac_compile) 2>conftest.er1
 
20159
  ac_status=$?
 
20160
  grep -v '^ *+' conftest.er1 >conftest.err
 
20161
  rm -f conftest.er1
 
20162
  cat conftest.err >&5
 
20163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20164
  (exit $ac_status); } &&
 
20165
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20167
  (eval $ac_try) 2>&5
 
20168
  ac_status=$?
 
20169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20170
  (exit $ac_status); }; } &&
 
20171
         { ac_try='test -s conftest.$ac_objext'
 
20172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20173
  (eval $ac_try) 2>&5
 
20174
  ac_status=$?
 
20175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20176
  (exit $ac_status); }; }; then
 
20177
  ac_cv_header_stdc=yes
 
20178
else
 
20179
  echo "$as_me: failed program was:" >&5
 
20180
sed 's/^/| /' conftest.$ac_ext >&5
 
20181
 
 
20182
ac_cv_header_stdc=no
 
20183
fi
 
20184
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20185
 
 
20186
if test $ac_cv_header_stdc = yes; then
 
20187
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
20188
  cat >conftest.$ac_ext <<_ACEOF
 
20189
/* confdefs.h.  */
 
20190
_ACEOF
 
20191
cat confdefs.h >>conftest.$ac_ext
 
20192
cat >>conftest.$ac_ext <<_ACEOF
 
20193
/* end confdefs.h.  */
 
20194
#include <string.h>
 
20195
 
 
20196
_ACEOF
 
20197
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20198
  $EGREP "memchr" >/dev/null 2>&1; then
 
20199
  :
 
20200
else
 
20201
  ac_cv_header_stdc=no
 
20202
fi
 
20203
rm -f conftest*
 
20204
 
 
20205
fi
 
20206
 
 
20207
if test $ac_cv_header_stdc = yes; then
 
20208
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20209
  cat >conftest.$ac_ext <<_ACEOF
 
20210
/* confdefs.h.  */
 
20211
_ACEOF
 
20212
cat confdefs.h >>conftest.$ac_ext
 
20213
cat >>conftest.$ac_ext <<_ACEOF
 
20214
/* end confdefs.h.  */
 
20215
#include <stdlib.h>
 
20216
 
 
20217
_ACEOF
 
20218
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20219
  $EGREP "free" >/dev/null 2>&1; then
 
20220
  :
 
20221
else
 
20222
  ac_cv_header_stdc=no
 
20223
fi
 
20224
rm -f conftest*
 
20225
 
 
20226
fi
 
20227
 
 
20228
if test $ac_cv_header_stdc = yes; then
 
20229
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20230
  if test "$cross_compiling" = yes; then
 
20231
  :
 
20232
else
 
20233
  cat >conftest.$ac_ext <<_ACEOF
 
20234
/* confdefs.h.  */
 
20235
_ACEOF
 
20236
cat confdefs.h >>conftest.$ac_ext
 
20237
cat >>conftest.$ac_ext <<_ACEOF
 
20238
/* end confdefs.h.  */
 
20239
#include <ctype.h>
 
20240
#if ((' ' & 0x0FF) == 0x020)
 
20241
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20242
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20243
#else
 
20244
# define ISLOWER(c) \
 
20245
                   (('a' <= (c) && (c) <= 'i') \
 
20246
                     || ('j' <= (c) && (c) <= 'r') \
 
20247
                     || ('s' <= (c) && (c) <= 'z'))
 
20248
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20249
#endif
 
20250
 
 
20251
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20252
int
 
20253
main ()
 
20254
{
 
20255
  int i;
 
20256
  for (i = 0; i < 256; i++)
 
20257
    if (XOR (islower (i), ISLOWER (i))
 
20258
        || toupper (i) != TOUPPER (i))
 
20259
      exit(2);
 
20260
  exit (0);
 
20261
}
 
20262
_ACEOF
 
20263
rm -f conftest$ac_exeext
 
20264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20265
  (eval $ac_link) 2>&5
 
20266
  ac_status=$?
 
20267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20268
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20270
  (eval $ac_try) 2>&5
 
20271
  ac_status=$?
 
20272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20273
  (exit $ac_status); }; }; then
 
20274
  :
 
20275
else
 
20276
  echo "$as_me: program exited with status $ac_status" >&5
 
20277
echo "$as_me: failed program was:" >&5
 
20278
sed 's/^/| /' conftest.$ac_ext >&5
 
20279
 
 
20280
( exit $ac_status )
 
20281
ac_cv_header_stdc=no
 
20282
fi
 
20283
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20284
fi
 
20285
fi
 
20286
fi
 
20287
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20288
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
20289
if test $ac_cv_header_stdc = yes; then
 
20290
 
 
20291
cat >>confdefs.h <<\_ACEOF
 
20292
#define STDC_HEADERS 1
 
20293
_ACEOF
 
20294
 
 
20295
fi
 
20296
 
 
20297
 
 
20298
# Checks for functions
 
20299
 
 
20300
for ac_func in strlcat
 
20301
do
 
20302
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20303
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20304
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20305
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20306
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20307
else
 
20308
  cat >conftest.$ac_ext <<_ACEOF
 
20309
/* confdefs.h.  */
 
20310
_ACEOF
 
20311
cat confdefs.h >>conftest.$ac_ext
 
20312
cat >>conftest.$ac_ext <<_ACEOF
 
20313
/* end confdefs.h.  */
 
20314
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20315
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20316
#define $ac_func innocuous_$ac_func
 
20317
 
 
20318
/* System header to define __stub macros and hopefully few prototypes,
 
20319
    which can conflict with char $ac_func (); below.
 
20320
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20321
    <limits.h> exists even on freestanding compilers.  */
 
20322
 
 
20323
#ifdef __STDC__
 
20324
# include <limits.h>
 
20325
#else
 
20326
# include <assert.h>
 
20327
#endif
 
20328
 
 
20329
#undef $ac_func
 
20330
 
 
20331
/* Override any gcc2 internal prototype to avoid an error.  */
 
20332
#ifdef __cplusplus
 
20333
extern "C"
 
20334
{
 
20335
#endif
 
20336
/* We use char because int might match the return type of a gcc2
 
20337
   builtin and then its argument prototype would still apply.  */
 
20338
char $ac_func ();
 
20339
/* The GNU C library defines this for functions which it implements
 
20340
    to always fail with ENOSYS.  Some functions are actually named
 
20341
    something starting with __ and the normal name is an alias.  */
 
20342
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20343
choke me
 
20344
#else
 
20345
char (*f) () = $ac_func;
 
20346
#endif
 
20347
#ifdef __cplusplus
 
20348
}
 
20349
#endif
 
20350
 
 
20351
int
 
20352
main ()
 
20353
{
 
20354
return f != $ac_func;
 
20355
  ;
 
20356
  return 0;
 
20357
}
 
20358
_ACEOF
 
20359
rm -f conftest.$ac_objext conftest$ac_exeext
 
20360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20361
  (eval $ac_link) 2>conftest.er1
 
20362
  ac_status=$?
 
20363
  grep -v '^ *+' conftest.er1 >conftest.err
 
20364
  rm -f conftest.er1
 
20365
  cat conftest.err >&5
 
20366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20367
  (exit $ac_status); } &&
 
20368
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20370
  (eval $ac_try) 2>&5
 
20371
  ac_status=$?
 
20372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20373
  (exit $ac_status); }; } &&
 
20374
         { ac_try='test -s conftest$ac_exeext'
 
20375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20376
  (eval $ac_try) 2>&5
 
20377
  ac_status=$?
 
20378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20379
  (exit $ac_status); }; }; then
 
20380
  eval "$as_ac_var=yes"
 
20381
else
 
20382
  echo "$as_me: failed program was:" >&5
 
20383
sed 's/^/| /' conftest.$ac_ext >&5
 
20384
 
 
20385
eval "$as_ac_var=no"
 
20386
fi
 
20387
rm -f conftest.err conftest.$ac_objext \
 
20388
      conftest$ac_exeext conftest.$ac_ext
 
20389
fi
 
20390
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20391
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20392
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20393
  cat >>confdefs.h <<_ACEOF
 
20394
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20395
_ACEOF
 
20396
 
 
20397
fi
 
20398
done
 
20399
 
 
20400
 
 
20401
# Checks for typedefs, structures, and compiler characteristics.
 
20402
 
 
20403
if test "x$GCC" = "xyes"; then
 
20404
        GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \
 
20405
        -Wmissing-prototypes -Wmissing-declarations \
 
20406
        -Wnested-externs -fno-strict-aliasing"
 
20407
        CFLAGS="$GCC_WARNINGS $CFLAGS"
 
20408
fi
 
20409
 
 
20410
 
 
20411
 
 
20412
pkg_failed=no
 
20413
echo "$as_me:$LINENO: checking for SXPM" >&5
 
20414
echo $ECHO_N "checking for SXPM... $ECHO_C" >&6
 
20415
 
 
20416
if test -n "$PKG_CONFIG"; then
 
20417
        if test -n "$PKG_CONFIG" && \
 
20418
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt xext\"") >&5
 
20419
  ($PKG_CONFIG --exists --print-errors "xt xext") 2>&5
 
20420
  ac_status=$?
 
20421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20422
  (exit $ac_status); }; then
 
20423
  pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "xt xext" 2>/dev/null`
 
20424
else
 
20425
  pkg_failed=yes
 
20426
fi
 
20427
else
 
20428
        pkg_failed=untried
 
20429
fi
 
20430
if test -n "$PKG_CONFIG"; then
 
20431
        if test -n "$PKG_CONFIG" && \
 
20432
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt xext\"") >&5
 
20433
  ($PKG_CONFIG --exists --print-errors "xt xext") 2>&5
 
20434
  ac_status=$?
 
20435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20436
  (exit $ac_status); }; then
 
20437
  pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "xt xext" 2>/dev/null`
 
20438
else
 
20439
  pkg_failed=yes
 
20440
fi
 
20441
else
 
20442
        pkg_failed=untried
 
20443
fi
 
20444
 
 
20445
if test $pkg_failed = yes; then
 
20446
        SXPM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt xext"`
 
20447
        # Put the nasty error message in config.log where it belongs
 
20448
        echo "$SXPM_PKG_ERRORS" 1>&5
 
20449
 
 
20450
        build_sxpm=false
 
20451
elif test $pkg_failed = untried; then
 
20452
        build_sxpm=false
 
20453
else
 
20454
        SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS
 
20455
        SXPM_LIBS=$pkg_cv_SXPM_LIBS
 
20456
        build_sxpm=true
 
20457
fi
 
20458
 
 
20459
 
 
20460
 
 
20461
if test x$build_sxpm = xtrue; then
 
20462
  BUILD_SXPM_TRUE=
 
20463
  BUILD_SXPM_FALSE='#'
 
20464
else
 
20465
  BUILD_SXPM_TRUE='#'
 
20466
  BUILD_SXPM_FALSE=
 
20467
fi
 
20468
 
 
20469
 
 
20470
                                                  ac_config_files="$ac_config_files Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc"
 
20471
cat >confcache <<\_ACEOF
 
20472
# This file is a shell script that caches the results of configure
 
20473
# tests run on this system so they can be shared between configure
 
20474
# scripts and configure runs, see configure's option --config-cache.
 
20475
# It is not useful on other systems.  If it contains results you don't
 
20476
# want to keep, you may remove or edit it.
 
20477
#
 
20478
# config.status only pays attention to the cache file if you give it
 
20479
# the --recheck option to rerun configure.
 
20480
#
 
20481
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
20482
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
20483
# following values.
 
20484
 
 
20485
_ACEOF
 
20486
 
 
20487
# The following way of writing the cache mishandles newlines in values,
 
20488
# but we know of no workaround that is simple, portable, and efficient.
 
20489
# So, don't put newlines in cache variables' values.
 
20490
# Ultrix sh set writes to stderr and can't be redirected directly,
 
20491
# and sets the high bit in the cache file unless we assign to the vars.
 
20492
{
 
20493
  (set) 2>&1 |
 
20494
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
20495
    *ac_space=\ *)
 
20496
      # `set' does not quote correctly, so add quotes (double-quote
 
20497
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
20498
      sed -n \
 
20499
        "s/'/'\\\\''/g;
 
20500
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
20501
      ;;
 
20502
    *)
 
20503
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
20504
      sed -n \
 
20505
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
20506
      ;;
 
20507
    esac;
 
20508
} |
 
20509
  sed '
 
20510
     t clear
 
20511
     : clear
 
20512
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
20513
     t end
 
20514
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
20515
     : end' >>confcache
 
20516
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
20517
  if test -w $cache_file; then
 
20518
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
20519
    cat confcache >$cache_file
 
20520
  else
 
20521
    echo "not updating unwritable cache $cache_file"
 
20522
  fi
 
20523
fi
 
20524
rm -f confcache
 
20525
 
 
20526
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
20527
# Let make expand exec_prefix.
 
20528
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
20529
 
 
20530
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
20531
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
20532
# trailing colons and then remove the whole line if VPATH becomes empty
 
20533
# (actually we leave an empty line to preserve line numbers).
 
20534
if test "x$srcdir" = x.; then
 
20535
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
20536
s/:*\$(srcdir):*/:/;
 
20537
s/:*\${srcdir}:*/:/;
 
20538
s/:*@srcdir@:*/:/;
 
20539
s/^\([^=]*=[     ]*\):*/\1/;
 
20540
s/:*$//;
 
20541
s/^[^=]*=[       ]*$//;
 
20542
}'
 
20543
fi
 
20544
 
 
20545
DEFS=-DHAVE_CONFIG_H
 
20546
 
 
20547
ac_libobjs=
 
20548
ac_ltlibobjs=
 
20549
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
20550
  # 1. Remove the extension, and $U if already installed.
 
20551
  ac_i=`echo "$ac_i" |
 
20552
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
20553
  # 2. Add them.
 
20554
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
20555
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
20556
done
 
20557
LIBOBJS=$ac_libobjs
 
20558
 
 
20559
LTLIBOBJS=$ac_ltlibobjs
 
20560
 
 
20561
 
 
20562
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
20563
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
20564
Usually this means the macro was only invoked conditionally." >&5
 
20565
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
20566
Usually this means the macro was only invoked conditionally." >&2;}
 
20567
   { (exit 1); exit 1; }; }
 
20568
fi
 
20569
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
20570
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
20571
Usually this means the macro was only invoked conditionally." >&5
 
20572
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
20573
Usually this means the macro was only invoked conditionally." >&2;}
 
20574
   { (exit 1); exit 1; }; }
 
20575
fi
 
20576
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20577
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20578
Usually this means the macro was only invoked conditionally." >&5
 
20579
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20580
Usually this means the macro was only invoked conditionally." >&2;}
 
20581
   { (exit 1); exit 1; }; }
 
20582
fi
 
20583
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
20584
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
20585
Usually this means the macro was only invoked conditionally." >&5
 
20586
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
20587
Usually this means the macro was only invoked conditionally." >&2;}
 
20588
   { (exit 1); exit 1; }; }
 
20589
fi
 
20590
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20591
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20592
Usually this means the macro was only invoked conditionally." >&5
 
20593
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20594
Usually this means the macro was only invoked conditionally." >&2;}
 
20595
   { (exit 1); exit 1; }; }
 
20596
fi
 
20597
if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then
 
20598
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SXPM\" was never defined.
 
20599
Usually this means the macro was only invoked conditionally." >&5
 
20600
echo "$as_me: error: conditional \"BUILD_SXPM\" was never defined.
 
20601
Usually this means the macro was only invoked conditionally." >&2;}
 
20602
   { (exit 1); exit 1; }; }
 
20603
fi
 
20604
 
 
20605
: ${CONFIG_STATUS=./config.status}
 
20606
ac_clean_files_save=$ac_clean_files
 
20607
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
20608
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
20609
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
20610
cat >$CONFIG_STATUS <<_ACEOF
 
20611
#! $SHELL
 
20612
# Generated by $as_me.
 
20613
# Run this file to recreate the current configuration.
 
20614
# Compiler output produced by configure, useful for debugging
 
20615
# configure, is in config.log if it exists.
 
20616
 
 
20617
debug=false
 
20618
ac_cs_recheck=false
 
20619
ac_cs_silent=false
 
20620
SHELL=\${CONFIG_SHELL-$SHELL}
 
20621
_ACEOF
 
20622
 
 
20623
cat >>$CONFIG_STATUS <<\_ACEOF
 
20624
## --------------------- ##
 
20625
## M4sh Initialization.  ##
 
20626
## --------------------- ##
 
20627
 
 
20628
# Be Bourne compatible
 
20629
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20630
  emulate sh
 
20631
  NULLCMD=:
 
20632
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20633
  # is contrary to our usage.  Disable this feature.
 
20634
  alias -g '${1+"$@"}'='"$@"'
 
20635
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20636
  set -o posix
 
20637
fi
 
20638
DUALCASE=1; export DUALCASE # for MKS sh
 
20639
 
 
20640
# Support unset when possible.
 
20641
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
20642
  as_unset=unset
 
20643
else
 
20644
  as_unset=false
 
20645
fi
 
20646
 
 
20647
 
 
20648
# Work around bugs in pre-3.0 UWIN ksh.
 
20649
$as_unset ENV MAIL MAILPATH
 
20650
PS1='$ '
 
20651
PS2='> '
 
20652
PS4='+ '
 
20653
 
 
20654
# NLS nuisances.
 
20655
for as_var in \
 
20656
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
20657
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
20658
  LC_TELEPHONE LC_TIME
 
20659
do
 
20660
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
20661
    eval $as_var=C; export $as_var
 
20662
  else
 
20663
    $as_unset $as_var
 
20664
  fi
 
20665
done
 
20666
 
 
20667
# Required to use basename.
 
20668
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20669
  as_expr=expr
 
20670
else
 
20671
  as_expr=false
 
20672
fi
 
20673
 
 
20674
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
20675
  as_basename=basename
 
20676
else
 
20677
  as_basename=false
 
20678
fi
 
20679
 
 
20680
 
 
20681
# Name of the executable.
 
20682
as_me=`$as_basename "$0" ||
 
20683
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
20684
         X"$0" : 'X\(//\)$' \| \
 
20685
         X"$0" : 'X\(/\)$' \| \
 
20686
         .     : '\(.\)' 2>/dev/null ||
 
20687
echo X/"$0" |
 
20688
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
20689
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
20690
          /^X\/\(\/\).*/{ s//\1/; q; }
 
20691
          s/.*/./; q'`
 
20692
 
 
20693
 
 
20694
# PATH needs CR, and LINENO needs CR and PATH.
 
20695
# Avoid depending upon Character Ranges.
 
20696
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20697
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20698
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20699
as_cr_digits='0123456789'
 
20700
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
20701
 
 
20702
# The user is always right.
 
20703
if test "${PATH_SEPARATOR+set}" != set; then
 
20704
  echo "#! /bin/sh" >conf$$.sh
 
20705
  echo  "exit 0"   >>conf$$.sh
 
20706
  chmod +x conf$$.sh
 
20707
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
20708
    PATH_SEPARATOR=';'
 
20709
  else
 
20710
    PATH_SEPARATOR=:
 
20711
  fi
 
20712
  rm -f conf$$.sh
 
20713
fi
 
20714
 
 
20715
 
 
20716
  as_lineno_1=$LINENO
 
20717
  as_lineno_2=$LINENO
 
20718
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20719
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20720
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
20721
  # Find who we are.  Look in the path if we contain no path at all
 
20722
  # relative or not.
 
20723
  case $0 in
 
20724
    *[\\/]* ) as_myself=$0 ;;
 
20725
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20726
for as_dir in $PATH
 
20727
do
 
20728
  IFS=$as_save_IFS
 
20729
  test -z "$as_dir" && as_dir=.
 
20730
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20731
done
 
20732
 
 
20733
       ;;
 
20734
  esac
 
20735
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
20736
  # in which case we are not to be found in the path.
 
20737
  if test "x$as_myself" = x; then
 
20738
    as_myself=$0
 
20739
  fi
 
20740
  if test ! -f "$as_myself"; then
 
20741
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
20742
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
20743
   { (exit 1); exit 1; }; }
 
20744
  fi
 
20745
  case $CONFIG_SHELL in
 
20746
  '')
 
20747
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20748
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
20749
do
 
20750
  IFS=$as_save_IFS
 
20751
  test -z "$as_dir" && as_dir=.
 
20752
  for as_base in sh bash ksh sh5; do
 
20753
         case $as_dir in
 
20754
         /*)
 
20755
           if ("$as_dir/$as_base" -c '
 
20756
  as_lineno_1=$LINENO
 
20757
  as_lineno_2=$LINENO
 
20758
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20759
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20760
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
20761
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
20762
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
20763
             CONFIG_SHELL=$as_dir/$as_base
 
20764
             export CONFIG_SHELL
 
20765
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
20766
           fi;;
 
20767
         esac
 
20768
       done
 
20769
done
 
20770
;;
 
20771
  esac
 
20772
 
 
20773
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
20774
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
20775
  # line-number line before each line; the second 'sed' does the real
 
20776
  # work.  The second script uses 'N' to pair each line-number line
 
20777
  # with the numbered line, and appends trailing '-' during
 
20778
  # substitution so that $LINENO is not a special case at line end.
 
20779
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20780
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
20781
  sed '=' <$as_myself |
 
20782
    sed '
 
20783
      N
 
20784
      s,$,-,
 
20785
      : loop
 
20786
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
20787
      t loop
 
20788
      s,-$,,
 
20789
      s,^['$as_cr_digits']*\n,,
 
20790
    ' >$as_me.lineno &&
 
20791
  chmod +x $as_me.lineno ||
 
20792
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
20793
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
20794
   { (exit 1); exit 1; }; }
 
20795
 
 
20796
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20797
  # (the dirname of $[0] is not the place where we might find the
 
20798
  # original and so on.  Autoconf is especially sensible to this).
 
20799
  . ./$as_me.lineno
 
20800
  # Exit status is that of the last command.
 
20801
  exit
 
20802
}
 
20803
 
 
20804
 
 
20805
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
20806
  *c*,-n*) ECHO_N= ECHO_C='
 
20807
' ECHO_T='      ' ;;
 
20808
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
20809
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
20810
esac
 
20811
 
 
20812
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20813
  as_expr=expr
 
20814
else
 
20815
  as_expr=false
 
20816
fi
 
20817
 
 
20818
rm -f conf$$ conf$$.exe conf$$.file
 
20819
echo >conf$$.file
 
20820
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20821
  # We could just check for DJGPP; but this test a) works b) is more generic
 
20822
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
20823
  if test -f conf$$.exe; then
 
20824
    # Don't use ln at all; we don't have any links
 
20825
    as_ln_s='cp -p'
 
20826
  else
 
20827
    as_ln_s='ln -s'
 
20828
  fi
 
20829
elif ln conf$$.file conf$$ 2>/dev/null; then
 
20830
  as_ln_s=ln
 
20831
else
 
20832
  as_ln_s='cp -p'
 
20833
fi
 
20834
rm -f conf$$ conf$$.exe conf$$.file
 
20835
 
 
20836
if mkdir -p . 2>/dev/null; then
 
20837
  as_mkdir_p=:
 
20838
else
 
20839
  test -d ./-p && rmdir ./-p
 
20840
  as_mkdir_p=false
 
20841
fi
 
20842
 
 
20843
as_executable_p="test -f"
 
20844
 
 
20845
# Sed expression to map a string onto a valid CPP name.
 
20846
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20847
 
 
20848
# Sed expression to map a string onto a valid variable name.
 
20849
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20850
 
 
20851
 
 
20852
# IFS
 
20853
# We need space, tab and new line, in precisely that order.
 
20854
as_nl='
 
20855
'
 
20856
IFS="   $as_nl"
 
20857
 
 
20858
# CDPATH.
 
20859
$as_unset CDPATH
 
20860
 
 
20861
exec 6>&1
 
20862
 
 
20863
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
20864
# report actual input values of CONFIG_FILES etc. instead of their
 
20865
# values after options handling.  Logging --version etc. is OK.
 
20866
exec 5>>config.log
 
20867
{
 
20868
  echo
 
20869
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
20870
## Running $as_me. ##
 
20871
_ASBOX
 
20872
} >&5
 
20873
cat >&5 <<_CSEOF
 
20874
 
 
20875
This file was extended by libXpm $as_me 3.5.2, which was
 
20876
generated by GNU Autoconf 2.59.  Invocation command line was
 
20877
 
 
20878
  CONFIG_FILES    = $CONFIG_FILES
 
20879
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
20880
  CONFIG_LINKS    = $CONFIG_LINKS
 
20881
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
20882
  $ $0 $@
 
20883
 
 
20884
_CSEOF
 
20885
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
20886
echo >&5
 
20887
_ACEOF
 
20888
 
 
20889
# Files that config.status was made for.
 
20890
if test -n "$ac_config_files"; then
 
20891
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
20892
fi
 
20893
 
 
20894
if test -n "$ac_config_headers"; then
 
20895
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
20896
fi
 
20897
 
 
20898
if test -n "$ac_config_links"; then
 
20899
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
20900
fi
 
20901
 
 
20902
if test -n "$ac_config_commands"; then
 
20903
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
20904
fi
 
20905
 
 
20906
cat >>$CONFIG_STATUS <<\_ACEOF
 
20907
 
 
20908
ac_cs_usage="\
 
20909
\`$as_me' instantiates files from templates according to the
 
20910
current configuration.
 
20911
 
 
20912
Usage: $0 [OPTIONS] [FILE]...
 
20913
 
 
20914
  -h, --help       print this help, then exit
 
20915
  -V, --version    print version number, then exit
 
20916
  -q, --quiet      do not print progress messages
 
20917
  -d, --debug      don't remove temporary files
 
20918
      --recheck    update $as_me by reconfiguring in the same conditions
 
20919
  --file=FILE[:TEMPLATE]
 
20920
                   instantiate the configuration file FILE
 
20921
  --header=FILE[:TEMPLATE]
 
20922
                   instantiate the configuration header FILE
 
20923
 
 
20924
Configuration files:
 
20925
$config_files
 
20926
 
 
20927
Configuration headers:
 
20928
$config_headers
 
20929
 
 
20930
Configuration commands:
 
20931
$config_commands
 
20932
 
 
20933
Report bugs to <bug-autoconf@gnu.org>."
 
20934
_ACEOF
 
20935
 
 
20936
cat >>$CONFIG_STATUS <<_ACEOF
 
20937
ac_cs_version="\\
 
20938
libXpm config.status 3.5.2
 
20939
configured by $0, generated by GNU Autoconf 2.59,
 
20940
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
20941
 
 
20942
Copyright (C) 2003 Free Software Foundation, Inc.
 
20943
This config.status script is free software; the Free Software Foundation
 
20944
gives unlimited permission to copy, distribute and modify it."
 
20945
srcdir=$srcdir
 
20946
INSTALL="$INSTALL"
 
20947
_ACEOF
 
20948
 
 
20949
cat >>$CONFIG_STATUS <<\_ACEOF
 
20950
# If no file are specified by the user, then we need to provide default
 
20951
# value.  By we need to know if files were specified by the user.
 
20952
ac_need_defaults=:
 
20953
while test $# != 0
 
20954
do
 
20955
  case $1 in
 
20956
  --*=*)
 
20957
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
20958
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
20959
    ac_shift=:
 
20960
    ;;
 
20961
  -*)
 
20962
    ac_option=$1
 
20963
    ac_optarg=$2
 
20964
    ac_shift=shift
 
20965
    ;;
 
20966
  *) # This is not an option, so the user has probably given explicit
 
20967
     # arguments.
 
20968
     ac_option=$1
 
20969
     ac_need_defaults=false;;
 
20970
  esac
 
20971
 
 
20972
  case $ac_option in
 
20973
  # Handling of the options.
 
20974
_ACEOF
 
20975
cat >>$CONFIG_STATUS <<\_ACEOF
 
20976
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
20977
    ac_cs_recheck=: ;;
 
20978
  --version | --vers* | -V )
 
20979
    echo "$ac_cs_version"; exit 0 ;;
 
20980
  --he | --h)
 
20981
    # Conflict between --help and --header
 
20982
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
20983
Try \`$0 --help' for more information." >&5
 
20984
echo "$as_me: error: ambiguous option: $1
 
20985
Try \`$0 --help' for more information." >&2;}
 
20986
   { (exit 1); exit 1; }; };;
 
20987
  --help | --hel | -h )
 
20988
    echo "$ac_cs_usage"; exit 0 ;;
 
20989
  --debug | --d* | -d )
 
20990
    debug=: ;;
 
20991
  --file | --fil | --fi | --f )
 
20992
    $ac_shift
 
20993
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
20994
    ac_need_defaults=false;;
 
20995
  --header | --heade | --head | --hea )
 
20996
    $ac_shift
 
20997
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
20998
    ac_need_defaults=false;;
 
20999
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
21000
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
21001
    ac_cs_silent=: ;;
 
21002
 
 
21003
  # This is an error.
 
21004
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
21005
Try \`$0 --help' for more information." >&5
 
21006
echo "$as_me: error: unrecognized option: $1
 
21007
Try \`$0 --help' for more information." >&2;}
 
21008
   { (exit 1); exit 1; }; } ;;
 
21009
 
 
21010
  *) ac_config_targets="$ac_config_targets $1" ;;
 
21011
 
 
21012
  esac
 
21013
  shift
 
21014
done
 
21015
 
 
21016
ac_configure_extra_args=
 
21017
 
 
21018
if $ac_cs_silent; then
 
21019
  exec 6>/dev/null
 
21020
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
21021
fi
 
21022
 
 
21023
_ACEOF
 
21024
cat >>$CONFIG_STATUS <<_ACEOF
 
21025
if \$ac_cs_recheck; then
 
21026
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21027
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21028
fi
 
21029
 
 
21030
_ACEOF
 
21031
 
 
21032
cat >>$CONFIG_STATUS <<_ACEOF
 
21033
#
 
21034
# INIT-COMMANDS section.
 
21035
#
 
21036
 
 
21037
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
21038
 
 
21039
_ACEOF
 
21040
 
 
21041
 
 
21042
 
 
21043
cat >>$CONFIG_STATUS <<\_ACEOF
 
21044
for ac_config_target in $ac_config_targets
 
21045
do
 
21046
  case "$ac_config_target" in
 
21047
  # Handling of arguments.
 
21048
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21049
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
21050
  "sxpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;;
 
21051
  "cxpm/Makefile" ) CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;;
 
21052
  "xpm.pc" ) CONFIG_FILES="$CONFIG_FILES xpm.pc" ;;
 
21053
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
21054
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21055
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
21056
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
21057
   { (exit 1); exit 1; }; };;
 
21058
  esac
 
21059
done
 
21060
 
 
21061
# If the user did not use the arguments to specify the items to instantiate,
 
21062
# then the envvar interface is used.  Set only those that are not.
 
21063
# We use the long form for the default assignment because of an extremely
 
21064
# bizarre bug on SunOS 4.1.3.
 
21065
if $ac_need_defaults; then
 
21066
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
21067
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
21068
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
21069
fi
 
21070
 
 
21071
# Have a temporary directory for convenience.  Make it in the build tree
 
21072
# simply because there is no reason to put it here, and in addition,
 
21073
# creating and moving files from /tmp can sometimes cause problems.
 
21074
# Create a temporary directory, and hook for its removal unless debugging.
 
21075
$debug ||
 
21076
{
 
21077
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
21078
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
21079
}
 
21080
 
 
21081
# Create a (secure) tmp directory for tmp files.
 
21082
 
 
21083
{
 
21084
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
21085
  test -n "$tmp" && test -d "$tmp"
 
21086
}  ||
 
21087
{
 
21088
  tmp=./confstat$$-$RANDOM
 
21089
  (umask 077 && mkdir $tmp)
 
21090
} ||
 
21091
{
 
21092
   echo "$me: cannot create a temporary directory in ." >&2
 
21093
   { (exit 1); exit 1; }
 
21094
}
 
21095
 
 
21096
_ACEOF
 
21097
 
 
21098
cat >>$CONFIG_STATUS <<_ACEOF
 
21099
 
 
21100
#
 
21101
# CONFIG_FILES section.
 
21102
#
 
21103
 
 
21104
# No need to generate the scripts if there are no CONFIG_FILES.
 
21105
# This happens for instance when ./config.status config.h
 
21106
if test -n "\$CONFIG_FILES"; then
 
21107
  # Protect against being on the right side of a sed subst in config.status.
 
21108
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
21109
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
21110
s,@SHELL@,$SHELL,;t t
 
21111
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
21112
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
21113
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
21114
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
21115
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
21116
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
21117
s,@exec_prefix@,$exec_prefix,;t t
 
21118
s,@prefix@,$prefix,;t t
 
21119
s,@program_transform_name@,$program_transform_name,;t t
 
21120
s,@bindir@,$bindir,;t t
 
21121
s,@sbindir@,$sbindir,;t t
 
21122
s,@libexecdir@,$libexecdir,;t t
 
21123
s,@datadir@,$datadir,;t t
 
21124
s,@sysconfdir@,$sysconfdir,;t t
 
21125
s,@sharedstatedir@,$sharedstatedir,;t t
 
21126
s,@localstatedir@,$localstatedir,;t t
 
21127
s,@libdir@,$libdir,;t t
 
21128
s,@includedir@,$includedir,;t t
 
21129
s,@oldincludedir@,$oldincludedir,;t t
 
21130
s,@infodir@,$infodir,;t t
 
21131
s,@mandir@,$mandir,;t t
 
21132
s,@build_alias@,$build_alias,;t t
 
21133
s,@host_alias@,$host_alias,;t t
 
21134
s,@target_alias@,$target_alias,;t t
 
21135
s,@DEFS@,$DEFS,;t t
 
21136
s,@ECHO_C@,$ECHO_C,;t t
 
21137
s,@ECHO_N@,$ECHO_N,;t t
 
21138
s,@ECHO_T@,$ECHO_T,;t t
 
21139
s,@LIBS@,$LIBS,;t t
 
21140
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
21141
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
21142
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
21143
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
21144
s,@PACKAGE@,$PACKAGE,;t t
 
21145
s,@VERSION@,$VERSION,;t t
 
21146
s,@ACLOCAL@,$ACLOCAL,;t t
 
21147
s,@AUTOCONF@,$AUTOCONF,;t t
 
21148
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
21149
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
21150
s,@MAKEINFO@,$MAKEINFO,;t t
 
21151
s,@install_sh@,$install_sh,;t t
 
21152
s,@STRIP@,$STRIP,;t t
 
21153
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
21154
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
21155
s,@mkdir_p@,$mkdir_p,;t t
 
21156
s,@AWK@,$AWK,;t t
 
21157
s,@SET_MAKE@,$SET_MAKE,;t t
 
21158
s,@am__leading_dot@,$am__leading_dot,;t t
 
21159
s,@AMTAR@,$AMTAR,;t t
 
21160
s,@am__tar@,$am__tar,;t t
 
21161
s,@am__untar@,$am__untar,;t t
 
21162
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
21163
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
21164
s,@MAINT@,$MAINT,;t t
 
21165
s,@build@,$build,;t t
 
21166
s,@build_cpu@,$build_cpu,;t t
 
21167
s,@build_vendor@,$build_vendor,;t t
 
21168
s,@build_os@,$build_os,;t t
 
21169
s,@host@,$host,;t t
 
21170
s,@host_cpu@,$host_cpu,;t t
 
21171
s,@host_vendor@,$host_vendor,;t t
 
21172
s,@host_os@,$host_os,;t t
 
21173
s,@CC@,$CC,;t t
 
21174
s,@CFLAGS@,$CFLAGS,;t t
 
21175
s,@LDFLAGS@,$LDFLAGS,;t t
 
21176
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
21177
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
21178
s,@EXEEXT@,$EXEEXT,;t t
 
21179
s,@OBJEXT@,$OBJEXT,;t t
 
21180
s,@DEPDIR@,$DEPDIR,;t t
 
21181
s,@am__include@,$am__include,;t t
 
21182
s,@am__quote@,$am__quote,;t t
 
21183
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
21184
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
21185
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
21186
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
21187
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
21188
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
21189
s,@EGREP@,$EGREP,;t t
 
21190
s,@LN_S@,$LN_S,;t t
 
21191
s,@ECHO@,$ECHO,;t t
 
21192
s,@AR@,$AR,;t t
 
21193
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
21194
s,@RANLIB@,$RANLIB,;t t
 
21195
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
21196
s,@CPP@,$CPP,;t t
 
21197
s,@CXX@,$CXX,;t t
 
21198
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
21199
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
21200
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
21201
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
21202
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
21203
s,@CXXCPP@,$CXXCPP,;t t
 
21204
s,@F77@,$F77,;t t
 
21205
s,@FFLAGS@,$FFLAGS,;t t
 
21206
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
21207
s,@LIBTOOL@,$LIBTOOL,;t t
 
21208
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
21209
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
 
21210
s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
 
21211
s,@XPM_LIBS@,$XPM_LIBS,;t t
 
21212
s,@SXPM_CFLAGS@,$SXPM_CFLAGS,;t t
 
21213
s,@SXPM_LIBS@,$SXPM_LIBS,;t t
 
21214
s,@BUILD_SXPM_TRUE@,$BUILD_SXPM_TRUE,;t t
 
21215
s,@BUILD_SXPM_FALSE@,$BUILD_SXPM_FALSE,;t t
 
21216
s,@LIBOBJS@,$LIBOBJS,;t t
 
21217
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
21218
CEOF
 
21219
 
 
21220
_ACEOF
 
21221
 
 
21222
  cat >>$CONFIG_STATUS <<\_ACEOF
 
21223
  # Split the substitutions into bite-sized pieces for seds with
 
21224
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
21225
  ac_max_sed_lines=48
 
21226
  ac_sed_frag=1 # Number of current file.
 
21227
  ac_beg=1 # First line for current file.
 
21228
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
21229
  ac_more_lines=:
 
21230
  ac_sed_cmds=
 
21231
  while $ac_more_lines; do
 
21232
    if test $ac_beg -gt 1; then
 
21233
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21234
    else
 
21235
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21236
    fi
 
21237
    if test ! -s $tmp/subs.frag; then
 
21238
      ac_more_lines=false
 
21239
    else
 
21240
      # The purpose of the label and of the branching condition is to
 
21241
      # speed up the sed processing (if there are no `@' at all, there
 
21242
      # is no need to browse any of the substitutions).
 
21243
      # These are the two extra sed commands mentioned above.
 
21244
      (echo ':t
 
21245
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
21246
      if test -z "$ac_sed_cmds"; then
 
21247
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
21248
      else
 
21249
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
21250
      fi
 
21251
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
21252
      ac_beg=$ac_end
 
21253
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
21254
    fi
 
21255
  done
 
21256
  if test -z "$ac_sed_cmds"; then
 
21257
    ac_sed_cmds=cat
 
21258
  fi
 
21259
fi # test -n "$CONFIG_FILES"
 
21260
 
 
21261
_ACEOF
 
21262
cat >>$CONFIG_STATUS <<\_ACEOF
 
21263
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
21264
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
21265
  case $ac_file in
 
21266
  - | *:- | *:-:* ) # input from stdin
 
21267
        cat >$tmp/stdin
 
21268
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21269
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21270
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21271
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21272
  * )   ac_file_in=$ac_file.in ;;
 
21273
  esac
 
21274
 
 
21275
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
21276
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21277
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21278
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21279
         X"$ac_file" : 'X\(//\)$' \| \
 
21280
         X"$ac_file" : 'X\(/\)' \| \
 
21281
         .     : '\(.\)' 2>/dev/null ||
 
21282
echo X"$ac_file" |
 
21283
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21284
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21285
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21286
          /^X\(\/\).*/{ s//\1/; q; }
 
21287
          s/.*/./; q'`
 
21288
  { if $as_mkdir_p; then
 
21289
    mkdir -p "$ac_dir"
 
21290
  else
 
21291
    as_dir="$ac_dir"
 
21292
    as_dirs=
 
21293
    while test ! -d "$as_dir"; do
 
21294
      as_dirs="$as_dir $as_dirs"
 
21295
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21296
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21297
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21298
         X"$as_dir" : 'X\(//\)$' \| \
 
21299
         X"$as_dir" : 'X\(/\)' \| \
 
21300
         .     : '\(.\)' 2>/dev/null ||
 
21301
echo X"$as_dir" |
 
21302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21303
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21304
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21305
          /^X\(\/\).*/{ s//\1/; q; }
 
21306
          s/.*/./; q'`
 
21307
    done
 
21308
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21309
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21310
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21311
   { (exit 1); exit 1; }; }; }
 
21312
 
 
21313
  ac_builddir=.
 
21314
 
 
21315
if test "$ac_dir" != .; then
 
21316
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21317
  # A "../" for each directory in $ac_dir_suffix.
 
21318
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21319
else
 
21320
  ac_dir_suffix= ac_top_builddir=
 
21321
fi
 
21322
 
 
21323
case $srcdir in
 
21324
  .)  # No --srcdir option.  We are building in place.
 
21325
    ac_srcdir=.
 
21326
    if test -z "$ac_top_builddir"; then
 
21327
       ac_top_srcdir=.
 
21328
    else
 
21329
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21330
    fi ;;
 
21331
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21332
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21333
    ac_top_srcdir=$srcdir ;;
 
21334
  *) # Relative path.
 
21335
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21336
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21337
esac
 
21338
 
 
21339
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21340
# the directories may not exist.
 
21341
case `pwd` in
 
21342
.) ac_abs_builddir="$ac_dir";;
 
21343
*)
 
21344
  case "$ac_dir" in
 
21345
  .) ac_abs_builddir=`pwd`;;
 
21346
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21347
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21348
  esac;;
 
21349
esac
 
21350
case $ac_abs_builddir in
 
21351
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21352
*)
 
21353
  case ${ac_top_builddir}. in
 
21354
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21355
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21356
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21357
  esac;;
 
21358
esac
 
21359
case $ac_abs_builddir in
 
21360
.) ac_abs_srcdir=$ac_srcdir;;
 
21361
*)
 
21362
  case $ac_srcdir in
 
21363
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21364
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21365
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21366
  esac;;
 
21367
esac
 
21368
case $ac_abs_builddir in
 
21369
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21370
*)
 
21371
  case $ac_top_srcdir in
 
21372
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21373
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21374
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21375
  esac;;
 
21376
esac
 
21377
 
 
21378
 
 
21379
  case $INSTALL in
 
21380
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
21381
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
21382
  esac
 
21383
 
 
21384
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21385
  # use $as_me), people would be surprised to read:
 
21386
  #    /* config.h.  Generated by config.status.  */
 
21387
  if test x"$ac_file" = x-; then
 
21388
    configure_input=
 
21389
  else
 
21390
    configure_input="$ac_file.  "
 
21391
  fi
 
21392
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
21393
                                     sed 's,.*/,,'` by configure."
 
21394
 
 
21395
  # First look for the input files in the build tree, otherwise in the
 
21396
  # src tree.
 
21397
  ac_file_inputs=`IFS=:
 
21398
    for f in $ac_file_in; do
 
21399
      case $f in
 
21400
      -) echo $tmp/stdin ;;
 
21401
      [\\/$]*)
 
21402
         # Absolute (can't be DOS-style, as IFS=:)
 
21403
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21404
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21405
   { (exit 1); exit 1; }; }
 
21406
         echo "$f";;
 
21407
      *) # Relative
 
21408
         if test -f "$f"; then
 
21409
           # Build tree
 
21410
           echo "$f"
 
21411
         elif test -f "$srcdir/$f"; then
 
21412
           # Source tree
 
21413
           echo "$srcdir/$f"
 
21414
         else
 
21415
           # /dev/null tree
 
21416
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21417
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21418
   { (exit 1); exit 1; }; }
 
21419
         fi;;
 
21420
      esac
 
21421
    done` || { (exit 1); exit 1; }
 
21422
 
 
21423
  if test x"$ac_file" != x-; then
 
21424
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21425
echo "$as_me: creating $ac_file" >&6;}
 
21426
    rm -f "$ac_file"
 
21427
  fi
 
21428
_ACEOF
 
21429
cat >>$CONFIG_STATUS <<_ACEOF
 
21430
  sed "$ac_vpsub
 
21431
$extrasub
 
21432
_ACEOF
 
21433
cat >>$CONFIG_STATUS <<\_ACEOF
 
21434
:t
 
21435
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21436
s,@configure_input@,$configure_input,;t t
 
21437
s,@srcdir@,$ac_srcdir,;t t
 
21438
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
21439
s,@top_srcdir@,$ac_top_srcdir,;t t
 
21440
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
21441
s,@builddir@,$ac_builddir,;t t
 
21442
s,@abs_builddir@,$ac_abs_builddir,;t t
 
21443
s,@top_builddir@,$ac_top_builddir,;t t
 
21444
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
21445
s,@INSTALL@,$ac_INSTALL,;t t
 
21446
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
21447
  rm -f $tmp/stdin
 
21448
  if test x"$ac_file" != x-; then
 
21449
    mv $tmp/out $ac_file
 
21450
  else
 
21451
    cat $tmp/out
 
21452
    rm -f $tmp/out
 
21453
  fi
 
21454
 
 
21455
done
 
21456
_ACEOF
 
21457
cat >>$CONFIG_STATUS <<\_ACEOF
 
21458
 
 
21459
#
 
21460
# CONFIG_HEADER section.
 
21461
#
 
21462
 
 
21463
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
21464
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
21465
#
 
21466
# ac_d sets the value in "#define NAME VALUE" lines.
 
21467
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
21468
ac_dB='[         ].*$,\1#\2'
 
21469
ac_dC=' '
 
21470
ac_dD=',;t'
 
21471
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
21472
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
21473
ac_uB='$,\1#\2define\3'
 
21474
ac_uC=' '
 
21475
ac_uD=',;t'
 
21476
 
 
21477
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
21478
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
21479
  case $ac_file in
 
21480
  - | *:- | *:-:* ) # input from stdin
 
21481
        cat >$tmp/stdin
 
21482
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21483
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21484
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21485
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21486
  * )   ac_file_in=$ac_file.in ;;
 
21487
  esac
 
21488
 
 
21489
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21490
echo "$as_me: creating $ac_file" >&6;}
 
21491
 
 
21492
  # First look for the input files in the build tree, otherwise in the
 
21493
  # src tree.
 
21494
  ac_file_inputs=`IFS=:
 
21495
    for f in $ac_file_in; do
 
21496
      case $f in
 
21497
      -) echo $tmp/stdin ;;
 
21498
      [\\/$]*)
 
21499
         # Absolute (can't be DOS-style, as IFS=:)
 
21500
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21501
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21502
   { (exit 1); exit 1; }; }
 
21503
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
21504
         echo "$f";;
 
21505
      *) # Relative
 
21506
         if test -f "$f"; then
 
21507
           # Build tree
 
21508
           echo "$f"
 
21509
         elif test -f "$srcdir/$f"; then
 
21510
           # Source tree
 
21511
           echo "$srcdir/$f"
 
21512
         else
 
21513
           # /dev/null tree
 
21514
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21515
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21516
   { (exit 1); exit 1; }; }
 
21517
         fi;;
 
21518
      esac
 
21519
    done` || { (exit 1); exit 1; }
 
21520
  # Remove the trailing spaces.
 
21521
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
21522
 
 
21523
_ACEOF
 
21524
 
 
21525
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
21526
# `conftest.undefs', that substitutes the proper values into
 
21527
# config.h.in to produce config.h.  The first handles `#define'
 
21528
# templates, and the second `#undef' templates.
 
21529
# And first: Protect against being on the right side of a sed subst in
 
21530
# config.status.  Protect against being in an unquoted here document
 
21531
# in config.status.
 
21532
rm -f conftest.defines conftest.undefs
 
21533
# Using a here document instead of a string reduces the quoting nightmare.
 
21534
# Putting comments in sed scripts is not portable.
 
21535
#
 
21536
# `end' is used to avoid that the second main sed command (meant for
 
21537
# 0-ary CPP macros) applies to n-ary macro definitions.
 
21538
# See the Autoconf documentation for `clear'.
 
21539
cat >confdef2sed.sed <<\_ACEOF
 
21540
s/[\\&,]/\\&/g
 
21541
s,[\\$`],\\&,g
 
21542
t clear
 
21543
: clear
 
21544
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
21545
t end
 
21546
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
21547
: end
 
21548
_ACEOF
 
21549
# If some macros were called several times there might be several times
 
21550
# the same #defines, which is useless.  Nevertheless, we may not want to
 
21551
# sort them, since we want the *last* AC-DEFINE to be honored.
 
21552
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
21553
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
21554
rm -f confdef2sed.sed
 
21555
 
 
21556
# This sed command replaces #undef with comments.  This is necessary, for
 
21557
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
21558
# on some systems where configure will not decide to define it.
 
21559
cat >>conftest.undefs <<\_ACEOF
 
21560
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
21561
_ACEOF
 
21562
 
 
21563
# Break up conftest.defines because some shells have a limit on the size
 
21564
# of here documents, and old seds have small limits too (100 cmds).
 
21565
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
21566
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
21567
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
21568
echo '  :' >>$CONFIG_STATUS
 
21569
rm -f conftest.tail
 
21570
while grep . conftest.defines >/dev/null
 
21571
do
 
21572
  # Write a limited-size here document to $tmp/defines.sed.
 
21573
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
21574
  # Speed up: don't consider the non `#define' lines.
 
21575
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
21576
  # Work around the forget-to-reset-the-flag bug.
 
21577
  echo 't clr' >>$CONFIG_STATUS
 
21578
  echo ': clr' >>$CONFIG_STATUS
 
21579
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
21580
  echo 'CEOF
 
21581
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
21582
  rm -f $tmp/in
 
21583
  mv $tmp/out $tmp/in
 
21584
' >>$CONFIG_STATUS
 
21585
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
21586
  rm -f conftest.defines
 
21587
  mv conftest.tail conftest.defines
 
21588
done
 
21589
rm -f conftest.defines
 
21590
echo '  fi # grep' >>$CONFIG_STATUS
 
21591
echo >>$CONFIG_STATUS
 
21592
 
 
21593
# Break up conftest.undefs because some shells have a limit on the size
 
21594
# of here documents, and old seds have small limits too (100 cmds).
 
21595
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
21596
rm -f conftest.tail
 
21597
while grep . conftest.undefs >/dev/null
 
21598
do
 
21599
  # Write a limited-size here document to $tmp/undefs.sed.
 
21600
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
21601
  # Speed up: don't consider the non `#undef'
 
21602
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
21603
  # Work around the forget-to-reset-the-flag bug.
 
21604
  echo 't clr' >>$CONFIG_STATUS
 
21605
  echo ': clr' >>$CONFIG_STATUS
 
21606
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
21607
  echo 'CEOF
 
21608
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
21609
  rm -f $tmp/in
 
21610
  mv $tmp/out $tmp/in
 
21611
' >>$CONFIG_STATUS
 
21612
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
21613
  rm -f conftest.undefs
 
21614
  mv conftest.tail conftest.undefs
 
21615
done
 
21616
rm -f conftest.undefs
 
21617
 
 
21618
cat >>$CONFIG_STATUS <<\_ACEOF
 
21619
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21620
  # use $as_me), people would be surprised to read:
 
21621
  #    /* config.h.  Generated by config.status.  */
 
21622
  if test x"$ac_file" = x-; then
 
21623
    echo "/* Generated by configure.  */" >$tmp/config.h
 
21624
  else
 
21625
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
21626
  fi
 
21627
  cat $tmp/in >>$tmp/config.h
 
21628
  rm -f $tmp/in
 
21629
  if test x"$ac_file" != x-; then
 
21630
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
21631
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
21632
echo "$as_me: $ac_file is unchanged" >&6;}
 
21633
    else
 
21634
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21635
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21636
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21637
         X"$ac_file" : 'X\(//\)$' \| \
 
21638
         X"$ac_file" : 'X\(/\)' \| \
 
21639
         .     : '\(.\)' 2>/dev/null ||
 
21640
echo X"$ac_file" |
 
21641
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21642
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21643
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21644
          /^X\(\/\).*/{ s//\1/; q; }
 
21645
          s/.*/./; q'`
 
21646
      { if $as_mkdir_p; then
 
21647
    mkdir -p "$ac_dir"
 
21648
  else
 
21649
    as_dir="$ac_dir"
 
21650
    as_dirs=
 
21651
    while test ! -d "$as_dir"; do
 
21652
      as_dirs="$as_dir $as_dirs"
 
21653
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21654
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21655
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21656
         X"$as_dir" : 'X\(//\)$' \| \
 
21657
         X"$as_dir" : 'X\(/\)' \| \
 
21658
         .     : '\(.\)' 2>/dev/null ||
 
21659
echo X"$as_dir" |
 
21660
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21661
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21662
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21663
          /^X\(\/\).*/{ s//\1/; q; }
 
21664
          s/.*/./; q'`
 
21665
    done
 
21666
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21667
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21668
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21669
   { (exit 1); exit 1; }; }; }
 
21670
 
 
21671
      rm -f $ac_file
 
21672
      mv $tmp/config.h $ac_file
 
21673
    fi
 
21674
  else
 
21675
    cat $tmp/config.h
 
21676
    rm -f $tmp/config.h
 
21677
  fi
 
21678
# Compute $ac_file's index in $config_headers.
 
21679
_am_stamp_count=1
 
21680
for _am_header in $config_headers :; do
 
21681
  case $_am_header in
 
21682
    $ac_file | $ac_file:* )
 
21683
      break ;;
 
21684
    * )
 
21685
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
21686
  esac
 
21687
done
 
21688
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
21689
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21690
         X$ac_file : 'X\(//\)[^/]' \| \
 
21691
         X$ac_file : 'X\(//\)$' \| \
 
21692
         X$ac_file : 'X\(/\)' \| \
 
21693
         .     : '\(.\)' 2>/dev/null ||
 
21694
echo X$ac_file |
 
21695
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21696
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21697
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21698
          /^X\(\/\).*/{ s//\1/; q; }
 
21699
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
21700
done
 
21701
_ACEOF
 
21702
cat >>$CONFIG_STATUS <<\_ACEOF
 
21703
 
 
21704
#
 
21705
# CONFIG_COMMANDS section.
 
21706
#
 
21707
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
21708
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
21709
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21710
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
21711
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21712
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
21713
         X"$ac_dest" : 'X\(//\)$' \| \
 
21714
         X"$ac_dest" : 'X\(/\)' \| \
 
21715
         .     : '\(.\)' 2>/dev/null ||
 
21716
echo X"$ac_dest" |
 
21717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21719
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21720
          /^X\(\/\).*/{ s//\1/; q; }
 
21721
          s/.*/./; q'`
 
21722
  { if $as_mkdir_p; then
 
21723
    mkdir -p "$ac_dir"
 
21724
  else
 
21725
    as_dir="$ac_dir"
 
21726
    as_dirs=
 
21727
    while test ! -d "$as_dir"; do
 
21728
      as_dirs="$as_dir $as_dirs"
 
21729
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21730
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21731
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21732
         X"$as_dir" : 'X\(//\)$' \| \
 
21733
         X"$as_dir" : 'X\(/\)' \| \
 
21734
         .     : '\(.\)' 2>/dev/null ||
 
21735
echo X"$as_dir" |
 
21736
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21737
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21738
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21739
          /^X\(\/\).*/{ s//\1/; q; }
 
21740
          s/.*/./; q'`
 
21741
    done
 
21742
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21743
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21744
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21745
   { (exit 1); exit 1; }; }; }
 
21746
 
 
21747
  ac_builddir=.
 
21748
 
 
21749
if test "$ac_dir" != .; then
 
21750
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21751
  # A "../" for each directory in $ac_dir_suffix.
 
21752
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21753
else
 
21754
  ac_dir_suffix= ac_top_builddir=
 
21755
fi
 
21756
 
 
21757
case $srcdir in
 
21758
  .)  # No --srcdir option.  We are building in place.
 
21759
    ac_srcdir=.
 
21760
    if test -z "$ac_top_builddir"; then
 
21761
       ac_top_srcdir=.
 
21762
    else
 
21763
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21764
    fi ;;
 
21765
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21766
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21767
    ac_top_srcdir=$srcdir ;;
 
21768
  *) # Relative path.
 
21769
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21770
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21771
esac
 
21772
 
 
21773
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21774
# the directories may not exist.
 
21775
case `pwd` in
 
21776
.) ac_abs_builddir="$ac_dir";;
 
21777
*)
 
21778
  case "$ac_dir" in
 
21779
  .) ac_abs_builddir=`pwd`;;
 
21780
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21781
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21782
  esac;;
 
21783
esac
 
21784
case $ac_abs_builddir in
 
21785
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21786
*)
 
21787
  case ${ac_top_builddir}. in
 
21788
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21789
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21790
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21791
  esac;;
 
21792
esac
 
21793
case $ac_abs_builddir in
 
21794
.) ac_abs_srcdir=$ac_srcdir;;
 
21795
*)
 
21796
  case $ac_srcdir in
 
21797
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21798
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21799
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21800
  esac;;
 
21801
esac
 
21802
case $ac_abs_builddir in
 
21803
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21804
*)
 
21805
  case $ac_top_srcdir in
 
21806
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21807
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21808
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21809
  esac;;
 
21810
esac
 
21811
 
 
21812
 
 
21813
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
21814
echo "$as_me: executing $ac_dest commands" >&6;}
 
21815
  case $ac_dest in
 
21816
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
21817
  # Strip MF so we end up with the name of the file.
 
21818
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21819
  # Check whether this is an Automake generated Makefile or not.
 
21820
  # We used to match only the files named `Makefile.in', but
 
21821
  # some people rename them; so instead we look at the file content.
 
21822
  # Grep'ing the first line is not enough: some people post-process
 
21823
  # each Makefile.in and add a new line on top of each file to say so.
 
21824
  # So let's grep whole file.
 
21825
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
21826
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
21827
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21828
         X"$mf" : 'X\(//\)[^/]' \| \
 
21829
         X"$mf" : 'X\(//\)$' \| \
 
21830
         X"$mf" : 'X\(/\)' \| \
 
21831
         .     : '\(.\)' 2>/dev/null ||
 
21832
echo X"$mf" |
 
21833
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21834
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21835
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21836
          /^X\(\/\).*/{ s//\1/; q; }
 
21837
          s/.*/./; q'`
 
21838
  else
 
21839
    continue
 
21840
  fi
 
21841
  # Extract the definition of DEPDIR, am__include, and am__quote
 
21842
  # from the Makefile without running `make'.
 
21843
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21844
  test -z "$DEPDIR" && continue
 
21845
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
21846
  test -z "am__include" && continue
 
21847
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
21848
  # When using ansi2knr, U may be empty or an underscore; expand it
 
21849
  U=`sed -n 's/^U = //p' < "$mf"`
 
21850
  # Find all dependency output files, they are included files with
 
21851
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
21852
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
21853
  # expansion.
 
21854
  for file in `sed -n "
 
21855
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
21856
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
21857
    # Make sure the directory exists.
 
21858
    test -f "$dirpart/$file" && continue
 
21859
    fdir=`(dirname "$file") 2>/dev/null ||
 
21860
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21861
         X"$file" : 'X\(//\)[^/]' \| \
 
21862
         X"$file" : 'X\(//\)$' \| \
 
21863
         X"$file" : 'X\(/\)' \| \
 
21864
         .     : '\(.\)' 2>/dev/null ||
 
21865
echo X"$file" |
 
21866
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21867
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21868
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21869
          /^X\(\/\).*/{ s//\1/; q; }
 
21870
          s/.*/./; q'`
 
21871
    { if $as_mkdir_p; then
 
21872
    mkdir -p $dirpart/$fdir
 
21873
  else
 
21874
    as_dir=$dirpart/$fdir
 
21875
    as_dirs=
 
21876
    while test ! -d "$as_dir"; do
 
21877
      as_dirs="$as_dir $as_dirs"
 
21878
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21879
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21880
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21881
         X"$as_dir" : 'X\(//\)$' \| \
 
21882
         X"$as_dir" : 'X\(/\)' \| \
 
21883
         .     : '\(.\)' 2>/dev/null ||
 
21884
echo X"$as_dir" |
 
21885
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21886
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21887
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21888
          /^X\(\/\).*/{ s//\1/; q; }
 
21889
          s/.*/./; q'`
 
21890
    done
 
21891
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21892
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
21893
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
21894
   { (exit 1); exit 1; }; }; }
 
21895
 
 
21896
    # echo "creating $dirpart/$file"
 
21897
    echo '# dummy' > "$dirpart/$file"
 
21898
  done
 
21899
done
 
21900
 ;;
 
21901
  esac
 
21902
done
 
21903
_ACEOF
 
21904
 
 
21905
cat >>$CONFIG_STATUS <<\_ACEOF
 
21906
 
 
21907
{ (exit 0); exit 0; }
 
21908
_ACEOF
 
21909
chmod +x $CONFIG_STATUS
 
21910
ac_clean_files=$ac_clean_files_save
 
21911
 
 
21912
 
 
21913
# configure is writing to config.log, and then calls config.status.
 
21914
# config.status does its own redirection, appending to config.log.
 
21915
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21916
# by configure, so config.status won't be able to write to it; its
 
21917
# output is simply discarded.  So we exec the FD to /dev/null,
 
21918
# effectively closing config.log, so it can be properly (re)opened and
 
21919
# appended to by config.status.  When coming back to configure, we
 
21920
# need to make the FD available again.
 
21921
if test "$no_create" != yes; then
 
21922
  ac_cs_success=:
 
21923
  ac_config_status_args=
 
21924
  test "$silent" = yes &&
 
21925
    ac_config_status_args="$ac_config_status_args --quiet"
 
21926
  exec 5>/dev/null
 
21927
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21928
  exec 5>>config.log
 
21929
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21930
  # would make configure fail if this is the last instruction.
 
21931
  $ac_cs_success || { (exit 1); exit 1; }
 
21932
fi
 
21933