~ubuntu-branches/ubuntu/hardy/trousers/hardy-proposed

« back to all changes in this revision

Viewing changes to autom4te.cache/output.1

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-01-23 22:03:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080123220300-fhtqja3c0oq0gp6z
Tags: 0.3.1-4
* Added patch from Aaron M. Ucko <ucko@debian.org> to allow trousers to
  build successfully on amd64, and presumably also other 64-bit
  architectures (Closes: #457400).
* Including udev rule for /dev/tpm from William Lima
  <wlima.amadeus@gmail.com> as suggested by David Smith <dds@google.com>
  (Closes: #459682).
* Added lintian overrides.

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 trousers 0.2.9.1.
4
 
@%:@
5
 
@%:@ Report bugs to <trousers-tech@lists.sf.net>.
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
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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='trousers'
425
 
PACKAGE_TARNAME='trousers'
426
 
PACKAGE_VERSION='0.2.9.1'
427
 
PACKAGE_STRING='trousers 0.2.9.1'
428
 
PACKAGE_BUGREPORT='trousers-tech@lists.sf.net'
429
 
 
430
 
# Factoring default headers for most tests.
431
 
ac_includes_default="\
432
 
#include <stdio.h>
433
 
#if HAVE_SYS_TYPES_H
434
 
# include <sys/types.h>
435
 
#endif
436
 
#if HAVE_SYS_STAT_H
437
 
# include <sys/stat.h>
438
 
#endif
439
 
#if STDC_HEADERS
440
 
# include <stdlib.h>
441
 
# include <stddef.h>
442
 
#else
443
 
# if HAVE_STDLIB_H
444
 
#  include <stdlib.h>
445
 
# endif
446
 
#endif
447
 
#if HAVE_STRING_H
448
 
# if !STDC_HEADERS && HAVE_MEMORY_H
449
 
#  include <memory.h>
450
 
# endif
451
 
# include <string.h>
452
 
#endif
453
 
#if HAVE_STRINGS_H
454
 
# include <strings.h>
455
 
#endif
456
 
#if HAVE_INTTYPES_H
457
 
# include <inttypes.h>
458
 
#else
459
 
# if HAVE_STDINT_H
460
 
#  include <stdint.h>
461
 
# endif
462
 
#endif
463
 
#if HAVE_UNISTD_H
464
 
# include <unistd.h>
465
 
#endif"
466
 
 
467
 
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 OPENSSL_LIB_DIR 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 CRYPTO_PACKAGE HAVE_GTK_TRUE HAVE_GTK_FALSE PKG_CONFIG GTK_CFLAGS GTK_LIBS 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 TCSD_DEFAULT_PORT LIB@&t@OBJS LTLIBOBJS'
468
 
ac_subst_files=''
469
 
 
470
 
# Initialize some variables set by options.
471
 
ac_init_help=
472
 
ac_init_version=false
473
 
# The variables have the same names as the options, with
474
 
# dashes changed to underlines.
475
 
cache_file=/dev/null
476
 
exec_prefix=NONE
477
 
no_create=
478
 
no_recursion=
479
 
prefix=NONE
480
 
program_prefix=NONE
481
 
program_suffix=NONE
482
 
program_transform_name=s,x,x,
483
 
silent=
484
 
site=
485
 
srcdir=
486
 
verbose=
487
 
x_includes=NONE
488
 
x_libraries=NONE
489
 
 
490
 
# Installation directory options.
491
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
492
 
# and all the variables that are supposed to be based on exec_prefix
493
 
# by default will actually change.
494
 
# Use braces instead of parens because sh, perl, etc. also accept them.
495
 
bindir='${exec_prefix}/bin'
496
 
sbindir='${exec_prefix}/sbin'
497
 
libexecdir='${exec_prefix}/libexec'
498
 
datadir='${prefix}/share'
499
 
sysconfdir='${prefix}/etc'
500
 
sharedstatedir='${prefix}/com'
501
 
localstatedir='${prefix}/var'
502
 
libdir='${exec_prefix}/lib'
503
 
includedir='${prefix}/include'
504
 
oldincludedir='/usr/include'
505
 
infodir='${prefix}/info'
506
 
mandir='${prefix}/man'
507
 
 
508
 
ac_prev=
509
 
for ac_option
510
 
do
511
 
  # If the previous option needs an argument, assign it.
512
 
  if test -n "$ac_prev"; then
513
 
    eval "$ac_prev=\$ac_option"
514
 
    ac_prev=
515
 
    continue
516
 
  fi
517
 
 
518
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
 
 
520
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
521
 
 
522
 
  case $ac_option in
523
 
 
524
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525
 
    ac_prev=bindir ;;
526
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527
 
    bindir=$ac_optarg ;;
528
 
 
529
 
  -build | --build | --buil | --bui | --bu)
530
 
    ac_prev=build_alias ;;
531
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532
 
    build_alias=$ac_optarg ;;
533
 
 
534
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
535
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536
 
    ac_prev=cache_file ;;
537
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539
 
    cache_file=$ac_optarg ;;
540
 
 
541
 
  --config-cache | -C)
542
 
    cache_file=config.cache ;;
543
 
 
544
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545
 
    ac_prev=datadir ;;
546
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547
 
  | --da=*)
548
 
    datadir=$ac_optarg ;;
549
 
 
550
 
  -disable-* | --disable-*)
551
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
 
    # Reject names that are not valid shell variable names.
553
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
 
   { (exit 1); exit 1; }; }
556
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
 
    eval "enable_$ac_feature=no" ;;
558
 
 
559
 
  -enable-* | --enable-*)
560
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561
 
    # Reject names that are not valid shell variable names.
562
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
 
   { (exit 1); exit 1; }; }
565
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566
 
    case $ac_option in
567
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568
 
      *) ac_optarg=yes ;;
569
 
    esac
570
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
571
 
 
572
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574
 
  | --exec | --exe | --ex)
575
 
    ac_prev=exec_prefix ;;
576
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578
 
  | --exec=* | --exe=* | --ex=*)
579
 
    exec_prefix=$ac_optarg ;;
580
 
 
581
 
  -gas | --gas | --ga | --g)
582
 
    # Obsolete; use --with-gas.
583
 
    with_gas=yes ;;
584
 
 
585
 
  -help | --help | --hel | --he | -h)
586
 
    ac_init_help=long ;;
587
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588
 
    ac_init_help=recursive ;;
589
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590
 
    ac_init_help=short ;;
591
 
 
592
 
  -host | --host | --hos | --ho)
593
 
    ac_prev=host_alias ;;
594
 
  -host=* | --host=* | --hos=* | --ho=*)
595
 
    host_alias=$ac_optarg ;;
596
 
 
597
 
  -includedir | --includedir | --includedi | --included | --include \
598
 
  | --includ | --inclu | --incl | --inc)
599
 
    ac_prev=includedir ;;
600
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
602
 
    includedir=$ac_optarg ;;
603
 
 
604
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
605
 
    ac_prev=infodir ;;
606
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607
 
    infodir=$ac_optarg ;;
608
 
 
609
 
  -libdir | --libdir | --libdi | --libd)
610
 
    ac_prev=libdir ;;
611
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612
 
    libdir=$ac_optarg ;;
613
 
 
614
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615
 
  | --libexe | --libex | --libe)
616
 
    ac_prev=libexecdir ;;
617
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618
 
  | --libexe=* | --libex=* | --libe=*)
619
 
    libexecdir=$ac_optarg ;;
620
 
 
621
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
622
 
  | --localstate | --localstat | --localsta | --localst \
623
 
  | --locals | --local | --loca | --loc | --lo)
624
 
    ac_prev=localstatedir ;;
625
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628
 
    localstatedir=$ac_optarg ;;
629
 
 
630
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631
 
    ac_prev=mandir ;;
632
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633
 
    mandir=$ac_optarg ;;
634
 
 
635
 
  -nfp | --nfp | --nf)
636
 
    # Obsolete; use --without-fp.
637
 
    with_fp=no ;;
638
 
 
639
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640
 
  | --no-cr | --no-c | -n)
641
 
    no_create=yes ;;
642
 
 
643
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645
 
    no_recursion=yes ;;
646
 
 
647
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649
 
  | --oldin | --oldi | --old | --ol | --o)
650
 
    ac_prev=oldincludedir ;;
651
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654
 
    oldincludedir=$ac_optarg ;;
655
 
 
656
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657
 
    ac_prev=prefix ;;
658
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659
 
    prefix=$ac_optarg ;;
660
 
 
661
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662
 
  | --program-pre | --program-pr | --program-p)
663
 
    ac_prev=program_prefix ;;
664
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666
 
    program_prefix=$ac_optarg ;;
667
 
 
668
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669
 
  | --program-suf | --program-su | --program-s)
670
 
    ac_prev=program_suffix ;;
671
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673
 
    program_suffix=$ac_optarg ;;
674
 
 
675
 
  -program-transform-name | --program-transform-name \
676
 
  | --program-transform-nam | --program-transform-na \
677
 
  | --program-transform-n | --program-transform- \
678
 
  | --program-transform | --program-transfor \
679
 
  | --program-transfo | --program-transf \
680
 
  | --program-trans | --program-tran \
681
 
  | --progr-tra | --program-tr | --program-t)
682
 
    ac_prev=program_transform_name ;;
683
 
  -program-transform-name=* | --program-transform-name=* \
684
 
  | --program-transform-nam=* | --program-transform-na=* \
685
 
  | --program-transform-n=* | --program-transform-=* \
686
 
  | --program-transform=* | --program-transfor=* \
687
 
  | --program-transfo=* | --program-transf=* \
688
 
  | --program-trans=* | --program-tran=* \
689
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
690
 
    program_transform_name=$ac_optarg ;;
691
 
 
692
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
 
  | -silent | --silent | --silen | --sile | --sil)
694
 
    silent=yes ;;
695
 
 
696
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697
 
    ac_prev=sbindir ;;
698
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699
 
  | --sbi=* | --sb=*)
700
 
    sbindir=$ac_optarg ;;
701
 
 
702
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704
 
  | --sharedst | --shareds | --shared | --share | --shar \
705
 
  | --sha | --sh)
706
 
    ac_prev=sharedstatedir ;;
707
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710
 
  | --sha=* | --sh=*)
711
 
    sharedstatedir=$ac_optarg ;;
712
 
 
713
 
  -site | --site | --sit)
714
 
    ac_prev=site ;;
715
 
  -site=* | --site=* | --sit=*)
716
 
    site=$ac_optarg ;;
717
 
 
718
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719
 
    ac_prev=srcdir ;;
720
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721
 
    srcdir=$ac_optarg ;;
722
 
 
723
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724
 
  | --syscon | --sysco | --sysc | --sys | --sy)
725
 
    ac_prev=sysconfdir ;;
726
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728
 
    sysconfdir=$ac_optarg ;;
729
 
 
730
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
731
 
    ac_prev=target_alias ;;
732
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733
 
    target_alias=$ac_optarg ;;
734
 
 
735
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736
 
    verbose=yes ;;
737
 
 
738
 
  -version | --version | --versio | --versi | --vers | -V)
739
 
    ac_init_version=: ;;
740
 
 
741
 
  -with-* | --with-*)
742
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743
 
    # Reject names that are not valid shell variable names.
744
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
746
 
   { (exit 1); exit 1; }; }
747
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
748
 
    case $ac_option in
749
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750
 
      *) ac_optarg=yes ;;
751
 
    esac
752
 
    eval "with_$ac_package='$ac_optarg'" ;;
753
 
 
754
 
  -without-* | --without-*)
755
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756
 
    # Reject names that are not valid shell variable names.
757
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
759
 
   { (exit 1); exit 1; }; }
760
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
761
 
    eval "with_$ac_package=no" ;;
762
 
 
763
 
  --x)
764
 
    # Obsolete; use --with-x.
765
 
    with_x=yes ;;
766
 
 
767
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768
 
  | --x-incl | --x-inc | --x-in | --x-i)
769
 
    ac_prev=x_includes ;;
770
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772
 
    x_includes=$ac_optarg ;;
773
 
 
774
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776
 
    ac_prev=x_libraries ;;
777
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779
 
    x_libraries=$ac_optarg ;;
780
 
 
781
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
782
 
Try \`$0 --help' for more information." >&2
783
 
   { (exit 1); exit 1; }; }
784
 
    ;;
785
 
 
786
 
  *=*)
787
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788
 
    # Reject names that are not valid shell variable names.
789
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
 
   { (exit 1); exit 1; }; }
792
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
 
    eval "$ac_envvar='$ac_optarg'"
794
 
    export $ac_envvar ;;
795
 
 
796
 
  *)
797
 
    # FIXME: should be removed in autoconf 3.0.
798
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802
 
    ;;
803
 
 
804
 
  esac
805
 
done
806
 
 
807
 
if test -n "$ac_prev"; then
808
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
810
 
   { (exit 1); exit 1; }; }
811
 
fi
812
 
 
813
 
# Be sure to have absolute paths.
814
 
for ac_var in exec_prefix prefix
815
 
do
816
 
  eval ac_val=$`echo $ac_var`
817
 
  case $ac_val in
818
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
 
   { (exit 1); exit 1; }; };;
821
 
  esac
822
 
done
823
 
 
824
 
# Be sure to have absolute paths.
825
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
 
              localstatedir libdir includedir oldincludedir infodir mandir
827
 
do
828
 
  eval ac_val=$`echo $ac_var`
829
 
  case $ac_val in
830
 
    [\\/$]* | ?:[\\/]* ) ;;
831
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
 
   { (exit 1); exit 1; }; };;
833
 
  esac
834
 
done
835
 
 
836
 
# There might be people who depend on the old broken behavior: `$host'
837
 
# used to hold the argument of --host etc.
838
 
# FIXME: To remove some day.
839
 
build=$build_alias
840
 
host=$host_alias
841
 
target=$target_alias
842
 
 
843
 
# FIXME: To remove some day.
844
 
if test "x$host_alias" != x; then
845
 
  if test "x$build_alias" = x; then
846
 
    cross_compiling=maybe
847
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848
 
    If a cross compiler is detected then cross compile mode will be used." >&2
849
 
  elif test "x$build_alias" != "x$host_alias"; then
850
 
    cross_compiling=yes
851
 
  fi
852
 
fi
853
 
 
854
 
ac_tool_prefix=
855
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
 
 
857
 
test "$silent" = yes && exec 6>/dev/null
858
 
 
859
 
 
860
 
# Find the source files, if location was not specified.
861
 
if test -z "$srcdir"; then
862
 
  ac_srcdir_defaulted=yes
863
 
  # Try the directory containing this script, then its parent.
864
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
865
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
 
         X"$0" : 'X\(//\)[^/]' \| \
867
 
         X"$0" : 'X\(//\)$' \| \
868
 
         X"$0" : 'X\(/\)' \| \
869
 
         .     : '\(.\)' 2>/dev/null ||
870
 
echo X"$0" |
871
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
 
          /^X\(\/\/\)$/{ s//\1/; q; }
874
 
          /^X\(\/\).*/{ s//\1/; q; }
875
 
          s/.*/./; q'`
876
 
  srcdir=$ac_confdir
877
 
  if test ! -r $srcdir/$ac_unique_file; then
878
 
    srcdir=..
879
 
  fi
880
 
else
881
 
  ac_srcdir_defaulted=no
882
 
fi
883
 
if test ! -r $srcdir/$ac_unique_file; then
884
 
  if test "$ac_srcdir_defaulted" = yes; then
885
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
 
   { (exit 1); exit 1; }; }
887
 
  else
888
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
 
   { (exit 1); exit 1; }; }
890
 
  fi
891
 
fi
892
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
 
   { (exit 1); exit 1; }; }
895
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
 
ac_env_build_alias_set=${build_alias+set}
897
 
ac_env_build_alias_value=$build_alias
898
 
ac_cv_env_build_alias_set=${build_alias+set}
899
 
ac_cv_env_build_alias_value=$build_alias
900
 
ac_env_host_alias_set=${host_alias+set}
901
 
ac_env_host_alias_value=$host_alias
902
 
ac_cv_env_host_alias_set=${host_alias+set}
903
 
ac_cv_env_host_alias_value=$host_alias
904
 
ac_env_target_alias_set=${target_alias+set}
905
 
ac_env_target_alias_value=$target_alias
906
 
ac_cv_env_target_alias_set=${target_alias+set}
907
 
ac_cv_env_target_alias_value=$target_alias
908
 
ac_env_CC_set=${CC+set}
909
 
ac_env_CC_value=$CC
910
 
ac_cv_env_CC_set=${CC+set}
911
 
ac_cv_env_CC_value=$CC
912
 
ac_env_CFLAGS_set=${CFLAGS+set}
913
 
ac_env_CFLAGS_value=$CFLAGS
914
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
 
ac_cv_env_CFLAGS_value=$CFLAGS
916
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
 
ac_env_LDFLAGS_value=$LDFLAGS
918
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
 
ac_env_CPPFLAGS_value=$CPPFLAGS
922
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
 
ac_env_CPP_set=${CPP+set}
925
 
ac_env_CPP_value=$CPP
926
 
ac_cv_env_CPP_set=${CPP+set}
927
 
ac_cv_env_CPP_value=$CPP
928
 
ac_env_CXX_set=${CXX+set}
929
 
ac_env_CXX_value=$CXX
930
 
ac_cv_env_CXX_set=${CXX+set}
931
 
ac_cv_env_CXX_value=$CXX
932
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
 
ac_env_CXXFLAGS_value=$CXXFLAGS
934
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
 
ac_env_CXXCPP_set=${CXXCPP+set}
937
 
ac_env_CXXCPP_value=$CXXCPP
938
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
 
ac_cv_env_CXXCPP_value=$CXXCPP
940
 
ac_env_F77_set=${F77+set}
941
 
ac_env_F77_value=$F77
942
 
ac_cv_env_F77_set=${F77+set}
943
 
ac_cv_env_F77_value=$F77
944
 
ac_env_FFLAGS_set=${FFLAGS+set}
945
 
ac_env_FFLAGS_value=$FFLAGS
946
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
 
ac_cv_env_FFLAGS_value=$FFLAGS
948
 
 
949
 
#
950
 
# Report the --help message.
951
 
#
952
 
if test "$ac_init_help" = "long"; then
953
 
  # Omit some internal or obsolete options to make the list less imposing.
954
 
  # This message is too long to be a string in the A/UX 3.1 sh.
955
 
  cat <<_ACEOF
956
 
\`configure' configures trousers 0.2.9.1 to adapt to many kinds of systems.
957
 
 
958
 
Usage: $0 [OPTION]... [VAR=VALUE]...
959
 
 
960
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
961
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
962
 
 
963
 
Defaults for the options are specified in brackets.
964
 
 
965
 
Configuration:
966
 
  -h, --help              display this help and exit
967
 
      --help=short        display options specific to this package
968
 
      --help=recursive    display the short help of all the included packages
969
 
  -V, --version           display version information and exit
970
 
  -q, --quiet, --silent   do not print \`checking...' messages
971
 
      --cache-file=FILE   cache test results in FILE [disabled]
972
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
973
 
  -n, --no-create         do not create output files
974
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
 
 
976
 
_ACEOF
977
 
 
978
 
  cat <<_ACEOF
979
 
Installation directories:
980
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
981
 
                          [$ac_default_prefix]
982
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983
 
                          [PREFIX]
984
 
 
985
 
By default, \`make install' will install all the files in
986
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988
 
for instance \`--prefix=\$HOME'.
989
 
 
990
 
For better control, use the options below.
991
 
 
992
 
Fine tuning of the installation directories:
993
 
  --bindir=DIR           user executables [EPREFIX/bin]
994
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
996
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1001
 
  --includedir=DIR       C header files [PREFIX/include]
1002
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003
 
  --infodir=DIR          info documentation [PREFIX/info]
1004
 
  --mandir=DIR           man documentation [PREFIX/man]
1005
 
_ACEOF
1006
 
 
1007
 
  cat <<\_ACEOF
1008
 
 
1009
 
Program names:
1010
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1011
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1012
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
 
 
1014
 
System types:
1015
 
  --build=BUILD     configure for building on BUILD [guessed]
1016
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
1018
 
_ACEOF
1019
 
fi
1020
 
 
1021
 
if test -n "$ac_init_help"; then
1022
 
  case $ac_init_help in
1023
 
     short | recursive ) echo "Configuration of trousers 0.2.9.1:";;
1024
 
   esac
1025
 
  cat <<\_ACEOF
1026
 
 
1027
 
Optional Features:
1028
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030
 
  --enable-debug          turn on all trousers debugging flags
1031
 
                          default, is, off
1032
 
  --disable-dependency-tracking  speeds up one-time build
1033
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1034
 
  --enable-gcov           turn on gcov code coverage flags [default=off]
1035
 
  --enable-gprof          enable profiling with gprof [default=off]
1036
 
  --enable-policy-copying enable copying the default policy when a new working
1037
 
                          object is created (not spec compliant) [default=off]
1038
 
  --enable-strict-spec-compliance 
1039
 
                          build TrouSerS as strictly spec compliant
1040
 
                          [default=off]
1041
 
  --enable-static@<:@=PKGS@:>@ 
1042
 
                          build static libraries @<:@default=no@:>@
1043
 
  --enable-shared@<:@=PKGS@:>@ 
1044
 
                          build shared libraries @<:@default=yes@:>@
1045
 
  --enable-fast-install@<:@=PKGS@:>@ 
1046
 
                          optimize for fast installation @<:@default=yes@:>@
1047
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1048
 
 
1049
 
Optional Packages:
1050
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052
 
  --with-openssl=PATH     Location of openssl libs/includes
1053
 
  --with-gui              type of gui popup (gtk/none) [default=gtk]
1054
 
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1055
 
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1056
 
                          both@:>@
1057
 
  --with-tags@<:@=TAGS@:>@ 
1058
 
                          include additional configurations @<:@automatic@:>@
1059
 
 
1060
 
Some influential environment variables:
1061
 
  CC          C compiler command
1062
 
  CFLAGS      C compiler flags
1063
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064
 
              nonstandard directory <lib dir>
1065
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066
 
              headers in a nonstandard directory <include dir>
1067
 
  CPP         C preprocessor
1068
 
  CXX         C++ compiler command
1069
 
  CXXFLAGS    C++ compiler flags
1070
 
  CXXCPP      C++ preprocessor
1071
 
  F77         Fortran 77 compiler command
1072
 
  FFLAGS      Fortran 77 compiler flags
1073
 
 
1074
 
Use these variables to override the choices made by `configure' or to help
1075
 
it to find libraries and programs with nonstandard names/locations.
1076
 
 
1077
 
Report bugs to <trousers-tech@lists.sf.net>.
1078
 
_ACEOF
1079
 
fi
1080
 
 
1081
 
if test "$ac_init_help" = "recursive"; then
1082
 
  # If there are subdirs, report their specific --help.
1083
 
  ac_popdir=`pwd`
1084
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085
 
    test -d $ac_dir || continue
1086
 
    ac_builddir=.
1087
 
 
1088
 
if test "$ac_dir" != .; then
1089
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090
 
  # A "../" for each directory in $ac_dir_suffix.
1091
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092
 
else
1093
 
  ac_dir_suffix= ac_top_builddir=
1094
 
fi
1095
 
 
1096
 
case $srcdir in
1097
 
  .)  # No --srcdir option.  We are building in place.
1098
 
    ac_srcdir=.
1099
 
    if test -z "$ac_top_builddir"; then
1100
 
       ac_top_srcdir=.
1101
 
    else
1102
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103
 
    fi ;;
1104
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
1105
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1106
 
    ac_top_srcdir=$srcdir ;;
1107
 
  *) # Relative path.
1108
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110
 
esac
1111
 
 
1112
 
# Do not use `cd foo && pwd` to compute absolute paths, because
1113
 
# the directories may not exist.
1114
 
case `pwd` in
1115
 
.) ac_abs_builddir="$ac_dir";;
1116
 
*)
1117
 
  case "$ac_dir" in
1118
 
  .) ac_abs_builddir=`pwd`;;
1119
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121
 
  esac;;
1122
 
esac
1123
 
case $ac_abs_builddir in
1124
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125
 
*)
1126
 
  case ${ac_top_builddir}. in
1127
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1128
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130
 
  esac;;
1131
 
esac
1132
 
case $ac_abs_builddir in
1133
 
.) ac_abs_srcdir=$ac_srcdir;;
1134
 
*)
1135
 
  case $ac_srcdir in
1136
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
1137
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139
 
  esac;;
1140
 
esac
1141
 
case $ac_abs_builddir in
1142
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143
 
*)
1144
 
  case $ac_top_srcdir in
1145
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148
 
  esac;;
1149
 
esac
1150
 
 
1151
 
    cd $ac_dir
1152
 
    # Check for guested configure; otherwise get Cygnus style configure.
1153
 
    if test -f $ac_srcdir/configure.gnu; then
1154
 
      echo
1155
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1156
 
    elif test -f $ac_srcdir/configure; then
1157
 
      echo
1158
 
      $SHELL $ac_srcdir/configure  --help=recursive
1159
 
    elif test -f $ac_srcdir/configure.ac ||
1160
 
           test -f $ac_srcdir/configure.in; then
1161
 
      echo
1162
 
      $ac_configure --help
1163
 
    else
1164
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165
 
    fi
1166
 
    cd $ac_popdir
1167
 
  done
1168
 
fi
1169
 
 
1170
 
test -n "$ac_init_help" && exit 0
1171
 
if $ac_init_version; then
1172
 
  cat <<\_ACEOF
1173
 
trousers configure 0.2.9.1
1174
 
generated by GNU Autoconf 2.59
1175
 
 
1176
 
Copyright (C) 2003 Free Software Foundation, Inc.
1177
 
This configure script is free software; the Free Software Foundation
1178
 
gives unlimited permission to copy, distribute and modify it.
1179
 
_ACEOF
1180
 
  exit 0
1181
 
fi
1182
 
exec 5>config.log
1183
 
cat >&5 <<_ACEOF
1184
 
This file contains any messages produced by compilers while
1185
 
running configure, to aid debugging if configure makes a mistake.
1186
 
 
1187
 
It was created by trousers $as_me 0.2.9.1, which was
1188
 
generated by GNU Autoconf 2.59.  Invocation command line was
1189
 
 
1190
 
  $ $0 $@
1191
 
 
1192
 
_ACEOF
1193
 
{
1194
 
cat <<_ASUNAME
1195
 
@%:@@%:@ --------- @%:@@%:@
1196
 
@%:@@%:@ Platform. @%:@@%:@
1197
 
@%:@@%:@ --------- @%:@@%:@
1198
 
 
1199
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204
 
 
1205
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1207
 
 
1208
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1209
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1210
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1212
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1213
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1214
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1215
 
 
1216
 
_ASUNAME
1217
 
 
1218
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219
 
for as_dir in $PATH
1220
 
do
1221
 
  IFS=$as_save_IFS
1222
 
  test -z "$as_dir" && as_dir=.
1223
 
  echo "PATH: $as_dir"
1224
 
done
1225
 
 
1226
 
} >&5
1227
 
 
1228
 
cat >&5 <<_ACEOF
1229
 
 
1230
 
 
1231
 
@%:@@%:@ ----------- @%:@@%:@
1232
 
@%:@@%:@ Core tests. @%:@@%:@
1233
 
@%:@@%:@ ----------- @%:@@%:@
1234
 
 
1235
 
_ACEOF
1236
 
 
1237
 
 
1238
 
# Keep a trace of the command line.
1239
 
# Strip out --no-create and --no-recursion so they do not pile up.
1240
 
# Strip out --silent because we don't want to record it for future runs.
1241
 
# Also quote any args containing shell meta-characters.
1242
 
# Make two passes to allow for proper duplicate-argument suppression.
1243
 
ac_configure_args=
1244
 
ac_configure_args0=
1245
 
ac_configure_args1=
1246
 
ac_sep=
1247
 
ac_must_keep_next=false
1248
 
for ac_pass in 1 2
1249
 
do
1250
 
  for ac_arg
1251
 
  do
1252
 
    case $ac_arg in
1253
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255
 
    | -silent | --silent | --silen | --sile | --sil)
1256
 
      continue ;;
1257
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259
 
    esac
1260
 
    case $ac_pass in
1261
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262
 
    2)
1263
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264
 
      if test $ac_must_keep_next = true; then
1265
 
        ac_must_keep_next=false # Got value, back to normal.
1266
 
      else
1267
 
        case $ac_arg in
1268
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1269
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1272
 
            case "$ac_configure_args0 " in
1273
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274
 
            esac
1275
 
            ;;
1276
 
          -* ) ac_must_keep_next=true ;;
1277
 
        esac
1278
 
      fi
1279
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280
 
      # Get rid of the leading space.
1281
 
      ac_sep=" "
1282
 
      ;;
1283
 
    esac
1284
 
  done
1285
 
done
1286
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288
 
 
1289
 
# When interrupted or exit'd, cleanup temporary files, and complete
1290
 
# config.log.  We remove comments because anyway the quotes in there
1291
 
# would cause problems or look ugly.
1292
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1293
 
# such as our DU 5.0 friend, will then `close' the trap.
1294
 
trap 'exit_status=$?
1295
 
  # Save into config.log some information that might help in debugging.
1296
 
  {
1297
 
    echo
1298
 
 
1299
 
    cat <<\_ASBOX
1300
 
@%:@@%:@ ---------------- @%:@@%:@
1301
 
@%:@@%:@ Cache variables. @%:@@%:@
1302
 
@%:@@%:@ ---------------- @%:@@%:@
1303
 
_ASBOX
1304
 
    echo
1305
 
    # The following way of writing the cache mishandles newlines in values,
1306
 
{
1307
 
  (set) 2>&1 |
1308
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309
 
    *ac_space=\ *)
1310
 
      sed -n \
1311
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1313
 
      ;;
1314
 
    *)
1315
 
      sed -n \
1316
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317
 
      ;;
1318
 
    esac;
1319
 
}
1320
 
    echo
1321
 
 
1322
 
    cat <<\_ASBOX
1323
 
@%:@@%:@ ----------------- @%:@@%:@
1324
 
@%:@@%:@ Output variables. @%:@@%:@
1325
 
@%:@@%:@ ----------------- @%:@@%:@
1326
 
_ASBOX
1327
 
    echo
1328
 
    for ac_var in $ac_subst_vars
1329
 
    do
1330
 
      eval ac_val=$`echo $ac_var`
1331
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1332
 
    done | sort
1333
 
    echo
1334
 
 
1335
 
    if test -n "$ac_subst_files"; then
1336
 
      cat <<\_ASBOX
1337
 
@%:@@%:@ ------------- @%:@@%:@
1338
 
@%:@@%:@ Output files. @%:@@%:@
1339
 
@%:@@%:@ ------------- @%:@@%:@
1340
 
_ASBOX
1341
 
      echo
1342
 
      for ac_var in $ac_subst_files
1343
 
      do
1344
 
        eval ac_val=$`echo $ac_var`
1345
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1346
 
      done | sort
1347
 
      echo
1348
 
    fi
1349
 
 
1350
 
    if test -s confdefs.h; then
1351
 
      cat <<\_ASBOX
1352
 
@%:@@%:@ ----------- @%:@@%:@
1353
 
@%:@@%:@ confdefs.h. @%:@@%:@
1354
 
@%:@@%:@ ----------- @%:@@%:@
1355
 
_ASBOX
1356
 
      echo
1357
 
      sed "/^$/d" confdefs.h | sort
1358
 
      echo
1359
 
    fi
1360
 
    test "$ac_signal" != 0 &&
1361
 
      echo "$as_me: caught signal $ac_signal"
1362
 
    echo "$as_me: exit $exit_status"
1363
 
  } >&5
1364
 
  rm -f core *.core &&
1365
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366
 
    exit $exit_status
1367
 
     ' 0
1368
 
for ac_signal in 1 2 13 15; do
1369
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370
 
done
1371
 
ac_signal=0
1372
 
 
1373
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1374
 
rm -rf conftest* confdefs.h
1375
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376
 
echo >confdefs.h
1377
 
 
1378
 
# Predefined preprocessor variables.
1379
 
 
1380
 
cat >>confdefs.h <<_ACEOF
1381
 
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1382
 
_ACEOF
1383
 
 
1384
 
 
1385
 
cat >>confdefs.h <<_ACEOF
1386
 
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387
 
_ACEOF
1388
 
 
1389
 
 
1390
 
cat >>confdefs.h <<_ACEOF
1391
 
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1392
 
_ACEOF
1393
 
 
1394
 
 
1395
 
cat >>confdefs.h <<_ACEOF
1396
 
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1397
 
_ACEOF
1398
 
 
1399
 
 
1400
 
cat >>confdefs.h <<_ACEOF
1401
 
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402
 
_ACEOF
1403
 
 
1404
 
 
1405
 
# Let the site file select an alternate cache file if it wants to.
1406
 
# Prefer explicitly selected file to automatically selected ones.
1407
 
if test -z "$CONFIG_SITE"; then
1408
 
  if test "x$prefix" != xNONE; then
1409
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410
 
  else
1411
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412
 
  fi
1413
 
fi
1414
 
for ac_site_file in $CONFIG_SITE; do
1415
 
  if test -r "$ac_site_file"; then
1416
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1418
 
    sed 's/^/| /' "$ac_site_file" >&5
1419
 
    . "$ac_site_file"
1420
 
  fi
1421
 
done
1422
 
 
1423
 
if test -r "$cache_file"; then
1424
 
  # Some versions of bash will fail to source /dev/null (special
1425
 
  # files actually), so we avoid doing that.
1426
 
  if test -f "$cache_file"; then
1427
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428
 
echo "$as_me: loading cache $cache_file" >&6;}
1429
 
    case $cache_file in
1430
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1431
 
      *)                      . ./$cache_file;;
1432
 
    esac
1433
 
  fi
1434
 
else
1435
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436
 
echo "$as_me: creating cache $cache_file" >&6;}
1437
 
  >$cache_file
1438
 
fi
1439
 
 
1440
 
# Check that the precious variables saved in the cache have kept the same
1441
 
# value.
1442
 
ac_cache_corrupted=false
1443
 
for ac_var in `(set) 2>&1 |
1444
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1445
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1447
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1449
 
  case $ac_old_set,$ac_new_set in
1450
 
    set,)
1451
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453
 
      ac_cache_corrupted=: ;;
1454
 
    ,set)
1455
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457
 
      ac_cache_corrupted=: ;;
1458
 
    ,);;
1459
 
    *)
1460
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1461
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1462
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1463
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1464
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1465
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1466
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1467
 
        ac_cache_corrupted=:
1468
 
      fi;;
1469
 
  esac
1470
 
  # Pass precious variables to config.status.
1471
 
  if test "$ac_new_set" = set; then
1472
 
    case $ac_new_val in
1473
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1476
 
    esac
1477
 
    case " $ac_configure_args " in
1478
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1479
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480
 
    esac
1481
 
  fi
1482
 
done
1483
 
if $ac_cache_corrupted; then
1484
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488
 
   { (exit 1); exit 1; }; }
1489
 
fi
1490
 
 
1491
 
ac_ext=c
1492
 
ac_cpp='$CPP $CPPFLAGS'
1493
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
TSS_VER_MAJOR=0
1525
 
TSS_VER_MINOR=2
1526
 
 
1527
 
# compute $target
1528
 
ac_aux_dir=
1529
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530
 
  if test -f $ac_dir/install-sh; then
1531
 
    ac_aux_dir=$ac_dir
1532
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1533
 
    break
1534
 
  elif test -f $ac_dir/install.sh; then
1535
 
    ac_aux_dir=$ac_dir
1536
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1537
 
    break
1538
 
  elif test -f $ac_dir/shtool; then
1539
 
    ac_aux_dir=$ac_dir
1540
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1541
 
    break
1542
 
  fi
1543
 
done
1544
 
if test -z "$ac_aux_dir"; then
1545
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1547
 
   { (exit 1); exit 1; }; }
1548
 
fi
1549
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1552
 
 
1553
 
# Make sure we can run config.sub.
1554
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1555
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1556
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1557
 
   { (exit 1); exit 1; }; }
1558
 
 
1559
 
echo "$as_me:$LINENO: checking build system type" >&5
1560
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1561
 
if test "${ac_cv_build+set}" = set; then
1562
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1563
 
else
1564
 
  ac_cv_build_alias=$build_alias
1565
 
test -z "$ac_cv_build_alias" &&
1566
 
  ac_cv_build_alias=`$ac_config_guess`
1567
 
test -z "$ac_cv_build_alias" &&
1568
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1569
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1570
 
   { (exit 1); exit 1; }; }
1571
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1572
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1573
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1574
 
   { (exit 1); exit 1; }; }
1575
 
 
1576
 
fi
1577
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1578
 
echo "${ECHO_T}$ac_cv_build" >&6
1579
 
build=$ac_cv_build
1580
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
 
 
1584
 
 
1585
 
echo "$as_me:$LINENO: checking host system type" >&5
1586
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1587
 
if test "${ac_cv_host+set}" = set; then
1588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1589
 
else
1590
 
  ac_cv_host_alias=$host_alias
1591
 
test -z "$ac_cv_host_alias" &&
1592
 
  ac_cv_host_alias=$ac_cv_build_alias
1593
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1594
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1595
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1596
 
   { (exit 1); exit 1; }; }
1597
 
 
1598
 
fi
1599
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1600
 
echo "${ECHO_T}$ac_cv_host" >&6
1601
 
host=$ac_cv_host
1602
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1605
 
 
1606
 
 
1607
 
echo "$as_me:$LINENO: checking target system type" >&5
1608
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1609
 
if test "${ac_cv_target+set}" = set; then
1610
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1611
 
else
1612
 
  ac_cv_target_alias=$target_alias
1613
 
test "x$ac_cv_target_alias" = "x" &&
1614
 
  ac_cv_target_alias=$ac_cv_host_alias
1615
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1616
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1617
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1618
 
   { (exit 1); exit 1; }; }
1619
 
 
1620
 
fi
1621
 
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1622
 
echo "${ECHO_T}$ac_cv_target" >&6
1623
 
target=$ac_cv_target
1624
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627
 
 
1628
 
 
1629
 
# The aliases save the names the user supplied, while $host etc.
1630
 
# will get canonicalized.
1631
 
test -n "$target_alias" &&
1632
 
  test "$program_prefix$program_suffix$program_transform_name" = \
1633
 
    NONENONEs,x,x, &&
1634
 
  program_prefix=${target_alias}-
1635
 
am__api_version="1.9"
1636
 
# Find a good install program.  We prefer a C program (faster),
1637
 
# so one script is as good as another.  But avoid the broken or
1638
 
# incompatible versions:
1639
 
# SysV /etc/install, /usr/sbin/install
1640
 
# SunOS /usr/etc/install
1641
 
# IRIX /sbin/install
1642
 
# AIX /bin/install
1643
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
1644
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647
 
# OS/2's system install, which has a completely different semantic
1648
 
# ./install, which can be erroneously created by make from ./install.sh.
1649
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651
 
if test -z "$INSTALL"; then
1652
 
if test "${ac_cv_path_install+set}" = set; then
1653
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1654
 
else
1655
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656
 
for as_dir in $PATH
1657
 
do
1658
 
  IFS=$as_save_IFS
1659
 
  test -z "$as_dir" && as_dir=.
1660
 
  # Account for people who put trailing slashes in PATH elements.
1661
 
case $as_dir/ in
1662
 
  ./ | .// | /cC/* | \
1663
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1665
 
  /usr/ucb/* ) ;;
1666
 
  *)
1667
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
1668
 
    # Don't use installbsd from OSF since it installs stuff as root
1669
 
    # by default.
1670
 
    for ac_prog in ginstall scoinst install; do
1671
 
      for ac_exec_ext in '' $ac_executable_extensions; do
1672
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1673
 
          if test $ac_prog = install &&
1674
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675
 
            # AIX install.  It has an incompatible calling convention.
1676
 
            :
1677
 
          elif test $ac_prog = install &&
1678
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679
 
            # program-specific install script used by HP pwplus--don't use.
1680
 
            :
1681
 
          else
1682
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1683
 
            break 3
1684
 
          fi
1685
 
        fi
1686
 
      done
1687
 
    done
1688
 
    ;;
1689
 
esac
1690
 
done
1691
 
 
1692
 
 
1693
 
fi
1694
 
  if test "${ac_cv_path_install+set}" = set; then
1695
 
    INSTALL=$ac_cv_path_install
1696
 
  else
1697
 
    # As a last resort, use the slow shell script.  We don't cache a
1698
 
    # path for INSTALL within a source directory, because that will
1699
 
    # break other packages using the cache if that directory is
1700
 
    # removed, or if the path is relative.
1701
 
    INSTALL=$ac_install_sh
1702
 
  fi
1703
 
fi
1704
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1705
 
echo "${ECHO_T}$INSTALL" >&6
1706
 
 
1707
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1708
 
# It thinks the first close brace ends the variable substitution.
1709
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1710
 
 
1711
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1712
 
 
1713
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1714
 
 
1715
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1716
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1717
 
# Just in case
1718
 
sleep 1
1719
 
echo timestamp > conftest.file
1720
 
# Do `set' in a subshell so we don't clobber the current shell's
1721
 
# arguments.  Must try -L first in case configure is actually a
1722
 
# symlink; some systems play weird games with the mod time of symlinks
1723
 
# (eg FreeBSD returns the mod time of the symlink's containing
1724
 
# directory).
1725
 
if (
1726
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1727
 
   if test "$*" = "X"; then
1728
 
      # -L didn't work.
1729
 
      set X `ls -t $srcdir/configure conftest.file`
1730
 
   fi
1731
 
   rm -f conftest.file
1732
 
   if test "$*" != "X $srcdir/configure conftest.file" \
1733
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
1734
 
 
1735
 
      # If neither matched, then we have a broken ls.  This can happen
1736
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1737
 
      # broken ls alias from the environment.  This has actually
1738
 
      # happened.  Such a system could not be considered "sane".
1739
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1740
 
alias in your environment" >&5
1741
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1742
 
alias in your environment" >&2;}
1743
 
   { (exit 1); exit 1; }; }
1744
 
   fi
1745
 
 
1746
 
   test "$2" = conftest.file
1747
 
   )
1748
 
then
1749
 
   # Ok.
1750
 
   :
1751
 
else
1752
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1753
 
Check your system clock" >&5
1754
 
echo "$as_me: error: newly created file is older than distributed files!
1755
 
Check your system clock" >&2;}
1756
 
   { (exit 1); exit 1; }; }
1757
 
fi
1758
 
echo "$as_me:$LINENO: result: yes" >&5
1759
 
echo "${ECHO_T}yes" >&6
1760
 
test "$program_prefix" != NONE &&
1761
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762
 
# Use a double $ so make ignores it.
1763
 
test "$program_suffix" != NONE &&
1764
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765
 
# Double any \ or $.  echo might interpret backslashes.
1766
 
# By default was `s,x,x', remove it if useless.
1767
 
cat <<\_ACEOF >conftest.sed
1768
 
s/[\\$]/&&/g;s/;s,x,x,$//
1769
 
_ACEOF
1770
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1771
 
rm conftest.sed
1772
 
 
1773
 
# expand $ac_aux_dir to an absolute path
1774
 
am_aux_dir=`cd $ac_aux_dir && pwd`
1775
 
 
1776
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1777
 
# Use eval to expand $SHELL
1778
 
if eval "$MISSING --run true"; then
1779
 
  am_missing_run="$MISSING --run "
1780
 
else
1781
 
  am_missing_run=
1782
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1783
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1784
 
fi
1785
 
 
1786
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1787
 
  # We used to keeping the `.' as first argument, in order to
1788
 
  # allow $(mkdir_p) to be used without argument.  As in
1789
 
  #   $(mkdir_p) $(somedir)
1790
 
  # where $(somedir) is conditionally defined.  However this is wrong
1791
 
  # for two reasons:
1792
 
  #  1. if the package is installed by a user who cannot write `.'
1793
 
  #     make install will fail,
1794
 
  #  2. the above comment should most certainly read
1795
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1796
 
  #     so it does not work when $(somedir) is undefined and
1797
 
  #     $(DESTDIR) is not.
1798
 
  #  To support the latter case, we have to write
1799
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1800
 
  #  so the `.' trick is pointless.
1801
 
  mkdir_p='mkdir -p --'
1802
 
else
1803
 
  # On NextStep and OpenStep, the `mkdir' command does not
1804
 
  # recognize any option.  It will interpret all options as
1805
 
  # directories to create, and then abort because `.' already
1806
 
  # exists.
1807
 
  for d in ./-p ./--version;
1808
 
  do
1809
 
    test -d $d && rmdir $d
1810
 
  done
1811
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1812
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1813
 
    mkdir_p='$(mkinstalldirs)'
1814
 
  else
1815
 
    mkdir_p='$(install_sh) -d'
1816
 
  fi
1817
 
fi
1818
 
 
1819
 
for ac_prog in gawk mawk nawk awk
1820
 
do
1821
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1822
 
set dummy $ac_prog; ac_word=$2
1823
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1824
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825
 
if test "${ac_cv_prog_AWK+set}" = set; then
1826
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1827
 
else
1828
 
  if test -n "$AWK"; then
1829
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1830
 
else
1831
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832
 
for as_dir in $PATH
1833
 
do
1834
 
  IFS=$as_save_IFS
1835
 
  test -z "$as_dir" && as_dir=.
1836
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1837
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838
 
    ac_cv_prog_AWK="$ac_prog"
1839
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840
 
    break 2
1841
 
  fi
1842
 
done
1843
 
done
1844
 
 
1845
 
fi
1846
 
fi
1847
 
AWK=$ac_cv_prog_AWK
1848
 
if test -n "$AWK"; then
1849
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1850
 
echo "${ECHO_T}$AWK" >&6
1851
 
else
1852
 
  echo "$as_me:$LINENO: result: no" >&5
1853
 
echo "${ECHO_T}no" >&6
1854
 
fi
1855
 
 
1856
 
  test -n "$AWK" && break
1857
 
done
1858
 
 
1859
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1860
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1861
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1862
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1863
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1864
 
else
1865
 
  cat >conftest.make <<\_ACEOF
1866
 
all:
1867
 
        @echo 'ac_maketemp="$(MAKE)"'
1868
 
_ACEOF
1869
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1870
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1871
 
if test -n "$ac_maketemp"; then
1872
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1873
 
else
1874
 
  eval ac_cv_prog_make_${ac_make}_set=no
1875
 
fi
1876
 
rm -f conftest.make
1877
 
fi
1878
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1879
 
  echo "$as_me:$LINENO: result: yes" >&5
1880
 
echo "${ECHO_T}yes" >&6
1881
 
  SET_MAKE=
1882
 
else
1883
 
  echo "$as_me:$LINENO: result: no" >&5
1884
 
echo "${ECHO_T}no" >&6
1885
 
  SET_MAKE="MAKE=${MAKE-make}"
1886
 
fi
1887
 
 
1888
 
rm -rf .tst 2>/dev/null
1889
 
mkdir .tst 2>/dev/null
1890
 
if test -d .tst; then
1891
 
  am__leading_dot=.
1892
 
else
1893
 
  am__leading_dot=_
1894
 
fi
1895
 
rmdir .tst 2>/dev/null
1896
 
 
1897
 
# test to see if srcdir already configured
1898
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1899
 
   test -f $srcdir/config.status; then
1900
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1901
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1902
 
   { (exit 1); exit 1; }; }
1903
 
fi
1904
 
 
1905
 
# test whether we have cygpath
1906
 
if test -z "$CYGPATH_W"; then
1907
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
1908
 
    CYGPATH_W='cygpath -w'
1909
 
  else
1910
 
    CYGPATH_W=echo
1911
 
  fi
1912
 
fi
1913
 
 
1914
 
 
1915
 
# Define the identity of the package.
1916
 
 PACKAGE='trousers'
1917
 
 VERSION='0.2.9.1'
1918
 
 
1919
 
 
1920
 
cat >>confdefs.h <<_ACEOF
1921
 
@%:@define PACKAGE "$PACKAGE"
1922
 
_ACEOF
1923
 
 
1924
 
 
1925
 
cat >>confdefs.h <<_ACEOF
1926
 
@%:@define VERSION "$VERSION"
1927
 
_ACEOF
1928
 
 
1929
 
# Some tools Automake needs.
1930
 
 
1931
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1932
 
 
1933
 
 
1934
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1935
 
 
1936
 
 
1937
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1938
 
 
1939
 
 
1940
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1941
 
 
1942
 
 
1943
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1944
 
 
1945
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1946
 
 
1947
 
# Installed binaries are usually stripped using `strip' when the user
1948
 
# run `make install-strip'.  However `strip' might not be the right
1949
 
# tool to use in cross-compilation environments, therefore Automake
1950
 
# will honor the `STRIP' environment variable to overrule this program.
1951
 
if test "$cross_compiling" != no; then
1952
 
  if test -n "$ac_tool_prefix"; then
1953
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1954
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
1955
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1956
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957
 
if test "${ac_cv_prog_STRIP+set}" = set; then
1958
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1959
 
else
1960
 
  if test -n "$STRIP"; then
1961
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1962
 
else
1963
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964
 
for as_dir in $PATH
1965
 
do
1966
 
  IFS=$as_save_IFS
1967
 
  test -z "$as_dir" && as_dir=.
1968
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1969
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1971
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972
 
    break 2
1973
 
  fi
1974
 
done
1975
 
done
1976
 
 
1977
 
fi
1978
 
fi
1979
 
STRIP=$ac_cv_prog_STRIP
1980
 
if test -n "$STRIP"; then
1981
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1982
 
echo "${ECHO_T}$STRIP" >&6
1983
 
else
1984
 
  echo "$as_me:$LINENO: result: no" >&5
1985
 
echo "${ECHO_T}no" >&6
1986
 
fi
1987
 
 
1988
 
fi
1989
 
if test -z "$ac_cv_prog_STRIP"; then
1990
 
  ac_ct_STRIP=$STRIP
1991
 
  # Extract the first word of "strip", so it can be a program name with args.
1992
 
set dummy strip; ac_word=$2
1993
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1994
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1996
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1997
 
else
1998
 
  if test -n "$ac_ct_STRIP"; then
1999
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2000
 
else
2001
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002
 
for as_dir in $PATH
2003
 
do
2004
 
  IFS=$as_save_IFS
2005
 
  test -z "$as_dir" && as_dir=.
2006
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2007
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008
 
    ac_cv_prog_ac_ct_STRIP="strip"
2009
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010
 
    break 2
2011
 
  fi
2012
 
done
2013
 
done
2014
 
 
2015
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2016
 
fi
2017
 
fi
2018
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2019
 
if test -n "$ac_ct_STRIP"; then
2020
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2021
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
2022
 
else
2023
 
  echo "$as_me:$LINENO: result: no" >&5
2024
 
echo "${ECHO_T}no" >&6
2025
 
fi
2026
 
 
2027
 
  STRIP=$ac_ct_STRIP
2028
 
else
2029
 
  STRIP="$ac_cv_prog_STRIP"
2030
 
fi
2031
 
 
2032
 
fi
2033
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2034
 
 
2035
 
# We need awk for the "check" target.  The system "awk" is bad on
2036
 
# some platforms.
2037
 
# Always define AMTAR for backward compatibility.
2038
 
 
2039
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2040
 
 
2041
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2042
 
 
2043
 
 
2044
 
 
2045
 
 
2046
 
 
2047
 
 
2048
 
# Debugging support
2049
 
# Check whether --enable-debug or --disable-debug was given.
2050
 
if test "${enable_debug+set}" = set; then
2051
 
  enableval="$enable_debug"
2052
 
  enable_debug="yes"
2053
 
                 echo "$as_me:$LINENO: result: *** Enabling debugging at user request ***" >&5
2054
 
echo "${ECHO_T}*** Enabling debugging at user request ***" >&6
2055
 
fi; 
2056
 
 
2057
 
# If the user has not set CFLAGS, do something appropriate
2058
 
test_CFLAGS=${CFLAGS+set}
2059
 
if test "$test_CFLAGS" != set; then
2060
 
        if test "x$enable_debug" == "xyes"; then
2061
 
                CFLAGS="-O0 -g -DTSS_DEBUG -Wreturn-type"
2062
 
#               CFLAGS="-O0 -g -DTSS_DEBUG -Wreturn-type -DTCSD_SINGLE_THREAD_DEBUG"
2063
 
        else
2064
 
                CFLAGS="-O2"
2065
 
        fi
2066
 
fi
2067
 
 
2068
 
# Arch specific stuff
2069
 
case $target in
2070
 
        *ppc64* | *powerpc64* | *x86_64*)
2071
 
                CFLAGS="$CFLAGS -m64"
2072
 
                ;;
2073
 
        *)
2074
 
                ;;
2075
 
esac
2076
 
 
2077
 
# Non-standard OpenSSL (for 64bit platforms)
2078
 
echo "$as_me:$LINENO: checking Non-standard OpenSSL" >&5
2079
 
echo $ECHO_N "checking Non-standard OpenSSL... $ECHO_C" >&6
2080
 
 
2081
 
# Check whether --with-openssl or --without-openssl was given.
2082
 
if test "${with_openssl+set}" = set; then
2083
 
  withval="$with_openssl"
2084
 
  OPENSSL_INCLUDE_DIR="$withval/include"
2085
 
         OPENSSL_LIB_DIR="$withval/lib"
2086
 
         if [ ! -d $OPENSSL_INCLUDE_DIR -o ! -d $OPENSSL_LIB_DIR ]; then
2087
 
                { { echo "$as_me:$LINENO: error: $OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" >&5
2088
 
echo "$as_me: error: $OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" >&2;}
2089
 
   { (exit 1); exit 1; }; }
2090
 
         else
2091
 
                echo "$as_me:$LINENO: result: yes" >&5
2092
 
echo "${ECHO_T}yes" >&6
2093
 
                CFLAGS="$CFLAGS -L$OPENSSL_LIB_DIR -I$OPENSSL_INCLUDE_DIR"
2094
 
                
2095
 
         fi
2096
 
else
2097
 
  echo "$as_me:$LINENO: result: no" >&5
2098
 
echo "${ECHO_T}no" >&6
2099
 
           
2100
 
fi; 
2101
 
 
2102
 
# The tspi Makefile will look for trspi/crypto/@CRYPTO_PACKAGE@/crypto.c
2103
 
# Future crypto packages can go in their own subdir of trspi/crypto
2104
 
# and a check for them should be made here
2105
 
DEPDIR="${am__leading_dot}deps"
2106
 
 
2107
 
          ac_config_commands="$ac_config_commands depfiles"
2108
 
 
2109
 
 
2110
 
am_make=${MAKE-make}
2111
 
cat > confinc << 'END'
2112
 
am__doit:
2113
 
        @echo done
2114
 
.PHONY: am__doit
2115
 
END
2116
 
# If we don't find an include directive, just comment out the code.
2117
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2118
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2119
 
am__include="#"
2120
 
am__quote=
2121
 
_am_result=none
2122
 
# First try GNU make style include.
2123
 
echo "include confinc" > confmf
2124
 
# We grep out `Entering directory' and `Leaving directory'
2125
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2126
 
# In particular we don't look at `^make:' because GNU make might
2127
 
# be invoked under some other name (usually "gmake"), in which
2128
 
# case it prints its new name instead of `make'.
2129
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2130
 
   am__include=include
2131
 
   am__quote=
2132
 
   _am_result=GNU
2133
 
fi
2134
 
# Now try BSD make style include.
2135
 
if test "$am__include" = "#"; then
2136
 
   echo '.include "confinc"' > confmf
2137
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2138
 
      am__include=.include
2139
 
      am__quote="\""
2140
 
      _am_result=BSD
2141
 
   fi
2142
 
fi
2143
 
 
2144
 
 
2145
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2146
 
echo "${ECHO_T}$_am_result" >&6
2147
 
rm -f confinc confmf
2148
 
 
2149
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2150
 
if test "${enable_dependency_tracking+set}" = set; then
2151
 
  enableval="$enable_dependency_tracking"
2152
 
  
2153
 
fi; 
2154
 
if test "x$enable_dependency_tracking" != xno; then
2155
 
  am_depcomp="$ac_aux_dir/depcomp"
2156
 
  AMDEPBACKSLASH='\'
2157
 
fi
2158
 
 
2159
 
 
2160
 
if test "x$enable_dependency_tracking" != xno; then
2161
 
  AMDEP_TRUE=
2162
 
  AMDEP_FALSE='#'
2163
 
else
2164
 
  AMDEP_TRUE='#'
2165
 
  AMDEP_FALSE=
2166
 
fi
2167
 
 
2168
 
 
2169
 
 
2170
 
ac_ext=c
2171
 
ac_cpp='$CPP $CPPFLAGS'
2172
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175
 
if test -n "$ac_tool_prefix"; then
2176
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2177
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2178
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2179
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180
 
if test "${ac_cv_prog_CC+set}" = set; then
2181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2182
 
else
2183
 
  if test -n "$CC"; then
2184
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2185
 
else
2186
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187
 
for as_dir in $PATH
2188
 
do
2189
 
  IFS=$as_save_IFS
2190
 
  test -z "$as_dir" && as_dir=.
2191
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2192
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2194
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195
 
    break 2
2196
 
  fi
2197
 
done
2198
 
done
2199
 
 
2200
 
fi
2201
 
fi
2202
 
CC=$ac_cv_prog_CC
2203
 
if test -n "$CC"; then
2204
 
  echo "$as_me:$LINENO: result: $CC" >&5
2205
 
echo "${ECHO_T}$CC" >&6
2206
 
else
2207
 
  echo "$as_me:$LINENO: result: no" >&5
2208
 
echo "${ECHO_T}no" >&6
2209
 
fi
2210
 
 
2211
 
fi
2212
 
if test -z "$ac_cv_prog_CC"; then
2213
 
  ac_ct_CC=$CC
2214
 
  # Extract the first word of "gcc", so it can be a program name with args.
2215
 
set dummy gcc; ac_word=$2
2216
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2217
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2219
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2220
 
else
2221
 
  if test -n "$ac_ct_CC"; then
2222
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2223
 
else
2224
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225
 
for as_dir in $PATH
2226
 
do
2227
 
  IFS=$as_save_IFS
2228
 
  test -z "$as_dir" && as_dir=.
2229
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2230
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231
 
    ac_cv_prog_ac_ct_CC="gcc"
2232
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233
 
    break 2
2234
 
  fi
2235
 
done
2236
 
done
2237
 
 
2238
 
fi
2239
 
fi
2240
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2241
 
if test -n "$ac_ct_CC"; then
2242
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243
 
echo "${ECHO_T}$ac_ct_CC" >&6
2244
 
else
2245
 
  echo "$as_me:$LINENO: result: no" >&5
2246
 
echo "${ECHO_T}no" >&6
2247
 
fi
2248
 
 
2249
 
  CC=$ac_ct_CC
2250
 
else
2251
 
  CC="$ac_cv_prog_CC"
2252
 
fi
2253
 
 
2254
 
if test -z "$CC"; then
2255
 
  if test -n "$ac_tool_prefix"; then
2256
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2257
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2258
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2259
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260
 
if test "${ac_cv_prog_CC+set}" = set; then
2261
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2262
 
else
2263
 
  if test -n "$CC"; then
2264
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2265
 
else
2266
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267
 
for as_dir in $PATH
2268
 
do
2269
 
  IFS=$as_save_IFS
2270
 
  test -z "$as_dir" && as_dir=.
2271
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2272
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2274
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275
 
    break 2
2276
 
  fi
2277
 
done
2278
 
done
2279
 
 
2280
 
fi
2281
 
fi
2282
 
CC=$ac_cv_prog_CC
2283
 
if test -n "$CC"; then
2284
 
  echo "$as_me:$LINENO: result: $CC" >&5
2285
 
echo "${ECHO_T}$CC" >&6
2286
 
else
2287
 
  echo "$as_me:$LINENO: result: no" >&5
2288
 
echo "${ECHO_T}no" >&6
2289
 
fi
2290
 
 
2291
 
fi
2292
 
if test -z "$ac_cv_prog_CC"; then
2293
 
  ac_ct_CC=$CC
2294
 
  # Extract the first word of "cc", so it can be a program name with args.
2295
 
set dummy cc; ac_word=$2
2296
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2297
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2299
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2300
 
else
2301
 
  if test -n "$ac_ct_CC"; then
2302
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2303
 
else
2304
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305
 
for as_dir in $PATH
2306
 
do
2307
 
  IFS=$as_save_IFS
2308
 
  test -z "$as_dir" && as_dir=.
2309
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2310
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311
 
    ac_cv_prog_ac_ct_CC="cc"
2312
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313
 
    break 2
2314
 
  fi
2315
 
done
2316
 
done
2317
 
 
2318
 
fi
2319
 
fi
2320
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2321
 
if test -n "$ac_ct_CC"; then
2322
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2323
 
echo "${ECHO_T}$ac_ct_CC" >&6
2324
 
else
2325
 
  echo "$as_me:$LINENO: result: no" >&5
2326
 
echo "${ECHO_T}no" >&6
2327
 
fi
2328
 
 
2329
 
  CC=$ac_ct_CC
2330
 
else
2331
 
  CC="$ac_cv_prog_CC"
2332
 
fi
2333
 
 
2334
 
fi
2335
 
if test -z "$CC"; then
2336
 
  # Extract the first word of "cc", so it can be a program name with args.
2337
 
set dummy cc; ac_word=$2
2338
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2339
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340
 
if test "${ac_cv_prog_CC+set}" = set; then
2341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2342
 
else
2343
 
  if test -n "$CC"; then
2344
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2345
 
else
2346
 
  ac_prog_rejected=no
2347
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348
 
for as_dir in $PATH
2349
 
do
2350
 
  IFS=$as_save_IFS
2351
 
  test -z "$as_dir" && as_dir=.
2352
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2353
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2355
 
       ac_prog_rejected=yes
2356
 
       continue
2357
 
     fi
2358
 
    ac_cv_prog_CC="cc"
2359
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360
 
    break 2
2361
 
  fi
2362
 
done
2363
 
done
2364
 
 
2365
 
if test $ac_prog_rejected = yes; then
2366
 
  # We found a bogon in the path, so make sure we never use it.
2367
 
  set dummy $ac_cv_prog_CC
2368
 
  shift
2369
 
  if test $@%:@ != 0; then
2370
 
    # We chose a different compiler from the bogus one.
2371
 
    # However, it has the same basename, so the bogon will be chosen
2372
 
    # first if we set CC to just the basename; use the full file name.
2373
 
    shift
2374
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2375
 
  fi
2376
 
fi
2377
 
fi
2378
 
fi
2379
 
CC=$ac_cv_prog_CC
2380
 
if test -n "$CC"; then
2381
 
  echo "$as_me:$LINENO: result: $CC" >&5
2382
 
echo "${ECHO_T}$CC" >&6
2383
 
else
2384
 
  echo "$as_me:$LINENO: result: no" >&5
2385
 
echo "${ECHO_T}no" >&6
2386
 
fi
2387
 
 
2388
 
fi
2389
 
if test -z "$CC"; then
2390
 
  if test -n "$ac_tool_prefix"; then
2391
 
  for ac_prog in cl
2392
 
  do
2393
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2394
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2395
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2396
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2397
 
if test "${ac_cv_prog_CC+set}" = set; then
2398
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2399
 
else
2400
 
  if test -n "$CC"; then
2401
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2402
 
else
2403
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404
 
for as_dir in $PATH
2405
 
do
2406
 
  IFS=$as_save_IFS
2407
 
  test -z "$as_dir" && as_dir=.
2408
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2409
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2411
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412
 
    break 2
2413
 
  fi
2414
 
done
2415
 
done
2416
 
 
2417
 
fi
2418
 
fi
2419
 
CC=$ac_cv_prog_CC
2420
 
if test -n "$CC"; then
2421
 
  echo "$as_me:$LINENO: result: $CC" >&5
2422
 
echo "${ECHO_T}$CC" >&6
2423
 
else
2424
 
  echo "$as_me:$LINENO: result: no" >&5
2425
 
echo "${ECHO_T}no" >&6
2426
 
fi
2427
 
 
2428
 
    test -n "$CC" && break
2429
 
  done
2430
 
fi
2431
 
if test -z "$CC"; then
2432
 
  ac_ct_CC=$CC
2433
 
  for ac_prog in cl
2434
 
do
2435
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2436
 
set dummy $ac_prog; ac_word=$2
2437
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2438
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2441
 
else
2442
 
  if test -n "$ac_ct_CC"; then
2443
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2444
 
else
2445
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446
 
for as_dir in $PATH
2447
 
do
2448
 
  IFS=$as_save_IFS
2449
 
  test -z "$as_dir" && as_dir=.
2450
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2451
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2453
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454
 
    break 2
2455
 
  fi
2456
 
done
2457
 
done
2458
 
 
2459
 
fi
2460
 
fi
2461
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2462
 
if test -n "$ac_ct_CC"; then
2463
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2464
 
echo "${ECHO_T}$ac_ct_CC" >&6
2465
 
else
2466
 
  echo "$as_me:$LINENO: result: no" >&5
2467
 
echo "${ECHO_T}no" >&6
2468
 
fi
2469
 
 
2470
 
  test -n "$ac_ct_CC" && break
2471
 
done
2472
 
 
2473
 
  CC=$ac_ct_CC
2474
 
fi
2475
 
 
2476
 
fi
2477
 
 
2478
 
 
2479
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2480
 
See \`config.log' for more details." >&5
2481
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2482
 
See \`config.log' for more details." >&2;}
2483
 
   { (exit 1); exit 1; }; }
2484
 
 
2485
 
# Provide some information about the compiler.
2486
 
echo "$as_me:$LINENO:" \
2487
 
     "checking for C compiler version" >&5
2488
 
ac_compiler=`set X $ac_compile; echo $2`
2489
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2490
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2491
 
  ac_status=$?
2492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493
 
  (exit $ac_status); }
2494
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2495
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2496
 
  ac_status=$?
2497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498
 
  (exit $ac_status); }
2499
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2500
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2501
 
  ac_status=$?
2502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503
 
  (exit $ac_status); }
2504
 
 
2505
 
cat >conftest.$ac_ext <<_ACEOF
2506
 
/* confdefs.h.  */
2507
 
_ACEOF
2508
 
cat confdefs.h >>conftest.$ac_ext
2509
 
cat >>conftest.$ac_ext <<_ACEOF
2510
 
/* end confdefs.h.  */
2511
 
 
2512
 
int
2513
 
main ()
2514
 
{
2515
 
 
2516
 
  ;
2517
 
  return 0;
2518
 
}
2519
 
_ACEOF
2520
 
ac_clean_files_save=$ac_clean_files
2521
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2522
 
# Try to create an executable without -o first, disregard a.out.
2523
 
# It will help us diagnose broken compilers, and finding out an intuition
2524
 
# of exeext.
2525
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2526
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2527
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2528
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2529
 
  (eval $ac_link_default) 2>&5
2530
 
  ac_status=$?
2531
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532
 
  (exit $ac_status); }; then
2533
 
  # Find the output, starting from the most likely.  This scheme is
2534
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2535
 
# resort.
2536
 
 
2537
 
# Be careful to initialize this variable, since it used to be cached.
2538
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2539
 
ac_cv_exeext=
2540
 
# b.out is created by i960 compilers.
2541
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2542
 
do
2543
 
  test -f "$ac_file" || continue
2544
 
  case $ac_file in
2545
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2546
 
        ;;
2547
 
    conftest.$ac_ext )
2548
 
        # This is the source file.
2549
 
        ;;
2550
 
    [ab].out )
2551
 
        # We found the default executable, but exeext='' is most
2552
 
        # certainly right.
2553
 
        break;;
2554
 
    *.* )
2555
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2556
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2557
 
        # but it would be cool to find out if it's true.  Does anybody
2558
 
        # maintain Libtool? --akim.
2559
 
        export ac_cv_exeext
2560
 
        break;;
2561
 
    * )
2562
 
        break;;
2563
 
  esac
2564
 
done
2565
 
else
2566
 
  echo "$as_me: failed program was:" >&5
2567
 
sed 's/^/| /' conftest.$ac_ext >&5
2568
 
 
2569
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2570
 
See \`config.log' for more details." >&5
2571
 
echo "$as_me: error: C compiler cannot create executables
2572
 
See \`config.log' for more details." >&2;}
2573
 
   { (exit 77); exit 77; }; }
2574
 
fi
2575
 
 
2576
 
ac_exeext=$ac_cv_exeext
2577
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2578
 
echo "${ECHO_T}$ac_file" >&6
2579
 
 
2580
 
# Check the compiler produces executables we can run.  If not, either
2581
 
# the compiler is broken, or we cross compile.
2582
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2583
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2584
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2585
 
# If not cross compiling, check that we can run a simple program.
2586
 
if test "$cross_compiling" != yes; then
2587
 
  if { ac_try='./$ac_file'
2588
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589
 
  (eval $ac_try) 2>&5
2590
 
  ac_status=$?
2591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592
 
  (exit $ac_status); }; }; then
2593
 
    cross_compiling=no
2594
 
  else
2595
 
    if test "$cross_compiling" = maybe; then
2596
 
        cross_compiling=yes
2597
 
    else
2598
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2599
 
If you meant to cross compile, use \`--host'.
2600
 
See \`config.log' for more details." >&5
2601
 
echo "$as_me: error: cannot run C compiled programs.
2602
 
If you meant to cross compile, use \`--host'.
2603
 
See \`config.log' for more details." >&2;}
2604
 
   { (exit 1); exit 1; }; }
2605
 
    fi
2606
 
  fi
2607
 
fi
2608
 
echo "$as_me:$LINENO: result: yes" >&5
2609
 
echo "${ECHO_T}yes" >&6
2610
 
 
2611
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2612
 
ac_clean_files=$ac_clean_files_save
2613
 
# Check the compiler produces executables we can run.  If not, either
2614
 
# the compiler is broken, or we cross compile.
2615
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2616
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2617
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2618
 
echo "${ECHO_T}$cross_compiling" >&6
2619
 
 
2620
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2621
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2622
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623
 
  (eval $ac_link) 2>&5
2624
 
  ac_status=$?
2625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626
 
  (exit $ac_status); }; then
2627
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2628
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2629
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2630
 
# `rm'.
2631
 
for ac_file in conftest.exe conftest conftest.*; do
2632
 
  test -f "$ac_file" || continue
2633
 
  case $ac_file in
2634
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2635
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636
 
          export ac_cv_exeext
2637
 
          break;;
2638
 
    * ) break;;
2639
 
  esac
2640
 
done
2641
 
else
2642
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2643
 
See \`config.log' for more details." >&5
2644
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2645
 
See \`config.log' for more details." >&2;}
2646
 
   { (exit 1); exit 1; }; }
2647
 
fi
2648
 
 
2649
 
rm -f conftest$ac_cv_exeext
2650
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2651
 
echo "${ECHO_T}$ac_cv_exeext" >&6
2652
 
 
2653
 
rm -f conftest.$ac_ext
2654
 
EXEEXT=$ac_cv_exeext
2655
 
ac_exeext=$EXEEXT
2656
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2657
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2658
 
if test "${ac_cv_objext+set}" = set; then
2659
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2660
 
else
2661
 
  cat >conftest.$ac_ext <<_ACEOF
2662
 
/* confdefs.h.  */
2663
 
_ACEOF
2664
 
cat confdefs.h >>conftest.$ac_ext
2665
 
cat >>conftest.$ac_ext <<_ACEOF
2666
 
/* end confdefs.h.  */
2667
 
 
2668
 
int
2669
 
main ()
2670
 
{
2671
 
 
2672
 
  ;
2673
 
  return 0;
2674
 
}
2675
 
_ACEOF
2676
 
rm -f conftest.o conftest.obj
2677
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678
 
  (eval $ac_compile) 2>&5
2679
 
  ac_status=$?
2680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681
 
  (exit $ac_status); }; then
2682
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2683
 
  case $ac_file in
2684
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2685
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2686
 
       break;;
2687
 
  esac
2688
 
done
2689
 
else
2690
 
  echo "$as_me: failed program was:" >&5
2691
 
sed 's/^/| /' conftest.$ac_ext >&5
2692
 
 
2693
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2694
 
See \`config.log' for more details." >&5
2695
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2696
 
See \`config.log' for more details." >&2;}
2697
 
   { (exit 1); exit 1; }; }
2698
 
fi
2699
 
 
2700
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2701
 
fi
2702
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2703
 
echo "${ECHO_T}$ac_cv_objext" >&6
2704
 
OBJEXT=$ac_cv_objext
2705
 
ac_objext=$OBJEXT
2706
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2707
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2708
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2709
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2710
 
else
2711
 
  cat >conftest.$ac_ext <<_ACEOF
2712
 
/* confdefs.h.  */
2713
 
_ACEOF
2714
 
cat confdefs.h >>conftest.$ac_ext
2715
 
cat >>conftest.$ac_ext <<_ACEOF
2716
 
/* end confdefs.h.  */
2717
 
 
2718
 
int
2719
 
main ()
2720
 
{
2721
 
#ifndef __GNUC__
2722
 
       choke me
2723
 
#endif
2724
 
 
2725
 
  ;
2726
 
  return 0;
2727
 
}
2728
 
_ACEOF
2729
 
rm -f conftest.$ac_objext
2730
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731
 
  (eval $ac_compile) 2>conftest.er1
2732
 
  ac_status=$?
2733
 
  grep -v '^ *+' conftest.er1 >conftest.err
2734
 
  rm -f conftest.er1
2735
 
  cat conftest.err >&5
2736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737
 
  (exit $ac_status); } &&
2738
 
         { ac_try='test -z "$ac_c_werror_flag"
2739
 
                         || test ! -s conftest.err'
2740
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741
 
  (eval $ac_try) 2>&5
2742
 
  ac_status=$?
2743
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744
 
  (exit $ac_status); }; } &&
2745
 
         { ac_try='test -s conftest.$ac_objext'
2746
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747
 
  (eval $ac_try) 2>&5
2748
 
  ac_status=$?
2749
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750
 
  (exit $ac_status); }; }; then
2751
 
  ac_compiler_gnu=yes
2752
 
else
2753
 
  echo "$as_me: failed program was:" >&5
2754
 
sed 's/^/| /' conftest.$ac_ext >&5
2755
 
 
2756
 
ac_compiler_gnu=no
2757
 
fi
2758
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2760
 
 
2761
 
fi
2762
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2763
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2764
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2765
 
ac_test_CFLAGS=${CFLAGS+set}
2766
 
ac_save_CFLAGS=$CFLAGS
2767
 
CFLAGS="-g"
2768
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2769
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2770
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2771
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2772
 
else
2773
 
  cat >conftest.$ac_ext <<_ACEOF
2774
 
/* confdefs.h.  */
2775
 
_ACEOF
2776
 
cat confdefs.h >>conftest.$ac_ext
2777
 
cat >>conftest.$ac_ext <<_ACEOF
2778
 
/* end confdefs.h.  */
2779
 
 
2780
 
int
2781
 
main ()
2782
 
{
2783
 
 
2784
 
  ;
2785
 
  return 0;
2786
 
}
2787
 
_ACEOF
2788
 
rm -f conftest.$ac_objext
2789
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790
 
  (eval $ac_compile) 2>conftest.er1
2791
 
  ac_status=$?
2792
 
  grep -v '^ *+' conftest.er1 >conftest.err
2793
 
  rm -f conftest.er1
2794
 
  cat conftest.err >&5
2795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796
 
  (exit $ac_status); } &&
2797
 
         { ac_try='test -z "$ac_c_werror_flag"
2798
 
                         || test ! -s conftest.err'
2799
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800
 
  (eval $ac_try) 2>&5
2801
 
  ac_status=$?
2802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
 
  (exit $ac_status); }; } &&
2804
 
         { ac_try='test -s conftest.$ac_objext'
2805
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806
 
  (eval $ac_try) 2>&5
2807
 
  ac_status=$?
2808
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
 
  (exit $ac_status); }; }; then
2810
 
  ac_cv_prog_cc_g=yes
2811
 
else
2812
 
  echo "$as_me: failed program was:" >&5
2813
 
sed 's/^/| /' conftest.$ac_ext >&5
2814
 
 
2815
 
ac_cv_prog_cc_g=no
2816
 
fi
2817
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818
 
fi
2819
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2820
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2821
 
if test "$ac_test_CFLAGS" = set; then
2822
 
  CFLAGS=$ac_save_CFLAGS
2823
 
elif test $ac_cv_prog_cc_g = yes; then
2824
 
  if test "$GCC" = yes; then
2825
 
    CFLAGS="-g -O2"
2826
 
  else
2827
 
    CFLAGS="-g"
2828
 
  fi
2829
 
else
2830
 
  if test "$GCC" = yes; then
2831
 
    CFLAGS="-O2"
2832
 
  else
2833
 
    CFLAGS=
2834
 
  fi
2835
 
fi
2836
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2837
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2838
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2839
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2840
 
else
2841
 
  ac_cv_prog_cc_stdc=no
2842
 
ac_save_CC=$CC
2843
 
cat >conftest.$ac_ext <<_ACEOF
2844
 
/* confdefs.h.  */
2845
 
_ACEOF
2846
 
cat confdefs.h >>conftest.$ac_ext
2847
 
cat >>conftest.$ac_ext <<_ACEOF
2848
 
/* end confdefs.h.  */
2849
 
#include <stdarg.h>
2850
 
#include <stdio.h>
2851
 
#include <sys/types.h>
2852
 
#include <sys/stat.h>
2853
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2854
 
struct buf { int x; };
2855
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2856
 
static char *e (p, i)
2857
 
     char **p;
2858
 
     int i;
2859
 
{
2860
 
  return p[i];
2861
 
}
2862
 
static char *f (char * (*g) (char **, int), char **p, ...)
2863
 
{
2864
 
  char *s;
2865
 
  va_list v;
2866
 
  va_start (v,p);
2867
 
  s = g (p, va_arg (v,int));
2868
 
  va_end (v);
2869
 
  return s;
2870
 
}
2871
 
 
2872
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2873
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2874
 
   These don't provoke an error unfortunately, instead are silently treated
2875
 
   as 'x'.  The following induces an error, until -std1 is added to get
2876
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2877
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2878
 
   that's true only with -std1.  */
2879
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2880
 
 
2881
 
int test (int i, double x);
2882
 
struct s1 {int (*f) (int a);};
2883
 
struct s2 {int (*f) (double a);};
2884
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2885
 
int argc;
2886
 
char **argv;
2887
 
int
2888
 
main ()
2889
 
{
2890
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2891
 
  ;
2892
 
  return 0;
2893
 
}
2894
 
_ACEOF
2895
 
# Don't try gcc -ansi; that turns off useful extensions and
2896
 
# breaks some systems' header files.
2897
 
# AIX                   -qlanglvl=ansi
2898
 
# Ultrix and OSF/1      -std1
2899
 
# HP-UX 10.20 and later -Ae
2900
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2901
 
# SVR4                  -Xc -D__EXTENSIONS__
2902
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2903
 
do
2904
 
  CC="$ac_save_CC $ac_arg"
2905
 
  rm -f conftest.$ac_objext
2906
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907
 
  (eval $ac_compile) 2>conftest.er1
2908
 
  ac_status=$?
2909
 
  grep -v '^ *+' conftest.er1 >conftest.err
2910
 
  rm -f conftest.er1
2911
 
  cat conftest.err >&5
2912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913
 
  (exit $ac_status); } &&
2914
 
         { ac_try='test -z "$ac_c_werror_flag"
2915
 
                         || test ! -s conftest.err'
2916
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917
 
  (eval $ac_try) 2>&5
2918
 
  ac_status=$?
2919
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920
 
  (exit $ac_status); }; } &&
2921
 
         { ac_try='test -s conftest.$ac_objext'
2922
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923
 
  (eval $ac_try) 2>&5
2924
 
  ac_status=$?
2925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926
 
  (exit $ac_status); }; }; then
2927
 
  ac_cv_prog_cc_stdc=$ac_arg
2928
 
break
2929
 
else
2930
 
  echo "$as_me: failed program was:" >&5
2931
 
sed 's/^/| /' conftest.$ac_ext >&5
2932
 
 
2933
 
fi
2934
 
rm -f conftest.err conftest.$ac_objext 
2935
 
done
2936
 
rm -f conftest.$ac_ext conftest.$ac_objext
2937
 
CC=$ac_save_CC
2938
 
 
2939
 
fi
2940
 
 
2941
 
case "x$ac_cv_prog_cc_stdc" in
2942
 
  x|xno)
2943
 
    echo "$as_me:$LINENO: result: none needed" >&5
2944
 
echo "${ECHO_T}none needed" >&6 ;;
2945
 
  *)
2946
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2947
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2948
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2949
 
esac
2950
 
 
2951
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2952
 
# in C++ we need to declare it.  In case someone uses the same compiler
2953
 
# for both compiling C and C++ we need to have the C++ compiler decide
2954
 
# the declaration of exit, since it's the most demanding environment.
2955
 
cat >conftest.$ac_ext <<_ACEOF
2956
 
@%:@ifndef __cplusplus
2957
 
  choke me
2958
 
@%:@endif
2959
 
_ACEOF
2960
 
rm -f conftest.$ac_objext
2961
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962
 
  (eval $ac_compile) 2>conftest.er1
2963
 
  ac_status=$?
2964
 
  grep -v '^ *+' conftest.er1 >conftest.err
2965
 
  rm -f conftest.er1
2966
 
  cat conftest.err >&5
2967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968
 
  (exit $ac_status); } &&
2969
 
         { ac_try='test -z "$ac_c_werror_flag"
2970
 
                         || test ! -s conftest.err'
2971
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972
 
  (eval $ac_try) 2>&5
2973
 
  ac_status=$?
2974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975
 
  (exit $ac_status); }; } &&
2976
 
         { ac_try='test -s conftest.$ac_objext'
2977
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978
 
  (eval $ac_try) 2>&5
2979
 
  ac_status=$?
2980
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981
 
  (exit $ac_status); }; }; then
2982
 
  for ac_declaration in \
2983
 
   '' \
2984
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2985
 
   'extern "C" void std::exit (int); using std::exit;' \
2986
 
   'extern "C" void exit (int) throw ();' \
2987
 
   'extern "C" void exit (int);' \
2988
 
   'void exit (int);'
2989
 
do
2990
 
  cat >conftest.$ac_ext <<_ACEOF
2991
 
/* confdefs.h.  */
2992
 
_ACEOF
2993
 
cat confdefs.h >>conftest.$ac_ext
2994
 
cat >>conftest.$ac_ext <<_ACEOF
2995
 
/* end confdefs.h.  */
2996
 
$ac_declaration
2997
 
@%:@include <stdlib.h>
2998
 
int
2999
 
main ()
3000
 
{
3001
 
exit (42);
3002
 
  ;
3003
 
  return 0;
3004
 
}
3005
 
_ACEOF
3006
 
rm -f conftest.$ac_objext
3007
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008
 
  (eval $ac_compile) 2>conftest.er1
3009
 
  ac_status=$?
3010
 
  grep -v '^ *+' conftest.er1 >conftest.err
3011
 
  rm -f conftest.er1
3012
 
  cat conftest.err >&5
3013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014
 
  (exit $ac_status); } &&
3015
 
         { ac_try='test -z "$ac_c_werror_flag"
3016
 
                         || test ! -s conftest.err'
3017
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018
 
  (eval $ac_try) 2>&5
3019
 
  ac_status=$?
3020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021
 
  (exit $ac_status); }; } &&
3022
 
         { ac_try='test -s conftest.$ac_objext'
3023
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024
 
  (eval $ac_try) 2>&5
3025
 
  ac_status=$?
3026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027
 
  (exit $ac_status); }; }; then
3028
 
  :
3029
 
else
3030
 
  echo "$as_me: failed program was:" >&5
3031
 
sed 's/^/| /' conftest.$ac_ext >&5
3032
 
 
3033
 
continue
3034
 
fi
3035
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3036
 
  cat >conftest.$ac_ext <<_ACEOF
3037
 
/* confdefs.h.  */
3038
 
_ACEOF
3039
 
cat confdefs.h >>conftest.$ac_ext
3040
 
cat >>conftest.$ac_ext <<_ACEOF
3041
 
/* end confdefs.h.  */
3042
 
$ac_declaration
3043
 
int
3044
 
main ()
3045
 
{
3046
 
exit (42);
3047
 
  ;
3048
 
  return 0;
3049
 
}
3050
 
_ACEOF
3051
 
rm -f conftest.$ac_objext
3052
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053
 
  (eval $ac_compile) 2>conftest.er1
3054
 
  ac_status=$?
3055
 
  grep -v '^ *+' conftest.er1 >conftest.err
3056
 
  rm -f conftest.er1
3057
 
  cat conftest.err >&5
3058
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059
 
  (exit $ac_status); } &&
3060
 
         { ac_try='test -z "$ac_c_werror_flag"
3061
 
                         || test ! -s conftest.err'
3062
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063
 
  (eval $ac_try) 2>&5
3064
 
  ac_status=$?
3065
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066
 
  (exit $ac_status); }; } &&
3067
 
         { ac_try='test -s conftest.$ac_objext'
3068
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069
 
  (eval $ac_try) 2>&5
3070
 
  ac_status=$?
3071
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072
 
  (exit $ac_status); }; }; then
3073
 
  break
3074
 
else
3075
 
  echo "$as_me: failed program was:" >&5
3076
 
sed 's/^/| /' conftest.$ac_ext >&5
3077
 
 
3078
 
fi
3079
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3080
 
done
3081
 
rm -f conftest*
3082
 
if test -n "$ac_declaration"; then
3083
 
  echo '#ifdef __cplusplus' >>confdefs.h
3084
 
  echo $ac_declaration      >>confdefs.h
3085
 
  echo '#endif'             >>confdefs.h
3086
 
fi
3087
 
 
3088
 
else
3089
 
  echo "$as_me: failed program was:" >&5
3090
 
sed 's/^/| /' conftest.$ac_ext >&5
3091
 
 
3092
 
fi
3093
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3094
 
ac_ext=c
3095
 
ac_cpp='$CPP $CPPFLAGS'
3096
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
 
 
3100
 
depcc="$CC"   am_compiler_list=
3101
 
 
3102
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3103
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3104
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3105
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3106
 
else
3107
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3108
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3109
 
  # making bogus files that we don't know about and never remove.  For
3110
 
  # instance it was reported that on HP-UX the gcc test will end up
3111
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3112
 
  # in D'.
3113
 
  mkdir conftest.dir
3114
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3115
 
  # using a relative directory.
3116
 
  cp "$am_depcomp" conftest.dir
3117
 
  cd conftest.dir
3118
 
  # We will build objects and dependencies in a subdirectory because
3119
 
  # it helps to detect inapplicable dependency modes.  For instance
3120
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3121
 
  # side effect of compilation, but ICC will put the dependencies in
3122
 
  # the current directory while Tru64 will put them in the object
3123
 
  # directory.
3124
 
  mkdir sub
3125
 
 
3126
 
  am_cv_CC_dependencies_compiler_type=none
3127
 
  if test "$am_compiler_list" = ""; then
3128
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3129
 
  fi
3130
 
  for depmode in $am_compiler_list; do
3131
 
    # Setup a source with many dependencies, because some compilers
3132
 
    # like to wrap large dependency lists on column 80 (with \), and
3133
 
    # we should not choose a depcomp mode which is confused by this.
3134
 
    #
3135
 
    # We need to recreate these files for each test, as the compiler may
3136
 
    # overwrite some of them when testing with obscure command lines.
3137
 
    # This happens at least with the AIX C compiler.
3138
 
    : > sub/conftest.c
3139
 
    for i in 1 2 3 4 5 6; do
3140
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3141
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3142
 
      # Solaris 8's {/usr,}/bin/sh.
3143
 
      touch sub/conftst$i.h
3144
 
    done
3145
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3146
 
 
3147
 
    case $depmode in
3148
 
    nosideeffect)
3149
 
      # after this tag, mechanisms are not by side-effect, so they'll
3150
 
      # only be used when explicitly requested
3151
 
      if test "x$enable_dependency_tracking" = xyes; then
3152
 
        continue
3153
 
      else
3154
 
        break
3155
 
      fi
3156
 
      ;;
3157
 
    none) break ;;
3158
 
    esac
3159
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3160
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3161
 
    # handle `-M -o', and we need to detect this.
3162
 
    if depmode=$depmode \
3163
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3164
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3165
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3166
 
         >/dev/null 2>conftest.err &&
3167
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3168
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3169
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3170
 
      # icc doesn't choke on unknown options, it will just issue warnings
3171
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3172
 
      # that says an option was ignored or not supported.
3173
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3174
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3175
 
      # The diagnosis changed in icc 8.0:
3176
 
      #   icc: Command line remark: option '-MP' not supported
3177
 
      if (grep 'ignoring option' conftest.err ||
3178
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3179
 
        am_cv_CC_dependencies_compiler_type=$depmode
3180
 
        break
3181
 
      fi
3182
 
    fi
3183
 
  done
3184
 
 
3185
 
  cd ..
3186
 
  rm -rf conftest.dir
3187
 
else
3188
 
  am_cv_CC_dependencies_compiler_type=none
3189
 
fi
3190
 
 
3191
 
fi
3192
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3193
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3194
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3195
 
 
3196
 
 
3197
 
 
3198
 
if 
3199
 
  test "x$enable_dependency_tracking" != xno \
3200
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3201
 
  am__fastdepCC_TRUE=
3202
 
  am__fastdepCC_FALSE='#'
3203
 
else
3204
 
  am__fastdepCC_TRUE='#'
3205
 
  am__fastdepCC_FALSE=
3206
 
fi
3207
 
 
3208
 
 
3209
 
 
3210
 
echo "$as_me:$LINENO: checking for EVP_DigestUpdate in -lcrypto" >&5
3211
 
echo $ECHO_N "checking for EVP_DigestUpdate in -lcrypto... $ECHO_C" >&6
3212
 
if test "${ac_cv_lib_crypto_EVP_DigestUpdate+set}" = set; then
3213
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3214
 
else
3215
 
  ac_check_lib_save_LIBS=$LIBS
3216
 
LIBS="-lcrypto  $LIBS"
3217
 
cat >conftest.$ac_ext <<_ACEOF
3218
 
/* confdefs.h.  */
3219
 
_ACEOF
3220
 
cat confdefs.h >>conftest.$ac_ext
3221
 
cat >>conftest.$ac_ext <<_ACEOF
3222
 
/* end confdefs.h.  */
3223
 
 
3224
 
/* Override any gcc2 internal prototype to avoid an error.  */
3225
 
#ifdef __cplusplus
3226
 
extern "C"
3227
 
#endif
3228
 
/* We use char because int might match the return type of a gcc2
3229
 
   builtin and then its argument prototype would still apply.  */
3230
 
char EVP_DigestUpdate ();
3231
 
int
3232
 
main ()
3233
 
{
3234
 
EVP_DigestUpdate ();
3235
 
  ;
3236
 
  return 0;
3237
 
}
3238
 
_ACEOF
3239
 
rm -f conftest.$ac_objext conftest$ac_exeext
3240
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3241
 
  (eval $ac_link) 2>conftest.er1
3242
 
  ac_status=$?
3243
 
  grep -v '^ *+' conftest.er1 >conftest.err
3244
 
  rm -f conftest.er1
3245
 
  cat conftest.err >&5
3246
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247
 
  (exit $ac_status); } &&
3248
 
         { ac_try='test -z "$ac_c_werror_flag"
3249
 
                         || test ! -s conftest.err'
3250
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251
 
  (eval $ac_try) 2>&5
3252
 
  ac_status=$?
3253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254
 
  (exit $ac_status); }; } &&
3255
 
         { ac_try='test -s conftest$ac_exeext'
3256
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257
 
  (eval $ac_try) 2>&5
3258
 
  ac_status=$?
3259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260
 
  (exit $ac_status); }; }; then
3261
 
  ac_cv_lib_crypto_EVP_DigestUpdate=yes
3262
 
else
3263
 
  echo "$as_me: failed program was:" >&5
3264
 
sed 's/^/| /' conftest.$ac_ext >&5
3265
 
 
3266
 
ac_cv_lib_crypto_EVP_DigestUpdate=no
3267
 
fi
3268
 
rm -f conftest.err conftest.$ac_objext \
3269
 
      conftest$ac_exeext conftest.$ac_ext
3270
 
LIBS=$ac_check_lib_save_LIBS
3271
 
fi
3272
 
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestUpdate" >&5
3273
 
echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestUpdate" >&6
3274
 
if test $ac_cv_lib_crypto_EVP_DigestUpdate = yes; then
3275
 
  CRYPTO_PACKAGE='openssl'
3276
 
else
3277
 
  { { echo "$as_me:$LINENO: error: openssl is currently the only supported crypto library for trousers. Please install openssl from http://www.openssl.org or the -devel package from your distro" >&5
3278
 
echo "$as_me: error: openssl is currently the only supported crypto library for trousers. Please install openssl from http://www.openssl.org or the -devel package from your distro" >&2;}
3279
 
   { (exit 1); exit 1; }; }
3280
 
fi
3281
 
 
3282
 
 
3283
 
 
3284
 
# Check whether --enable-gcov or --disable-gcov was given.
3285
 
if test "${enable_gcov+set}" = set; then
3286
 
  enableval="$enable_gcov"
3287
 
  CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
3288
 
                 echo "$as_me:$LINENO: result: *** Enabling gcov at user request ***" >&5
3289
 
echo "${ECHO_T}*** Enabling gcov at user request ***" >&6
3290
 
fi; 
3291
 
 
3292
 
# profiling support
3293
 
# Check whether --enable-gprof or --disable-gprof was given.
3294
 
if test "${enable_gprof+set}" = set; then
3295
 
  enableval="$enable_gprof"
3296
 
  CFLAGS="$CFLAGS -pg"
3297
 
                 echo "$as_me:$LINENO: result: *** Enabling profiling at user request ***" >&5
3298
 
echo "${ECHO_T}*** Enabling profiling at user request ***" >&6
3299
 
fi; 
3300
 
 
3301
 
COPY_POLICIES=0
3302
 
# strict spec compliance
3303
 
# Check whether --enable-policy-copying or --disable-policy-copying was given.
3304
 
if test "${enable_policy_copying+set}" = set; then
3305
 
  enableval="$enable_policy_copying"
3306
 
  CFLAGS="$CFLAGS -DTSS_COPY_POLICY_OBJECTS"
3307
 
                 COPY_POLICIES=1
3308
 
                 echo "$as_me:$LINENO: result: *** Enabling spec compliance at user request ***" >&5
3309
 
echo "${ECHO_T}*** Enabling spec compliance at user request ***" >&6
3310
 
fi; 
3311
 
 
3312
 
SPEC_COMP=0
3313
 
# strict spec compliance
3314
 
# Check whether --enable-strict-spec-compliance or --disable-strict-spec-compliance was given.
3315
 
if test "${enable_strict_spec_compliance+set}" = set; then
3316
 
  enableval="$enable_strict_spec_compliance"
3317
 
  if test $COPY_POLICIES -eq 1; then { { echo "$as_me:$LINENO: error: Policy copying cannot be enabled in strict spec compliance mode" >&5
3318
 
echo "$as_me: error: Policy copying cannot be enabled in strict spec compliance mode" >&2;}
3319
 
   { (exit 1); exit 1; }; } fi
3320
 
                 CFLAGS="$CFLAGS -DTSS_SPEC_COMPLIANCE"
3321
 
                 SPEC_COMP=1
3322
 
                 echo "$as_me:$LINENO: result: *** Enabling spec compliance at user request ***" >&5
3323
 
echo "${ECHO_T}*** Enabling spec compliance at user request ***" >&6
3324
 
fi; 
3325
 
 
3326
 
GUI=gtk
3327
 
 
3328
 
# Check whether --with-gui or --without-gui was given.
3329
 
if test "${with_gui+set}" = set; then
3330
 
  withval="$with_gui"
3331
 
  GUI=$withval
3332
 
fi; 
3333
 
 
3334
 
if test "x$GUI" == "xgtk"; then
3335
 
        # section imported from Glade compile
3336
 
        pkg_modules="gtk+-2.0 >= 2.0.0"
3337
 
        
3338
 
  succeeded=no
3339
 
 
3340
 
  if test -z "$PKG_CONFIG"; then
3341
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
3342
 
set dummy pkg-config; ac_word=$2
3343
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3344
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3346
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3347
 
else
3348
 
  case $PKG_CONFIG in
3349
 
  [\\/]* | ?:[\\/]*)
3350
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3351
 
  ;;
3352
 
  *)
3353
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354
 
for as_dir in $PATH
3355
 
do
3356
 
  IFS=$as_save_IFS
3357
 
  test -z "$as_dir" && as_dir=.
3358
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3359
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3361
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362
 
    break 2
3363
 
  fi
3364
 
done
3365
 
done
3366
 
 
3367
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3368
 
  ;;
3369
 
esac
3370
 
fi
3371
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3372
 
 
3373
 
if test -n "$PKG_CONFIG"; then
3374
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3375
 
echo "${ECHO_T}$PKG_CONFIG" >&6
3376
 
else
3377
 
  echo "$as_me:$LINENO: result: no" >&5
3378
 
echo "${ECHO_T}no" >&6
3379
 
fi
3380
 
 
3381
 
  fi
3382
 
 
3383
 
  if test "$PKG_CONFIG" = "no" ; then
3384
 
     echo "*** The pkg-config script could not be found. Make sure it is"
3385
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
3386
 
     echo "*** to the full path to pkg-config."
3387
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3388
 
  else
3389
 
     PKG_CONFIG_MIN_VERSION=0.9.0
3390
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3391
 
        echo "$as_me:$LINENO: checking for $pkg_modules" >&5
3392
 
echo $ECHO_N "checking for $pkg_modules... $ECHO_C" >&6
3393
 
 
3394
 
        if $PKG_CONFIG --exists "$pkg_modules" ; then
3395
 
            echo "$as_me:$LINENO: result: yes" >&5
3396
 
echo "${ECHO_T}yes" >&6
3397
 
            succeeded=yes
3398
 
 
3399
 
            echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
3400
 
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
3401
 
            GTK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules"`
3402
 
            echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
3403
 
echo "${ECHO_T}$GTK_CFLAGS" >&6
3404
 
 
3405
 
            echo "$as_me:$LINENO: checking GTK_LIBS" >&5
3406
 
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
3407
 
            GTK_LIBS=`$PKG_CONFIG --libs "$pkg_modules"`
3408
 
            echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
3409
 
echo "${ECHO_T}$GTK_LIBS" >&6
3410
 
        else
3411
 
            GTK_CFLAGS=""
3412
 
            GTK_LIBS=""
3413
 
            ## If we have a custom action on failure, don't print errors, but 
3414
 
            ## do set a variable so people can do so.
3415
 
            GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
3416
 
            
3417
 
        fi
3418
 
 
3419
 
        
3420
 
        
3421
 
     else
3422
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3423
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
3424
 
     fi
3425
 
  fi
3426
 
 
3427
 
  if test $succeeded = yes; then
3428
 
      
3429
 
 
3430
 
if true; then
3431
 
  HAVE_GTK_TRUE=
3432
 
  HAVE_GTK_FALSE='#'
3433
 
else
3434
 
  HAVE_GTK_TRUE='#'
3435
 
  HAVE_GTK_FALSE=
3436
 
fi
3437
 
 
3438
 
  else
3439
 
      
3440
 
 
3441
 
if false; then
3442
 
  HAVE_GTK_TRUE=
3443
 
  HAVE_GTK_FALSE='#'
3444
 
else
3445
 
  HAVE_GTK_TRUE='#'
3446
 
  HAVE_GTK_FALSE=
3447
 
fi
3448
 
 
3449
 
                          { { echo "$as_me:$LINENO: error: GTK libs are currently the only supported GUI library for trousers. Please install the gtk2-devel package for your distro." >&5
3450
 
echo "$as_me: error: GTK libs are currently the only supported GUI library for trousers. Please install the gtk2-devel package for your distro." >&2;}
3451
 
   { (exit 1); exit 1; }; } 
3452
 
  fi
3453
 
 
3454
 
        
3455
 
        
3456
 
elif test "x$GUI" == "xnone"; then
3457
 
        if test $SPEC_COMP -eq 1; then
3458
 
                { { echo "$as_me:$LINENO: error: Popups must be enabled in strict spec compliance mode" >&5
3459
 
echo "$as_me: error: Popups must be enabled in strict spec compliance mode" >&2;}
3460
 
   { (exit 1); exit 1; }; }
3461
 
        fi
3462
 
        echo "$as_me:$LINENO: result: *** Disabling GUI popups at user request ***" >&5
3463
 
echo "${ECHO_T}*** Disabling GUI popups at user request ***" >&6
3464
 
        echo "$as_me:$LINENO: result: *** WARNING: This may break apps! ***" >&5
3465
 
echo "${ECHO_T}*** WARNING: This may break apps! ***" >&6
3466
 
        CFLAGS="$CFLAGS -DTSS_NO_GUI"
3467
 
         
3468
 
 
3469
 
if false; then
3470
 
  HAVE_GTK_TRUE=
3471
 
  HAVE_GTK_FALSE='#'
3472
 
else
3473
 
  HAVE_GTK_TRUE='#'
3474
 
  HAVE_GTK_FALSE=
3475
 
fi
3476
 
 
3477
 
else
3478
 
        { { echo "$as_me:$LINENO: error: \"gtk\" and \"none\" are the only supported gui options for trousers" >&5
3479
 
echo "$as_me: error: \"gtk\" and \"none\" are the only supported gui options for trousers" >&2;}
3480
 
   { (exit 1); exit 1; }; }
3481
 
fi
3482
 
 
3483
 
#GETTEXT_PACKAGE=trousers
3484
 
#AC_SUBST(GETTEXT_PACKAGE)
3485
 
#AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
3486
 
 
3487
 
#ALL_LINGUAS=""
3488
 
#AM_GLIB_GNU_GETTEXT
3489
 
 
3490
 
# end Glade section
3491
 
 
3492
 
 
3493
 
# Check whether --enable-static or --disable-static was given.
3494
 
if test "${enable_static+set}" = set; then
3495
 
  enableval="$enable_static"
3496
 
  p=${PACKAGE-default}
3497
 
    case $enableval in
3498
 
    yes) enable_static=yes ;;
3499
 
    no) enable_static=no ;;
3500
 
    *)
3501
 
     enable_static=no
3502
 
      # Look at the argument we got.  We use all the common list separators.
3503
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3504
 
      for pkg in $enableval; do
3505
 
        IFS="$lt_save_ifs"
3506
 
        if test "X$pkg" = "X$p"; then
3507
 
          enable_static=yes
3508
 
        fi
3509
 
      done
3510
 
      IFS="$lt_save_ifs"
3511
 
      ;;
3512
 
    esac
3513
 
else
3514
 
  enable_static=no
3515
 
fi; 
3516
 
 
3517
 
 
3518
 
ac_ext=c
3519
 
ac_cpp='$CPP $CPPFLAGS'
3520
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
 
if test -n "$ac_tool_prefix"; then
3524
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3525
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3526
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3527
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528
 
if test "${ac_cv_prog_CC+set}" = set; then
3529
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3530
 
else
3531
 
  if test -n "$CC"; then
3532
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3533
 
else
3534
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535
 
for as_dir in $PATH
3536
 
do
3537
 
  IFS=$as_save_IFS
3538
 
  test -z "$as_dir" && as_dir=.
3539
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3540
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3542
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543
 
    break 2
3544
 
  fi
3545
 
done
3546
 
done
3547
 
 
3548
 
fi
3549
 
fi
3550
 
CC=$ac_cv_prog_CC
3551
 
if test -n "$CC"; then
3552
 
  echo "$as_me:$LINENO: result: $CC" >&5
3553
 
echo "${ECHO_T}$CC" >&6
3554
 
else
3555
 
  echo "$as_me:$LINENO: result: no" >&5
3556
 
echo "${ECHO_T}no" >&6
3557
 
fi
3558
 
 
3559
 
fi
3560
 
if test -z "$ac_cv_prog_CC"; then
3561
 
  ac_ct_CC=$CC
3562
 
  # Extract the first word of "gcc", so it can be a program name with args.
3563
 
set dummy gcc; ac_word=$2
3564
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3565
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3567
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3568
 
else
3569
 
  if test -n "$ac_ct_CC"; then
3570
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571
 
else
3572
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573
 
for as_dir in $PATH
3574
 
do
3575
 
  IFS=$as_save_IFS
3576
 
  test -z "$as_dir" && as_dir=.
3577
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3578
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579
 
    ac_cv_prog_ac_ct_CC="gcc"
3580
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581
 
    break 2
3582
 
  fi
3583
 
done
3584
 
done
3585
 
 
3586
 
fi
3587
 
fi
3588
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3589
 
if test -n "$ac_ct_CC"; then
3590
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3591
 
echo "${ECHO_T}$ac_ct_CC" >&6
3592
 
else
3593
 
  echo "$as_me:$LINENO: result: no" >&5
3594
 
echo "${ECHO_T}no" >&6
3595
 
fi
3596
 
 
3597
 
  CC=$ac_ct_CC
3598
 
else
3599
 
  CC="$ac_cv_prog_CC"
3600
 
fi
3601
 
 
3602
 
if test -z "$CC"; then
3603
 
  if test -n "$ac_tool_prefix"; then
3604
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3605
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3606
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3607
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608
 
if test "${ac_cv_prog_CC+set}" = set; then
3609
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3610
 
else
3611
 
  if test -n "$CC"; then
3612
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3613
 
else
3614
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615
 
for as_dir in $PATH
3616
 
do
3617
 
  IFS=$as_save_IFS
3618
 
  test -z "$as_dir" && as_dir=.
3619
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3620
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3622
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623
 
    break 2
3624
 
  fi
3625
 
done
3626
 
done
3627
 
 
3628
 
fi
3629
 
fi
3630
 
CC=$ac_cv_prog_CC
3631
 
if test -n "$CC"; then
3632
 
  echo "$as_me:$LINENO: result: $CC" >&5
3633
 
echo "${ECHO_T}$CC" >&6
3634
 
else
3635
 
  echo "$as_me:$LINENO: result: no" >&5
3636
 
echo "${ECHO_T}no" >&6
3637
 
fi
3638
 
 
3639
 
fi
3640
 
if test -z "$ac_cv_prog_CC"; then
3641
 
  ac_ct_CC=$CC
3642
 
  # Extract the first word of "cc", so it can be a program name with args.
3643
 
set dummy cc; ac_word=$2
3644
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3645
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3647
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3648
 
else
3649
 
  if test -n "$ac_ct_CC"; then
3650
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651
 
else
3652
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653
 
for as_dir in $PATH
3654
 
do
3655
 
  IFS=$as_save_IFS
3656
 
  test -z "$as_dir" && as_dir=.
3657
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3658
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659
 
    ac_cv_prog_ac_ct_CC="cc"
3660
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661
 
    break 2
3662
 
  fi
3663
 
done
3664
 
done
3665
 
 
3666
 
fi
3667
 
fi
3668
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3669
 
if test -n "$ac_ct_CC"; then
3670
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3671
 
echo "${ECHO_T}$ac_ct_CC" >&6
3672
 
else
3673
 
  echo "$as_me:$LINENO: result: no" >&5
3674
 
echo "${ECHO_T}no" >&6
3675
 
fi
3676
 
 
3677
 
  CC=$ac_ct_CC
3678
 
else
3679
 
  CC="$ac_cv_prog_CC"
3680
 
fi
3681
 
 
3682
 
fi
3683
 
if test -z "$CC"; then
3684
 
  # Extract the first word of "cc", so it can be a program name with args.
3685
 
set dummy cc; ac_word=$2
3686
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3687
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688
 
if test "${ac_cv_prog_CC+set}" = set; then
3689
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3690
 
else
3691
 
  if test -n "$CC"; then
3692
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3693
 
else
3694
 
  ac_prog_rejected=no
3695
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696
 
for as_dir in $PATH
3697
 
do
3698
 
  IFS=$as_save_IFS
3699
 
  test -z "$as_dir" && as_dir=.
3700
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3701
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703
 
       ac_prog_rejected=yes
3704
 
       continue
3705
 
     fi
3706
 
    ac_cv_prog_CC="cc"
3707
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708
 
    break 2
3709
 
  fi
3710
 
done
3711
 
done
3712
 
 
3713
 
if test $ac_prog_rejected = yes; then
3714
 
  # We found a bogon in the path, so make sure we never use it.
3715
 
  set dummy $ac_cv_prog_CC
3716
 
  shift
3717
 
  if test $@%:@ != 0; then
3718
 
    # We chose a different compiler from the bogus one.
3719
 
    # However, it has the same basename, so the bogon will be chosen
3720
 
    # first if we set CC to just the basename; use the full file name.
3721
 
    shift
3722
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3723
 
  fi
3724
 
fi
3725
 
fi
3726
 
fi
3727
 
CC=$ac_cv_prog_CC
3728
 
if test -n "$CC"; then
3729
 
  echo "$as_me:$LINENO: result: $CC" >&5
3730
 
echo "${ECHO_T}$CC" >&6
3731
 
else
3732
 
  echo "$as_me:$LINENO: result: no" >&5
3733
 
echo "${ECHO_T}no" >&6
3734
 
fi
3735
 
 
3736
 
fi
3737
 
if test -z "$CC"; then
3738
 
  if test -n "$ac_tool_prefix"; then
3739
 
  for ac_prog in cl
3740
 
  do
3741
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3744
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3745
 
if test "${ac_cv_prog_CC+set}" = set; then
3746
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3747
 
else
3748
 
  if test -n "$CC"; then
3749
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3750
 
else
3751
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752
 
for as_dir in $PATH
3753
 
do
3754
 
  IFS=$as_save_IFS
3755
 
  test -z "$as_dir" && as_dir=.
3756
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3757
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3759
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760
 
    break 2
3761
 
  fi
3762
 
done
3763
 
done
3764
 
 
3765
 
fi
3766
 
fi
3767
 
CC=$ac_cv_prog_CC
3768
 
if test -n "$CC"; then
3769
 
  echo "$as_me:$LINENO: result: $CC" >&5
3770
 
echo "${ECHO_T}$CC" >&6
3771
 
else
3772
 
  echo "$as_me:$LINENO: result: no" >&5
3773
 
echo "${ECHO_T}no" >&6
3774
 
fi
3775
 
 
3776
 
    test -n "$CC" && break
3777
 
  done
3778
 
fi
3779
 
if test -z "$CC"; then
3780
 
  ac_ct_CC=$CC
3781
 
  for ac_prog in cl
3782
 
do
3783
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3784
 
set dummy $ac_prog; ac_word=$2
3785
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3786
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3788
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3789
 
else
3790
 
  if test -n "$ac_ct_CC"; then
3791
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792
 
else
3793
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794
 
for as_dir in $PATH
3795
 
do
3796
 
  IFS=$as_save_IFS
3797
 
  test -z "$as_dir" && as_dir=.
3798
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3799
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3801
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802
 
    break 2
3803
 
  fi
3804
 
done
3805
 
done
3806
 
 
3807
 
fi
3808
 
fi
3809
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3810
 
if test -n "$ac_ct_CC"; then
3811
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3812
 
echo "${ECHO_T}$ac_ct_CC" >&6
3813
 
else
3814
 
  echo "$as_me:$LINENO: result: no" >&5
3815
 
echo "${ECHO_T}no" >&6
3816
 
fi
3817
 
 
3818
 
  test -n "$ac_ct_CC" && break
3819
 
done
3820
 
 
3821
 
  CC=$ac_ct_CC
3822
 
fi
3823
 
 
3824
 
fi
3825
 
 
3826
 
 
3827
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3828
 
See \`config.log' for more details." >&5
3829
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3830
 
See \`config.log' for more details." >&2;}
3831
 
   { (exit 1); exit 1; }; }
3832
 
 
3833
 
# Provide some information about the compiler.
3834
 
echo "$as_me:$LINENO:" \
3835
 
     "checking for C compiler version" >&5
3836
 
ac_compiler=`set X $ac_compile; echo $2`
3837
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3838
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
3839
 
  ac_status=$?
3840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841
 
  (exit $ac_status); }
3842
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3843
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
3844
 
  ac_status=$?
3845
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846
 
  (exit $ac_status); }
3847
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3848
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
3849
 
  ac_status=$?
3850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851
 
  (exit $ac_status); }
3852
 
 
3853
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3854
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3855
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3856
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3857
 
else
3858
 
  cat >conftest.$ac_ext <<_ACEOF
3859
 
/* confdefs.h.  */
3860
 
_ACEOF
3861
 
cat confdefs.h >>conftest.$ac_ext
3862
 
cat >>conftest.$ac_ext <<_ACEOF
3863
 
/* end confdefs.h.  */
3864
 
 
3865
 
int
3866
 
main ()
3867
 
{
3868
 
#ifndef __GNUC__
3869
 
       choke me
3870
 
#endif
3871
 
 
3872
 
  ;
3873
 
  return 0;
3874
 
}
3875
 
_ACEOF
3876
 
rm -f conftest.$ac_objext
3877
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878
 
  (eval $ac_compile) 2>conftest.er1
3879
 
  ac_status=$?
3880
 
  grep -v '^ *+' conftest.er1 >conftest.err
3881
 
  rm -f conftest.er1
3882
 
  cat conftest.err >&5
3883
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884
 
  (exit $ac_status); } &&
3885
 
         { ac_try='test -z "$ac_c_werror_flag"
3886
 
                         || test ! -s conftest.err'
3887
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888
 
  (eval $ac_try) 2>&5
3889
 
  ac_status=$?
3890
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891
 
  (exit $ac_status); }; } &&
3892
 
         { ac_try='test -s conftest.$ac_objext'
3893
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894
 
  (eval $ac_try) 2>&5
3895
 
  ac_status=$?
3896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897
 
  (exit $ac_status); }; }; then
3898
 
  ac_compiler_gnu=yes
3899
 
else
3900
 
  echo "$as_me: failed program was:" >&5
3901
 
sed 's/^/| /' conftest.$ac_ext >&5
3902
 
 
3903
 
ac_compiler_gnu=no
3904
 
fi
3905
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3907
 
 
3908
 
fi
3909
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3910
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3911
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
3912
 
ac_test_CFLAGS=${CFLAGS+set}
3913
 
ac_save_CFLAGS=$CFLAGS
3914
 
CFLAGS="-g"
3915
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3916
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3917
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3918
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3919
 
else
3920
 
  cat >conftest.$ac_ext <<_ACEOF
3921
 
/* confdefs.h.  */
3922
 
_ACEOF
3923
 
cat confdefs.h >>conftest.$ac_ext
3924
 
cat >>conftest.$ac_ext <<_ACEOF
3925
 
/* end confdefs.h.  */
3926
 
 
3927
 
int
3928
 
main ()
3929
 
{
3930
 
 
3931
 
  ;
3932
 
  return 0;
3933
 
}
3934
 
_ACEOF
3935
 
rm -f conftest.$ac_objext
3936
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937
 
  (eval $ac_compile) 2>conftest.er1
3938
 
  ac_status=$?
3939
 
  grep -v '^ *+' conftest.er1 >conftest.err
3940
 
  rm -f conftest.er1
3941
 
  cat conftest.err >&5
3942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
 
  (exit $ac_status); } &&
3944
 
         { ac_try='test -z "$ac_c_werror_flag"
3945
 
                         || test ! -s conftest.err'
3946
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947
 
  (eval $ac_try) 2>&5
3948
 
  ac_status=$?
3949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950
 
  (exit $ac_status); }; } &&
3951
 
         { ac_try='test -s conftest.$ac_objext'
3952
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953
 
  (eval $ac_try) 2>&5
3954
 
  ac_status=$?
3955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
 
  (exit $ac_status); }; }; then
3957
 
  ac_cv_prog_cc_g=yes
3958
 
else
3959
 
  echo "$as_me: failed program was:" >&5
3960
 
sed 's/^/| /' conftest.$ac_ext >&5
3961
 
 
3962
 
ac_cv_prog_cc_g=no
3963
 
fi
3964
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3965
 
fi
3966
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3967
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3968
 
if test "$ac_test_CFLAGS" = set; then
3969
 
  CFLAGS=$ac_save_CFLAGS
3970
 
elif test $ac_cv_prog_cc_g = yes; then
3971
 
  if test "$GCC" = yes; then
3972
 
    CFLAGS="-g -O2"
3973
 
  else
3974
 
    CFLAGS="-g"
3975
 
  fi
3976
 
else
3977
 
  if test "$GCC" = yes; then
3978
 
    CFLAGS="-O2"
3979
 
  else
3980
 
    CFLAGS=
3981
 
  fi
3982
 
fi
3983
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3984
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3985
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3986
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3987
 
else
3988
 
  ac_cv_prog_cc_stdc=no
3989
 
ac_save_CC=$CC
3990
 
cat >conftest.$ac_ext <<_ACEOF
3991
 
/* confdefs.h.  */
3992
 
_ACEOF
3993
 
cat confdefs.h >>conftest.$ac_ext
3994
 
cat >>conftest.$ac_ext <<_ACEOF
3995
 
/* end confdefs.h.  */
3996
 
#include <stdarg.h>
3997
 
#include <stdio.h>
3998
 
#include <sys/types.h>
3999
 
#include <sys/stat.h>
4000
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4001
 
struct buf { int x; };
4002
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4003
 
static char *e (p, i)
4004
 
     char **p;
4005
 
     int i;
4006
 
{
4007
 
  return p[i];
4008
 
}
4009
 
static char *f (char * (*g) (char **, int), char **p, ...)
4010
 
{
4011
 
  char *s;
4012
 
  va_list v;
4013
 
  va_start (v,p);
4014
 
  s = g (p, va_arg (v,int));
4015
 
  va_end (v);
4016
 
  return s;
4017
 
}
4018
 
 
4019
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4020
 
   function prototypes and stuff, but not '\xHH' hex character constants.
4021
 
   These don't provoke an error unfortunately, instead are silently treated
4022
 
   as 'x'.  The following induces an error, until -std1 is added to get
4023
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4024
 
   array size at least.  It's necessary to write '\x00'==0 to get something
4025
 
   that's true only with -std1.  */
4026
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4027
 
 
4028
 
int test (int i, double x);
4029
 
struct s1 {int (*f) (int a);};
4030
 
struct s2 {int (*f) (double a);};
4031
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4032
 
int argc;
4033
 
char **argv;
4034
 
int
4035
 
main ()
4036
 
{
4037
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4038
 
  ;
4039
 
  return 0;
4040
 
}
4041
 
_ACEOF
4042
 
# Don't try gcc -ansi; that turns off useful extensions and
4043
 
# breaks some systems' header files.
4044
 
# AIX                   -qlanglvl=ansi
4045
 
# Ultrix and OSF/1      -std1
4046
 
# HP-UX 10.20 and later -Ae
4047
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4048
 
# SVR4                  -Xc -D__EXTENSIONS__
4049
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4050
 
do
4051
 
  CC="$ac_save_CC $ac_arg"
4052
 
  rm -f conftest.$ac_objext
4053
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054
 
  (eval $ac_compile) 2>conftest.er1
4055
 
  ac_status=$?
4056
 
  grep -v '^ *+' conftest.er1 >conftest.err
4057
 
  rm -f conftest.er1
4058
 
  cat conftest.err >&5
4059
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060
 
  (exit $ac_status); } &&
4061
 
         { ac_try='test -z "$ac_c_werror_flag"
4062
 
                         || test ! -s conftest.err'
4063
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064
 
  (eval $ac_try) 2>&5
4065
 
  ac_status=$?
4066
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067
 
  (exit $ac_status); }; } &&
4068
 
         { ac_try='test -s conftest.$ac_objext'
4069
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070
 
  (eval $ac_try) 2>&5
4071
 
  ac_status=$?
4072
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073
 
  (exit $ac_status); }; }; then
4074
 
  ac_cv_prog_cc_stdc=$ac_arg
4075
 
break
4076
 
else
4077
 
  echo "$as_me: failed program was:" >&5
4078
 
sed 's/^/| /' conftest.$ac_ext >&5
4079
 
 
4080
 
fi
4081
 
rm -f conftest.err conftest.$ac_objext 
4082
 
done
4083
 
rm -f conftest.$ac_ext conftest.$ac_objext
4084
 
CC=$ac_save_CC
4085
 
 
4086
 
fi
4087
 
 
4088
 
case "x$ac_cv_prog_cc_stdc" in
4089
 
  x|xno)
4090
 
    echo "$as_me:$LINENO: result: none needed" >&5
4091
 
echo "${ECHO_T}none needed" >&6 ;;
4092
 
  *)
4093
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4094
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4095
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4096
 
esac
4097
 
 
4098
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
4099
 
# in C++ we need to declare it.  In case someone uses the same compiler
4100
 
# for both compiling C and C++ we need to have the C++ compiler decide
4101
 
# the declaration of exit, since it's the most demanding environment.
4102
 
cat >conftest.$ac_ext <<_ACEOF
4103
 
@%:@ifndef __cplusplus
4104
 
  choke me
4105
 
@%:@endif
4106
 
_ACEOF
4107
 
rm -f conftest.$ac_objext
4108
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109
 
  (eval $ac_compile) 2>conftest.er1
4110
 
  ac_status=$?
4111
 
  grep -v '^ *+' conftest.er1 >conftest.err
4112
 
  rm -f conftest.er1
4113
 
  cat conftest.err >&5
4114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115
 
  (exit $ac_status); } &&
4116
 
         { ac_try='test -z "$ac_c_werror_flag"
4117
 
                         || test ! -s conftest.err'
4118
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119
 
  (eval $ac_try) 2>&5
4120
 
  ac_status=$?
4121
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
 
  (exit $ac_status); }; } &&
4123
 
         { ac_try='test -s conftest.$ac_objext'
4124
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125
 
  (eval $ac_try) 2>&5
4126
 
  ac_status=$?
4127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128
 
  (exit $ac_status); }; }; then
4129
 
  for ac_declaration in \
4130
 
   '' \
4131
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4132
 
   'extern "C" void std::exit (int); using std::exit;' \
4133
 
   'extern "C" void exit (int) throw ();' \
4134
 
   'extern "C" void exit (int);' \
4135
 
   'void exit (int);'
4136
 
do
4137
 
  cat >conftest.$ac_ext <<_ACEOF
4138
 
/* confdefs.h.  */
4139
 
_ACEOF
4140
 
cat confdefs.h >>conftest.$ac_ext
4141
 
cat >>conftest.$ac_ext <<_ACEOF
4142
 
/* end confdefs.h.  */
4143
 
$ac_declaration
4144
 
@%:@include <stdlib.h>
4145
 
int
4146
 
main ()
4147
 
{
4148
 
exit (42);
4149
 
  ;
4150
 
  return 0;
4151
 
}
4152
 
_ACEOF
4153
 
rm -f conftest.$ac_objext
4154
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155
 
  (eval $ac_compile) 2>conftest.er1
4156
 
  ac_status=$?
4157
 
  grep -v '^ *+' conftest.er1 >conftest.err
4158
 
  rm -f conftest.er1
4159
 
  cat conftest.err >&5
4160
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161
 
  (exit $ac_status); } &&
4162
 
         { ac_try='test -z "$ac_c_werror_flag"
4163
 
                         || test ! -s conftest.err'
4164
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165
 
  (eval $ac_try) 2>&5
4166
 
  ac_status=$?
4167
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168
 
  (exit $ac_status); }; } &&
4169
 
         { ac_try='test -s conftest.$ac_objext'
4170
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171
 
  (eval $ac_try) 2>&5
4172
 
  ac_status=$?
4173
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174
 
  (exit $ac_status); }; }; then
4175
 
  :
4176
 
else
4177
 
  echo "$as_me: failed program was:" >&5
4178
 
sed 's/^/| /' conftest.$ac_ext >&5
4179
 
 
4180
 
continue
4181
 
fi
4182
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183
 
  cat >conftest.$ac_ext <<_ACEOF
4184
 
/* confdefs.h.  */
4185
 
_ACEOF
4186
 
cat confdefs.h >>conftest.$ac_ext
4187
 
cat >>conftest.$ac_ext <<_ACEOF
4188
 
/* end confdefs.h.  */
4189
 
$ac_declaration
4190
 
int
4191
 
main ()
4192
 
{
4193
 
exit (42);
4194
 
  ;
4195
 
  return 0;
4196
 
}
4197
 
_ACEOF
4198
 
rm -f conftest.$ac_objext
4199
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200
 
  (eval $ac_compile) 2>conftest.er1
4201
 
  ac_status=$?
4202
 
  grep -v '^ *+' conftest.er1 >conftest.err
4203
 
  rm -f conftest.er1
4204
 
  cat conftest.err >&5
4205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206
 
  (exit $ac_status); } &&
4207
 
         { ac_try='test -z "$ac_c_werror_flag"
4208
 
                         || test ! -s conftest.err'
4209
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210
 
  (eval $ac_try) 2>&5
4211
 
  ac_status=$?
4212
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213
 
  (exit $ac_status); }; } &&
4214
 
         { ac_try='test -s conftest.$ac_objext'
4215
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216
 
  (eval $ac_try) 2>&5
4217
 
  ac_status=$?
4218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219
 
  (exit $ac_status); }; }; then
4220
 
  break
4221
 
else
4222
 
  echo "$as_me: failed program was:" >&5
4223
 
sed 's/^/| /' conftest.$ac_ext >&5
4224
 
 
4225
 
fi
4226
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4227
 
done
4228
 
rm -f conftest*
4229
 
if test -n "$ac_declaration"; then
4230
 
  echo '#ifdef __cplusplus' >>confdefs.h
4231
 
  echo $ac_declaration      >>confdefs.h
4232
 
  echo '#endif'             >>confdefs.h
4233
 
fi
4234
 
 
4235
 
else
4236
 
  echo "$as_me: failed program was:" >&5
4237
 
sed 's/^/| /' conftest.$ac_ext >&5
4238
 
 
4239
 
fi
4240
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241
 
ac_ext=c
4242
 
ac_cpp='$CPP $CPPFLAGS'
4243
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246
 
 
4247
 
depcc="$CC"   am_compiler_list=
4248
 
 
4249
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4250
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4251
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4252
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4253
 
else
4254
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4255
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4256
 
  # making bogus files that we don't know about and never remove.  For
4257
 
  # instance it was reported that on HP-UX the gcc test will end up
4258
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4259
 
  # in D'.
4260
 
  mkdir conftest.dir
4261
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4262
 
  # using a relative directory.
4263
 
  cp "$am_depcomp" conftest.dir
4264
 
  cd conftest.dir
4265
 
  # We will build objects and dependencies in a subdirectory because
4266
 
  # it helps to detect inapplicable dependency modes.  For instance
4267
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4268
 
  # side effect of compilation, but ICC will put the dependencies in
4269
 
  # the current directory while Tru64 will put them in the object
4270
 
  # directory.
4271
 
  mkdir sub
4272
 
 
4273
 
  am_cv_CC_dependencies_compiler_type=none
4274
 
  if test "$am_compiler_list" = ""; then
4275
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4276
 
  fi
4277
 
  for depmode in $am_compiler_list; do
4278
 
    # Setup a source with many dependencies, because some compilers
4279
 
    # like to wrap large dependency lists on column 80 (with \), and
4280
 
    # we should not choose a depcomp mode which is confused by this.
4281
 
    #
4282
 
    # We need to recreate these files for each test, as the compiler may
4283
 
    # overwrite some of them when testing with obscure command lines.
4284
 
    # This happens at least with the AIX C compiler.
4285
 
    : > sub/conftest.c
4286
 
    for i in 1 2 3 4 5 6; do
4287
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4288
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4289
 
      # Solaris 8's {/usr,}/bin/sh.
4290
 
      touch sub/conftst$i.h
4291
 
    done
4292
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4293
 
 
4294
 
    case $depmode in
4295
 
    nosideeffect)
4296
 
      # after this tag, mechanisms are not by side-effect, so they'll
4297
 
      # only be used when explicitly requested
4298
 
      if test "x$enable_dependency_tracking" = xyes; then
4299
 
        continue
4300
 
      else
4301
 
        break
4302
 
      fi
4303
 
      ;;
4304
 
    none) break ;;
4305
 
    esac
4306
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4307
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4308
 
    # handle `-M -o', and we need to detect this.
4309
 
    if depmode=$depmode \
4310
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4311
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4312
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4313
 
         >/dev/null 2>conftest.err &&
4314
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4315
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4316
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4317
 
      # icc doesn't choke on unknown options, it will just issue warnings
4318
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4319
 
      # that says an option was ignored or not supported.
4320
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4321
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4322
 
      # The diagnosis changed in icc 8.0:
4323
 
      #   icc: Command line remark: option '-MP' not supported
4324
 
      if (grep 'ignoring option' conftest.err ||
4325
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4326
 
        am_cv_CC_dependencies_compiler_type=$depmode
4327
 
        break
4328
 
      fi
4329
 
    fi
4330
 
  done
4331
 
 
4332
 
  cd ..
4333
 
  rm -rf conftest.dir
4334
 
else
4335
 
  am_cv_CC_dependencies_compiler_type=none
4336
 
fi
4337
 
 
4338
 
fi
4339
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4340
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4341
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4342
 
 
4343
 
 
4344
 
 
4345
 
if 
4346
 
  test "x$enable_dependency_tracking" != xno \
4347
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4348
 
  am__fastdepCC_TRUE=
4349
 
  am__fastdepCC_FALSE='#'
4350
 
else
4351
 
  am__fastdepCC_TRUE='#'
4352
 
  am__fastdepCC_FALSE=
4353
 
fi
4354
 
 
4355
 
 
4356
 
# Check whether --enable-shared or --disable-shared was given.
4357
 
if test "${enable_shared+set}" = set; then
4358
 
  enableval="$enable_shared"
4359
 
  p=${PACKAGE-default}
4360
 
    case $enableval in
4361
 
    yes) enable_shared=yes ;;
4362
 
    no) enable_shared=no ;;
4363
 
    *)
4364
 
      enable_shared=no
4365
 
      # Look at the argument we got.  We use all the common list separators.
4366
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4367
 
      for pkg in $enableval; do
4368
 
        IFS="$lt_save_ifs"
4369
 
        if test "X$pkg" = "X$p"; then
4370
 
          enable_shared=yes
4371
 
        fi
4372
 
      done
4373
 
      IFS="$lt_save_ifs"
4374
 
      ;;
4375
 
    esac
4376
 
else
4377
 
  enable_shared=yes
4378
 
fi; 
4379
 
 
4380
 
# Check whether --enable-fast-install or --disable-fast-install was given.
4381
 
if test "${enable_fast_install+set}" = set; then
4382
 
  enableval="$enable_fast_install"
4383
 
  p=${PACKAGE-default}
4384
 
    case $enableval in
4385
 
    yes) enable_fast_install=yes ;;
4386
 
    no) enable_fast_install=no ;;
4387
 
    *)
4388
 
      enable_fast_install=no
4389
 
      # Look at the argument we got.  We use all the common list separators.
4390
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4391
 
      for pkg in $enableval; do
4392
 
        IFS="$lt_save_ifs"
4393
 
        if test "X$pkg" = "X$p"; then
4394
 
          enable_fast_install=yes
4395
 
        fi
4396
 
      done
4397
 
      IFS="$lt_save_ifs"
4398
 
      ;;
4399
 
    esac
4400
 
else
4401
 
  enable_fast_install=yes
4402
 
fi; 
4403
 
 
4404
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4405
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4406
 
if test "${lt_cv_path_SED+set}" = set; then
4407
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4408
 
else
4409
 
  # Loop through the user's path and test for sed and gsed.
4410
 
# Then use that list of sed's as ones to test for truncation.
4411
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412
 
for as_dir in $PATH
4413
 
do
4414
 
  IFS=$as_save_IFS
4415
 
  test -z "$as_dir" && as_dir=.
4416
 
  for lt_ac_prog in sed gsed; do
4417
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4418
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4419
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4420
 
      fi
4421
 
    done
4422
 
  done
4423
 
done
4424
 
lt_ac_max=0
4425
 
lt_ac_count=0
4426
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4427
 
# along with /bin/sed that truncates output.
4428
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4429
 
  test ! -f $lt_ac_sed && continue
4430
 
  cat /dev/null > conftest.in
4431
 
  lt_ac_count=0
4432
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4433
 
  # Check for GNU sed and select it if it is found.
4434
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4435
 
    lt_cv_path_SED=$lt_ac_sed
4436
 
    break
4437
 
  fi
4438
 
  while true; do
4439
 
    cat conftest.in conftest.in >conftest.tmp
4440
 
    mv conftest.tmp conftest.in
4441
 
    cp conftest.in conftest.nl
4442
 
    echo >>conftest.nl
4443
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4444
 
    cmp -s conftest.out conftest.nl || break
4445
 
    # 10000 chars as input seems more than enough
4446
 
    test $lt_ac_count -gt 10 && break
4447
 
    lt_ac_count=`expr $lt_ac_count + 1`
4448
 
    if test $lt_ac_count -gt $lt_ac_max; then
4449
 
      lt_ac_max=$lt_ac_count
4450
 
      lt_cv_path_SED=$lt_ac_sed
4451
 
    fi
4452
 
  done
4453
 
done
4454
 
 
4455
 
fi
4456
 
 
4457
 
SED=$lt_cv_path_SED
4458
 
echo "$as_me:$LINENO: result: $SED" >&5
4459
 
echo "${ECHO_T}$SED" >&6
4460
 
 
4461
 
echo "$as_me:$LINENO: checking for egrep" >&5
4462
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4463
 
if test "${ac_cv_prog_egrep+set}" = set; then
4464
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4465
 
else
4466
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4467
 
    then ac_cv_prog_egrep='grep -E'
4468
 
    else ac_cv_prog_egrep='egrep'
4469
 
    fi
4470
 
fi
4471
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4472
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4473
 
 EGREP=$ac_cv_prog_egrep
4474
 
 
4475
 
 
4476
 
 
4477
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4478
 
if test "${with_gnu_ld+set}" = set; then
4479
 
  withval="$with_gnu_ld"
4480
 
  test "$withval" = no || with_gnu_ld=yes
4481
 
else
4482
 
  with_gnu_ld=no
4483
 
fi; 
4484
 
ac_prog=ld
4485
 
if test "$GCC" = yes; then
4486
 
  # Check if gcc -print-prog-name=ld gives a path.
4487
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4488
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4489
 
  case $host in
4490
 
  *-*-mingw*)
4491
 
    # gcc leaves a trailing carriage return which upsets mingw
4492
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4493
 
  *)
4494
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4495
 
  esac
4496
 
  case $ac_prog in
4497
 
    # Accept absolute paths.
4498
 
    [\\/]* | ?:[\\/]*)
4499
 
      re_direlt='/[^/][^/]*/\.\./'
4500
 
      # Canonicalize the pathname of ld
4501
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4502
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4503
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4504
 
      done
4505
 
      test -z "$LD" && LD="$ac_prog"
4506
 
      ;;
4507
 
  "")
4508
 
    # If it fails, then pretend we aren't using GCC.
4509
 
    ac_prog=ld
4510
 
    ;;
4511
 
  *)
4512
 
    # If it is relative, then search for the first ld in PATH.
4513
 
    with_gnu_ld=unknown
4514
 
    ;;
4515
 
  esac
4516
 
elif test "$with_gnu_ld" = yes; then
4517
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4518
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4519
 
else
4520
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4521
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4522
 
fi
4523
 
if test "${lt_cv_path_LD+set}" = set; then
4524
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4525
 
else
4526
 
  if test -z "$LD"; then
4527
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4528
 
  for ac_dir in $PATH; do
4529
 
    IFS="$lt_save_ifs"
4530
 
    test -z "$ac_dir" && ac_dir=.
4531
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4532
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
4533
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
4534
 
      # but apparently some GNU ld's only accept -v.
4535
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
4536
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4537
 
      *GNU* | *'with BFD'*)
4538
 
        test "$with_gnu_ld" != no && break
4539
 
        ;;
4540
 
      *)
4541
 
        test "$with_gnu_ld" != yes && break
4542
 
        ;;
4543
 
      esac
4544
 
    fi
4545
 
  done
4546
 
  IFS="$lt_save_ifs"
4547
 
else
4548
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4549
 
fi
4550
 
fi
4551
 
 
4552
 
LD="$lt_cv_path_LD"
4553
 
if test -n "$LD"; then
4554
 
  echo "$as_me:$LINENO: result: $LD" >&5
4555
 
echo "${ECHO_T}$LD" >&6
4556
 
else
4557
 
  echo "$as_me:$LINENO: result: no" >&5
4558
 
echo "${ECHO_T}no" >&6
4559
 
fi
4560
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4561
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4562
 
   { (exit 1); exit 1; }; }
4563
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4564
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4565
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4566
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4567
 
else
4568
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4569
 
case `$LD -v 2>&1 </dev/null` in
4570
 
*GNU* | *'with BFD'*)
4571
 
  lt_cv_prog_gnu_ld=yes
4572
 
  ;;
4573
 
*)
4574
 
  lt_cv_prog_gnu_ld=no
4575
 
  ;;
4576
 
esac
4577
 
fi
4578
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4579
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4580
 
with_gnu_ld=$lt_cv_prog_gnu_ld
4581
 
 
4582
 
 
4583
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4584
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4585
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4586
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4587
 
else
4588
 
  lt_cv_ld_reload_flag='-r'
4589
 
fi
4590
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4591
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4592
 
reload_flag=$lt_cv_ld_reload_flag
4593
 
case $reload_flag in
4594
 
"" | " "*) ;;
4595
 
*) reload_flag=" $reload_flag" ;;
4596
 
esac
4597
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4598
 
case $host_os in
4599
 
  darwin*)
4600
 
    if test "$GCC" = yes; then
4601
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4602
 
    else
4603
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4604
 
    fi
4605
 
    ;;
4606
 
esac
4607
 
 
4608
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4609
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4610
 
if test "${lt_cv_path_NM+set}" = set; then
4611
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4612
 
else
4613
 
  if test -n "$NM"; then
4614
 
  # Let the user override the test.
4615
 
  lt_cv_path_NM="$NM"
4616
 
else
4617
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4618
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4619
 
    IFS="$lt_save_ifs"
4620
 
    test -z "$ac_dir" && ac_dir=.
4621
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4622
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4623
 
      # Check to see if the nm accepts a BSD-compat flag.
4624
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4625
 
      #   nm: unknown option "B" ignored
4626
 
      # Tru64's nm complains that /dev/null is an invalid object file
4627
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4628
 
      */dev/null* | *'Invalid file or object type'*)
4629
 
        lt_cv_path_NM="$tmp_nm -B"
4630
 
        break
4631
 
        ;;
4632
 
      *)
4633
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4634
 
        */dev/null*)
4635
 
          lt_cv_path_NM="$tmp_nm -p"
4636
 
          break
4637
 
          ;;
4638
 
        *)
4639
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4640
 
          continue # so that we can try to find one that supports BSD flags
4641
 
          ;;
4642
 
        esac
4643
 
      esac
4644
 
    fi
4645
 
  done
4646
 
  IFS="$lt_save_ifs"
4647
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4648
 
fi
4649
 
fi
4650
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4651
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
4652
 
NM="$lt_cv_path_NM"
4653
 
 
4654
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4655
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4656
 
LN_S=$as_ln_s
4657
 
if test "$LN_S" = "ln -s"; then
4658
 
  echo "$as_me:$LINENO: result: yes" >&5
4659
 
echo "${ECHO_T}yes" >&6
4660
 
else
4661
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4662
 
echo "${ECHO_T}no, using $LN_S" >&6
4663
 
fi
4664
 
 
4665
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4666
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4667
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
4668
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4669
 
else
4670
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4671
 
lt_cv_file_magic_test_file=
4672
 
lt_cv_deplibs_check_method='unknown'
4673
 
# Need to set the preceding variable on all platforms that support
4674
 
# interlibrary dependencies.
4675
 
# 'none' -- dependencies not supported.
4676
 
# `unknown' -- same as none, but documents that we really don't know.
4677
 
# 'pass_all' -- all dependencies passed with no checks.
4678
 
# 'test_compile' -- check by making test program.
4679
 
# 'file_magic [[regex]]' -- check by looking for files in library path
4680
 
# which responds to the $file_magic_cmd with a given extended regex.
4681
 
# If you have `file' or equivalent on your system and you're not sure
4682
 
# whether `pass_all' will *always* work, you probably want this one.
4683
 
 
4684
 
case $host_os in
4685
 
aix4* | aix5*)
4686
 
  lt_cv_deplibs_check_method=pass_all
4687
 
  ;;
4688
 
 
4689
 
beos*)
4690
 
  lt_cv_deplibs_check_method=pass_all
4691
 
  ;;
4692
 
 
4693
 
bsdi[45]*)
4694
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4695
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4696
 
  lt_cv_file_magic_test_file=/shlib/libc.so
4697
 
  ;;
4698
 
 
4699
 
cygwin*)
4700
 
  # func_win32_libid is a shell function defined in ltmain.sh
4701
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4702
 
  lt_cv_file_magic_cmd='func_win32_libid'
4703
 
  ;;
4704
 
 
4705
 
mingw* | pw32*)
4706
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
4707
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4708
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4709
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4710
 
  ;;
4711
 
 
4712
 
darwin* | rhapsody*)
4713
 
  lt_cv_deplibs_check_method=pass_all
4714
 
  ;;
4715
 
 
4716
 
freebsd* | kfreebsd*-gnu | dragonfly*)
4717
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4718
 
    case $host_cpu in
4719
 
    i*86 )
4720
 
      # Not sure whether the presence of OpenBSD here was a mistake.
4721
 
      # Let's accept both of them until this is cleared up.
4722
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4723
 
      lt_cv_file_magic_cmd=/usr/bin/file
4724
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4725
 
      ;;
4726
 
    esac
4727
 
  else
4728
 
    lt_cv_deplibs_check_method=pass_all
4729
 
  fi
4730
 
  ;;
4731
 
 
4732
 
gnu*)
4733
 
  lt_cv_deplibs_check_method=pass_all
4734
 
  ;;
4735
 
 
4736
 
hpux10.20* | hpux11*)
4737
 
  lt_cv_file_magic_cmd=/usr/bin/file
4738
 
  case "$host_cpu" in
4739
 
  ia64*)
4740
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4741
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4742
 
    ;;
4743
 
  hppa*64*)
4744
 
    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]'
4745
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4746
 
    ;;
4747
 
  *)
4748
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4749
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4750
 
    ;;
4751
 
  esac
4752
 
  ;;
4753
 
 
4754
 
irix5* | irix6* | nonstopux*)
4755
 
  case $LD in
4756
 
  *-32|*"-32 ") libmagic=32-bit;;
4757
 
  *-n32|*"-n32 ") libmagic=N32;;
4758
 
  *-64|*"-64 ") libmagic=64-bit;;
4759
 
  *) libmagic=never-match;;
4760
 
  esac
4761
 
  lt_cv_deplibs_check_method=pass_all
4762
 
  ;;
4763
 
 
4764
 
# This must be Linux ELF.
4765
 
linux*)
4766
 
  lt_cv_deplibs_check_method=pass_all
4767
 
  ;;
4768
 
 
4769
 
netbsd*)
4770
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4771
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4772
 
  else
4773
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4774
 
  fi
4775
 
  ;;
4776
 
 
4777
 
newos6*)
4778
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4779
 
  lt_cv_file_magic_cmd=/usr/bin/file
4780
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4781
 
  ;;
4782
 
 
4783
 
nto-qnx*)
4784
 
  lt_cv_deplibs_check_method=unknown
4785
 
  ;;
4786
 
 
4787
 
openbsd*)
4788
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4789
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4790
 
  else
4791
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4792
 
  fi
4793
 
  ;;
4794
 
 
4795
 
osf3* | osf4* | osf5*)
4796
 
  lt_cv_deplibs_check_method=pass_all
4797
 
  ;;
4798
 
 
4799
 
sco3.2v5*)
4800
 
  lt_cv_deplibs_check_method=pass_all
4801
 
  ;;
4802
 
 
4803
 
solaris*)
4804
 
  lt_cv_deplibs_check_method=pass_all
4805
 
  ;;
4806
 
 
4807
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4808
 
  case $host_vendor in
4809
 
  motorola)
4810
 
    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]'
4811
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4812
 
    ;;
4813
 
  ncr)
4814
 
    lt_cv_deplibs_check_method=pass_all
4815
 
    ;;
4816
 
  sequent)
4817
 
    lt_cv_file_magic_cmd='/bin/file'
4818
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4819
 
    ;;
4820
 
  sni)
4821
 
    lt_cv_file_magic_cmd='/bin/file'
4822
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4823
 
    lt_cv_file_magic_test_file=/lib/libc.so
4824
 
    ;;
4825
 
  siemens)
4826
 
    lt_cv_deplibs_check_method=pass_all
4827
 
    ;;
4828
 
  esac
4829
 
  ;;
4830
 
 
4831
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4832
 
  lt_cv_deplibs_check_method=pass_all
4833
 
  ;;
4834
 
esac
4835
 
 
4836
 
fi
4837
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4838
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4839
 
file_magic_cmd=$lt_cv_file_magic_cmd
4840
 
deplibs_check_method=$lt_cv_deplibs_check_method
4841
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4842
 
 
4843
 
 
4844
 
 
4845
 
 
4846
 
# If no C compiler was specified, use CC.
4847
 
LTCC=${LTCC-"$CC"}
4848
 
 
4849
 
# Allow CC to be a program name with arguments.
4850
 
compiler=$CC
4851
 
 
4852
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4853
 
if test "${enable_libtool_lock+set}" = set; then
4854
 
  enableval="$enable_libtool_lock"
4855
 
  
4856
 
fi; 
4857
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4858
 
 
4859
 
# Some flags need to be propagated to the compiler or linker for good
4860
 
# libtool support.
4861
 
case $host in
4862
 
ia64-*-hpux*)
4863
 
  # Find out which ABI we are using.
4864
 
  echo 'int i;' > conftest.$ac_ext
4865
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866
 
  (eval $ac_compile) 2>&5
4867
 
  ac_status=$?
4868
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869
 
  (exit $ac_status); }; then
4870
 
    case `/usr/bin/file conftest.$ac_objext` in
4871
 
    *ELF-32*)
4872
 
      HPUX_IA64_MODE="32"
4873
 
      ;;
4874
 
    *ELF-64*)
4875
 
      HPUX_IA64_MODE="64"
4876
 
      ;;
4877
 
    esac
4878
 
  fi
4879
 
  rm -rf conftest*
4880
 
  ;;
4881
 
*-*-irix6*)
4882
 
  # Find out which ABI we are using.
4883
 
  echo '#line __oline__ "configure"' > conftest.$ac_ext
4884
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885
 
  (eval $ac_compile) 2>&5
4886
 
  ac_status=$?
4887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888
 
  (exit $ac_status); }; then
4889
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4890
 
    case `/usr/bin/file conftest.$ac_objext` in
4891
 
    *32-bit*)
4892
 
      LD="${LD-ld} -melf32bsmip"
4893
 
      ;;
4894
 
    *N32*)
4895
 
      LD="${LD-ld} -melf32bmipn32"
4896
 
      ;;
4897
 
    *64-bit*)
4898
 
      LD="${LD-ld} -melf64bmip"
4899
 
      ;;
4900
 
    esac
4901
 
   else
4902
 
    case `/usr/bin/file conftest.$ac_objext` in
4903
 
    *32-bit*)
4904
 
      LD="${LD-ld} -32"
4905
 
      ;;
4906
 
    *N32*)
4907
 
      LD="${LD-ld} -n32"
4908
 
      ;;
4909
 
    *64-bit*)
4910
 
      LD="${LD-ld} -64"
4911
 
      ;;
4912
 
    esac
4913
 
   fi
4914
 
  fi
4915
 
  rm -rf conftest*
4916
 
  ;;
4917
 
 
4918
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4919
 
  # Find out which ABI we are using.
4920
 
  echo 'int i;' > conftest.$ac_ext
4921
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922
 
  (eval $ac_compile) 2>&5
4923
 
  ac_status=$?
4924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925
 
  (exit $ac_status); }; then
4926
 
    case "`/usr/bin/file conftest.o`" in
4927
 
    *32-bit*)
4928
 
      case $host in
4929
 
        x86_64-*linux*)
4930
 
          LD="${LD-ld} -m elf_i386"
4931
 
          ;;
4932
 
        ppc64-*linux*|powerpc64-*linux*)
4933
 
          LD="${LD-ld} -m elf32ppclinux"
4934
 
          ;;
4935
 
        s390x-*linux*)
4936
 
          LD="${LD-ld} -m elf_s390"
4937
 
          ;;
4938
 
        sparc64-*linux*)
4939
 
          LD="${LD-ld} -m elf32_sparc"
4940
 
          ;;
4941
 
      esac
4942
 
      ;;
4943
 
    *64-bit*)
4944
 
      case $host in
4945
 
        x86_64-*linux*)
4946
 
          LD="${LD-ld} -m elf_x86_64"
4947
 
          ;;
4948
 
        ppc*-*linux*|powerpc*-*linux*)
4949
 
          LD="${LD-ld} -m elf64ppc"
4950
 
          ;;
4951
 
        s390*-*linux*)
4952
 
          LD="${LD-ld} -m elf64_s390"
4953
 
          ;;
4954
 
        sparc*-*linux*)
4955
 
          LD="${LD-ld} -m elf64_sparc"
4956
 
          ;;
4957
 
      esac
4958
 
      ;;
4959
 
    esac
4960
 
  fi
4961
 
  rm -rf conftest*
4962
 
  ;;
4963
 
 
4964
 
*-*-sco3.2v5*)
4965
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4966
 
  SAVE_CFLAGS="$CFLAGS"
4967
 
  CFLAGS="$CFLAGS -belf"
4968
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4969
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4970
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4971
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4972
 
else
4973
 
  ac_ext=c
4974
 
ac_cpp='$CPP $CPPFLAGS'
4975
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978
 
 
4979
 
     cat >conftest.$ac_ext <<_ACEOF
4980
 
/* confdefs.h.  */
4981
 
_ACEOF
4982
 
cat confdefs.h >>conftest.$ac_ext
4983
 
cat >>conftest.$ac_ext <<_ACEOF
4984
 
/* end confdefs.h.  */
4985
 
 
4986
 
int
4987
 
main ()
4988
 
{
4989
 
 
4990
 
  ;
4991
 
  return 0;
4992
 
}
4993
 
_ACEOF
4994
 
rm -f conftest.$ac_objext conftest$ac_exeext
4995
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4996
 
  (eval $ac_link) 2>conftest.er1
4997
 
  ac_status=$?
4998
 
  grep -v '^ *+' conftest.er1 >conftest.err
4999
 
  rm -f conftest.er1
5000
 
  cat conftest.err >&5
5001
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002
 
  (exit $ac_status); } &&
5003
 
         { ac_try='test -z "$ac_c_werror_flag"
5004
 
                         || test ! -s conftest.err'
5005
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006
 
  (eval $ac_try) 2>&5
5007
 
  ac_status=$?
5008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009
 
  (exit $ac_status); }; } &&
5010
 
         { ac_try='test -s conftest$ac_exeext'
5011
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012
 
  (eval $ac_try) 2>&5
5013
 
  ac_status=$?
5014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015
 
  (exit $ac_status); }; }; then
5016
 
  lt_cv_cc_needs_belf=yes
5017
 
else
5018
 
  echo "$as_me: failed program was:" >&5
5019
 
sed 's/^/| /' conftest.$ac_ext >&5
5020
 
 
5021
 
lt_cv_cc_needs_belf=no
5022
 
fi
5023
 
rm -f conftest.err conftest.$ac_objext \
5024
 
      conftest$ac_exeext conftest.$ac_ext
5025
 
     ac_ext=c
5026
 
ac_cpp='$CPP $CPPFLAGS'
5027
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5030
 
 
5031
 
fi
5032
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5033
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5034
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5035
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5036
 
    CFLAGS="$SAVE_CFLAGS"
5037
 
  fi
5038
 
  ;;
5039
 
 
5040
 
esac
5041
 
 
5042
 
need_locks="$enable_libtool_lock"
5043
 
 
5044
 
 
5045
 
ac_ext=c
5046
 
ac_cpp='$CPP $CPPFLAGS'
5047
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5051
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5052
 
# On Suns, sometimes $CPP names a directory.
5053
 
if test -n "$CPP" && test -d "$CPP"; then
5054
 
  CPP=
5055
 
fi
5056
 
if test -z "$CPP"; then
5057
 
  if test "${ac_cv_prog_CPP+set}" = set; then
5058
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5059
 
else
5060
 
      # Double quotes because CPP needs to be expanded
5061
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5062
 
    do
5063
 
      ac_preproc_ok=false
5064
 
for ac_c_preproc_warn_flag in '' yes
5065
 
do
5066
 
  # Use a header file that comes with gcc, so configuring glibc
5067
 
  # with a fresh cross-compiler works.
5068
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069
 
  # <limits.h> exists even on freestanding compilers.
5070
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5071
 
  # not just through cpp. "Syntax error" is here to catch this case.
5072
 
  cat >conftest.$ac_ext <<_ACEOF
5073
 
/* confdefs.h.  */
5074
 
_ACEOF
5075
 
cat confdefs.h >>conftest.$ac_ext
5076
 
cat >>conftest.$ac_ext <<_ACEOF
5077
 
/* end confdefs.h.  */
5078
 
@%:@ifdef __STDC__
5079
 
@%:@ include <limits.h>
5080
 
@%:@else
5081
 
@%:@ include <assert.h>
5082
 
@%:@endif
5083
 
                     Syntax error
5084
 
_ACEOF
5085
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087
 
  ac_status=$?
5088
 
  grep -v '^ *+' conftest.er1 >conftest.err
5089
 
  rm -f conftest.er1
5090
 
  cat conftest.err >&5
5091
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092
 
  (exit $ac_status); } >/dev/null; then
5093
 
  if test -s conftest.err; then
5094
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5095
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5096
 
  else
5097
 
    ac_cpp_err=
5098
 
  fi
5099
 
else
5100
 
  ac_cpp_err=yes
5101
 
fi
5102
 
if test -z "$ac_cpp_err"; then
5103
 
  :
5104
 
else
5105
 
  echo "$as_me: failed program was:" >&5
5106
 
sed 's/^/| /' conftest.$ac_ext >&5
5107
 
 
5108
 
  # Broken: fails on valid input.
5109
 
continue
5110
 
fi
5111
 
rm -f conftest.err conftest.$ac_ext
5112
 
 
5113
 
  # OK, works on sane cases.  Now check whether non-existent headers
5114
 
  # can be detected and how.
5115
 
  cat >conftest.$ac_ext <<_ACEOF
5116
 
/* confdefs.h.  */
5117
 
_ACEOF
5118
 
cat confdefs.h >>conftest.$ac_ext
5119
 
cat >>conftest.$ac_ext <<_ACEOF
5120
 
/* end confdefs.h.  */
5121
 
@%:@include <ac_nonexistent.h>
5122
 
_ACEOF
5123
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125
 
  ac_status=$?
5126
 
  grep -v '^ *+' conftest.er1 >conftest.err
5127
 
  rm -f conftest.er1
5128
 
  cat conftest.err >&5
5129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130
 
  (exit $ac_status); } >/dev/null; then
5131
 
  if test -s conftest.err; then
5132
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5133
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5134
 
  else
5135
 
    ac_cpp_err=
5136
 
  fi
5137
 
else
5138
 
  ac_cpp_err=yes
5139
 
fi
5140
 
if test -z "$ac_cpp_err"; then
5141
 
  # Broken: success on invalid input.
5142
 
continue
5143
 
else
5144
 
  echo "$as_me: failed program was:" >&5
5145
 
sed 's/^/| /' conftest.$ac_ext >&5
5146
 
 
5147
 
  # Passes both tests.
5148
 
ac_preproc_ok=:
5149
 
break
5150
 
fi
5151
 
rm -f conftest.err conftest.$ac_ext
5152
 
 
5153
 
done
5154
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5155
 
rm -f conftest.err conftest.$ac_ext
5156
 
if $ac_preproc_ok; then
5157
 
  break
5158
 
fi
5159
 
 
5160
 
    done
5161
 
    ac_cv_prog_CPP=$CPP
5162
 
  
5163
 
fi
5164
 
  CPP=$ac_cv_prog_CPP
5165
 
else
5166
 
  ac_cv_prog_CPP=$CPP
5167
 
fi
5168
 
echo "$as_me:$LINENO: result: $CPP" >&5
5169
 
echo "${ECHO_T}$CPP" >&6
5170
 
ac_preproc_ok=false
5171
 
for ac_c_preproc_warn_flag in '' yes
5172
 
do
5173
 
  # Use a header file that comes with gcc, so configuring glibc
5174
 
  # with a fresh cross-compiler works.
5175
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176
 
  # <limits.h> exists even on freestanding compilers.
5177
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5178
 
  # not just through cpp. "Syntax error" is here to catch this case.
5179
 
  cat >conftest.$ac_ext <<_ACEOF
5180
 
/* confdefs.h.  */
5181
 
_ACEOF
5182
 
cat confdefs.h >>conftest.$ac_ext
5183
 
cat >>conftest.$ac_ext <<_ACEOF
5184
 
/* end confdefs.h.  */
5185
 
@%:@ifdef __STDC__
5186
 
@%:@ include <limits.h>
5187
 
@%:@else
5188
 
@%:@ include <assert.h>
5189
 
@%:@endif
5190
 
                     Syntax error
5191
 
_ACEOF
5192
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194
 
  ac_status=$?
5195
 
  grep -v '^ *+' conftest.er1 >conftest.err
5196
 
  rm -f conftest.er1
5197
 
  cat conftest.err >&5
5198
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199
 
  (exit $ac_status); } >/dev/null; then
5200
 
  if test -s conftest.err; then
5201
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5202
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5203
 
  else
5204
 
    ac_cpp_err=
5205
 
  fi
5206
 
else
5207
 
  ac_cpp_err=yes
5208
 
fi
5209
 
if test -z "$ac_cpp_err"; then
5210
 
  :
5211
 
else
5212
 
  echo "$as_me: failed program was:" >&5
5213
 
sed 's/^/| /' conftest.$ac_ext >&5
5214
 
 
5215
 
  # Broken: fails on valid input.
5216
 
continue
5217
 
fi
5218
 
rm -f conftest.err conftest.$ac_ext
5219
 
 
5220
 
  # OK, works on sane cases.  Now check whether non-existent headers
5221
 
  # can be detected and how.
5222
 
  cat >conftest.$ac_ext <<_ACEOF
5223
 
/* confdefs.h.  */
5224
 
_ACEOF
5225
 
cat confdefs.h >>conftest.$ac_ext
5226
 
cat >>conftest.$ac_ext <<_ACEOF
5227
 
/* end confdefs.h.  */
5228
 
@%:@include <ac_nonexistent.h>
5229
 
_ACEOF
5230
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5232
 
  ac_status=$?
5233
 
  grep -v '^ *+' conftest.er1 >conftest.err
5234
 
  rm -f conftest.er1
5235
 
  cat conftest.err >&5
5236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237
 
  (exit $ac_status); } >/dev/null; then
5238
 
  if test -s conftest.err; then
5239
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5240
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5241
 
  else
5242
 
    ac_cpp_err=
5243
 
  fi
5244
 
else
5245
 
  ac_cpp_err=yes
5246
 
fi
5247
 
if test -z "$ac_cpp_err"; then
5248
 
  # Broken: success on invalid input.
5249
 
continue
5250
 
else
5251
 
  echo "$as_me: failed program was:" >&5
5252
 
sed 's/^/| /' conftest.$ac_ext >&5
5253
 
 
5254
 
  # Passes both tests.
5255
 
ac_preproc_ok=:
5256
 
break
5257
 
fi
5258
 
rm -f conftest.err conftest.$ac_ext
5259
 
 
5260
 
done
5261
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5262
 
rm -f conftest.err conftest.$ac_ext
5263
 
if $ac_preproc_ok; then
5264
 
  :
5265
 
else
5266
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5267
 
See \`config.log' for more details." >&5
5268
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5269
 
See \`config.log' for more details." >&2;}
5270
 
   { (exit 1); exit 1; }; }
5271
 
fi
5272
 
 
5273
 
ac_ext=c
5274
 
ac_cpp='$CPP $CPPFLAGS'
5275
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278
 
 
5279
 
 
5280
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5281
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5282
 
if test "${ac_cv_header_stdc+set}" = set; then
5283
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5284
 
else
5285
 
  cat >conftest.$ac_ext <<_ACEOF
5286
 
/* confdefs.h.  */
5287
 
_ACEOF
5288
 
cat confdefs.h >>conftest.$ac_ext
5289
 
cat >>conftest.$ac_ext <<_ACEOF
5290
 
/* end confdefs.h.  */
5291
 
#include <stdlib.h>
5292
 
#include <stdarg.h>
5293
 
#include <string.h>
5294
 
#include <float.h>
5295
 
 
5296
 
int
5297
 
main ()
5298
 
{
5299
 
 
5300
 
  ;
5301
 
  return 0;
5302
 
}
5303
 
_ACEOF
5304
 
rm -f conftest.$ac_objext
5305
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306
 
  (eval $ac_compile) 2>conftest.er1
5307
 
  ac_status=$?
5308
 
  grep -v '^ *+' conftest.er1 >conftest.err
5309
 
  rm -f conftest.er1
5310
 
  cat conftest.err >&5
5311
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312
 
  (exit $ac_status); } &&
5313
 
         { ac_try='test -z "$ac_c_werror_flag"
5314
 
                         || 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_cv_header_stdc=yes
5327
 
else
5328
 
  echo "$as_me: failed program was:" >&5
5329
 
sed 's/^/| /' conftest.$ac_ext >&5
5330
 
 
5331
 
ac_cv_header_stdc=no
5332
 
fi
5333
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334
 
 
5335
 
if test $ac_cv_header_stdc = yes; then
5336
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5337
 
  cat >conftest.$ac_ext <<_ACEOF
5338
 
/* confdefs.h.  */
5339
 
_ACEOF
5340
 
cat confdefs.h >>conftest.$ac_ext
5341
 
cat >>conftest.$ac_ext <<_ACEOF
5342
 
/* end confdefs.h.  */
5343
 
#include <string.h>
5344
 
 
5345
 
_ACEOF
5346
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5347
 
  $EGREP "memchr" >/dev/null 2>&1; then
5348
 
  :
5349
 
else
5350
 
  ac_cv_header_stdc=no
5351
 
fi
5352
 
rm -f conftest*
5353
 
 
5354
 
fi
5355
 
 
5356
 
if test $ac_cv_header_stdc = yes; then
5357
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5358
 
  cat >conftest.$ac_ext <<_ACEOF
5359
 
/* confdefs.h.  */
5360
 
_ACEOF
5361
 
cat confdefs.h >>conftest.$ac_ext
5362
 
cat >>conftest.$ac_ext <<_ACEOF
5363
 
/* end confdefs.h.  */
5364
 
#include <stdlib.h>
5365
 
 
5366
 
_ACEOF
5367
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5368
 
  $EGREP "free" >/dev/null 2>&1; then
5369
 
  :
5370
 
else
5371
 
  ac_cv_header_stdc=no
5372
 
fi
5373
 
rm -f conftest*
5374
 
 
5375
 
fi
5376
 
 
5377
 
if test $ac_cv_header_stdc = yes; then
5378
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5379
 
  if test "$cross_compiling" = yes; then
5380
 
  :
5381
 
else
5382
 
  cat >conftest.$ac_ext <<_ACEOF
5383
 
/* confdefs.h.  */
5384
 
_ACEOF
5385
 
cat confdefs.h >>conftest.$ac_ext
5386
 
cat >>conftest.$ac_ext <<_ACEOF
5387
 
/* end confdefs.h.  */
5388
 
#include <ctype.h>
5389
 
#if ((' ' & 0x0FF) == 0x020)
5390
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5391
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5392
 
#else
5393
 
# define ISLOWER(c) \
5394
 
                   (('a' <= (c) && (c) <= 'i') \
5395
 
                     || ('j' <= (c) && (c) <= 'r') \
5396
 
                     || ('s' <= (c) && (c) <= 'z'))
5397
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5398
 
#endif
5399
 
 
5400
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5401
 
int
5402
 
main ()
5403
 
{
5404
 
  int i;
5405
 
  for (i = 0; i < 256; i++)
5406
 
    if (XOR (islower (i), ISLOWER (i))
5407
 
        || toupper (i) != TOUPPER (i))
5408
 
      exit(2);
5409
 
  exit (0);
5410
 
}
5411
 
_ACEOF
5412
 
rm -f conftest$ac_exeext
5413
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414
 
  (eval $ac_link) 2>&5
5415
 
  ac_status=$?
5416
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5418
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419
 
  (eval $ac_try) 2>&5
5420
 
  ac_status=$?
5421
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422
 
  (exit $ac_status); }; }; then
5423
 
  :
5424
 
else
5425
 
  echo "$as_me: program exited with status $ac_status" >&5
5426
 
echo "$as_me: failed program was:" >&5
5427
 
sed 's/^/| /' conftest.$ac_ext >&5
5428
 
 
5429
 
( exit $ac_status )
5430
 
ac_cv_header_stdc=no
5431
 
fi
5432
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5433
 
fi
5434
 
fi
5435
 
fi
5436
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5437
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5438
 
if test $ac_cv_header_stdc = yes; then
5439
 
  
5440
 
cat >>confdefs.h <<\_ACEOF
5441
 
@%:@define STDC_HEADERS 1
5442
 
_ACEOF
5443
 
 
5444
 
fi
5445
 
 
5446
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5447
 
 
5448
 
 
5449
 
 
5450
 
 
5451
 
 
5452
 
 
5453
 
 
5454
 
 
5455
 
 
5456
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5457
 
                  inttypes.h stdint.h unistd.h
5458
 
do
5459
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5460
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5461
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5462
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5463
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5464
 
else
5465
 
  cat >conftest.$ac_ext <<_ACEOF
5466
 
/* confdefs.h.  */
5467
 
_ACEOF
5468
 
cat confdefs.h >>conftest.$ac_ext
5469
 
cat >>conftest.$ac_ext <<_ACEOF
5470
 
/* end confdefs.h.  */
5471
 
$ac_includes_default
5472
 
 
5473
 
@%:@include <$ac_header>
5474
 
_ACEOF
5475
 
rm -f conftest.$ac_objext
5476
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477
 
  (eval $ac_compile) 2>conftest.er1
5478
 
  ac_status=$?
5479
 
  grep -v '^ *+' conftest.er1 >conftest.err
5480
 
  rm -f conftest.er1
5481
 
  cat conftest.err >&5
5482
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483
 
  (exit $ac_status); } &&
5484
 
         { ac_try='test -z "$ac_c_werror_flag"
5485
 
                         || test ! -s conftest.err'
5486
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487
 
  (eval $ac_try) 2>&5
5488
 
  ac_status=$?
5489
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490
 
  (exit $ac_status); }; } &&
5491
 
         { ac_try='test -s conftest.$ac_objext'
5492
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493
 
  (eval $ac_try) 2>&5
5494
 
  ac_status=$?
5495
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496
 
  (exit $ac_status); }; }; then
5497
 
  eval "$as_ac_Header=yes"
5498
 
else
5499
 
  echo "$as_me: failed program was:" >&5
5500
 
sed 's/^/| /' conftest.$ac_ext >&5
5501
 
 
5502
 
eval "$as_ac_Header=no"
5503
 
fi
5504
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505
 
fi
5506
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5507
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5508
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5509
 
  cat >>confdefs.h <<_ACEOF
5510
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5511
 
_ACEOF
5512
 
 
5513
 
fi
5514
 
 
5515
 
done
5516
 
 
5517
 
 
5518
 
 
5519
 
for ac_header in dlfcn.h
5520
 
do
5521
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5522
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5523
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5524
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5525
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5526
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5527
 
fi
5528
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5529
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5530
 
else
5531
 
  # Is the header compilable?
5532
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5533
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5534
 
cat >conftest.$ac_ext <<_ACEOF
5535
 
/* confdefs.h.  */
5536
 
_ACEOF
5537
 
cat confdefs.h >>conftest.$ac_ext
5538
 
cat >>conftest.$ac_ext <<_ACEOF
5539
 
/* end confdefs.h.  */
5540
 
$ac_includes_default
5541
 
@%:@include <$ac_header>
5542
 
_ACEOF
5543
 
rm -f conftest.$ac_objext
5544
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5545
 
  (eval $ac_compile) 2>conftest.er1
5546
 
  ac_status=$?
5547
 
  grep -v '^ *+' conftest.er1 >conftest.err
5548
 
  rm -f conftest.er1
5549
 
  cat conftest.err >&5
5550
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551
 
  (exit $ac_status); } &&
5552
 
         { ac_try='test -z "$ac_c_werror_flag"
5553
 
                         || test ! -s conftest.err'
5554
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555
 
  (eval $ac_try) 2>&5
5556
 
  ac_status=$?
5557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558
 
  (exit $ac_status); }; } &&
5559
 
         { ac_try='test -s conftest.$ac_objext'
5560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561
 
  (eval $ac_try) 2>&5
5562
 
  ac_status=$?
5563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564
 
  (exit $ac_status); }; }; then
5565
 
  ac_header_compiler=yes
5566
 
else
5567
 
  echo "$as_me: failed program was:" >&5
5568
 
sed 's/^/| /' conftest.$ac_ext >&5
5569
 
 
5570
 
ac_header_compiler=no
5571
 
fi
5572
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5573
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5574
 
echo "${ECHO_T}$ac_header_compiler" >&6
5575
 
 
5576
 
# Is the header present?
5577
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5578
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5579
 
cat >conftest.$ac_ext <<_ACEOF
5580
 
/* confdefs.h.  */
5581
 
_ACEOF
5582
 
cat confdefs.h >>conftest.$ac_ext
5583
 
cat >>conftest.$ac_ext <<_ACEOF
5584
 
/* end confdefs.h.  */
5585
 
@%:@include <$ac_header>
5586
 
_ACEOF
5587
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5588
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5589
 
  ac_status=$?
5590
 
  grep -v '^ *+' conftest.er1 >conftest.err
5591
 
  rm -f conftest.er1
5592
 
  cat conftest.err >&5
5593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594
 
  (exit $ac_status); } >/dev/null; then
5595
 
  if test -s conftest.err; then
5596
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5597
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5598
 
  else
5599
 
    ac_cpp_err=
5600
 
  fi
5601
 
else
5602
 
  ac_cpp_err=yes
5603
 
fi
5604
 
if test -z "$ac_cpp_err"; then
5605
 
  ac_header_preproc=yes
5606
 
else
5607
 
  echo "$as_me: failed program was:" >&5
5608
 
sed 's/^/| /' conftest.$ac_ext >&5
5609
 
 
5610
 
  ac_header_preproc=no
5611
 
fi
5612
 
rm -f conftest.err conftest.$ac_ext
5613
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5614
 
echo "${ECHO_T}$ac_header_preproc" >&6
5615
 
 
5616
 
# So?  What about this header?
5617
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5618
 
  yes:no: )
5619
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5620
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5621
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5622
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5623
 
    ac_header_preproc=yes
5624
 
    ;;
5625
 
  no:yes:* )
5626
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5627
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5628
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5629
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5630
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5631
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5632
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5633
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5634
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5635
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5636
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5637
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5638
 
    (
5639
 
      cat <<\_ASBOX
5640
 
@%:@@%:@ ----------------------------------------- @%:@@%:@
5641
 
@%:@@%:@ Report this to trousers-tech@lists.sf.net @%:@@%:@
5642
 
@%:@@%:@ ----------------------------------------- @%:@@%:@
5643
 
_ASBOX
5644
 
    ) |
5645
 
      sed "s/^/$as_me: WARNING:     /" >&2
5646
 
    ;;
5647
 
esac
5648
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5649
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5652
 
else
5653
 
  eval "$as_ac_Header=\$ac_header_preproc"
5654
 
fi
5655
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5656
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5657
 
 
5658
 
fi
5659
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5660
 
  cat >>confdefs.h <<_ACEOF
5661
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5662
 
_ACEOF
5663
 
 
5664
 
fi
5665
 
 
5666
 
done
5667
 
 
5668
 
ac_ext=cc
5669
 
ac_cpp='$CXXCPP $CPPFLAGS'
5670
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5673
 
if test -n "$ac_tool_prefix"; then
5674
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5675
 
  do
5676
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5677
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5678
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5679
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680
 
if test "${ac_cv_prog_CXX+set}" = set; then
5681
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5682
 
else
5683
 
  if test -n "$CXX"; then
5684
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5685
 
else
5686
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687
 
for as_dir in $PATH
5688
 
do
5689
 
  IFS=$as_save_IFS
5690
 
  test -z "$as_dir" && as_dir=.
5691
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5692
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5694
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695
 
    break 2
5696
 
  fi
5697
 
done
5698
 
done
5699
 
 
5700
 
fi
5701
 
fi
5702
 
CXX=$ac_cv_prog_CXX
5703
 
if test -n "$CXX"; then
5704
 
  echo "$as_me:$LINENO: result: $CXX" >&5
5705
 
echo "${ECHO_T}$CXX" >&6
5706
 
else
5707
 
  echo "$as_me:$LINENO: result: no" >&5
5708
 
echo "${ECHO_T}no" >&6
5709
 
fi
5710
 
 
5711
 
    test -n "$CXX" && break
5712
 
  done
5713
 
fi
5714
 
if test -z "$CXX"; then
5715
 
  ac_ct_CXX=$CXX
5716
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5717
 
do
5718
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5719
 
set dummy $ac_prog; ac_word=$2
5720
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5721
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5722
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5723
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5724
 
else
5725
 
  if test -n "$ac_ct_CXX"; then
5726
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5727
 
else
5728
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729
 
for as_dir in $PATH
5730
 
do
5731
 
  IFS=$as_save_IFS
5732
 
  test -z "$as_dir" && as_dir=.
5733
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5734
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5736
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5737
 
    break 2
5738
 
  fi
5739
 
done
5740
 
done
5741
 
 
5742
 
fi
5743
 
fi
5744
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5745
 
if test -n "$ac_ct_CXX"; then
5746
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5747
 
echo "${ECHO_T}$ac_ct_CXX" >&6
5748
 
else
5749
 
  echo "$as_me:$LINENO: result: no" >&5
5750
 
echo "${ECHO_T}no" >&6
5751
 
fi
5752
 
 
5753
 
  test -n "$ac_ct_CXX" && break
5754
 
done
5755
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5756
 
 
5757
 
  CXX=$ac_ct_CXX
5758
 
fi
5759
 
 
5760
 
 
5761
 
# Provide some information about the compiler.
5762
 
echo "$as_me:$LINENO:" \
5763
 
     "checking for C++ compiler version" >&5
5764
 
ac_compiler=`set X $ac_compile; echo $2`
5765
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5766
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5767
 
  ac_status=$?
5768
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769
 
  (exit $ac_status); }
5770
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5771
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5772
 
  ac_status=$?
5773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774
 
  (exit $ac_status); }
5775
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5776
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
5777
 
  ac_status=$?
5778
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779
 
  (exit $ac_status); }
5780
 
 
5781
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5782
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5783
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5785
 
else
5786
 
  cat >conftest.$ac_ext <<_ACEOF
5787
 
/* confdefs.h.  */
5788
 
_ACEOF
5789
 
cat confdefs.h >>conftest.$ac_ext
5790
 
cat >>conftest.$ac_ext <<_ACEOF
5791
 
/* end confdefs.h.  */
5792
 
 
5793
 
int
5794
 
main ()
5795
 
{
5796
 
#ifndef __GNUC__
5797
 
       choke me
5798
 
#endif
5799
 
 
5800
 
  ;
5801
 
  return 0;
5802
 
}
5803
 
_ACEOF
5804
 
rm -f conftest.$ac_objext
5805
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806
 
  (eval $ac_compile) 2>conftest.er1
5807
 
  ac_status=$?
5808
 
  grep -v '^ *+' conftest.er1 >conftest.err
5809
 
  rm -f conftest.er1
5810
 
  cat conftest.err >&5
5811
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812
 
  (exit $ac_status); } &&
5813
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5814
 
                         || test ! -s conftest.err'
5815
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816
 
  (eval $ac_try) 2>&5
5817
 
  ac_status=$?
5818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819
 
  (exit $ac_status); }; } &&
5820
 
         { ac_try='test -s conftest.$ac_objext'
5821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822
 
  (eval $ac_try) 2>&5
5823
 
  ac_status=$?
5824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825
 
  (exit $ac_status); }; }; then
5826
 
  ac_compiler_gnu=yes
5827
 
else
5828
 
  echo "$as_me: failed program was:" >&5
5829
 
sed 's/^/| /' conftest.$ac_ext >&5
5830
 
 
5831
 
ac_compiler_gnu=no
5832
 
fi
5833
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5835
 
 
5836
 
fi
5837
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5838
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5839
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
5840
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5841
 
ac_save_CXXFLAGS=$CXXFLAGS
5842
 
CXXFLAGS="-g"
5843
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5844
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5845
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5846
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5847
 
else
5848
 
  cat >conftest.$ac_ext <<_ACEOF
5849
 
/* confdefs.h.  */
5850
 
_ACEOF
5851
 
cat confdefs.h >>conftest.$ac_ext
5852
 
cat >>conftest.$ac_ext <<_ACEOF
5853
 
/* end confdefs.h.  */
5854
 
 
5855
 
int
5856
 
main ()
5857
 
{
5858
 
 
5859
 
  ;
5860
 
  return 0;
5861
 
}
5862
 
_ACEOF
5863
 
rm -f conftest.$ac_objext
5864
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865
 
  (eval $ac_compile) 2>conftest.er1
5866
 
  ac_status=$?
5867
 
  grep -v '^ *+' conftest.er1 >conftest.err
5868
 
  rm -f conftest.er1
5869
 
  cat conftest.err >&5
5870
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871
 
  (exit $ac_status); } &&
5872
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5873
 
                         || test ! -s conftest.err'
5874
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875
 
  (eval $ac_try) 2>&5
5876
 
  ac_status=$?
5877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878
 
  (exit $ac_status); }; } &&
5879
 
         { ac_try='test -s conftest.$ac_objext'
5880
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881
 
  (eval $ac_try) 2>&5
5882
 
  ac_status=$?
5883
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884
 
  (exit $ac_status); }; }; then
5885
 
  ac_cv_prog_cxx_g=yes
5886
 
else
5887
 
  echo "$as_me: failed program was:" >&5
5888
 
sed 's/^/| /' conftest.$ac_ext >&5
5889
 
 
5890
 
ac_cv_prog_cxx_g=no
5891
 
fi
5892
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5893
 
fi
5894
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5895
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5896
 
if test "$ac_test_CXXFLAGS" = set; then
5897
 
  CXXFLAGS=$ac_save_CXXFLAGS
5898
 
elif test $ac_cv_prog_cxx_g = yes; then
5899
 
  if test "$GXX" = yes; then
5900
 
    CXXFLAGS="-g -O2"
5901
 
  else
5902
 
    CXXFLAGS="-g"
5903
 
  fi
5904
 
else
5905
 
  if test "$GXX" = yes; then
5906
 
    CXXFLAGS="-O2"
5907
 
  else
5908
 
    CXXFLAGS=
5909
 
  fi
5910
 
fi
5911
 
for ac_declaration in \
5912
 
   '' \
5913
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
5914
 
   'extern "C" void std::exit (int); using std::exit;' \
5915
 
   'extern "C" void exit (int) throw ();' \
5916
 
   'extern "C" void exit (int);' \
5917
 
   'void exit (int);'
5918
 
do
5919
 
  cat >conftest.$ac_ext <<_ACEOF
5920
 
/* confdefs.h.  */
5921
 
_ACEOF
5922
 
cat confdefs.h >>conftest.$ac_ext
5923
 
cat >>conftest.$ac_ext <<_ACEOF
5924
 
/* end confdefs.h.  */
5925
 
$ac_declaration
5926
 
@%:@include <stdlib.h>
5927
 
int
5928
 
main ()
5929
 
{
5930
 
exit (42);
5931
 
  ;
5932
 
  return 0;
5933
 
}
5934
 
_ACEOF
5935
 
rm -f conftest.$ac_objext
5936
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937
 
  (eval $ac_compile) 2>conftest.er1
5938
 
  ac_status=$?
5939
 
  grep -v '^ *+' conftest.er1 >conftest.err
5940
 
  rm -f conftest.er1
5941
 
  cat conftest.err >&5
5942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943
 
  (exit $ac_status); } &&
5944
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5945
 
                         || test ! -s conftest.err'
5946
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947
 
  (eval $ac_try) 2>&5
5948
 
  ac_status=$?
5949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950
 
  (exit $ac_status); }; } &&
5951
 
         { ac_try='test -s conftest.$ac_objext'
5952
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953
 
  (eval $ac_try) 2>&5
5954
 
  ac_status=$?
5955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956
 
  (exit $ac_status); }; }; then
5957
 
  :
5958
 
else
5959
 
  echo "$as_me: failed program was:" >&5
5960
 
sed 's/^/| /' conftest.$ac_ext >&5
5961
 
 
5962
 
continue
5963
 
fi
5964
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5965
 
  cat >conftest.$ac_ext <<_ACEOF
5966
 
/* confdefs.h.  */
5967
 
_ACEOF
5968
 
cat confdefs.h >>conftest.$ac_ext
5969
 
cat >>conftest.$ac_ext <<_ACEOF
5970
 
/* end confdefs.h.  */
5971
 
$ac_declaration
5972
 
int
5973
 
main ()
5974
 
{
5975
 
exit (42);
5976
 
  ;
5977
 
  return 0;
5978
 
}
5979
 
_ACEOF
5980
 
rm -f conftest.$ac_objext
5981
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982
 
  (eval $ac_compile) 2>conftest.er1
5983
 
  ac_status=$?
5984
 
  grep -v '^ *+' conftest.er1 >conftest.err
5985
 
  rm -f conftest.er1
5986
 
  cat conftest.err >&5
5987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988
 
  (exit $ac_status); } &&
5989
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5990
 
                         || test ! -s conftest.err'
5991
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992
 
  (eval $ac_try) 2>&5
5993
 
  ac_status=$?
5994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995
 
  (exit $ac_status); }; } &&
5996
 
         { ac_try='test -s conftest.$ac_objext'
5997
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998
 
  (eval $ac_try) 2>&5
5999
 
  ac_status=$?
6000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001
 
  (exit $ac_status); }; }; then
6002
 
  break
6003
 
else
6004
 
  echo "$as_me: failed program was:" >&5
6005
 
sed 's/^/| /' conftest.$ac_ext >&5
6006
 
 
6007
 
fi
6008
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6009
 
done
6010
 
rm -f conftest*
6011
 
if test -n "$ac_declaration"; then
6012
 
  echo '#ifdef __cplusplus' >>confdefs.h
6013
 
  echo $ac_declaration      >>confdefs.h
6014
 
  echo '#endif'             >>confdefs.h
6015
 
fi
6016
 
 
6017
 
ac_ext=cc
6018
 
ac_cpp='$CXXCPP $CPPFLAGS'
6019
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6022
 
 
6023
 
depcc="$CXX"  am_compiler_list=
6024
 
 
6025
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6026
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6027
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6028
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6029
 
else
6030
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6031
 
  # We make a subdir and do the tests there.  Otherwise we can end up
6032
 
  # making bogus files that we don't know about and never remove.  For
6033
 
  # instance it was reported that on HP-UX the gcc test will end up
6034
 
  # making a dummy file named `D' -- because `-MD' means `put the output
6035
 
  # in D'.
6036
 
  mkdir conftest.dir
6037
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
6038
 
  # using a relative directory.
6039
 
  cp "$am_depcomp" conftest.dir
6040
 
  cd conftest.dir
6041
 
  # We will build objects and dependencies in a subdirectory because
6042
 
  # it helps to detect inapplicable dependency modes.  For instance
6043
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
6044
 
  # side effect of compilation, but ICC will put the dependencies in
6045
 
  # the current directory while Tru64 will put them in the object
6046
 
  # directory.
6047
 
  mkdir sub
6048
 
 
6049
 
  am_cv_CXX_dependencies_compiler_type=none
6050
 
  if test "$am_compiler_list" = ""; then
6051
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6052
 
  fi
6053
 
  for depmode in $am_compiler_list; do
6054
 
    # Setup a source with many dependencies, because some compilers
6055
 
    # like to wrap large dependency lists on column 80 (with \), and
6056
 
    # we should not choose a depcomp mode which is confused by this.
6057
 
    #
6058
 
    # We need to recreate these files for each test, as the compiler may
6059
 
    # overwrite some of them when testing with obscure command lines.
6060
 
    # This happens at least with the AIX C compiler.
6061
 
    : > sub/conftest.c
6062
 
    for i in 1 2 3 4 5 6; do
6063
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6064
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6065
 
      # Solaris 8's {/usr,}/bin/sh.
6066
 
      touch sub/conftst$i.h
6067
 
    done
6068
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6069
 
 
6070
 
    case $depmode in
6071
 
    nosideeffect)
6072
 
      # after this tag, mechanisms are not by side-effect, so they'll
6073
 
      # only be used when explicitly requested
6074
 
      if test "x$enable_dependency_tracking" = xyes; then
6075
 
        continue
6076
 
      else
6077
 
        break
6078
 
      fi
6079
 
      ;;
6080
 
    none) break ;;
6081
 
    esac
6082
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6083
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
6084
 
    # handle `-M -o', and we need to detect this.
6085
 
    if depmode=$depmode \
6086
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6087
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6088
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6089
 
         >/dev/null 2>conftest.err &&
6090
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6091
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6092
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6093
 
      # icc doesn't choke on unknown options, it will just issue warnings
6094
 
      # or remarks (even with -Werror).  So we grep stderr for any message
6095
 
      # that says an option was ignored or not supported.
6096
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6097
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
6098
 
      # The diagnosis changed in icc 8.0:
6099
 
      #   icc: Command line remark: option '-MP' not supported
6100
 
      if (grep 'ignoring option' conftest.err ||
6101
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6102
 
        am_cv_CXX_dependencies_compiler_type=$depmode
6103
 
        break
6104
 
      fi
6105
 
    fi
6106
 
  done
6107
 
 
6108
 
  cd ..
6109
 
  rm -rf conftest.dir
6110
 
else
6111
 
  am_cv_CXX_dependencies_compiler_type=none
6112
 
fi
6113
 
 
6114
 
fi
6115
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6116
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6117
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6118
 
 
6119
 
 
6120
 
 
6121
 
if 
6122
 
  test "x$enable_dependency_tracking" != xno \
6123
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6124
 
  am__fastdepCXX_TRUE=
6125
 
  am__fastdepCXX_FALSE='#'
6126
 
else
6127
 
  am__fastdepCXX_TRUE='#'
6128
 
  am__fastdepCXX_FALSE=
6129
 
fi
6130
 
 
6131
 
 
6132
 
 
6133
 
 
6134
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6135
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6136
 
    (test "X$CXX" != "Xg++"))) ; then
6137
 
  ac_ext=cc
6138
 
ac_cpp='$CXXCPP $CPPFLAGS'
6139
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6142
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6143
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6144
 
if test -z "$CXXCPP"; then
6145
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6146
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6147
 
else
6148
 
      # Double quotes because CXXCPP needs to be expanded
6149
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
6150
 
    do
6151
 
      ac_preproc_ok=false
6152
 
for ac_cxx_preproc_warn_flag in '' yes
6153
 
do
6154
 
  # Use a header file that comes with gcc, so configuring glibc
6155
 
  # with a fresh cross-compiler works.
6156
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6157
 
  # <limits.h> exists even on freestanding compilers.
6158
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6159
 
  # not just through cpp. "Syntax error" is here to catch this case.
6160
 
  cat >conftest.$ac_ext <<_ACEOF
6161
 
/* confdefs.h.  */
6162
 
_ACEOF
6163
 
cat confdefs.h >>conftest.$ac_ext
6164
 
cat >>conftest.$ac_ext <<_ACEOF
6165
 
/* end confdefs.h.  */
6166
 
@%:@ifdef __STDC__
6167
 
@%:@ include <limits.h>
6168
 
@%:@else
6169
 
@%:@ include <assert.h>
6170
 
@%:@endif
6171
 
                     Syntax error
6172
 
_ACEOF
6173
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6175
 
  ac_status=$?
6176
 
  grep -v '^ *+' conftest.er1 >conftest.err
6177
 
  rm -f conftest.er1
6178
 
  cat conftest.err >&5
6179
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180
 
  (exit $ac_status); } >/dev/null; then
6181
 
  if test -s conftest.err; then
6182
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6183
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6184
 
  else
6185
 
    ac_cpp_err=
6186
 
  fi
6187
 
else
6188
 
  ac_cpp_err=yes
6189
 
fi
6190
 
if test -z "$ac_cpp_err"; then
6191
 
  :
6192
 
else
6193
 
  echo "$as_me: failed program was:" >&5
6194
 
sed 's/^/| /' conftest.$ac_ext >&5
6195
 
 
6196
 
  # Broken: fails on valid input.
6197
 
continue
6198
 
fi
6199
 
rm -f conftest.err conftest.$ac_ext
6200
 
 
6201
 
  # OK, works on sane cases.  Now check whether non-existent headers
6202
 
  # can be detected and how.
6203
 
  cat >conftest.$ac_ext <<_ACEOF
6204
 
/* confdefs.h.  */
6205
 
_ACEOF
6206
 
cat confdefs.h >>conftest.$ac_ext
6207
 
cat >>conftest.$ac_ext <<_ACEOF
6208
 
/* end confdefs.h.  */
6209
 
@%:@include <ac_nonexistent.h>
6210
 
_ACEOF
6211
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6212
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6213
 
  ac_status=$?
6214
 
  grep -v '^ *+' conftest.er1 >conftest.err
6215
 
  rm -f conftest.er1
6216
 
  cat conftest.err >&5
6217
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218
 
  (exit $ac_status); } >/dev/null; then
6219
 
  if test -s conftest.err; then
6220
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6221
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6222
 
  else
6223
 
    ac_cpp_err=
6224
 
  fi
6225
 
else
6226
 
  ac_cpp_err=yes
6227
 
fi
6228
 
if test -z "$ac_cpp_err"; then
6229
 
  # Broken: success on invalid input.
6230
 
continue
6231
 
else
6232
 
  echo "$as_me: failed program was:" >&5
6233
 
sed 's/^/| /' conftest.$ac_ext >&5
6234
 
 
6235
 
  # Passes both tests.
6236
 
ac_preproc_ok=:
6237
 
break
6238
 
fi
6239
 
rm -f conftest.err conftest.$ac_ext
6240
 
 
6241
 
done
6242
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6243
 
rm -f conftest.err conftest.$ac_ext
6244
 
if $ac_preproc_ok; then
6245
 
  break
6246
 
fi
6247
 
 
6248
 
    done
6249
 
    ac_cv_prog_CXXCPP=$CXXCPP
6250
 
  
6251
 
fi
6252
 
  CXXCPP=$ac_cv_prog_CXXCPP
6253
 
else
6254
 
  ac_cv_prog_CXXCPP=$CXXCPP
6255
 
fi
6256
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6257
 
echo "${ECHO_T}$CXXCPP" >&6
6258
 
ac_preproc_ok=false
6259
 
for ac_cxx_preproc_warn_flag in '' yes
6260
 
do
6261
 
  # Use a header file that comes with gcc, so configuring glibc
6262
 
  # with a fresh cross-compiler works.
6263
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264
 
  # <limits.h> exists even on freestanding compilers.
6265
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6266
 
  # not just through cpp. "Syntax error" is here to catch this case.
6267
 
  cat >conftest.$ac_ext <<_ACEOF
6268
 
/* confdefs.h.  */
6269
 
_ACEOF
6270
 
cat confdefs.h >>conftest.$ac_ext
6271
 
cat >>conftest.$ac_ext <<_ACEOF
6272
 
/* end confdefs.h.  */
6273
 
@%:@ifdef __STDC__
6274
 
@%:@ include <limits.h>
6275
 
@%:@else
6276
 
@%:@ include <assert.h>
6277
 
@%:@endif
6278
 
                     Syntax error
6279
 
_ACEOF
6280
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6281
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6282
 
  ac_status=$?
6283
 
  grep -v '^ *+' conftest.er1 >conftest.err
6284
 
  rm -f conftest.er1
6285
 
  cat conftest.err >&5
6286
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287
 
  (exit $ac_status); } >/dev/null; then
6288
 
  if test -s conftest.err; then
6289
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6290
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6291
 
  else
6292
 
    ac_cpp_err=
6293
 
  fi
6294
 
else
6295
 
  ac_cpp_err=yes
6296
 
fi
6297
 
if test -z "$ac_cpp_err"; then
6298
 
  :
6299
 
else
6300
 
  echo "$as_me: failed program was:" >&5
6301
 
sed 's/^/| /' conftest.$ac_ext >&5
6302
 
 
6303
 
  # Broken: fails on valid input.
6304
 
continue
6305
 
fi
6306
 
rm -f conftest.err conftest.$ac_ext
6307
 
 
6308
 
  # OK, works on sane cases.  Now check whether non-existent headers
6309
 
  # can be detected and how.
6310
 
  cat >conftest.$ac_ext <<_ACEOF
6311
 
/* confdefs.h.  */
6312
 
_ACEOF
6313
 
cat confdefs.h >>conftest.$ac_ext
6314
 
cat >>conftest.$ac_ext <<_ACEOF
6315
 
/* end confdefs.h.  */
6316
 
@%:@include <ac_nonexistent.h>
6317
 
_ACEOF
6318
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6319
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6320
 
  ac_status=$?
6321
 
  grep -v '^ *+' conftest.er1 >conftest.err
6322
 
  rm -f conftest.er1
6323
 
  cat conftest.err >&5
6324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325
 
  (exit $ac_status); } >/dev/null; then
6326
 
  if test -s conftest.err; then
6327
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6328
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6329
 
  else
6330
 
    ac_cpp_err=
6331
 
  fi
6332
 
else
6333
 
  ac_cpp_err=yes
6334
 
fi
6335
 
if test -z "$ac_cpp_err"; then
6336
 
  # Broken: success on invalid input.
6337
 
continue
6338
 
else
6339
 
  echo "$as_me: failed program was:" >&5
6340
 
sed 's/^/| /' conftest.$ac_ext >&5
6341
 
 
6342
 
  # Passes both tests.
6343
 
ac_preproc_ok=:
6344
 
break
6345
 
fi
6346
 
rm -f conftest.err conftest.$ac_ext
6347
 
 
6348
 
done
6349
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6350
 
rm -f conftest.err conftest.$ac_ext
6351
 
if $ac_preproc_ok; then
6352
 
  :
6353
 
else
6354
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6355
 
See \`config.log' for more details." >&5
6356
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6357
 
See \`config.log' for more details." >&2;}
6358
 
   { (exit 1); exit 1; }; }
6359
 
fi
6360
 
 
6361
 
ac_ext=cc
6362
 
ac_cpp='$CXXCPP $CPPFLAGS'
6363
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6366
 
 
6367
 
fi
6368
 
 
6369
 
 
6370
 
ac_ext=f
6371
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6372
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6374
 
if test -n "$ac_tool_prefix"; then
6375
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6376
 
  do
6377
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6378
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6379
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6380
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381
 
if test "${ac_cv_prog_F77+set}" = set; then
6382
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6383
 
else
6384
 
  if test -n "$F77"; then
6385
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
6386
 
else
6387
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388
 
for as_dir in $PATH
6389
 
do
6390
 
  IFS=$as_save_IFS
6391
 
  test -z "$as_dir" && as_dir=.
6392
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6393
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6395
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396
 
    break 2
6397
 
  fi
6398
 
done
6399
 
done
6400
 
 
6401
 
fi
6402
 
fi
6403
 
F77=$ac_cv_prog_F77
6404
 
if test -n "$F77"; then
6405
 
  echo "$as_me:$LINENO: result: $F77" >&5
6406
 
echo "${ECHO_T}$F77" >&6
6407
 
else
6408
 
  echo "$as_me:$LINENO: result: no" >&5
6409
 
echo "${ECHO_T}no" >&6
6410
 
fi
6411
 
 
6412
 
    test -n "$F77" && break
6413
 
  done
6414
 
fi
6415
 
if test -z "$F77"; then
6416
 
  ac_ct_F77=$F77
6417
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6418
 
do
6419
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6420
 
set dummy $ac_prog; ac_word=$2
6421
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6422
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6424
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6425
 
else
6426
 
  if test -n "$ac_ct_F77"; then
6427
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6428
 
else
6429
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430
 
for as_dir in $PATH
6431
 
do
6432
 
  IFS=$as_save_IFS
6433
 
  test -z "$as_dir" && as_dir=.
6434
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6435
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6437
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438
 
    break 2
6439
 
  fi
6440
 
done
6441
 
done
6442
 
 
6443
 
fi
6444
 
fi
6445
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6446
 
if test -n "$ac_ct_F77"; then
6447
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6448
 
echo "${ECHO_T}$ac_ct_F77" >&6
6449
 
else
6450
 
  echo "$as_me:$LINENO: result: no" >&5
6451
 
echo "${ECHO_T}no" >&6
6452
 
fi
6453
 
 
6454
 
  test -n "$ac_ct_F77" && break
6455
 
done
6456
 
 
6457
 
  F77=$ac_ct_F77
6458
 
fi
6459
 
 
6460
 
 
6461
 
# Provide some information about the compiler.
6462
 
echo "$as_me:__oline__:" \
6463
 
     "checking for Fortran 77 compiler version" >&5
6464
 
ac_compiler=`set X $ac_compile; echo $2`
6465
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6466
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
6467
 
  ac_status=$?
6468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469
 
  (exit $ac_status); }
6470
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6471
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
6472
 
  ac_status=$?
6473
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474
 
  (exit $ac_status); }
6475
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6476
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
6477
 
  ac_status=$?
6478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479
 
  (exit $ac_status); }
6480
 
rm -f a.out
6481
 
 
6482
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6483
 
# input file.  (Note that this only needs to work for GNU compilers.)
6484
 
ac_save_ext=$ac_ext
6485
 
ac_ext=F
6486
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6487
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6488
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6489
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6490
 
else
6491
 
  cat >conftest.$ac_ext <<_ACEOF
6492
 
      program main
6493
 
#ifndef __GNUC__
6494
 
       choke me
6495
 
#endif
6496
 
 
6497
 
      end
6498
 
_ACEOF
6499
 
rm -f conftest.$ac_objext
6500
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501
 
  (eval $ac_compile) 2>conftest.er1
6502
 
  ac_status=$?
6503
 
  grep -v '^ *+' conftest.er1 >conftest.err
6504
 
  rm -f conftest.er1
6505
 
  cat conftest.err >&5
6506
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507
 
  (exit $ac_status); } &&
6508
 
         { ac_try='test -z "$ac_f77_werror_flag"
6509
 
                         || test ! -s conftest.err'
6510
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511
 
  (eval $ac_try) 2>&5
6512
 
  ac_status=$?
6513
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514
 
  (exit $ac_status); }; } &&
6515
 
         { ac_try='test -s conftest.$ac_objext'
6516
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517
 
  (eval $ac_try) 2>&5
6518
 
  ac_status=$?
6519
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520
 
  (exit $ac_status); }; }; then
6521
 
  ac_compiler_gnu=yes
6522
 
else
6523
 
  echo "$as_me: failed program was:" >&5
6524
 
sed 's/^/| /' conftest.$ac_ext >&5
6525
 
 
6526
 
ac_compiler_gnu=no
6527
 
fi
6528
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6529
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6530
 
 
6531
 
fi
6532
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6533
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6534
 
ac_ext=$ac_save_ext
6535
 
ac_test_FFLAGS=${FFLAGS+set}
6536
 
ac_save_FFLAGS=$FFLAGS
6537
 
FFLAGS=
6538
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6539
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6540
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6541
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6542
 
else
6543
 
  FFLAGS=-g
6544
 
cat >conftest.$ac_ext <<_ACEOF
6545
 
      program main
6546
 
 
6547
 
      end
6548
 
_ACEOF
6549
 
rm -f conftest.$ac_objext
6550
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551
 
  (eval $ac_compile) 2>conftest.er1
6552
 
  ac_status=$?
6553
 
  grep -v '^ *+' conftest.er1 >conftest.err
6554
 
  rm -f conftest.er1
6555
 
  cat conftest.err >&5
6556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557
 
  (exit $ac_status); } &&
6558
 
         { ac_try='test -z "$ac_f77_werror_flag"
6559
 
                         || test ! -s conftest.err'
6560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561
 
  (eval $ac_try) 2>&5
6562
 
  ac_status=$?
6563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564
 
  (exit $ac_status); }; } &&
6565
 
         { ac_try='test -s conftest.$ac_objext'
6566
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567
 
  (eval $ac_try) 2>&5
6568
 
  ac_status=$?
6569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570
 
  (exit $ac_status); }; }; then
6571
 
  ac_cv_prog_f77_g=yes
6572
 
else
6573
 
  echo "$as_me: failed program was:" >&5
6574
 
sed 's/^/| /' conftest.$ac_ext >&5
6575
 
 
6576
 
ac_cv_prog_f77_g=no
6577
 
fi
6578
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579
 
 
6580
 
fi
6581
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6582
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6583
 
if test "$ac_test_FFLAGS" = set; then
6584
 
  FFLAGS=$ac_save_FFLAGS
6585
 
elif test $ac_cv_prog_f77_g = yes; then
6586
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6587
 
    FFLAGS="-g -O2"
6588
 
  else
6589
 
    FFLAGS="-g"
6590
 
  fi
6591
 
else
6592
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6593
 
    FFLAGS="-O2"
6594
 
  else
6595
 
    FFLAGS=
6596
 
  fi
6597
 
fi
6598
 
 
6599
 
G77=`test $ac_compiler_gnu = yes && echo yes`
6600
 
ac_ext=c
6601
 
ac_cpp='$CPP $CPPFLAGS'
6602
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
 
 
6606
 
 
6607
 
 
6608
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6609
 
 
6610
 
# find the maximum length of command line arguments
6611
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6612
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6613
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6614
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6615
 
else
6616
 
    i=0
6617
 
  teststring="ABCD"
6618
 
 
6619
 
  case $build_os in
6620
 
  msdosdjgpp*)
6621
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6622
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6623
 
    # during glob expansion).  Even if it were fixed, the result of this
6624
 
    # check would be larger than it should be.
6625
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6626
 
    ;;
6627
 
 
6628
 
  gnu*)
6629
 
    # Under GNU Hurd, this test is not required because there is
6630
 
    # no limit to the length of command line arguments.
6631
 
    # Libtool will interpret -1 as no limit whatsoever
6632
 
    lt_cv_sys_max_cmd_len=-1;
6633
 
    ;;
6634
 
 
6635
 
  cygwin* | mingw*)
6636
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6637
 
    # about 5 minutes as the teststring grows exponentially.
6638
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6639
 
    # you end up with a "frozen" computer, even though with patience
6640
 
    # the test eventually succeeds (with a max line length of 256k).
6641
 
    # Instead, let's just punt: use the minimum linelength reported by
6642
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6643
 
    lt_cv_sys_max_cmd_len=8192;
6644
 
    ;;
6645
 
 
6646
 
  amigaos*)
6647
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6648
 
    # So we just punt and use a minimum line length of 8192.
6649
 
    lt_cv_sys_max_cmd_len=8192;
6650
 
    ;;
6651
 
 
6652
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6653
 
    # This has been around since 386BSD, at least.  Likely further.
6654
 
    if test -x /sbin/sysctl; then
6655
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6656
 
    elif test -x /usr/sbin/sysctl; then
6657
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6658
 
    else
6659
 
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6660
 
    fi
6661
 
    # And add a safety zone
6662
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6663
 
    ;;
6664
 
  osf*)
6665
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6666
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6667
 
    # nice to cause kernel panics so lets avoid the loop below.
6668
 
    # First set a reasonable default.
6669
 
    lt_cv_sys_max_cmd_len=16384
6670
 
    # 
6671
 
    if test -x /sbin/sysconfig; then
6672
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6673
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6674
 
      esac
6675
 
    fi
6676
 
    ;;
6677
 
  *)
6678
 
    # If test is not a shell built-in, we'll probably end up computing a
6679
 
    # maximum length that is only half of the actual maximum length, but
6680
 
    # we can't tell.
6681
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6682
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6683
 
               = "XX$teststring") >/dev/null 2>&1 &&
6684
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6685
 
            lt_cv_sys_max_cmd_len=$new_result &&
6686
 
            test $i != 17 # 1/2 MB should be enough
6687
 
    do
6688
 
      i=`expr $i + 1`
6689
 
      teststring=$teststring$teststring
6690
 
    done
6691
 
    teststring=
6692
 
    # Add a significant safety factor because C++ compilers can tack on massive
6693
 
    # amounts of additional arguments before passing them to the linker.
6694
 
    # It appears as though 1/2 is a usable value.
6695
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6696
 
    ;;
6697
 
  esac
6698
 
 
6699
 
fi
6700
 
 
6701
 
if test -n $lt_cv_sys_max_cmd_len ; then
6702
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6703
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6704
 
else
6705
 
  echo "$as_me:$LINENO: result: none" >&5
6706
 
echo "${ECHO_T}none" >&6
6707
 
fi
6708
 
 
6709
 
 
6710
 
 
6711
 
 
6712
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
6713
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6714
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6715
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6716
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6717
 
else
6718
 
  
6719
 
# These are sane defaults that work on at least a few old systems.
6720
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6721
 
 
6722
 
# Character class describing NM global symbol codes.
6723
 
symcode='[BCDEGRST]'
6724
 
 
6725
 
# Regexp to match symbols that can be accessed directly from C.
6726
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6727
 
 
6728
 
# Transform an extracted symbol line into a proper C declaration
6729
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6730
 
 
6731
 
# Transform an extracted symbol line into symbol name and symbol address
6732
 
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'"
6733
 
 
6734
 
# Define system-specific variables.
6735
 
case $host_os in
6736
 
aix*)
6737
 
  symcode='[BCDT]'
6738
 
  ;;
6739
 
cygwin* | mingw* | pw32*)
6740
 
  symcode='[ABCDGISTW]'
6741
 
  ;;
6742
 
hpux*) # Its linker distinguishes data from code symbols
6743
 
  if test "$host_cpu" = ia64; then
6744
 
    symcode='[ABCDEGRST]'
6745
 
  fi
6746
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6747
 
  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'"
6748
 
  ;;
6749
 
linux*)
6750
 
  if test "$host_cpu" = ia64; then
6751
 
    symcode='[ABCDGIRSTW]'
6752
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6753
 
    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'"
6754
 
  fi
6755
 
  ;;
6756
 
irix* | nonstopux*)
6757
 
  symcode='[BCDEGRST]'
6758
 
  ;;
6759
 
osf*)
6760
 
  symcode='[BCDEGQRST]'
6761
 
  ;;
6762
 
solaris* | sysv5*)
6763
 
  symcode='[BDRT]'
6764
 
  ;;
6765
 
sysv4)
6766
 
  symcode='[DFNSTU]'
6767
 
  ;;
6768
 
esac
6769
 
 
6770
 
# Handle CRLF in mingw tool chain
6771
 
opt_cr=
6772
 
case $build_os in
6773
 
mingw*)
6774
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6775
 
  ;;
6776
 
esac
6777
 
 
6778
 
# If we're using GNU nm, then use its standard symbol codes.
6779
 
case `$NM -V 2>&1` in
6780
 
*GNU* | *'with BFD'*)
6781
 
  symcode='[ABCDGIRSTW]' ;;
6782
 
esac
6783
 
 
6784
 
# Try without a prefix undercore, then with it.
6785
 
for ac_symprfx in "" "_"; do
6786
 
 
6787
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6788
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6789
 
 
6790
 
  # Write the raw and C identifiers.
6791
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6792
 
 
6793
 
  # Check to see that the pipe works correctly.
6794
 
  pipe_works=no
6795
 
 
6796
 
  rm -f conftest*
6797
 
  cat > conftest.$ac_ext <<EOF
6798
 
#ifdef __cplusplus
6799
 
extern "C" {
6800
 
#endif
6801
 
char nm_test_var;
6802
 
void nm_test_func(){}
6803
 
#ifdef __cplusplus
6804
 
}
6805
 
#endif
6806
 
int main(){nm_test_var='a';nm_test_func();return(0);}
6807
 
EOF
6808
 
 
6809
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810
 
  (eval $ac_compile) 2>&5
6811
 
  ac_status=$?
6812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813
 
  (exit $ac_status); }; then
6814
 
    # Now try to grab the symbols.
6815
 
    nlist=conftest.nm
6816
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6817
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6818
 
  ac_status=$?
6819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820
 
  (exit $ac_status); } && test -s "$nlist"; then
6821
 
      # Try sorting and uniquifying the output.
6822
 
      if sort "$nlist" | uniq > "$nlist"T; then
6823
 
        mv -f "$nlist"T "$nlist"
6824
 
      else
6825
 
        rm -f "$nlist"T
6826
 
      fi
6827
 
 
6828
 
      # Make sure that we snagged all the symbols we need.
6829
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6830
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6831
 
          cat <<EOF > conftest.$ac_ext
6832
 
#ifdef __cplusplus
6833
 
extern "C" {
6834
 
#endif
6835
 
 
6836
 
EOF
6837
 
          # Now generate the symbol file.
6838
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6839
 
 
6840
 
          cat <<EOF >> conftest.$ac_ext
6841
 
#if defined (__STDC__) && __STDC__
6842
 
# define lt_ptr_t void *
6843
 
#else
6844
 
# define lt_ptr_t char *
6845
 
# define const
6846
 
#endif
6847
 
 
6848
 
/* The mapping between symbol names and symbols. */
6849
 
const struct {
6850
 
  const char *name;
6851
 
  lt_ptr_t address;
6852
 
}
6853
 
lt_preloaded_symbols[] =
6854
 
{
6855
 
EOF
6856
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6857
 
          cat <<\EOF >> conftest.$ac_ext
6858
 
  {0, (lt_ptr_t) 0}
6859
 
};
6860
 
 
6861
 
#ifdef __cplusplus
6862
 
}
6863
 
#endif
6864
 
EOF
6865
 
          # Now try linking the two files.
6866
 
          mv conftest.$ac_objext conftstm.$ac_objext
6867
 
          lt_save_LIBS="$LIBS"
6868
 
          lt_save_CFLAGS="$CFLAGS"
6869
 
          LIBS="conftstm.$ac_objext"
6870
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6871
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872
 
  (eval $ac_link) 2>&5
6873
 
  ac_status=$?
6874
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6876
 
            pipe_works=yes
6877
 
          fi
6878
 
          LIBS="$lt_save_LIBS"
6879
 
          CFLAGS="$lt_save_CFLAGS"
6880
 
        else
6881
 
          echo "cannot find nm_test_func in $nlist" >&5
6882
 
        fi
6883
 
      else
6884
 
        echo "cannot find nm_test_var in $nlist" >&5
6885
 
      fi
6886
 
    else
6887
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6888
 
    fi
6889
 
  else
6890
 
    echo "$progname: failed program was:" >&5
6891
 
    cat conftest.$ac_ext >&5
6892
 
  fi
6893
 
  rm -f conftest* conftst*
6894
 
 
6895
 
  # Do not use the global_symbol_pipe unless it works.
6896
 
  if test "$pipe_works" = yes; then
6897
 
    break
6898
 
  else
6899
 
    lt_cv_sys_global_symbol_pipe=
6900
 
  fi
6901
 
done
6902
 
 
6903
 
fi
6904
 
 
6905
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6906
 
  lt_cv_sys_global_symbol_to_cdecl=
6907
 
fi
6908
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6909
 
  echo "$as_me:$LINENO: result: failed" >&5
6910
 
echo "${ECHO_T}failed" >&6
6911
 
else
6912
 
  echo "$as_me:$LINENO: result: ok" >&5
6913
 
echo "${ECHO_T}ok" >&6
6914
 
fi
6915
 
 
6916
 
echo "$as_me:$LINENO: checking for objdir" >&5
6917
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6918
 
if test "${lt_cv_objdir+set}" = set; then
6919
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6920
 
else
6921
 
  rm -f .libs 2>/dev/null
6922
 
mkdir .libs 2>/dev/null
6923
 
if test -d .libs; then
6924
 
  lt_cv_objdir=.libs
6925
 
else
6926
 
  # MS-DOS does not allow filenames that begin with a dot.
6927
 
  lt_cv_objdir=_libs
6928
 
fi
6929
 
rmdir .libs 2>/dev/null
6930
 
fi
6931
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6932
 
echo "${ECHO_T}$lt_cv_objdir" >&6
6933
 
objdir=$lt_cv_objdir
6934
 
 
6935
 
 
6936
 
 
6937
 
 
6938
 
 
6939
 
case $host_os in
6940
 
aix3*)
6941
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
6942
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6943
 
  # vanish in a puff of smoke.
6944
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
6945
 
    COLLECT_NAMES=
6946
 
    export COLLECT_NAMES
6947
 
  fi
6948
 
  ;;
6949
 
esac
6950
 
 
6951
 
# Sed substitution that helps us do robust quoting.  It backslashifies
6952
 
# metacharacters that are still active within double-quoted strings.
6953
 
Xsed='sed -e s/^X//'
6954
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6955
 
 
6956
 
# Same as above, but do not quote variable references.
6957
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6958
 
 
6959
 
# Sed substitution to delay expansion of an escaped shell variable in a
6960
 
# double_quote_subst'ed string.
6961
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6962
 
 
6963
 
# Sed substitution to avoid accidental globbing in evaled expressions
6964
 
no_glob_subst='s/\*/\\\*/g'
6965
 
 
6966
 
# Constants:
6967
 
rm="rm -f"
6968
 
 
6969
 
# Global variables:
6970
 
default_ofile=libtool
6971
 
can_build_shared=yes
6972
 
 
6973
 
# All known linkers require a `.a' archive for static linking (except M$VC,
6974
 
# which needs '.lib').
6975
 
libext=a
6976
 
ltmain="$ac_aux_dir/ltmain.sh"
6977
 
ofile="$default_ofile"
6978
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
6979
 
 
6980
 
if test -n "$ac_tool_prefix"; then
6981
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6982
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6983
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6984
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6985
 
if test "${ac_cv_prog_AR+set}" = set; then
6986
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6987
 
else
6988
 
  if test -n "$AR"; then
6989
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6990
 
else
6991
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992
 
for as_dir in $PATH
6993
 
do
6994
 
  IFS=$as_save_IFS
6995
 
  test -z "$as_dir" && as_dir=.
6996
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6997
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6999
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000
 
    break 2
7001
 
  fi
7002
 
done
7003
 
done
7004
 
 
7005
 
fi
7006
 
fi
7007
 
AR=$ac_cv_prog_AR
7008
 
if test -n "$AR"; then
7009
 
  echo "$as_me:$LINENO: result: $AR" >&5
7010
 
echo "${ECHO_T}$AR" >&6
7011
 
else
7012
 
  echo "$as_me:$LINENO: result: no" >&5
7013
 
echo "${ECHO_T}no" >&6
7014
 
fi
7015
 
 
7016
 
fi
7017
 
if test -z "$ac_cv_prog_AR"; then
7018
 
  ac_ct_AR=$AR
7019
 
  # Extract the first word of "ar", so it can be a program name with args.
7020
 
set dummy ar; ac_word=$2
7021
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7022
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7023
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7024
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7025
 
else
7026
 
  if test -n "$ac_ct_AR"; then
7027
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7028
 
else
7029
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030
 
for as_dir in $PATH
7031
 
do
7032
 
  IFS=$as_save_IFS
7033
 
  test -z "$as_dir" && as_dir=.
7034
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7035
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036
 
    ac_cv_prog_ac_ct_AR="ar"
7037
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038
 
    break 2
7039
 
  fi
7040
 
done
7041
 
done
7042
 
 
7043
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7044
 
fi
7045
 
fi
7046
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7047
 
if test -n "$ac_ct_AR"; then
7048
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7049
 
echo "${ECHO_T}$ac_ct_AR" >&6
7050
 
else
7051
 
  echo "$as_me:$LINENO: result: no" >&5
7052
 
echo "${ECHO_T}no" >&6
7053
 
fi
7054
 
 
7055
 
  AR=$ac_ct_AR
7056
 
else
7057
 
  AR="$ac_cv_prog_AR"
7058
 
fi
7059
 
 
7060
 
if test -n "$ac_tool_prefix"; then
7061
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7062
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7063
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7064
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7065
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7066
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7067
 
else
7068
 
  if test -n "$RANLIB"; then
7069
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7070
 
else
7071
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072
 
for as_dir in $PATH
7073
 
do
7074
 
  IFS=$as_save_IFS
7075
 
  test -z "$as_dir" && as_dir=.
7076
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7077
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7079
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080
 
    break 2
7081
 
  fi
7082
 
done
7083
 
done
7084
 
 
7085
 
fi
7086
 
fi
7087
 
RANLIB=$ac_cv_prog_RANLIB
7088
 
if test -n "$RANLIB"; then
7089
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
7090
 
echo "${ECHO_T}$RANLIB" >&6
7091
 
else
7092
 
  echo "$as_me:$LINENO: result: no" >&5
7093
 
echo "${ECHO_T}no" >&6
7094
 
fi
7095
 
 
7096
 
fi
7097
 
if test -z "$ac_cv_prog_RANLIB"; then
7098
 
  ac_ct_RANLIB=$RANLIB
7099
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7100
 
set dummy ranlib; ac_word=$2
7101
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7102
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7103
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7104
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7105
 
else
7106
 
  if test -n "$ac_ct_RANLIB"; then
7107
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7108
 
else
7109
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110
 
for as_dir in $PATH
7111
 
do
7112
 
  IFS=$as_save_IFS
7113
 
  test -z "$as_dir" && as_dir=.
7114
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7115
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7117
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118
 
    break 2
7119
 
  fi
7120
 
done
7121
 
done
7122
 
 
7123
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7124
 
fi
7125
 
fi
7126
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7127
 
if test -n "$ac_ct_RANLIB"; then
7128
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7129
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7130
 
else
7131
 
  echo "$as_me:$LINENO: result: no" >&5
7132
 
echo "${ECHO_T}no" >&6
7133
 
fi
7134
 
 
7135
 
  RANLIB=$ac_ct_RANLIB
7136
 
else
7137
 
  RANLIB="$ac_cv_prog_RANLIB"
7138
 
fi
7139
 
 
7140
 
if test -n "$ac_tool_prefix"; then
7141
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7142
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7143
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7144
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145
 
if test "${ac_cv_prog_STRIP+set}" = set; then
7146
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7147
 
else
7148
 
  if test -n "$STRIP"; then
7149
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7150
 
else
7151
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152
 
for as_dir in $PATH
7153
 
do
7154
 
  IFS=$as_save_IFS
7155
 
  test -z "$as_dir" && as_dir=.
7156
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7157
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7159
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160
 
    break 2
7161
 
  fi
7162
 
done
7163
 
done
7164
 
 
7165
 
fi
7166
 
fi
7167
 
STRIP=$ac_cv_prog_STRIP
7168
 
if test -n "$STRIP"; then
7169
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
7170
 
echo "${ECHO_T}$STRIP" >&6
7171
 
else
7172
 
  echo "$as_me:$LINENO: result: no" >&5
7173
 
echo "${ECHO_T}no" >&6
7174
 
fi
7175
 
 
7176
 
fi
7177
 
if test -z "$ac_cv_prog_STRIP"; then
7178
 
  ac_ct_STRIP=$STRIP
7179
 
  # Extract the first word of "strip", so it can be a program name with args.
7180
 
set dummy strip; ac_word=$2
7181
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7182
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7183
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7184
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7185
 
else
7186
 
  if test -n "$ac_ct_STRIP"; then
7187
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7188
 
else
7189
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190
 
for as_dir in $PATH
7191
 
do
7192
 
  IFS=$as_save_IFS
7193
 
  test -z "$as_dir" && as_dir=.
7194
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7195
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196
 
    ac_cv_prog_ac_ct_STRIP="strip"
7197
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198
 
    break 2
7199
 
  fi
7200
 
done
7201
 
done
7202
 
 
7203
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7204
 
fi
7205
 
fi
7206
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7207
 
if test -n "$ac_ct_STRIP"; then
7208
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7209
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
7210
 
else
7211
 
  echo "$as_me:$LINENO: result: no" >&5
7212
 
echo "${ECHO_T}no" >&6
7213
 
fi
7214
 
 
7215
 
  STRIP=$ac_ct_STRIP
7216
 
else
7217
 
  STRIP="$ac_cv_prog_STRIP"
7218
 
fi
7219
 
 
7220
 
 
7221
 
old_CC="$CC"
7222
 
old_CFLAGS="$CFLAGS"
7223
 
 
7224
 
# Set sane defaults for various variables
7225
 
test -z "$AR" && AR=ar
7226
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
7227
 
test -z "$AS" && AS=as
7228
 
test -z "$CC" && CC=cc
7229
 
test -z "$LTCC" && LTCC=$CC
7230
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7231
 
test -z "$LD" && LD=ld
7232
 
test -z "$LN_S" && LN_S="ln -s"
7233
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7234
 
test -z "$NM" && NM=nm
7235
 
test -z "$SED" && SED=sed
7236
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7237
 
test -z "$RANLIB" && RANLIB=:
7238
 
test -z "$STRIP" && STRIP=:
7239
 
test -z "$ac_objext" && ac_objext=o
7240
 
 
7241
 
# Determine commands to create old-style static archives.
7242
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7243
 
old_postinstall_cmds='chmod 644 $oldlib'
7244
 
old_postuninstall_cmds=
7245
 
 
7246
 
if test -n "$RANLIB"; then
7247
 
  case $host_os in
7248
 
  openbsd*)
7249
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7250
 
    ;;
7251
 
  *)
7252
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7253
 
    ;;
7254
 
  esac
7255
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7256
 
fi
7257
 
 
7258
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7259
 
 
7260
 
# Only perform the check for file, if the check method requires it
7261
 
case $deplibs_check_method in
7262
 
file_magic*)
7263
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7264
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7265
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7266
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7267
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7268
 
else
7269
 
  case $MAGIC_CMD in
7270
 
[\\/*] |  ?:[\\/]*)
7271
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7272
 
  ;;
7273
 
*)
7274
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7275
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7276
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7277
 
  for ac_dir in $ac_dummy; do
7278
 
    IFS="$lt_save_ifs"
7279
 
    test -z "$ac_dir" && ac_dir=.
7280
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7281
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7282
 
      if test -n "$file_magic_test_file"; then
7283
 
        case $deplibs_check_method in
7284
 
        "file_magic "*)
7285
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7286
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7288
 
            $EGREP "$file_magic_regex" > /dev/null; then
7289
 
            :
7290
 
          else
7291
 
            cat <<EOF 1>&2
7292
 
 
7293
 
*** Warning: the command libtool uses to detect shared libraries,
7294
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7295
 
*** The result is that libtool may fail to recognize shared libraries
7296
 
*** as such.  This will affect the creation of libtool libraries that
7297
 
*** depend on shared libraries, but programs linked with such libtool
7298
 
*** libraries will work regardless of this problem.  Nevertheless, you
7299
 
*** may want to report the problem to your system manager and/or to
7300
 
*** bug-libtool@gnu.org
7301
 
 
7302
 
EOF
7303
 
          fi ;;
7304
 
        esac
7305
 
      fi
7306
 
      break
7307
 
    fi
7308
 
  done
7309
 
  IFS="$lt_save_ifs"
7310
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7311
 
  ;;
7312
 
esac
7313
 
fi
7314
 
 
7315
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7316
 
if test -n "$MAGIC_CMD"; then
7317
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7318
 
echo "${ECHO_T}$MAGIC_CMD" >&6
7319
 
else
7320
 
  echo "$as_me:$LINENO: result: no" >&5
7321
 
echo "${ECHO_T}no" >&6
7322
 
fi
7323
 
 
7324
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7325
 
  if test -n "$ac_tool_prefix"; then
7326
 
    echo "$as_me:$LINENO: checking for file" >&5
7327
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
7328
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7329
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7330
 
else
7331
 
  case $MAGIC_CMD in
7332
 
[\\/*] |  ?:[\\/]*)
7333
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7334
 
  ;;
7335
 
*)
7336
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7337
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339
 
  for ac_dir in $ac_dummy; do
7340
 
    IFS="$lt_save_ifs"
7341
 
    test -z "$ac_dir" && ac_dir=.
7342
 
    if test -f $ac_dir/file; then
7343
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7344
 
      if test -n "$file_magic_test_file"; then
7345
 
        case $deplibs_check_method in
7346
 
        "file_magic "*)
7347
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7348
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350
 
            $EGREP "$file_magic_regex" > /dev/null; then
7351
 
            :
7352
 
          else
7353
 
            cat <<EOF 1>&2
7354
 
 
7355
 
*** Warning: the command libtool uses to detect shared libraries,
7356
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7357
 
*** The result is that libtool may fail to recognize shared libraries
7358
 
*** as such.  This will affect the creation of libtool libraries that
7359
 
*** depend on shared libraries, but programs linked with such libtool
7360
 
*** libraries will work regardless of this problem.  Nevertheless, you
7361
 
*** may want to report the problem to your system manager and/or to
7362
 
*** bug-libtool@gnu.org
7363
 
 
7364
 
EOF
7365
 
          fi ;;
7366
 
        esac
7367
 
      fi
7368
 
      break
7369
 
    fi
7370
 
  done
7371
 
  IFS="$lt_save_ifs"
7372
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7373
 
  ;;
7374
 
esac
7375
 
fi
7376
 
 
7377
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378
 
if test -n "$MAGIC_CMD"; then
7379
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7380
 
echo "${ECHO_T}$MAGIC_CMD" >&6
7381
 
else
7382
 
  echo "$as_me:$LINENO: result: no" >&5
7383
 
echo "${ECHO_T}no" >&6
7384
 
fi
7385
 
 
7386
 
  else
7387
 
    MAGIC_CMD=:
7388
 
  fi
7389
 
fi
7390
 
 
7391
 
  fi
7392
 
  ;;
7393
 
esac
7394
 
 
7395
 
enable_dlopen=no
7396
 
enable_win32_dll=no
7397
 
 
7398
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7399
 
if test "${enable_libtool_lock+set}" = set; then
7400
 
  enableval="$enable_libtool_lock"
7401
 
  
7402
 
fi; 
7403
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7404
 
 
7405
 
 
7406
 
# Check whether --with-pic or --without-pic was given.
7407
 
if test "${with_pic+set}" = set; then
7408
 
  withval="$with_pic"
7409
 
  pic_mode="$withval"
7410
 
else
7411
 
  pic_mode=default
7412
 
fi; 
7413
 
test -z "$pic_mode" && pic_mode=default
7414
 
 
7415
 
# Use C for the default configuration in the libtool script
7416
 
tagname=
7417
 
lt_save_CC="$CC"
7418
 
ac_ext=c
7419
 
ac_cpp='$CPP $CPPFLAGS'
7420
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423
 
 
7424
 
 
7425
 
# Source file extension for C test sources.
7426
 
ac_ext=c
7427
 
 
7428
 
# Object file extension for compiled C test sources.
7429
 
objext=o
7430
 
objext=$objext
7431
 
 
7432
 
# Code to be used in simple compile tests
7433
 
lt_simple_compile_test_code="int some_variable = 0;\n"
7434
 
 
7435
 
# Code to be used in simple link tests
7436
 
lt_simple_link_test_code='int main(){return(0);}\n'
7437
 
 
7438
 
 
7439
 
# If no C compiler was specified, use CC.
7440
 
LTCC=${LTCC-"$CC"}
7441
 
 
7442
 
# Allow CC to be a program name with arguments.
7443
 
compiler=$CC
7444
 
 
7445
 
 
7446
 
#
7447
 
# Check for any special shared library compilation flags.
7448
 
#
7449
 
lt_prog_cc_shlib=
7450
 
if test "$GCC" = no; then
7451
 
  case $host_os in
7452
 
  sco3.2v5*)
7453
 
    lt_prog_cc_shlib='-belf'
7454
 
    ;;
7455
 
  esac
7456
 
fi
7457
 
if test -n "$lt_prog_cc_shlib"; then
7458
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7459
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7460
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7461
 
  else
7462
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7463
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7464
 
    lt_cv_prog_cc_can_build_shared=no
7465
 
  fi
7466
 
fi
7467
 
 
7468
 
 
7469
 
#
7470
 
# Check to make sure the static flag actually works.
7471
 
#
7472
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7473
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7474
 
if test "${lt_prog_compiler_static_works+set}" = set; then
7475
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7476
 
else
7477
 
  lt_prog_compiler_static_works=no
7478
 
   save_LDFLAGS="$LDFLAGS"
7479
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7480
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7481
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7482
 
     # The compiler can only warn and ignore the option if not recognized
7483
 
     # So say no if there are warnings
7484
 
     if test -s conftest.err; then
7485
 
       # Append any errors to the config.log.
7486
 
       cat conftest.err 1>&5
7487
 
     else
7488
 
       lt_prog_compiler_static_works=yes
7489
 
     fi
7490
 
   fi
7491
 
   $rm conftest*
7492
 
   LDFLAGS="$save_LDFLAGS"
7493
 
 
7494
 
fi
7495
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7496
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7497
 
 
7498
 
if test x"$lt_prog_compiler_static_works" = xyes; then
7499
 
    :
7500
 
else
7501
 
    lt_prog_compiler_static=
7502
 
fi
7503
 
 
7504
 
 
7505
 
 
7506
 
 
7507
 
lt_prog_compiler_no_builtin_flag=
7508
 
 
7509
 
if test "$GCC" = yes; then
7510
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7511
 
 
7512
 
  
7513
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7514
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7515
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7516
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7517
 
else
7518
 
  lt_cv_prog_compiler_rtti_exceptions=no
7519
 
  ac_outfile=conftest.$ac_objext
7520
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7521
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7522
 
   # Insert the option either (1) after the last *FLAGS variable, or
7523
 
   # (2) before a word containing "conftest.", or (3) at the end.
7524
 
   # Note that $ac_compile itself does not contain backslashes and begins
7525
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7526
 
   # The option is referenced via a variable to avoid confusing sed.
7527
 
   lt_compile=`echo "$ac_compile" | $SED \
7528
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7529
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7530
 
   -e 's:$: $lt_compiler_flag:'`
7531
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7532
 
   (eval "$lt_compile" 2>conftest.err)
7533
 
   ac_status=$?
7534
 
   cat conftest.err >&5
7535
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7536
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
7537
 
     # The compiler can only warn and ignore the option if not recognized
7538
 
     # So say no if there are warnings
7539
 
     if test ! -s conftest.err; then
7540
 
       lt_cv_prog_compiler_rtti_exceptions=yes
7541
 
     fi
7542
 
   fi
7543
 
   $rm conftest*
7544
 
 
7545
 
fi
7546
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7547
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7548
 
 
7549
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7550
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7551
 
else
7552
 
    :
7553
 
fi
7554
 
 
7555
 
fi
7556
 
 
7557
 
lt_prog_compiler_wl=
7558
 
lt_prog_compiler_pic=
7559
 
lt_prog_compiler_static=
7560
 
 
7561
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7562
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7563
 
 
7564
 
  if test "$GCC" = yes; then
7565
 
    lt_prog_compiler_wl='-Wl,'
7566
 
    lt_prog_compiler_static='-static'
7567
 
 
7568
 
    case $host_os in
7569
 
      aix*)
7570
 
      # All AIX code is PIC.
7571
 
      if test "$host_cpu" = ia64; then
7572
 
        # AIX 5 now supports IA64 processor
7573
 
        lt_prog_compiler_static='-Bstatic'
7574
 
      fi
7575
 
      ;;
7576
 
 
7577
 
    amigaos*)
7578
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7579
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7580
 
      # like `-m68040'.
7581
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7582
 
      ;;
7583
 
 
7584
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7585
 
      # PIC is the default for these OSes.
7586
 
      ;;
7587
 
 
7588
 
    mingw* | pw32* | os2*)
7589
 
      # This hack is so that the source file can tell whether it is being
7590
 
      # built for inclusion in a dll (and should export symbols for example).
7591
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7592
 
      ;;
7593
 
 
7594
 
    darwin* | rhapsody*)
7595
 
      # PIC is the default on this platform
7596
 
      # Common symbols not allowed in MH_DYLIB files
7597
 
      lt_prog_compiler_pic='-fno-common'
7598
 
      ;;
7599
 
 
7600
 
    msdosdjgpp*)
7601
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7602
 
      # on systems that don't support them.
7603
 
      lt_prog_compiler_can_build_shared=no
7604
 
      enable_shared=no
7605
 
      ;;
7606
 
 
7607
 
    sysv4*MP*)
7608
 
      if test -d /usr/nec; then
7609
 
        lt_prog_compiler_pic=-Kconform_pic
7610
 
      fi
7611
 
      ;;
7612
 
 
7613
 
    hpux*)
7614
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7615
 
      # not for PA HP-UX.
7616
 
      case "$host_cpu" in
7617
 
      hppa*64*|ia64*)
7618
 
        # +Z the default
7619
 
        ;;
7620
 
      *)
7621
 
        lt_prog_compiler_pic='-fPIC'
7622
 
        ;;
7623
 
      esac
7624
 
      ;;
7625
 
 
7626
 
    *)
7627
 
      lt_prog_compiler_pic='-fPIC'
7628
 
      ;;
7629
 
    esac
7630
 
  else
7631
 
    # PORTME Check for flag to pass linker flags through the system compiler.
7632
 
    case $host_os in
7633
 
    aix*)
7634
 
      lt_prog_compiler_wl='-Wl,'
7635
 
      if test "$host_cpu" = ia64; then
7636
 
        # AIX 5 now supports IA64 processor
7637
 
        lt_prog_compiler_static='-Bstatic'
7638
 
      else
7639
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7640
 
      fi
7641
 
      ;;
7642
 
      darwin*)
7643
 
        # PIC is the default on this platform
7644
 
        # Common symbols not allowed in MH_DYLIB files
7645
 
       case "$cc_basename" in
7646
 
         xlc*)
7647
 
         lt_prog_compiler_pic='-qnocommon'
7648
 
         lt_prog_compiler_wl='-Wl,'
7649
 
         ;;
7650
 
       esac
7651
 
       ;;
7652
 
 
7653
 
    mingw* | pw32* | os2*)
7654
 
      # This hack is so that the source file can tell whether it is being
7655
 
      # built for inclusion in a dll (and should export symbols for example).
7656
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7657
 
      ;;
7658
 
 
7659
 
    hpux9* | hpux10* | hpux11*)
7660
 
      lt_prog_compiler_wl='-Wl,'
7661
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7662
 
      # not for PA HP-UX.
7663
 
      case "$host_cpu" in
7664
 
      hppa*64*|ia64*)
7665
 
        # +Z the default
7666
 
        ;;
7667
 
      *)
7668
 
        lt_prog_compiler_pic='+Z'
7669
 
        ;;
7670
 
      esac
7671
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7672
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7673
 
      ;;
7674
 
 
7675
 
    irix5* | irix6* | nonstopux*)
7676
 
      lt_prog_compiler_wl='-Wl,'
7677
 
      # PIC (with -KPIC) is the default.
7678
 
      lt_prog_compiler_static='-non_shared'
7679
 
      ;;
7680
 
 
7681
 
    newsos6)
7682
 
      lt_prog_compiler_pic='-KPIC'
7683
 
      lt_prog_compiler_static='-Bstatic'
7684
 
      ;;
7685
 
 
7686
 
    linux*)
7687
 
      case $cc_basename in
7688
 
      icc* | ecc*)
7689
 
        lt_prog_compiler_wl='-Wl,'
7690
 
        lt_prog_compiler_pic='-KPIC'
7691
 
        lt_prog_compiler_static='-static'
7692
 
        ;;
7693
 
      pgcc | pgf77 | pgf90)
7694
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
7695
 
        # which looks to be a dead project)
7696
 
        lt_prog_compiler_wl='-Wl,'
7697
 
        lt_prog_compiler_pic='-fpic'
7698
 
        lt_prog_compiler_static='-static'
7699
 
        ;;
7700
 
      ccc*)
7701
 
        lt_prog_compiler_wl='-Wl,'
7702
 
        # All Alpha code is PIC.
7703
 
        lt_prog_compiler_static='-non_shared'
7704
 
        ;;
7705
 
      esac
7706
 
      ;;
7707
 
 
7708
 
    osf3* | osf4* | osf5*)
7709
 
      lt_prog_compiler_wl='-Wl,'
7710
 
      # All OSF/1 code is PIC.
7711
 
      lt_prog_compiler_static='-non_shared'
7712
 
      ;;
7713
 
 
7714
 
    sco3.2v5*)
7715
 
      lt_prog_compiler_pic='-Kpic'
7716
 
      lt_prog_compiler_static='-dn'
7717
 
      ;;
7718
 
 
7719
 
    solaris*)
7720
 
      lt_prog_compiler_wl='-Wl,'
7721
 
      lt_prog_compiler_pic='-KPIC'
7722
 
      lt_prog_compiler_static='-Bstatic'
7723
 
      ;;
7724
 
 
7725
 
    sunos4*)
7726
 
      lt_prog_compiler_wl='-Qoption ld '
7727
 
      lt_prog_compiler_pic='-PIC'
7728
 
      lt_prog_compiler_static='-Bstatic'
7729
 
      ;;
7730
 
 
7731
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7732
 
      lt_prog_compiler_wl='-Wl,'
7733
 
      lt_prog_compiler_pic='-KPIC'
7734
 
      lt_prog_compiler_static='-Bstatic'
7735
 
      ;;
7736
 
 
7737
 
    sysv4*MP*)
7738
 
      if test -d /usr/nec ;then
7739
 
        lt_prog_compiler_pic='-Kconform_pic'
7740
 
        lt_prog_compiler_static='-Bstatic'
7741
 
      fi
7742
 
      ;;
7743
 
 
7744
 
    unicos*)
7745
 
      lt_prog_compiler_wl='-Wl,'
7746
 
      lt_prog_compiler_can_build_shared=no
7747
 
      ;;
7748
 
 
7749
 
    uts4*)
7750
 
      lt_prog_compiler_pic='-pic'
7751
 
      lt_prog_compiler_static='-Bstatic'
7752
 
      ;;
7753
 
 
7754
 
    *)
7755
 
      lt_prog_compiler_can_build_shared=no
7756
 
      ;;
7757
 
    esac
7758
 
  fi
7759
 
 
7760
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7761
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7762
 
 
7763
 
#
7764
 
# Check to make sure the PIC flag actually works.
7765
 
#
7766
 
if test -n "$lt_prog_compiler_pic"; then
7767
 
  
7768
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7769
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7770
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
7771
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7772
 
else
7773
 
  lt_prog_compiler_pic_works=no
7774
 
  ac_outfile=conftest.$ac_objext
7775
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7776
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7777
 
   # Insert the option either (1) after the last *FLAGS variable, or
7778
 
   # (2) before a word containing "conftest.", or (3) at the end.
7779
 
   # Note that $ac_compile itself does not contain backslashes and begins
7780
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7781
 
   # The option is referenced via a variable to avoid confusing sed.
7782
 
   lt_compile=`echo "$ac_compile" | $SED \
7783
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7784
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7785
 
   -e 's:$: $lt_compiler_flag:'`
7786
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7787
 
   (eval "$lt_compile" 2>conftest.err)
7788
 
   ac_status=$?
7789
 
   cat conftest.err >&5
7790
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7791
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
7792
 
     # The compiler can only warn and ignore the option if not recognized
7793
 
     # So say no if there are warnings
7794
 
     if test ! -s conftest.err; then
7795
 
       lt_prog_compiler_pic_works=yes
7796
 
     fi
7797
 
   fi
7798
 
   $rm conftest*
7799
 
 
7800
 
fi
7801
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7802
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7803
 
 
7804
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
7805
 
    case $lt_prog_compiler_pic in
7806
 
     "" | " "*) ;;
7807
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7808
 
     esac
7809
 
else
7810
 
    lt_prog_compiler_pic=
7811
 
     lt_prog_compiler_can_build_shared=no
7812
 
fi
7813
 
 
7814
 
fi
7815
 
case "$host_os" in
7816
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7817
 
  *djgpp*)
7818
 
    lt_prog_compiler_pic=
7819
 
    ;;
7820
 
  *)
7821
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7822
 
    ;;
7823
 
esac
7824
 
 
7825
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7826
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7827
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7828
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7829
 
else
7830
 
  lt_cv_prog_compiler_c_o=no
7831
 
   $rm -r conftest 2>/dev/null
7832
 
   mkdir conftest
7833
 
   cd conftest
7834
 
   mkdir out
7835
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7836
 
 
7837
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7838
 
   # Insert the option either (1) after the last *FLAGS variable, or
7839
 
   # (2) before a word containing "conftest.", or (3) at the end.
7840
 
   # Note that $ac_compile itself does not contain backslashes and begins
7841
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7842
 
   lt_compile=`echo "$ac_compile" | $SED \
7843
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7844
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7845
 
   -e 's:$: $lt_compiler_flag:'`
7846
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7847
 
   (eval "$lt_compile" 2>out/conftest.err)
7848
 
   ac_status=$?
7849
 
   cat out/conftest.err >&5
7850
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7851
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7852
 
   then
7853
 
     # The compiler can only warn and ignore the option if not recognized
7854
 
     # So say no if there are warnings
7855
 
     if test ! -s out/conftest.err; then
7856
 
       lt_cv_prog_compiler_c_o=yes
7857
 
     fi
7858
 
   fi
7859
 
   chmod u+w .
7860
 
   $rm conftest*
7861
 
   # SGI C++ compiler will create directory out/ii_files/ for
7862
 
   # template instantiation
7863
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7864
 
   $rm out/* && rmdir out
7865
 
   cd ..
7866
 
   rmdir conftest
7867
 
   $rm conftest*
7868
 
 
7869
 
fi
7870
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7871
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7872
 
 
7873
 
 
7874
 
hard_links="nottested"
7875
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7876
 
  # do not overwrite the value of need_locks provided by the user
7877
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7878
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7879
 
  hard_links=yes
7880
 
  $rm conftest*
7881
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7882
 
  touch conftest.a
7883
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
7884
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7885
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
7886
 
echo "${ECHO_T}$hard_links" >&6
7887
 
  if test "$hard_links" = no; then
7888
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7889
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7890
 
    need_locks=warn
7891
 
  fi
7892
 
else
7893
 
  need_locks=no
7894
 
fi
7895
 
 
7896
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7897
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7898
 
 
7899
 
  runpath_var=
7900
 
  allow_undefined_flag=
7901
 
  enable_shared_with_static_runtimes=no
7902
 
  archive_cmds=
7903
 
  archive_expsym_cmds=
7904
 
  old_archive_From_new_cmds=
7905
 
  old_archive_from_expsyms_cmds=
7906
 
  export_dynamic_flag_spec=
7907
 
  whole_archive_flag_spec=
7908
 
  thread_safe_flag_spec=
7909
 
  hardcode_libdir_flag_spec=
7910
 
  hardcode_libdir_flag_spec_ld=
7911
 
  hardcode_libdir_separator=
7912
 
  hardcode_direct=no
7913
 
  hardcode_minus_L=no
7914
 
  hardcode_shlibpath_var=unsupported
7915
 
  link_all_deplibs=unknown
7916
 
  hardcode_automatic=no
7917
 
  module_cmds=
7918
 
  module_expsym_cmds=
7919
 
  always_export_symbols=no
7920
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7921
 
  # include_expsyms should be a list of space-separated symbols to be *always*
7922
 
  # included in the symbol list
7923
 
  include_expsyms=
7924
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
7925
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7926
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7927
 
  # as well as any symbol that contains `d'.
7928
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7929
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7930
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
7931
 
  # the symbol is explicitly referenced.  Since portable code cannot
7932
 
  # rely on this symbol name, it's probably fine to never include it in
7933
 
  # preloaded symbol tables.
7934
 
  extract_expsyms_cmds=
7935
 
 
7936
 
  case $host_os in
7937
 
  cygwin* | mingw* | pw32*)
7938
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7939
 
    # When not using gcc, we currently assume that we are using
7940
 
    # Microsoft Visual C++.
7941
 
    if test "$GCC" != yes; then
7942
 
      with_gnu_ld=no
7943
 
    fi
7944
 
    ;;
7945
 
  openbsd*)
7946
 
    with_gnu_ld=no
7947
 
    ;;
7948
 
  esac
7949
 
 
7950
 
  ld_shlibs=yes
7951
 
  if test "$with_gnu_ld" = yes; then
7952
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
7953
 
    wlarc='${wl}'
7954
 
 
7955
 
    # See if GNU ld supports shared libraries.
7956
 
    case $host_os in
7957
 
    aix3* | aix4* | aix5*)
7958
 
      # On AIX/PPC, the GNU linker is very broken
7959
 
      if test "$host_cpu" != ia64; then
7960
 
        ld_shlibs=no
7961
 
        cat <<EOF 1>&2
7962
 
 
7963
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7964
 
*** to be unable to reliably create shared libraries on AIX.
7965
 
*** Therefore, libtool is disabling shared libraries support.  If you
7966
 
*** really care for shared libraries, you may want to modify your PATH
7967
 
*** so that a non-GNU linker is found, and then restart.
7968
 
 
7969
 
EOF
7970
 
      fi
7971
 
      ;;
7972
 
 
7973
 
    amigaos*)
7974
 
      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)'
7975
 
      hardcode_libdir_flag_spec='-L$libdir'
7976
 
      hardcode_minus_L=yes
7977
 
 
7978
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7979
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
7980
 
      # to version 4, is to share data among multiple programs linked
7981
 
      # with the same dynamic library.  Since this doesn't match the
7982
 
      # behavior of shared libraries on other platforms, we can't use
7983
 
      # them.
7984
 
      ld_shlibs=no
7985
 
      ;;
7986
 
 
7987
 
    beos*)
7988
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7989
 
        allow_undefined_flag=unsupported
7990
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7991
 
        # support --undefined.  This deserves some investigation.  FIXME
7992
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7993
 
      else
7994
 
        ld_shlibs=no
7995
 
      fi
7996
 
      ;;
7997
 
 
7998
 
    cygwin* | mingw* | pw32*)
7999
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8000
 
      # as there is no search path for DLLs.
8001
 
      hardcode_libdir_flag_spec='-L$libdir'
8002
 
      allow_undefined_flag=unsupported
8003
 
      always_export_symbols=no
8004
 
      enable_shared_with_static_runtimes=yes
8005
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8006
 
 
8007
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8008
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8009
 
        # If the export-symbols file already is a .def file (1st line
8010
 
        # is EXPORTS), use it as is; otherwise, prepend...
8011
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8012
 
          cp $export_symbols $output_objdir/$soname.def;
8013
 
        else
8014
 
          echo EXPORTS > $output_objdir/$soname.def;
8015
 
          cat $export_symbols >> $output_objdir/$soname.def;
8016
 
        fi~
8017
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8018
 
      else
8019
 
        ld_shlibs=no
8020
 
      fi
8021
 
      ;;
8022
 
 
8023
 
    netbsd*)
8024
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8025
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8026
 
        wlarc=
8027
 
      else
8028
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8029
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8030
 
      fi
8031
 
      ;;
8032
 
 
8033
 
    solaris* | sysv5*)
8034
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8035
 
        ld_shlibs=no
8036
 
        cat <<EOF 1>&2
8037
 
 
8038
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8039
 
*** create shared libraries on Solaris systems.  Therefore, libtool
8040
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8041
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
8042
 
*** your PATH or compiler configuration so that the native linker is
8043
 
*** used, and then restart.
8044
 
 
8045
 
EOF
8046
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8047
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8048
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8049
 
      else
8050
 
        ld_shlibs=no
8051
 
      fi
8052
 
      ;;
8053
 
 
8054
 
    sunos4*)
8055
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8056
 
      wlarc=
8057
 
      hardcode_direct=yes
8058
 
      hardcode_shlibpath_var=no
8059
 
      ;;
8060
 
 
8061
 
  linux*)
8062
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8063
 
      tmp_addflag=
8064
 
      case $CC,$host_cpu in
8065
 
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
8066
 
        tmp_addflag=' -fpic' ;;
8067
 
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
8068
 
        tmp_addflag=' -i_dynamic' ;;
8069
 
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
8070
 
        tmp_addflag=' -i_dynamic -nofor_main' ;;
8071
 
      ifc* | ifort*)                    # Intel Fortran compiler
8072
 
        tmp_addflag=' -nofor_main' ;;
8073
 
      esac
8074
 
      archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8075
 
      supports_anon_versioning=no
8076
 
      case `$LD -v 2>/dev/null` in
8077
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8078
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8079
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8080
 
        *\ 2.11.*) ;; # other 2.11 versions
8081
 
        *) supports_anon_versioning=yes ;;
8082
 
      esac
8083
 
      if test $supports_anon_versioning = yes; then
8084
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8085
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8086
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
8087
 
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8088
 
      else
8089
 
        archive_expsym_cmds=$archive_cmds
8090
 
      fi
8091
 
    else
8092
 
      ld_shlibs=no
8093
 
    fi
8094
 
    ;;
8095
 
 
8096
 
    *)
8097
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8098
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8099
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8100
 
      else
8101
 
        ld_shlibs=no
8102
 
      fi
8103
 
      ;;
8104
 
    esac
8105
 
 
8106
 
    if test "$ld_shlibs" = yes; then
8107
 
      runpath_var=LD_RUN_PATH
8108
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8109
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
8110
 
      # ancient GNU ld didn't support --whole-archive et. al.
8111
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8112
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8113
 
      else
8114
 
        whole_archive_flag_spec=
8115
 
      fi
8116
 
    fi
8117
 
  else
8118
 
    # PORTME fill in a description of your system's linker (not GNU ld)
8119
 
    case $host_os in
8120
 
    aix3*)
8121
 
      allow_undefined_flag=unsupported
8122
 
      always_export_symbols=yes
8123
 
      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'
8124
 
      # Note: this linker hardcodes the directories in LIBPATH if there
8125
 
      # are no directories specified by -L.
8126
 
      hardcode_minus_L=yes
8127
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
8128
 
        # Neither direct hardcoding nor static linking is supported with a
8129
 
        # broken collect2.
8130
 
        hardcode_direct=unsupported
8131
 
      fi
8132
 
      ;;
8133
 
 
8134
 
    aix4* | aix5*)
8135
 
      if test "$host_cpu" = ia64; then
8136
 
        # On IA64, the linker does run time linking by default, so we don't
8137
 
        # have to do anything special.
8138
 
        aix_use_runtimelinking=no
8139
 
        exp_sym_flag='-Bexport'
8140
 
        no_entry_flag=""
8141
 
      else
8142
 
        # If we're using GNU nm, then we don't want the "-C" option.
8143
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8144
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8145
 
          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'
8146
 
        else
8147
 
          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'
8148
 
        fi
8149
 
        aix_use_runtimelinking=no
8150
 
 
8151
 
        # Test if we are trying to use run time linking or normal
8152
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8153
 
        # need to do runtime linking.
8154
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8155
 
          for ld_flag in $LDFLAGS; do
8156
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8157
 
            aix_use_runtimelinking=yes
8158
 
            break
8159
 
          fi
8160
 
          done
8161
 
        esac
8162
 
 
8163
 
        exp_sym_flag='-bexport'
8164
 
        no_entry_flag='-bnoentry'
8165
 
      fi
8166
 
 
8167
 
      # When large executables or shared objects are built, AIX ld can
8168
 
      # have problems creating the table of contents.  If linking a library
8169
 
      # or program results in "error TOC overflow" add -mminimal-toc to
8170
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8171
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8172
 
 
8173
 
      archive_cmds=''
8174
 
      hardcode_direct=yes
8175
 
      hardcode_libdir_separator=':'
8176
 
      link_all_deplibs=yes
8177
 
 
8178
 
      if test "$GCC" = yes; then
8179
 
        case $host_os in aix4.[012]|aix4.[012].*)
8180
 
        # We only want to do this on AIX 4.2 and lower, the check
8181
 
        # below for broken collect2 doesn't work under 4.3+
8182
 
          collect2name=`${CC} -print-prog-name=collect2`
8183
 
          if test -f "$collect2name" && \
8184
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8185
 
          then
8186
 
          # We have reworked collect2
8187
 
          hardcode_direct=yes
8188
 
          else
8189
 
          # We have old collect2
8190
 
          hardcode_direct=unsupported
8191
 
          # It fails to find uninstalled libraries when the uninstalled
8192
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8193
 
          # to unsupported forces relinking
8194
 
          hardcode_minus_L=yes
8195
 
          hardcode_libdir_flag_spec='-L$libdir'
8196
 
          hardcode_libdir_separator=
8197
 
          fi
8198
 
        esac
8199
 
        shared_flag='-shared'
8200
 
        if test "$aix_use_runtimelinking" = yes; then
8201
 
          shared_flag="$shared_flag "'${wl}-G'
8202
 
        fi
8203
 
      else
8204
 
        # not using gcc
8205
 
        if test "$host_cpu" = ia64; then
8206
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8207
 
        # chokes on -Wl,-G. The following line is correct:
8208
 
          shared_flag='-G'
8209
 
        else
8210
 
        if test "$aix_use_runtimelinking" = yes; then
8211
 
            shared_flag='${wl}-G'
8212
 
          else
8213
 
            shared_flag='${wl}-bM:SRE'
8214
 
        fi
8215
 
        fi
8216
 
      fi
8217
 
 
8218
 
      # It seems that -bexpall does not export symbols beginning with
8219
 
      # underscore (_), so it is better to generate a list of symbols to export.
8220
 
      always_export_symbols=yes
8221
 
      if test "$aix_use_runtimelinking" = yes; then
8222
 
        # Warning - without using the other runtime loading flags (-brtl),
8223
 
        # -berok will link without error, but may produce a broken library.
8224
 
        allow_undefined_flag='-berok'
8225
 
       # Determine the default libpath from the value encoded in an empty executable.
8226
 
       cat >conftest.$ac_ext <<_ACEOF
8227
 
/* confdefs.h.  */
8228
 
_ACEOF
8229
 
cat confdefs.h >>conftest.$ac_ext
8230
 
cat >>conftest.$ac_ext <<_ACEOF
8231
 
/* end confdefs.h.  */
8232
 
 
8233
 
int
8234
 
main ()
8235
 
{
8236
 
 
8237
 
  ;
8238
 
  return 0;
8239
 
}
8240
 
_ACEOF
8241
 
rm -f conftest.$ac_objext conftest$ac_exeext
8242
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8243
 
  (eval $ac_link) 2>conftest.er1
8244
 
  ac_status=$?
8245
 
  grep -v '^ *+' conftest.er1 >conftest.err
8246
 
  rm -f conftest.er1
8247
 
  cat conftest.err >&5
8248
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249
 
  (exit $ac_status); } &&
8250
 
         { ac_try='test -z "$ac_c_werror_flag"
8251
 
                         || test ! -s conftest.err'
8252
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253
 
  (eval $ac_try) 2>&5
8254
 
  ac_status=$?
8255
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256
 
  (exit $ac_status); }; } &&
8257
 
         { ac_try='test -s conftest$ac_exeext'
8258
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259
 
  (eval $ac_try) 2>&5
8260
 
  ac_status=$?
8261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262
 
  (exit $ac_status); }; }; then
8263
 
  
8264
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8265
 
}'`
8266
 
# Check for a 64-bit object if we didn't find anything.
8267
 
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; }
8268
 
}'`; fi
8269
 
else
8270
 
  echo "$as_me: failed program was:" >&5
8271
 
sed 's/^/| /' conftest.$ac_ext >&5
8272
 
 
8273
 
fi
8274
 
rm -f conftest.err conftest.$ac_objext \
8275
 
      conftest$ac_exeext conftest.$ac_ext
8276
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8277
 
 
8278
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8279
 
        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"
8280
 
       else
8281
 
        if test "$host_cpu" = ia64; then
8282
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8283
 
          allow_undefined_flag="-z nodefs"
8284
 
          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"
8285
 
        else
8286
 
         # Determine the default libpath from the value encoded in an empty executable.
8287
 
         cat >conftest.$ac_ext <<_ACEOF
8288
 
/* confdefs.h.  */
8289
 
_ACEOF
8290
 
cat confdefs.h >>conftest.$ac_ext
8291
 
cat >>conftest.$ac_ext <<_ACEOF
8292
 
/* end confdefs.h.  */
8293
 
 
8294
 
int
8295
 
main ()
8296
 
{
8297
 
 
8298
 
  ;
8299
 
  return 0;
8300
 
}
8301
 
_ACEOF
8302
 
rm -f conftest.$ac_objext conftest$ac_exeext
8303
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304
 
  (eval $ac_link) 2>conftest.er1
8305
 
  ac_status=$?
8306
 
  grep -v '^ *+' conftest.er1 >conftest.err
8307
 
  rm -f conftest.er1
8308
 
  cat conftest.err >&5
8309
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310
 
  (exit $ac_status); } &&
8311
 
         { ac_try='test -z "$ac_c_werror_flag"
8312
 
                         || test ! -s conftest.err'
8313
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314
 
  (eval $ac_try) 2>&5
8315
 
  ac_status=$?
8316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317
 
  (exit $ac_status); }; } &&
8318
 
         { ac_try='test -s conftest$ac_exeext'
8319
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320
 
  (eval $ac_try) 2>&5
8321
 
  ac_status=$?
8322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323
 
  (exit $ac_status); }; }; then
8324
 
  
8325
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8326
 
}'`
8327
 
# Check for a 64-bit object if we didn't find anything.
8328
 
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; }
8329
 
}'`; fi
8330
 
else
8331
 
  echo "$as_me: failed program was:" >&5
8332
 
sed 's/^/| /' conftest.$ac_ext >&5
8333
 
 
8334
 
fi
8335
 
rm -f conftest.err conftest.$ac_objext \
8336
 
      conftest$ac_exeext conftest.$ac_ext
8337
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8338
 
 
8339
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8340
 
          # Warning - without using the other run time loading flags,
8341
 
          # -berok will link without error, but may produce a broken library.
8342
 
          no_undefined_flag=' ${wl}-bernotok'
8343
 
          allow_undefined_flag=' ${wl}-berok'
8344
 
          # -bexpall does not export symbols beginning with underscore (_)
8345
 
          always_export_symbols=yes
8346
 
          # Exported symbols can be pulled into shared objects from archives
8347
 
          whole_archive_flag_spec=' '
8348
 
          archive_cmds_need_lc=yes
8349
 
          # This is similar to how AIX traditionally builds it's shared libraries.
8350
 
          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'
8351
 
        fi
8352
 
      fi
8353
 
      ;;
8354
 
 
8355
 
    amigaos*)
8356
 
      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)'
8357
 
      hardcode_libdir_flag_spec='-L$libdir'
8358
 
      hardcode_minus_L=yes
8359
 
      # see comment about different semantics on the GNU ld section
8360
 
      ld_shlibs=no
8361
 
      ;;
8362
 
 
8363
 
    bsdi[45]*)
8364
 
      export_dynamic_flag_spec=-rdynamic
8365
 
      ;;
8366
 
 
8367
 
    cygwin* | mingw* | pw32*)
8368
 
      # When not using gcc, we currently assume that we are using
8369
 
      # Microsoft Visual C++.
8370
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8371
 
      # no search path for DLLs.
8372
 
      hardcode_libdir_flag_spec=' '
8373
 
      allow_undefined_flag=unsupported
8374
 
      # Tell ltmain to make .lib files, not .a files.
8375
 
      libext=lib
8376
 
      # Tell ltmain to make .dll files, not .so files.
8377
 
      shrext_cmds=".dll"
8378
 
      # FIXME: Setting linknames here is a bad hack.
8379
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8380
 
      # The linker will automatically build a .lib file if we build a DLL.
8381
 
      old_archive_From_new_cmds='true'
8382
 
      # FIXME: Should let the user specify the lib program.
8383
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8384
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8385
 
      enable_shared_with_static_runtimes=yes
8386
 
      ;;
8387
 
 
8388
 
    darwin* | rhapsody*)
8389
 
      case "$host_os" in
8390
 
        rhapsody* | darwin1.[012])
8391
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8392
 
         ;;
8393
 
       *) # Darwin 1.3 on
8394
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8395
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8396
 
         else
8397
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8398
 
             10.[012])
8399
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8400
 
               ;;
8401
 
             10.*)
8402
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8403
 
               ;;
8404
 
           esac
8405
 
         fi
8406
 
         ;;
8407
 
      esac
8408
 
      archive_cmds_need_lc=no
8409
 
      hardcode_direct=no
8410
 
      hardcode_automatic=yes
8411
 
      hardcode_shlibpath_var=unsupported
8412
 
      whole_archive_flag_spec=''
8413
 
      link_all_deplibs=yes
8414
 
    if test "$GCC" = yes ; then
8415
 
        output_verbose_link_cmd='echo'
8416
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8417
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8418
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8419
 
      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}'
8420
 
      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}'
8421
 
    else
8422
 
      case "$cc_basename" in
8423
 
        xlc*)
8424
 
         output_verbose_link_cmd='echo'
8425
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8426
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8427
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8428
 
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8429
 
          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}'
8430
 
          ;;
8431
 
       *)
8432
 
         ld_shlibs=no
8433
 
          ;;
8434
 
      esac
8435
 
    fi
8436
 
      ;;
8437
 
 
8438
 
    dgux*)
8439
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8440
 
      hardcode_libdir_flag_spec='-L$libdir'
8441
 
      hardcode_shlibpath_var=no
8442
 
      ;;
8443
 
 
8444
 
    freebsd1*)
8445
 
      ld_shlibs=no
8446
 
      ;;
8447
 
 
8448
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8449
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8450
 
    # does not break anything, and helps significantly (at the cost of a little
8451
 
    # extra space).
8452
 
    freebsd2.2*)
8453
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8454
 
      hardcode_libdir_flag_spec='-R$libdir'
8455
 
      hardcode_direct=yes
8456
 
      hardcode_shlibpath_var=no
8457
 
      ;;
8458
 
 
8459
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8460
 
    freebsd2*)
8461
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8462
 
      hardcode_direct=yes
8463
 
      hardcode_minus_L=yes
8464
 
      hardcode_shlibpath_var=no
8465
 
      ;;
8466
 
 
8467
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8468
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
8469
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8470
 
      hardcode_libdir_flag_spec='-R$libdir'
8471
 
      hardcode_direct=yes
8472
 
      hardcode_shlibpath_var=no
8473
 
      ;;
8474
 
 
8475
 
    hpux9*)
8476
 
      if test "$GCC" = yes; then
8477
 
        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'
8478
 
      else
8479
 
        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'
8480
 
      fi
8481
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8482
 
      hardcode_libdir_separator=:
8483
 
      hardcode_direct=yes
8484
 
 
8485
 
      # hardcode_minus_L: Not really in the search PATH,
8486
 
      # but as the default location of the library.
8487
 
      hardcode_minus_L=yes
8488
 
      export_dynamic_flag_spec='${wl}-E'
8489
 
      ;;
8490
 
 
8491
 
    hpux10* | hpux11*)
8492
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8493
 
        case "$host_cpu" in
8494
 
        hppa*64*|ia64*)
8495
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8496
 
          ;;
8497
 
        *)
8498
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8499
 
          ;;
8500
 
        esac
8501
 
      else
8502
 
        case "$host_cpu" in
8503
 
        hppa*64*|ia64*)
8504
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8505
 
          ;;
8506
 
        *)
8507
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8508
 
          ;;
8509
 
        esac
8510
 
      fi
8511
 
      if test "$with_gnu_ld" = no; then
8512
 
        case "$host_cpu" in
8513
 
        hppa*64*)
8514
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8515
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8516
 
          hardcode_libdir_separator=:
8517
 
          hardcode_direct=no
8518
 
          hardcode_shlibpath_var=no
8519
 
          ;;
8520
 
        ia64*)
8521
 
          hardcode_libdir_flag_spec='-L$libdir'
8522
 
          hardcode_direct=no
8523
 
          hardcode_shlibpath_var=no
8524
 
 
8525
 
          # hardcode_minus_L: Not really in the search PATH,
8526
 
          # but as the default location of the library.
8527
 
          hardcode_minus_L=yes
8528
 
          ;;
8529
 
        *)
8530
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8531
 
          hardcode_libdir_separator=:
8532
 
          hardcode_direct=yes
8533
 
          export_dynamic_flag_spec='${wl}-E'
8534
 
 
8535
 
          # hardcode_minus_L: Not really in the search PATH,
8536
 
          # but as the default location of the library.
8537
 
          hardcode_minus_L=yes
8538
 
          ;;
8539
 
        esac
8540
 
      fi
8541
 
      ;;
8542
 
 
8543
 
    irix5* | irix6* | nonstopux*)
8544
 
      if test "$GCC" = yes; then
8545
 
        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'
8546
 
      else
8547
 
        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'
8548
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8549
 
      fi
8550
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8551
 
      hardcode_libdir_separator=:
8552
 
      link_all_deplibs=yes
8553
 
      ;;
8554
 
 
8555
 
    netbsd*)
8556
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8557
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8558
 
      else
8559
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8560
 
      fi
8561
 
      hardcode_libdir_flag_spec='-R$libdir'
8562
 
      hardcode_direct=yes
8563
 
      hardcode_shlibpath_var=no
8564
 
      ;;
8565
 
 
8566
 
    newsos6)
8567
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8568
 
      hardcode_direct=yes
8569
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8570
 
      hardcode_libdir_separator=:
8571
 
      hardcode_shlibpath_var=no
8572
 
      ;;
8573
 
 
8574
 
    openbsd*)
8575
 
      hardcode_direct=yes
8576
 
      hardcode_shlibpath_var=no
8577
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8578
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8579
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8580
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8581
 
        export_dynamic_flag_spec='${wl}-E'
8582
 
      else
8583
 
       case $host_os in
8584
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8585
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8586
 
           hardcode_libdir_flag_spec='-R$libdir'
8587
 
           ;;
8588
 
         *)
8589
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8590
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8591
 
           ;;
8592
 
       esac
8593
 
      fi
8594
 
      ;;
8595
 
 
8596
 
    os2*)
8597
 
      hardcode_libdir_flag_spec='-L$libdir'
8598
 
      hardcode_minus_L=yes
8599
 
      allow_undefined_flag=unsupported
8600
 
      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'
8601
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8602
 
      ;;
8603
 
 
8604
 
    osf3*)
8605
 
      if test "$GCC" = yes; then
8606
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8607
 
        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'
8608
 
      else
8609
 
        allow_undefined_flag=' -expect_unresolved \*'
8610
 
        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'
8611
 
      fi
8612
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8613
 
      hardcode_libdir_separator=:
8614
 
      ;;
8615
 
 
8616
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8617
 
      if test "$GCC" = yes; then
8618
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8619
 
        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'
8620
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8621
 
      else
8622
 
        allow_undefined_flag=' -expect_unresolved \*'
8623
 
        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'
8624
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8625
 
        $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'
8626
 
 
8627
 
        # Both c and cxx compiler support -rpath directly
8628
 
        hardcode_libdir_flag_spec='-rpath $libdir'
8629
 
      fi
8630
 
      hardcode_libdir_separator=:
8631
 
      ;;
8632
 
 
8633
 
    sco3.2v5*)
8634
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635
 
      hardcode_shlibpath_var=no
8636
 
      export_dynamic_flag_spec='${wl}-Bexport'
8637
 
      runpath_var=LD_RUN_PATH
8638
 
      hardcode_runpath_var=yes
8639
 
      ;;
8640
 
 
8641
 
    solaris*)
8642
 
      no_undefined_flag=' -z text'
8643
 
      if test "$GCC" = yes; then
8644
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8645
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8646
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8647
 
      else
8648
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8649
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8650
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8651
 
      fi
8652
 
      hardcode_libdir_flag_spec='-R$libdir'
8653
 
      hardcode_shlibpath_var=no
8654
 
      case $host_os in
8655
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8656
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8657
 
        whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
8658
 
      esac
8659
 
      link_all_deplibs=yes
8660
 
      ;;
8661
 
 
8662
 
    sunos4*)
8663
 
      if test "x$host_vendor" = xsequent; then
8664
 
        # Use $CC to link under sequent, because it throws in some extra .o
8665
 
        # files that make .init and .fini sections work.
8666
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8667
 
      else
8668
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8669
 
      fi
8670
 
      hardcode_libdir_flag_spec='-L$libdir'
8671
 
      hardcode_direct=yes
8672
 
      hardcode_minus_L=yes
8673
 
      hardcode_shlibpath_var=no
8674
 
      ;;
8675
 
 
8676
 
    sysv4)
8677
 
      case $host_vendor in
8678
 
        sni)
8679
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8680
 
          hardcode_direct=yes # is this really true???
8681
 
        ;;
8682
 
        siemens)
8683
 
          ## LD is ld it makes a PLAMLIB
8684
 
          ## CC just makes a GrossModule.
8685
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8686
 
          reload_cmds='$CC -r -o $output$reload_objs'
8687
 
          hardcode_direct=no
8688
 
        ;;
8689
 
        motorola)
8690
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8691
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8692
 
        ;;
8693
 
      esac
8694
 
      runpath_var='LD_RUN_PATH'
8695
 
      hardcode_shlibpath_var=no
8696
 
      ;;
8697
 
 
8698
 
    sysv4.3*)
8699
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8700
 
      hardcode_shlibpath_var=no
8701
 
      export_dynamic_flag_spec='-Bexport'
8702
 
      ;;
8703
 
 
8704
 
    sysv4*MP*)
8705
 
      if test -d /usr/nec; then
8706
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8707
 
        hardcode_shlibpath_var=no
8708
 
        runpath_var=LD_RUN_PATH
8709
 
        hardcode_runpath_var=yes
8710
 
        ld_shlibs=yes
8711
 
      fi
8712
 
      ;;
8713
 
 
8714
 
    sysv4.2uw2*)
8715
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8716
 
      hardcode_direct=yes
8717
 
      hardcode_minus_L=no
8718
 
      hardcode_shlibpath_var=no
8719
 
      hardcode_runpath_var=yes
8720
 
      runpath_var=LD_RUN_PATH
8721
 
      ;;
8722
 
 
8723
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8724
 
      no_undefined_flag='${wl}-z ${wl}text'
8725
 
      if test "$GCC" = yes; then
8726
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727
 
      else
8728
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8729
 
      fi
8730
 
      runpath_var='LD_RUN_PATH'
8731
 
      hardcode_shlibpath_var=no
8732
 
      ;;
8733
 
 
8734
 
    sysv5*)
8735
 
      no_undefined_flag=' -z text'
8736
 
      # $CC -shared without GNU ld will not create a library from C++
8737
 
      # object files and a static libstdc++, better avoid it by now
8738
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8740
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8741
 
      hardcode_libdir_flag_spec=
8742
 
      hardcode_shlibpath_var=no
8743
 
      runpath_var='LD_RUN_PATH'
8744
 
      ;;
8745
 
 
8746
 
    uts4*)
8747
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8748
 
      hardcode_libdir_flag_spec='-L$libdir'
8749
 
      hardcode_shlibpath_var=no
8750
 
      ;;
8751
 
 
8752
 
    *)
8753
 
      ld_shlibs=no
8754
 
      ;;
8755
 
    esac
8756
 
  fi
8757
 
 
8758
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8759
 
echo "${ECHO_T}$ld_shlibs" >&6
8760
 
test "$ld_shlibs" = no && can_build_shared=no
8761
 
 
8762
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8763
 
if test "$GCC" = yes; then
8764
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8765
 
fi
8766
 
 
8767
 
#
8768
 
# Do we need to explicitly link libc?
8769
 
#
8770
 
case "x$archive_cmds_need_lc" in
8771
 
x|xyes)
8772
 
  # Assume -lc should be added
8773
 
  archive_cmds_need_lc=yes
8774
 
 
8775
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8776
 
    case $archive_cmds in
8777
 
    *'~'*)
8778
 
      # FIXME: we may have to deal with multi-command sequences.
8779
 
      ;;
8780
 
    '$CC '*)
8781
 
      # Test whether the compiler implicitly links with -lc since on some
8782
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8783
 
      # to ld, don't add -lc before -lgcc.
8784
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8785
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8786
 
      $rm conftest*
8787
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8788
 
 
8789
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790
 
  (eval $ac_compile) 2>&5
8791
 
  ac_status=$?
8792
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793
 
  (exit $ac_status); } 2>conftest.err; then
8794
 
        soname=conftest
8795
 
        lib=conftest
8796
 
        libobjs=conftest.$ac_objext
8797
 
        deplibs=
8798
 
        wl=$lt_prog_compiler_wl
8799
 
        compiler_flags=-v
8800
 
        linker_flags=-v
8801
 
        verstring=
8802
 
        output_objdir=.
8803
 
        libname=conftest
8804
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
8805
 
        allow_undefined_flag=
8806
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8807
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8808
 
  ac_status=$?
8809
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810
 
  (exit $ac_status); }
8811
 
        then
8812
 
          archive_cmds_need_lc=no
8813
 
        else
8814
 
          archive_cmds_need_lc=yes
8815
 
        fi
8816
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
8817
 
      else
8818
 
        cat conftest.err 1>&5
8819
 
      fi
8820
 
      $rm conftest*
8821
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8822
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8823
 
      ;;
8824
 
    esac
8825
 
  fi
8826
 
  ;;
8827
 
esac
8828
 
 
8829
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8830
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8831
 
library_names_spec=
8832
 
libname_spec='lib$name'
8833
 
soname_spec=
8834
 
shrext_cmds=".so"
8835
 
postinstall_cmds=
8836
 
postuninstall_cmds=
8837
 
finish_cmds=
8838
 
finish_eval=
8839
 
shlibpath_var=
8840
 
shlibpath_overrides_runpath=unknown
8841
 
version_type=none
8842
 
dynamic_linker="$host_os ld.so"
8843
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8844
 
if test "$GCC" = yes; then
8845
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8846
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8847
 
    # if the path contains ";" then we assume it to be the separator
8848
 
    # otherwise default to the standard path separator (i.e. ":") - it is
8849
 
    # assumed that no part of a normal pathname contains ";" but that should
8850
 
    # okay in the real world where ";" in dirpaths is itself problematic.
8851
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8852
 
  else
8853
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8854
 
  fi
8855
 
else
8856
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8857
 
fi
8858
 
need_lib_prefix=unknown
8859
 
hardcode_into_libs=no
8860
 
 
8861
 
# when you set need_version to no, make sure it does not cause -set_version
8862
 
# flags to be left without arguments
8863
 
need_version=unknown
8864
 
 
8865
 
case $host_os in
8866
 
aix3*)
8867
 
  version_type=linux
8868
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8869
 
  shlibpath_var=LIBPATH
8870
 
 
8871
 
  # AIX 3 has no versioning support, so we append a major version to the name.
8872
 
  soname_spec='${libname}${release}${shared_ext}$major'
8873
 
  ;;
8874
 
 
8875
 
aix4* | aix5*)
8876
 
  version_type=linux
8877
 
  need_lib_prefix=no
8878
 
  need_version=no
8879
 
  hardcode_into_libs=yes
8880
 
  if test "$host_cpu" = ia64; then
8881
 
    # AIX 5 supports IA64
8882
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8883
 
    shlibpath_var=LD_LIBRARY_PATH
8884
 
  else
8885
 
    # With GCC up to 2.95.x, collect2 would create an import file
8886
 
    # for dependence libraries.  The import file would start with
8887
 
    # the line `#! .'.  This would cause the generated library to
8888
 
    # depend on `.', always an invalid library.  This was fixed in
8889
 
    # development snapshots of GCC prior to 3.0.
8890
 
    case $host_os in
8891
 
      aix4 | aix4.[01] | aix4.[01].*)
8892
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8893
 
           echo ' yes '
8894
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8895
 
        :
8896
 
      else
8897
 
        can_build_shared=no
8898
 
      fi
8899
 
      ;;
8900
 
    esac
8901
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8902
 
    # soname into executable. Probably we can add versioning support to
8903
 
    # collect2, so additional links can be useful in future.
8904
 
    if test "$aix_use_runtimelinking" = yes; then
8905
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8906
 
      # instead of lib<name>.a to let people know that these are not
8907
 
      # typical AIX shared libraries.
8908
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909
 
    else
8910
 
      # We preserve .a as extension for shared libraries through AIX4.2
8911
 
      # and later when we are not doing run time linking.
8912
 
      library_names_spec='${libname}${release}.a $libname.a'
8913
 
      soname_spec='${libname}${release}${shared_ext}$major'
8914
 
    fi
8915
 
    shlibpath_var=LIBPATH
8916
 
  fi
8917
 
  ;;
8918
 
 
8919
 
amigaos*)
8920
 
  library_names_spec='$libname.ixlibrary $libname.a'
8921
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8922
 
  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'
8923
 
  ;;
8924
 
 
8925
 
beos*)
8926
 
  library_names_spec='${libname}${shared_ext}'
8927
 
  dynamic_linker="$host_os ld.so"
8928
 
  shlibpath_var=LIBRARY_PATH
8929
 
  ;;
8930
 
 
8931
 
bsdi[45]*)
8932
 
  version_type=linux
8933
 
  need_version=no
8934
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935
 
  soname_spec='${libname}${release}${shared_ext}$major'
8936
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8937
 
  shlibpath_var=LD_LIBRARY_PATH
8938
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8939
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8940
 
  # the default ld.so.conf also contains /usr/contrib/lib and
8941
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8942
 
  # libtool to hard-code these into programs
8943
 
  ;;
8944
 
 
8945
 
cygwin* | mingw* | pw32*)
8946
 
  version_type=windows
8947
 
  shrext_cmds=".dll"
8948
 
  need_version=no
8949
 
  need_lib_prefix=no
8950
 
 
8951
 
  case $GCC,$host_os in
8952
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
8953
 
    library_names_spec='$libname.dll.a'
8954
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8955
 
    postinstall_cmds='base_file=`basename \${file}`~
8956
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8957
 
      dldir=$destdir/`dirname \$dlpath`~
8958
 
      test -d \$dldir || mkdir -p \$dldir~
8959
 
      $install_prog $dir/$dlname \$dldir/$dlname'
8960
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8961
 
      dlpath=$dir/\$dldll~
8962
 
       $rm \$dlpath'
8963
 
    shlibpath_overrides_runpath=yes
8964
 
 
8965
 
    case $host_os in
8966
 
    cygwin*)
8967
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8968
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8969
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8970
 
      ;;
8971
 
    mingw*)
8972
 
      # MinGW DLLs use traditional 'lib' prefix
8973
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8974
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8975
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8976
 
        # It is most probably a Windows format PATH printed by
8977
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8978
 
        # path with ; separators, and with drive letters. We can handle the
8979
 
        # drive letters (cygwin fileutils understands them), so leave them,
8980
 
        # especially as we might pass files found there to a mingw objdump,
8981
 
        # which wouldn't understand a cygwinified path. Ahh.
8982
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8983
 
      else
8984
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8985
 
      fi
8986
 
      ;;
8987
 
    pw32*)
8988
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8989
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8990
 
      ;;
8991
 
    esac
8992
 
    ;;
8993
 
 
8994
 
  *)
8995
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8996
 
    ;;
8997
 
  esac
8998
 
  dynamic_linker='Win32 ld.exe'
8999
 
  # FIXME: first we should search . and the directory the executable is in
9000
 
  shlibpath_var=PATH
9001
 
  ;;
9002
 
 
9003
 
darwin* | rhapsody*)
9004
 
  dynamic_linker="$host_os dyld"
9005
 
  version_type=darwin
9006
 
  need_lib_prefix=no
9007
 
  need_version=no
9008
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9009
 
  soname_spec='${libname}${release}${major}$shared_ext'
9010
 
  shlibpath_overrides_runpath=yes
9011
 
  shlibpath_var=DYLD_LIBRARY_PATH
9012
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9013
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9014
 
  if test "$GCC" = yes; then
9015
 
    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"`
9016
 
  else
9017
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9018
 
  fi
9019
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9020
 
  ;;
9021
 
 
9022
 
dgux*)
9023
 
  version_type=linux
9024
 
  need_lib_prefix=no
9025
 
  need_version=no
9026
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9027
 
  soname_spec='${libname}${release}${shared_ext}$major'
9028
 
  shlibpath_var=LD_LIBRARY_PATH
9029
 
  ;;
9030
 
 
9031
 
freebsd1*)
9032
 
  dynamic_linker=no
9033
 
  ;;
9034
 
 
9035
 
kfreebsd*-gnu)
9036
 
  version_type=linux
9037
 
  need_lib_prefix=no
9038
 
  need_version=no
9039
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040
 
  soname_spec='${libname}${release}${shared_ext}$major'
9041
 
  shlibpath_var=LD_LIBRARY_PATH
9042
 
  shlibpath_overrides_runpath=no
9043
 
  hardcode_into_libs=yes
9044
 
  dynamic_linker='GNU ld.so'
9045
 
  ;;
9046
 
 
9047
 
freebsd* | dragonfly*)
9048
 
  # DragonFly does not have aout.  When/if they implement a new
9049
 
  # versioning mechanism, adjust this.
9050
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9051
 
  version_type=freebsd-$objformat
9052
 
  case $version_type in
9053
 
    freebsd-elf*)
9054
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9055
 
      need_version=no
9056
 
      need_lib_prefix=no
9057
 
      ;;
9058
 
    freebsd-*)
9059
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9060
 
      need_version=yes
9061
 
      ;;
9062
 
  esac
9063
 
  shlibpath_var=LD_LIBRARY_PATH
9064
 
  case $host_os in
9065
 
  freebsd2*)
9066
 
    shlibpath_overrides_runpath=yes
9067
 
    ;;
9068
 
  freebsd3.[01]* | freebsdelf3.[01]*)
9069
 
    shlibpath_overrides_runpath=yes
9070
 
    hardcode_into_libs=yes
9071
 
    ;;
9072
 
  *) # from 3.2 on
9073
 
    shlibpath_overrides_runpath=no
9074
 
    hardcode_into_libs=yes
9075
 
    ;;
9076
 
  esac
9077
 
  ;;
9078
 
 
9079
 
gnu*)
9080
 
  version_type=linux
9081
 
  need_lib_prefix=no
9082
 
  need_version=no
9083
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9084
 
  soname_spec='${libname}${release}${shared_ext}$major'
9085
 
  shlibpath_var=LD_LIBRARY_PATH
9086
 
  hardcode_into_libs=yes
9087
 
  ;;
9088
 
 
9089
 
hpux9* | hpux10* | hpux11*)
9090
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
9091
 
  # link against other versions.
9092
 
  version_type=sunos
9093
 
  need_lib_prefix=no
9094
 
  need_version=no
9095
 
  case "$host_cpu" in
9096
 
  ia64*)
9097
 
    shrext_cmds='.so'
9098
 
    hardcode_into_libs=yes
9099
 
    dynamic_linker="$host_os dld.so"
9100
 
    shlibpath_var=LD_LIBRARY_PATH
9101
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9102
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103
 
    soname_spec='${libname}${release}${shared_ext}$major'
9104
 
    if test "X$HPUX_IA64_MODE" = X32; then
9105
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9106
 
    else
9107
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9108
 
    fi
9109
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9110
 
    ;;
9111
 
   hppa*64*)
9112
 
     shrext_cmds='.sl'
9113
 
     hardcode_into_libs=yes
9114
 
     dynamic_linker="$host_os dld.sl"
9115
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9116
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9117
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118
 
     soname_spec='${libname}${release}${shared_ext}$major'
9119
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9120
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9121
 
     ;;
9122
 
   *)
9123
 
    shrext_cmds='.sl'
9124
 
    dynamic_linker="$host_os dld.sl"
9125
 
    shlibpath_var=SHLIB_PATH
9126
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9127
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9128
 
    soname_spec='${libname}${release}${shared_ext}$major'
9129
 
    ;;
9130
 
  esac
9131
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9132
 
  postinstall_cmds='chmod 555 $lib'
9133
 
  ;;
9134
 
 
9135
 
irix5* | irix6* | nonstopux*)
9136
 
  case $host_os in
9137
 
    nonstopux*) version_type=nonstopux ;;
9138
 
    *)
9139
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
9140
 
                version_type=linux
9141
 
        else
9142
 
                version_type=irix
9143
 
        fi ;;
9144
 
  esac
9145
 
  need_lib_prefix=no
9146
 
  need_version=no
9147
 
  soname_spec='${libname}${release}${shared_ext}$major'
9148
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9149
 
  case $host_os in
9150
 
  irix5* | nonstopux*)
9151
 
    libsuff= shlibsuff=
9152
 
    ;;
9153
 
  *)
9154
 
    case $LD in # libtool.m4 will add one of these switches to LD
9155
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9156
 
      libsuff= shlibsuff= libmagic=32-bit;;
9157
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9158
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9159
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9160
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9161
 
    *) libsuff= shlibsuff= libmagic=never-match;;
9162
 
    esac
9163
 
    ;;
9164
 
  esac
9165
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9166
 
  shlibpath_overrides_runpath=no
9167
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9168
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9169
 
  hardcode_into_libs=yes
9170
 
  ;;
9171
 
 
9172
 
# No shared lib support for Linux oldld, aout, or coff.
9173
 
linux*oldld* | linux*aout* | linux*coff*)
9174
 
  dynamic_linker=no
9175
 
  ;;
9176
 
 
9177
 
# This must be Linux ELF.
9178
 
linux*)
9179
 
  version_type=linux
9180
 
  need_lib_prefix=no
9181
 
  need_version=no
9182
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183
 
  soname_spec='${libname}${release}${shared_ext}$major'
9184
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9185
 
  shlibpath_var=LD_LIBRARY_PATH
9186
 
  shlibpath_overrides_runpath=no
9187
 
  # This implies no fast_install, which is unacceptable.
9188
 
  # Some rework will be needed to allow for fast_install
9189
 
  # before this can be enabled.
9190
 
  hardcode_into_libs=yes
9191
 
 
9192
 
  # Append ld.so.conf contents to the search path
9193
 
  if test -f /etc/ld.so.conf; then
9194
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9195
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9196
 
  fi
9197
 
 
9198
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9199
 
  # powerpc, because MkLinux only supported shared libraries with the
9200
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
9201
 
  # most powerpc-linux boxes support dynamic linking these days and
9202
 
  # people can always --disable-shared, the test was removed, and we
9203
 
  # assume the GNU/Linux dynamic linker is in use.
9204
 
  dynamic_linker='GNU/Linux ld.so'
9205
 
  ;;
9206
 
 
9207
 
knetbsd*-gnu)
9208
 
  version_type=linux
9209
 
  need_lib_prefix=no
9210
 
  need_version=no
9211
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9212
 
  soname_spec='${libname}${release}${shared_ext}$major'
9213
 
  shlibpath_var=LD_LIBRARY_PATH
9214
 
  shlibpath_overrides_runpath=no
9215
 
  hardcode_into_libs=yes
9216
 
  dynamic_linker='GNU ld.so'
9217
 
  ;;
9218
 
 
9219
 
netbsd*)
9220
 
  version_type=sunos
9221
 
  need_lib_prefix=no
9222
 
  need_version=no
9223
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9224
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9225
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9226
 
    dynamic_linker='NetBSD (a.out) ld.so'
9227
 
  else
9228
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9229
 
    soname_spec='${libname}${release}${shared_ext}$major'
9230
 
    dynamic_linker='NetBSD ld.elf_so'
9231
 
  fi
9232
 
  shlibpath_var=LD_LIBRARY_PATH
9233
 
  shlibpath_overrides_runpath=yes
9234
 
  hardcode_into_libs=yes
9235
 
  ;;
9236
 
 
9237
 
newsos6)
9238
 
  version_type=linux
9239
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9240
 
  shlibpath_var=LD_LIBRARY_PATH
9241
 
  shlibpath_overrides_runpath=yes
9242
 
  ;;
9243
 
 
9244
 
nto-qnx*)
9245
 
  version_type=linux
9246
 
  need_lib_prefix=no
9247
 
  need_version=no
9248
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9249
 
  soname_spec='${libname}${release}${shared_ext}$major'
9250
 
  shlibpath_var=LD_LIBRARY_PATH
9251
 
  shlibpath_overrides_runpath=yes
9252
 
  ;;
9253
 
 
9254
 
openbsd*)
9255
 
  version_type=sunos
9256
 
  need_lib_prefix=no
9257
 
  need_version=no
9258
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9259
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9260
 
  shlibpath_var=LD_LIBRARY_PATH
9261
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9262
 
    case $host_os in
9263
 
      openbsd2.[89] | openbsd2.[89].*)
9264
 
        shlibpath_overrides_runpath=no
9265
 
        ;;
9266
 
      *)
9267
 
        shlibpath_overrides_runpath=yes
9268
 
        ;;
9269
 
      esac
9270
 
  else
9271
 
    shlibpath_overrides_runpath=yes
9272
 
  fi
9273
 
  ;;
9274
 
 
9275
 
os2*)
9276
 
  libname_spec='$name'
9277
 
  shrext_cmds=".dll"
9278
 
  need_lib_prefix=no
9279
 
  library_names_spec='$libname${shared_ext} $libname.a'
9280
 
  dynamic_linker='OS/2 ld.exe'
9281
 
  shlibpath_var=LIBPATH
9282
 
  ;;
9283
 
 
9284
 
osf3* | osf4* | osf5*)
9285
 
  version_type=osf
9286
 
  need_lib_prefix=no
9287
 
  need_version=no
9288
 
  soname_spec='${libname}${release}${shared_ext}$major'
9289
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290
 
  shlibpath_var=LD_LIBRARY_PATH
9291
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9292
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9293
 
  ;;
9294
 
 
9295
 
sco3.2v5*)
9296
 
  version_type=osf
9297
 
  soname_spec='${libname}${release}${shared_ext}$major'
9298
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299
 
  shlibpath_var=LD_LIBRARY_PATH
9300
 
  ;;
9301
 
 
9302
 
solaris*)
9303
 
  version_type=linux
9304
 
  need_lib_prefix=no
9305
 
  need_version=no
9306
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307
 
  soname_spec='${libname}${release}${shared_ext}$major'
9308
 
  shlibpath_var=LD_LIBRARY_PATH
9309
 
  shlibpath_overrides_runpath=yes
9310
 
  hardcode_into_libs=yes
9311
 
  # ldd complains unless libraries are executable
9312
 
  postinstall_cmds='chmod +x $lib'
9313
 
  ;;
9314
 
 
9315
 
sunos4*)
9316
 
  version_type=sunos
9317
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9318
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9319
 
  shlibpath_var=LD_LIBRARY_PATH
9320
 
  shlibpath_overrides_runpath=yes
9321
 
  if test "$with_gnu_ld" = yes; then
9322
 
    need_lib_prefix=no
9323
 
  fi
9324
 
  need_version=yes
9325
 
  ;;
9326
 
 
9327
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9328
 
  version_type=linux
9329
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330
 
  soname_spec='${libname}${release}${shared_ext}$major'
9331
 
  shlibpath_var=LD_LIBRARY_PATH
9332
 
  case $host_vendor in
9333
 
    sni)
9334
 
      shlibpath_overrides_runpath=no
9335
 
      need_lib_prefix=no
9336
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9337
 
      runpath_var=LD_RUN_PATH
9338
 
      ;;
9339
 
    siemens)
9340
 
      need_lib_prefix=no
9341
 
      ;;
9342
 
    motorola)
9343
 
      need_lib_prefix=no
9344
 
      need_version=no
9345
 
      shlibpath_overrides_runpath=no
9346
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9347
 
      ;;
9348
 
  esac
9349
 
  ;;
9350
 
 
9351
 
sysv4*MP*)
9352
 
  if test -d /usr/nec ;then
9353
 
    version_type=linux
9354
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9355
 
    soname_spec='$libname${shared_ext}.$major'
9356
 
    shlibpath_var=LD_LIBRARY_PATH
9357
 
  fi
9358
 
  ;;
9359
 
 
9360
 
uts4*)
9361
 
  version_type=linux
9362
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363
 
  soname_spec='${libname}${release}${shared_ext}$major'
9364
 
  shlibpath_var=LD_LIBRARY_PATH
9365
 
  ;;
9366
 
 
9367
 
*)
9368
 
  dynamic_linker=no
9369
 
  ;;
9370
 
esac
9371
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9372
 
echo "${ECHO_T}$dynamic_linker" >&6
9373
 
test "$dynamic_linker" = no && can_build_shared=no
9374
 
 
9375
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9376
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9377
 
hardcode_action=
9378
 
if test -n "$hardcode_libdir_flag_spec" || \
9379
 
   test -n "$runpath_var" || \
9380
 
   test "X$hardcode_automatic" = "Xyes" ; then
9381
 
 
9382
 
  # We can hardcode non-existant directories.
9383
 
  if test "$hardcode_direct" != no &&
9384
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9385
 
     # have to relink, otherwise we might link with an installed library
9386
 
     # when we should be linking with a yet-to-be-installed one
9387
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9388
 
     test "$hardcode_minus_L" != no; then
9389
 
    # Linking always hardcodes the temporary library directory.
9390
 
    hardcode_action=relink
9391
 
  else
9392
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9393
 
    hardcode_action=immediate
9394
 
  fi
9395
 
else
9396
 
  # We cannot hardcode anything, or else we can only hardcode existing
9397
 
  # directories.
9398
 
  hardcode_action=unsupported
9399
 
fi
9400
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9401
 
echo "${ECHO_T}$hardcode_action" >&6
9402
 
 
9403
 
if test "$hardcode_action" = relink; then
9404
 
  # Fast installation is not supported
9405
 
  enable_fast_install=no
9406
 
elif test "$shlibpath_overrides_runpath" = yes ||
9407
 
     test "$enable_shared" = no; then
9408
 
  # Fast installation is not necessary
9409
 
  enable_fast_install=needless
9410
 
fi
9411
 
 
9412
 
striplib=
9413
 
old_striplib=
9414
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9415
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9416
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9417
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9418
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9419
 
  echo "$as_me:$LINENO: result: yes" >&5
9420
 
echo "${ECHO_T}yes" >&6
9421
 
else
9422
 
# FIXME - insert some real tests, host_os isn't really good enough
9423
 
  case $host_os in
9424
 
   darwin*)
9425
 
       if test -n "$STRIP" ; then
9426
 
         striplib="$STRIP -x"
9427
 
         echo "$as_me:$LINENO: result: yes" >&5
9428
 
echo "${ECHO_T}yes" >&6
9429
 
       else
9430
 
  echo "$as_me:$LINENO: result: no" >&5
9431
 
echo "${ECHO_T}no" >&6
9432
 
fi
9433
 
       ;;
9434
 
   *)
9435
 
  echo "$as_me:$LINENO: result: no" >&5
9436
 
echo "${ECHO_T}no" >&6
9437
 
    ;;
9438
 
  esac
9439
 
fi
9440
 
 
9441
 
if test "x$enable_dlopen" != xyes; then
9442
 
  enable_dlopen=unknown
9443
 
  enable_dlopen_self=unknown
9444
 
  enable_dlopen_self_static=unknown
9445
 
else
9446
 
  lt_cv_dlopen=no
9447
 
  lt_cv_dlopen_libs=
9448
 
 
9449
 
  case $host_os in
9450
 
  beos*)
9451
 
    lt_cv_dlopen="load_add_on"
9452
 
    lt_cv_dlopen_libs=
9453
 
    lt_cv_dlopen_self=yes
9454
 
    ;;
9455
 
 
9456
 
  mingw* | pw32*)
9457
 
    lt_cv_dlopen="LoadLibrary"
9458
 
    lt_cv_dlopen_libs=
9459
 
   ;;
9460
 
 
9461
 
  cygwin*)
9462
 
    lt_cv_dlopen="dlopen"
9463
 
    lt_cv_dlopen_libs=
9464
 
   ;;
9465
 
 
9466
 
  darwin*)
9467
 
  # if libdl is installed we need to link against it
9468
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9469
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9470
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9471
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9472
 
else
9473
 
  ac_check_lib_save_LIBS=$LIBS
9474
 
LIBS="-ldl  $LIBS"
9475
 
cat >conftest.$ac_ext <<_ACEOF
9476
 
/* confdefs.h.  */
9477
 
_ACEOF
9478
 
cat confdefs.h >>conftest.$ac_ext
9479
 
cat >>conftest.$ac_ext <<_ACEOF
9480
 
/* end confdefs.h.  */
9481
 
 
9482
 
/* Override any gcc2 internal prototype to avoid an error.  */
9483
 
#ifdef __cplusplus
9484
 
extern "C"
9485
 
#endif
9486
 
/* We use char because int might match the return type of a gcc2
9487
 
   builtin and then its argument prototype would still apply.  */
9488
 
char dlopen ();
9489
 
int
9490
 
main ()
9491
 
{
9492
 
dlopen ();
9493
 
  ;
9494
 
  return 0;
9495
 
}
9496
 
_ACEOF
9497
 
rm -f conftest.$ac_objext conftest$ac_exeext
9498
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9499
 
  (eval $ac_link) 2>conftest.er1
9500
 
  ac_status=$?
9501
 
  grep -v '^ *+' conftest.er1 >conftest.err
9502
 
  rm -f conftest.er1
9503
 
  cat conftest.err >&5
9504
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505
 
  (exit $ac_status); } &&
9506
 
         { ac_try='test -z "$ac_c_werror_flag"
9507
 
                         || test ! -s conftest.err'
9508
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509
 
  (eval $ac_try) 2>&5
9510
 
  ac_status=$?
9511
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512
 
  (exit $ac_status); }; } &&
9513
 
         { ac_try='test -s conftest$ac_exeext'
9514
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515
 
  (eval $ac_try) 2>&5
9516
 
  ac_status=$?
9517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518
 
  (exit $ac_status); }; }; then
9519
 
  ac_cv_lib_dl_dlopen=yes
9520
 
else
9521
 
  echo "$as_me: failed program was:" >&5
9522
 
sed 's/^/| /' conftest.$ac_ext >&5
9523
 
 
9524
 
ac_cv_lib_dl_dlopen=no
9525
 
fi
9526
 
rm -f conftest.err conftest.$ac_objext \
9527
 
      conftest$ac_exeext conftest.$ac_ext
9528
 
LIBS=$ac_check_lib_save_LIBS
9529
 
fi
9530
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9531
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9532
 
if test $ac_cv_lib_dl_dlopen = yes; then
9533
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9534
 
else
9535
 
  
9536
 
    lt_cv_dlopen="dyld"
9537
 
    lt_cv_dlopen_libs=
9538
 
    lt_cv_dlopen_self=yes
9539
 
    
9540
 
fi
9541
 
 
9542
 
   ;;
9543
 
 
9544
 
  *)
9545
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
9546
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9547
 
if test "${ac_cv_func_shl_load+set}" = set; then
9548
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9549
 
else
9550
 
  cat >conftest.$ac_ext <<_ACEOF
9551
 
/* confdefs.h.  */
9552
 
_ACEOF
9553
 
cat confdefs.h >>conftest.$ac_ext
9554
 
cat >>conftest.$ac_ext <<_ACEOF
9555
 
/* end confdefs.h.  */
9556
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9557
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9558
 
#define shl_load innocuous_shl_load
9559
 
 
9560
 
/* System header to define __stub macros and hopefully few prototypes,
9561
 
    which can conflict with char shl_load (); below.
9562
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9563
 
    <limits.h> exists even on freestanding compilers.  */
9564
 
 
9565
 
#ifdef __STDC__
9566
 
# include <limits.h>
9567
 
#else
9568
 
# include <assert.h>
9569
 
#endif
9570
 
 
9571
 
#undef shl_load
9572
 
 
9573
 
/* Override any gcc2 internal prototype to avoid an error.  */
9574
 
#ifdef __cplusplus
9575
 
extern "C"
9576
 
{
9577
 
#endif
9578
 
/* We use char because int might match the return type of a gcc2
9579
 
   builtin and then its argument prototype would still apply.  */
9580
 
char shl_load ();
9581
 
/* The GNU C library defines this for functions which it implements
9582
 
    to always fail with ENOSYS.  Some functions are actually named
9583
 
    something starting with __ and the normal name is an alias.  */
9584
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9585
 
choke me
9586
 
#else
9587
 
char (*f) () = shl_load;
9588
 
#endif
9589
 
#ifdef __cplusplus
9590
 
}
9591
 
#endif
9592
 
 
9593
 
int
9594
 
main ()
9595
 
{
9596
 
return f != shl_load;
9597
 
  ;
9598
 
  return 0;
9599
 
}
9600
 
_ACEOF
9601
 
rm -f conftest.$ac_objext conftest$ac_exeext
9602
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603
 
  (eval $ac_link) 2>conftest.er1
9604
 
  ac_status=$?
9605
 
  grep -v '^ *+' conftest.er1 >conftest.err
9606
 
  rm -f conftest.er1
9607
 
  cat conftest.err >&5
9608
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609
 
  (exit $ac_status); } &&
9610
 
         { ac_try='test -z "$ac_c_werror_flag"
9611
 
                         || test ! -s conftest.err'
9612
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613
 
  (eval $ac_try) 2>&5
9614
 
  ac_status=$?
9615
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616
 
  (exit $ac_status); }; } &&
9617
 
         { ac_try='test -s conftest$ac_exeext'
9618
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619
 
  (eval $ac_try) 2>&5
9620
 
  ac_status=$?
9621
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622
 
  (exit $ac_status); }; }; then
9623
 
  ac_cv_func_shl_load=yes
9624
 
else
9625
 
  echo "$as_me: failed program was:" >&5
9626
 
sed 's/^/| /' conftest.$ac_ext >&5
9627
 
 
9628
 
ac_cv_func_shl_load=no
9629
 
fi
9630
 
rm -f conftest.err conftest.$ac_objext \
9631
 
      conftest$ac_exeext conftest.$ac_ext
9632
 
fi
9633
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9634
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9635
 
if test $ac_cv_func_shl_load = yes; then
9636
 
  lt_cv_dlopen="shl_load"
9637
 
else
9638
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9639
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9640
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9641
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9642
 
else
9643
 
  ac_check_lib_save_LIBS=$LIBS
9644
 
LIBS="-ldld  $LIBS"
9645
 
cat >conftest.$ac_ext <<_ACEOF
9646
 
/* confdefs.h.  */
9647
 
_ACEOF
9648
 
cat confdefs.h >>conftest.$ac_ext
9649
 
cat >>conftest.$ac_ext <<_ACEOF
9650
 
/* end confdefs.h.  */
9651
 
 
9652
 
/* Override any gcc2 internal prototype to avoid an error.  */
9653
 
#ifdef __cplusplus
9654
 
extern "C"
9655
 
#endif
9656
 
/* We use char because int might match the return type of a gcc2
9657
 
   builtin and then its argument prototype would still apply.  */
9658
 
char shl_load ();
9659
 
int
9660
 
main ()
9661
 
{
9662
 
shl_load ();
9663
 
  ;
9664
 
  return 0;
9665
 
}
9666
 
_ACEOF
9667
 
rm -f conftest.$ac_objext conftest$ac_exeext
9668
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9669
 
  (eval $ac_link) 2>conftest.er1
9670
 
  ac_status=$?
9671
 
  grep -v '^ *+' conftest.er1 >conftest.err
9672
 
  rm -f conftest.er1
9673
 
  cat conftest.err >&5
9674
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675
 
  (exit $ac_status); } &&
9676
 
         { ac_try='test -z "$ac_c_werror_flag"
9677
 
                         || test ! -s conftest.err'
9678
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9679
 
  (eval $ac_try) 2>&5
9680
 
  ac_status=$?
9681
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682
 
  (exit $ac_status); }; } &&
9683
 
         { ac_try='test -s conftest$ac_exeext'
9684
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685
 
  (eval $ac_try) 2>&5
9686
 
  ac_status=$?
9687
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688
 
  (exit $ac_status); }; }; then
9689
 
  ac_cv_lib_dld_shl_load=yes
9690
 
else
9691
 
  echo "$as_me: failed program was:" >&5
9692
 
sed 's/^/| /' conftest.$ac_ext >&5
9693
 
 
9694
 
ac_cv_lib_dld_shl_load=no
9695
 
fi
9696
 
rm -f conftest.err conftest.$ac_objext \
9697
 
      conftest$ac_exeext conftest.$ac_ext
9698
 
LIBS=$ac_check_lib_save_LIBS
9699
 
fi
9700
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9701
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9702
 
if test $ac_cv_lib_dld_shl_load = yes; then
9703
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9704
 
else
9705
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
9706
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9707
 
if test "${ac_cv_func_dlopen+set}" = set; then
9708
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9709
 
else
9710
 
  cat >conftest.$ac_ext <<_ACEOF
9711
 
/* confdefs.h.  */
9712
 
_ACEOF
9713
 
cat confdefs.h >>conftest.$ac_ext
9714
 
cat >>conftest.$ac_ext <<_ACEOF
9715
 
/* end confdefs.h.  */
9716
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9717
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9718
 
#define dlopen innocuous_dlopen
9719
 
 
9720
 
/* System header to define __stub macros and hopefully few prototypes,
9721
 
    which can conflict with char dlopen (); below.
9722
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9723
 
    <limits.h> exists even on freestanding compilers.  */
9724
 
 
9725
 
#ifdef __STDC__
9726
 
# include <limits.h>
9727
 
#else
9728
 
# include <assert.h>
9729
 
#endif
9730
 
 
9731
 
#undef dlopen
9732
 
 
9733
 
/* Override any gcc2 internal prototype to avoid an error.  */
9734
 
#ifdef __cplusplus
9735
 
extern "C"
9736
 
{
9737
 
#endif
9738
 
/* We use char because int might match the return type of a gcc2
9739
 
   builtin and then its argument prototype would still apply.  */
9740
 
char dlopen ();
9741
 
/* The GNU C library defines this for functions which it implements
9742
 
    to always fail with ENOSYS.  Some functions are actually named
9743
 
    something starting with __ and the normal name is an alias.  */
9744
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9745
 
choke me
9746
 
#else
9747
 
char (*f) () = dlopen;
9748
 
#endif
9749
 
#ifdef __cplusplus
9750
 
}
9751
 
#endif
9752
 
 
9753
 
int
9754
 
main ()
9755
 
{
9756
 
return f != dlopen;
9757
 
  ;
9758
 
  return 0;
9759
 
}
9760
 
_ACEOF
9761
 
rm -f conftest.$ac_objext conftest$ac_exeext
9762
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9763
 
  (eval $ac_link) 2>conftest.er1
9764
 
  ac_status=$?
9765
 
  grep -v '^ *+' conftest.er1 >conftest.err
9766
 
  rm -f conftest.er1
9767
 
  cat conftest.err >&5
9768
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769
 
  (exit $ac_status); } &&
9770
 
         { ac_try='test -z "$ac_c_werror_flag"
9771
 
                         || test ! -s conftest.err'
9772
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773
 
  (eval $ac_try) 2>&5
9774
 
  ac_status=$?
9775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776
 
  (exit $ac_status); }; } &&
9777
 
         { ac_try='test -s conftest$ac_exeext'
9778
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779
 
  (eval $ac_try) 2>&5
9780
 
  ac_status=$?
9781
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782
 
  (exit $ac_status); }; }; then
9783
 
  ac_cv_func_dlopen=yes
9784
 
else
9785
 
  echo "$as_me: failed program was:" >&5
9786
 
sed 's/^/| /' conftest.$ac_ext >&5
9787
 
 
9788
 
ac_cv_func_dlopen=no
9789
 
fi
9790
 
rm -f conftest.err conftest.$ac_objext \
9791
 
      conftest$ac_exeext conftest.$ac_ext
9792
 
fi
9793
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9794
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9795
 
if test $ac_cv_func_dlopen = yes; then
9796
 
  lt_cv_dlopen="dlopen"
9797
 
else
9798
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9799
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9800
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9801
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9802
 
else
9803
 
  ac_check_lib_save_LIBS=$LIBS
9804
 
LIBS="-ldl  $LIBS"
9805
 
cat >conftest.$ac_ext <<_ACEOF
9806
 
/* confdefs.h.  */
9807
 
_ACEOF
9808
 
cat confdefs.h >>conftest.$ac_ext
9809
 
cat >>conftest.$ac_ext <<_ACEOF
9810
 
/* end confdefs.h.  */
9811
 
 
9812
 
/* Override any gcc2 internal prototype to avoid an error.  */
9813
 
#ifdef __cplusplus
9814
 
extern "C"
9815
 
#endif
9816
 
/* We use char because int might match the return type of a gcc2
9817
 
   builtin and then its argument prototype would still apply.  */
9818
 
char dlopen ();
9819
 
int
9820
 
main ()
9821
 
{
9822
 
dlopen ();
9823
 
  ;
9824
 
  return 0;
9825
 
}
9826
 
_ACEOF
9827
 
rm -f conftest.$ac_objext conftest$ac_exeext
9828
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9829
 
  (eval $ac_link) 2>conftest.er1
9830
 
  ac_status=$?
9831
 
  grep -v '^ *+' conftest.er1 >conftest.err
9832
 
  rm -f conftest.er1
9833
 
  cat conftest.err >&5
9834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835
 
  (exit $ac_status); } &&
9836
 
         { ac_try='test -z "$ac_c_werror_flag"
9837
 
                         || test ! -s conftest.err'
9838
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839
 
  (eval $ac_try) 2>&5
9840
 
  ac_status=$?
9841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842
 
  (exit $ac_status); }; } &&
9843
 
         { ac_try='test -s conftest$ac_exeext'
9844
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845
 
  (eval $ac_try) 2>&5
9846
 
  ac_status=$?
9847
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848
 
  (exit $ac_status); }; }; then
9849
 
  ac_cv_lib_dl_dlopen=yes
9850
 
else
9851
 
  echo "$as_me: failed program was:" >&5
9852
 
sed 's/^/| /' conftest.$ac_ext >&5
9853
 
 
9854
 
ac_cv_lib_dl_dlopen=no
9855
 
fi
9856
 
rm -f conftest.err conftest.$ac_objext \
9857
 
      conftest$ac_exeext conftest.$ac_ext
9858
 
LIBS=$ac_check_lib_save_LIBS
9859
 
fi
9860
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9861
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9862
 
if test $ac_cv_lib_dl_dlopen = yes; then
9863
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9864
 
else
9865
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9866
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9867
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9868
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9869
 
else
9870
 
  ac_check_lib_save_LIBS=$LIBS
9871
 
LIBS="-lsvld  $LIBS"
9872
 
cat >conftest.$ac_ext <<_ACEOF
9873
 
/* confdefs.h.  */
9874
 
_ACEOF
9875
 
cat confdefs.h >>conftest.$ac_ext
9876
 
cat >>conftest.$ac_ext <<_ACEOF
9877
 
/* end confdefs.h.  */
9878
 
 
9879
 
/* Override any gcc2 internal prototype to avoid an error.  */
9880
 
#ifdef __cplusplus
9881
 
extern "C"
9882
 
#endif
9883
 
/* We use char because int might match the return type of a gcc2
9884
 
   builtin and then its argument prototype would still apply.  */
9885
 
char dlopen ();
9886
 
int
9887
 
main ()
9888
 
{
9889
 
dlopen ();
9890
 
  ;
9891
 
  return 0;
9892
 
}
9893
 
_ACEOF
9894
 
rm -f conftest.$ac_objext conftest$ac_exeext
9895
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896
 
  (eval $ac_link) 2>conftest.er1
9897
 
  ac_status=$?
9898
 
  grep -v '^ *+' conftest.er1 >conftest.err
9899
 
  rm -f conftest.er1
9900
 
  cat conftest.err >&5
9901
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902
 
  (exit $ac_status); } &&
9903
 
         { ac_try='test -z "$ac_c_werror_flag"
9904
 
                         || test ! -s conftest.err'
9905
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906
 
  (eval $ac_try) 2>&5
9907
 
  ac_status=$?
9908
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909
 
  (exit $ac_status); }; } &&
9910
 
         { ac_try='test -s conftest$ac_exeext'
9911
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912
 
  (eval $ac_try) 2>&5
9913
 
  ac_status=$?
9914
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915
 
  (exit $ac_status); }; }; then
9916
 
  ac_cv_lib_svld_dlopen=yes
9917
 
else
9918
 
  echo "$as_me: failed program was:" >&5
9919
 
sed 's/^/| /' conftest.$ac_ext >&5
9920
 
 
9921
 
ac_cv_lib_svld_dlopen=no
9922
 
fi
9923
 
rm -f conftest.err conftest.$ac_objext \
9924
 
      conftest$ac_exeext conftest.$ac_ext
9925
 
LIBS=$ac_check_lib_save_LIBS
9926
 
fi
9927
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9928
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9929
 
if test $ac_cv_lib_svld_dlopen = yes; then
9930
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9931
 
else
9932
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9933
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9934
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9935
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9936
 
else
9937
 
  ac_check_lib_save_LIBS=$LIBS
9938
 
LIBS="-ldld  $LIBS"
9939
 
cat >conftest.$ac_ext <<_ACEOF
9940
 
/* confdefs.h.  */
9941
 
_ACEOF
9942
 
cat confdefs.h >>conftest.$ac_ext
9943
 
cat >>conftest.$ac_ext <<_ACEOF
9944
 
/* end confdefs.h.  */
9945
 
 
9946
 
/* Override any gcc2 internal prototype to avoid an error.  */
9947
 
#ifdef __cplusplus
9948
 
extern "C"
9949
 
#endif
9950
 
/* We use char because int might match the return type of a gcc2
9951
 
   builtin and then its argument prototype would still apply.  */
9952
 
char dld_link ();
9953
 
int
9954
 
main ()
9955
 
{
9956
 
dld_link ();
9957
 
  ;
9958
 
  return 0;
9959
 
}
9960
 
_ACEOF
9961
 
rm -f conftest.$ac_objext conftest$ac_exeext
9962
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963
 
  (eval $ac_link) 2>conftest.er1
9964
 
  ac_status=$?
9965
 
  grep -v '^ *+' conftest.er1 >conftest.err
9966
 
  rm -f conftest.er1
9967
 
  cat conftest.err >&5
9968
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969
 
  (exit $ac_status); } &&
9970
 
         { ac_try='test -z "$ac_c_werror_flag"
9971
 
                         || test ! -s conftest.err'
9972
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973
 
  (eval $ac_try) 2>&5
9974
 
  ac_status=$?
9975
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976
 
  (exit $ac_status); }; } &&
9977
 
         { ac_try='test -s conftest$ac_exeext'
9978
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979
 
  (eval $ac_try) 2>&5
9980
 
  ac_status=$?
9981
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982
 
  (exit $ac_status); }; }; then
9983
 
  ac_cv_lib_dld_dld_link=yes
9984
 
else
9985
 
  echo "$as_me: failed program was:" >&5
9986
 
sed 's/^/| /' conftest.$ac_ext >&5
9987
 
 
9988
 
ac_cv_lib_dld_dld_link=no
9989
 
fi
9990
 
rm -f conftest.err conftest.$ac_objext \
9991
 
      conftest$ac_exeext conftest.$ac_ext
9992
 
LIBS=$ac_check_lib_save_LIBS
9993
 
fi
9994
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9995
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9996
 
if test $ac_cv_lib_dld_dld_link = yes; then
9997
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9998
 
fi
9999
 
 
10000
 
              
10001
 
fi
10002
 
 
10003
 
            
10004
 
fi
10005
 
 
10006
 
          
10007
 
fi
10008
 
 
10009
 
        
10010
 
fi
10011
 
 
10012
 
      
10013
 
fi
10014
 
 
10015
 
    ;;
10016
 
  esac
10017
 
 
10018
 
  if test "x$lt_cv_dlopen" != xno; then
10019
 
    enable_dlopen=yes
10020
 
  else
10021
 
    enable_dlopen=no
10022
 
  fi
10023
 
 
10024
 
  case $lt_cv_dlopen in
10025
 
  dlopen)
10026
 
    save_CPPFLAGS="$CPPFLAGS"
10027
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10028
 
 
10029
 
    save_LDFLAGS="$LDFLAGS"
10030
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10031
 
 
10032
 
    save_LIBS="$LIBS"
10033
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
10034
 
 
10035
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10036
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10037
 
if test "${lt_cv_dlopen_self+set}" = set; then
10038
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10039
 
else
10040
 
          if test "$cross_compiling" = yes; then :
10041
 
  lt_cv_dlopen_self=cross
10042
 
else
10043
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10044
 
  lt_status=$lt_dlunknown
10045
 
  cat > conftest.$ac_ext <<EOF
10046
 
#line __oline__ "configure"
10047
 
#include "confdefs.h"
10048
 
 
10049
 
#if HAVE_DLFCN_H
10050
 
#include <dlfcn.h>
10051
 
#endif
10052
 
 
10053
 
#include <stdio.h>
10054
 
 
10055
 
#ifdef RTLD_GLOBAL
10056
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10057
 
#else
10058
 
#  ifdef DL_GLOBAL
10059
 
#    define LT_DLGLOBAL         DL_GLOBAL
10060
 
#  else
10061
 
#    define LT_DLGLOBAL         0
10062
 
#  endif
10063
 
#endif
10064
 
 
10065
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10066
 
   find out it does not work in some platform. */
10067
 
#ifndef LT_DLLAZY_OR_NOW
10068
 
#  ifdef RTLD_LAZY
10069
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10070
 
#  else
10071
 
#    ifdef DL_LAZY
10072
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10073
 
#    else
10074
 
#      ifdef RTLD_NOW
10075
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10076
 
#      else
10077
 
#        ifdef DL_NOW
10078
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10079
 
#        else
10080
 
#          define LT_DLLAZY_OR_NOW      0
10081
 
#        endif
10082
 
#      endif
10083
 
#    endif
10084
 
#  endif
10085
 
#endif
10086
 
 
10087
 
#ifdef __cplusplus
10088
 
extern "C" void exit (int);
10089
 
#endif
10090
 
 
10091
 
void fnord() { int i=42;}
10092
 
int main ()
10093
 
{
10094
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10095
 
  int status = $lt_dlunknown;
10096
 
 
10097
 
  if (self)
10098
 
    {
10099
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10100
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10101
 
      /* dlclose (self); */
10102
 
    }
10103
 
 
10104
 
    exit (status);
10105
 
}
10106
 
EOF
10107
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108
 
  (eval $ac_link) 2>&5
10109
 
  ac_status=$?
10110
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10112
 
    (./conftest; exit; ) 2>/dev/null
10113
 
    lt_status=$?
10114
 
    case x$lt_status in
10115
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10116
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10117
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10118
 
    esac
10119
 
  else :
10120
 
    # compilation failed
10121
 
    lt_cv_dlopen_self=no
10122
 
  fi
10123
 
fi
10124
 
rm -fr conftest*
10125
 
 
10126
 
    
10127
 
fi
10128
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10129
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10130
 
 
10131
 
    if test "x$lt_cv_dlopen_self" = xyes; then
10132
 
      LDFLAGS="$LDFLAGS $link_static_flag"
10133
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10134
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10135
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
10136
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10137
 
else
10138
 
          if test "$cross_compiling" = yes; then :
10139
 
  lt_cv_dlopen_self_static=cross
10140
 
else
10141
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10142
 
  lt_status=$lt_dlunknown
10143
 
  cat > conftest.$ac_ext <<EOF
10144
 
#line __oline__ "configure"
10145
 
#include "confdefs.h"
10146
 
 
10147
 
#if HAVE_DLFCN_H
10148
 
#include <dlfcn.h>
10149
 
#endif
10150
 
 
10151
 
#include <stdio.h>
10152
 
 
10153
 
#ifdef RTLD_GLOBAL
10154
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10155
 
#else
10156
 
#  ifdef DL_GLOBAL
10157
 
#    define LT_DLGLOBAL         DL_GLOBAL
10158
 
#  else
10159
 
#    define LT_DLGLOBAL         0
10160
 
#  endif
10161
 
#endif
10162
 
 
10163
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10164
 
   find out it does not work in some platform. */
10165
 
#ifndef LT_DLLAZY_OR_NOW
10166
 
#  ifdef RTLD_LAZY
10167
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10168
 
#  else
10169
 
#    ifdef DL_LAZY
10170
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10171
 
#    else
10172
 
#      ifdef RTLD_NOW
10173
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10174
 
#      else
10175
 
#        ifdef DL_NOW
10176
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10177
 
#        else
10178
 
#          define LT_DLLAZY_OR_NOW      0
10179
 
#        endif
10180
 
#      endif
10181
 
#    endif
10182
 
#  endif
10183
 
#endif
10184
 
 
10185
 
#ifdef __cplusplus
10186
 
extern "C" void exit (int);
10187
 
#endif
10188
 
 
10189
 
void fnord() { int i=42;}
10190
 
int main ()
10191
 
{
10192
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10193
 
  int status = $lt_dlunknown;
10194
 
 
10195
 
  if (self)
10196
 
    {
10197
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10198
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10199
 
      /* dlclose (self); */
10200
 
    }
10201
 
 
10202
 
    exit (status);
10203
 
}
10204
 
EOF
10205
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206
 
  (eval $ac_link) 2>&5
10207
 
  ac_status=$?
10208
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10210
 
    (./conftest; exit; ) 2>/dev/null
10211
 
    lt_status=$?
10212
 
    case x$lt_status in
10213
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10214
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10215
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10216
 
    esac
10217
 
  else :
10218
 
    # compilation failed
10219
 
    lt_cv_dlopen_self_static=no
10220
 
  fi
10221
 
fi
10222
 
rm -fr conftest*
10223
 
 
10224
 
      
10225
 
fi
10226
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10227
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10228
 
    fi
10229
 
 
10230
 
    CPPFLAGS="$save_CPPFLAGS"
10231
 
    LDFLAGS="$save_LDFLAGS"
10232
 
    LIBS="$save_LIBS"
10233
 
    ;;
10234
 
  esac
10235
 
 
10236
 
  case $lt_cv_dlopen_self in
10237
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10238
 
  *) enable_dlopen_self=unknown ;;
10239
 
  esac
10240
 
 
10241
 
  case $lt_cv_dlopen_self_static in
10242
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10243
 
  *) enable_dlopen_self_static=unknown ;;
10244
 
  esac
10245
 
fi
10246
 
 
10247
 
 
10248
 
# Report which librarie types wil actually be built
10249
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10250
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10251
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10252
 
echo "${ECHO_T}$can_build_shared" >&6
10253
 
 
10254
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10255
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10256
 
test "$can_build_shared" = "no" && enable_shared=no
10257
 
 
10258
 
# On AIX, shared libraries and static libraries use the same namespace, and
10259
 
# are all built from PIC.
10260
 
case "$host_os" in
10261
 
aix3*)
10262
 
  test "$enable_shared" = yes && enable_static=no
10263
 
  if test -n "$RANLIB"; then
10264
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10265
 
    postinstall_cmds='$RANLIB $lib'
10266
 
  fi
10267
 
  ;;
10268
 
 
10269
 
aix4* | aix5*)
10270
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10271
 
    test "$enable_shared" = yes && enable_static=no
10272
 
  fi
10273
 
    ;;
10274
 
esac
10275
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
10276
 
echo "${ECHO_T}$enable_shared" >&6
10277
 
 
10278
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10279
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10280
 
# Make sure either enable_shared or enable_static is yes.
10281
 
test "$enable_shared" = yes || enable_static=yes
10282
 
echo "$as_me:$LINENO: result: $enable_static" >&5
10283
 
echo "${ECHO_T}$enable_static" >&6
10284
 
 
10285
 
# The else clause should only fire when bootstrapping the
10286
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10287
 
# with your package, and you will get complaints that there are
10288
 
# no rules to generate ltmain.sh.
10289
 
if test -f "$ltmain"; then
10290
 
  # See if we are running on zsh, and set the options which allow our commands through
10291
 
  # without removal of \ escapes.
10292
 
  if test -n "${ZSH_VERSION+set}" ; then
10293
 
    setopt NO_GLOB_SUBST
10294
 
  fi
10295
 
  # Now quote all the things that may contain metacharacters while being
10296
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10297
 
  # variables and quote the copies for generation of the libtool script.
10298
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
10299
 
    SED SHELL STRIP \
10300
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10301
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10302
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10303
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10304
 
    lt_cv_sys_global_symbol_to_c_name_address \
10305
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10306
 
    old_postinstall_cmds old_postuninstall_cmds \
10307
 
    compiler \
10308
 
    CC \
10309
 
    LD \
10310
 
    lt_prog_compiler_wl \
10311
 
    lt_prog_compiler_pic \
10312
 
    lt_prog_compiler_static \
10313
 
    lt_prog_compiler_no_builtin_flag \
10314
 
    export_dynamic_flag_spec \
10315
 
    thread_safe_flag_spec \
10316
 
    whole_archive_flag_spec \
10317
 
    enable_shared_with_static_runtimes \
10318
 
    old_archive_cmds \
10319
 
    old_archive_from_new_cmds \
10320
 
    predep_objects \
10321
 
    postdep_objects \
10322
 
    predeps \
10323
 
    postdeps \
10324
 
    compiler_lib_search_path \
10325
 
    archive_cmds \
10326
 
    archive_expsym_cmds \
10327
 
    postinstall_cmds \
10328
 
    postuninstall_cmds \
10329
 
    old_archive_from_expsyms_cmds \
10330
 
    allow_undefined_flag \
10331
 
    no_undefined_flag \
10332
 
    export_symbols_cmds \
10333
 
    hardcode_libdir_flag_spec \
10334
 
    hardcode_libdir_flag_spec_ld \
10335
 
    hardcode_libdir_separator \
10336
 
    hardcode_automatic \
10337
 
    module_cmds \
10338
 
    module_expsym_cmds \
10339
 
    lt_cv_prog_compiler_c_o \
10340
 
    exclude_expsyms \
10341
 
    include_expsyms; do
10342
 
 
10343
 
    case $var in
10344
 
    old_archive_cmds | \
10345
 
    old_archive_from_new_cmds | \
10346
 
    archive_cmds | \
10347
 
    archive_expsym_cmds | \
10348
 
    module_cmds | \
10349
 
    module_expsym_cmds | \
10350
 
    old_archive_from_expsyms_cmds | \
10351
 
    export_symbols_cmds | \
10352
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10353
 
    postinstall_cmds | postuninstall_cmds | \
10354
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10355
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10356
 
      # Double-quote double-evaled strings.
10357
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10358
 
      ;;
10359
 
    *)
10360
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10361
 
      ;;
10362
 
    esac
10363
 
  done
10364
 
 
10365
 
  case $lt_echo in
10366
 
  *'\$0 --fallback-echo"')
10367
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10368
 
    ;;
10369
 
  esac
10370
 
 
10371
 
cfgfile="${ofile}T"
10372
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10373
 
  $rm -f "$cfgfile"
10374
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
10375
 
echo "$as_me: creating $ofile" >&6;}
10376
 
 
10377
 
  cat <<__EOF__ >> "$cfgfile"
10378
 
#! $SHELL
10379
 
 
10380
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10381
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10382
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10383
 
#
10384
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10385
 
# Free Software Foundation, Inc.
10386
 
#
10387
 
# This file is part of GNU Libtool:
10388
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10389
 
#
10390
 
# This program is free software; you can redistribute it and/or modify
10391
 
# it under the terms of the GNU General Public License as published by
10392
 
# the Free Software Foundation; either version 2 of the License, or
10393
 
# (at your option) any later version.
10394
 
#
10395
 
# This program is distributed in the hope that it will be useful, but
10396
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10397
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10398
 
# General Public License for more details.
10399
 
#
10400
 
# You should have received a copy of the GNU General Public License
10401
 
# along with this program; if not, write to the Free Software
10402
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10403
 
#
10404
 
# As a special exception to the GNU General Public License, if you
10405
 
# distribute this file as part of a program that contains a
10406
 
# configuration script generated by Autoconf, you may include it under
10407
 
# the same distribution terms that you use for the rest of that program.
10408
 
 
10409
 
# A sed program that does not truncate output.
10410
 
SED=$lt_SED
10411
 
 
10412
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10413
 
Xsed="$SED -e s/^X//"
10414
 
 
10415
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10416
 
# if CDPATH is set.
10417
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10418
 
 
10419
 
# The names of the tagged configurations supported by this script.
10420
 
available_tags=
10421
 
 
10422
 
# ### BEGIN LIBTOOL CONFIG
10423
 
 
10424
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10425
 
 
10426
 
# Shell to use when invoking shell scripts.
10427
 
SHELL=$lt_SHELL
10428
 
 
10429
 
# Whether or not to build shared libraries.
10430
 
build_libtool_libs=$enable_shared
10431
 
 
10432
 
# Whether or not to build static libraries.
10433
 
build_old_libs=$enable_static
10434
 
 
10435
 
# Whether or not to add -lc for building shared libraries.
10436
 
build_libtool_need_lc=$archive_cmds_need_lc
10437
 
 
10438
 
# Whether or not to disallow shared libs when runtime libs are static
10439
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10440
 
 
10441
 
# Whether or not to optimize for fast installation.
10442
 
fast_install=$enable_fast_install
10443
 
 
10444
 
# The host system.
10445
 
host_alias=$host_alias
10446
 
host=$host
10447
 
host_os=$host_os
10448
 
 
10449
 
# The build system.
10450
 
build_alias=$build_alias
10451
 
build=$build
10452
 
build_os=$build_os
10453
 
 
10454
 
# An echo program that does not interpret backslashes.
10455
 
echo=$lt_echo
10456
 
 
10457
 
# The archiver.
10458
 
AR=$lt_AR
10459
 
AR_FLAGS=$lt_AR_FLAGS
10460
 
 
10461
 
# A C compiler.
10462
 
LTCC=$lt_LTCC
10463
 
 
10464
 
# A language-specific compiler.
10465
 
CC=$lt_compiler
10466
 
 
10467
 
# Is the compiler the GNU C compiler?
10468
 
with_gcc=$GCC
10469
 
 
10470
 
# An ERE matcher.
10471
 
EGREP=$lt_EGREP
10472
 
 
10473
 
# The linker used to build libraries.
10474
 
LD=$lt_LD
10475
 
 
10476
 
# Whether we need hard or soft links.
10477
 
LN_S=$lt_LN_S
10478
 
 
10479
 
# A BSD-compatible nm program.
10480
 
NM=$lt_NM
10481
 
 
10482
 
# A symbol stripping program
10483
 
STRIP=$lt_STRIP
10484
 
 
10485
 
# Used to examine libraries when file_magic_cmd begins "file"
10486
 
MAGIC_CMD=$MAGIC_CMD
10487
 
 
10488
 
# Used on cygwin: DLL creation program.
10489
 
DLLTOOL="$DLLTOOL"
10490
 
 
10491
 
# Used on cygwin: object dumper.
10492
 
OBJDUMP="$OBJDUMP"
10493
 
 
10494
 
# Used on cygwin: assembler.
10495
 
AS=$lt_AS
10496
 
 
10497
 
# The name of the directory that contains temporary libtool files.
10498
 
objdir=$objdir
10499
 
 
10500
 
# How to create reloadable object files.
10501
 
reload_flag=$lt_reload_flag
10502
 
reload_cmds=$lt_reload_cmds
10503
 
 
10504
 
# How to pass a linker flag through the compiler.
10505
 
wl=$lt_lt_prog_compiler_wl
10506
 
 
10507
 
# Object file suffix (normally "o").
10508
 
objext="$ac_objext"
10509
 
 
10510
 
# Old archive suffix (normally "a").
10511
 
libext="$libext"
10512
 
 
10513
 
# Shared library suffix (normally ".so").
10514
 
shrext_cmds='$shrext_cmds'
10515
 
 
10516
 
# Executable file suffix (normally "").
10517
 
exeext="$exeext"
10518
 
 
10519
 
# Additional compiler flags for building library objects.
10520
 
pic_flag=$lt_lt_prog_compiler_pic
10521
 
pic_mode=$pic_mode
10522
 
 
10523
 
# What is the maximum length of a command?
10524
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10525
 
 
10526
 
# Does compiler simultaneously support -c and -o options?
10527
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10528
 
 
10529
 
# Must we lock files when doing compilation ?
10530
 
need_locks=$lt_need_locks
10531
 
 
10532
 
# Do we need the lib prefix for modules?
10533
 
need_lib_prefix=$need_lib_prefix
10534
 
 
10535
 
# Do we need a version for libraries?
10536
 
need_version=$need_version
10537
 
 
10538
 
# Whether dlopen is supported.
10539
 
dlopen_support=$enable_dlopen
10540
 
 
10541
 
# Whether dlopen of programs is supported.
10542
 
dlopen_self=$enable_dlopen_self
10543
 
 
10544
 
# Whether dlopen of statically linked programs is supported.
10545
 
dlopen_self_static=$enable_dlopen_self_static
10546
 
 
10547
 
# Compiler flag to prevent dynamic linking.
10548
 
link_static_flag=$lt_lt_prog_compiler_static
10549
 
 
10550
 
# Compiler flag to turn off builtin functions.
10551
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10552
 
 
10553
 
# Compiler flag to allow reflexive dlopens.
10554
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10555
 
 
10556
 
# Compiler flag to generate shared objects directly from archives.
10557
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10558
 
 
10559
 
# Compiler flag to generate thread-safe objects.
10560
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10561
 
 
10562
 
# Library versioning type.
10563
 
version_type=$version_type
10564
 
 
10565
 
# Format of library name prefix.
10566
 
libname_spec=$lt_libname_spec
10567
 
 
10568
 
# List of archive names.  First name is the real one, the rest are links.
10569
 
# The last name is the one that the linker finds with -lNAME.
10570
 
library_names_spec=$lt_library_names_spec
10571
 
 
10572
 
# The coded name of the library, if different from the real name.
10573
 
soname_spec=$lt_soname_spec
10574
 
 
10575
 
# Commands used to build and install an old-style archive.
10576
 
RANLIB=$lt_RANLIB
10577
 
old_archive_cmds=$lt_old_archive_cmds
10578
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10579
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10580
 
 
10581
 
# Create an old-style archive from a shared archive.
10582
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10583
 
 
10584
 
# Create a temporary old-style archive to link instead of a shared archive.
10585
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10586
 
 
10587
 
# Commands used to build and install a shared archive.
10588
 
archive_cmds=$lt_archive_cmds
10589
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10590
 
postinstall_cmds=$lt_postinstall_cmds
10591
 
postuninstall_cmds=$lt_postuninstall_cmds
10592
 
 
10593
 
# Commands used to build a loadable module (assumed same as above if empty)
10594
 
module_cmds=$lt_module_cmds
10595
 
module_expsym_cmds=$lt_module_expsym_cmds
10596
 
 
10597
 
# Commands to strip libraries.
10598
 
old_striplib=$lt_old_striplib
10599
 
striplib=$lt_striplib
10600
 
 
10601
 
# Dependencies to place before the objects being linked to create a
10602
 
# shared library.
10603
 
predep_objects=$lt_predep_objects
10604
 
 
10605
 
# Dependencies to place after the objects being linked to create a
10606
 
# shared library.
10607
 
postdep_objects=$lt_postdep_objects
10608
 
 
10609
 
# Dependencies to place before the objects being linked to create a
10610
 
# shared library.
10611
 
predeps=$lt_predeps
10612
 
 
10613
 
# Dependencies to place after the objects being linked to create a
10614
 
# shared library.
10615
 
postdeps=$lt_postdeps
10616
 
 
10617
 
# The library search path used internally by the compiler when linking
10618
 
# a shared library.
10619
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10620
 
 
10621
 
# Method to check whether dependent libraries are shared objects.
10622
 
deplibs_check_method=$lt_deplibs_check_method
10623
 
 
10624
 
# Command to use when deplibs_check_method == file_magic.
10625
 
file_magic_cmd=$lt_file_magic_cmd
10626
 
 
10627
 
# Flag that allows shared libraries with undefined symbols to be built.
10628
 
allow_undefined_flag=$lt_allow_undefined_flag
10629
 
 
10630
 
# Flag that forces no undefined symbols.
10631
 
no_undefined_flag=$lt_no_undefined_flag
10632
 
 
10633
 
# Commands used to finish a libtool library installation in a directory.
10634
 
finish_cmds=$lt_finish_cmds
10635
 
 
10636
 
# Same as above, but a single script fragment to be evaled but not shown.
10637
 
finish_eval=$lt_finish_eval
10638
 
 
10639
 
# Take the output of nm and produce a listing of raw symbols and C names.
10640
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10641
 
 
10642
 
# Transform the output of nm in a proper C declaration
10643
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10644
 
 
10645
 
# Transform the output of nm in a C name address pair
10646
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10647
 
 
10648
 
# This is the shared library runtime path variable.
10649
 
runpath_var=$runpath_var
10650
 
 
10651
 
# This is the shared library path variable.
10652
 
shlibpath_var=$shlibpath_var
10653
 
 
10654
 
# Is shlibpath searched before the hard-coded library search path?
10655
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10656
 
 
10657
 
# How to hardcode a shared library path into an executable.
10658
 
hardcode_action=$hardcode_action
10659
 
 
10660
 
# Whether we should hardcode library paths into libraries.
10661
 
hardcode_into_libs=$hardcode_into_libs
10662
 
 
10663
 
# Flag to hardcode \$libdir into a binary during linking.
10664
 
# This must work even if \$libdir does not exist.
10665
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10666
 
 
10667
 
# If ld is used when linking, flag to hardcode \$libdir into
10668
 
# a binary during linking. This must work even if \$libdir does
10669
 
# not exist.
10670
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10671
 
 
10672
 
# Whether we need a single -rpath flag with a separated argument.
10673
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10674
 
 
10675
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10676
 
# resulting binary.
10677
 
hardcode_direct=$hardcode_direct
10678
 
 
10679
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10680
 
# resulting binary.
10681
 
hardcode_minus_L=$hardcode_minus_L
10682
 
 
10683
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10684
 
# the resulting binary.
10685
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
10686
 
 
10687
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
10688
 
# and all subsequent libraries and executables linked against it.
10689
 
hardcode_automatic=$hardcode_automatic
10690
 
 
10691
 
# Variables whose values should be saved in libtool wrapper scripts and
10692
 
# restored at relink time.
10693
 
variables_saved_for_relink="$variables_saved_for_relink"
10694
 
 
10695
 
# Whether libtool must link a program against all its dependency libraries.
10696
 
link_all_deplibs=$link_all_deplibs
10697
 
 
10698
 
# Compile-time system search path for libraries
10699
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10700
 
 
10701
 
# Run-time system search path for libraries
10702
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10703
 
 
10704
 
# Fix the shell variable \$srcfile for the compiler.
10705
 
fix_srcfile_path="$fix_srcfile_path"
10706
 
 
10707
 
# Set to yes if exported symbols are required.
10708
 
always_export_symbols=$always_export_symbols
10709
 
 
10710
 
# The commands to list exported symbols.
10711
 
export_symbols_cmds=$lt_export_symbols_cmds
10712
 
 
10713
 
# The commands to extract the exported symbol list from a shared archive.
10714
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10715
 
 
10716
 
# Symbols that should not be listed in the preloaded symbols.
10717
 
exclude_expsyms=$lt_exclude_expsyms
10718
 
 
10719
 
# Symbols that must always be exported.
10720
 
include_expsyms=$lt_include_expsyms
10721
 
 
10722
 
# ### END LIBTOOL CONFIG
10723
 
 
10724
 
__EOF__
10725
 
 
10726
 
 
10727
 
  case $host_os in
10728
 
  aix3*)
10729
 
    cat <<\EOF >> "$cfgfile"
10730
 
 
10731
 
# AIX sometimes has problems with the GCC collect2 program.  For some
10732
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
10733
 
# vanish in a puff of smoke.
10734
 
if test "X${COLLECT_NAMES+set}" != Xset; then
10735
 
  COLLECT_NAMES=
10736
 
  export COLLECT_NAMES
10737
 
fi
10738
 
EOF
10739
 
    ;;
10740
 
  esac
10741
 
 
10742
 
  # We use sed instead of cat because bash on DJGPP gets confused if
10743
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10744
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
10745
 
  # is reportedly fixed, but why not run on old versions too?
10746
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10747
 
 
10748
 
  mv -f "$cfgfile" "$ofile" || \
10749
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10750
 
  chmod +x "$ofile"
10751
 
 
10752
 
else
10753
 
  # If there is no Makefile yet, we rely on a make rule to execute
10754
 
  # `config.status --recheck' to rerun these tests and create the
10755
 
  # libtool script then.
10756
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10757
 
  if test -f "$ltmain_in"; then
10758
 
    test -f Makefile && make "$ltmain"
10759
 
  fi
10760
 
fi
10761
 
 
10762
 
 
10763
 
ac_ext=c
10764
 
ac_cpp='$CPP $CPPFLAGS'
10765
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10766
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10768
 
 
10769
 
CC="$lt_save_CC"
10770
 
 
10771
 
 
10772
 
# Check whether --with-tags or --without-tags was given.
10773
 
if test "${with_tags+set}" = set; then
10774
 
  withval="$with_tags"
10775
 
  tagnames="$withval"
10776
 
fi; 
10777
 
 
10778
 
if test -f "$ltmain" && test -n "$tagnames"; then
10779
 
  if test ! -f "${ofile}"; then
10780
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10781
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10782
 
  fi
10783
 
 
10784
 
  if test -z "$LTCC"; then
10785
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10786
 
    if test -z "$LTCC"; then
10787
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10788
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10789
 
    else
10790
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10791
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10792
 
    fi
10793
 
  fi
10794
 
 
10795
 
  # Extract list of available tagged configurations in $ofile.
10796
 
  # Note that this assumes the entire list is on one line.
10797
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10798
 
 
10799
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10800
 
  for tagname in $tagnames; do
10801
 
    IFS="$lt_save_ifs"
10802
 
    # Check whether tagname contains only valid characters
10803
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10804
 
    "") ;;
10805
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10806
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10807
 
   { (exit 1); exit 1; }; }
10808
 
        ;;
10809
 
    esac
10810
 
 
10811
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10812
 
    then
10813
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10814
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10815
 
   { (exit 1); exit 1; }; }
10816
 
    fi
10817
 
 
10818
 
    # Update the list of available tags.
10819
 
    if test -n "$tagname"; then
10820
 
      echo appending configuration tag \"$tagname\" to $ofile
10821
 
 
10822
 
      case $tagname in
10823
 
      CXX)
10824
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10825
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10826
 
            (test "X$CXX" != "Xg++"))) ; then
10827
 
          ac_ext=cc
10828
 
ac_cpp='$CXXCPP $CPPFLAGS'
10829
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10830
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10831
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10832
 
 
10833
 
 
10834
 
 
10835
 
 
10836
 
archive_cmds_need_lc_CXX=no
10837
 
allow_undefined_flag_CXX=
10838
 
always_export_symbols_CXX=no
10839
 
archive_expsym_cmds_CXX=
10840
 
export_dynamic_flag_spec_CXX=
10841
 
hardcode_direct_CXX=no
10842
 
hardcode_libdir_flag_spec_CXX=
10843
 
hardcode_libdir_flag_spec_ld_CXX=
10844
 
hardcode_libdir_separator_CXX=
10845
 
hardcode_minus_L_CXX=no
10846
 
hardcode_automatic_CXX=no
10847
 
module_cmds_CXX=
10848
 
module_expsym_cmds_CXX=
10849
 
link_all_deplibs_CXX=unknown
10850
 
old_archive_cmds_CXX=$old_archive_cmds
10851
 
no_undefined_flag_CXX=
10852
 
whole_archive_flag_spec_CXX=
10853
 
enable_shared_with_static_runtimes_CXX=no
10854
 
 
10855
 
# Dependencies to place before and after the object being linked:
10856
 
predep_objects_CXX=
10857
 
postdep_objects_CXX=
10858
 
predeps_CXX=
10859
 
postdeps_CXX=
10860
 
compiler_lib_search_path_CXX=
10861
 
 
10862
 
# Source file extension for C++ test sources.
10863
 
ac_ext=cc
10864
 
 
10865
 
# Object file extension for compiled C++ test sources.
10866
 
objext=o
10867
 
objext_CXX=$objext
10868
 
 
10869
 
# Code to be used in simple compile tests
10870
 
lt_simple_compile_test_code="int some_variable = 0;\n"
10871
 
 
10872
 
# Code to be used in simple link tests
10873
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10874
 
 
10875
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10876
 
 
10877
 
# If no C compiler was specified, use CC.
10878
 
LTCC=${LTCC-"$CC"}
10879
 
 
10880
 
# Allow CC to be a program name with arguments.
10881
 
compiler=$CC
10882
 
 
10883
 
 
10884
 
# Allow CC to be a program name with arguments.
10885
 
lt_save_CC=$CC
10886
 
lt_save_LD=$LD
10887
 
lt_save_GCC=$GCC
10888
 
GCC=$GXX
10889
 
lt_save_with_gnu_ld=$with_gnu_ld
10890
 
lt_save_path_LD=$lt_cv_path_LD
10891
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10892
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10893
 
else
10894
 
  unset lt_cv_prog_gnu_ld
10895
 
fi
10896
 
if test -n "${lt_cv_path_LDCXX+set}"; then
10897
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
10898
 
else
10899
 
  unset lt_cv_path_LD
10900
 
fi
10901
 
test -z "${LDCXX+set}" || LD=$LDCXX
10902
 
CC=${CXX-"c++"}
10903
 
compiler=$CC
10904
 
compiler_CXX=$CC
10905
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10906
 
 
10907
 
# We don't want -fno-exception wen compiling C++ code, so set the
10908
 
# no_builtin_flag separately
10909
 
if test "$GXX" = yes; then
10910
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10911
 
else
10912
 
  lt_prog_compiler_no_builtin_flag_CXX=
10913
 
fi
10914
 
 
10915
 
if test "$GXX" = yes; then
10916
 
  # Set up default GNU C++ configuration
10917
 
 
10918
 
  
10919
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10920
 
if test "${with_gnu_ld+set}" = set; then
10921
 
  withval="$with_gnu_ld"
10922
 
  test "$withval" = no || with_gnu_ld=yes
10923
 
else
10924
 
  with_gnu_ld=no
10925
 
fi; 
10926
 
ac_prog=ld
10927
 
if test "$GCC" = yes; then
10928
 
  # Check if gcc -print-prog-name=ld gives a path.
10929
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10930
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10931
 
  case $host in
10932
 
  *-*-mingw*)
10933
 
    # gcc leaves a trailing carriage return which upsets mingw
10934
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10935
 
  *)
10936
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10937
 
  esac
10938
 
  case $ac_prog in
10939
 
    # Accept absolute paths.
10940
 
    [\\/]* | ?:[\\/]*)
10941
 
      re_direlt='/[^/][^/]*/\.\./'
10942
 
      # Canonicalize the pathname of ld
10943
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10944
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10945
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10946
 
      done
10947
 
      test -z "$LD" && LD="$ac_prog"
10948
 
      ;;
10949
 
  "")
10950
 
    # If it fails, then pretend we aren't using GCC.
10951
 
    ac_prog=ld
10952
 
    ;;
10953
 
  *)
10954
 
    # If it is relative, then search for the first ld in PATH.
10955
 
    with_gnu_ld=unknown
10956
 
    ;;
10957
 
  esac
10958
 
elif test "$with_gnu_ld" = yes; then
10959
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
10960
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10961
 
else
10962
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10963
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10964
 
fi
10965
 
if test "${lt_cv_path_LD+set}" = set; then
10966
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10967
 
else
10968
 
  if test -z "$LD"; then
10969
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10970
 
  for ac_dir in $PATH; do
10971
 
    IFS="$lt_save_ifs"
10972
 
    test -z "$ac_dir" && ac_dir=.
10973
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10974
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
10975
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
10976
 
      # but apparently some GNU ld's only accept -v.
10977
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
10978
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10979
 
      *GNU* | *'with BFD'*)
10980
 
        test "$with_gnu_ld" != no && break
10981
 
        ;;
10982
 
      *)
10983
 
        test "$with_gnu_ld" != yes && break
10984
 
        ;;
10985
 
      esac
10986
 
    fi
10987
 
  done
10988
 
  IFS="$lt_save_ifs"
10989
 
else
10990
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10991
 
fi
10992
 
fi
10993
 
 
10994
 
LD="$lt_cv_path_LD"
10995
 
if test -n "$LD"; then
10996
 
  echo "$as_me:$LINENO: result: $LD" >&5
10997
 
echo "${ECHO_T}$LD" >&6
10998
 
else
10999
 
  echo "$as_me:$LINENO: result: no" >&5
11000
 
echo "${ECHO_T}no" >&6
11001
 
fi
11002
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11003
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11004
 
   { (exit 1); exit 1; }; }
11005
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11006
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11007
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11008
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11009
 
else
11010
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11011
 
case `$LD -v 2>&1 </dev/null` in
11012
 
*GNU* | *'with BFD'*)
11013
 
  lt_cv_prog_gnu_ld=yes
11014
 
  ;;
11015
 
*)
11016
 
  lt_cv_prog_gnu_ld=no
11017
 
  ;;
11018
 
esac
11019
 
fi
11020
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11021
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11022
 
with_gnu_ld=$lt_cv_prog_gnu_ld
11023
 
 
11024
 
 
11025
 
 
11026
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11027
 
  # archiving commands below assume that GNU ld is being used.
11028
 
  if test "$with_gnu_ld" = yes; then
11029
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11030
 
    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'
11031
 
 
11032
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11033
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11034
 
 
11035
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11036
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11037
 
    #     investigate it a little bit more. (MM)
11038
 
    wlarc='${wl}'
11039
 
 
11040
 
    # ancient GNU ld didn't support --whole-archive et. al.
11041
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11042
 
        grep 'no-whole-archive' > /dev/null; then
11043
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11044
 
    else
11045
 
      whole_archive_flag_spec_CXX=
11046
 
    fi
11047
 
  else
11048
 
    with_gnu_ld=no
11049
 
    wlarc=
11050
 
 
11051
 
    # A generic and very simple default shared library creation
11052
 
    # command for GNU C++ for the case where it uses the native
11053
 
    # linker, instead of GNU ld.  If possible, this setting should
11054
 
    # overridden to take advantage of the native linker features on
11055
 
    # the platform it is being used on.
11056
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11057
 
  fi
11058
 
 
11059
 
  # Commands to make compiler produce verbose output that lists
11060
 
  # what "hidden" libraries, object files and flags are used when
11061
 
  # linking a shared library.
11062
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11063
 
 
11064
 
else
11065
 
  GXX=no
11066
 
  with_gnu_ld=no
11067
 
  wlarc=
11068
 
fi
11069
 
 
11070
 
# PORTME: fill in a description of your system's C++ link characteristics
11071
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11072
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11073
 
ld_shlibs_CXX=yes
11074
 
case $host_os in
11075
 
  aix3*)
11076
 
    # FIXME: insert proper C++ library support
11077
 
    ld_shlibs_CXX=no
11078
 
    ;;
11079
 
  aix4* | aix5*)
11080
 
    if test "$host_cpu" = ia64; then
11081
 
      # On IA64, the linker does run time linking by default, so we don't
11082
 
      # have to do anything special.
11083
 
      aix_use_runtimelinking=no
11084
 
      exp_sym_flag='-Bexport'
11085
 
      no_entry_flag=""
11086
 
    else
11087
 
      aix_use_runtimelinking=no
11088
 
 
11089
 
      # Test if we are trying to use run time linking or normal
11090
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11091
 
      # need to do runtime linking.
11092
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11093
 
        for ld_flag in $LDFLAGS; do
11094
 
          case $ld_flag in
11095
 
          *-brtl*)
11096
 
            aix_use_runtimelinking=yes
11097
 
            break
11098
 
            ;;
11099
 
          esac
11100
 
        done
11101
 
      esac
11102
 
 
11103
 
      exp_sym_flag='-bexport'
11104
 
      no_entry_flag='-bnoentry'
11105
 
    fi
11106
 
 
11107
 
    # When large executables or shared objects are built, AIX ld can
11108
 
    # have problems creating the table of contents.  If linking a library
11109
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11110
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11111
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11112
 
 
11113
 
    archive_cmds_CXX=''
11114
 
    hardcode_direct_CXX=yes
11115
 
    hardcode_libdir_separator_CXX=':'
11116
 
    link_all_deplibs_CXX=yes
11117
 
 
11118
 
    if test "$GXX" = yes; then
11119
 
      case $host_os in aix4.[012]|aix4.[012].*)
11120
 
      # We only want to do this on AIX 4.2 and lower, the check
11121
 
      # below for broken collect2 doesn't work under 4.3+
11122
 
        collect2name=`${CC} -print-prog-name=collect2`
11123
 
        if test -f "$collect2name" && \
11124
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11125
 
        then
11126
 
          # We have reworked collect2
11127
 
          hardcode_direct_CXX=yes
11128
 
        else
11129
 
          # We have old collect2
11130
 
          hardcode_direct_CXX=unsupported
11131
 
          # It fails to find uninstalled libraries when the uninstalled
11132
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11133
 
          # to unsupported forces relinking
11134
 
          hardcode_minus_L_CXX=yes
11135
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11136
 
          hardcode_libdir_separator_CXX=
11137
 
        fi
11138
 
      esac
11139
 
      shared_flag='-shared'
11140
 
      if test "$aix_use_runtimelinking" = yes; then
11141
 
        shared_flag="$shared_flag "'${wl}-G'
11142
 
      fi
11143
 
    else
11144
 
      # not using gcc
11145
 
      if test "$host_cpu" = ia64; then
11146
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11147
 
        # chokes on -Wl,-G. The following line is correct:
11148
 
        shared_flag='-G'
11149
 
      else
11150
 
        if test "$aix_use_runtimelinking" = yes; then
11151
 
          shared_flag='${wl}-G'
11152
 
        else
11153
 
          shared_flag='${wl}-bM:SRE'
11154
 
        fi
11155
 
      fi
11156
 
    fi
11157
 
 
11158
 
    # It seems that -bexpall does not export symbols beginning with
11159
 
    # underscore (_), so it is better to generate a list of symbols to export.
11160
 
    always_export_symbols_CXX=yes
11161
 
    if test "$aix_use_runtimelinking" = yes; then
11162
 
      # Warning - without using the other runtime loading flags (-brtl),
11163
 
      # -berok will link without error, but may produce a broken library.
11164
 
      allow_undefined_flag_CXX='-berok'
11165
 
      # Determine the default libpath from the value encoded in an empty executable.
11166
 
      cat >conftest.$ac_ext <<_ACEOF
11167
 
/* confdefs.h.  */
11168
 
_ACEOF
11169
 
cat confdefs.h >>conftest.$ac_ext
11170
 
cat >>conftest.$ac_ext <<_ACEOF
11171
 
/* end confdefs.h.  */
11172
 
 
11173
 
int
11174
 
main ()
11175
 
{
11176
 
 
11177
 
  ;
11178
 
  return 0;
11179
 
}
11180
 
_ACEOF
11181
 
rm -f conftest.$ac_objext conftest$ac_exeext
11182
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11183
 
  (eval $ac_link) 2>conftest.er1
11184
 
  ac_status=$?
11185
 
  grep -v '^ *+' conftest.er1 >conftest.err
11186
 
  rm -f conftest.er1
11187
 
  cat conftest.err >&5
11188
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189
 
  (exit $ac_status); } &&
11190
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11191
 
                         || test ! -s conftest.err'
11192
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193
 
  (eval $ac_try) 2>&5
11194
 
  ac_status=$?
11195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196
 
  (exit $ac_status); }; } &&
11197
 
         { ac_try='test -s conftest$ac_exeext'
11198
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199
 
  (eval $ac_try) 2>&5
11200
 
  ac_status=$?
11201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202
 
  (exit $ac_status); }; }; then
11203
 
  
11204
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11205
 
}'`
11206
 
# Check for a 64-bit object if we didn't find anything.
11207
 
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; }
11208
 
}'`; fi
11209
 
else
11210
 
  echo "$as_me: failed program was:" >&5
11211
 
sed 's/^/| /' conftest.$ac_ext >&5
11212
 
 
11213
 
fi
11214
 
rm -f conftest.err conftest.$ac_objext \
11215
 
      conftest$ac_exeext conftest.$ac_ext
11216
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11217
 
 
11218
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11219
 
 
11220
 
      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"
11221
 
     else
11222
 
      if test "$host_cpu" = ia64; then
11223
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11224
 
        allow_undefined_flag_CXX="-z nodefs"
11225
 
        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"
11226
 
      else
11227
 
        # Determine the default libpath from the value encoded in an empty executable.
11228
 
        cat >conftest.$ac_ext <<_ACEOF
11229
 
/* confdefs.h.  */
11230
 
_ACEOF
11231
 
cat confdefs.h >>conftest.$ac_ext
11232
 
cat >>conftest.$ac_ext <<_ACEOF
11233
 
/* end confdefs.h.  */
11234
 
 
11235
 
int
11236
 
main ()
11237
 
{
11238
 
 
11239
 
  ;
11240
 
  return 0;
11241
 
}
11242
 
_ACEOF
11243
 
rm -f conftest.$ac_objext conftest$ac_exeext
11244
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245
 
  (eval $ac_link) 2>conftest.er1
11246
 
  ac_status=$?
11247
 
  grep -v '^ *+' conftest.er1 >conftest.err
11248
 
  rm -f conftest.er1
11249
 
  cat conftest.err >&5
11250
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251
 
  (exit $ac_status); } &&
11252
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11253
 
                         || test ! -s conftest.err'
11254
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255
 
  (eval $ac_try) 2>&5
11256
 
  ac_status=$?
11257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258
 
  (exit $ac_status); }; } &&
11259
 
         { ac_try='test -s conftest$ac_exeext'
11260
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261
 
  (eval $ac_try) 2>&5
11262
 
  ac_status=$?
11263
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264
 
  (exit $ac_status); }; }; then
11265
 
  
11266
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11267
 
}'`
11268
 
# Check for a 64-bit object if we didn't find anything.
11269
 
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; }
11270
 
}'`; fi
11271
 
else
11272
 
  echo "$as_me: failed program was:" >&5
11273
 
sed 's/^/| /' conftest.$ac_ext >&5
11274
 
 
11275
 
fi
11276
 
rm -f conftest.err conftest.$ac_objext \
11277
 
      conftest$ac_exeext conftest.$ac_ext
11278
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11279
 
 
11280
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11281
 
        # Warning - without using the other run time loading flags,
11282
 
        # -berok will link without error, but may produce a broken library.
11283
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11284
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11285
 
        # -bexpall does not export symbols beginning with underscore (_)
11286
 
        always_export_symbols_CXX=yes
11287
 
        # Exported symbols can be pulled into shared objects from archives
11288
 
        whole_archive_flag_spec_CXX=' '
11289
 
        archive_cmds_need_lc_CXX=yes
11290
 
        # This is similar to how AIX traditionally builds it's shared libraries.
11291
 
        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'
11292
 
      fi
11293
 
    fi
11294
 
    ;;
11295
 
  chorus*)
11296
 
    case $cc_basename in
11297
 
      *)
11298
 
        # FIXME: insert proper C++ library support
11299
 
        ld_shlibs_CXX=no
11300
 
        ;;
11301
 
    esac
11302
 
    ;;
11303
 
 
11304
 
 
11305
 
  cygwin* | mingw* | pw32*)
11306
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11307
 
    # as there is no search path for DLLs.
11308
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11309
 
    allow_undefined_flag_CXX=unsupported
11310
 
    always_export_symbols_CXX=no
11311
 
    enable_shared_with_static_runtimes_CXX=yes
11312
 
 
11313
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11314
 
      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'
11315
 
      # If the export-symbols file already is a .def file (1st line
11316
 
      # is EXPORTS), use it as is; otherwise, prepend...
11317
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11318
 
        cp $export_symbols $output_objdir/$soname.def;
11319
 
      else
11320
 
        echo EXPORTS > $output_objdir/$soname.def;
11321
 
        cat $export_symbols >> $output_objdir/$soname.def;
11322
 
      fi~
11323
 
      $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'
11324
 
    else
11325
 
      ld_shlibs_CXX=no
11326
 
    fi
11327
 
  ;;
11328
 
      darwin* | rhapsody*)
11329
 
        case "$host_os" in
11330
 
        rhapsody* | darwin1.[012])
11331
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11332
 
         ;;
11333
 
       *) # Darwin 1.3 on
11334
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11335
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11336
 
         else
11337
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
11338
 
             10.[012])
11339
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11340
 
               ;;
11341
 
             10.*)
11342
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11343
 
               ;;
11344
 
           esac
11345
 
         fi
11346
 
         ;;
11347
 
        esac
11348
 
      archive_cmds_need_lc_CXX=no
11349
 
      hardcode_direct_CXX=no
11350
 
      hardcode_automatic_CXX=yes
11351
 
      hardcode_shlibpath_var_CXX=unsupported
11352
 
      whole_archive_flag_spec_CXX=''
11353
 
      link_all_deplibs_CXX=yes
11354
 
 
11355
 
    if test "$GXX" = yes ; then
11356
 
      lt_int_apple_cc_single_mod=no
11357
 
      output_verbose_link_cmd='echo'
11358
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11359
 
       lt_int_apple_cc_single_mod=yes
11360
 
      fi
11361
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11362
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11363
 
      else
11364
 
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11365
 
        fi
11366
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11367
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11368
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11369
 
            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}'
11370
 
          else
11371
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11372
 
          fi
11373
 
            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}'
11374
 
      else
11375
 
      case "$cc_basename" in
11376
 
        xlc*)
11377
 
         output_verbose_link_cmd='echo'
11378
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11379
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11380
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11381
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11382
 
          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}'
11383
 
          ;;
11384
 
       *)
11385
 
         ld_shlibs_CXX=no
11386
 
          ;;
11387
 
      esac
11388
 
      fi
11389
 
        ;;
11390
 
 
11391
 
  dgux*)
11392
 
    case $cc_basename in
11393
 
      ec++)
11394
 
        # FIXME: insert proper C++ library support
11395
 
        ld_shlibs_CXX=no
11396
 
        ;;
11397
 
      ghcx)
11398
 
        # Green Hills C++ Compiler
11399
 
        # FIXME: insert proper C++ library support
11400
 
        ld_shlibs_CXX=no
11401
 
        ;;
11402
 
      *)
11403
 
        # FIXME: insert proper C++ library support
11404
 
        ld_shlibs_CXX=no
11405
 
        ;;
11406
 
    esac
11407
 
    ;;
11408
 
  freebsd[12]*)
11409
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11410
 
    ld_shlibs_CXX=no
11411
 
    ;;
11412
 
  freebsd-elf*)
11413
 
    archive_cmds_need_lc_CXX=no
11414
 
    ;;
11415
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
11416
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11417
 
    # conventions
11418
 
    ld_shlibs_CXX=yes
11419
 
    ;;
11420
 
  gnu*)
11421
 
    ;;
11422
 
  hpux9*)
11423
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11424
 
    hardcode_libdir_separator_CXX=:
11425
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11426
 
    hardcode_direct_CXX=yes
11427
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11428
 
                                # but as the default
11429
 
                                # location of the library.
11430
 
 
11431
 
    case $cc_basename in
11432
 
    CC)
11433
 
      # FIXME: insert proper C++ library support
11434
 
      ld_shlibs_CXX=no
11435
 
      ;;
11436
 
    aCC)
11437
 
      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'
11438
 
      # Commands to make compiler produce verbose output that lists
11439
 
      # what "hidden" libraries, object files and flags are used when
11440
 
      # linking a shared library.
11441
 
      #
11442
 
      # There doesn't appear to be a way to prevent this compiler from
11443
 
      # explicitly linking system object files so we need to strip them
11444
 
      # from the output so that they don't get included in the library
11445
 
      # dependencies.
11446
 
      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'
11447
 
      ;;
11448
 
    *)
11449
 
      if test "$GXX" = yes; then
11450
 
        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'
11451
 
      else
11452
 
        # FIXME: insert proper C++ library support
11453
 
        ld_shlibs_CXX=no
11454
 
      fi
11455
 
      ;;
11456
 
    esac
11457
 
    ;;
11458
 
  hpux10*|hpux11*)
11459
 
    if test $with_gnu_ld = no; then
11460
 
      case "$host_cpu" in
11461
 
      hppa*64*)
11462
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11463
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11464
 
        hardcode_libdir_separator_CXX=:
11465
 
        ;;
11466
 
      ia64*)
11467
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
11468
 
        ;;
11469
 
      *)
11470
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11471
 
        hardcode_libdir_separator_CXX=:
11472
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11473
 
        ;;
11474
 
      esac
11475
 
    fi
11476
 
    case "$host_cpu" in
11477
 
    hppa*64*)
11478
 
      hardcode_direct_CXX=no
11479
 
      hardcode_shlibpath_var_CXX=no
11480
 
      ;;
11481
 
    ia64*)
11482
 
      hardcode_direct_CXX=no
11483
 
      hardcode_shlibpath_var_CXX=no
11484
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11485
 
                                              # but as the default
11486
 
                                              # location of the library.
11487
 
      ;;
11488
 
    *)
11489
 
      hardcode_direct_CXX=yes
11490
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11491
 
                                              # but as the default
11492
 
                                              # location of the library.
11493
 
      ;;
11494
 
    esac
11495
 
 
11496
 
    case $cc_basename in
11497
 
      CC)
11498
 
        # FIXME: insert proper C++ library support
11499
 
        ld_shlibs_CXX=no
11500
 
        ;;
11501
 
      aCC)
11502
 
        case "$host_cpu" in
11503
 
        hppa*64*|ia64*)
11504
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11505
 
          ;;
11506
 
        *)
11507
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11508
 
          ;;
11509
 
        esac
11510
 
        # Commands to make compiler produce verbose output that lists
11511
 
        # what "hidden" libraries, object files and flags are used when
11512
 
        # linking a shared library.
11513
 
        #
11514
 
        # There doesn't appear to be a way to prevent this compiler from
11515
 
        # explicitly linking system object files so we need to strip them
11516
 
        # from the output so that they don't get included in the library
11517
 
        # dependencies.
11518
 
        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'
11519
 
        ;;
11520
 
      *)
11521
 
        if test "$GXX" = yes; then
11522
 
          if test $with_gnu_ld = no; then
11523
 
            case "$host_cpu" in
11524
 
            ia64*|hppa*64*)
11525
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11526
 
              ;;
11527
 
            *)
11528
 
              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'
11529
 
              ;;
11530
 
            esac
11531
 
          fi
11532
 
        else
11533
 
          # FIXME: insert proper C++ library support
11534
 
          ld_shlibs_CXX=no
11535
 
        fi
11536
 
        ;;
11537
 
    esac
11538
 
    ;;
11539
 
  irix5* | irix6*)
11540
 
    case $cc_basename in
11541
 
      CC)
11542
 
        # SGI C++
11543
 
        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'
11544
 
 
11545
 
        # Archives containing C++ object files must be created using
11546
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11547
 
        # necessary to make sure instantiated templates are included
11548
 
        # in the archive.
11549
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11550
 
        ;;
11551
 
      *)
11552
 
        if test "$GXX" = yes; then
11553
 
          if test "$with_gnu_ld" = no; then
11554
 
            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'
11555
 
          else
11556
 
            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'
11557
 
          fi
11558
 
        fi
11559
 
        link_all_deplibs_CXX=yes
11560
 
        ;;
11561
 
    esac
11562
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11563
 
    hardcode_libdir_separator_CXX=:
11564
 
    ;;
11565
 
  linux*)
11566
 
    case $cc_basename in
11567
 
      KCC)
11568
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11569
 
 
11570
 
        # KCC will only create a shared library if the output file
11571
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11572
 
        # to its proper name (with version) after linking.
11573
 
        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'
11574
 
        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'
11575
 
        # Commands to make compiler produce verbose output that lists
11576
 
        # what "hidden" libraries, object files and flags are used when
11577
 
        # linking a shared library.
11578
 
        #
11579
 
        # There doesn't appear to be a way to prevent this compiler from
11580
 
        # explicitly linking system object files so we need to strip them
11581
 
        # from the output so that they don't get included in the library
11582
 
        # dependencies.
11583
 
        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'
11584
 
 
11585
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11586
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11587
 
 
11588
 
        # Archives containing C++ object files must be created using
11589
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11590
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11591
 
        ;;
11592
 
      icpc)
11593
 
        # Intel C++
11594
 
        with_gnu_ld=yes
11595
 
        # version 8.0 and above of icpc choke on multiply defined symbols
11596
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
11597
 
        # earlier do not add the objects themselves.
11598
 
        case `$CC -V 2>&1` in
11599
 
        *"Version 7."*)
11600
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11601
 
          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'
11602
 
          ;;
11603
 
        *)  # Version 8.0 or newer
11604
 
          tmp_idyn=
11605
 
          case $host_cpu in
11606
 
            ia64*) tmp_idyn=' -i_dynamic';;
11607
 
          esac
11608
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11609
 
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11610
 
          ;;
11611
 
        esac
11612
 
        archive_cmds_need_lc_CXX=no
11613
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11614
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11615
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11616
 
        ;;
11617
 
      pgCC)
11618
 
        # Portland Group C++ compiler
11619
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11620
 
        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'
11621
 
 
11622
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11623
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11624
 
        ;;
11625
 
      cxx)
11626
 
        # Compaq C++
11627
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11628
 
        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'
11629
 
 
11630
 
        runpath_var=LD_RUN_PATH
11631
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11632
 
        hardcode_libdir_separator_CXX=:
11633
 
 
11634
 
        # Commands to make compiler produce verbose output that lists
11635
 
        # what "hidden" libraries, object files and flags are used when
11636
 
        # linking a shared library.
11637
 
        #
11638
 
        # There doesn't appear to be a way to prevent this compiler from
11639
 
        # explicitly linking system object files so we need to strip them
11640
 
        # from the output so that they don't get included in the library
11641
 
        # dependencies.
11642
 
        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'
11643
 
        ;;
11644
 
    esac
11645
 
    ;;
11646
 
  lynxos*)
11647
 
    # FIXME: insert proper C++ library support
11648
 
    ld_shlibs_CXX=no
11649
 
    ;;
11650
 
  m88k*)
11651
 
    # FIXME: insert proper C++ library support
11652
 
    ld_shlibs_CXX=no
11653
 
    ;;
11654
 
  mvs*)
11655
 
    case $cc_basename in
11656
 
      cxx)
11657
 
        # FIXME: insert proper C++ library support
11658
 
        ld_shlibs_CXX=no
11659
 
        ;;
11660
 
      *)
11661
 
        # FIXME: insert proper C++ library support
11662
 
        ld_shlibs_CXX=no
11663
 
        ;;
11664
 
    esac
11665
 
    ;;
11666
 
  netbsd*)
11667
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11668
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11669
 
      wlarc=
11670
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
11671
 
      hardcode_direct_CXX=yes
11672
 
      hardcode_shlibpath_var_CXX=no
11673
 
    fi
11674
 
    # Workaround some broken pre-1.5 toolchains
11675
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11676
 
    ;;
11677
 
  openbsd2*)
11678
 
    # C++ shared libraries are fairly broken
11679
 
    ld_shlibs_CXX=no
11680
 
    ;;
11681
 
  openbsd*)
11682
 
    hardcode_direct_CXX=yes
11683
 
    hardcode_shlibpath_var_CXX=no
11684
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11685
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11686
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11687
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11688
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11689
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11690
 
    fi
11691
 
    output_verbose_link_cmd='echo'
11692
 
    ;;
11693
 
  osf3*)
11694
 
    case $cc_basename in
11695
 
      KCC)
11696
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11697
 
 
11698
 
        # KCC will only create a shared library if the output file
11699
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11700
 
        # to its proper name (with version) after linking.
11701
 
        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'
11702
 
 
11703
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704
 
        hardcode_libdir_separator_CXX=:
11705
 
 
11706
 
        # Archives containing C++ object files must be created using
11707
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11708
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11709
 
 
11710
 
        ;;
11711
 
      RCC)
11712
 
        # Rational C++ 2.4.1
11713
 
        # FIXME: insert proper C++ library support
11714
 
        ld_shlibs_CXX=no
11715
 
        ;;
11716
 
      cxx)
11717
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11718
 
        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'
11719
 
 
11720
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11721
 
        hardcode_libdir_separator_CXX=:
11722
 
 
11723
 
        # Commands to make compiler produce verbose output that lists
11724
 
        # what "hidden" libraries, object files and flags are used when
11725
 
        # linking a shared library.
11726
 
        #
11727
 
        # There doesn't appear to be a way to prevent this compiler from
11728
 
        # explicitly linking system object files so we need to strip them
11729
 
        # from the output so that they don't get included in the library
11730
 
        # dependencies.
11731
 
        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'
11732
 
        ;;
11733
 
      *)
11734
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11735
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11736
 
          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'
11737
 
 
11738
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11739
 
          hardcode_libdir_separator_CXX=:
11740
 
 
11741
 
          # Commands to make compiler produce verbose output that lists
11742
 
          # what "hidden" libraries, object files and flags are used when
11743
 
          # linking a shared library.
11744
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11745
 
 
11746
 
        else
11747
 
          # FIXME: insert proper C++ library support
11748
 
          ld_shlibs_CXX=no
11749
 
        fi
11750
 
        ;;
11751
 
    esac
11752
 
    ;;
11753
 
  osf4* | osf5*)
11754
 
    case $cc_basename in
11755
 
      KCC)
11756
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11757
 
 
11758
 
        # KCC will only create a shared library if the output file
11759
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11760
 
        # to its proper name (with version) after linking.
11761
 
        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'
11762
 
 
11763
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11764
 
        hardcode_libdir_separator_CXX=:
11765
 
 
11766
 
        # Archives containing C++ object files must be created using
11767
 
        # the KAI C++ compiler.
11768
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11769
 
        ;;
11770
 
      RCC)
11771
 
        # Rational C++ 2.4.1
11772
 
        # FIXME: insert proper C++ library support
11773
 
        ld_shlibs_CXX=no
11774
 
        ;;
11775
 
      cxx)
11776
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
11777
 
        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'
11778
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11779
 
          echo "-hidden">> $lib.exp~
11780
 
          $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~
11781
 
          $rm $lib.exp'
11782
 
 
11783
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11784
 
        hardcode_libdir_separator_CXX=:
11785
 
 
11786
 
        # Commands to make compiler produce verbose output that lists
11787
 
        # what "hidden" libraries, object files and flags are used when
11788
 
        # linking a shared library.
11789
 
        #
11790
 
        # There doesn't appear to be a way to prevent this compiler from
11791
 
        # explicitly linking system object files so we need to strip them
11792
 
        # from the output so that they don't get included in the library
11793
 
        # dependencies.
11794
 
        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'
11795
 
        ;;
11796
 
      *)
11797
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11798
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11799
 
         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'
11800
 
 
11801
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11802
 
          hardcode_libdir_separator_CXX=:
11803
 
 
11804
 
          # Commands to make compiler produce verbose output that lists
11805
 
          # what "hidden" libraries, object files and flags are used when
11806
 
          # linking a shared library.
11807
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11808
 
 
11809
 
        else
11810
 
          # FIXME: insert proper C++ library support
11811
 
          ld_shlibs_CXX=no
11812
 
        fi
11813
 
        ;;
11814
 
    esac
11815
 
    ;;
11816
 
  psos*)
11817
 
    # FIXME: insert proper C++ library support
11818
 
    ld_shlibs_CXX=no
11819
 
    ;;
11820
 
  sco*)
11821
 
    archive_cmds_need_lc_CXX=no
11822
 
    case $cc_basename in
11823
 
      CC)
11824
 
        # FIXME: insert proper C++ library support
11825
 
        ld_shlibs_CXX=no
11826
 
        ;;
11827
 
      *)
11828
 
        # FIXME: insert proper C++ library support
11829
 
        ld_shlibs_CXX=no
11830
 
        ;;
11831
 
    esac
11832
 
    ;;
11833
 
  sunos4*)
11834
 
    case $cc_basename in
11835
 
      CC)
11836
 
        # Sun C++ 4.x
11837
 
        # FIXME: insert proper C++ library support
11838
 
        ld_shlibs_CXX=no
11839
 
        ;;
11840
 
      lcc)
11841
 
        # Lucid
11842
 
        # FIXME: insert proper C++ library support
11843
 
        ld_shlibs_CXX=no
11844
 
        ;;
11845
 
      *)
11846
 
        # FIXME: insert proper C++ library support
11847
 
        ld_shlibs_CXX=no
11848
 
        ;;
11849
 
    esac
11850
 
    ;;
11851
 
  solaris*)
11852
 
    case $cc_basename in
11853
 
      CC)
11854
 
        # Sun C++ 4.2, 5.x and Centerline C++
11855
 
        no_undefined_flag_CXX=' -zdefs'
11856
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11857
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11858
 
        $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'
11859
 
 
11860
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11861
 
        hardcode_shlibpath_var_CXX=no
11862
 
        case $host_os in
11863
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11864
 
          *)
11865
 
            # The C++ compiler is used as linker so we must use $wl
11866
 
            # flag to pass the commands to the underlying system
11867
 
            # linker.
11868
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11869
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11870
 
            ;;
11871
 
        esac
11872
 
        link_all_deplibs_CXX=yes
11873
 
 
11874
 
        # Commands to make compiler produce verbose output that lists
11875
 
        # what "hidden" libraries, object files and flags are used when
11876
 
        # linking a shared library.
11877
 
        #
11878
 
        # There doesn't appear to be a way to prevent this compiler from
11879
 
        # explicitly linking system object files so we need to strip them
11880
 
        # from the output so that they don't get included in the library
11881
 
        # dependencies.
11882
 
        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'
11883
 
 
11884
 
        # Archives containing C++ object files must be created using
11885
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11886
 
        # necessary to make sure instantiated templates are included
11887
 
        # in the archive.
11888
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11889
 
        ;;
11890
 
      gcx)
11891
 
        # Green Hills C++ Compiler
11892
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11893
 
 
11894
 
        # The C++ compiler must be used to create the archive.
11895
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11896
 
        ;;
11897
 
      *)
11898
 
        # GNU C++ compiler with Solaris linker
11899
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11900
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11901
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
11902
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11903
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11904
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11905
 
 
11906
 
            # Commands to make compiler produce verbose output that lists
11907
 
            # what "hidden" libraries, object files and flags are used when
11908
 
            # linking a shared library.
11909
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11910
 
          else
11911
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11912
 
            # platform.
11913
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11914
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11915
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11916
 
 
11917
 
            # Commands to make compiler produce verbose output that lists
11918
 
            # what "hidden" libraries, object files and flags are used when
11919
 
            # linking a shared library.
11920
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11921
 
          fi
11922
 
 
11923
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11924
 
        fi
11925
 
        ;;
11926
 
    esac
11927
 
    ;;
11928
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11929
 
    archive_cmds_need_lc_CXX=no
11930
 
    ;;
11931
 
  tandem*)
11932
 
    case $cc_basename in
11933
 
      NCC)
11934
 
        # NonStop-UX NCC 3.20
11935
 
        # FIXME: insert proper C++ library support
11936
 
        ld_shlibs_CXX=no
11937
 
        ;;
11938
 
      *)
11939
 
        # FIXME: insert proper C++ library support
11940
 
        ld_shlibs_CXX=no
11941
 
        ;;
11942
 
    esac
11943
 
    ;;
11944
 
  vxworks*)
11945
 
    # FIXME: insert proper C++ library support
11946
 
    ld_shlibs_CXX=no
11947
 
    ;;
11948
 
  *)
11949
 
    # FIXME: insert proper C++ library support
11950
 
    ld_shlibs_CXX=no
11951
 
    ;;
11952
 
esac
11953
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11954
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11955
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
11956
 
 
11957
 
GCC_CXX="$GXX"
11958
 
LD_CXX="$LD"
11959
 
 
11960
 
 
11961
 
cat > conftest.$ac_ext <<EOF
11962
 
class Foo
11963
 
{
11964
 
public:
11965
 
  Foo (void) { a = 0; }
11966
 
private:
11967
 
  int a;
11968
 
};
11969
 
EOF
11970
 
 
11971
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11972
 
  (eval $ac_compile) 2>&5
11973
 
  ac_status=$?
11974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975
 
  (exit $ac_status); }; then
11976
 
  # Parse the compiler output and extract the necessary
11977
 
  # objects, libraries and library flags.
11978
 
 
11979
 
  # Sentinel used to keep track of whether or not we are before
11980
 
  # the conftest object file.
11981
 
  pre_test_object_deps_done=no
11982
 
 
11983
 
  # The `*' in the case matches for architectures that use `case' in
11984
 
  # $output_verbose_cmd can trigger glob expansion during the loop
11985
 
  # eval without this substitution.
11986
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11987
 
 
11988
 
  for p in `eval $output_verbose_link_cmd`; do
11989
 
    case $p in
11990
 
 
11991
 
    -L* | -R* | -l*)
11992
 
       # Some compilers place space between "-{L,R}" and the path.
11993
 
       # Remove the space.
11994
 
       if test $p = "-L" \
11995
 
          || test $p = "-R"; then
11996
 
         prev=$p
11997
 
         continue
11998
 
       else
11999
 
         prev=
12000
 
       fi
12001
 
 
12002
 
       if test "$pre_test_object_deps_done" = no; then
12003
 
         case $p in
12004
 
         -L* | -R*)
12005
 
           # Internal compiler library paths should come after those
12006
 
           # provided the user.  The postdeps already come after the
12007
 
           # user supplied libs so there is no need to process them.
12008
 
           if test -z "$compiler_lib_search_path_CXX"; then
12009
 
             compiler_lib_search_path_CXX="${prev}${p}"
12010
 
           else
12011
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12012
 
           fi
12013
 
           ;;
12014
 
         # The "-l" case would never come before the object being
12015
 
         # linked, so don't bother handling this case.
12016
 
         esac
12017
 
       else
12018
 
         if test -z "$postdeps_CXX"; then
12019
 
           postdeps_CXX="${prev}${p}"
12020
 
         else
12021
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12022
 
         fi
12023
 
       fi
12024
 
       ;;
12025
 
 
12026
 
    *.$objext)
12027
 
       # This assumes that the test object file only shows up
12028
 
       # once in the compiler output.
12029
 
       if test "$p" = "conftest.$objext"; then
12030
 
         pre_test_object_deps_done=yes
12031
 
         continue
12032
 
       fi
12033
 
 
12034
 
       if test "$pre_test_object_deps_done" = no; then
12035
 
         if test -z "$predep_objects_CXX"; then
12036
 
           predep_objects_CXX="$p"
12037
 
         else
12038
 
           predep_objects_CXX="$predep_objects_CXX $p"
12039
 
         fi
12040
 
       else
12041
 
         if test -z "$postdep_objects_CXX"; then
12042
 
           postdep_objects_CXX="$p"
12043
 
         else
12044
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12045
 
         fi
12046
 
       fi
12047
 
       ;;
12048
 
 
12049
 
    *) ;; # Ignore the rest.
12050
 
 
12051
 
    esac
12052
 
  done
12053
 
 
12054
 
  # Clean up.
12055
 
  rm -f a.out a.exe
12056
 
else
12057
 
  echo "libtool.m4: error: problem compiling CXX test program"
12058
 
fi
12059
 
 
12060
 
$rm -f confest.$objext
12061
 
 
12062
 
case " $postdeps_CXX " in
12063
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12064
 
esac
12065
 
 
12066
 
lt_prog_compiler_wl_CXX=
12067
 
lt_prog_compiler_pic_CXX=
12068
 
lt_prog_compiler_static_CXX=
12069
 
 
12070
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12071
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12072
 
 
12073
 
  # C++ specific cases for pic, static, wl, etc.
12074
 
  if test "$GXX" = yes; then
12075
 
    lt_prog_compiler_wl_CXX='-Wl,'
12076
 
    lt_prog_compiler_static_CXX='-static'
12077
 
 
12078
 
    case $host_os in
12079
 
    aix*)
12080
 
      # All AIX code is PIC.
12081
 
      if test "$host_cpu" = ia64; then
12082
 
        # AIX 5 now supports IA64 processor
12083
 
        lt_prog_compiler_static_CXX='-Bstatic'
12084
 
      fi
12085
 
      ;;
12086
 
    amigaos*)
12087
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12088
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12089
 
      # like `-m68040'.
12090
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12091
 
      ;;
12092
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12093
 
      # PIC is the default for these OSes.
12094
 
      ;;
12095
 
    mingw* | os2* | pw32*)
12096
 
      # This hack is so that the source file can tell whether it is being
12097
 
      # built for inclusion in a dll (and should export symbols for example).
12098
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12099
 
      ;;
12100
 
    darwin* | rhapsody*)
12101
 
      # PIC is the default on this platform
12102
 
      # Common symbols not allowed in MH_DYLIB files
12103
 
      lt_prog_compiler_pic_CXX='-fno-common'
12104
 
      ;;
12105
 
    *djgpp*)
12106
 
      # DJGPP does not support shared libraries at all
12107
 
      lt_prog_compiler_pic_CXX=
12108
 
      ;;
12109
 
    sysv4*MP*)
12110
 
      if test -d /usr/nec; then
12111
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12112
 
      fi
12113
 
      ;;
12114
 
    hpux*)
12115
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12116
 
      # not for PA HP-UX.
12117
 
      case "$host_cpu" in
12118
 
      hppa*64*|ia64*)
12119
 
        ;;
12120
 
      *)
12121
 
        lt_prog_compiler_pic_CXX='-fPIC'
12122
 
        ;;
12123
 
      esac
12124
 
      ;;
12125
 
    *)
12126
 
      lt_prog_compiler_pic_CXX='-fPIC'
12127
 
      ;;
12128
 
    esac
12129
 
  else
12130
 
    case $host_os in
12131
 
      aix4* | aix5*)
12132
 
        # All AIX code is PIC.
12133
 
        if test "$host_cpu" = ia64; then
12134
 
          # AIX 5 now supports IA64 processor
12135
 
          lt_prog_compiler_static_CXX='-Bstatic'
12136
 
        else
12137
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12138
 
        fi
12139
 
        ;;
12140
 
      chorus*)
12141
 
        case $cc_basename in
12142
 
        cxch68)
12143
 
          # Green Hills C++ Compiler
12144
 
          # _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"
12145
 
          ;;
12146
 
        esac
12147
 
        ;;
12148
 
       darwin*)
12149
 
         # PIC is the default on this platform
12150
 
         # Common symbols not allowed in MH_DYLIB files
12151
 
         case "$cc_basename" in
12152
 
           xlc*)
12153
 
           lt_prog_compiler_pic_CXX='-qnocommon'
12154
 
           lt_prog_compiler_wl_CXX='-Wl,'
12155
 
           ;;
12156
 
         esac
12157
 
       ;;
12158
 
      dgux*)
12159
 
        case $cc_basename in
12160
 
          ec++)
12161
 
            lt_prog_compiler_pic_CXX='-KPIC'
12162
 
            ;;
12163
 
          ghcx)
12164
 
            # Green Hills C++ Compiler
12165
 
            lt_prog_compiler_pic_CXX='-pic'
12166
 
            ;;
12167
 
          *)
12168
 
            ;;
12169
 
        esac
12170
 
        ;;
12171
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
12172
 
        # FreeBSD uses GNU C++
12173
 
        ;;
12174
 
      hpux9* | hpux10* | hpux11*)
12175
 
        case $cc_basename in
12176
 
          CC)
12177
 
            lt_prog_compiler_wl_CXX='-Wl,'
12178
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12179
 
            if test "$host_cpu" != ia64; then
12180
 
              lt_prog_compiler_pic_CXX='+Z'
12181
 
            fi
12182
 
            ;;
12183
 
          aCC)
12184
 
            lt_prog_compiler_wl_CXX='-Wl,'
12185
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12186
 
            case "$host_cpu" in
12187
 
            hppa*64*|ia64*)
12188
 
              # +Z the default
12189
 
              ;;
12190
 
            *)
12191
 
              lt_prog_compiler_pic_CXX='+Z'
12192
 
              ;;
12193
 
            esac
12194
 
            ;;
12195
 
          *)
12196
 
            ;;
12197
 
        esac
12198
 
        ;;
12199
 
      irix5* | irix6* | nonstopux*)
12200
 
        case $cc_basename in
12201
 
          CC)
12202
 
            lt_prog_compiler_wl_CXX='-Wl,'
12203
 
            lt_prog_compiler_static_CXX='-non_shared'
12204
 
            # CC pic flag -KPIC is the default.
12205
 
            ;;
12206
 
          *)
12207
 
            ;;
12208
 
        esac
12209
 
        ;;
12210
 
      linux*)
12211
 
        case $cc_basename in
12212
 
          KCC)
12213
 
            # KAI C++ Compiler
12214
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12215
 
            lt_prog_compiler_pic_CXX='-fPIC'
12216
 
            ;;
12217
 
          icpc* | ecpc*)
12218
 
            # Intel C++
12219
 
            lt_prog_compiler_wl_CXX='-Wl,'
12220
 
            lt_prog_compiler_pic_CXX='-KPIC'
12221
 
            lt_prog_compiler_static_CXX='-static'
12222
 
            ;;
12223
 
          pgCC)
12224
 
            # Portland Group C++ compiler.
12225
 
            lt_prog_compiler_wl_CXX='-Wl,'
12226
 
            lt_prog_compiler_pic_CXX='-fpic'
12227
 
            lt_prog_compiler_static_CXX='-static'
12228
 
            ;;
12229
 
          cxx)
12230
 
            # Compaq C++
12231
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12232
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12233
 
            lt_prog_compiler_pic_CXX=
12234
 
            lt_prog_compiler_static_CXX='-non_shared'
12235
 
            ;;
12236
 
          *)
12237
 
            ;;
12238
 
        esac
12239
 
        ;;
12240
 
      lynxos*)
12241
 
        ;;
12242
 
      m88k*)
12243
 
        ;;
12244
 
      mvs*)
12245
 
        case $cc_basename in
12246
 
          cxx)
12247
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12248
 
            ;;
12249
 
          *)
12250
 
            ;;
12251
 
        esac
12252
 
        ;;
12253
 
      netbsd*)
12254
 
        ;;
12255
 
      osf3* | osf4* | osf5*)
12256
 
        case $cc_basename in
12257
 
          KCC)
12258
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12259
 
            ;;
12260
 
          RCC)
12261
 
            # Rational C++ 2.4.1
12262
 
            lt_prog_compiler_pic_CXX='-pic'
12263
 
            ;;
12264
 
          cxx)
12265
 
            # Digital/Compaq C++
12266
 
            lt_prog_compiler_wl_CXX='-Wl,'
12267
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12268
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12269
 
            lt_prog_compiler_pic_CXX=
12270
 
            lt_prog_compiler_static_CXX='-non_shared'
12271
 
            ;;
12272
 
          *)
12273
 
            ;;
12274
 
        esac
12275
 
        ;;
12276
 
      psos*)
12277
 
        ;;
12278
 
      sco*)
12279
 
        case $cc_basename in
12280
 
          CC)
12281
 
            lt_prog_compiler_pic_CXX='-fPIC'
12282
 
            ;;
12283
 
          *)
12284
 
            ;;
12285
 
        esac
12286
 
        ;;
12287
 
      solaris*)
12288
 
        case $cc_basename in
12289
 
          CC)
12290
 
            # Sun C++ 4.2, 5.x and Centerline C++
12291
 
            lt_prog_compiler_pic_CXX='-KPIC'
12292
 
            lt_prog_compiler_static_CXX='-Bstatic'
12293
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12294
 
            ;;
12295
 
          gcx)
12296
 
            # Green Hills C++ Compiler
12297
 
            lt_prog_compiler_pic_CXX='-PIC'
12298
 
            ;;
12299
 
          *)
12300
 
            ;;
12301
 
        esac
12302
 
        ;;
12303
 
      sunos4*)
12304
 
        case $cc_basename in
12305
 
          CC)
12306
 
            # Sun C++ 4.x
12307
 
            lt_prog_compiler_pic_CXX='-pic'
12308
 
            lt_prog_compiler_static_CXX='-Bstatic'
12309
 
            ;;
12310
 
          lcc)
12311
 
            # Lucid
12312
 
            lt_prog_compiler_pic_CXX='-pic'
12313
 
            ;;
12314
 
          *)
12315
 
            ;;
12316
 
        esac
12317
 
        ;;
12318
 
      tandem*)
12319
 
        case $cc_basename in
12320
 
          NCC)
12321
 
            # NonStop-UX NCC 3.20
12322
 
            lt_prog_compiler_pic_CXX='-KPIC'
12323
 
            ;;
12324
 
          *)
12325
 
            ;;
12326
 
        esac
12327
 
        ;;
12328
 
      unixware*)
12329
 
        ;;
12330
 
      vxworks*)
12331
 
        ;;
12332
 
      *)
12333
 
        lt_prog_compiler_can_build_shared_CXX=no
12334
 
        ;;
12335
 
    esac
12336
 
  fi
12337
 
 
12338
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12339
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12340
 
 
12341
 
#
12342
 
# Check to make sure the PIC flag actually works.
12343
 
#
12344
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12345
 
  
12346
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12347
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12348
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12349
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12350
 
else
12351
 
  lt_prog_compiler_pic_works_CXX=no
12352
 
  ac_outfile=conftest.$ac_objext
12353
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12354
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12355
 
   # Insert the option either (1) after the last *FLAGS variable, or
12356
 
   # (2) before a word containing "conftest.", or (3) at the end.
12357
 
   # Note that $ac_compile itself does not contain backslashes and begins
12358
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12359
 
   # The option is referenced via a variable to avoid confusing sed.
12360
 
   lt_compile=`echo "$ac_compile" | $SED \
12361
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12362
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12363
 
   -e 's:$: $lt_compiler_flag:'`
12364
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12365
 
   (eval "$lt_compile" 2>conftest.err)
12366
 
   ac_status=$?
12367
 
   cat conftest.err >&5
12368
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
12369
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12370
 
     # The compiler can only warn and ignore the option if not recognized
12371
 
     # So say no if there are warnings
12372
 
     if test ! -s conftest.err; then
12373
 
       lt_prog_compiler_pic_works_CXX=yes
12374
 
     fi
12375
 
   fi
12376
 
   $rm conftest*
12377
 
 
12378
 
fi
12379
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12380
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12381
 
 
12382
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12383
 
    case $lt_prog_compiler_pic_CXX in
12384
 
     "" | " "*) ;;
12385
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12386
 
     esac
12387
 
else
12388
 
    lt_prog_compiler_pic_CXX=
12389
 
     lt_prog_compiler_can_build_shared_CXX=no
12390
 
fi
12391
 
 
12392
 
fi
12393
 
case "$host_os" in
12394
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12395
 
  *djgpp*)
12396
 
    lt_prog_compiler_pic_CXX=
12397
 
    ;;
12398
 
  *)
12399
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12400
 
    ;;
12401
 
esac
12402
 
 
12403
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12404
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12405
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12406
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12407
 
else
12408
 
  lt_cv_prog_compiler_c_o_CXX=no
12409
 
   $rm -r conftest 2>/dev/null
12410
 
   mkdir conftest
12411
 
   cd conftest
12412
 
   mkdir out
12413
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12414
 
 
12415
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12416
 
   # Insert the option either (1) after the last *FLAGS variable, or
12417
 
   # (2) before a word containing "conftest.", or (3) at the end.
12418
 
   # Note that $ac_compile itself does not contain backslashes and begins
12419
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12420
 
   lt_compile=`echo "$ac_compile" | $SED \
12421
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12422
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12423
 
   -e 's:$: $lt_compiler_flag:'`
12424
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12425
 
   (eval "$lt_compile" 2>out/conftest.err)
12426
 
   ac_status=$?
12427
 
   cat out/conftest.err >&5
12428
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
12429
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12430
 
   then
12431
 
     # The compiler can only warn and ignore the option if not recognized
12432
 
     # So say no if there are warnings
12433
 
     if test ! -s out/conftest.err; then
12434
 
       lt_cv_prog_compiler_c_o_CXX=yes
12435
 
     fi
12436
 
   fi
12437
 
   chmod u+w .
12438
 
   $rm conftest*
12439
 
   # SGI C++ compiler will create directory out/ii_files/ for
12440
 
   # template instantiation
12441
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12442
 
   $rm out/* && rmdir out
12443
 
   cd ..
12444
 
   rmdir conftest
12445
 
   $rm conftest*
12446
 
 
12447
 
fi
12448
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12449
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12450
 
 
12451
 
 
12452
 
hard_links="nottested"
12453
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12454
 
  # do not overwrite the value of need_locks provided by the user
12455
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12456
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12457
 
  hard_links=yes
12458
 
  $rm conftest*
12459
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12460
 
  touch conftest.a
12461
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
12462
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12463
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
12464
 
echo "${ECHO_T}$hard_links" >&6
12465
 
  if test "$hard_links" = no; then
12466
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12467
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12468
 
    need_locks=warn
12469
 
  fi
12470
 
else
12471
 
  need_locks=no
12472
 
fi
12473
 
 
12474
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12475
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12476
 
 
12477
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12478
 
  case $host_os in
12479
 
  aix4* | aix5*)
12480
 
    # If we're using GNU nm, then we don't want the "-C" option.
12481
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12482
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12483
 
      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'
12484
 
    else
12485
 
      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'
12486
 
    fi
12487
 
    ;;
12488
 
  pw32*)
12489
 
    export_symbols_cmds_CXX="$ltdll_cmds"
12490
 
  ;;
12491
 
  cygwin* | mingw*)
12492
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12493
 
  ;;
12494
 
  *)
12495
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12496
 
  ;;
12497
 
  esac
12498
 
 
12499
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12500
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12501
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12502
 
 
12503
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12504
 
if test "$GCC" = yes; then
12505
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12506
 
fi
12507
 
 
12508
 
#
12509
 
# Do we need to explicitly link libc?
12510
 
#
12511
 
case "x$archive_cmds_need_lc_CXX" in
12512
 
x|xyes)
12513
 
  # Assume -lc should be added
12514
 
  archive_cmds_need_lc_CXX=yes
12515
 
 
12516
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12517
 
    case $archive_cmds_CXX in
12518
 
    *'~'*)
12519
 
      # FIXME: we may have to deal with multi-command sequences.
12520
 
      ;;
12521
 
    '$CC '*)
12522
 
      # Test whether the compiler implicitly links with -lc since on some
12523
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12524
 
      # to ld, don't add -lc before -lgcc.
12525
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12526
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12527
 
      $rm conftest*
12528
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12529
 
 
12530
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531
 
  (eval $ac_compile) 2>&5
12532
 
  ac_status=$?
12533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534
 
  (exit $ac_status); } 2>conftest.err; then
12535
 
        soname=conftest
12536
 
        lib=conftest
12537
 
        libobjs=conftest.$ac_objext
12538
 
        deplibs=
12539
 
        wl=$lt_prog_compiler_wl_CXX
12540
 
        compiler_flags=-v
12541
 
        linker_flags=-v
12542
 
        verstring=
12543
 
        output_objdir=.
12544
 
        libname=conftest
12545
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12546
 
        allow_undefined_flag_CXX=
12547
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12548
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12549
 
  ac_status=$?
12550
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551
 
  (exit $ac_status); }
12552
 
        then
12553
 
          archive_cmds_need_lc_CXX=no
12554
 
        else
12555
 
          archive_cmds_need_lc_CXX=yes
12556
 
        fi
12557
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12558
 
      else
12559
 
        cat conftest.err 1>&5
12560
 
      fi
12561
 
      $rm conftest*
12562
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12563
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12564
 
      ;;
12565
 
    esac
12566
 
  fi
12567
 
  ;;
12568
 
esac
12569
 
 
12570
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12571
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12572
 
library_names_spec=
12573
 
libname_spec='lib$name'
12574
 
soname_spec=
12575
 
shrext_cmds=".so"
12576
 
postinstall_cmds=
12577
 
postuninstall_cmds=
12578
 
finish_cmds=
12579
 
finish_eval=
12580
 
shlibpath_var=
12581
 
shlibpath_overrides_runpath=unknown
12582
 
version_type=none
12583
 
dynamic_linker="$host_os ld.so"
12584
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12585
 
if test "$GCC" = yes; then
12586
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12587
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12588
 
    # if the path contains ";" then we assume it to be the separator
12589
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12590
 
    # assumed that no part of a normal pathname contains ";" but that should
12591
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12592
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12593
 
  else
12594
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12595
 
  fi
12596
 
else
12597
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12598
 
fi
12599
 
need_lib_prefix=unknown
12600
 
hardcode_into_libs=no
12601
 
 
12602
 
# when you set need_version to no, make sure it does not cause -set_version
12603
 
# flags to be left without arguments
12604
 
need_version=unknown
12605
 
 
12606
 
case $host_os in
12607
 
aix3*)
12608
 
  version_type=linux
12609
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12610
 
  shlibpath_var=LIBPATH
12611
 
 
12612
 
  # AIX 3 has no versioning support, so we append a major version to the name.
12613
 
  soname_spec='${libname}${release}${shared_ext}$major'
12614
 
  ;;
12615
 
 
12616
 
aix4* | aix5*)
12617
 
  version_type=linux
12618
 
  need_lib_prefix=no
12619
 
  need_version=no
12620
 
  hardcode_into_libs=yes
12621
 
  if test "$host_cpu" = ia64; then
12622
 
    # AIX 5 supports IA64
12623
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12624
 
    shlibpath_var=LD_LIBRARY_PATH
12625
 
  else
12626
 
    # With GCC up to 2.95.x, collect2 would create an import file
12627
 
    # for dependence libraries.  The import file would start with
12628
 
    # the line `#! .'.  This would cause the generated library to
12629
 
    # depend on `.', always an invalid library.  This was fixed in
12630
 
    # development snapshots of GCC prior to 3.0.
12631
 
    case $host_os in
12632
 
      aix4 | aix4.[01] | aix4.[01].*)
12633
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12634
 
           echo ' yes '
12635
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12636
 
        :
12637
 
      else
12638
 
        can_build_shared=no
12639
 
      fi
12640
 
      ;;
12641
 
    esac
12642
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12643
 
    # soname into executable. Probably we can add versioning support to
12644
 
    # collect2, so additional links can be useful in future.
12645
 
    if test "$aix_use_runtimelinking" = yes; then
12646
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12647
 
      # instead of lib<name>.a to let people know that these are not
12648
 
      # typical AIX shared libraries.
12649
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12650
 
    else
12651
 
      # We preserve .a as extension for shared libraries through AIX4.2
12652
 
      # and later when we are not doing run time linking.
12653
 
      library_names_spec='${libname}${release}.a $libname.a'
12654
 
      soname_spec='${libname}${release}${shared_ext}$major'
12655
 
    fi
12656
 
    shlibpath_var=LIBPATH
12657
 
  fi
12658
 
  ;;
12659
 
 
12660
 
amigaos*)
12661
 
  library_names_spec='$libname.ixlibrary $libname.a'
12662
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12663
 
  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'
12664
 
  ;;
12665
 
 
12666
 
beos*)
12667
 
  library_names_spec='${libname}${shared_ext}'
12668
 
  dynamic_linker="$host_os ld.so"
12669
 
  shlibpath_var=LIBRARY_PATH
12670
 
  ;;
12671
 
 
12672
 
bsdi[45]*)
12673
 
  version_type=linux
12674
 
  need_version=no
12675
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12676
 
  soname_spec='${libname}${release}${shared_ext}$major'
12677
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12678
 
  shlibpath_var=LD_LIBRARY_PATH
12679
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12680
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12681
 
  # the default ld.so.conf also contains /usr/contrib/lib and
12682
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12683
 
  # libtool to hard-code these into programs
12684
 
  ;;
12685
 
 
12686
 
cygwin* | mingw* | pw32*)
12687
 
  version_type=windows
12688
 
  shrext_cmds=".dll"
12689
 
  need_version=no
12690
 
  need_lib_prefix=no
12691
 
 
12692
 
  case $GCC,$host_os in
12693
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
12694
 
    library_names_spec='$libname.dll.a'
12695
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12696
 
    postinstall_cmds='base_file=`basename \${file}`~
12697
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12698
 
      dldir=$destdir/`dirname \$dlpath`~
12699
 
      test -d \$dldir || mkdir -p \$dldir~
12700
 
      $install_prog $dir/$dlname \$dldir/$dlname'
12701
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12702
 
      dlpath=$dir/\$dldll~
12703
 
       $rm \$dlpath'
12704
 
    shlibpath_overrides_runpath=yes
12705
 
 
12706
 
    case $host_os in
12707
 
    cygwin*)
12708
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12709
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12710
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12711
 
      ;;
12712
 
    mingw*)
12713
 
      # MinGW DLLs use traditional 'lib' prefix
12714
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12715
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12716
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12717
 
        # It is most probably a Windows format PATH printed by
12718
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12719
 
        # path with ; separators, and with drive letters. We can handle the
12720
 
        # drive letters (cygwin fileutils understands them), so leave them,
12721
 
        # especially as we might pass files found there to a mingw objdump,
12722
 
        # which wouldn't understand a cygwinified path. Ahh.
12723
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12724
 
      else
12725
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12726
 
      fi
12727
 
      ;;
12728
 
    pw32*)
12729
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12730
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12731
 
      ;;
12732
 
    esac
12733
 
    ;;
12734
 
 
12735
 
  *)
12736
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12737
 
    ;;
12738
 
  esac
12739
 
  dynamic_linker='Win32 ld.exe'
12740
 
  # FIXME: first we should search . and the directory the executable is in
12741
 
  shlibpath_var=PATH
12742
 
  ;;
12743
 
 
12744
 
darwin* | rhapsody*)
12745
 
  dynamic_linker="$host_os dyld"
12746
 
  version_type=darwin
12747
 
  need_lib_prefix=no
12748
 
  need_version=no
12749
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12750
 
  soname_spec='${libname}${release}${major}$shared_ext'
12751
 
  shlibpath_overrides_runpath=yes
12752
 
  shlibpath_var=DYLD_LIBRARY_PATH
12753
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12754
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12755
 
  if test "$GCC" = yes; then
12756
 
    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"`
12757
 
  else
12758
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12759
 
  fi
12760
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12761
 
  ;;
12762
 
 
12763
 
dgux*)
12764
 
  version_type=linux
12765
 
  need_lib_prefix=no
12766
 
  need_version=no
12767
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12768
 
  soname_spec='${libname}${release}${shared_ext}$major'
12769
 
  shlibpath_var=LD_LIBRARY_PATH
12770
 
  ;;
12771
 
 
12772
 
freebsd1*)
12773
 
  dynamic_linker=no
12774
 
  ;;
12775
 
 
12776
 
kfreebsd*-gnu)
12777
 
  version_type=linux
12778
 
  need_lib_prefix=no
12779
 
  need_version=no
12780
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12781
 
  soname_spec='${libname}${release}${shared_ext}$major'
12782
 
  shlibpath_var=LD_LIBRARY_PATH
12783
 
  shlibpath_overrides_runpath=no
12784
 
  hardcode_into_libs=yes
12785
 
  dynamic_linker='GNU ld.so'
12786
 
  ;;
12787
 
 
12788
 
freebsd* | dragonfly*)
12789
 
  # DragonFly does not have aout.  When/if they implement a new
12790
 
  # versioning mechanism, adjust this.
12791
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12792
 
  version_type=freebsd-$objformat
12793
 
  case $version_type in
12794
 
    freebsd-elf*)
12795
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12796
 
      need_version=no
12797
 
      need_lib_prefix=no
12798
 
      ;;
12799
 
    freebsd-*)
12800
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12801
 
      need_version=yes
12802
 
      ;;
12803
 
  esac
12804
 
  shlibpath_var=LD_LIBRARY_PATH
12805
 
  case $host_os in
12806
 
  freebsd2*)
12807
 
    shlibpath_overrides_runpath=yes
12808
 
    ;;
12809
 
  freebsd3.[01]* | freebsdelf3.[01]*)
12810
 
    shlibpath_overrides_runpath=yes
12811
 
    hardcode_into_libs=yes
12812
 
    ;;
12813
 
  *) # from 3.2 on
12814
 
    shlibpath_overrides_runpath=no
12815
 
    hardcode_into_libs=yes
12816
 
    ;;
12817
 
  esac
12818
 
  ;;
12819
 
 
12820
 
gnu*)
12821
 
  version_type=linux
12822
 
  need_lib_prefix=no
12823
 
  need_version=no
12824
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12825
 
  soname_spec='${libname}${release}${shared_ext}$major'
12826
 
  shlibpath_var=LD_LIBRARY_PATH
12827
 
  hardcode_into_libs=yes
12828
 
  ;;
12829
 
 
12830
 
hpux9* | hpux10* | hpux11*)
12831
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
12832
 
  # link against other versions.
12833
 
  version_type=sunos
12834
 
  need_lib_prefix=no
12835
 
  need_version=no
12836
 
  case "$host_cpu" in
12837
 
  ia64*)
12838
 
    shrext_cmds='.so'
12839
 
    hardcode_into_libs=yes
12840
 
    dynamic_linker="$host_os dld.so"
12841
 
    shlibpath_var=LD_LIBRARY_PATH
12842
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12843
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844
 
    soname_spec='${libname}${release}${shared_ext}$major'
12845
 
    if test "X$HPUX_IA64_MODE" = X32; then
12846
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12847
 
    else
12848
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12849
 
    fi
12850
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12851
 
    ;;
12852
 
   hppa*64*)
12853
 
     shrext_cmds='.sl'
12854
 
     hardcode_into_libs=yes
12855
 
     dynamic_linker="$host_os dld.sl"
12856
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12857
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12858
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12859
 
     soname_spec='${libname}${release}${shared_ext}$major'
12860
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12861
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12862
 
     ;;
12863
 
   *)
12864
 
    shrext_cmds='.sl'
12865
 
    dynamic_linker="$host_os dld.sl"
12866
 
    shlibpath_var=SHLIB_PATH
12867
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12868
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12869
 
    soname_spec='${libname}${release}${shared_ext}$major'
12870
 
    ;;
12871
 
  esac
12872
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12873
 
  postinstall_cmds='chmod 555 $lib'
12874
 
  ;;
12875
 
 
12876
 
irix5* | irix6* | nonstopux*)
12877
 
  case $host_os in
12878
 
    nonstopux*) version_type=nonstopux ;;
12879
 
    *)
12880
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
12881
 
                version_type=linux
12882
 
        else
12883
 
                version_type=irix
12884
 
        fi ;;
12885
 
  esac
12886
 
  need_lib_prefix=no
12887
 
  need_version=no
12888
 
  soname_spec='${libname}${release}${shared_ext}$major'
12889
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12890
 
  case $host_os in
12891
 
  irix5* | nonstopux*)
12892
 
    libsuff= shlibsuff=
12893
 
    ;;
12894
 
  *)
12895
 
    case $LD in # libtool.m4 will add one of these switches to LD
12896
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12897
 
      libsuff= shlibsuff= libmagic=32-bit;;
12898
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12899
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12900
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12901
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12902
 
    *) libsuff= shlibsuff= libmagic=never-match;;
12903
 
    esac
12904
 
    ;;
12905
 
  esac
12906
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12907
 
  shlibpath_overrides_runpath=no
12908
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12909
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12910
 
  hardcode_into_libs=yes
12911
 
  ;;
12912
 
 
12913
 
# No shared lib support for Linux oldld, aout, or coff.
12914
 
linux*oldld* | linux*aout* | linux*coff*)
12915
 
  dynamic_linker=no
12916
 
  ;;
12917
 
 
12918
 
# This must be Linux ELF.
12919
 
linux*)
12920
 
  version_type=linux
12921
 
  need_lib_prefix=no
12922
 
  need_version=no
12923
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12924
 
  soname_spec='${libname}${release}${shared_ext}$major'
12925
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12926
 
  shlibpath_var=LD_LIBRARY_PATH
12927
 
  shlibpath_overrides_runpath=no
12928
 
  # This implies no fast_install, which is unacceptable.
12929
 
  # Some rework will be needed to allow for fast_install
12930
 
  # before this can be enabled.
12931
 
  hardcode_into_libs=yes
12932
 
 
12933
 
  # Append ld.so.conf contents to the search path
12934
 
  if test -f /etc/ld.so.conf; then
12935
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12936
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12937
 
  fi
12938
 
 
12939
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12940
 
  # powerpc, because MkLinux only supported shared libraries with the
12941
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
12942
 
  # most powerpc-linux boxes support dynamic linking these days and
12943
 
  # people can always --disable-shared, the test was removed, and we
12944
 
  # assume the GNU/Linux dynamic linker is in use.
12945
 
  dynamic_linker='GNU/Linux ld.so'
12946
 
  ;;
12947
 
 
12948
 
knetbsd*-gnu)
12949
 
  version_type=linux
12950
 
  need_lib_prefix=no
12951
 
  need_version=no
12952
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12953
 
  soname_spec='${libname}${release}${shared_ext}$major'
12954
 
  shlibpath_var=LD_LIBRARY_PATH
12955
 
  shlibpath_overrides_runpath=no
12956
 
  hardcode_into_libs=yes
12957
 
  dynamic_linker='GNU ld.so'
12958
 
  ;;
12959
 
 
12960
 
netbsd*)
12961
 
  version_type=sunos
12962
 
  need_lib_prefix=no
12963
 
  need_version=no
12964
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12965
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12966
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12967
 
    dynamic_linker='NetBSD (a.out) ld.so'
12968
 
  else
12969
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12970
 
    soname_spec='${libname}${release}${shared_ext}$major'
12971
 
    dynamic_linker='NetBSD ld.elf_so'
12972
 
  fi
12973
 
  shlibpath_var=LD_LIBRARY_PATH
12974
 
  shlibpath_overrides_runpath=yes
12975
 
  hardcode_into_libs=yes
12976
 
  ;;
12977
 
 
12978
 
newsos6)
12979
 
  version_type=linux
12980
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981
 
  shlibpath_var=LD_LIBRARY_PATH
12982
 
  shlibpath_overrides_runpath=yes
12983
 
  ;;
12984
 
 
12985
 
nto-qnx*)
12986
 
  version_type=linux
12987
 
  need_lib_prefix=no
12988
 
  need_version=no
12989
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12990
 
  soname_spec='${libname}${release}${shared_ext}$major'
12991
 
  shlibpath_var=LD_LIBRARY_PATH
12992
 
  shlibpath_overrides_runpath=yes
12993
 
  ;;
12994
 
 
12995
 
openbsd*)
12996
 
  version_type=sunos
12997
 
  need_lib_prefix=no
12998
 
  need_version=no
12999
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13000
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13001
 
  shlibpath_var=LD_LIBRARY_PATH
13002
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13003
 
    case $host_os in
13004
 
      openbsd2.[89] | openbsd2.[89].*)
13005
 
        shlibpath_overrides_runpath=no
13006
 
        ;;
13007
 
      *)
13008
 
        shlibpath_overrides_runpath=yes
13009
 
        ;;
13010
 
      esac
13011
 
  else
13012
 
    shlibpath_overrides_runpath=yes
13013
 
  fi
13014
 
  ;;
13015
 
 
13016
 
os2*)
13017
 
  libname_spec='$name'
13018
 
  shrext_cmds=".dll"
13019
 
  need_lib_prefix=no
13020
 
  library_names_spec='$libname${shared_ext} $libname.a'
13021
 
  dynamic_linker='OS/2 ld.exe'
13022
 
  shlibpath_var=LIBPATH
13023
 
  ;;
13024
 
 
13025
 
osf3* | osf4* | osf5*)
13026
 
  version_type=osf
13027
 
  need_lib_prefix=no
13028
 
  need_version=no
13029
 
  soname_spec='${libname}${release}${shared_ext}$major'
13030
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13031
 
  shlibpath_var=LD_LIBRARY_PATH
13032
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13033
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13034
 
  ;;
13035
 
 
13036
 
sco3.2v5*)
13037
 
  version_type=osf
13038
 
  soname_spec='${libname}${release}${shared_ext}$major'
13039
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13040
 
  shlibpath_var=LD_LIBRARY_PATH
13041
 
  ;;
13042
 
 
13043
 
solaris*)
13044
 
  version_type=linux
13045
 
  need_lib_prefix=no
13046
 
  need_version=no
13047
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048
 
  soname_spec='${libname}${release}${shared_ext}$major'
13049
 
  shlibpath_var=LD_LIBRARY_PATH
13050
 
  shlibpath_overrides_runpath=yes
13051
 
  hardcode_into_libs=yes
13052
 
  # ldd complains unless libraries are executable
13053
 
  postinstall_cmds='chmod +x $lib'
13054
 
  ;;
13055
 
 
13056
 
sunos4*)
13057
 
  version_type=sunos
13058
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13059
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13060
 
  shlibpath_var=LD_LIBRARY_PATH
13061
 
  shlibpath_overrides_runpath=yes
13062
 
  if test "$with_gnu_ld" = yes; then
13063
 
    need_lib_prefix=no
13064
 
  fi
13065
 
  need_version=yes
13066
 
  ;;
13067
 
 
13068
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13069
 
  version_type=linux
13070
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13071
 
  soname_spec='${libname}${release}${shared_ext}$major'
13072
 
  shlibpath_var=LD_LIBRARY_PATH
13073
 
  case $host_vendor in
13074
 
    sni)
13075
 
      shlibpath_overrides_runpath=no
13076
 
      need_lib_prefix=no
13077
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13078
 
      runpath_var=LD_RUN_PATH
13079
 
      ;;
13080
 
    siemens)
13081
 
      need_lib_prefix=no
13082
 
      ;;
13083
 
    motorola)
13084
 
      need_lib_prefix=no
13085
 
      need_version=no
13086
 
      shlibpath_overrides_runpath=no
13087
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13088
 
      ;;
13089
 
  esac
13090
 
  ;;
13091
 
 
13092
 
sysv4*MP*)
13093
 
  if test -d /usr/nec ;then
13094
 
    version_type=linux
13095
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13096
 
    soname_spec='$libname${shared_ext}.$major'
13097
 
    shlibpath_var=LD_LIBRARY_PATH
13098
 
  fi
13099
 
  ;;
13100
 
 
13101
 
uts4*)
13102
 
  version_type=linux
13103
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104
 
  soname_spec='${libname}${release}${shared_ext}$major'
13105
 
  shlibpath_var=LD_LIBRARY_PATH
13106
 
  ;;
13107
 
 
13108
 
*)
13109
 
  dynamic_linker=no
13110
 
  ;;
13111
 
esac
13112
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13113
 
echo "${ECHO_T}$dynamic_linker" >&6
13114
 
test "$dynamic_linker" = no && can_build_shared=no
13115
 
 
13116
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13117
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13118
 
hardcode_action_CXX=
13119
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13120
 
   test -n "$runpath_var_CXX" || \
13121
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13122
 
 
13123
 
  # We can hardcode non-existant directories.
13124
 
  if test "$hardcode_direct_CXX" != no &&
13125
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13126
 
     # have to relink, otherwise we might link with an installed library
13127
 
     # when we should be linking with a yet-to-be-installed one
13128
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13129
 
     test "$hardcode_minus_L_CXX" != no; then
13130
 
    # Linking always hardcodes the temporary library directory.
13131
 
    hardcode_action_CXX=relink
13132
 
  else
13133
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13134
 
    hardcode_action_CXX=immediate
13135
 
  fi
13136
 
else
13137
 
  # We cannot hardcode anything, or else we can only hardcode existing
13138
 
  # directories.
13139
 
  hardcode_action_CXX=unsupported
13140
 
fi
13141
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13142
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
13143
 
 
13144
 
if test "$hardcode_action_CXX" = relink; then
13145
 
  # Fast installation is not supported
13146
 
  enable_fast_install=no
13147
 
elif test "$shlibpath_overrides_runpath" = yes ||
13148
 
     test "$enable_shared" = no; then
13149
 
  # Fast installation is not necessary
13150
 
  enable_fast_install=needless
13151
 
fi
13152
 
 
13153
 
striplib=
13154
 
old_striplib=
13155
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13156
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13157
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13158
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13159
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13160
 
  echo "$as_me:$LINENO: result: yes" >&5
13161
 
echo "${ECHO_T}yes" >&6
13162
 
else
13163
 
# FIXME - insert some real tests, host_os isn't really good enough
13164
 
  case $host_os in
13165
 
   darwin*)
13166
 
       if test -n "$STRIP" ; then
13167
 
         striplib="$STRIP -x"
13168
 
         echo "$as_me:$LINENO: result: yes" >&5
13169
 
echo "${ECHO_T}yes" >&6
13170
 
       else
13171
 
  echo "$as_me:$LINENO: result: no" >&5
13172
 
echo "${ECHO_T}no" >&6
13173
 
fi
13174
 
       ;;
13175
 
   *)
13176
 
  echo "$as_me:$LINENO: result: no" >&5
13177
 
echo "${ECHO_T}no" >&6
13178
 
    ;;
13179
 
  esac
13180
 
fi
13181
 
 
13182
 
if test "x$enable_dlopen" != xyes; then
13183
 
  enable_dlopen=unknown
13184
 
  enable_dlopen_self=unknown
13185
 
  enable_dlopen_self_static=unknown
13186
 
else
13187
 
  lt_cv_dlopen=no
13188
 
  lt_cv_dlopen_libs=
13189
 
 
13190
 
  case $host_os in
13191
 
  beos*)
13192
 
    lt_cv_dlopen="load_add_on"
13193
 
    lt_cv_dlopen_libs=
13194
 
    lt_cv_dlopen_self=yes
13195
 
    ;;
13196
 
 
13197
 
  mingw* | pw32*)
13198
 
    lt_cv_dlopen="LoadLibrary"
13199
 
    lt_cv_dlopen_libs=
13200
 
   ;;
13201
 
 
13202
 
  cygwin*)
13203
 
    lt_cv_dlopen="dlopen"
13204
 
    lt_cv_dlopen_libs=
13205
 
   ;;
13206
 
 
13207
 
  darwin*)
13208
 
  # if libdl is installed we need to link against it
13209
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13210
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13211
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13212
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13213
 
else
13214
 
  ac_check_lib_save_LIBS=$LIBS
13215
 
LIBS="-ldl  $LIBS"
13216
 
cat >conftest.$ac_ext <<_ACEOF
13217
 
/* confdefs.h.  */
13218
 
_ACEOF
13219
 
cat confdefs.h >>conftest.$ac_ext
13220
 
cat >>conftest.$ac_ext <<_ACEOF
13221
 
/* end confdefs.h.  */
13222
 
 
13223
 
/* Override any gcc2 internal prototype to avoid an error.  */
13224
 
#ifdef __cplusplus
13225
 
extern "C"
13226
 
#endif
13227
 
/* We use char because int might match the return type of a gcc2
13228
 
   builtin and then its argument prototype would still apply.  */
13229
 
char dlopen ();
13230
 
int
13231
 
main ()
13232
 
{
13233
 
dlopen ();
13234
 
  ;
13235
 
  return 0;
13236
 
}
13237
 
_ACEOF
13238
 
rm -f conftest.$ac_objext conftest$ac_exeext
13239
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240
 
  (eval $ac_link) 2>conftest.er1
13241
 
  ac_status=$?
13242
 
  grep -v '^ *+' conftest.er1 >conftest.err
13243
 
  rm -f conftest.er1
13244
 
  cat conftest.err >&5
13245
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246
 
  (exit $ac_status); } &&
13247
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13248
 
                         || test ! -s conftest.err'
13249
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250
 
  (eval $ac_try) 2>&5
13251
 
  ac_status=$?
13252
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253
 
  (exit $ac_status); }; } &&
13254
 
         { ac_try='test -s conftest$ac_exeext'
13255
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256
 
  (eval $ac_try) 2>&5
13257
 
  ac_status=$?
13258
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259
 
  (exit $ac_status); }; }; then
13260
 
  ac_cv_lib_dl_dlopen=yes
13261
 
else
13262
 
  echo "$as_me: failed program was:" >&5
13263
 
sed 's/^/| /' conftest.$ac_ext >&5
13264
 
 
13265
 
ac_cv_lib_dl_dlopen=no
13266
 
fi
13267
 
rm -f conftest.err conftest.$ac_objext \
13268
 
      conftest$ac_exeext conftest.$ac_ext
13269
 
LIBS=$ac_check_lib_save_LIBS
13270
 
fi
13271
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13272
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13273
 
if test $ac_cv_lib_dl_dlopen = yes; then
13274
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13275
 
else
13276
 
  
13277
 
    lt_cv_dlopen="dyld"
13278
 
    lt_cv_dlopen_libs=
13279
 
    lt_cv_dlopen_self=yes
13280
 
    
13281
 
fi
13282
 
 
13283
 
   ;;
13284
 
 
13285
 
  *)
13286
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
13287
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13288
 
if test "${ac_cv_func_shl_load+set}" = set; then
13289
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13290
 
else
13291
 
  cat >conftest.$ac_ext <<_ACEOF
13292
 
/* confdefs.h.  */
13293
 
_ACEOF
13294
 
cat confdefs.h >>conftest.$ac_ext
13295
 
cat >>conftest.$ac_ext <<_ACEOF
13296
 
/* end confdefs.h.  */
13297
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13298
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13299
 
#define shl_load innocuous_shl_load
13300
 
 
13301
 
/* System header to define __stub macros and hopefully few prototypes,
13302
 
    which can conflict with char shl_load (); below.
13303
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13304
 
    <limits.h> exists even on freestanding compilers.  */
13305
 
 
13306
 
#ifdef __STDC__
13307
 
# include <limits.h>
13308
 
#else
13309
 
# include <assert.h>
13310
 
#endif
13311
 
 
13312
 
#undef shl_load
13313
 
 
13314
 
/* Override any gcc2 internal prototype to avoid an error.  */
13315
 
#ifdef __cplusplus
13316
 
extern "C"
13317
 
{
13318
 
#endif
13319
 
/* We use char because int might match the return type of a gcc2
13320
 
   builtin and then its argument prototype would still apply.  */
13321
 
char shl_load ();
13322
 
/* The GNU C library defines this for functions which it implements
13323
 
    to always fail with ENOSYS.  Some functions are actually named
13324
 
    something starting with __ and the normal name is an alias.  */
13325
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13326
 
choke me
13327
 
#else
13328
 
char (*f) () = shl_load;
13329
 
#endif
13330
 
#ifdef __cplusplus
13331
 
}
13332
 
#endif
13333
 
 
13334
 
int
13335
 
main ()
13336
 
{
13337
 
return f != shl_load;
13338
 
  ;
13339
 
  return 0;
13340
 
}
13341
 
_ACEOF
13342
 
rm -f conftest.$ac_objext conftest$ac_exeext
13343
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13344
 
  (eval $ac_link) 2>conftest.er1
13345
 
  ac_status=$?
13346
 
  grep -v '^ *+' conftest.er1 >conftest.err
13347
 
  rm -f conftest.er1
13348
 
  cat conftest.err >&5
13349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350
 
  (exit $ac_status); } &&
13351
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13352
 
                         || test ! -s conftest.err'
13353
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354
 
  (eval $ac_try) 2>&5
13355
 
  ac_status=$?
13356
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357
 
  (exit $ac_status); }; } &&
13358
 
         { ac_try='test -s conftest$ac_exeext'
13359
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360
 
  (eval $ac_try) 2>&5
13361
 
  ac_status=$?
13362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363
 
  (exit $ac_status); }; }; then
13364
 
  ac_cv_func_shl_load=yes
13365
 
else
13366
 
  echo "$as_me: failed program was:" >&5
13367
 
sed 's/^/| /' conftest.$ac_ext >&5
13368
 
 
13369
 
ac_cv_func_shl_load=no
13370
 
fi
13371
 
rm -f conftest.err conftest.$ac_objext \
13372
 
      conftest$ac_exeext conftest.$ac_ext
13373
 
fi
13374
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13375
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13376
 
if test $ac_cv_func_shl_load = yes; then
13377
 
  lt_cv_dlopen="shl_load"
13378
 
else
13379
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13380
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13381
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13382
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13383
 
else
13384
 
  ac_check_lib_save_LIBS=$LIBS
13385
 
LIBS="-ldld  $LIBS"
13386
 
cat >conftest.$ac_ext <<_ACEOF
13387
 
/* confdefs.h.  */
13388
 
_ACEOF
13389
 
cat confdefs.h >>conftest.$ac_ext
13390
 
cat >>conftest.$ac_ext <<_ACEOF
13391
 
/* end confdefs.h.  */
13392
 
 
13393
 
/* Override any gcc2 internal prototype to avoid an error.  */
13394
 
#ifdef __cplusplus
13395
 
extern "C"
13396
 
#endif
13397
 
/* We use char because int might match the return type of a gcc2
13398
 
   builtin and then its argument prototype would still apply.  */
13399
 
char shl_load ();
13400
 
int
13401
 
main ()
13402
 
{
13403
 
shl_load ();
13404
 
  ;
13405
 
  return 0;
13406
 
}
13407
 
_ACEOF
13408
 
rm -f conftest.$ac_objext conftest$ac_exeext
13409
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13410
 
  (eval $ac_link) 2>conftest.er1
13411
 
  ac_status=$?
13412
 
  grep -v '^ *+' conftest.er1 >conftest.err
13413
 
  rm -f conftest.er1
13414
 
  cat conftest.err >&5
13415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416
 
  (exit $ac_status); } &&
13417
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13418
 
                         || test ! -s conftest.err'
13419
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420
 
  (eval $ac_try) 2>&5
13421
 
  ac_status=$?
13422
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423
 
  (exit $ac_status); }; } &&
13424
 
         { ac_try='test -s conftest$ac_exeext'
13425
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426
 
  (eval $ac_try) 2>&5
13427
 
  ac_status=$?
13428
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429
 
  (exit $ac_status); }; }; then
13430
 
  ac_cv_lib_dld_shl_load=yes
13431
 
else
13432
 
  echo "$as_me: failed program was:" >&5
13433
 
sed 's/^/| /' conftest.$ac_ext >&5
13434
 
 
13435
 
ac_cv_lib_dld_shl_load=no
13436
 
fi
13437
 
rm -f conftest.err conftest.$ac_objext \
13438
 
      conftest$ac_exeext conftest.$ac_ext
13439
 
LIBS=$ac_check_lib_save_LIBS
13440
 
fi
13441
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13442
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13443
 
if test $ac_cv_lib_dld_shl_load = yes; then
13444
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13445
 
else
13446
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
13447
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13448
 
if test "${ac_cv_func_dlopen+set}" = set; then
13449
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13450
 
else
13451
 
  cat >conftest.$ac_ext <<_ACEOF
13452
 
/* confdefs.h.  */
13453
 
_ACEOF
13454
 
cat confdefs.h >>conftest.$ac_ext
13455
 
cat >>conftest.$ac_ext <<_ACEOF
13456
 
/* end confdefs.h.  */
13457
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13458
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13459
 
#define dlopen innocuous_dlopen
13460
 
 
13461
 
/* System header to define __stub macros and hopefully few prototypes,
13462
 
    which can conflict with char dlopen (); below.
13463
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13464
 
    <limits.h> exists even on freestanding compilers.  */
13465
 
 
13466
 
#ifdef __STDC__
13467
 
# include <limits.h>
13468
 
#else
13469
 
# include <assert.h>
13470
 
#endif
13471
 
 
13472
 
#undef dlopen
13473
 
 
13474
 
/* Override any gcc2 internal prototype to avoid an error.  */
13475
 
#ifdef __cplusplus
13476
 
extern "C"
13477
 
{
13478
 
#endif
13479
 
/* We use char because int might match the return type of a gcc2
13480
 
   builtin and then its argument prototype would still apply.  */
13481
 
char dlopen ();
13482
 
/* The GNU C library defines this for functions which it implements
13483
 
    to always fail with ENOSYS.  Some functions are actually named
13484
 
    something starting with __ and the normal name is an alias.  */
13485
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13486
 
choke me
13487
 
#else
13488
 
char (*f) () = dlopen;
13489
 
#endif
13490
 
#ifdef __cplusplus
13491
 
}
13492
 
#endif
13493
 
 
13494
 
int
13495
 
main ()
13496
 
{
13497
 
return f != dlopen;
13498
 
  ;
13499
 
  return 0;
13500
 
}
13501
 
_ACEOF
13502
 
rm -f conftest.$ac_objext conftest$ac_exeext
13503
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13504
 
  (eval $ac_link) 2>conftest.er1
13505
 
  ac_status=$?
13506
 
  grep -v '^ *+' conftest.er1 >conftest.err
13507
 
  rm -f conftest.er1
13508
 
  cat conftest.err >&5
13509
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510
 
  (exit $ac_status); } &&
13511
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13512
 
                         || test ! -s conftest.err'
13513
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514
 
  (eval $ac_try) 2>&5
13515
 
  ac_status=$?
13516
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517
 
  (exit $ac_status); }; } &&
13518
 
         { ac_try='test -s conftest$ac_exeext'
13519
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520
 
  (eval $ac_try) 2>&5
13521
 
  ac_status=$?
13522
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523
 
  (exit $ac_status); }; }; then
13524
 
  ac_cv_func_dlopen=yes
13525
 
else
13526
 
  echo "$as_me: failed program was:" >&5
13527
 
sed 's/^/| /' conftest.$ac_ext >&5
13528
 
 
13529
 
ac_cv_func_dlopen=no
13530
 
fi
13531
 
rm -f conftest.err conftest.$ac_objext \
13532
 
      conftest$ac_exeext conftest.$ac_ext
13533
 
fi
13534
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13535
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13536
 
if test $ac_cv_func_dlopen = yes; then
13537
 
  lt_cv_dlopen="dlopen"
13538
 
else
13539
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13540
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13541
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13542
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13543
 
else
13544
 
  ac_check_lib_save_LIBS=$LIBS
13545
 
LIBS="-ldl  $LIBS"
13546
 
cat >conftest.$ac_ext <<_ACEOF
13547
 
/* confdefs.h.  */
13548
 
_ACEOF
13549
 
cat confdefs.h >>conftest.$ac_ext
13550
 
cat >>conftest.$ac_ext <<_ACEOF
13551
 
/* end confdefs.h.  */
13552
 
 
13553
 
/* Override any gcc2 internal prototype to avoid an error.  */
13554
 
#ifdef __cplusplus
13555
 
extern "C"
13556
 
#endif
13557
 
/* We use char because int might match the return type of a gcc2
13558
 
   builtin and then its argument prototype would still apply.  */
13559
 
char dlopen ();
13560
 
int
13561
 
main ()
13562
 
{
13563
 
dlopen ();
13564
 
  ;
13565
 
  return 0;
13566
 
}
13567
 
_ACEOF
13568
 
rm -f conftest.$ac_objext conftest$ac_exeext
13569
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13570
 
  (eval $ac_link) 2>conftest.er1
13571
 
  ac_status=$?
13572
 
  grep -v '^ *+' conftest.er1 >conftest.err
13573
 
  rm -f conftest.er1
13574
 
  cat conftest.err >&5
13575
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576
 
  (exit $ac_status); } &&
13577
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13578
 
                         || test ! -s conftest.err'
13579
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580
 
  (eval $ac_try) 2>&5
13581
 
  ac_status=$?
13582
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583
 
  (exit $ac_status); }; } &&
13584
 
         { ac_try='test -s conftest$ac_exeext'
13585
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586
 
  (eval $ac_try) 2>&5
13587
 
  ac_status=$?
13588
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589
 
  (exit $ac_status); }; }; then
13590
 
  ac_cv_lib_dl_dlopen=yes
13591
 
else
13592
 
  echo "$as_me: failed program was:" >&5
13593
 
sed 's/^/| /' conftest.$ac_ext >&5
13594
 
 
13595
 
ac_cv_lib_dl_dlopen=no
13596
 
fi
13597
 
rm -f conftest.err conftest.$ac_objext \
13598
 
      conftest$ac_exeext conftest.$ac_ext
13599
 
LIBS=$ac_check_lib_save_LIBS
13600
 
fi
13601
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13602
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13603
 
if test $ac_cv_lib_dl_dlopen = yes; then
13604
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13605
 
else
13606
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13607
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13608
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13609
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13610
 
else
13611
 
  ac_check_lib_save_LIBS=$LIBS
13612
 
LIBS="-lsvld  $LIBS"
13613
 
cat >conftest.$ac_ext <<_ACEOF
13614
 
/* confdefs.h.  */
13615
 
_ACEOF
13616
 
cat confdefs.h >>conftest.$ac_ext
13617
 
cat >>conftest.$ac_ext <<_ACEOF
13618
 
/* end confdefs.h.  */
13619
 
 
13620
 
/* Override any gcc2 internal prototype to avoid an error.  */
13621
 
#ifdef __cplusplus
13622
 
extern "C"
13623
 
#endif
13624
 
/* We use char because int might match the return type of a gcc2
13625
 
   builtin and then its argument prototype would still apply.  */
13626
 
char dlopen ();
13627
 
int
13628
 
main ()
13629
 
{
13630
 
dlopen ();
13631
 
  ;
13632
 
  return 0;
13633
 
}
13634
 
_ACEOF
13635
 
rm -f conftest.$ac_objext conftest$ac_exeext
13636
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637
 
  (eval $ac_link) 2>conftest.er1
13638
 
  ac_status=$?
13639
 
  grep -v '^ *+' conftest.er1 >conftest.err
13640
 
  rm -f conftest.er1
13641
 
  cat conftest.err >&5
13642
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643
 
  (exit $ac_status); } &&
13644
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13645
 
                         || test ! -s conftest.err'
13646
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647
 
  (eval $ac_try) 2>&5
13648
 
  ac_status=$?
13649
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650
 
  (exit $ac_status); }; } &&
13651
 
         { ac_try='test -s conftest$ac_exeext'
13652
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653
 
  (eval $ac_try) 2>&5
13654
 
  ac_status=$?
13655
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656
 
  (exit $ac_status); }; }; then
13657
 
  ac_cv_lib_svld_dlopen=yes
13658
 
else
13659
 
  echo "$as_me: failed program was:" >&5
13660
 
sed 's/^/| /' conftest.$ac_ext >&5
13661
 
 
13662
 
ac_cv_lib_svld_dlopen=no
13663
 
fi
13664
 
rm -f conftest.err conftest.$ac_objext \
13665
 
      conftest$ac_exeext conftest.$ac_ext
13666
 
LIBS=$ac_check_lib_save_LIBS
13667
 
fi
13668
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13669
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13670
 
if test $ac_cv_lib_svld_dlopen = yes; then
13671
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13672
 
else
13673
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13674
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13675
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13676
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13677
 
else
13678
 
  ac_check_lib_save_LIBS=$LIBS
13679
 
LIBS="-ldld  $LIBS"
13680
 
cat >conftest.$ac_ext <<_ACEOF
13681
 
/* confdefs.h.  */
13682
 
_ACEOF
13683
 
cat confdefs.h >>conftest.$ac_ext
13684
 
cat >>conftest.$ac_ext <<_ACEOF
13685
 
/* end confdefs.h.  */
13686
 
 
13687
 
/* Override any gcc2 internal prototype to avoid an error.  */
13688
 
#ifdef __cplusplus
13689
 
extern "C"
13690
 
#endif
13691
 
/* We use char because int might match the return type of a gcc2
13692
 
   builtin and then its argument prototype would still apply.  */
13693
 
char dld_link ();
13694
 
int
13695
 
main ()
13696
 
{
13697
 
dld_link ();
13698
 
  ;
13699
 
  return 0;
13700
 
}
13701
 
_ACEOF
13702
 
rm -f conftest.$ac_objext conftest$ac_exeext
13703
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13704
 
  (eval $ac_link) 2>conftest.er1
13705
 
  ac_status=$?
13706
 
  grep -v '^ *+' conftest.er1 >conftest.err
13707
 
  rm -f conftest.er1
13708
 
  cat conftest.err >&5
13709
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710
 
  (exit $ac_status); } &&
13711
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13712
 
                         || test ! -s conftest.err'
13713
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714
 
  (eval $ac_try) 2>&5
13715
 
  ac_status=$?
13716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717
 
  (exit $ac_status); }; } &&
13718
 
         { ac_try='test -s conftest$ac_exeext'
13719
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720
 
  (eval $ac_try) 2>&5
13721
 
  ac_status=$?
13722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723
 
  (exit $ac_status); }; }; then
13724
 
  ac_cv_lib_dld_dld_link=yes
13725
 
else
13726
 
  echo "$as_me: failed program was:" >&5
13727
 
sed 's/^/| /' conftest.$ac_ext >&5
13728
 
 
13729
 
ac_cv_lib_dld_dld_link=no
13730
 
fi
13731
 
rm -f conftest.err conftest.$ac_objext \
13732
 
      conftest$ac_exeext conftest.$ac_ext
13733
 
LIBS=$ac_check_lib_save_LIBS
13734
 
fi
13735
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13736
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13737
 
if test $ac_cv_lib_dld_dld_link = yes; then
13738
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13739
 
fi
13740
 
 
13741
 
              
13742
 
fi
13743
 
 
13744
 
            
13745
 
fi
13746
 
 
13747
 
          
13748
 
fi
13749
 
 
13750
 
        
13751
 
fi
13752
 
 
13753
 
      
13754
 
fi
13755
 
 
13756
 
    ;;
13757
 
  esac
13758
 
 
13759
 
  if test "x$lt_cv_dlopen" != xno; then
13760
 
    enable_dlopen=yes
13761
 
  else
13762
 
    enable_dlopen=no
13763
 
  fi
13764
 
 
13765
 
  case $lt_cv_dlopen in
13766
 
  dlopen)
13767
 
    save_CPPFLAGS="$CPPFLAGS"
13768
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13769
 
 
13770
 
    save_LDFLAGS="$LDFLAGS"
13771
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13772
 
 
13773
 
    save_LIBS="$LIBS"
13774
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
13775
 
 
13776
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13777
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13778
 
if test "${lt_cv_dlopen_self+set}" = set; then
13779
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13780
 
else
13781
 
          if test "$cross_compiling" = yes; then :
13782
 
  lt_cv_dlopen_self=cross
13783
 
else
13784
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13785
 
  lt_status=$lt_dlunknown
13786
 
  cat > conftest.$ac_ext <<EOF
13787
 
#line __oline__ "configure"
13788
 
#include "confdefs.h"
13789
 
 
13790
 
#if HAVE_DLFCN_H
13791
 
#include <dlfcn.h>
13792
 
#endif
13793
 
 
13794
 
#include <stdio.h>
13795
 
 
13796
 
#ifdef RTLD_GLOBAL
13797
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13798
 
#else
13799
 
#  ifdef DL_GLOBAL
13800
 
#    define LT_DLGLOBAL         DL_GLOBAL
13801
 
#  else
13802
 
#    define LT_DLGLOBAL         0
13803
 
#  endif
13804
 
#endif
13805
 
 
13806
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13807
 
   find out it does not work in some platform. */
13808
 
#ifndef LT_DLLAZY_OR_NOW
13809
 
#  ifdef RTLD_LAZY
13810
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13811
 
#  else
13812
 
#    ifdef DL_LAZY
13813
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13814
 
#    else
13815
 
#      ifdef RTLD_NOW
13816
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13817
 
#      else
13818
 
#        ifdef DL_NOW
13819
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13820
 
#        else
13821
 
#          define LT_DLLAZY_OR_NOW      0
13822
 
#        endif
13823
 
#      endif
13824
 
#    endif
13825
 
#  endif
13826
 
#endif
13827
 
 
13828
 
#ifdef __cplusplus
13829
 
extern "C" void exit (int);
13830
 
#endif
13831
 
 
13832
 
void fnord() { int i=42;}
13833
 
int main ()
13834
 
{
13835
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13836
 
  int status = $lt_dlunknown;
13837
 
 
13838
 
  if (self)
13839
 
    {
13840
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13841
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13842
 
      /* dlclose (self); */
13843
 
    }
13844
 
 
13845
 
    exit (status);
13846
 
}
13847
 
EOF
13848
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13849
 
  (eval $ac_link) 2>&5
13850
 
  ac_status=$?
13851
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13853
 
    (./conftest; exit; ) 2>/dev/null
13854
 
    lt_status=$?
13855
 
    case x$lt_status in
13856
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13857
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13858
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13859
 
    esac
13860
 
  else :
13861
 
    # compilation failed
13862
 
    lt_cv_dlopen_self=no
13863
 
  fi
13864
 
fi
13865
 
rm -fr conftest*
13866
 
 
13867
 
    
13868
 
fi
13869
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13870
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13871
 
 
13872
 
    if test "x$lt_cv_dlopen_self" = xyes; then
13873
 
      LDFLAGS="$LDFLAGS $link_static_flag"
13874
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13875
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13876
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
13877
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13878
 
else
13879
 
          if test "$cross_compiling" = yes; then :
13880
 
  lt_cv_dlopen_self_static=cross
13881
 
else
13882
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13883
 
  lt_status=$lt_dlunknown
13884
 
  cat > conftest.$ac_ext <<EOF
13885
 
#line __oline__ "configure"
13886
 
#include "confdefs.h"
13887
 
 
13888
 
#if HAVE_DLFCN_H
13889
 
#include <dlfcn.h>
13890
 
#endif
13891
 
 
13892
 
#include <stdio.h>
13893
 
 
13894
 
#ifdef RTLD_GLOBAL
13895
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13896
 
#else
13897
 
#  ifdef DL_GLOBAL
13898
 
#    define LT_DLGLOBAL         DL_GLOBAL
13899
 
#  else
13900
 
#    define LT_DLGLOBAL         0
13901
 
#  endif
13902
 
#endif
13903
 
 
13904
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13905
 
   find out it does not work in some platform. */
13906
 
#ifndef LT_DLLAZY_OR_NOW
13907
 
#  ifdef RTLD_LAZY
13908
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13909
 
#  else
13910
 
#    ifdef DL_LAZY
13911
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13912
 
#    else
13913
 
#      ifdef RTLD_NOW
13914
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13915
 
#      else
13916
 
#        ifdef DL_NOW
13917
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13918
 
#        else
13919
 
#          define LT_DLLAZY_OR_NOW      0
13920
 
#        endif
13921
 
#      endif
13922
 
#    endif
13923
 
#  endif
13924
 
#endif
13925
 
 
13926
 
#ifdef __cplusplus
13927
 
extern "C" void exit (int);
13928
 
#endif
13929
 
 
13930
 
void fnord() { int i=42;}
13931
 
int main ()
13932
 
{
13933
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13934
 
  int status = $lt_dlunknown;
13935
 
 
13936
 
  if (self)
13937
 
    {
13938
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13939
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13940
 
      /* dlclose (self); */
13941
 
    }
13942
 
 
13943
 
    exit (status);
13944
 
}
13945
 
EOF
13946
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13947
 
  (eval $ac_link) 2>&5
13948
 
  ac_status=$?
13949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13951
 
    (./conftest; exit; ) 2>/dev/null
13952
 
    lt_status=$?
13953
 
    case x$lt_status in
13954
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13955
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13956
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13957
 
    esac
13958
 
  else :
13959
 
    # compilation failed
13960
 
    lt_cv_dlopen_self_static=no
13961
 
  fi
13962
 
fi
13963
 
rm -fr conftest*
13964
 
 
13965
 
      
13966
 
fi
13967
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13968
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13969
 
    fi
13970
 
 
13971
 
    CPPFLAGS="$save_CPPFLAGS"
13972
 
    LDFLAGS="$save_LDFLAGS"
13973
 
    LIBS="$save_LIBS"
13974
 
    ;;
13975
 
  esac
13976
 
 
13977
 
  case $lt_cv_dlopen_self in
13978
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13979
 
  *) enable_dlopen_self=unknown ;;
13980
 
  esac
13981
 
 
13982
 
  case $lt_cv_dlopen_self_static in
13983
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13984
 
  *) enable_dlopen_self_static=unknown ;;
13985
 
  esac
13986
 
fi
13987
 
 
13988
 
 
13989
 
# The else clause should only fire when bootstrapping the
13990
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13991
 
# with your package, and you will get complaints that there are
13992
 
# no rules to generate ltmain.sh.
13993
 
if test -f "$ltmain"; then
13994
 
  # See if we are running on zsh, and set the options which allow our commands through
13995
 
  # without removal of \ escapes.
13996
 
  if test -n "${ZSH_VERSION+set}" ; then
13997
 
    setopt NO_GLOB_SUBST
13998
 
  fi
13999
 
  # Now quote all the things that may contain metacharacters while being
14000
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14001
 
  # variables and quote the copies for generation of the libtool script.
14002
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
14003
 
    SED SHELL STRIP \
14004
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14005
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14006
 
    deplibs_check_method reload_flag reload_cmds need_locks \
14007
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14008
 
    lt_cv_sys_global_symbol_to_c_name_address \
14009
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14010
 
    old_postinstall_cmds old_postuninstall_cmds \
14011
 
    compiler_CXX \
14012
 
    CC_CXX \
14013
 
    LD_CXX \
14014
 
    lt_prog_compiler_wl_CXX \
14015
 
    lt_prog_compiler_pic_CXX \
14016
 
    lt_prog_compiler_static_CXX \
14017
 
    lt_prog_compiler_no_builtin_flag_CXX \
14018
 
    export_dynamic_flag_spec_CXX \
14019
 
    thread_safe_flag_spec_CXX \
14020
 
    whole_archive_flag_spec_CXX \
14021
 
    enable_shared_with_static_runtimes_CXX \
14022
 
    old_archive_cmds_CXX \
14023
 
    old_archive_from_new_cmds_CXX \
14024
 
    predep_objects_CXX \
14025
 
    postdep_objects_CXX \
14026
 
    predeps_CXX \
14027
 
    postdeps_CXX \
14028
 
    compiler_lib_search_path_CXX \
14029
 
    archive_cmds_CXX \
14030
 
    archive_expsym_cmds_CXX \
14031
 
    postinstall_cmds_CXX \
14032
 
    postuninstall_cmds_CXX \
14033
 
    old_archive_from_expsyms_cmds_CXX \
14034
 
    allow_undefined_flag_CXX \
14035
 
    no_undefined_flag_CXX \
14036
 
    export_symbols_cmds_CXX \
14037
 
    hardcode_libdir_flag_spec_CXX \
14038
 
    hardcode_libdir_flag_spec_ld_CXX \
14039
 
    hardcode_libdir_separator_CXX \
14040
 
    hardcode_automatic_CXX \
14041
 
    module_cmds_CXX \
14042
 
    module_expsym_cmds_CXX \
14043
 
    lt_cv_prog_compiler_c_o_CXX \
14044
 
    exclude_expsyms_CXX \
14045
 
    include_expsyms_CXX; do
14046
 
 
14047
 
    case $var in
14048
 
    old_archive_cmds_CXX | \
14049
 
    old_archive_from_new_cmds_CXX | \
14050
 
    archive_cmds_CXX | \
14051
 
    archive_expsym_cmds_CXX | \
14052
 
    module_cmds_CXX | \
14053
 
    module_expsym_cmds_CXX | \
14054
 
    old_archive_from_expsyms_cmds_CXX | \
14055
 
    export_symbols_cmds_CXX | \
14056
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14057
 
    postinstall_cmds | postuninstall_cmds | \
14058
 
    old_postinstall_cmds | old_postuninstall_cmds | \
14059
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14060
 
      # Double-quote double-evaled strings.
14061
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14062
 
      ;;
14063
 
    *)
14064
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14065
 
      ;;
14066
 
    esac
14067
 
  done
14068
 
 
14069
 
  case $lt_echo in
14070
 
  *'\$0 --fallback-echo"')
14071
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14072
 
    ;;
14073
 
  esac
14074
 
 
14075
 
cfgfile="$ofile"
14076
 
 
14077
 
  cat <<__EOF__ >> "$cfgfile"
14078
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14079
 
 
14080
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14081
 
 
14082
 
# Shell to use when invoking shell scripts.
14083
 
SHELL=$lt_SHELL
14084
 
 
14085
 
# Whether or not to build shared libraries.
14086
 
build_libtool_libs=$enable_shared
14087
 
 
14088
 
# Whether or not to build static libraries.
14089
 
build_old_libs=$enable_static
14090
 
 
14091
 
# Whether or not to add -lc for building shared libraries.
14092
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14093
 
 
14094
 
# Whether or not to disallow shared libs when runtime libs are static
14095
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14096
 
 
14097
 
# Whether or not to optimize for fast installation.
14098
 
fast_install=$enable_fast_install
14099
 
 
14100
 
# The host system.
14101
 
host_alias=$host_alias
14102
 
host=$host
14103
 
host_os=$host_os
14104
 
 
14105
 
# The build system.
14106
 
build_alias=$build_alias
14107
 
build=$build
14108
 
build_os=$build_os
14109
 
 
14110
 
# An echo program that does not interpret backslashes.
14111
 
echo=$lt_echo
14112
 
 
14113
 
# The archiver.
14114
 
AR=$lt_AR
14115
 
AR_FLAGS=$lt_AR_FLAGS
14116
 
 
14117
 
# A C compiler.
14118
 
LTCC=$lt_LTCC
14119
 
 
14120
 
# A language-specific compiler.
14121
 
CC=$lt_compiler_CXX
14122
 
 
14123
 
# Is the compiler the GNU C compiler?
14124
 
with_gcc=$GCC_CXX
14125
 
 
14126
 
# An ERE matcher.
14127
 
EGREP=$lt_EGREP
14128
 
 
14129
 
# The linker used to build libraries.
14130
 
LD=$lt_LD_CXX
14131
 
 
14132
 
# Whether we need hard or soft links.
14133
 
LN_S=$lt_LN_S
14134
 
 
14135
 
# A BSD-compatible nm program.
14136
 
NM=$lt_NM
14137
 
 
14138
 
# A symbol stripping program
14139
 
STRIP=$lt_STRIP
14140
 
 
14141
 
# Used to examine libraries when file_magic_cmd begins "file"
14142
 
MAGIC_CMD=$MAGIC_CMD
14143
 
 
14144
 
# Used on cygwin: DLL creation program.
14145
 
DLLTOOL="$DLLTOOL"
14146
 
 
14147
 
# Used on cygwin: object dumper.
14148
 
OBJDUMP="$OBJDUMP"
14149
 
 
14150
 
# Used on cygwin: assembler.
14151
 
AS=$lt_AS
14152
 
 
14153
 
# The name of the directory that contains temporary libtool files.
14154
 
objdir=$objdir
14155
 
 
14156
 
# How to create reloadable object files.
14157
 
reload_flag=$lt_reload_flag
14158
 
reload_cmds=$lt_reload_cmds
14159
 
 
14160
 
# How to pass a linker flag through the compiler.
14161
 
wl=$lt_lt_prog_compiler_wl_CXX
14162
 
 
14163
 
# Object file suffix (normally "o").
14164
 
objext="$ac_objext"
14165
 
 
14166
 
# Old archive suffix (normally "a").
14167
 
libext="$libext"
14168
 
 
14169
 
# Shared library suffix (normally ".so").
14170
 
shrext_cmds='$shrext_cmds'
14171
 
 
14172
 
# Executable file suffix (normally "").
14173
 
exeext="$exeext"
14174
 
 
14175
 
# Additional compiler flags for building library objects.
14176
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
14177
 
pic_mode=$pic_mode
14178
 
 
14179
 
# What is the maximum length of a command?
14180
 
max_cmd_len=$lt_cv_sys_max_cmd_len
14181
 
 
14182
 
# Does compiler simultaneously support -c and -o options?
14183
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14184
 
 
14185
 
# Must we lock files when doing compilation ?
14186
 
need_locks=$lt_need_locks
14187
 
 
14188
 
# Do we need the lib prefix for modules?
14189
 
need_lib_prefix=$need_lib_prefix
14190
 
 
14191
 
# Do we need a version for libraries?
14192
 
need_version=$need_version
14193
 
 
14194
 
# Whether dlopen is supported.
14195
 
dlopen_support=$enable_dlopen
14196
 
 
14197
 
# Whether dlopen of programs is supported.
14198
 
dlopen_self=$enable_dlopen_self
14199
 
 
14200
 
# Whether dlopen of statically linked programs is supported.
14201
 
dlopen_self_static=$enable_dlopen_self_static
14202
 
 
14203
 
# Compiler flag to prevent dynamic linking.
14204
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
14205
 
 
14206
 
# Compiler flag to turn off builtin functions.
14207
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14208
 
 
14209
 
# Compiler flag to allow reflexive dlopens.
14210
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14211
 
 
14212
 
# Compiler flag to generate shared objects directly from archives.
14213
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14214
 
 
14215
 
# Compiler flag to generate thread-safe objects.
14216
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14217
 
 
14218
 
# Library versioning type.
14219
 
version_type=$version_type
14220
 
 
14221
 
# Format of library name prefix.
14222
 
libname_spec=$lt_libname_spec
14223
 
 
14224
 
# List of archive names.  First name is the real one, the rest are links.
14225
 
# The last name is the one that the linker finds with -lNAME.
14226
 
library_names_spec=$lt_library_names_spec
14227
 
 
14228
 
# The coded name of the library, if different from the real name.
14229
 
soname_spec=$lt_soname_spec
14230
 
 
14231
 
# Commands used to build and install an old-style archive.
14232
 
RANLIB=$lt_RANLIB
14233
 
old_archive_cmds=$lt_old_archive_cmds_CXX
14234
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14235
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14236
 
 
14237
 
# Create an old-style archive from a shared archive.
14238
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14239
 
 
14240
 
# Create a temporary old-style archive to link instead of a shared archive.
14241
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14242
 
 
14243
 
# Commands used to build and install a shared archive.
14244
 
archive_cmds=$lt_archive_cmds_CXX
14245
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14246
 
postinstall_cmds=$lt_postinstall_cmds
14247
 
postuninstall_cmds=$lt_postuninstall_cmds
14248
 
 
14249
 
# Commands used to build a loadable module (assumed same as above if empty)
14250
 
module_cmds=$lt_module_cmds_CXX
14251
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14252
 
 
14253
 
# Commands to strip libraries.
14254
 
old_striplib=$lt_old_striplib
14255
 
striplib=$lt_striplib
14256
 
 
14257
 
# Dependencies to place before the objects being linked to create a
14258
 
# shared library.
14259
 
predep_objects=$lt_predep_objects_CXX
14260
 
 
14261
 
# Dependencies to place after the objects being linked to create a
14262
 
# shared library.
14263
 
postdep_objects=$lt_postdep_objects_CXX
14264
 
 
14265
 
# Dependencies to place before the objects being linked to create a
14266
 
# shared library.
14267
 
predeps=$lt_predeps_CXX
14268
 
 
14269
 
# Dependencies to place after the objects being linked to create a
14270
 
# shared library.
14271
 
postdeps=$lt_postdeps_CXX
14272
 
 
14273
 
# The library search path used internally by the compiler when linking
14274
 
# a shared library.
14275
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14276
 
 
14277
 
# Method to check whether dependent libraries are shared objects.
14278
 
deplibs_check_method=$lt_deplibs_check_method
14279
 
 
14280
 
# Command to use when deplibs_check_method == file_magic.
14281
 
file_magic_cmd=$lt_file_magic_cmd
14282
 
 
14283
 
# Flag that allows shared libraries with undefined symbols to be built.
14284
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14285
 
 
14286
 
# Flag that forces no undefined symbols.
14287
 
no_undefined_flag=$lt_no_undefined_flag_CXX
14288
 
 
14289
 
# Commands used to finish a libtool library installation in a directory.
14290
 
finish_cmds=$lt_finish_cmds
14291
 
 
14292
 
# Same as above, but a single script fragment to be evaled but not shown.
14293
 
finish_eval=$lt_finish_eval
14294
 
 
14295
 
# Take the output of nm and produce a listing of raw symbols and C names.
14296
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14297
 
 
14298
 
# Transform the output of nm in a proper C declaration
14299
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14300
 
 
14301
 
# Transform the output of nm in a C name address pair
14302
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14303
 
 
14304
 
# This is the shared library runtime path variable.
14305
 
runpath_var=$runpath_var
14306
 
 
14307
 
# This is the shared library path variable.
14308
 
shlibpath_var=$shlibpath_var
14309
 
 
14310
 
# Is shlibpath searched before the hard-coded library search path?
14311
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14312
 
 
14313
 
# How to hardcode a shared library path into an executable.
14314
 
hardcode_action=$hardcode_action_CXX
14315
 
 
14316
 
# Whether we should hardcode library paths into libraries.
14317
 
hardcode_into_libs=$hardcode_into_libs
14318
 
 
14319
 
# Flag to hardcode \$libdir into a binary during linking.
14320
 
# This must work even if \$libdir does not exist.
14321
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14322
 
 
14323
 
# If ld is used when linking, flag to hardcode \$libdir into
14324
 
# a binary during linking. This must work even if \$libdir does
14325
 
# not exist.
14326
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14327
 
 
14328
 
# Whether we need a single -rpath flag with a separated argument.
14329
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14330
 
 
14331
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14332
 
# resulting binary.
14333
 
hardcode_direct=$hardcode_direct_CXX
14334
 
 
14335
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14336
 
# resulting binary.
14337
 
hardcode_minus_L=$hardcode_minus_L_CXX
14338
 
 
14339
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14340
 
# the resulting binary.
14341
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14342
 
 
14343
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14344
 
# and all subsequent libraries and executables linked against it.
14345
 
hardcode_automatic=$hardcode_automatic_CXX
14346
 
 
14347
 
# Variables whose values should be saved in libtool wrapper scripts and
14348
 
# restored at relink time.
14349
 
variables_saved_for_relink="$variables_saved_for_relink"
14350
 
 
14351
 
# Whether libtool must link a program against all its dependency libraries.
14352
 
link_all_deplibs=$link_all_deplibs_CXX
14353
 
 
14354
 
# Compile-time system search path for libraries
14355
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14356
 
 
14357
 
# Run-time system search path for libraries
14358
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14359
 
 
14360
 
# Fix the shell variable \$srcfile for the compiler.
14361
 
fix_srcfile_path="$fix_srcfile_path_CXX"
14362
 
 
14363
 
# Set to yes if exported symbols are required.
14364
 
always_export_symbols=$always_export_symbols_CXX
14365
 
 
14366
 
# The commands to list exported symbols.
14367
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14368
 
 
14369
 
# The commands to extract the exported symbol list from a shared archive.
14370
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14371
 
 
14372
 
# Symbols that should not be listed in the preloaded symbols.
14373
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14374
 
 
14375
 
# Symbols that must always be exported.
14376
 
include_expsyms=$lt_include_expsyms_CXX
14377
 
 
14378
 
# ### END LIBTOOL TAG CONFIG: $tagname
14379
 
 
14380
 
__EOF__
14381
 
 
14382
 
 
14383
 
else
14384
 
  # If there is no Makefile yet, we rely on a make rule to execute
14385
 
  # `config.status --recheck' to rerun these tests and create the
14386
 
  # libtool script then.
14387
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14388
 
  if test -f "$ltmain_in"; then
14389
 
    test -f Makefile && make "$ltmain"
14390
 
  fi
14391
 
fi
14392
 
 
14393
 
 
14394
 
ac_ext=c
14395
 
ac_cpp='$CPP $CPPFLAGS'
14396
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14397
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14398
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14399
 
 
14400
 
CC=$lt_save_CC
14401
 
LDCXX=$LD
14402
 
LD=$lt_save_LD
14403
 
GCC=$lt_save_GCC
14404
 
with_gnu_ldcxx=$with_gnu_ld
14405
 
with_gnu_ld=$lt_save_with_gnu_ld
14406
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14407
 
lt_cv_path_LD=$lt_save_path_LD
14408
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14409
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14410
 
 
14411
 
        else
14412
 
          tagname=""
14413
 
        fi
14414
 
        ;;
14415
 
 
14416
 
      F77)
14417
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14418
 
          
14419
 
ac_ext=f
14420
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14421
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14422
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14423
 
 
14424
 
 
14425
 
archive_cmds_need_lc_F77=no
14426
 
allow_undefined_flag_F77=
14427
 
always_export_symbols_F77=no
14428
 
archive_expsym_cmds_F77=
14429
 
export_dynamic_flag_spec_F77=
14430
 
hardcode_direct_F77=no
14431
 
hardcode_libdir_flag_spec_F77=
14432
 
hardcode_libdir_flag_spec_ld_F77=
14433
 
hardcode_libdir_separator_F77=
14434
 
hardcode_minus_L_F77=no
14435
 
hardcode_automatic_F77=no
14436
 
module_cmds_F77=
14437
 
module_expsym_cmds_F77=
14438
 
link_all_deplibs_F77=unknown
14439
 
old_archive_cmds_F77=$old_archive_cmds
14440
 
no_undefined_flag_F77=
14441
 
whole_archive_flag_spec_F77=
14442
 
enable_shared_with_static_runtimes_F77=no
14443
 
 
14444
 
# Source file extension for f77 test sources.
14445
 
ac_ext=f
14446
 
 
14447
 
# Object file extension for compiled f77 test sources.
14448
 
objext=o
14449
 
objext_F77=$objext
14450
 
 
14451
 
# Code to be used in simple compile tests
14452
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14453
 
 
14454
 
# Code to be used in simple link tests
14455
 
lt_simple_link_test_code="      program t\n      end\n"
14456
 
 
14457
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14458
 
 
14459
 
# If no C compiler was specified, use CC.
14460
 
LTCC=${LTCC-"$CC"}
14461
 
 
14462
 
# Allow CC to be a program name with arguments.
14463
 
compiler=$CC
14464
 
 
14465
 
 
14466
 
# Allow CC to be a program name with arguments.
14467
 
lt_save_CC="$CC"
14468
 
CC=${F77-"f77"}
14469
 
compiler=$CC
14470
 
compiler_F77=$CC
14471
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14472
 
 
14473
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14474
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14475
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14476
 
echo "${ECHO_T}$can_build_shared" >&6
14477
 
 
14478
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14479
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14480
 
test "$can_build_shared" = "no" && enable_shared=no
14481
 
 
14482
 
# On AIX, shared libraries and static libraries use the same namespace, and
14483
 
# are all built from PIC.
14484
 
case "$host_os" in
14485
 
aix3*)
14486
 
  test "$enable_shared" = yes && enable_static=no
14487
 
  if test -n "$RANLIB"; then
14488
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14489
 
    postinstall_cmds='$RANLIB $lib'
14490
 
  fi
14491
 
  ;;
14492
 
aix4* | aix5*)
14493
 
  test "$enable_shared" = yes && enable_static=no
14494
 
  ;;
14495
 
esac
14496
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
14497
 
echo "${ECHO_T}$enable_shared" >&6
14498
 
 
14499
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14500
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14501
 
# Make sure either enable_shared or enable_static is yes.
14502
 
test "$enable_shared" = yes || enable_static=yes
14503
 
echo "$as_me:$LINENO: result: $enable_static" >&5
14504
 
echo "${ECHO_T}$enable_static" >&6
14505
 
 
14506
 
test "$ld_shlibs_F77" = no && can_build_shared=no
14507
 
 
14508
 
GCC_F77="$G77"
14509
 
LD_F77="$LD"
14510
 
 
14511
 
lt_prog_compiler_wl_F77=
14512
 
lt_prog_compiler_pic_F77=
14513
 
lt_prog_compiler_static_F77=
14514
 
 
14515
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14516
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14517
 
 
14518
 
  if test "$GCC" = yes; then
14519
 
    lt_prog_compiler_wl_F77='-Wl,'
14520
 
    lt_prog_compiler_static_F77='-static'
14521
 
 
14522
 
    case $host_os in
14523
 
      aix*)
14524
 
      # All AIX code is PIC.
14525
 
      if test "$host_cpu" = ia64; then
14526
 
        # AIX 5 now supports IA64 processor
14527
 
        lt_prog_compiler_static_F77='-Bstatic'
14528
 
      fi
14529
 
      ;;
14530
 
 
14531
 
    amigaos*)
14532
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14533
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14534
 
      # like `-m68040'.
14535
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14536
 
      ;;
14537
 
 
14538
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14539
 
      # PIC is the default for these OSes.
14540
 
      ;;
14541
 
 
14542
 
    mingw* | pw32* | os2*)
14543
 
      # This hack is so that the source file can tell whether it is being
14544
 
      # built for inclusion in a dll (and should export symbols for example).
14545
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14546
 
      ;;
14547
 
 
14548
 
    darwin* | rhapsody*)
14549
 
      # PIC is the default on this platform
14550
 
      # Common symbols not allowed in MH_DYLIB files
14551
 
      lt_prog_compiler_pic_F77='-fno-common'
14552
 
      ;;
14553
 
 
14554
 
    msdosdjgpp*)
14555
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14556
 
      # on systems that don't support them.
14557
 
      lt_prog_compiler_can_build_shared_F77=no
14558
 
      enable_shared=no
14559
 
      ;;
14560
 
 
14561
 
    sysv4*MP*)
14562
 
      if test -d /usr/nec; then
14563
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14564
 
      fi
14565
 
      ;;
14566
 
 
14567
 
    hpux*)
14568
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14569
 
      # not for PA HP-UX.
14570
 
      case "$host_cpu" in
14571
 
      hppa*64*|ia64*)
14572
 
        # +Z the default
14573
 
        ;;
14574
 
      *)
14575
 
        lt_prog_compiler_pic_F77='-fPIC'
14576
 
        ;;
14577
 
      esac
14578
 
      ;;
14579
 
 
14580
 
    *)
14581
 
      lt_prog_compiler_pic_F77='-fPIC'
14582
 
      ;;
14583
 
    esac
14584
 
  else
14585
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14586
 
    case $host_os in
14587
 
    aix*)
14588
 
      lt_prog_compiler_wl_F77='-Wl,'
14589
 
      if test "$host_cpu" = ia64; then
14590
 
        # AIX 5 now supports IA64 processor
14591
 
        lt_prog_compiler_static_F77='-Bstatic'
14592
 
      else
14593
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14594
 
      fi
14595
 
      ;;
14596
 
      darwin*)
14597
 
        # PIC is the default on this platform
14598
 
        # Common symbols not allowed in MH_DYLIB files
14599
 
       case "$cc_basename" in
14600
 
         xlc*)
14601
 
         lt_prog_compiler_pic_F77='-qnocommon'
14602
 
         lt_prog_compiler_wl_F77='-Wl,'
14603
 
         ;;
14604
 
       esac
14605
 
       ;;
14606
 
 
14607
 
    mingw* | pw32* | os2*)
14608
 
      # This hack is so that the source file can tell whether it is being
14609
 
      # built for inclusion in a dll (and should export symbols for example).
14610
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14611
 
      ;;
14612
 
 
14613
 
    hpux9* | hpux10* | hpux11*)
14614
 
      lt_prog_compiler_wl_F77='-Wl,'
14615
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14616
 
      # not for PA HP-UX.
14617
 
      case "$host_cpu" in
14618
 
      hppa*64*|ia64*)
14619
 
        # +Z the default
14620
 
        ;;
14621
 
      *)
14622
 
        lt_prog_compiler_pic_F77='+Z'
14623
 
        ;;
14624
 
      esac
14625
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14626
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14627
 
      ;;
14628
 
 
14629
 
    irix5* | irix6* | nonstopux*)
14630
 
      lt_prog_compiler_wl_F77='-Wl,'
14631
 
      # PIC (with -KPIC) is the default.
14632
 
      lt_prog_compiler_static_F77='-non_shared'
14633
 
      ;;
14634
 
 
14635
 
    newsos6)
14636
 
      lt_prog_compiler_pic_F77='-KPIC'
14637
 
      lt_prog_compiler_static_F77='-Bstatic'
14638
 
      ;;
14639
 
 
14640
 
    linux*)
14641
 
      case $cc_basename in
14642
 
      icc* | ecc*)
14643
 
        lt_prog_compiler_wl_F77='-Wl,'
14644
 
        lt_prog_compiler_pic_F77='-KPIC'
14645
 
        lt_prog_compiler_static_F77='-static'
14646
 
        ;;
14647
 
      pgcc | pgf77 | pgf90)
14648
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
14649
 
        # which looks to be a dead project)
14650
 
        lt_prog_compiler_wl_F77='-Wl,'
14651
 
        lt_prog_compiler_pic_F77='-fpic'
14652
 
        lt_prog_compiler_static_F77='-static'
14653
 
        ;;
14654
 
      ccc*)
14655
 
        lt_prog_compiler_wl_F77='-Wl,'
14656
 
        # All Alpha code is PIC.
14657
 
        lt_prog_compiler_static_F77='-non_shared'
14658
 
        ;;
14659
 
      esac
14660
 
      ;;
14661
 
 
14662
 
    osf3* | osf4* | osf5*)
14663
 
      lt_prog_compiler_wl_F77='-Wl,'
14664
 
      # All OSF/1 code is PIC.
14665
 
      lt_prog_compiler_static_F77='-non_shared'
14666
 
      ;;
14667
 
 
14668
 
    sco3.2v5*)
14669
 
      lt_prog_compiler_pic_F77='-Kpic'
14670
 
      lt_prog_compiler_static_F77='-dn'
14671
 
      ;;
14672
 
 
14673
 
    solaris*)
14674
 
      lt_prog_compiler_wl_F77='-Wl,'
14675
 
      lt_prog_compiler_pic_F77='-KPIC'
14676
 
      lt_prog_compiler_static_F77='-Bstatic'
14677
 
      ;;
14678
 
 
14679
 
    sunos4*)
14680
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14681
 
      lt_prog_compiler_pic_F77='-PIC'
14682
 
      lt_prog_compiler_static_F77='-Bstatic'
14683
 
      ;;
14684
 
 
14685
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14686
 
      lt_prog_compiler_wl_F77='-Wl,'
14687
 
      lt_prog_compiler_pic_F77='-KPIC'
14688
 
      lt_prog_compiler_static_F77='-Bstatic'
14689
 
      ;;
14690
 
 
14691
 
    sysv4*MP*)
14692
 
      if test -d /usr/nec ;then
14693
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14694
 
        lt_prog_compiler_static_F77='-Bstatic'
14695
 
      fi
14696
 
      ;;
14697
 
 
14698
 
    unicos*)
14699
 
      lt_prog_compiler_wl_F77='-Wl,'
14700
 
      lt_prog_compiler_can_build_shared_F77=no
14701
 
      ;;
14702
 
 
14703
 
    uts4*)
14704
 
      lt_prog_compiler_pic_F77='-pic'
14705
 
      lt_prog_compiler_static_F77='-Bstatic'
14706
 
      ;;
14707
 
 
14708
 
    *)
14709
 
      lt_prog_compiler_can_build_shared_F77=no
14710
 
      ;;
14711
 
    esac
14712
 
  fi
14713
 
 
14714
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14715
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14716
 
 
14717
 
#
14718
 
# Check to make sure the PIC flag actually works.
14719
 
#
14720
 
if test -n "$lt_prog_compiler_pic_F77"; then
14721
 
  
14722
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14723
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14724
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14725
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14726
 
else
14727
 
  lt_prog_compiler_pic_works_F77=no
14728
 
  ac_outfile=conftest.$ac_objext
14729
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14730
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14731
 
   # Insert the option either (1) after the last *FLAGS variable, or
14732
 
   # (2) before a word containing "conftest.", or (3) at the end.
14733
 
   # Note that $ac_compile itself does not contain backslashes and begins
14734
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14735
 
   # The option is referenced via a variable to avoid confusing sed.
14736
 
   lt_compile=`echo "$ac_compile" | $SED \
14737
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14738
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14739
 
   -e 's:$: $lt_compiler_flag:'`
14740
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14741
 
   (eval "$lt_compile" 2>conftest.err)
14742
 
   ac_status=$?
14743
 
   cat conftest.err >&5
14744
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
14745
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14746
 
     # The compiler can only warn and ignore the option if not recognized
14747
 
     # So say no if there are warnings
14748
 
     if test ! -s conftest.err; then
14749
 
       lt_prog_compiler_pic_works_F77=yes
14750
 
     fi
14751
 
   fi
14752
 
   $rm conftest*
14753
 
 
14754
 
fi
14755
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14756
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14757
 
 
14758
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14759
 
    case $lt_prog_compiler_pic_F77 in
14760
 
     "" | " "*) ;;
14761
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14762
 
     esac
14763
 
else
14764
 
    lt_prog_compiler_pic_F77=
14765
 
     lt_prog_compiler_can_build_shared_F77=no
14766
 
fi
14767
 
 
14768
 
fi
14769
 
case "$host_os" in
14770
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14771
 
  *djgpp*)
14772
 
    lt_prog_compiler_pic_F77=
14773
 
    ;;
14774
 
  *)
14775
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14776
 
    ;;
14777
 
esac
14778
 
 
14779
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14780
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14781
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14782
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14783
 
else
14784
 
  lt_cv_prog_compiler_c_o_F77=no
14785
 
   $rm -r conftest 2>/dev/null
14786
 
   mkdir conftest
14787
 
   cd conftest
14788
 
   mkdir out
14789
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14790
 
 
14791
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14792
 
   # Insert the option either (1) after the last *FLAGS variable, or
14793
 
   # (2) before a word containing "conftest.", or (3) at the end.
14794
 
   # Note that $ac_compile itself does not contain backslashes and begins
14795
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14796
 
   lt_compile=`echo "$ac_compile" | $SED \
14797
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14798
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14799
 
   -e 's:$: $lt_compiler_flag:'`
14800
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14801
 
   (eval "$lt_compile" 2>out/conftest.err)
14802
 
   ac_status=$?
14803
 
   cat out/conftest.err >&5
14804
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
14805
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14806
 
   then
14807
 
     # The compiler can only warn and ignore the option if not recognized
14808
 
     # So say no if there are warnings
14809
 
     if test ! -s out/conftest.err; then
14810
 
       lt_cv_prog_compiler_c_o_F77=yes
14811
 
     fi
14812
 
   fi
14813
 
   chmod u+w .
14814
 
   $rm conftest*
14815
 
   # SGI C++ compiler will create directory out/ii_files/ for
14816
 
   # template instantiation
14817
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14818
 
   $rm out/* && rmdir out
14819
 
   cd ..
14820
 
   rmdir conftest
14821
 
   $rm conftest*
14822
 
 
14823
 
fi
14824
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14825
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14826
 
 
14827
 
 
14828
 
hard_links="nottested"
14829
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14830
 
  # do not overwrite the value of need_locks provided by the user
14831
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14832
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14833
 
  hard_links=yes
14834
 
  $rm conftest*
14835
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14836
 
  touch conftest.a
14837
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14838
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14839
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
14840
 
echo "${ECHO_T}$hard_links" >&6
14841
 
  if test "$hard_links" = no; then
14842
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14843
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14844
 
    need_locks=warn
14845
 
  fi
14846
 
else
14847
 
  need_locks=no
14848
 
fi
14849
 
 
14850
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14851
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14852
 
 
14853
 
  runpath_var=
14854
 
  allow_undefined_flag_F77=
14855
 
  enable_shared_with_static_runtimes_F77=no
14856
 
  archive_cmds_F77=
14857
 
  archive_expsym_cmds_F77=
14858
 
  old_archive_From_new_cmds_F77=
14859
 
  old_archive_from_expsyms_cmds_F77=
14860
 
  export_dynamic_flag_spec_F77=
14861
 
  whole_archive_flag_spec_F77=
14862
 
  thread_safe_flag_spec_F77=
14863
 
  hardcode_libdir_flag_spec_F77=
14864
 
  hardcode_libdir_flag_spec_ld_F77=
14865
 
  hardcode_libdir_separator_F77=
14866
 
  hardcode_direct_F77=no
14867
 
  hardcode_minus_L_F77=no
14868
 
  hardcode_shlibpath_var_F77=unsupported
14869
 
  link_all_deplibs_F77=unknown
14870
 
  hardcode_automatic_F77=no
14871
 
  module_cmds_F77=
14872
 
  module_expsym_cmds_F77=
14873
 
  always_export_symbols_F77=no
14874
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14875
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14876
 
  # included in the symbol list
14877
 
  include_expsyms_F77=
14878
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14879
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14880
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14881
 
  # as well as any symbol that contains `d'.
14882
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14883
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14884
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14885
 
  # the symbol is explicitly referenced.  Since portable code cannot
14886
 
  # rely on this symbol name, it's probably fine to never include it in
14887
 
  # preloaded symbol tables.
14888
 
  extract_expsyms_cmds=
14889
 
 
14890
 
  case $host_os in
14891
 
  cygwin* | mingw* | pw32*)
14892
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14893
 
    # When not using gcc, we currently assume that we are using
14894
 
    # Microsoft Visual C++.
14895
 
    if test "$GCC" != yes; then
14896
 
      with_gnu_ld=no
14897
 
    fi
14898
 
    ;;
14899
 
  openbsd*)
14900
 
    with_gnu_ld=no
14901
 
    ;;
14902
 
  esac
14903
 
 
14904
 
  ld_shlibs_F77=yes
14905
 
  if test "$with_gnu_ld" = yes; then
14906
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14907
 
    wlarc='${wl}'
14908
 
 
14909
 
    # See if GNU ld supports shared libraries.
14910
 
    case $host_os in
14911
 
    aix3* | aix4* | aix5*)
14912
 
      # On AIX/PPC, the GNU linker is very broken
14913
 
      if test "$host_cpu" != ia64; then
14914
 
        ld_shlibs_F77=no
14915
 
        cat <<EOF 1>&2
14916
 
 
14917
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14918
 
*** to be unable to reliably create shared libraries on AIX.
14919
 
*** Therefore, libtool is disabling shared libraries support.  If you
14920
 
*** really care for shared libraries, you may want to modify your PATH
14921
 
*** so that a non-GNU linker is found, and then restart.
14922
 
 
14923
 
EOF
14924
 
      fi
14925
 
      ;;
14926
 
 
14927
 
    amigaos*)
14928
 
      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)'
14929
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14930
 
      hardcode_minus_L_F77=yes
14931
 
 
14932
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14933
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14934
 
      # to version 4, is to share data among multiple programs linked
14935
 
      # with the same dynamic library.  Since this doesn't match the
14936
 
      # behavior of shared libraries on other platforms, we can't use
14937
 
      # them.
14938
 
      ld_shlibs_F77=no
14939
 
      ;;
14940
 
 
14941
 
    beos*)
14942
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14943
 
        allow_undefined_flag_F77=unsupported
14944
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14945
 
        # support --undefined.  This deserves some investigation.  FIXME
14946
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14947
 
      else
14948
 
        ld_shlibs_F77=no
14949
 
      fi
14950
 
      ;;
14951
 
 
14952
 
    cygwin* | mingw* | pw32*)
14953
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14954
 
      # as there is no search path for DLLs.
14955
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14956
 
      allow_undefined_flag_F77=unsupported
14957
 
      always_export_symbols_F77=no
14958
 
      enable_shared_with_static_runtimes_F77=yes
14959
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14960
 
 
14961
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14962
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14963
 
        # If the export-symbols file already is a .def file (1st line
14964
 
        # is EXPORTS), use it as is; otherwise, prepend...
14965
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14966
 
          cp $export_symbols $output_objdir/$soname.def;
14967
 
        else
14968
 
          echo EXPORTS > $output_objdir/$soname.def;
14969
 
          cat $export_symbols >> $output_objdir/$soname.def;
14970
 
        fi~
14971
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14972
 
      else
14973
 
        ld_shlibs_F77=no
14974
 
      fi
14975
 
      ;;
14976
 
 
14977
 
    netbsd*)
14978
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14979
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14980
 
        wlarc=
14981
 
      else
14982
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14983
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14984
 
      fi
14985
 
      ;;
14986
 
 
14987
 
    solaris* | sysv5*)
14988
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14989
 
        ld_shlibs_F77=no
14990
 
        cat <<EOF 1>&2
14991
 
 
14992
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14993
 
*** create shared libraries on Solaris systems.  Therefore, libtool
14994
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14995
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
14996
 
*** your PATH or compiler configuration so that the native linker is
14997
 
*** used, and then restart.
14998
 
 
14999
 
EOF
15000
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15001
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15002
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15003
 
      else
15004
 
        ld_shlibs_F77=no
15005
 
      fi
15006
 
      ;;
15007
 
 
15008
 
    sunos4*)
15009
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15010
 
      wlarc=
15011
 
      hardcode_direct_F77=yes
15012
 
      hardcode_shlibpath_var_F77=no
15013
 
      ;;
15014
 
 
15015
 
  linux*)
15016
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15017
 
      tmp_addflag=
15018
 
      case $CC,$host_cpu in
15019
 
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
15020
 
        tmp_addflag=' -fpic' ;;
15021
 
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
15022
 
        tmp_addflag=' -i_dynamic' ;;
15023
 
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
15024
 
        tmp_addflag=' -i_dynamic -nofor_main' ;;
15025
 
      ifc* | ifort*)                    # Intel Fortran compiler
15026
 
        tmp_addflag=' -nofor_main' ;;
15027
 
      esac
15028
 
      archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029
 
      supports_anon_versioning=no
15030
 
      case `$LD -v 2>/dev/null` in
15031
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15032
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15033
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15034
 
        *\ 2.11.*) ;; # other 2.11 versions
15035
 
        *) supports_anon_versioning=yes ;;
15036
 
      esac
15037
 
      if test $supports_anon_versioning = yes; then
15038
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15039
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15040
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15041
 
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15042
 
      else
15043
 
        archive_expsym_cmds_F77=$archive_cmds_F77
15044
 
      fi
15045
 
    else
15046
 
      ld_shlibs_F77=no
15047
 
    fi
15048
 
    ;;
15049
 
 
15050
 
    *)
15051
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15052
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15053
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15054
 
      else
15055
 
        ld_shlibs_F77=no
15056
 
      fi
15057
 
      ;;
15058
 
    esac
15059
 
 
15060
 
    if test "$ld_shlibs_F77" = yes; then
15061
 
      runpath_var=LD_RUN_PATH
15062
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15063
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15064
 
      # ancient GNU ld didn't support --whole-archive et. al.
15065
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15066
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15067
 
      else
15068
 
        whole_archive_flag_spec_F77=
15069
 
      fi
15070
 
    fi
15071
 
  else
15072
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15073
 
    case $host_os in
15074
 
    aix3*)
15075
 
      allow_undefined_flag_F77=unsupported
15076
 
      always_export_symbols_F77=yes
15077
 
      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'
15078
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15079
 
      # are no directories specified by -L.
15080
 
      hardcode_minus_L_F77=yes
15081
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
15082
 
        # Neither direct hardcoding nor static linking is supported with a
15083
 
        # broken collect2.
15084
 
        hardcode_direct_F77=unsupported
15085
 
      fi
15086
 
      ;;
15087
 
 
15088
 
    aix4* | aix5*)
15089
 
      if test "$host_cpu" = ia64; then
15090
 
        # On IA64, the linker does run time linking by default, so we don't
15091
 
        # have to do anything special.
15092
 
        aix_use_runtimelinking=no
15093
 
        exp_sym_flag='-Bexport'
15094
 
        no_entry_flag=""
15095
 
      else
15096
 
        # If we're using GNU nm, then we don't want the "-C" option.
15097
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15098
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15099
 
          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'
15100
 
        else
15101
 
          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'
15102
 
        fi
15103
 
        aix_use_runtimelinking=no
15104
 
 
15105
 
        # Test if we are trying to use run time linking or normal
15106
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15107
 
        # need to do runtime linking.
15108
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15109
 
          for ld_flag in $LDFLAGS; do
15110
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15111
 
            aix_use_runtimelinking=yes
15112
 
            break
15113
 
          fi
15114
 
          done
15115
 
        esac
15116
 
 
15117
 
        exp_sym_flag='-bexport'
15118
 
        no_entry_flag='-bnoentry'
15119
 
      fi
15120
 
 
15121
 
      # When large executables or shared objects are built, AIX ld can
15122
 
      # have problems creating the table of contents.  If linking a library
15123
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15124
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15125
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15126
 
 
15127
 
      archive_cmds_F77=''
15128
 
      hardcode_direct_F77=yes
15129
 
      hardcode_libdir_separator_F77=':'
15130
 
      link_all_deplibs_F77=yes
15131
 
 
15132
 
      if test "$GCC" = yes; then
15133
 
        case $host_os in aix4.[012]|aix4.[012].*)
15134
 
        # We only want to do this on AIX 4.2 and lower, the check
15135
 
        # below for broken collect2 doesn't work under 4.3+
15136
 
          collect2name=`${CC} -print-prog-name=collect2`
15137
 
          if test -f "$collect2name" && \
15138
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15139
 
          then
15140
 
          # We have reworked collect2
15141
 
          hardcode_direct_F77=yes
15142
 
          else
15143
 
          # We have old collect2
15144
 
          hardcode_direct_F77=unsupported
15145
 
          # It fails to find uninstalled libraries when the uninstalled
15146
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15147
 
          # to unsupported forces relinking
15148
 
          hardcode_minus_L_F77=yes
15149
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15150
 
          hardcode_libdir_separator_F77=
15151
 
          fi
15152
 
        esac
15153
 
        shared_flag='-shared'
15154
 
        if test "$aix_use_runtimelinking" = yes; then
15155
 
          shared_flag="$shared_flag "'${wl}-G'
15156
 
        fi
15157
 
      else
15158
 
        # not using gcc
15159
 
        if test "$host_cpu" = ia64; then
15160
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15161
 
        # chokes on -Wl,-G. The following line is correct:
15162
 
          shared_flag='-G'
15163
 
        else
15164
 
        if test "$aix_use_runtimelinking" = yes; then
15165
 
            shared_flag='${wl}-G'
15166
 
          else
15167
 
            shared_flag='${wl}-bM:SRE'
15168
 
        fi
15169
 
        fi
15170
 
      fi
15171
 
 
15172
 
      # It seems that -bexpall does not export symbols beginning with
15173
 
      # underscore (_), so it is better to generate a list of symbols to export.
15174
 
      always_export_symbols_F77=yes
15175
 
      if test "$aix_use_runtimelinking" = yes; then
15176
 
        # Warning - without using the other runtime loading flags (-brtl),
15177
 
        # -berok will link without error, but may produce a broken library.
15178
 
        allow_undefined_flag_F77='-berok'
15179
 
       # Determine the default libpath from the value encoded in an empty executable.
15180
 
       cat >conftest.$ac_ext <<_ACEOF
15181
 
      program main
15182
 
 
15183
 
      end
15184
 
_ACEOF
15185
 
rm -f conftest.$ac_objext conftest$ac_exeext
15186
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15187
 
  (eval $ac_link) 2>conftest.er1
15188
 
  ac_status=$?
15189
 
  grep -v '^ *+' conftest.er1 >conftest.err
15190
 
  rm -f conftest.er1
15191
 
  cat conftest.err >&5
15192
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193
 
  (exit $ac_status); } &&
15194
 
         { ac_try='test -z "$ac_f77_werror_flag"
15195
 
                         || test ! -s conftest.err'
15196
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197
 
  (eval $ac_try) 2>&5
15198
 
  ac_status=$?
15199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200
 
  (exit $ac_status); }; } &&
15201
 
         { ac_try='test -s conftest$ac_exeext'
15202
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203
 
  (eval $ac_try) 2>&5
15204
 
  ac_status=$?
15205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206
 
  (exit $ac_status); }; }; then
15207
 
  
15208
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15209
 
}'`
15210
 
# Check for a 64-bit object if we didn't find anything.
15211
 
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; }
15212
 
}'`; fi
15213
 
else
15214
 
  echo "$as_me: failed program was:" >&5
15215
 
sed 's/^/| /' conftest.$ac_ext >&5
15216
 
 
15217
 
fi
15218
 
rm -f conftest.err conftest.$ac_objext \
15219
 
      conftest$ac_exeext conftest.$ac_ext
15220
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15221
 
 
15222
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15223
 
        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"
15224
 
       else
15225
 
        if test "$host_cpu" = ia64; then
15226
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15227
 
          allow_undefined_flag_F77="-z nodefs"
15228
 
          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"
15229
 
        else
15230
 
         # Determine the default libpath from the value encoded in an empty executable.
15231
 
         cat >conftest.$ac_ext <<_ACEOF
15232
 
      program main
15233
 
 
15234
 
      end
15235
 
_ACEOF
15236
 
rm -f conftest.$ac_objext conftest$ac_exeext
15237
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238
 
  (eval $ac_link) 2>conftest.er1
15239
 
  ac_status=$?
15240
 
  grep -v '^ *+' conftest.er1 >conftest.err
15241
 
  rm -f conftest.er1
15242
 
  cat conftest.err >&5
15243
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244
 
  (exit $ac_status); } &&
15245
 
         { ac_try='test -z "$ac_f77_werror_flag"
15246
 
                         || test ! -s conftest.err'
15247
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248
 
  (eval $ac_try) 2>&5
15249
 
  ac_status=$?
15250
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251
 
  (exit $ac_status); }; } &&
15252
 
         { ac_try='test -s conftest$ac_exeext'
15253
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254
 
  (eval $ac_try) 2>&5
15255
 
  ac_status=$?
15256
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257
 
  (exit $ac_status); }; }; then
15258
 
  
15259
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15260
 
}'`
15261
 
# Check for a 64-bit object if we didn't find anything.
15262
 
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; }
15263
 
}'`; fi
15264
 
else
15265
 
  echo "$as_me: failed program was:" >&5
15266
 
sed 's/^/| /' conftest.$ac_ext >&5
15267
 
 
15268
 
fi
15269
 
rm -f conftest.err conftest.$ac_objext \
15270
 
      conftest$ac_exeext conftest.$ac_ext
15271
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15272
 
 
15273
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15274
 
          # Warning - without using the other run time loading flags,
15275
 
          # -berok will link without error, but may produce a broken library.
15276
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15277
 
          allow_undefined_flag_F77=' ${wl}-berok'
15278
 
          # -bexpall does not export symbols beginning with underscore (_)
15279
 
          always_export_symbols_F77=yes
15280
 
          # Exported symbols can be pulled into shared objects from archives
15281
 
          whole_archive_flag_spec_F77=' '
15282
 
          archive_cmds_need_lc_F77=yes
15283
 
          # This is similar to how AIX traditionally builds it's shared libraries.
15284
 
          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'
15285
 
        fi
15286
 
      fi
15287
 
      ;;
15288
 
 
15289
 
    amigaos*)
15290
 
      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)'
15291
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15292
 
      hardcode_minus_L_F77=yes
15293
 
      # see comment about different semantics on the GNU ld section
15294
 
      ld_shlibs_F77=no
15295
 
      ;;
15296
 
 
15297
 
    bsdi[45]*)
15298
 
      export_dynamic_flag_spec_F77=-rdynamic
15299
 
      ;;
15300
 
 
15301
 
    cygwin* | mingw* | pw32*)
15302
 
      # When not using gcc, we currently assume that we are using
15303
 
      # Microsoft Visual C++.
15304
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15305
 
      # no search path for DLLs.
15306
 
      hardcode_libdir_flag_spec_F77=' '
15307
 
      allow_undefined_flag_F77=unsupported
15308
 
      # Tell ltmain to make .lib files, not .a files.
15309
 
      libext=lib
15310
 
      # Tell ltmain to make .dll files, not .so files.
15311
 
      shrext_cmds=".dll"
15312
 
      # FIXME: Setting linknames here is a bad hack.
15313
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15314
 
      # The linker will automatically build a .lib file if we build a DLL.
15315
 
      old_archive_From_new_cmds_F77='true'
15316
 
      # FIXME: Should let the user specify the lib program.
15317
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15318
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15319
 
      enable_shared_with_static_runtimes_F77=yes
15320
 
      ;;
15321
 
 
15322
 
    darwin* | rhapsody*)
15323
 
      case "$host_os" in
15324
 
        rhapsody* | darwin1.[012])
15325
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15326
 
         ;;
15327
 
       *) # Darwin 1.3 on
15328
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15329
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15330
 
         else
15331
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15332
 
             10.[012])
15333
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15334
 
               ;;
15335
 
             10.*)
15336
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15337
 
               ;;
15338
 
           esac
15339
 
         fi
15340
 
         ;;
15341
 
      esac
15342
 
      archive_cmds_need_lc_F77=no
15343
 
      hardcode_direct_F77=no
15344
 
      hardcode_automatic_F77=yes
15345
 
      hardcode_shlibpath_var_F77=unsupported
15346
 
      whole_archive_flag_spec_F77=''
15347
 
      link_all_deplibs_F77=yes
15348
 
    if test "$GCC" = yes ; then
15349
 
        output_verbose_link_cmd='echo'
15350
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15351
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15352
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15353
 
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15354
 
      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}'
15355
 
    else
15356
 
      case "$cc_basename" in
15357
 
        xlc*)
15358
 
         output_verbose_link_cmd='echo'
15359
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15360
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15361
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15362
 
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15363
 
          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}'
15364
 
          ;;
15365
 
       *)
15366
 
         ld_shlibs_F77=no
15367
 
          ;;
15368
 
      esac
15369
 
    fi
15370
 
      ;;
15371
 
 
15372
 
    dgux*)
15373
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15374
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15375
 
      hardcode_shlibpath_var_F77=no
15376
 
      ;;
15377
 
 
15378
 
    freebsd1*)
15379
 
      ld_shlibs_F77=no
15380
 
      ;;
15381
 
 
15382
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15383
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15384
 
    # does not break anything, and helps significantly (at the cost of a little
15385
 
    # extra space).
15386
 
    freebsd2.2*)
15387
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15388
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15389
 
      hardcode_direct_F77=yes
15390
 
      hardcode_shlibpath_var_F77=no
15391
 
      ;;
15392
 
 
15393
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15394
 
    freebsd2*)
15395
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15396
 
      hardcode_direct_F77=yes
15397
 
      hardcode_minus_L_F77=yes
15398
 
      hardcode_shlibpath_var_F77=no
15399
 
      ;;
15400
 
 
15401
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15402
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
15403
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15404
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15405
 
      hardcode_direct_F77=yes
15406
 
      hardcode_shlibpath_var_F77=no
15407
 
      ;;
15408
 
 
15409
 
    hpux9*)
15410
 
      if test "$GCC" = yes; then
15411
 
        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'
15412
 
      else
15413
 
        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'
15414
 
      fi
15415
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15416
 
      hardcode_libdir_separator_F77=:
15417
 
      hardcode_direct_F77=yes
15418
 
 
15419
 
      # hardcode_minus_L: Not really in the search PATH,
15420
 
      # but as the default location of the library.
15421
 
      hardcode_minus_L_F77=yes
15422
 
      export_dynamic_flag_spec_F77='${wl}-E'
15423
 
      ;;
15424
 
 
15425
 
    hpux10* | hpux11*)
15426
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15427
 
        case "$host_cpu" in
15428
 
        hppa*64*|ia64*)
15429
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15430
 
          ;;
15431
 
        *)
15432
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15433
 
          ;;
15434
 
        esac
15435
 
      else
15436
 
        case "$host_cpu" in
15437
 
        hppa*64*|ia64*)
15438
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15439
 
          ;;
15440
 
        *)
15441
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15442
 
          ;;
15443
 
        esac
15444
 
      fi
15445
 
      if test "$with_gnu_ld" = no; then
15446
 
        case "$host_cpu" in
15447
 
        hppa*64*)
15448
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15449
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15450
 
          hardcode_libdir_separator_F77=:
15451
 
          hardcode_direct_F77=no
15452
 
          hardcode_shlibpath_var_F77=no
15453
 
          ;;
15454
 
        ia64*)
15455
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15456
 
          hardcode_direct_F77=no
15457
 
          hardcode_shlibpath_var_F77=no
15458
 
 
15459
 
          # hardcode_minus_L: Not really in the search PATH,
15460
 
          # but as the default location of the library.
15461
 
          hardcode_minus_L_F77=yes
15462
 
          ;;
15463
 
        *)
15464
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15465
 
          hardcode_libdir_separator_F77=:
15466
 
          hardcode_direct_F77=yes
15467
 
          export_dynamic_flag_spec_F77='${wl}-E'
15468
 
 
15469
 
          # hardcode_minus_L: Not really in the search PATH,
15470
 
          # but as the default location of the library.
15471
 
          hardcode_minus_L_F77=yes
15472
 
          ;;
15473
 
        esac
15474
 
      fi
15475
 
      ;;
15476
 
 
15477
 
    irix5* | irix6* | nonstopux*)
15478
 
      if test "$GCC" = yes; then
15479
 
        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'
15480
 
      else
15481
 
        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'
15482
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15483
 
      fi
15484
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15485
 
      hardcode_libdir_separator_F77=:
15486
 
      link_all_deplibs_F77=yes
15487
 
      ;;
15488
 
 
15489
 
    netbsd*)
15490
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15491
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15492
 
      else
15493
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15494
 
      fi
15495
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15496
 
      hardcode_direct_F77=yes
15497
 
      hardcode_shlibpath_var_F77=no
15498
 
      ;;
15499
 
 
15500
 
    newsos6)
15501
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502
 
      hardcode_direct_F77=yes
15503
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15504
 
      hardcode_libdir_separator_F77=:
15505
 
      hardcode_shlibpath_var_F77=no
15506
 
      ;;
15507
 
 
15508
 
    openbsd*)
15509
 
      hardcode_direct_F77=yes
15510
 
      hardcode_shlibpath_var_F77=no
15511
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15512
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15513
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15514
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15515
 
        export_dynamic_flag_spec_F77='${wl}-E'
15516
 
      else
15517
 
       case $host_os in
15518
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15519
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15520
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
15521
 
           ;;
15522
 
         *)
15523
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15524
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15525
 
           ;;
15526
 
       esac
15527
 
      fi
15528
 
      ;;
15529
 
 
15530
 
    os2*)
15531
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15532
 
      hardcode_minus_L_F77=yes
15533
 
      allow_undefined_flag_F77=unsupported
15534
 
      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'
15535
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15536
 
      ;;
15537
 
 
15538
 
    osf3*)
15539
 
      if test "$GCC" = yes; then
15540
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15541
 
        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'
15542
 
      else
15543
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15544
 
        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'
15545
 
      fi
15546
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15547
 
      hardcode_libdir_separator_F77=:
15548
 
      ;;
15549
 
 
15550
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15551
 
      if test "$GCC" = yes; then
15552
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15553
 
        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'
15554
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15555
 
      else
15556
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15557
 
        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'
15558
 
        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~
15559
 
        $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'
15560
 
 
15561
 
        # Both c and cxx compiler support -rpath directly
15562
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15563
 
      fi
15564
 
      hardcode_libdir_separator_F77=:
15565
 
      ;;
15566
 
 
15567
 
    sco3.2v5*)
15568
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15569
 
      hardcode_shlibpath_var_F77=no
15570
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15571
 
      runpath_var=LD_RUN_PATH
15572
 
      hardcode_runpath_var=yes
15573
 
      ;;
15574
 
 
15575
 
    solaris*)
15576
 
      no_undefined_flag_F77=' -z text'
15577
 
      if test "$GCC" = yes; then
15578
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15579
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15580
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15581
 
      else
15582
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15583
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15584
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15585
 
      fi
15586
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15587
 
      hardcode_shlibpath_var_F77=no
15588
 
      case $host_os in
15589
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15590
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15591
 
        whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
15592
 
      esac
15593
 
      link_all_deplibs_F77=yes
15594
 
      ;;
15595
 
 
15596
 
    sunos4*)
15597
 
      if test "x$host_vendor" = xsequent; then
15598
 
        # Use $CC to link under sequent, because it throws in some extra .o
15599
 
        # files that make .init and .fini sections work.
15600
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15601
 
      else
15602
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15603
 
      fi
15604
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15605
 
      hardcode_direct_F77=yes
15606
 
      hardcode_minus_L_F77=yes
15607
 
      hardcode_shlibpath_var_F77=no
15608
 
      ;;
15609
 
 
15610
 
    sysv4)
15611
 
      case $host_vendor in
15612
 
        sni)
15613
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15614
 
          hardcode_direct_F77=yes # is this really true???
15615
 
        ;;
15616
 
        siemens)
15617
 
          ## LD is ld it makes a PLAMLIB
15618
 
          ## CC just makes a GrossModule.
15619
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15620
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15621
 
          hardcode_direct_F77=no
15622
 
        ;;
15623
 
        motorola)
15624
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15626
 
        ;;
15627
 
      esac
15628
 
      runpath_var='LD_RUN_PATH'
15629
 
      hardcode_shlibpath_var_F77=no
15630
 
      ;;
15631
 
 
15632
 
    sysv4.3*)
15633
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634
 
      hardcode_shlibpath_var_F77=no
15635
 
      export_dynamic_flag_spec_F77='-Bexport'
15636
 
      ;;
15637
 
 
15638
 
    sysv4*MP*)
15639
 
      if test -d /usr/nec; then
15640
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15641
 
        hardcode_shlibpath_var_F77=no
15642
 
        runpath_var=LD_RUN_PATH
15643
 
        hardcode_runpath_var=yes
15644
 
        ld_shlibs_F77=yes
15645
 
      fi
15646
 
      ;;
15647
 
 
15648
 
    sysv4.2uw2*)
15649
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15650
 
      hardcode_direct_F77=yes
15651
 
      hardcode_minus_L_F77=no
15652
 
      hardcode_shlibpath_var_F77=no
15653
 
      hardcode_runpath_var=yes
15654
 
      runpath_var=LD_RUN_PATH
15655
 
      ;;
15656
 
 
15657
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15658
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
15659
 
      if test "$GCC" = yes; then
15660
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15661
 
      else
15662
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15663
 
      fi
15664
 
      runpath_var='LD_RUN_PATH'
15665
 
      hardcode_shlibpath_var_F77=no
15666
 
      ;;
15667
 
 
15668
 
    sysv5*)
15669
 
      no_undefined_flag_F77=' -z text'
15670
 
      # $CC -shared without GNU ld will not create a library from C++
15671
 
      # object files and a static libstdc++, better avoid it by now
15672
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15674
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15675
 
      hardcode_libdir_flag_spec_F77=
15676
 
      hardcode_shlibpath_var_F77=no
15677
 
      runpath_var='LD_RUN_PATH'
15678
 
      ;;
15679
 
 
15680
 
    uts4*)
15681
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15682
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15683
 
      hardcode_shlibpath_var_F77=no
15684
 
      ;;
15685
 
 
15686
 
    *)
15687
 
      ld_shlibs_F77=no
15688
 
      ;;
15689
 
    esac
15690
 
  fi
15691
 
 
15692
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15693
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
15694
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15695
 
 
15696
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15697
 
if test "$GCC" = yes; then
15698
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15699
 
fi
15700
 
 
15701
 
#
15702
 
# Do we need to explicitly link libc?
15703
 
#
15704
 
case "x$archive_cmds_need_lc_F77" in
15705
 
x|xyes)
15706
 
  # Assume -lc should be added
15707
 
  archive_cmds_need_lc_F77=yes
15708
 
 
15709
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15710
 
    case $archive_cmds_F77 in
15711
 
    *'~'*)
15712
 
      # FIXME: we may have to deal with multi-command sequences.
15713
 
      ;;
15714
 
    '$CC '*)
15715
 
      # Test whether the compiler implicitly links with -lc since on some
15716
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15717
 
      # to ld, don't add -lc before -lgcc.
15718
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15719
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15720
 
      $rm conftest*
15721
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15722
 
 
15723
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15724
 
  (eval $ac_compile) 2>&5
15725
 
  ac_status=$?
15726
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727
 
  (exit $ac_status); } 2>conftest.err; then
15728
 
        soname=conftest
15729
 
        lib=conftest
15730
 
        libobjs=conftest.$ac_objext
15731
 
        deplibs=
15732
 
        wl=$lt_prog_compiler_wl_F77
15733
 
        compiler_flags=-v
15734
 
        linker_flags=-v
15735
 
        verstring=
15736
 
        output_objdir=.
15737
 
        libname=conftest
15738
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15739
 
        allow_undefined_flag_F77=
15740
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15741
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15742
 
  ac_status=$?
15743
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744
 
  (exit $ac_status); }
15745
 
        then
15746
 
          archive_cmds_need_lc_F77=no
15747
 
        else
15748
 
          archive_cmds_need_lc_F77=yes
15749
 
        fi
15750
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15751
 
      else
15752
 
        cat conftest.err 1>&5
15753
 
      fi
15754
 
      $rm conftest*
15755
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15756
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15757
 
      ;;
15758
 
    esac
15759
 
  fi
15760
 
  ;;
15761
 
esac
15762
 
 
15763
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15764
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15765
 
library_names_spec=
15766
 
libname_spec='lib$name'
15767
 
soname_spec=
15768
 
shrext_cmds=".so"
15769
 
postinstall_cmds=
15770
 
postuninstall_cmds=
15771
 
finish_cmds=
15772
 
finish_eval=
15773
 
shlibpath_var=
15774
 
shlibpath_overrides_runpath=unknown
15775
 
version_type=none
15776
 
dynamic_linker="$host_os ld.so"
15777
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15778
 
if test "$GCC" = yes; then
15779
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15780
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15781
 
    # if the path contains ";" then we assume it to be the separator
15782
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15783
 
    # assumed that no part of a normal pathname contains ";" but that should
15784
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15785
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15786
 
  else
15787
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15788
 
  fi
15789
 
else
15790
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15791
 
fi
15792
 
need_lib_prefix=unknown
15793
 
hardcode_into_libs=no
15794
 
 
15795
 
# when you set need_version to no, make sure it does not cause -set_version
15796
 
# flags to be left without arguments
15797
 
need_version=unknown
15798
 
 
15799
 
case $host_os in
15800
 
aix3*)
15801
 
  version_type=linux
15802
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15803
 
  shlibpath_var=LIBPATH
15804
 
 
15805
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15806
 
  soname_spec='${libname}${release}${shared_ext}$major'
15807
 
  ;;
15808
 
 
15809
 
aix4* | aix5*)
15810
 
  version_type=linux
15811
 
  need_lib_prefix=no
15812
 
  need_version=no
15813
 
  hardcode_into_libs=yes
15814
 
  if test "$host_cpu" = ia64; then
15815
 
    # AIX 5 supports IA64
15816
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15817
 
    shlibpath_var=LD_LIBRARY_PATH
15818
 
  else
15819
 
    # With GCC up to 2.95.x, collect2 would create an import file
15820
 
    # for dependence libraries.  The import file would start with
15821
 
    # the line `#! .'.  This would cause the generated library to
15822
 
    # depend on `.', always an invalid library.  This was fixed in
15823
 
    # development snapshots of GCC prior to 3.0.
15824
 
    case $host_os in
15825
 
      aix4 | aix4.[01] | aix4.[01].*)
15826
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15827
 
           echo ' yes '
15828
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15829
 
        :
15830
 
      else
15831
 
        can_build_shared=no
15832
 
      fi
15833
 
      ;;
15834
 
    esac
15835
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15836
 
    # soname into executable. Probably we can add versioning support to
15837
 
    # collect2, so additional links can be useful in future.
15838
 
    if test "$aix_use_runtimelinking" = yes; then
15839
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15840
 
      # instead of lib<name>.a to let people know that these are not
15841
 
      # typical AIX shared libraries.
15842
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843
 
    else
15844
 
      # We preserve .a as extension for shared libraries through AIX4.2
15845
 
      # and later when we are not doing run time linking.
15846
 
      library_names_spec='${libname}${release}.a $libname.a'
15847
 
      soname_spec='${libname}${release}${shared_ext}$major'
15848
 
    fi
15849
 
    shlibpath_var=LIBPATH
15850
 
  fi
15851
 
  ;;
15852
 
 
15853
 
amigaos*)
15854
 
  library_names_spec='$libname.ixlibrary $libname.a'
15855
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15856
 
  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'
15857
 
  ;;
15858
 
 
15859
 
beos*)
15860
 
  library_names_spec='${libname}${shared_ext}'
15861
 
  dynamic_linker="$host_os ld.so"
15862
 
  shlibpath_var=LIBRARY_PATH
15863
 
  ;;
15864
 
 
15865
 
bsdi[45]*)
15866
 
  version_type=linux
15867
 
  need_version=no
15868
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15869
 
  soname_spec='${libname}${release}${shared_ext}$major'
15870
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15871
 
  shlibpath_var=LD_LIBRARY_PATH
15872
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15873
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15874
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15875
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15876
 
  # libtool to hard-code these into programs
15877
 
  ;;
15878
 
 
15879
 
cygwin* | mingw* | pw32*)
15880
 
  version_type=windows
15881
 
  shrext_cmds=".dll"
15882
 
  need_version=no
15883
 
  need_lib_prefix=no
15884
 
 
15885
 
  case $GCC,$host_os in
15886
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15887
 
    library_names_spec='$libname.dll.a'
15888
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15889
 
    postinstall_cmds='base_file=`basename \${file}`~
15890
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15891
 
      dldir=$destdir/`dirname \$dlpath`~
15892
 
      test -d \$dldir || mkdir -p \$dldir~
15893
 
      $install_prog $dir/$dlname \$dldir/$dlname'
15894
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15895
 
      dlpath=$dir/\$dldll~
15896
 
       $rm \$dlpath'
15897
 
    shlibpath_overrides_runpath=yes
15898
 
 
15899
 
    case $host_os in
15900
 
    cygwin*)
15901
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15902
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15903
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15904
 
      ;;
15905
 
    mingw*)
15906
 
      # MinGW DLLs use traditional 'lib' prefix
15907
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15908
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15909
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15910
 
        # It is most probably a Windows format PATH printed by
15911
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15912
 
        # path with ; separators, and with drive letters. We can handle the
15913
 
        # drive letters (cygwin fileutils understands them), so leave them,
15914
 
        # especially as we might pass files found there to a mingw objdump,
15915
 
        # which wouldn't understand a cygwinified path. Ahh.
15916
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15917
 
      else
15918
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15919
 
      fi
15920
 
      ;;
15921
 
    pw32*)
15922
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15923
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15924
 
      ;;
15925
 
    esac
15926
 
    ;;
15927
 
 
15928
 
  *)
15929
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15930
 
    ;;
15931
 
  esac
15932
 
  dynamic_linker='Win32 ld.exe'
15933
 
  # FIXME: first we should search . and the directory the executable is in
15934
 
  shlibpath_var=PATH
15935
 
  ;;
15936
 
 
15937
 
darwin* | rhapsody*)
15938
 
  dynamic_linker="$host_os dyld"
15939
 
  version_type=darwin
15940
 
  need_lib_prefix=no
15941
 
  need_version=no
15942
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15943
 
  soname_spec='${libname}${release}${major}$shared_ext'
15944
 
  shlibpath_overrides_runpath=yes
15945
 
  shlibpath_var=DYLD_LIBRARY_PATH
15946
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15947
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15948
 
  if test "$GCC" = yes; then
15949
 
    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"`
15950
 
  else
15951
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15952
 
  fi
15953
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15954
 
  ;;
15955
 
 
15956
 
dgux*)
15957
 
  version_type=linux
15958
 
  need_lib_prefix=no
15959
 
  need_version=no
15960
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15961
 
  soname_spec='${libname}${release}${shared_ext}$major'
15962
 
  shlibpath_var=LD_LIBRARY_PATH
15963
 
  ;;
15964
 
 
15965
 
freebsd1*)
15966
 
  dynamic_linker=no
15967
 
  ;;
15968
 
 
15969
 
kfreebsd*-gnu)
15970
 
  version_type=linux
15971
 
  need_lib_prefix=no
15972
 
  need_version=no
15973
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15974
 
  soname_spec='${libname}${release}${shared_ext}$major'
15975
 
  shlibpath_var=LD_LIBRARY_PATH
15976
 
  shlibpath_overrides_runpath=no
15977
 
  hardcode_into_libs=yes
15978
 
  dynamic_linker='GNU ld.so'
15979
 
  ;;
15980
 
 
15981
 
freebsd* | dragonfly*)
15982
 
  # DragonFly does not have aout.  When/if they implement a new
15983
 
  # versioning mechanism, adjust this.
15984
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15985
 
  version_type=freebsd-$objformat
15986
 
  case $version_type in
15987
 
    freebsd-elf*)
15988
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15989
 
      need_version=no
15990
 
      need_lib_prefix=no
15991
 
      ;;
15992
 
    freebsd-*)
15993
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15994
 
      need_version=yes
15995
 
      ;;
15996
 
  esac
15997
 
  shlibpath_var=LD_LIBRARY_PATH
15998
 
  case $host_os in
15999
 
  freebsd2*)
16000
 
    shlibpath_overrides_runpath=yes
16001
 
    ;;
16002
 
  freebsd3.[01]* | freebsdelf3.[01]*)
16003
 
    shlibpath_overrides_runpath=yes
16004
 
    hardcode_into_libs=yes
16005
 
    ;;
16006
 
  *) # from 3.2 on
16007
 
    shlibpath_overrides_runpath=no
16008
 
    hardcode_into_libs=yes
16009
 
    ;;
16010
 
  esac
16011
 
  ;;
16012
 
 
16013
 
gnu*)
16014
 
  version_type=linux
16015
 
  need_lib_prefix=no
16016
 
  need_version=no
16017
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16018
 
  soname_spec='${libname}${release}${shared_ext}$major'
16019
 
  shlibpath_var=LD_LIBRARY_PATH
16020
 
  hardcode_into_libs=yes
16021
 
  ;;
16022
 
 
16023
 
hpux9* | hpux10* | hpux11*)
16024
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16025
 
  # link against other versions.
16026
 
  version_type=sunos
16027
 
  need_lib_prefix=no
16028
 
  need_version=no
16029
 
  case "$host_cpu" in
16030
 
  ia64*)
16031
 
    shrext_cmds='.so'
16032
 
    hardcode_into_libs=yes
16033
 
    dynamic_linker="$host_os dld.so"
16034
 
    shlibpath_var=LD_LIBRARY_PATH
16035
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16036
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16037
 
    soname_spec='${libname}${release}${shared_ext}$major'
16038
 
    if test "X$HPUX_IA64_MODE" = X32; then
16039
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16040
 
    else
16041
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16042
 
    fi
16043
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16044
 
    ;;
16045
 
   hppa*64*)
16046
 
     shrext_cmds='.sl'
16047
 
     hardcode_into_libs=yes
16048
 
     dynamic_linker="$host_os dld.sl"
16049
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16050
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16051
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052
 
     soname_spec='${libname}${release}${shared_ext}$major'
16053
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16054
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16055
 
     ;;
16056
 
   *)
16057
 
    shrext_cmds='.sl'
16058
 
    dynamic_linker="$host_os dld.sl"
16059
 
    shlibpath_var=SHLIB_PATH
16060
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16061
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062
 
    soname_spec='${libname}${release}${shared_ext}$major'
16063
 
    ;;
16064
 
  esac
16065
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16066
 
  postinstall_cmds='chmod 555 $lib'
16067
 
  ;;
16068
 
 
16069
 
irix5* | irix6* | nonstopux*)
16070
 
  case $host_os in
16071
 
    nonstopux*) version_type=nonstopux ;;
16072
 
    *)
16073
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16074
 
                version_type=linux
16075
 
        else
16076
 
                version_type=irix
16077
 
        fi ;;
16078
 
  esac
16079
 
  need_lib_prefix=no
16080
 
  need_version=no
16081
 
  soname_spec='${libname}${release}${shared_ext}$major'
16082
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16083
 
  case $host_os in
16084
 
  irix5* | nonstopux*)
16085
 
    libsuff= shlibsuff=
16086
 
    ;;
16087
 
  *)
16088
 
    case $LD in # libtool.m4 will add one of these switches to LD
16089
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16090
 
      libsuff= shlibsuff= libmagic=32-bit;;
16091
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16092
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16093
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16094
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16095
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16096
 
    esac
16097
 
    ;;
16098
 
  esac
16099
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16100
 
  shlibpath_overrides_runpath=no
16101
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16102
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16103
 
  hardcode_into_libs=yes
16104
 
  ;;
16105
 
 
16106
 
# No shared lib support for Linux oldld, aout, or coff.
16107
 
linux*oldld* | linux*aout* | linux*coff*)
16108
 
  dynamic_linker=no
16109
 
  ;;
16110
 
 
16111
 
# This must be Linux ELF.
16112
 
linux*)
16113
 
  version_type=linux
16114
 
  need_lib_prefix=no
16115
 
  need_version=no
16116
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117
 
  soname_spec='${libname}${release}${shared_ext}$major'
16118
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16119
 
  shlibpath_var=LD_LIBRARY_PATH
16120
 
  shlibpath_overrides_runpath=no
16121
 
  # This implies no fast_install, which is unacceptable.
16122
 
  # Some rework will be needed to allow for fast_install
16123
 
  # before this can be enabled.
16124
 
  hardcode_into_libs=yes
16125
 
 
16126
 
  # Append ld.so.conf contents to the search path
16127
 
  if test -f /etc/ld.so.conf; then
16128
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16129
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16130
 
  fi
16131
 
 
16132
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16133
 
  # powerpc, because MkLinux only supported shared libraries with the
16134
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16135
 
  # most powerpc-linux boxes support dynamic linking these days and
16136
 
  # people can always --disable-shared, the test was removed, and we
16137
 
  # assume the GNU/Linux dynamic linker is in use.
16138
 
  dynamic_linker='GNU/Linux ld.so'
16139
 
  ;;
16140
 
 
16141
 
knetbsd*-gnu)
16142
 
  version_type=linux
16143
 
  need_lib_prefix=no
16144
 
  need_version=no
16145
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16146
 
  soname_spec='${libname}${release}${shared_ext}$major'
16147
 
  shlibpath_var=LD_LIBRARY_PATH
16148
 
  shlibpath_overrides_runpath=no
16149
 
  hardcode_into_libs=yes
16150
 
  dynamic_linker='GNU ld.so'
16151
 
  ;;
16152
 
 
16153
 
netbsd*)
16154
 
  version_type=sunos
16155
 
  need_lib_prefix=no
16156
 
  need_version=no
16157
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16158
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16159
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16160
 
    dynamic_linker='NetBSD (a.out) ld.so'
16161
 
  else
16162
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16163
 
    soname_spec='${libname}${release}${shared_ext}$major'
16164
 
    dynamic_linker='NetBSD ld.elf_so'
16165
 
  fi
16166
 
  shlibpath_var=LD_LIBRARY_PATH
16167
 
  shlibpath_overrides_runpath=yes
16168
 
  hardcode_into_libs=yes
16169
 
  ;;
16170
 
 
16171
 
newsos6)
16172
 
  version_type=linux
16173
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174
 
  shlibpath_var=LD_LIBRARY_PATH
16175
 
  shlibpath_overrides_runpath=yes
16176
 
  ;;
16177
 
 
16178
 
nto-qnx*)
16179
 
  version_type=linux
16180
 
  need_lib_prefix=no
16181
 
  need_version=no
16182
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16183
 
  soname_spec='${libname}${release}${shared_ext}$major'
16184
 
  shlibpath_var=LD_LIBRARY_PATH
16185
 
  shlibpath_overrides_runpath=yes
16186
 
  ;;
16187
 
 
16188
 
openbsd*)
16189
 
  version_type=sunos
16190
 
  need_lib_prefix=no
16191
 
  need_version=no
16192
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16193
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16194
 
  shlibpath_var=LD_LIBRARY_PATH
16195
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16196
 
    case $host_os in
16197
 
      openbsd2.[89] | openbsd2.[89].*)
16198
 
        shlibpath_overrides_runpath=no
16199
 
        ;;
16200
 
      *)
16201
 
        shlibpath_overrides_runpath=yes
16202
 
        ;;
16203
 
      esac
16204
 
  else
16205
 
    shlibpath_overrides_runpath=yes
16206
 
  fi
16207
 
  ;;
16208
 
 
16209
 
os2*)
16210
 
  libname_spec='$name'
16211
 
  shrext_cmds=".dll"
16212
 
  need_lib_prefix=no
16213
 
  library_names_spec='$libname${shared_ext} $libname.a'
16214
 
  dynamic_linker='OS/2 ld.exe'
16215
 
  shlibpath_var=LIBPATH
16216
 
  ;;
16217
 
 
16218
 
osf3* | osf4* | osf5*)
16219
 
  version_type=osf
16220
 
  need_lib_prefix=no
16221
 
  need_version=no
16222
 
  soname_spec='${libname}${release}${shared_ext}$major'
16223
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224
 
  shlibpath_var=LD_LIBRARY_PATH
16225
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16226
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16227
 
  ;;
16228
 
 
16229
 
sco3.2v5*)
16230
 
  version_type=osf
16231
 
  soname_spec='${libname}${release}${shared_ext}$major'
16232
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233
 
  shlibpath_var=LD_LIBRARY_PATH
16234
 
  ;;
16235
 
 
16236
 
solaris*)
16237
 
  version_type=linux
16238
 
  need_lib_prefix=no
16239
 
  need_version=no
16240
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241
 
  soname_spec='${libname}${release}${shared_ext}$major'
16242
 
  shlibpath_var=LD_LIBRARY_PATH
16243
 
  shlibpath_overrides_runpath=yes
16244
 
  hardcode_into_libs=yes
16245
 
  # ldd complains unless libraries are executable
16246
 
  postinstall_cmds='chmod +x $lib'
16247
 
  ;;
16248
 
 
16249
 
sunos4*)
16250
 
  version_type=sunos
16251
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16252
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16253
 
  shlibpath_var=LD_LIBRARY_PATH
16254
 
  shlibpath_overrides_runpath=yes
16255
 
  if test "$with_gnu_ld" = yes; then
16256
 
    need_lib_prefix=no
16257
 
  fi
16258
 
  need_version=yes
16259
 
  ;;
16260
 
 
16261
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16262
 
  version_type=linux
16263
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264
 
  soname_spec='${libname}${release}${shared_ext}$major'
16265
 
  shlibpath_var=LD_LIBRARY_PATH
16266
 
  case $host_vendor in
16267
 
    sni)
16268
 
      shlibpath_overrides_runpath=no
16269
 
      need_lib_prefix=no
16270
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16271
 
      runpath_var=LD_RUN_PATH
16272
 
      ;;
16273
 
    siemens)
16274
 
      need_lib_prefix=no
16275
 
      ;;
16276
 
    motorola)
16277
 
      need_lib_prefix=no
16278
 
      need_version=no
16279
 
      shlibpath_overrides_runpath=no
16280
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16281
 
      ;;
16282
 
  esac
16283
 
  ;;
16284
 
 
16285
 
sysv4*MP*)
16286
 
  if test -d /usr/nec ;then
16287
 
    version_type=linux
16288
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16289
 
    soname_spec='$libname${shared_ext}.$major'
16290
 
    shlibpath_var=LD_LIBRARY_PATH
16291
 
  fi
16292
 
  ;;
16293
 
 
16294
 
uts4*)
16295
 
  version_type=linux
16296
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16297
 
  soname_spec='${libname}${release}${shared_ext}$major'
16298
 
  shlibpath_var=LD_LIBRARY_PATH
16299
 
  ;;
16300
 
 
16301
 
*)
16302
 
  dynamic_linker=no
16303
 
  ;;
16304
 
esac
16305
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16306
 
echo "${ECHO_T}$dynamic_linker" >&6
16307
 
test "$dynamic_linker" = no && can_build_shared=no
16308
 
 
16309
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16310
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16311
 
hardcode_action_F77=
16312
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16313
 
   test -n "$runpath_var_F77" || \
16314
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16315
 
 
16316
 
  # We can hardcode non-existant directories.
16317
 
  if test "$hardcode_direct_F77" != no &&
16318
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16319
 
     # have to relink, otherwise we might link with an installed library
16320
 
     # when we should be linking with a yet-to-be-installed one
16321
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16322
 
     test "$hardcode_minus_L_F77" != no; then
16323
 
    # Linking always hardcodes the temporary library directory.
16324
 
    hardcode_action_F77=relink
16325
 
  else
16326
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16327
 
    hardcode_action_F77=immediate
16328
 
  fi
16329
 
else
16330
 
  # We cannot hardcode anything, or else we can only hardcode existing
16331
 
  # directories.
16332
 
  hardcode_action_F77=unsupported
16333
 
fi
16334
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16335
 
echo "${ECHO_T}$hardcode_action_F77" >&6
16336
 
 
16337
 
if test "$hardcode_action_F77" = relink; then
16338
 
  # Fast installation is not supported
16339
 
  enable_fast_install=no
16340
 
elif test "$shlibpath_overrides_runpath" = yes ||
16341
 
     test "$enable_shared" = no; then
16342
 
  # Fast installation is not necessary
16343
 
  enable_fast_install=needless
16344
 
fi
16345
 
 
16346
 
striplib=
16347
 
old_striplib=
16348
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16349
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16350
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16351
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16352
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16353
 
  echo "$as_me:$LINENO: result: yes" >&5
16354
 
echo "${ECHO_T}yes" >&6
16355
 
else
16356
 
# FIXME - insert some real tests, host_os isn't really good enough
16357
 
  case $host_os in
16358
 
   darwin*)
16359
 
       if test -n "$STRIP" ; then
16360
 
         striplib="$STRIP -x"
16361
 
         echo "$as_me:$LINENO: result: yes" >&5
16362
 
echo "${ECHO_T}yes" >&6
16363
 
       else
16364
 
  echo "$as_me:$LINENO: result: no" >&5
16365
 
echo "${ECHO_T}no" >&6
16366
 
fi
16367
 
       ;;
16368
 
   *)
16369
 
  echo "$as_me:$LINENO: result: no" >&5
16370
 
echo "${ECHO_T}no" >&6
16371
 
    ;;
16372
 
  esac
16373
 
fi
16374
 
 
16375
 
 
16376
 
 
16377
 
# The else clause should only fire when bootstrapping the
16378
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16379
 
# with your package, and you will get complaints that there are
16380
 
# no rules to generate ltmain.sh.
16381
 
if test -f "$ltmain"; then
16382
 
  # See if we are running on zsh, and set the options which allow our commands through
16383
 
  # without removal of \ escapes.
16384
 
  if test -n "${ZSH_VERSION+set}" ; then
16385
 
    setopt NO_GLOB_SUBST
16386
 
  fi
16387
 
  # Now quote all the things that may contain metacharacters while being
16388
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16389
 
  # variables and quote the copies for generation of the libtool script.
16390
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
16391
 
    SED SHELL STRIP \
16392
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16393
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16394
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16395
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16396
 
    lt_cv_sys_global_symbol_to_c_name_address \
16397
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16398
 
    old_postinstall_cmds old_postuninstall_cmds \
16399
 
    compiler_F77 \
16400
 
    CC_F77 \
16401
 
    LD_F77 \
16402
 
    lt_prog_compiler_wl_F77 \
16403
 
    lt_prog_compiler_pic_F77 \
16404
 
    lt_prog_compiler_static_F77 \
16405
 
    lt_prog_compiler_no_builtin_flag_F77 \
16406
 
    export_dynamic_flag_spec_F77 \
16407
 
    thread_safe_flag_spec_F77 \
16408
 
    whole_archive_flag_spec_F77 \
16409
 
    enable_shared_with_static_runtimes_F77 \
16410
 
    old_archive_cmds_F77 \
16411
 
    old_archive_from_new_cmds_F77 \
16412
 
    predep_objects_F77 \
16413
 
    postdep_objects_F77 \
16414
 
    predeps_F77 \
16415
 
    postdeps_F77 \
16416
 
    compiler_lib_search_path_F77 \
16417
 
    archive_cmds_F77 \
16418
 
    archive_expsym_cmds_F77 \
16419
 
    postinstall_cmds_F77 \
16420
 
    postuninstall_cmds_F77 \
16421
 
    old_archive_from_expsyms_cmds_F77 \
16422
 
    allow_undefined_flag_F77 \
16423
 
    no_undefined_flag_F77 \
16424
 
    export_symbols_cmds_F77 \
16425
 
    hardcode_libdir_flag_spec_F77 \
16426
 
    hardcode_libdir_flag_spec_ld_F77 \
16427
 
    hardcode_libdir_separator_F77 \
16428
 
    hardcode_automatic_F77 \
16429
 
    module_cmds_F77 \
16430
 
    module_expsym_cmds_F77 \
16431
 
    lt_cv_prog_compiler_c_o_F77 \
16432
 
    exclude_expsyms_F77 \
16433
 
    include_expsyms_F77; do
16434
 
 
16435
 
    case $var in
16436
 
    old_archive_cmds_F77 | \
16437
 
    old_archive_from_new_cmds_F77 | \
16438
 
    archive_cmds_F77 | \
16439
 
    archive_expsym_cmds_F77 | \
16440
 
    module_cmds_F77 | \
16441
 
    module_expsym_cmds_F77 | \
16442
 
    old_archive_from_expsyms_cmds_F77 | \
16443
 
    export_symbols_cmds_F77 | \
16444
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16445
 
    postinstall_cmds | postuninstall_cmds | \
16446
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16447
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16448
 
      # Double-quote double-evaled strings.
16449
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16450
 
      ;;
16451
 
    *)
16452
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16453
 
      ;;
16454
 
    esac
16455
 
  done
16456
 
 
16457
 
  case $lt_echo in
16458
 
  *'\$0 --fallback-echo"')
16459
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16460
 
    ;;
16461
 
  esac
16462
 
 
16463
 
cfgfile="$ofile"
16464
 
 
16465
 
  cat <<__EOF__ >> "$cfgfile"
16466
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16467
 
 
16468
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16469
 
 
16470
 
# Shell to use when invoking shell scripts.
16471
 
SHELL=$lt_SHELL
16472
 
 
16473
 
# Whether or not to build shared libraries.
16474
 
build_libtool_libs=$enable_shared
16475
 
 
16476
 
# Whether or not to build static libraries.
16477
 
build_old_libs=$enable_static
16478
 
 
16479
 
# Whether or not to add -lc for building shared libraries.
16480
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16481
 
 
16482
 
# Whether or not to disallow shared libs when runtime libs are static
16483
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16484
 
 
16485
 
# Whether or not to optimize for fast installation.
16486
 
fast_install=$enable_fast_install
16487
 
 
16488
 
# The host system.
16489
 
host_alias=$host_alias
16490
 
host=$host
16491
 
host_os=$host_os
16492
 
 
16493
 
# The build system.
16494
 
build_alias=$build_alias
16495
 
build=$build
16496
 
build_os=$build_os
16497
 
 
16498
 
# An echo program that does not interpret backslashes.
16499
 
echo=$lt_echo
16500
 
 
16501
 
# The archiver.
16502
 
AR=$lt_AR
16503
 
AR_FLAGS=$lt_AR_FLAGS
16504
 
 
16505
 
# A C compiler.
16506
 
LTCC=$lt_LTCC
16507
 
 
16508
 
# A language-specific compiler.
16509
 
CC=$lt_compiler_F77
16510
 
 
16511
 
# Is the compiler the GNU C compiler?
16512
 
with_gcc=$GCC_F77
16513
 
 
16514
 
# An ERE matcher.
16515
 
EGREP=$lt_EGREP
16516
 
 
16517
 
# The linker used to build libraries.
16518
 
LD=$lt_LD_F77
16519
 
 
16520
 
# Whether we need hard or soft links.
16521
 
LN_S=$lt_LN_S
16522
 
 
16523
 
# A BSD-compatible nm program.
16524
 
NM=$lt_NM
16525
 
 
16526
 
# A symbol stripping program
16527
 
STRIP=$lt_STRIP
16528
 
 
16529
 
# Used to examine libraries when file_magic_cmd begins "file"
16530
 
MAGIC_CMD=$MAGIC_CMD
16531
 
 
16532
 
# Used on cygwin: DLL creation program.
16533
 
DLLTOOL="$DLLTOOL"
16534
 
 
16535
 
# Used on cygwin: object dumper.
16536
 
OBJDUMP="$OBJDUMP"
16537
 
 
16538
 
# Used on cygwin: assembler.
16539
 
AS=$lt_AS
16540
 
 
16541
 
# The name of the directory that contains temporary libtool files.
16542
 
objdir=$objdir
16543
 
 
16544
 
# How to create reloadable object files.
16545
 
reload_flag=$lt_reload_flag
16546
 
reload_cmds=$lt_reload_cmds
16547
 
 
16548
 
# How to pass a linker flag through the compiler.
16549
 
wl=$lt_lt_prog_compiler_wl_F77
16550
 
 
16551
 
# Object file suffix (normally "o").
16552
 
objext="$ac_objext"
16553
 
 
16554
 
# Old archive suffix (normally "a").
16555
 
libext="$libext"
16556
 
 
16557
 
# Shared library suffix (normally ".so").
16558
 
shrext_cmds='$shrext_cmds'
16559
 
 
16560
 
# Executable file suffix (normally "").
16561
 
exeext="$exeext"
16562
 
 
16563
 
# Additional compiler flags for building library objects.
16564
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16565
 
pic_mode=$pic_mode
16566
 
 
16567
 
# What is the maximum length of a command?
16568
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16569
 
 
16570
 
# Does compiler simultaneously support -c and -o options?
16571
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16572
 
 
16573
 
# Must we lock files when doing compilation ?
16574
 
need_locks=$lt_need_locks
16575
 
 
16576
 
# Do we need the lib prefix for modules?
16577
 
need_lib_prefix=$need_lib_prefix
16578
 
 
16579
 
# Do we need a version for libraries?
16580
 
need_version=$need_version
16581
 
 
16582
 
# Whether dlopen is supported.
16583
 
dlopen_support=$enable_dlopen
16584
 
 
16585
 
# Whether dlopen of programs is supported.
16586
 
dlopen_self=$enable_dlopen_self
16587
 
 
16588
 
# Whether dlopen of statically linked programs is supported.
16589
 
dlopen_self_static=$enable_dlopen_self_static
16590
 
 
16591
 
# Compiler flag to prevent dynamic linking.
16592
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16593
 
 
16594
 
# Compiler flag to turn off builtin functions.
16595
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16596
 
 
16597
 
# Compiler flag to allow reflexive dlopens.
16598
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16599
 
 
16600
 
# Compiler flag to generate shared objects directly from archives.
16601
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16602
 
 
16603
 
# Compiler flag to generate thread-safe objects.
16604
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16605
 
 
16606
 
# Library versioning type.
16607
 
version_type=$version_type
16608
 
 
16609
 
# Format of library name prefix.
16610
 
libname_spec=$lt_libname_spec
16611
 
 
16612
 
# List of archive names.  First name is the real one, the rest are links.
16613
 
# The last name is the one that the linker finds with -lNAME.
16614
 
library_names_spec=$lt_library_names_spec
16615
 
 
16616
 
# The coded name of the library, if different from the real name.
16617
 
soname_spec=$lt_soname_spec
16618
 
 
16619
 
# Commands used to build and install an old-style archive.
16620
 
RANLIB=$lt_RANLIB
16621
 
old_archive_cmds=$lt_old_archive_cmds_F77
16622
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16623
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16624
 
 
16625
 
# Create an old-style archive from a shared archive.
16626
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16627
 
 
16628
 
# Create a temporary old-style archive to link instead of a shared archive.
16629
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16630
 
 
16631
 
# Commands used to build and install a shared archive.
16632
 
archive_cmds=$lt_archive_cmds_F77
16633
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16634
 
postinstall_cmds=$lt_postinstall_cmds
16635
 
postuninstall_cmds=$lt_postuninstall_cmds
16636
 
 
16637
 
# Commands used to build a loadable module (assumed same as above if empty)
16638
 
module_cmds=$lt_module_cmds_F77
16639
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16640
 
 
16641
 
# Commands to strip libraries.
16642
 
old_striplib=$lt_old_striplib
16643
 
striplib=$lt_striplib
16644
 
 
16645
 
# Dependencies to place before the objects being linked to create a
16646
 
# shared library.
16647
 
predep_objects=$lt_predep_objects_F77
16648
 
 
16649
 
# Dependencies to place after the objects being linked to create a
16650
 
# shared library.
16651
 
postdep_objects=$lt_postdep_objects_F77
16652
 
 
16653
 
# Dependencies to place before the objects being linked to create a
16654
 
# shared library.
16655
 
predeps=$lt_predeps_F77
16656
 
 
16657
 
# Dependencies to place after the objects being linked to create a
16658
 
# shared library.
16659
 
postdeps=$lt_postdeps_F77
16660
 
 
16661
 
# The library search path used internally by the compiler when linking
16662
 
# a shared library.
16663
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16664
 
 
16665
 
# Method to check whether dependent libraries are shared objects.
16666
 
deplibs_check_method=$lt_deplibs_check_method
16667
 
 
16668
 
# Command to use when deplibs_check_method == file_magic.
16669
 
file_magic_cmd=$lt_file_magic_cmd
16670
 
 
16671
 
# Flag that allows shared libraries with undefined symbols to be built.
16672
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16673
 
 
16674
 
# Flag that forces no undefined symbols.
16675
 
no_undefined_flag=$lt_no_undefined_flag_F77
16676
 
 
16677
 
# Commands used to finish a libtool library installation in a directory.
16678
 
finish_cmds=$lt_finish_cmds
16679
 
 
16680
 
# Same as above, but a single script fragment to be evaled but not shown.
16681
 
finish_eval=$lt_finish_eval
16682
 
 
16683
 
# Take the output of nm and produce a listing of raw symbols and C names.
16684
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16685
 
 
16686
 
# Transform the output of nm in a proper C declaration
16687
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16688
 
 
16689
 
# Transform the output of nm in a C name address pair
16690
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16691
 
 
16692
 
# This is the shared library runtime path variable.
16693
 
runpath_var=$runpath_var
16694
 
 
16695
 
# This is the shared library path variable.
16696
 
shlibpath_var=$shlibpath_var
16697
 
 
16698
 
# Is shlibpath searched before the hard-coded library search path?
16699
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16700
 
 
16701
 
# How to hardcode a shared library path into an executable.
16702
 
hardcode_action=$hardcode_action_F77
16703
 
 
16704
 
# Whether we should hardcode library paths into libraries.
16705
 
hardcode_into_libs=$hardcode_into_libs
16706
 
 
16707
 
# Flag to hardcode \$libdir into a binary during linking.
16708
 
# This must work even if \$libdir does not exist.
16709
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16710
 
 
16711
 
# If ld is used when linking, flag to hardcode \$libdir into
16712
 
# a binary during linking. This must work even if \$libdir does
16713
 
# not exist.
16714
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16715
 
 
16716
 
# Whether we need a single -rpath flag with a separated argument.
16717
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16718
 
 
16719
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16720
 
# resulting binary.
16721
 
hardcode_direct=$hardcode_direct_F77
16722
 
 
16723
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16724
 
# resulting binary.
16725
 
hardcode_minus_L=$hardcode_minus_L_F77
16726
 
 
16727
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16728
 
# the resulting binary.
16729
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16730
 
 
16731
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16732
 
# and all subsequent libraries and executables linked against it.
16733
 
hardcode_automatic=$hardcode_automatic_F77
16734
 
 
16735
 
# Variables whose values should be saved in libtool wrapper scripts and
16736
 
# restored at relink time.
16737
 
variables_saved_for_relink="$variables_saved_for_relink"
16738
 
 
16739
 
# Whether libtool must link a program against all its dependency libraries.
16740
 
link_all_deplibs=$link_all_deplibs_F77
16741
 
 
16742
 
# Compile-time system search path for libraries
16743
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16744
 
 
16745
 
# Run-time system search path for libraries
16746
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16747
 
 
16748
 
# Fix the shell variable \$srcfile for the compiler.
16749
 
fix_srcfile_path="$fix_srcfile_path_F77"
16750
 
 
16751
 
# Set to yes if exported symbols are required.
16752
 
always_export_symbols=$always_export_symbols_F77
16753
 
 
16754
 
# The commands to list exported symbols.
16755
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16756
 
 
16757
 
# The commands to extract the exported symbol list from a shared archive.
16758
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16759
 
 
16760
 
# Symbols that should not be listed in the preloaded symbols.
16761
 
exclude_expsyms=$lt_exclude_expsyms_F77
16762
 
 
16763
 
# Symbols that must always be exported.
16764
 
include_expsyms=$lt_include_expsyms_F77
16765
 
 
16766
 
# ### END LIBTOOL TAG CONFIG: $tagname
16767
 
 
16768
 
__EOF__
16769
 
 
16770
 
 
16771
 
else
16772
 
  # If there is no Makefile yet, we rely on a make rule to execute
16773
 
  # `config.status --recheck' to rerun these tests and create the
16774
 
  # libtool script then.
16775
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16776
 
  if test -f "$ltmain_in"; then
16777
 
    test -f Makefile && make "$ltmain"
16778
 
  fi
16779
 
fi
16780
 
 
16781
 
 
16782
 
ac_ext=c
16783
 
ac_cpp='$CPP $CPPFLAGS'
16784
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16785
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16786
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16787
 
 
16788
 
CC="$lt_save_CC"
16789
 
 
16790
 
        else
16791
 
          tagname=""
16792
 
        fi
16793
 
        ;;
16794
 
 
16795
 
      GCJ)
16796
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16797
 
          
16798
 
 
16799
 
 
16800
 
# Source file extension for Java test sources.
16801
 
ac_ext=java
16802
 
 
16803
 
# Object file extension for compiled Java test sources.
16804
 
objext=o
16805
 
objext_GCJ=$objext
16806
 
 
16807
 
# Code to be used in simple compile tests
16808
 
lt_simple_compile_test_code="class foo {}\n"
16809
 
 
16810
 
# Code to be used in simple link tests
16811
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16812
 
 
16813
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16814
 
 
16815
 
# If no C compiler was specified, use CC.
16816
 
LTCC=${LTCC-"$CC"}
16817
 
 
16818
 
# Allow CC to be a program name with arguments.
16819
 
compiler=$CC
16820
 
 
16821
 
 
16822
 
# Allow CC to be a program name with arguments.
16823
 
lt_save_CC="$CC"
16824
 
CC=${GCJ-"gcj"}
16825
 
compiler=$CC
16826
 
compiler_GCJ=$CC
16827
 
 
16828
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16829
 
archive_cmds_need_lc_GCJ=no
16830
 
 
16831
 
 
16832
 
lt_prog_compiler_no_builtin_flag_GCJ=
16833
 
 
16834
 
if test "$GCC" = yes; then
16835
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16836
 
 
16837
 
  
16838
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16839
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16840
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16841
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16842
 
else
16843
 
  lt_cv_prog_compiler_rtti_exceptions=no
16844
 
  ac_outfile=conftest.$ac_objext
16845
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16846
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16847
 
   # Insert the option either (1) after the last *FLAGS variable, or
16848
 
   # (2) before a word containing "conftest.", or (3) at the end.
16849
 
   # Note that $ac_compile itself does not contain backslashes and begins
16850
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16851
 
   # The option is referenced via a variable to avoid confusing sed.
16852
 
   lt_compile=`echo "$ac_compile" | $SED \
16853
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16854
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16855
 
   -e 's:$: $lt_compiler_flag:'`
16856
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16857
 
   (eval "$lt_compile" 2>conftest.err)
16858
 
   ac_status=$?
16859
 
   cat conftest.err >&5
16860
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16861
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16862
 
     # The compiler can only warn and ignore the option if not recognized
16863
 
     # So say no if there are warnings
16864
 
     if test ! -s conftest.err; then
16865
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16866
 
     fi
16867
 
   fi
16868
 
   $rm conftest*
16869
 
 
16870
 
fi
16871
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16872
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16873
 
 
16874
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16875
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16876
 
else
16877
 
    :
16878
 
fi
16879
 
 
16880
 
fi
16881
 
 
16882
 
lt_prog_compiler_wl_GCJ=
16883
 
lt_prog_compiler_pic_GCJ=
16884
 
lt_prog_compiler_static_GCJ=
16885
 
 
16886
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16887
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16888
 
 
16889
 
  if test "$GCC" = yes; then
16890
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16891
 
    lt_prog_compiler_static_GCJ='-static'
16892
 
 
16893
 
    case $host_os in
16894
 
      aix*)
16895
 
      # All AIX code is PIC.
16896
 
      if test "$host_cpu" = ia64; then
16897
 
        # AIX 5 now supports IA64 processor
16898
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16899
 
      fi
16900
 
      ;;
16901
 
 
16902
 
    amigaos*)
16903
 
      # FIXME: we need at least 68020 code to build shared libraries, but
16904
 
      # adding the `-m68020' flag to GCC prevents building anything better,
16905
 
      # like `-m68040'.
16906
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16907
 
      ;;
16908
 
 
16909
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16910
 
      # PIC is the default for these OSes.
16911
 
      ;;
16912
 
 
16913
 
    mingw* | pw32* | os2*)
16914
 
      # This hack is so that the source file can tell whether it is being
16915
 
      # built for inclusion in a dll (and should export symbols for example).
16916
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16917
 
      ;;
16918
 
 
16919
 
    darwin* | rhapsody*)
16920
 
      # PIC is the default on this platform
16921
 
      # Common symbols not allowed in MH_DYLIB files
16922
 
      lt_prog_compiler_pic_GCJ='-fno-common'
16923
 
      ;;
16924
 
 
16925
 
    msdosdjgpp*)
16926
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16927
 
      # on systems that don't support them.
16928
 
      lt_prog_compiler_can_build_shared_GCJ=no
16929
 
      enable_shared=no
16930
 
      ;;
16931
 
 
16932
 
    sysv4*MP*)
16933
 
      if test -d /usr/nec; then
16934
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
16935
 
      fi
16936
 
      ;;
16937
 
 
16938
 
    hpux*)
16939
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16940
 
      # not for PA HP-UX.
16941
 
      case "$host_cpu" in
16942
 
      hppa*64*|ia64*)
16943
 
        # +Z the default
16944
 
        ;;
16945
 
      *)
16946
 
        lt_prog_compiler_pic_GCJ='-fPIC'
16947
 
        ;;
16948
 
      esac
16949
 
      ;;
16950
 
 
16951
 
    *)
16952
 
      lt_prog_compiler_pic_GCJ='-fPIC'
16953
 
      ;;
16954
 
    esac
16955
 
  else
16956
 
    # PORTME Check for flag to pass linker flags through the system compiler.
16957
 
    case $host_os in
16958
 
    aix*)
16959
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16960
 
      if test "$host_cpu" = ia64; then
16961
 
        # AIX 5 now supports IA64 processor
16962
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16963
 
      else
16964
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16965
 
      fi
16966
 
      ;;
16967
 
      darwin*)
16968
 
        # PIC is the default on this platform
16969
 
        # Common symbols not allowed in MH_DYLIB files
16970
 
       case "$cc_basename" in
16971
 
         xlc*)
16972
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
16973
 
         lt_prog_compiler_wl_GCJ='-Wl,'
16974
 
         ;;
16975
 
       esac
16976
 
       ;;
16977
 
 
16978
 
    mingw* | pw32* | os2*)
16979
 
      # This hack is so that the source file can tell whether it is being
16980
 
      # built for inclusion in a dll (and should export symbols for example).
16981
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16982
 
      ;;
16983
 
 
16984
 
    hpux9* | hpux10* | hpux11*)
16985
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16986
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16987
 
      # not for PA HP-UX.
16988
 
      case "$host_cpu" in
16989
 
      hppa*64*|ia64*)
16990
 
        # +Z the default
16991
 
        ;;
16992
 
      *)
16993
 
        lt_prog_compiler_pic_GCJ='+Z'
16994
 
        ;;
16995
 
      esac
16996
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16997
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16998
 
      ;;
16999
 
 
17000
 
    irix5* | irix6* | nonstopux*)
17001
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17002
 
      # PIC (with -KPIC) is the default.
17003
 
      lt_prog_compiler_static_GCJ='-non_shared'
17004
 
      ;;
17005
 
 
17006
 
    newsos6)
17007
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17008
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17009
 
      ;;
17010
 
 
17011
 
    linux*)
17012
 
      case $cc_basename in
17013
 
      icc* | ecc*)
17014
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17015
 
        lt_prog_compiler_pic_GCJ='-KPIC'
17016
 
        lt_prog_compiler_static_GCJ='-static'
17017
 
        ;;
17018
 
      pgcc | pgf77 | pgf90)
17019
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
17020
 
        # which looks to be a dead project)
17021
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17022
 
        lt_prog_compiler_pic_GCJ='-fpic'
17023
 
        lt_prog_compiler_static_GCJ='-static'
17024
 
        ;;
17025
 
      ccc*)
17026
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17027
 
        # All Alpha code is PIC.
17028
 
        lt_prog_compiler_static_GCJ='-non_shared'
17029
 
        ;;
17030
 
      esac
17031
 
      ;;
17032
 
 
17033
 
    osf3* | osf4* | osf5*)
17034
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17035
 
      # All OSF/1 code is PIC.
17036
 
      lt_prog_compiler_static_GCJ='-non_shared'
17037
 
      ;;
17038
 
 
17039
 
    sco3.2v5*)
17040
 
      lt_prog_compiler_pic_GCJ='-Kpic'
17041
 
      lt_prog_compiler_static_GCJ='-dn'
17042
 
      ;;
17043
 
 
17044
 
    solaris*)
17045
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17046
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17047
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17048
 
      ;;
17049
 
 
17050
 
    sunos4*)
17051
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17052
 
      lt_prog_compiler_pic_GCJ='-PIC'
17053
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17054
 
      ;;
17055
 
 
17056
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17057
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17058
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17059
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17060
 
      ;;
17061
 
 
17062
 
    sysv4*MP*)
17063
 
      if test -d /usr/nec ;then
17064
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17065
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17066
 
      fi
17067
 
      ;;
17068
 
 
17069
 
    unicos*)
17070
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17071
 
      lt_prog_compiler_can_build_shared_GCJ=no
17072
 
      ;;
17073
 
 
17074
 
    uts4*)
17075
 
      lt_prog_compiler_pic_GCJ='-pic'
17076
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17077
 
      ;;
17078
 
 
17079
 
    *)
17080
 
      lt_prog_compiler_can_build_shared_GCJ=no
17081
 
      ;;
17082
 
    esac
17083
 
  fi
17084
 
 
17085
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17086
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17087
 
 
17088
 
#
17089
 
# Check to make sure the PIC flag actually works.
17090
 
#
17091
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17092
 
  
17093
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17094
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17095
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17096
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17097
 
else
17098
 
  lt_prog_compiler_pic_works_GCJ=no
17099
 
  ac_outfile=conftest.$ac_objext
17100
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17101
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17102
 
   # Insert the option either (1) after the last *FLAGS variable, or
17103
 
   # (2) before a word containing "conftest.", or (3) at the end.
17104
 
   # Note that $ac_compile itself does not contain backslashes and begins
17105
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17106
 
   # The option is referenced via a variable to avoid confusing sed.
17107
 
   lt_compile=`echo "$ac_compile" | $SED \
17108
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17109
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17110
 
   -e 's:$: $lt_compiler_flag:'`
17111
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17112
 
   (eval "$lt_compile" 2>conftest.err)
17113
 
   ac_status=$?
17114
 
   cat conftest.err >&5
17115
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
17116
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17117
 
     # The compiler can only warn and ignore the option if not recognized
17118
 
     # So say no if there are warnings
17119
 
     if test ! -s conftest.err; then
17120
 
       lt_prog_compiler_pic_works_GCJ=yes
17121
 
     fi
17122
 
   fi
17123
 
   $rm conftest*
17124
 
 
17125
 
fi
17126
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17127
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17128
 
 
17129
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17130
 
    case $lt_prog_compiler_pic_GCJ in
17131
 
     "" | " "*) ;;
17132
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17133
 
     esac
17134
 
else
17135
 
    lt_prog_compiler_pic_GCJ=
17136
 
     lt_prog_compiler_can_build_shared_GCJ=no
17137
 
fi
17138
 
 
17139
 
fi
17140
 
case "$host_os" in
17141
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17142
 
  *djgpp*)
17143
 
    lt_prog_compiler_pic_GCJ=
17144
 
    ;;
17145
 
  *)
17146
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17147
 
    ;;
17148
 
esac
17149
 
 
17150
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17151
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17152
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17153
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17154
 
else
17155
 
  lt_cv_prog_compiler_c_o_GCJ=no
17156
 
   $rm -r conftest 2>/dev/null
17157
 
   mkdir conftest
17158
 
   cd conftest
17159
 
   mkdir out
17160
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17161
 
 
17162
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17163
 
   # Insert the option either (1) after the last *FLAGS variable, or
17164
 
   # (2) before a word containing "conftest.", or (3) at the end.
17165
 
   # Note that $ac_compile itself does not contain backslashes and begins
17166
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17167
 
   lt_compile=`echo "$ac_compile" | $SED \
17168
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17169
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17170
 
   -e 's:$: $lt_compiler_flag:'`
17171
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17172
 
   (eval "$lt_compile" 2>out/conftest.err)
17173
 
   ac_status=$?
17174
 
   cat out/conftest.err >&5
17175
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
17176
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17177
 
   then
17178
 
     # The compiler can only warn and ignore the option if not recognized
17179
 
     # So say no if there are warnings
17180
 
     if test ! -s out/conftest.err; then
17181
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17182
 
     fi
17183
 
   fi
17184
 
   chmod u+w .
17185
 
   $rm conftest*
17186
 
   # SGI C++ compiler will create directory out/ii_files/ for
17187
 
   # template instantiation
17188
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17189
 
   $rm out/* && rmdir out
17190
 
   cd ..
17191
 
   rmdir conftest
17192
 
   $rm conftest*
17193
 
 
17194
 
fi
17195
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17196
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17197
 
 
17198
 
 
17199
 
hard_links="nottested"
17200
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17201
 
  # do not overwrite the value of need_locks provided by the user
17202
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17203
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17204
 
  hard_links=yes
17205
 
  $rm conftest*
17206
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17207
 
  touch conftest.a
17208
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17209
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17210
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
17211
 
echo "${ECHO_T}$hard_links" >&6
17212
 
  if test "$hard_links" = no; then
17213
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17214
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17215
 
    need_locks=warn
17216
 
  fi
17217
 
else
17218
 
  need_locks=no
17219
 
fi
17220
 
 
17221
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17222
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17223
 
 
17224
 
  runpath_var=
17225
 
  allow_undefined_flag_GCJ=
17226
 
  enable_shared_with_static_runtimes_GCJ=no
17227
 
  archive_cmds_GCJ=
17228
 
  archive_expsym_cmds_GCJ=
17229
 
  old_archive_From_new_cmds_GCJ=
17230
 
  old_archive_from_expsyms_cmds_GCJ=
17231
 
  export_dynamic_flag_spec_GCJ=
17232
 
  whole_archive_flag_spec_GCJ=
17233
 
  thread_safe_flag_spec_GCJ=
17234
 
  hardcode_libdir_flag_spec_GCJ=
17235
 
  hardcode_libdir_flag_spec_ld_GCJ=
17236
 
  hardcode_libdir_separator_GCJ=
17237
 
  hardcode_direct_GCJ=no
17238
 
  hardcode_minus_L_GCJ=no
17239
 
  hardcode_shlibpath_var_GCJ=unsupported
17240
 
  link_all_deplibs_GCJ=unknown
17241
 
  hardcode_automatic_GCJ=no
17242
 
  module_cmds_GCJ=
17243
 
  module_expsym_cmds_GCJ=
17244
 
  always_export_symbols_GCJ=no
17245
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17246
 
  # include_expsyms should be a list of space-separated symbols to be *always*
17247
 
  # included in the symbol list
17248
 
  include_expsyms_GCJ=
17249
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
17250
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17251
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17252
 
  # as well as any symbol that contains `d'.
17253
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17254
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17255
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
17256
 
  # the symbol is explicitly referenced.  Since portable code cannot
17257
 
  # rely on this symbol name, it's probably fine to never include it in
17258
 
  # preloaded symbol tables.
17259
 
  extract_expsyms_cmds=
17260
 
 
17261
 
  case $host_os in
17262
 
  cygwin* | mingw* | pw32*)
17263
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17264
 
    # When not using gcc, we currently assume that we are using
17265
 
    # Microsoft Visual C++.
17266
 
    if test "$GCC" != yes; then
17267
 
      with_gnu_ld=no
17268
 
    fi
17269
 
    ;;
17270
 
  openbsd*)
17271
 
    with_gnu_ld=no
17272
 
    ;;
17273
 
  esac
17274
 
 
17275
 
  ld_shlibs_GCJ=yes
17276
 
  if test "$with_gnu_ld" = yes; then
17277
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
17278
 
    wlarc='${wl}'
17279
 
 
17280
 
    # See if GNU ld supports shared libraries.
17281
 
    case $host_os in
17282
 
    aix3* | aix4* | aix5*)
17283
 
      # On AIX/PPC, the GNU linker is very broken
17284
 
      if test "$host_cpu" != ia64; then
17285
 
        ld_shlibs_GCJ=no
17286
 
        cat <<EOF 1>&2
17287
 
 
17288
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17289
 
*** to be unable to reliably create shared libraries on AIX.
17290
 
*** Therefore, libtool is disabling shared libraries support.  If you
17291
 
*** really care for shared libraries, you may want to modify your PATH
17292
 
*** so that a non-GNU linker is found, and then restart.
17293
 
 
17294
 
EOF
17295
 
      fi
17296
 
      ;;
17297
 
 
17298
 
    amigaos*)
17299
 
      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)'
17300
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17301
 
      hardcode_minus_L_GCJ=yes
17302
 
 
17303
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17304
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
17305
 
      # to version 4, is to share data among multiple programs linked
17306
 
      # with the same dynamic library.  Since this doesn't match the
17307
 
      # behavior of shared libraries on other platforms, we can't use
17308
 
      # them.
17309
 
      ld_shlibs_GCJ=no
17310
 
      ;;
17311
 
 
17312
 
    beos*)
17313
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17314
 
        allow_undefined_flag_GCJ=unsupported
17315
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17316
 
        # support --undefined.  This deserves some investigation.  FIXME
17317
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17318
 
      else
17319
 
        ld_shlibs_GCJ=no
17320
 
      fi
17321
 
      ;;
17322
 
 
17323
 
    cygwin* | mingw* | pw32*)
17324
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17325
 
      # as there is no search path for DLLs.
17326
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17327
 
      allow_undefined_flag_GCJ=unsupported
17328
 
      always_export_symbols_GCJ=no
17329
 
      enable_shared_with_static_runtimes_GCJ=yes
17330
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17331
 
 
17332
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17333
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17334
 
        # If the export-symbols file already is a .def file (1st line
17335
 
        # is EXPORTS), use it as is; otherwise, prepend...
17336
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17337
 
          cp $export_symbols $output_objdir/$soname.def;
17338
 
        else
17339
 
          echo EXPORTS > $output_objdir/$soname.def;
17340
 
          cat $export_symbols >> $output_objdir/$soname.def;
17341
 
        fi~
17342
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17343
 
      else
17344
 
        ld_shlibs_GCJ=no
17345
 
      fi
17346
 
      ;;
17347
 
 
17348
 
    netbsd*)
17349
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17350
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17351
 
        wlarc=
17352
 
      else
17353
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17354
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17355
 
      fi
17356
 
      ;;
17357
 
 
17358
 
    solaris* | sysv5*)
17359
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17360
 
        ld_shlibs_GCJ=no
17361
 
        cat <<EOF 1>&2
17362
 
 
17363
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17364
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17365
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17366
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17367
 
*** your PATH or compiler configuration so that the native linker is
17368
 
*** used, and then restart.
17369
 
 
17370
 
EOF
17371
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17372
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17373
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17374
 
      else
17375
 
        ld_shlibs_GCJ=no
17376
 
      fi
17377
 
      ;;
17378
 
 
17379
 
    sunos4*)
17380
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17381
 
      wlarc=
17382
 
      hardcode_direct_GCJ=yes
17383
 
      hardcode_shlibpath_var_GCJ=no
17384
 
      ;;
17385
 
 
17386
 
  linux*)
17387
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17388
 
      tmp_addflag=
17389
 
      case $CC,$host_cpu in
17390
 
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
17391
 
        tmp_addflag=' -fpic' ;;
17392
 
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
17393
 
        tmp_addflag=' -i_dynamic' ;;
17394
 
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
17395
 
        tmp_addflag=' -i_dynamic -nofor_main' ;;
17396
 
      ifc* | ifort*)                    # Intel Fortran compiler
17397
 
        tmp_addflag=' -nofor_main' ;;
17398
 
      esac
17399
 
      archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17400
 
      supports_anon_versioning=no
17401
 
      case `$LD -v 2>/dev/null` in
17402
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17403
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17404
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17405
 
        *\ 2.11.*) ;; # other 2.11 versions
17406
 
        *) supports_anon_versioning=yes ;;
17407
 
      esac
17408
 
      if test $supports_anon_versioning = yes; then
17409
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17410
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17411
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
17412
 
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17413
 
      else
17414
 
        archive_expsym_cmds_GCJ=$archive_cmds_GCJ
17415
 
      fi
17416
 
    else
17417
 
      ld_shlibs_GCJ=no
17418
 
    fi
17419
 
    ;;
17420
 
 
17421
 
    *)
17422
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17423
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17424
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17425
 
      else
17426
 
        ld_shlibs_GCJ=no
17427
 
      fi
17428
 
      ;;
17429
 
    esac
17430
 
 
17431
 
    if test "$ld_shlibs_GCJ" = yes; then
17432
 
      runpath_var=LD_RUN_PATH
17433
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17434
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17435
 
      # ancient GNU ld didn't support --whole-archive et. al.
17436
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17437
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17438
 
      else
17439
 
        whole_archive_flag_spec_GCJ=
17440
 
      fi
17441
 
    fi
17442
 
  else
17443
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17444
 
    case $host_os in
17445
 
    aix3*)
17446
 
      allow_undefined_flag_GCJ=unsupported
17447
 
      always_export_symbols_GCJ=yes
17448
 
      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'
17449
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17450
 
      # are no directories specified by -L.
17451
 
      hardcode_minus_L_GCJ=yes
17452
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
17453
 
        # Neither direct hardcoding nor static linking is supported with a
17454
 
        # broken collect2.
17455
 
        hardcode_direct_GCJ=unsupported
17456
 
      fi
17457
 
      ;;
17458
 
 
17459
 
    aix4* | aix5*)
17460
 
      if test "$host_cpu" = ia64; then
17461
 
        # On IA64, the linker does run time linking by default, so we don't
17462
 
        # have to do anything special.
17463
 
        aix_use_runtimelinking=no
17464
 
        exp_sym_flag='-Bexport'
17465
 
        no_entry_flag=""
17466
 
      else
17467
 
        # If we're using GNU nm, then we don't want the "-C" option.
17468
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17469
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17470
 
          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'
17471
 
        else
17472
 
          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'
17473
 
        fi
17474
 
        aix_use_runtimelinking=no
17475
 
 
17476
 
        # Test if we are trying to use run time linking or normal
17477
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17478
 
        # need to do runtime linking.
17479
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17480
 
          for ld_flag in $LDFLAGS; do
17481
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17482
 
            aix_use_runtimelinking=yes
17483
 
            break
17484
 
          fi
17485
 
          done
17486
 
        esac
17487
 
 
17488
 
        exp_sym_flag='-bexport'
17489
 
        no_entry_flag='-bnoentry'
17490
 
      fi
17491
 
 
17492
 
      # When large executables or shared objects are built, AIX ld can
17493
 
      # have problems creating the table of contents.  If linking a library
17494
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17495
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17496
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17497
 
 
17498
 
      archive_cmds_GCJ=''
17499
 
      hardcode_direct_GCJ=yes
17500
 
      hardcode_libdir_separator_GCJ=':'
17501
 
      link_all_deplibs_GCJ=yes
17502
 
 
17503
 
      if test "$GCC" = yes; then
17504
 
        case $host_os in aix4.[012]|aix4.[012].*)
17505
 
        # We only want to do this on AIX 4.2 and lower, the check
17506
 
        # below for broken collect2 doesn't work under 4.3+
17507
 
          collect2name=`${CC} -print-prog-name=collect2`
17508
 
          if test -f "$collect2name" && \
17509
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17510
 
          then
17511
 
          # We have reworked collect2
17512
 
          hardcode_direct_GCJ=yes
17513
 
          else
17514
 
          # We have old collect2
17515
 
          hardcode_direct_GCJ=unsupported
17516
 
          # It fails to find uninstalled libraries when the uninstalled
17517
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17518
 
          # to unsupported forces relinking
17519
 
          hardcode_minus_L_GCJ=yes
17520
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17521
 
          hardcode_libdir_separator_GCJ=
17522
 
          fi
17523
 
        esac
17524
 
        shared_flag='-shared'
17525
 
        if test "$aix_use_runtimelinking" = yes; then
17526
 
          shared_flag="$shared_flag "'${wl}-G'
17527
 
        fi
17528
 
      else
17529
 
        # not using gcc
17530
 
        if test "$host_cpu" = ia64; then
17531
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17532
 
        # chokes on -Wl,-G. The following line is correct:
17533
 
          shared_flag='-G'
17534
 
        else
17535
 
        if test "$aix_use_runtimelinking" = yes; then
17536
 
            shared_flag='${wl}-G'
17537
 
          else
17538
 
            shared_flag='${wl}-bM:SRE'
17539
 
        fi
17540
 
        fi
17541
 
      fi
17542
 
 
17543
 
      # It seems that -bexpall does not export symbols beginning with
17544
 
      # underscore (_), so it is better to generate a list of symbols to export.
17545
 
      always_export_symbols_GCJ=yes
17546
 
      if test "$aix_use_runtimelinking" = yes; then
17547
 
        # Warning - without using the other runtime loading flags (-brtl),
17548
 
        # -berok will link without error, but may produce a broken library.
17549
 
        allow_undefined_flag_GCJ='-berok'
17550
 
       # Determine the default libpath from the value encoded in an empty executable.
17551
 
       cat >conftest.$ac_ext <<_ACEOF
17552
 
/* confdefs.h.  */
17553
 
_ACEOF
17554
 
cat confdefs.h >>conftest.$ac_ext
17555
 
cat >>conftest.$ac_ext <<_ACEOF
17556
 
/* end confdefs.h.  */
17557
 
 
17558
 
int
17559
 
main ()
17560
 
{
17561
 
 
17562
 
  ;
17563
 
  return 0;
17564
 
}
17565
 
_ACEOF
17566
 
rm -f conftest.$ac_objext conftest$ac_exeext
17567
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568
 
  (eval $ac_link) 2>conftest.er1
17569
 
  ac_status=$?
17570
 
  grep -v '^ *+' conftest.er1 >conftest.err
17571
 
  rm -f conftest.er1
17572
 
  cat conftest.err >&5
17573
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574
 
  (exit $ac_status); } &&
17575
 
         { ac_try='test -z "$ac_c_werror_flag"
17576
 
                         || test ! -s conftest.err'
17577
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578
 
  (eval $ac_try) 2>&5
17579
 
  ac_status=$?
17580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581
 
  (exit $ac_status); }; } &&
17582
 
         { ac_try='test -s conftest$ac_exeext'
17583
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584
 
  (eval $ac_try) 2>&5
17585
 
  ac_status=$?
17586
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587
 
  (exit $ac_status); }; }; then
17588
 
  
17589
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17590
 
}'`
17591
 
# Check for a 64-bit object if we didn't find anything.
17592
 
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; }
17593
 
}'`; fi
17594
 
else
17595
 
  echo "$as_me: failed program was:" >&5
17596
 
sed 's/^/| /' conftest.$ac_ext >&5
17597
 
 
17598
 
fi
17599
 
rm -f conftest.err conftest.$ac_objext \
17600
 
      conftest$ac_exeext conftest.$ac_ext
17601
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17602
 
 
17603
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17604
 
        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"
17605
 
       else
17606
 
        if test "$host_cpu" = ia64; then
17607
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17608
 
          allow_undefined_flag_GCJ="-z nodefs"
17609
 
          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"
17610
 
        else
17611
 
         # Determine the default libpath from the value encoded in an empty executable.
17612
 
         cat >conftest.$ac_ext <<_ACEOF
17613
 
/* confdefs.h.  */
17614
 
_ACEOF
17615
 
cat confdefs.h >>conftest.$ac_ext
17616
 
cat >>conftest.$ac_ext <<_ACEOF
17617
 
/* end confdefs.h.  */
17618
 
 
17619
 
int
17620
 
main ()
17621
 
{
17622
 
 
17623
 
  ;
17624
 
  return 0;
17625
 
}
17626
 
_ACEOF
17627
 
rm -f conftest.$ac_objext conftest$ac_exeext
17628
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629
 
  (eval $ac_link) 2>conftest.er1
17630
 
  ac_status=$?
17631
 
  grep -v '^ *+' conftest.er1 >conftest.err
17632
 
  rm -f conftest.er1
17633
 
  cat conftest.err >&5
17634
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635
 
  (exit $ac_status); } &&
17636
 
         { ac_try='test -z "$ac_c_werror_flag"
17637
 
                         || test ! -s conftest.err'
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); }; } &&
17643
 
         { ac_try='test -s conftest$ac_exeext'
17644
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645
 
  (eval $ac_try) 2>&5
17646
 
  ac_status=$?
17647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648
 
  (exit $ac_status); }; }; then
17649
 
  
17650
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17651
 
}'`
17652
 
# Check for a 64-bit object if we didn't find anything.
17653
 
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; }
17654
 
}'`; fi
17655
 
else
17656
 
  echo "$as_me: failed program was:" >&5
17657
 
sed 's/^/| /' conftest.$ac_ext >&5
17658
 
 
17659
 
fi
17660
 
rm -f conftest.err conftest.$ac_objext \
17661
 
      conftest$ac_exeext conftest.$ac_ext
17662
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17663
 
 
17664
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17665
 
          # Warning - without using the other run time loading flags,
17666
 
          # -berok will link without error, but may produce a broken library.
17667
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17668
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17669
 
          # -bexpall does not export symbols beginning with underscore (_)
17670
 
          always_export_symbols_GCJ=yes
17671
 
          # Exported symbols can be pulled into shared objects from archives
17672
 
          whole_archive_flag_spec_GCJ=' '
17673
 
          archive_cmds_need_lc_GCJ=yes
17674
 
          # This is similar to how AIX traditionally builds it's shared libraries.
17675
 
          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'
17676
 
        fi
17677
 
      fi
17678
 
      ;;
17679
 
 
17680
 
    amigaos*)
17681
 
      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)'
17682
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17683
 
      hardcode_minus_L_GCJ=yes
17684
 
      # see comment about different semantics on the GNU ld section
17685
 
      ld_shlibs_GCJ=no
17686
 
      ;;
17687
 
 
17688
 
    bsdi[45]*)
17689
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17690
 
      ;;
17691
 
 
17692
 
    cygwin* | mingw* | pw32*)
17693
 
      # When not using gcc, we currently assume that we are using
17694
 
      # Microsoft Visual C++.
17695
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17696
 
      # no search path for DLLs.
17697
 
      hardcode_libdir_flag_spec_GCJ=' '
17698
 
      allow_undefined_flag_GCJ=unsupported
17699
 
      # Tell ltmain to make .lib files, not .a files.
17700
 
      libext=lib
17701
 
      # Tell ltmain to make .dll files, not .so files.
17702
 
      shrext_cmds=".dll"
17703
 
      # FIXME: Setting linknames here is a bad hack.
17704
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17705
 
      # The linker will automatically build a .lib file if we build a DLL.
17706
 
      old_archive_From_new_cmds_GCJ='true'
17707
 
      # FIXME: Should let the user specify the lib program.
17708
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17709
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17710
 
      enable_shared_with_static_runtimes_GCJ=yes
17711
 
      ;;
17712
 
 
17713
 
    darwin* | rhapsody*)
17714
 
      case "$host_os" in
17715
 
        rhapsody* | darwin1.[012])
17716
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17717
 
         ;;
17718
 
       *) # Darwin 1.3 on
17719
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17720
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17721
 
         else
17722
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
17723
 
             10.[012])
17724
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17725
 
               ;;
17726
 
             10.*)
17727
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17728
 
               ;;
17729
 
           esac
17730
 
         fi
17731
 
         ;;
17732
 
      esac
17733
 
      archive_cmds_need_lc_GCJ=no
17734
 
      hardcode_direct_GCJ=no
17735
 
      hardcode_automatic_GCJ=yes
17736
 
      hardcode_shlibpath_var_GCJ=unsupported
17737
 
      whole_archive_flag_spec_GCJ=''
17738
 
      link_all_deplibs_GCJ=yes
17739
 
    if test "$GCC" = yes ; then
17740
 
        output_verbose_link_cmd='echo'
17741
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17742
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17743
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17744
 
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17745
 
      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}'
17746
 
    else
17747
 
      case "$cc_basename" in
17748
 
        xlc*)
17749
 
         output_verbose_link_cmd='echo'
17750
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17751
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17752
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17753
 
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17754
 
          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}'
17755
 
          ;;
17756
 
       *)
17757
 
         ld_shlibs_GCJ=no
17758
 
          ;;
17759
 
      esac
17760
 
    fi
17761
 
      ;;
17762
 
 
17763
 
    dgux*)
17764
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17766
 
      hardcode_shlibpath_var_GCJ=no
17767
 
      ;;
17768
 
 
17769
 
    freebsd1*)
17770
 
      ld_shlibs_GCJ=no
17771
 
      ;;
17772
 
 
17773
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17774
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17775
 
    # does not break anything, and helps significantly (at the cost of a little
17776
 
    # extra space).
17777
 
    freebsd2.2*)
17778
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17779
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17780
 
      hardcode_direct_GCJ=yes
17781
 
      hardcode_shlibpath_var_GCJ=no
17782
 
      ;;
17783
 
 
17784
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17785
 
    freebsd2*)
17786
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17787
 
      hardcode_direct_GCJ=yes
17788
 
      hardcode_minus_L_GCJ=yes
17789
 
      hardcode_shlibpath_var_GCJ=no
17790
 
      ;;
17791
 
 
17792
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17793
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
17794
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17795
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17796
 
      hardcode_direct_GCJ=yes
17797
 
      hardcode_shlibpath_var_GCJ=no
17798
 
      ;;
17799
 
 
17800
 
    hpux9*)
17801
 
      if test "$GCC" = yes; then
17802
 
        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'
17803
 
      else
17804
 
        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'
17805
 
      fi
17806
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17807
 
      hardcode_libdir_separator_GCJ=:
17808
 
      hardcode_direct_GCJ=yes
17809
 
 
17810
 
      # hardcode_minus_L: Not really in the search PATH,
17811
 
      # but as the default location of the library.
17812
 
      hardcode_minus_L_GCJ=yes
17813
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17814
 
      ;;
17815
 
 
17816
 
    hpux10* | hpux11*)
17817
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17818
 
        case "$host_cpu" in
17819
 
        hppa*64*|ia64*)
17820
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17821
 
          ;;
17822
 
        *)
17823
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17824
 
          ;;
17825
 
        esac
17826
 
      else
17827
 
        case "$host_cpu" in
17828
 
        hppa*64*|ia64*)
17829
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17830
 
          ;;
17831
 
        *)
17832
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17833
 
          ;;
17834
 
        esac
17835
 
      fi
17836
 
      if test "$with_gnu_ld" = no; then
17837
 
        case "$host_cpu" in
17838
 
        hppa*64*)
17839
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17840
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17841
 
          hardcode_libdir_separator_GCJ=:
17842
 
          hardcode_direct_GCJ=no
17843
 
          hardcode_shlibpath_var_GCJ=no
17844
 
          ;;
17845
 
        ia64*)
17846
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17847
 
          hardcode_direct_GCJ=no
17848
 
          hardcode_shlibpath_var_GCJ=no
17849
 
 
17850
 
          # hardcode_minus_L: Not really in the search PATH,
17851
 
          # but as the default location of the library.
17852
 
          hardcode_minus_L_GCJ=yes
17853
 
          ;;
17854
 
        *)
17855
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17856
 
          hardcode_libdir_separator_GCJ=:
17857
 
          hardcode_direct_GCJ=yes
17858
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
17859
 
 
17860
 
          # hardcode_minus_L: Not really in the search PATH,
17861
 
          # but as the default location of the library.
17862
 
          hardcode_minus_L_GCJ=yes
17863
 
          ;;
17864
 
        esac
17865
 
      fi
17866
 
      ;;
17867
 
 
17868
 
    irix5* | irix6* | nonstopux*)
17869
 
      if test "$GCC" = yes; then
17870
 
        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'
17871
 
      else
17872
 
        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'
17873
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17874
 
      fi
17875
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17876
 
      hardcode_libdir_separator_GCJ=:
17877
 
      link_all_deplibs_GCJ=yes
17878
 
      ;;
17879
 
 
17880
 
    netbsd*)
17881
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17882
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17883
 
      else
17884
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17885
 
      fi
17886
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17887
 
      hardcode_direct_GCJ=yes
17888
 
      hardcode_shlibpath_var_GCJ=no
17889
 
      ;;
17890
 
 
17891
 
    newsos6)
17892
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17893
 
      hardcode_direct_GCJ=yes
17894
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17895
 
      hardcode_libdir_separator_GCJ=:
17896
 
      hardcode_shlibpath_var_GCJ=no
17897
 
      ;;
17898
 
 
17899
 
    openbsd*)
17900
 
      hardcode_direct_GCJ=yes
17901
 
      hardcode_shlibpath_var_GCJ=no
17902
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17903
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17904
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17905
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17906
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17907
 
      else
17908
 
       case $host_os in
17909
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17910
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17911
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17912
 
           ;;
17913
 
         *)
17914
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17915
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17916
 
           ;;
17917
 
       esac
17918
 
      fi
17919
 
      ;;
17920
 
 
17921
 
    os2*)
17922
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17923
 
      hardcode_minus_L_GCJ=yes
17924
 
      allow_undefined_flag_GCJ=unsupported
17925
 
      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'
17926
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17927
 
      ;;
17928
 
 
17929
 
    osf3*)
17930
 
      if test "$GCC" = yes; then
17931
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17932
 
        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'
17933
 
      else
17934
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17935
 
        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'
17936
 
      fi
17937
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17938
 
      hardcode_libdir_separator_GCJ=:
17939
 
      ;;
17940
 
 
17941
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
17942
 
      if test "$GCC" = yes; then
17943
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17944
 
        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'
17945
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17946
 
      else
17947
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17948
 
        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'
17949
 
        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~
17950
 
        $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'
17951
 
 
17952
 
        # Both c and cxx compiler support -rpath directly
17953
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17954
 
      fi
17955
 
      hardcode_libdir_separator_GCJ=:
17956
 
      ;;
17957
 
 
17958
 
    sco3.2v5*)
17959
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17960
 
      hardcode_shlibpath_var_GCJ=no
17961
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17962
 
      runpath_var=LD_RUN_PATH
17963
 
      hardcode_runpath_var=yes
17964
 
      ;;
17965
 
 
17966
 
    solaris*)
17967
 
      no_undefined_flag_GCJ=' -z text'
17968
 
      if test "$GCC" = yes; then
17969
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17970
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17971
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17972
 
      else
17973
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17974
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17975
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17976
 
      fi
17977
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17978
 
      hardcode_shlibpath_var_GCJ=no
17979
 
      case $host_os in
17980
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17981
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17982
 
        whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
17983
 
      esac
17984
 
      link_all_deplibs_GCJ=yes
17985
 
      ;;
17986
 
 
17987
 
    sunos4*)
17988
 
      if test "x$host_vendor" = xsequent; then
17989
 
        # Use $CC to link under sequent, because it throws in some extra .o
17990
 
        # files that make .init and .fini sections work.
17991
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17992
 
      else
17993
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17994
 
      fi
17995
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17996
 
      hardcode_direct_GCJ=yes
17997
 
      hardcode_minus_L_GCJ=yes
17998
 
      hardcode_shlibpath_var_GCJ=no
17999
 
      ;;
18000
 
 
18001
 
    sysv4)
18002
 
      case $host_vendor in
18003
 
        sni)
18004
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18005
 
          hardcode_direct_GCJ=yes # is this really true???
18006
 
        ;;
18007
 
        siemens)
18008
 
          ## LD is ld it makes a PLAMLIB
18009
 
          ## CC just makes a GrossModule.
18010
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18011
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18012
 
          hardcode_direct_GCJ=no
18013
 
        ;;
18014
 
        motorola)
18015
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18016
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18017
 
        ;;
18018
 
      esac
18019
 
      runpath_var='LD_RUN_PATH'
18020
 
      hardcode_shlibpath_var_GCJ=no
18021
 
      ;;
18022
 
 
18023
 
    sysv4.3*)
18024
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18025
 
      hardcode_shlibpath_var_GCJ=no
18026
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18027
 
      ;;
18028
 
 
18029
 
    sysv4*MP*)
18030
 
      if test -d /usr/nec; then
18031
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18032
 
        hardcode_shlibpath_var_GCJ=no
18033
 
        runpath_var=LD_RUN_PATH
18034
 
        hardcode_runpath_var=yes
18035
 
        ld_shlibs_GCJ=yes
18036
 
      fi
18037
 
      ;;
18038
 
 
18039
 
    sysv4.2uw2*)
18040
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18041
 
      hardcode_direct_GCJ=yes
18042
 
      hardcode_minus_L_GCJ=no
18043
 
      hardcode_shlibpath_var_GCJ=no
18044
 
      hardcode_runpath_var=yes
18045
 
      runpath_var=LD_RUN_PATH
18046
 
      ;;
18047
 
 
18048
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18049
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
18050
 
      if test "$GCC" = yes; then
18051
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18052
 
      else
18053
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18054
 
      fi
18055
 
      runpath_var='LD_RUN_PATH'
18056
 
      hardcode_shlibpath_var_GCJ=no
18057
 
      ;;
18058
 
 
18059
 
    sysv5*)
18060
 
      no_undefined_flag_GCJ=' -z text'
18061
 
      # $CC -shared without GNU ld will not create a library from C++
18062
 
      # object files and a static libstdc++, better avoid it by now
18063
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18064
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18065
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18066
 
      hardcode_libdir_flag_spec_GCJ=
18067
 
      hardcode_shlibpath_var_GCJ=no
18068
 
      runpath_var='LD_RUN_PATH'
18069
 
      ;;
18070
 
 
18071
 
    uts4*)
18072
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18073
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18074
 
      hardcode_shlibpath_var_GCJ=no
18075
 
      ;;
18076
 
 
18077
 
    *)
18078
 
      ld_shlibs_GCJ=no
18079
 
      ;;
18080
 
    esac
18081
 
  fi
18082
 
 
18083
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18084
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18085
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18086
 
 
18087
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18088
 
if test "$GCC" = yes; then
18089
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18090
 
fi
18091
 
 
18092
 
#
18093
 
# Do we need to explicitly link libc?
18094
 
#
18095
 
case "x$archive_cmds_need_lc_GCJ" in
18096
 
x|xyes)
18097
 
  # Assume -lc should be added
18098
 
  archive_cmds_need_lc_GCJ=yes
18099
 
 
18100
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18101
 
    case $archive_cmds_GCJ in
18102
 
    *'~'*)
18103
 
      # FIXME: we may have to deal with multi-command sequences.
18104
 
      ;;
18105
 
    '$CC '*)
18106
 
      # Test whether the compiler implicitly links with -lc since on some
18107
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18108
 
      # to ld, don't add -lc before -lgcc.
18109
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18110
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18111
 
      $rm conftest*
18112
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18113
 
 
18114
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115
 
  (eval $ac_compile) 2>&5
18116
 
  ac_status=$?
18117
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118
 
  (exit $ac_status); } 2>conftest.err; then
18119
 
        soname=conftest
18120
 
        lib=conftest
18121
 
        libobjs=conftest.$ac_objext
18122
 
        deplibs=
18123
 
        wl=$lt_prog_compiler_wl_GCJ
18124
 
        compiler_flags=-v
18125
 
        linker_flags=-v
18126
 
        verstring=
18127
 
        output_objdir=.
18128
 
        libname=conftest
18129
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18130
 
        allow_undefined_flag_GCJ=
18131
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18132
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18133
 
  ac_status=$?
18134
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135
 
  (exit $ac_status); }
18136
 
        then
18137
 
          archive_cmds_need_lc_GCJ=no
18138
 
        else
18139
 
          archive_cmds_need_lc_GCJ=yes
18140
 
        fi
18141
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18142
 
      else
18143
 
        cat conftest.err 1>&5
18144
 
      fi
18145
 
      $rm conftest*
18146
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18147
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18148
 
      ;;
18149
 
    esac
18150
 
  fi
18151
 
  ;;
18152
 
esac
18153
 
 
18154
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18155
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18156
 
library_names_spec=
18157
 
libname_spec='lib$name'
18158
 
soname_spec=
18159
 
shrext_cmds=".so"
18160
 
postinstall_cmds=
18161
 
postuninstall_cmds=
18162
 
finish_cmds=
18163
 
finish_eval=
18164
 
shlibpath_var=
18165
 
shlibpath_overrides_runpath=unknown
18166
 
version_type=none
18167
 
dynamic_linker="$host_os ld.so"
18168
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18169
 
if test "$GCC" = yes; then
18170
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18171
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18172
 
    # if the path contains ";" then we assume it to be the separator
18173
 
    # otherwise default to the standard path separator (i.e. ":") - it is
18174
 
    # assumed that no part of a normal pathname contains ";" but that should
18175
 
    # okay in the real world where ";" in dirpaths is itself problematic.
18176
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18177
 
  else
18178
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18179
 
  fi
18180
 
else
18181
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18182
 
fi
18183
 
need_lib_prefix=unknown
18184
 
hardcode_into_libs=no
18185
 
 
18186
 
# when you set need_version to no, make sure it does not cause -set_version
18187
 
# flags to be left without arguments
18188
 
need_version=unknown
18189
 
 
18190
 
case $host_os in
18191
 
aix3*)
18192
 
  version_type=linux
18193
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18194
 
  shlibpath_var=LIBPATH
18195
 
 
18196
 
  # AIX 3 has no versioning support, so we append a major version to the name.
18197
 
  soname_spec='${libname}${release}${shared_ext}$major'
18198
 
  ;;
18199
 
 
18200
 
aix4* | aix5*)
18201
 
  version_type=linux
18202
 
  need_lib_prefix=no
18203
 
  need_version=no
18204
 
  hardcode_into_libs=yes
18205
 
  if test "$host_cpu" = ia64; then
18206
 
    # AIX 5 supports IA64
18207
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18208
 
    shlibpath_var=LD_LIBRARY_PATH
18209
 
  else
18210
 
    # With GCC up to 2.95.x, collect2 would create an import file
18211
 
    # for dependence libraries.  The import file would start with
18212
 
    # the line `#! .'.  This would cause the generated library to
18213
 
    # depend on `.', always an invalid library.  This was fixed in
18214
 
    # development snapshots of GCC prior to 3.0.
18215
 
    case $host_os in
18216
 
      aix4 | aix4.[01] | aix4.[01].*)
18217
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18218
 
           echo ' yes '
18219
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18220
 
        :
18221
 
      else
18222
 
        can_build_shared=no
18223
 
      fi
18224
 
      ;;
18225
 
    esac
18226
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18227
 
    # soname into executable. Probably we can add versioning support to
18228
 
    # collect2, so additional links can be useful in future.
18229
 
    if test "$aix_use_runtimelinking" = yes; then
18230
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18231
 
      # instead of lib<name>.a to let people know that these are not
18232
 
      # typical AIX shared libraries.
18233
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18234
 
    else
18235
 
      # We preserve .a as extension for shared libraries through AIX4.2
18236
 
      # and later when we are not doing run time linking.
18237
 
      library_names_spec='${libname}${release}.a $libname.a'
18238
 
      soname_spec='${libname}${release}${shared_ext}$major'
18239
 
    fi
18240
 
    shlibpath_var=LIBPATH
18241
 
  fi
18242
 
  ;;
18243
 
 
18244
 
amigaos*)
18245
 
  library_names_spec='$libname.ixlibrary $libname.a'
18246
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18247
 
  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'
18248
 
  ;;
18249
 
 
18250
 
beos*)
18251
 
  library_names_spec='${libname}${shared_ext}'
18252
 
  dynamic_linker="$host_os ld.so"
18253
 
  shlibpath_var=LIBRARY_PATH
18254
 
  ;;
18255
 
 
18256
 
bsdi[45]*)
18257
 
  version_type=linux
18258
 
  need_version=no
18259
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260
 
  soname_spec='${libname}${release}${shared_ext}$major'
18261
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18262
 
  shlibpath_var=LD_LIBRARY_PATH
18263
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18264
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18265
 
  # the default ld.so.conf also contains /usr/contrib/lib and
18266
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18267
 
  # libtool to hard-code these into programs
18268
 
  ;;
18269
 
 
18270
 
cygwin* | mingw* | pw32*)
18271
 
  version_type=windows
18272
 
  shrext_cmds=".dll"
18273
 
  need_version=no
18274
 
  need_lib_prefix=no
18275
 
 
18276
 
  case $GCC,$host_os in
18277
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
18278
 
    library_names_spec='$libname.dll.a'
18279
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18280
 
    postinstall_cmds='base_file=`basename \${file}`~
18281
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18282
 
      dldir=$destdir/`dirname \$dlpath`~
18283
 
      test -d \$dldir || mkdir -p \$dldir~
18284
 
      $install_prog $dir/$dlname \$dldir/$dlname'
18285
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18286
 
      dlpath=$dir/\$dldll~
18287
 
       $rm \$dlpath'
18288
 
    shlibpath_overrides_runpath=yes
18289
 
 
18290
 
    case $host_os in
18291
 
    cygwin*)
18292
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18293
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18294
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18295
 
      ;;
18296
 
    mingw*)
18297
 
      # MinGW DLLs use traditional 'lib' prefix
18298
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18299
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18300
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18301
 
        # It is most probably a Windows format PATH printed by
18302
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18303
 
        # path with ; separators, and with drive letters. We can handle the
18304
 
        # drive letters (cygwin fileutils understands them), so leave them,
18305
 
        # especially as we might pass files found there to a mingw objdump,
18306
 
        # which wouldn't understand a cygwinified path. Ahh.
18307
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18308
 
      else
18309
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18310
 
      fi
18311
 
      ;;
18312
 
    pw32*)
18313
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18314
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18315
 
      ;;
18316
 
    esac
18317
 
    ;;
18318
 
 
18319
 
  *)
18320
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18321
 
    ;;
18322
 
  esac
18323
 
  dynamic_linker='Win32 ld.exe'
18324
 
  # FIXME: first we should search . and the directory the executable is in
18325
 
  shlibpath_var=PATH
18326
 
  ;;
18327
 
 
18328
 
darwin* | rhapsody*)
18329
 
  dynamic_linker="$host_os dyld"
18330
 
  version_type=darwin
18331
 
  need_lib_prefix=no
18332
 
  need_version=no
18333
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18334
 
  soname_spec='${libname}${release}${major}$shared_ext'
18335
 
  shlibpath_overrides_runpath=yes
18336
 
  shlibpath_var=DYLD_LIBRARY_PATH
18337
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18338
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18339
 
  if test "$GCC" = yes; then
18340
 
    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"`
18341
 
  else
18342
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18343
 
  fi
18344
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18345
 
  ;;
18346
 
 
18347
 
dgux*)
18348
 
  version_type=linux
18349
 
  need_lib_prefix=no
18350
 
  need_version=no
18351
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18352
 
  soname_spec='${libname}${release}${shared_ext}$major'
18353
 
  shlibpath_var=LD_LIBRARY_PATH
18354
 
  ;;
18355
 
 
18356
 
freebsd1*)
18357
 
  dynamic_linker=no
18358
 
  ;;
18359
 
 
18360
 
kfreebsd*-gnu)
18361
 
  version_type=linux
18362
 
  need_lib_prefix=no
18363
 
  need_version=no
18364
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18365
 
  soname_spec='${libname}${release}${shared_ext}$major'
18366
 
  shlibpath_var=LD_LIBRARY_PATH
18367
 
  shlibpath_overrides_runpath=no
18368
 
  hardcode_into_libs=yes
18369
 
  dynamic_linker='GNU ld.so'
18370
 
  ;;
18371
 
 
18372
 
freebsd* | dragonfly*)
18373
 
  # DragonFly does not have aout.  When/if they implement a new
18374
 
  # versioning mechanism, adjust this.
18375
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18376
 
  version_type=freebsd-$objformat
18377
 
  case $version_type in
18378
 
    freebsd-elf*)
18379
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18380
 
      need_version=no
18381
 
      need_lib_prefix=no
18382
 
      ;;
18383
 
    freebsd-*)
18384
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18385
 
      need_version=yes
18386
 
      ;;
18387
 
  esac
18388
 
  shlibpath_var=LD_LIBRARY_PATH
18389
 
  case $host_os in
18390
 
  freebsd2*)
18391
 
    shlibpath_overrides_runpath=yes
18392
 
    ;;
18393
 
  freebsd3.[01]* | freebsdelf3.[01]*)
18394
 
    shlibpath_overrides_runpath=yes
18395
 
    hardcode_into_libs=yes
18396
 
    ;;
18397
 
  *) # from 3.2 on
18398
 
    shlibpath_overrides_runpath=no
18399
 
    hardcode_into_libs=yes
18400
 
    ;;
18401
 
  esac
18402
 
  ;;
18403
 
 
18404
 
gnu*)
18405
 
  version_type=linux
18406
 
  need_lib_prefix=no
18407
 
  need_version=no
18408
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18409
 
  soname_spec='${libname}${release}${shared_ext}$major'
18410
 
  shlibpath_var=LD_LIBRARY_PATH
18411
 
  hardcode_into_libs=yes
18412
 
  ;;
18413
 
 
18414
 
hpux9* | hpux10* | hpux11*)
18415
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18416
 
  # link against other versions.
18417
 
  version_type=sunos
18418
 
  need_lib_prefix=no
18419
 
  need_version=no
18420
 
  case "$host_cpu" in
18421
 
  ia64*)
18422
 
    shrext_cmds='.so'
18423
 
    hardcode_into_libs=yes
18424
 
    dynamic_linker="$host_os dld.so"
18425
 
    shlibpath_var=LD_LIBRARY_PATH
18426
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18427
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428
 
    soname_spec='${libname}${release}${shared_ext}$major'
18429
 
    if test "X$HPUX_IA64_MODE" = X32; then
18430
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18431
 
    else
18432
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18433
 
    fi
18434
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18435
 
    ;;
18436
 
   hppa*64*)
18437
 
     shrext_cmds='.sl'
18438
 
     hardcode_into_libs=yes
18439
 
     dynamic_linker="$host_os dld.sl"
18440
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18441
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18442
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18443
 
     soname_spec='${libname}${release}${shared_ext}$major'
18444
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18445
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18446
 
     ;;
18447
 
   *)
18448
 
    shrext_cmds='.sl'
18449
 
    dynamic_linker="$host_os dld.sl"
18450
 
    shlibpath_var=SHLIB_PATH
18451
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18452
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18453
 
    soname_spec='${libname}${release}${shared_ext}$major'
18454
 
    ;;
18455
 
  esac
18456
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18457
 
  postinstall_cmds='chmod 555 $lib'
18458
 
  ;;
18459
 
 
18460
 
irix5* | irix6* | nonstopux*)
18461
 
  case $host_os in
18462
 
    nonstopux*) version_type=nonstopux ;;
18463
 
    *)
18464
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18465
 
                version_type=linux
18466
 
        else
18467
 
                version_type=irix
18468
 
        fi ;;
18469
 
  esac
18470
 
  need_lib_prefix=no
18471
 
  need_version=no
18472
 
  soname_spec='${libname}${release}${shared_ext}$major'
18473
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18474
 
  case $host_os in
18475
 
  irix5* | nonstopux*)
18476
 
    libsuff= shlibsuff=
18477
 
    ;;
18478
 
  *)
18479
 
    case $LD in # libtool.m4 will add one of these switches to LD
18480
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18481
 
      libsuff= shlibsuff= libmagic=32-bit;;
18482
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18483
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18484
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18485
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18486
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18487
 
    esac
18488
 
    ;;
18489
 
  esac
18490
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18491
 
  shlibpath_overrides_runpath=no
18492
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18493
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18494
 
  hardcode_into_libs=yes
18495
 
  ;;
18496
 
 
18497
 
# No shared lib support for Linux oldld, aout, or coff.
18498
 
linux*oldld* | linux*aout* | linux*coff*)
18499
 
  dynamic_linker=no
18500
 
  ;;
18501
 
 
18502
 
# This must be Linux ELF.
18503
 
linux*)
18504
 
  version_type=linux
18505
 
  need_lib_prefix=no
18506
 
  need_version=no
18507
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18508
 
  soname_spec='${libname}${release}${shared_ext}$major'
18509
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18510
 
  shlibpath_var=LD_LIBRARY_PATH
18511
 
  shlibpath_overrides_runpath=no
18512
 
  # This implies no fast_install, which is unacceptable.
18513
 
  # Some rework will be needed to allow for fast_install
18514
 
  # before this can be enabled.
18515
 
  hardcode_into_libs=yes
18516
 
 
18517
 
  # Append ld.so.conf contents to the search path
18518
 
  if test -f /etc/ld.so.conf; then
18519
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18520
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18521
 
  fi
18522
 
 
18523
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18524
 
  # powerpc, because MkLinux only supported shared libraries with the
18525
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18526
 
  # most powerpc-linux boxes support dynamic linking these days and
18527
 
  # people can always --disable-shared, the test was removed, and we
18528
 
  # assume the GNU/Linux dynamic linker is in use.
18529
 
  dynamic_linker='GNU/Linux ld.so'
18530
 
  ;;
18531
 
 
18532
 
knetbsd*-gnu)
18533
 
  version_type=linux
18534
 
  need_lib_prefix=no
18535
 
  need_version=no
18536
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18537
 
  soname_spec='${libname}${release}${shared_ext}$major'
18538
 
  shlibpath_var=LD_LIBRARY_PATH
18539
 
  shlibpath_overrides_runpath=no
18540
 
  hardcode_into_libs=yes
18541
 
  dynamic_linker='GNU ld.so'
18542
 
  ;;
18543
 
 
18544
 
netbsd*)
18545
 
  version_type=sunos
18546
 
  need_lib_prefix=no
18547
 
  need_version=no
18548
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18549
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18550
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18551
 
    dynamic_linker='NetBSD (a.out) ld.so'
18552
 
  else
18553
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18554
 
    soname_spec='${libname}${release}${shared_ext}$major'
18555
 
    dynamic_linker='NetBSD ld.elf_so'
18556
 
  fi
18557
 
  shlibpath_var=LD_LIBRARY_PATH
18558
 
  shlibpath_overrides_runpath=yes
18559
 
  hardcode_into_libs=yes
18560
 
  ;;
18561
 
 
18562
 
newsos6)
18563
 
  version_type=linux
18564
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18565
 
  shlibpath_var=LD_LIBRARY_PATH
18566
 
  shlibpath_overrides_runpath=yes
18567
 
  ;;
18568
 
 
18569
 
nto-qnx*)
18570
 
  version_type=linux
18571
 
  need_lib_prefix=no
18572
 
  need_version=no
18573
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18574
 
  soname_spec='${libname}${release}${shared_ext}$major'
18575
 
  shlibpath_var=LD_LIBRARY_PATH
18576
 
  shlibpath_overrides_runpath=yes
18577
 
  ;;
18578
 
 
18579
 
openbsd*)
18580
 
  version_type=sunos
18581
 
  need_lib_prefix=no
18582
 
  need_version=no
18583
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18584
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18585
 
  shlibpath_var=LD_LIBRARY_PATH
18586
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18587
 
    case $host_os in
18588
 
      openbsd2.[89] | openbsd2.[89].*)
18589
 
        shlibpath_overrides_runpath=no
18590
 
        ;;
18591
 
      *)
18592
 
        shlibpath_overrides_runpath=yes
18593
 
        ;;
18594
 
      esac
18595
 
  else
18596
 
    shlibpath_overrides_runpath=yes
18597
 
  fi
18598
 
  ;;
18599
 
 
18600
 
os2*)
18601
 
  libname_spec='$name'
18602
 
  shrext_cmds=".dll"
18603
 
  need_lib_prefix=no
18604
 
  library_names_spec='$libname${shared_ext} $libname.a'
18605
 
  dynamic_linker='OS/2 ld.exe'
18606
 
  shlibpath_var=LIBPATH
18607
 
  ;;
18608
 
 
18609
 
osf3* | osf4* | osf5*)
18610
 
  version_type=osf
18611
 
  need_lib_prefix=no
18612
 
  need_version=no
18613
 
  soname_spec='${libname}${release}${shared_ext}$major'
18614
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615
 
  shlibpath_var=LD_LIBRARY_PATH
18616
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18617
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18618
 
  ;;
18619
 
 
18620
 
sco3.2v5*)
18621
 
  version_type=osf
18622
 
  soname_spec='${libname}${release}${shared_ext}$major'
18623
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18624
 
  shlibpath_var=LD_LIBRARY_PATH
18625
 
  ;;
18626
 
 
18627
 
solaris*)
18628
 
  version_type=linux
18629
 
  need_lib_prefix=no
18630
 
  need_version=no
18631
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18632
 
  soname_spec='${libname}${release}${shared_ext}$major'
18633
 
  shlibpath_var=LD_LIBRARY_PATH
18634
 
  shlibpath_overrides_runpath=yes
18635
 
  hardcode_into_libs=yes
18636
 
  # ldd complains unless libraries are executable
18637
 
  postinstall_cmds='chmod +x $lib'
18638
 
  ;;
18639
 
 
18640
 
sunos4*)
18641
 
  version_type=sunos
18642
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18643
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18644
 
  shlibpath_var=LD_LIBRARY_PATH
18645
 
  shlibpath_overrides_runpath=yes
18646
 
  if test "$with_gnu_ld" = yes; then
18647
 
    need_lib_prefix=no
18648
 
  fi
18649
 
  need_version=yes
18650
 
  ;;
18651
 
 
18652
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18653
 
  version_type=linux
18654
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655
 
  soname_spec='${libname}${release}${shared_ext}$major'
18656
 
  shlibpath_var=LD_LIBRARY_PATH
18657
 
  case $host_vendor in
18658
 
    sni)
18659
 
      shlibpath_overrides_runpath=no
18660
 
      need_lib_prefix=no
18661
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18662
 
      runpath_var=LD_RUN_PATH
18663
 
      ;;
18664
 
    siemens)
18665
 
      need_lib_prefix=no
18666
 
      ;;
18667
 
    motorola)
18668
 
      need_lib_prefix=no
18669
 
      need_version=no
18670
 
      shlibpath_overrides_runpath=no
18671
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18672
 
      ;;
18673
 
  esac
18674
 
  ;;
18675
 
 
18676
 
sysv4*MP*)
18677
 
  if test -d /usr/nec ;then
18678
 
    version_type=linux
18679
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18680
 
    soname_spec='$libname${shared_ext}.$major'
18681
 
    shlibpath_var=LD_LIBRARY_PATH
18682
 
  fi
18683
 
  ;;
18684
 
 
18685
 
uts4*)
18686
 
  version_type=linux
18687
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688
 
  soname_spec='${libname}${release}${shared_ext}$major'
18689
 
  shlibpath_var=LD_LIBRARY_PATH
18690
 
  ;;
18691
 
 
18692
 
*)
18693
 
  dynamic_linker=no
18694
 
  ;;
18695
 
esac
18696
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18697
 
echo "${ECHO_T}$dynamic_linker" >&6
18698
 
test "$dynamic_linker" = no && can_build_shared=no
18699
 
 
18700
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18701
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18702
 
hardcode_action_GCJ=
18703
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18704
 
   test -n "$runpath_var_GCJ" || \
18705
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18706
 
 
18707
 
  # We can hardcode non-existant directories.
18708
 
  if test "$hardcode_direct_GCJ" != no &&
18709
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18710
 
     # have to relink, otherwise we might link with an installed library
18711
 
     # when we should be linking with a yet-to-be-installed one
18712
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18713
 
     test "$hardcode_minus_L_GCJ" != no; then
18714
 
    # Linking always hardcodes the temporary library directory.
18715
 
    hardcode_action_GCJ=relink
18716
 
  else
18717
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18718
 
    hardcode_action_GCJ=immediate
18719
 
  fi
18720
 
else
18721
 
  # We cannot hardcode anything, or else we can only hardcode existing
18722
 
  # directories.
18723
 
  hardcode_action_GCJ=unsupported
18724
 
fi
18725
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18726
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18727
 
 
18728
 
if test "$hardcode_action_GCJ" = relink; then
18729
 
  # Fast installation is not supported
18730
 
  enable_fast_install=no
18731
 
elif test "$shlibpath_overrides_runpath" = yes ||
18732
 
     test "$enable_shared" = no; then
18733
 
  # Fast installation is not necessary
18734
 
  enable_fast_install=needless
18735
 
fi
18736
 
 
18737
 
striplib=
18738
 
old_striplib=
18739
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18740
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18741
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18742
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18743
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18744
 
  echo "$as_me:$LINENO: result: yes" >&5
18745
 
echo "${ECHO_T}yes" >&6
18746
 
else
18747
 
# FIXME - insert some real tests, host_os isn't really good enough
18748
 
  case $host_os in
18749
 
   darwin*)
18750
 
       if test -n "$STRIP" ; then
18751
 
         striplib="$STRIP -x"
18752
 
         echo "$as_me:$LINENO: result: yes" >&5
18753
 
echo "${ECHO_T}yes" >&6
18754
 
       else
18755
 
  echo "$as_me:$LINENO: result: no" >&5
18756
 
echo "${ECHO_T}no" >&6
18757
 
fi
18758
 
       ;;
18759
 
   *)
18760
 
  echo "$as_me:$LINENO: result: no" >&5
18761
 
echo "${ECHO_T}no" >&6
18762
 
    ;;
18763
 
  esac
18764
 
fi
18765
 
 
18766
 
if test "x$enable_dlopen" != xyes; then
18767
 
  enable_dlopen=unknown
18768
 
  enable_dlopen_self=unknown
18769
 
  enable_dlopen_self_static=unknown
18770
 
else
18771
 
  lt_cv_dlopen=no
18772
 
  lt_cv_dlopen_libs=
18773
 
 
18774
 
  case $host_os in
18775
 
  beos*)
18776
 
    lt_cv_dlopen="load_add_on"
18777
 
    lt_cv_dlopen_libs=
18778
 
    lt_cv_dlopen_self=yes
18779
 
    ;;
18780
 
 
18781
 
  mingw* | pw32*)
18782
 
    lt_cv_dlopen="LoadLibrary"
18783
 
    lt_cv_dlopen_libs=
18784
 
   ;;
18785
 
 
18786
 
  cygwin*)
18787
 
    lt_cv_dlopen="dlopen"
18788
 
    lt_cv_dlopen_libs=
18789
 
   ;;
18790
 
 
18791
 
  darwin*)
18792
 
  # if libdl is installed we need to link against it
18793
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18794
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18795
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18796
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18797
 
else
18798
 
  ac_check_lib_save_LIBS=$LIBS
18799
 
LIBS="-ldl  $LIBS"
18800
 
cat >conftest.$ac_ext <<_ACEOF
18801
 
/* confdefs.h.  */
18802
 
_ACEOF
18803
 
cat confdefs.h >>conftest.$ac_ext
18804
 
cat >>conftest.$ac_ext <<_ACEOF
18805
 
/* end confdefs.h.  */
18806
 
 
18807
 
/* Override any gcc2 internal prototype to avoid an error.  */
18808
 
#ifdef __cplusplus
18809
 
extern "C"
18810
 
#endif
18811
 
/* We use char because int might match the return type of a gcc2
18812
 
   builtin and then its argument prototype would still apply.  */
18813
 
char dlopen ();
18814
 
int
18815
 
main ()
18816
 
{
18817
 
dlopen ();
18818
 
  ;
18819
 
  return 0;
18820
 
}
18821
 
_ACEOF
18822
 
rm -f conftest.$ac_objext conftest$ac_exeext
18823
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18824
 
  (eval $ac_link) 2>conftest.er1
18825
 
  ac_status=$?
18826
 
  grep -v '^ *+' conftest.er1 >conftest.err
18827
 
  rm -f conftest.er1
18828
 
  cat conftest.err >&5
18829
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830
 
  (exit $ac_status); } &&
18831
 
         { ac_try='test -z "$ac_c_werror_flag"
18832
 
                         || test ! -s conftest.err'
18833
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18834
 
  (eval $ac_try) 2>&5
18835
 
  ac_status=$?
18836
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837
 
  (exit $ac_status); }; } &&
18838
 
         { ac_try='test -s conftest$ac_exeext'
18839
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840
 
  (eval $ac_try) 2>&5
18841
 
  ac_status=$?
18842
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843
 
  (exit $ac_status); }; }; then
18844
 
  ac_cv_lib_dl_dlopen=yes
18845
 
else
18846
 
  echo "$as_me: failed program was:" >&5
18847
 
sed 's/^/| /' conftest.$ac_ext >&5
18848
 
 
18849
 
ac_cv_lib_dl_dlopen=no
18850
 
fi
18851
 
rm -f conftest.err conftest.$ac_objext \
18852
 
      conftest$ac_exeext conftest.$ac_ext
18853
 
LIBS=$ac_check_lib_save_LIBS
18854
 
fi
18855
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18856
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18857
 
if test $ac_cv_lib_dl_dlopen = yes; then
18858
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18859
 
else
18860
 
  
18861
 
    lt_cv_dlopen="dyld"
18862
 
    lt_cv_dlopen_libs=
18863
 
    lt_cv_dlopen_self=yes
18864
 
    
18865
 
fi
18866
 
 
18867
 
   ;;
18868
 
 
18869
 
  *)
18870
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
18871
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18872
 
if test "${ac_cv_func_shl_load+set}" = set; then
18873
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18874
 
else
18875
 
  cat >conftest.$ac_ext <<_ACEOF
18876
 
/* confdefs.h.  */
18877
 
_ACEOF
18878
 
cat confdefs.h >>conftest.$ac_ext
18879
 
cat >>conftest.$ac_ext <<_ACEOF
18880
 
/* end confdefs.h.  */
18881
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18882
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18883
 
#define shl_load innocuous_shl_load
18884
 
 
18885
 
/* System header to define __stub macros and hopefully few prototypes,
18886
 
    which can conflict with char shl_load (); below.
18887
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18888
 
    <limits.h> exists even on freestanding compilers.  */
18889
 
 
18890
 
#ifdef __STDC__
18891
 
# include <limits.h>
18892
 
#else
18893
 
# include <assert.h>
18894
 
#endif
18895
 
 
18896
 
#undef shl_load
18897
 
 
18898
 
/* Override any gcc2 internal prototype to avoid an error.  */
18899
 
#ifdef __cplusplus
18900
 
extern "C"
18901
 
{
18902
 
#endif
18903
 
/* We use char because int might match the return type of a gcc2
18904
 
   builtin and then its argument prototype would still apply.  */
18905
 
char shl_load ();
18906
 
/* The GNU C library defines this for functions which it implements
18907
 
    to always fail with ENOSYS.  Some functions are actually named
18908
 
    something starting with __ and the normal name is an alias.  */
18909
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18910
 
choke me
18911
 
#else
18912
 
char (*f) () = shl_load;
18913
 
#endif
18914
 
#ifdef __cplusplus
18915
 
}
18916
 
#endif
18917
 
 
18918
 
int
18919
 
main ()
18920
 
{
18921
 
return f != shl_load;
18922
 
  ;
18923
 
  return 0;
18924
 
}
18925
 
_ACEOF
18926
 
rm -f conftest.$ac_objext conftest$ac_exeext
18927
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18928
 
  (eval $ac_link) 2>conftest.er1
18929
 
  ac_status=$?
18930
 
  grep -v '^ *+' conftest.er1 >conftest.err
18931
 
  rm -f conftest.er1
18932
 
  cat conftest.err >&5
18933
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934
 
  (exit $ac_status); } &&
18935
 
         { ac_try='test -z "$ac_c_werror_flag"
18936
 
                         || test ! -s conftest.err'
18937
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938
 
  (eval $ac_try) 2>&5
18939
 
  ac_status=$?
18940
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941
 
  (exit $ac_status); }; } &&
18942
 
         { ac_try='test -s conftest$ac_exeext'
18943
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944
 
  (eval $ac_try) 2>&5
18945
 
  ac_status=$?
18946
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947
 
  (exit $ac_status); }; }; then
18948
 
  ac_cv_func_shl_load=yes
18949
 
else
18950
 
  echo "$as_me: failed program was:" >&5
18951
 
sed 's/^/| /' conftest.$ac_ext >&5
18952
 
 
18953
 
ac_cv_func_shl_load=no
18954
 
fi
18955
 
rm -f conftest.err conftest.$ac_objext \
18956
 
      conftest$ac_exeext conftest.$ac_ext
18957
 
fi
18958
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18959
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18960
 
if test $ac_cv_func_shl_load = yes; then
18961
 
  lt_cv_dlopen="shl_load"
18962
 
else
18963
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18964
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18965
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18966
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18967
 
else
18968
 
  ac_check_lib_save_LIBS=$LIBS
18969
 
LIBS="-ldld  $LIBS"
18970
 
cat >conftest.$ac_ext <<_ACEOF
18971
 
/* confdefs.h.  */
18972
 
_ACEOF
18973
 
cat confdefs.h >>conftest.$ac_ext
18974
 
cat >>conftest.$ac_ext <<_ACEOF
18975
 
/* end confdefs.h.  */
18976
 
 
18977
 
/* Override any gcc2 internal prototype to avoid an error.  */
18978
 
#ifdef __cplusplus
18979
 
extern "C"
18980
 
#endif
18981
 
/* We use char because int might match the return type of a gcc2
18982
 
   builtin and then its argument prototype would still apply.  */
18983
 
char shl_load ();
18984
 
int
18985
 
main ()
18986
 
{
18987
 
shl_load ();
18988
 
  ;
18989
 
  return 0;
18990
 
}
18991
 
_ACEOF
18992
 
rm -f conftest.$ac_objext conftest$ac_exeext
18993
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18994
 
  (eval $ac_link) 2>conftest.er1
18995
 
  ac_status=$?
18996
 
  grep -v '^ *+' conftest.er1 >conftest.err
18997
 
  rm -f conftest.er1
18998
 
  cat conftest.err >&5
18999
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000
 
  (exit $ac_status); } &&
19001
 
         { ac_try='test -z "$ac_c_werror_flag"
19002
 
                         || test ! -s conftest.err'
19003
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004
 
  (eval $ac_try) 2>&5
19005
 
  ac_status=$?
19006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007
 
  (exit $ac_status); }; } &&
19008
 
         { ac_try='test -s conftest$ac_exeext'
19009
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010
 
  (eval $ac_try) 2>&5
19011
 
  ac_status=$?
19012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013
 
  (exit $ac_status); }; }; then
19014
 
  ac_cv_lib_dld_shl_load=yes
19015
 
else
19016
 
  echo "$as_me: failed program was:" >&5
19017
 
sed 's/^/| /' conftest.$ac_ext >&5
19018
 
 
19019
 
ac_cv_lib_dld_shl_load=no
19020
 
fi
19021
 
rm -f conftest.err conftest.$ac_objext \
19022
 
      conftest$ac_exeext conftest.$ac_ext
19023
 
LIBS=$ac_check_lib_save_LIBS
19024
 
fi
19025
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19026
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19027
 
if test $ac_cv_lib_dld_shl_load = yes; then
19028
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19029
 
else
19030
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
19031
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19032
 
if test "${ac_cv_func_dlopen+set}" = set; then
19033
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19034
 
else
19035
 
  cat >conftest.$ac_ext <<_ACEOF
19036
 
/* confdefs.h.  */
19037
 
_ACEOF
19038
 
cat confdefs.h >>conftest.$ac_ext
19039
 
cat >>conftest.$ac_ext <<_ACEOF
19040
 
/* end confdefs.h.  */
19041
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19042
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19043
 
#define dlopen innocuous_dlopen
19044
 
 
19045
 
/* System header to define __stub macros and hopefully few prototypes,
19046
 
    which can conflict with char dlopen (); below.
19047
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19048
 
    <limits.h> exists even on freestanding compilers.  */
19049
 
 
19050
 
#ifdef __STDC__
19051
 
# include <limits.h>
19052
 
#else
19053
 
# include <assert.h>
19054
 
#endif
19055
 
 
19056
 
#undef dlopen
19057
 
 
19058
 
/* Override any gcc2 internal prototype to avoid an error.  */
19059
 
#ifdef __cplusplus
19060
 
extern "C"
19061
 
{
19062
 
#endif
19063
 
/* We use char because int might match the return type of a gcc2
19064
 
   builtin and then its argument prototype would still apply.  */
19065
 
char dlopen ();
19066
 
/* The GNU C library defines this for functions which it implements
19067
 
    to always fail with ENOSYS.  Some functions are actually named
19068
 
    something starting with __ and the normal name is an alias.  */
19069
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19070
 
choke me
19071
 
#else
19072
 
char (*f) () = dlopen;
19073
 
#endif
19074
 
#ifdef __cplusplus
19075
 
}
19076
 
#endif
19077
 
 
19078
 
int
19079
 
main ()
19080
 
{
19081
 
return f != dlopen;
19082
 
  ;
19083
 
  return 0;
19084
 
}
19085
 
_ACEOF
19086
 
rm -f conftest.$ac_objext conftest$ac_exeext
19087
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19088
 
  (eval $ac_link) 2>conftest.er1
19089
 
  ac_status=$?
19090
 
  grep -v '^ *+' conftest.er1 >conftest.err
19091
 
  rm -f conftest.er1
19092
 
  cat conftest.err >&5
19093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094
 
  (exit $ac_status); } &&
19095
 
         { ac_try='test -z "$ac_c_werror_flag"
19096
 
                         || test ! -s conftest.err'
19097
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098
 
  (eval $ac_try) 2>&5
19099
 
  ac_status=$?
19100
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101
 
  (exit $ac_status); }; } &&
19102
 
         { ac_try='test -s conftest$ac_exeext'
19103
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104
 
  (eval $ac_try) 2>&5
19105
 
  ac_status=$?
19106
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107
 
  (exit $ac_status); }; }; then
19108
 
  ac_cv_func_dlopen=yes
19109
 
else
19110
 
  echo "$as_me: failed program was:" >&5
19111
 
sed 's/^/| /' conftest.$ac_ext >&5
19112
 
 
19113
 
ac_cv_func_dlopen=no
19114
 
fi
19115
 
rm -f conftest.err conftest.$ac_objext \
19116
 
      conftest$ac_exeext conftest.$ac_ext
19117
 
fi
19118
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19119
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19120
 
if test $ac_cv_func_dlopen = yes; then
19121
 
  lt_cv_dlopen="dlopen"
19122
 
else
19123
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19124
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19125
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19126
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19127
 
else
19128
 
  ac_check_lib_save_LIBS=$LIBS
19129
 
LIBS="-ldl  $LIBS"
19130
 
cat >conftest.$ac_ext <<_ACEOF
19131
 
/* confdefs.h.  */
19132
 
_ACEOF
19133
 
cat confdefs.h >>conftest.$ac_ext
19134
 
cat >>conftest.$ac_ext <<_ACEOF
19135
 
/* end confdefs.h.  */
19136
 
 
19137
 
/* Override any gcc2 internal prototype to avoid an error.  */
19138
 
#ifdef __cplusplus
19139
 
extern "C"
19140
 
#endif
19141
 
/* We use char because int might match the return type of a gcc2
19142
 
   builtin and then its argument prototype would still apply.  */
19143
 
char dlopen ();
19144
 
int
19145
 
main ()
19146
 
{
19147
 
dlopen ();
19148
 
  ;
19149
 
  return 0;
19150
 
}
19151
 
_ACEOF
19152
 
rm -f conftest.$ac_objext conftest$ac_exeext
19153
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19154
 
  (eval $ac_link) 2>conftest.er1
19155
 
  ac_status=$?
19156
 
  grep -v '^ *+' conftest.er1 >conftest.err
19157
 
  rm -f conftest.er1
19158
 
  cat conftest.err >&5
19159
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160
 
  (exit $ac_status); } &&
19161
 
         { ac_try='test -z "$ac_c_werror_flag"
19162
 
                         || test ! -s conftest.err'
19163
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164
 
  (eval $ac_try) 2>&5
19165
 
  ac_status=$?
19166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167
 
  (exit $ac_status); }; } &&
19168
 
         { ac_try='test -s conftest$ac_exeext'
19169
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170
 
  (eval $ac_try) 2>&5
19171
 
  ac_status=$?
19172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173
 
  (exit $ac_status); }; }; then
19174
 
  ac_cv_lib_dl_dlopen=yes
19175
 
else
19176
 
  echo "$as_me: failed program was:" >&5
19177
 
sed 's/^/| /' conftest.$ac_ext >&5
19178
 
 
19179
 
ac_cv_lib_dl_dlopen=no
19180
 
fi
19181
 
rm -f conftest.err conftest.$ac_objext \
19182
 
      conftest$ac_exeext conftest.$ac_ext
19183
 
LIBS=$ac_check_lib_save_LIBS
19184
 
fi
19185
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19186
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19187
 
if test $ac_cv_lib_dl_dlopen = yes; then
19188
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19189
 
else
19190
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19191
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19192
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19193
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19194
 
else
19195
 
  ac_check_lib_save_LIBS=$LIBS
19196
 
LIBS="-lsvld  $LIBS"
19197
 
cat >conftest.$ac_ext <<_ACEOF
19198
 
/* confdefs.h.  */
19199
 
_ACEOF
19200
 
cat confdefs.h >>conftest.$ac_ext
19201
 
cat >>conftest.$ac_ext <<_ACEOF
19202
 
/* end confdefs.h.  */
19203
 
 
19204
 
/* Override any gcc2 internal prototype to avoid an error.  */
19205
 
#ifdef __cplusplus
19206
 
extern "C"
19207
 
#endif
19208
 
/* We use char because int might match the return type of a gcc2
19209
 
   builtin and then its argument prototype would still apply.  */
19210
 
char dlopen ();
19211
 
int
19212
 
main ()
19213
 
{
19214
 
dlopen ();
19215
 
  ;
19216
 
  return 0;
19217
 
}
19218
 
_ACEOF
19219
 
rm -f conftest.$ac_objext conftest$ac_exeext
19220
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19221
 
  (eval $ac_link) 2>conftest.er1
19222
 
  ac_status=$?
19223
 
  grep -v '^ *+' conftest.er1 >conftest.err
19224
 
  rm -f conftest.er1
19225
 
  cat conftest.err >&5
19226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227
 
  (exit $ac_status); } &&
19228
 
         { ac_try='test -z "$ac_c_werror_flag"
19229
 
                         || test ! -s conftest.err'
19230
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231
 
  (eval $ac_try) 2>&5
19232
 
  ac_status=$?
19233
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234
 
  (exit $ac_status); }; } &&
19235
 
         { ac_try='test -s conftest$ac_exeext'
19236
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237
 
  (eval $ac_try) 2>&5
19238
 
  ac_status=$?
19239
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240
 
  (exit $ac_status); }; }; then
19241
 
  ac_cv_lib_svld_dlopen=yes
19242
 
else
19243
 
  echo "$as_me: failed program was:" >&5
19244
 
sed 's/^/| /' conftest.$ac_ext >&5
19245
 
 
19246
 
ac_cv_lib_svld_dlopen=no
19247
 
fi
19248
 
rm -f conftest.err conftest.$ac_objext \
19249
 
      conftest$ac_exeext conftest.$ac_ext
19250
 
LIBS=$ac_check_lib_save_LIBS
19251
 
fi
19252
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19253
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19254
 
if test $ac_cv_lib_svld_dlopen = yes; then
19255
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19256
 
else
19257
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19258
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19259
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19260
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19261
 
else
19262
 
  ac_check_lib_save_LIBS=$LIBS
19263
 
LIBS="-ldld  $LIBS"
19264
 
cat >conftest.$ac_ext <<_ACEOF
19265
 
/* confdefs.h.  */
19266
 
_ACEOF
19267
 
cat confdefs.h >>conftest.$ac_ext
19268
 
cat >>conftest.$ac_ext <<_ACEOF
19269
 
/* end confdefs.h.  */
19270
 
 
19271
 
/* Override any gcc2 internal prototype to avoid an error.  */
19272
 
#ifdef __cplusplus
19273
 
extern "C"
19274
 
#endif
19275
 
/* We use char because int might match the return type of a gcc2
19276
 
   builtin and then its argument prototype would still apply.  */
19277
 
char dld_link ();
19278
 
int
19279
 
main ()
19280
 
{
19281
 
dld_link ();
19282
 
  ;
19283
 
  return 0;
19284
 
}
19285
 
_ACEOF
19286
 
rm -f conftest.$ac_objext conftest$ac_exeext
19287
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19288
 
  (eval $ac_link) 2>conftest.er1
19289
 
  ac_status=$?
19290
 
  grep -v '^ *+' conftest.er1 >conftest.err
19291
 
  rm -f conftest.er1
19292
 
  cat conftest.err >&5
19293
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294
 
  (exit $ac_status); } &&
19295
 
         { ac_try='test -z "$ac_c_werror_flag"
19296
 
                         || test ! -s conftest.err'
19297
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298
 
  (eval $ac_try) 2>&5
19299
 
  ac_status=$?
19300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301
 
  (exit $ac_status); }; } &&
19302
 
         { ac_try='test -s conftest$ac_exeext'
19303
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304
 
  (eval $ac_try) 2>&5
19305
 
  ac_status=$?
19306
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307
 
  (exit $ac_status); }; }; then
19308
 
  ac_cv_lib_dld_dld_link=yes
19309
 
else
19310
 
  echo "$as_me: failed program was:" >&5
19311
 
sed 's/^/| /' conftest.$ac_ext >&5
19312
 
 
19313
 
ac_cv_lib_dld_dld_link=no
19314
 
fi
19315
 
rm -f conftest.err conftest.$ac_objext \
19316
 
      conftest$ac_exeext conftest.$ac_ext
19317
 
LIBS=$ac_check_lib_save_LIBS
19318
 
fi
19319
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19320
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19321
 
if test $ac_cv_lib_dld_dld_link = yes; then
19322
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19323
 
fi
19324
 
 
19325
 
              
19326
 
fi
19327
 
 
19328
 
            
19329
 
fi
19330
 
 
19331
 
          
19332
 
fi
19333
 
 
19334
 
        
19335
 
fi
19336
 
 
19337
 
      
19338
 
fi
19339
 
 
19340
 
    ;;
19341
 
  esac
19342
 
 
19343
 
  if test "x$lt_cv_dlopen" != xno; then
19344
 
    enable_dlopen=yes
19345
 
  else
19346
 
    enable_dlopen=no
19347
 
  fi
19348
 
 
19349
 
  case $lt_cv_dlopen in
19350
 
  dlopen)
19351
 
    save_CPPFLAGS="$CPPFLAGS"
19352
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19353
 
 
19354
 
    save_LDFLAGS="$LDFLAGS"
19355
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19356
 
 
19357
 
    save_LIBS="$LIBS"
19358
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
19359
 
 
19360
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19361
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19362
 
if test "${lt_cv_dlopen_self+set}" = set; then
19363
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19364
 
else
19365
 
          if test "$cross_compiling" = yes; then :
19366
 
  lt_cv_dlopen_self=cross
19367
 
else
19368
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19369
 
  lt_status=$lt_dlunknown
19370
 
  cat > conftest.$ac_ext <<EOF
19371
 
#line __oline__ "configure"
19372
 
#include "confdefs.h"
19373
 
 
19374
 
#if HAVE_DLFCN_H
19375
 
#include <dlfcn.h>
19376
 
#endif
19377
 
 
19378
 
#include <stdio.h>
19379
 
 
19380
 
#ifdef RTLD_GLOBAL
19381
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19382
 
#else
19383
 
#  ifdef DL_GLOBAL
19384
 
#    define LT_DLGLOBAL         DL_GLOBAL
19385
 
#  else
19386
 
#    define LT_DLGLOBAL         0
19387
 
#  endif
19388
 
#endif
19389
 
 
19390
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19391
 
   find out it does not work in some platform. */
19392
 
#ifndef LT_DLLAZY_OR_NOW
19393
 
#  ifdef RTLD_LAZY
19394
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19395
 
#  else
19396
 
#    ifdef DL_LAZY
19397
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19398
 
#    else
19399
 
#      ifdef RTLD_NOW
19400
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19401
 
#      else
19402
 
#        ifdef DL_NOW
19403
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19404
 
#        else
19405
 
#          define LT_DLLAZY_OR_NOW      0
19406
 
#        endif
19407
 
#      endif
19408
 
#    endif
19409
 
#  endif
19410
 
#endif
19411
 
 
19412
 
#ifdef __cplusplus
19413
 
extern "C" void exit (int);
19414
 
#endif
19415
 
 
19416
 
void fnord() { int i=42;}
19417
 
int main ()
19418
 
{
19419
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19420
 
  int status = $lt_dlunknown;
19421
 
 
19422
 
  if (self)
19423
 
    {
19424
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19425
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19426
 
      /* dlclose (self); */
19427
 
    }
19428
 
 
19429
 
    exit (status);
19430
 
}
19431
 
EOF
19432
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19433
 
  (eval $ac_link) 2>&5
19434
 
  ac_status=$?
19435
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19437
 
    (./conftest; exit; ) 2>/dev/null
19438
 
    lt_status=$?
19439
 
    case x$lt_status in
19440
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19441
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19442
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19443
 
    esac
19444
 
  else :
19445
 
    # compilation failed
19446
 
    lt_cv_dlopen_self=no
19447
 
  fi
19448
 
fi
19449
 
rm -fr conftest*
19450
 
 
19451
 
    
19452
 
fi
19453
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19454
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19455
 
 
19456
 
    if test "x$lt_cv_dlopen_self" = xyes; then
19457
 
      LDFLAGS="$LDFLAGS $link_static_flag"
19458
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19459
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19460
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
19461
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19462
 
else
19463
 
          if test "$cross_compiling" = yes; then :
19464
 
  lt_cv_dlopen_self_static=cross
19465
 
else
19466
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19467
 
  lt_status=$lt_dlunknown
19468
 
  cat > conftest.$ac_ext <<EOF
19469
 
#line __oline__ "configure"
19470
 
#include "confdefs.h"
19471
 
 
19472
 
#if HAVE_DLFCN_H
19473
 
#include <dlfcn.h>
19474
 
#endif
19475
 
 
19476
 
#include <stdio.h>
19477
 
 
19478
 
#ifdef RTLD_GLOBAL
19479
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19480
 
#else
19481
 
#  ifdef DL_GLOBAL
19482
 
#    define LT_DLGLOBAL         DL_GLOBAL
19483
 
#  else
19484
 
#    define LT_DLGLOBAL         0
19485
 
#  endif
19486
 
#endif
19487
 
 
19488
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19489
 
   find out it does not work in some platform. */
19490
 
#ifndef LT_DLLAZY_OR_NOW
19491
 
#  ifdef RTLD_LAZY
19492
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19493
 
#  else
19494
 
#    ifdef DL_LAZY
19495
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19496
 
#    else
19497
 
#      ifdef RTLD_NOW
19498
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19499
 
#      else
19500
 
#        ifdef DL_NOW
19501
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19502
 
#        else
19503
 
#          define LT_DLLAZY_OR_NOW      0
19504
 
#        endif
19505
 
#      endif
19506
 
#    endif
19507
 
#  endif
19508
 
#endif
19509
 
 
19510
 
#ifdef __cplusplus
19511
 
extern "C" void exit (int);
19512
 
#endif
19513
 
 
19514
 
void fnord() { int i=42;}
19515
 
int main ()
19516
 
{
19517
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19518
 
  int status = $lt_dlunknown;
19519
 
 
19520
 
  if (self)
19521
 
    {
19522
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19523
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19524
 
      /* dlclose (self); */
19525
 
    }
19526
 
 
19527
 
    exit (status);
19528
 
}
19529
 
EOF
19530
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19531
 
  (eval $ac_link) 2>&5
19532
 
  ac_status=$?
19533
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19535
 
    (./conftest; exit; ) 2>/dev/null
19536
 
    lt_status=$?
19537
 
    case x$lt_status in
19538
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19539
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19540
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19541
 
    esac
19542
 
  else :
19543
 
    # compilation failed
19544
 
    lt_cv_dlopen_self_static=no
19545
 
  fi
19546
 
fi
19547
 
rm -fr conftest*
19548
 
 
19549
 
      
19550
 
fi
19551
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19552
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19553
 
    fi
19554
 
 
19555
 
    CPPFLAGS="$save_CPPFLAGS"
19556
 
    LDFLAGS="$save_LDFLAGS"
19557
 
    LIBS="$save_LIBS"
19558
 
    ;;
19559
 
  esac
19560
 
 
19561
 
  case $lt_cv_dlopen_self in
19562
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19563
 
  *) enable_dlopen_self=unknown ;;
19564
 
  esac
19565
 
 
19566
 
  case $lt_cv_dlopen_self_static in
19567
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19568
 
  *) enable_dlopen_self_static=unknown ;;
19569
 
  esac
19570
 
fi
19571
 
 
19572
 
 
19573
 
# The else clause should only fire when bootstrapping the
19574
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19575
 
# with your package, and you will get complaints that there are
19576
 
# no rules to generate ltmain.sh.
19577
 
if test -f "$ltmain"; then
19578
 
  # See if we are running on zsh, and set the options which allow our commands through
19579
 
  # without removal of \ escapes.
19580
 
  if test -n "${ZSH_VERSION+set}" ; then
19581
 
    setopt NO_GLOB_SUBST
19582
 
  fi
19583
 
  # Now quote all the things that may contain metacharacters while being
19584
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19585
 
  # variables and quote the copies for generation of the libtool script.
19586
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
19587
 
    SED SHELL STRIP \
19588
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19589
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19590
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19591
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19592
 
    lt_cv_sys_global_symbol_to_c_name_address \
19593
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19594
 
    old_postinstall_cmds old_postuninstall_cmds \
19595
 
    compiler_GCJ \
19596
 
    CC_GCJ \
19597
 
    LD_GCJ \
19598
 
    lt_prog_compiler_wl_GCJ \
19599
 
    lt_prog_compiler_pic_GCJ \
19600
 
    lt_prog_compiler_static_GCJ \
19601
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19602
 
    export_dynamic_flag_spec_GCJ \
19603
 
    thread_safe_flag_spec_GCJ \
19604
 
    whole_archive_flag_spec_GCJ \
19605
 
    enable_shared_with_static_runtimes_GCJ \
19606
 
    old_archive_cmds_GCJ \
19607
 
    old_archive_from_new_cmds_GCJ \
19608
 
    predep_objects_GCJ \
19609
 
    postdep_objects_GCJ \
19610
 
    predeps_GCJ \
19611
 
    postdeps_GCJ \
19612
 
    compiler_lib_search_path_GCJ \
19613
 
    archive_cmds_GCJ \
19614
 
    archive_expsym_cmds_GCJ \
19615
 
    postinstall_cmds_GCJ \
19616
 
    postuninstall_cmds_GCJ \
19617
 
    old_archive_from_expsyms_cmds_GCJ \
19618
 
    allow_undefined_flag_GCJ \
19619
 
    no_undefined_flag_GCJ \
19620
 
    export_symbols_cmds_GCJ \
19621
 
    hardcode_libdir_flag_spec_GCJ \
19622
 
    hardcode_libdir_flag_spec_ld_GCJ \
19623
 
    hardcode_libdir_separator_GCJ \
19624
 
    hardcode_automatic_GCJ \
19625
 
    module_cmds_GCJ \
19626
 
    module_expsym_cmds_GCJ \
19627
 
    lt_cv_prog_compiler_c_o_GCJ \
19628
 
    exclude_expsyms_GCJ \
19629
 
    include_expsyms_GCJ; do
19630
 
 
19631
 
    case $var in
19632
 
    old_archive_cmds_GCJ | \
19633
 
    old_archive_from_new_cmds_GCJ | \
19634
 
    archive_cmds_GCJ | \
19635
 
    archive_expsym_cmds_GCJ | \
19636
 
    module_cmds_GCJ | \
19637
 
    module_expsym_cmds_GCJ | \
19638
 
    old_archive_from_expsyms_cmds_GCJ | \
19639
 
    export_symbols_cmds_GCJ | \
19640
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19641
 
    postinstall_cmds | postuninstall_cmds | \
19642
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19643
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19644
 
      # Double-quote double-evaled strings.
19645
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19646
 
      ;;
19647
 
    *)
19648
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19649
 
      ;;
19650
 
    esac
19651
 
  done
19652
 
 
19653
 
  case $lt_echo in
19654
 
  *'\$0 --fallback-echo"')
19655
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19656
 
    ;;
19657
 
  esac
19658
 
 
19659
 
cfgfile="$ofile"
19660
 
 
19661
 
  cat <<__EOF__ >> "$cfgfile"
19662
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19663
 
 
19664
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19665
 
 
19666
 
# Shell to use when invoking shell scripts.
19667
 
SHELL=$lt_SHELL
19668
 
 
19669
 
# Whether or not to build shared libraries.
19670
 
build_libtool_libs=$enable_shared
19671
 
 
19672
 
# Whether or not to build static libraries.
19673
 
build_old_libs=$enable_static
19674
 
 
19675
 
# Whether or not to add -lc for building shared libraries.
19676
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19677
 
 
19678
 
# Whether or not to disallow shared libs when runtime libs are static
19679
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19680
 
 
19681
 
# Whether or not to optimize for fast installation.
19682
 
fast_install=$enable_fast_install
19683
 
 
19684
 
# The host system.
19685
 
host_alias=$host_alias
19686
 
host=$host
19687
 
host_os=$host_os
19688
 
 
19689
 
# The build system.
19690
 
build_alias=$build_alias
19691
 
build=$build
19692
 
build_os=$build_os
19693
 
 
19694
 
# An echo program that does not interpret backslashes.
19695
 
echo=$lt_echo
19696
 
 
19697
 
# The archiver.
19698
 
AR=$lt_AR
19699
 
AR_FLAGS=$lt_AR_FLAGS
19700
 
 
19701
 
# A C compiler.
19702
 
LTCC=$lt_LTCC
19703
 
 
19704
 
# A language-specific compiler.
19705
 
CC=$lt_compiler_GCJ
19706
 
 
19707
 
# Is the compiler the GNU C compiler?
19708
 
with_gcc=$GCC_GCJ
19709
 
 
19710
 
# An ERE matcher.
19711
 
EGREP=$lt_EGREP
19712
 
 
19713
 
# The linker used to build libraries.
19714
 
LD=$lt_LD_GCJ
19715
 
 
19716
 
# Whether we need hard or soft links.
19717
 
LN_S=$lt_LN_S
19718
 
 
19719
 
# A BSD-compatible nm program.
19720
 
NM=$lt_NM
19721
 
 
19722
 
# A symbol stripping program
19723
 
STRIP=$lt_STRIP
19724
 
 
19725
 
# Used to examine libraries when file_magic_cmd begins "file"
19726
 
MAGIC_CMD=$MAGIC_CMD
19727
 
 
19728
 
# Used on cygwin: DLL creation program.
19729
 
DLLTOOL="$DLLTOOL"
19730
 
 
19731
 
# Used on cygwin: object dumper.
19732
 
OBJDUMP="$OBJDUMP"
19733
 
 
19734
 
# Used on cygwin: assembler.
19735
 
AS=$lt_AS
19736
 
 
19737
 
# The name of the directory that contains temporary libtool files.
19738
 
objdir=$objdir
19739
 
 
19740
 
# How to create reloadable object files.
19741
 
reload_flag=$lt_reload_flag
19742
 
reload_cmds=$lt_reload_cmds
19743
 
 
19744
 
# How to pass a linker flag through the compiler.
19745
 
wl=$lt_lt_prog_compiler_wl_GCJ
19746
 
 
19747
 
# Object file suffix (normally "o").
19748
 
objext="$ac_objext"
19749
 
 
19750
 
# Old archive suffix (normally "a").
19751
 
libext="$libext"
19752
 
 
19753
 
# Shared library suffix (normally ".so").
19754
 
shrext_cmds='$shrext_cmds'
19755
 
 
19756
 
# Executable file suffix (normally "").
19757
 
exeext="$exeext"
19758
 
 
19759
 
# Additional compiler flags for building library objects.
19760
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19761
 
pic_mode=$pic_mode
19762
 
 
19763
 
# What is the maximum length of a command?
19764
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19765
 
 
19766
 
# Does compiler simultaneously support -c and -o options?
19767
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19768
 
 
19769
 
# Must we lock files when doing compilation ?
19770
 
need_locks=$lt_need_locks
19771
 
 
19772
 
# Do we need the lib prefix for modules?
19773
 
need_lib_prefix=$need_lib_prefix
19774
 
 
19775
 
# Do we need a version for libraries?
19776
 
need_version=$need_version
19777
 
 
19778
 
# Whether dlopen is supported.
19779
 
dlopen_support=$enable_dlopen
19780
 
 
19781
 
# Whether dlopen of programs is supported.
19782
 
dlopen_self=$enable_dlopen_self
19783
 
 
19784
 
# Whether dlopen of statically linked programs is supported.
19785
 
dlopen_self_static=$enable_dlopen_self_static
19786
 
 
19787
 
# Compiler flag to prevent dynamic linking.
19788
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19789
 
 
19790
 
# Compiler flag to turn off builtin functions.
19791
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19792
 
 
19793
 
# Compiler flag to allow reflexive dlopens.
19794
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19795
 
 
19796
 
# Compiler flag to generate shared objects directly from archives.
19797
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19798
 
 
19799
 
# Compiler flag to generate thread-safe objects.
19800
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19801
 
 
19802
 
# Library versioning type.
19803
 
version_type=$version_type
19804
 
 
19805
 
# Format of library name prefix.
19806
 
libname_spec=$lt_libname_spec
19807
 
 
19808
 
# List of archive names.  First name is the real one, the rest are links.
19809
 
# The last name is the one that the linker finds with -lNAME.
19810
 
library_names_spec=$lt_library_names_spec
19811
 
 
19812
 
# The coded name of the library, if different from the real name.
19813
 
soname_spec=$lt_soname_spec
19814
 
 
19815
 
# Commands used to build and install an old-style archive.
19816
 
RANLIB=$lt_RANLIB
19817
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19818
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19819
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19820
 
 
19821
 
# Create an old-style archive from a shared archive.
19822
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19823
 
 
19824
 
# Create a temporary old-style archive to link instead of a shared archive.
19825
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19826
 
 
19827
 
# Commands used to build and install a shared archive.
19828
 
archive_cmds=$lt_archive_cmds_GCJ
19829
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19830
 
postinstall_cmds=$lt_postinstall_cmds
19831
 
postuninstall_cmds=$lt_postuninstall_cmds
19832
 
 
19833
 
# Commands used to build a loadable module (assumed same as above if empty)
19834
 
module_cmds=$lt_module_cmds_GCJ
19835
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19836
 
 
19837
 
# Commands to strip libraries.
19838
 
old_striplib=$lt_old_striplib
19839
 
striplib=$lt_striplib
19840
 
 
19841
 
# Dependencies to place before the objects being linked to create a
19842
 
# shared library.
19843
 
predep_objects=$lt_predep_objects_GCJ
19844
 
 
19845
 
# Dependencies to place after the objects being linked to create a
19846
 
# shared library.
19847
 
postdep_objects=$lt_postdep_objects_GCJ
19848
 
 
19849
 
# Dependencies to place before the objects being linked to create a
19850
 
# shared library.
19851
 
predeps=$lt_predeps_GCJ
19852
 
 
19853
 
# Dependencies to place after the objects being linked to create a
19854
 
# shared library.
19855
 
postdeps=$lt_postdeps_GCJ
19856
 
 
19857
 
# The library search path used internally by the compiler when linking
19858
 
# a shared library.
19859
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19860
 
 
19861
 
# Method to check whether dependent libraries are shared objects.
19862
 
deplibs_check_method=$lt_deplibs_check_method
19863
 
 
19864
 
# Command to use when deplibs_check_method == file_magic.
19865
 
file_magic_cmd=$lt_file_magic_cmd
19866
 
 
19867
 
# Flag that allows shared libraries with undefined symbols to be built.
19868
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19869
 
 
19870
 
# Flag that forces no undefined symbols.
19871
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19872
 
 
19873
 
# Commands used to finish a libtool library installation in a directory.
19874
 
finish_cmds=$lt_finish_cmds
19875
 
 
19876
 
# Same as above, but a single script fragment to be evaled but not shown.
19877
 
finish_eval=$lt_finish_eval
19878
 
 
19879
 
# Take the output of nm and produce a listing of raw symbols and C names.
19880
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19881
 
 
19882
 
# Transform the output of nm in a proper C declaration
19883
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19884
 
 
19885
 
# Transform the output of nm in a C name address pair
19886
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19887
 
 
19888
 
# This is the shared library runtime path variable.
19889
 
runpath_var=$runpath_var
19890
 
 
19891
 
# This is the shared library path variable.
19892
 
shlibpath_var=$shlibpath_var
19893
 
 
19894
 
# Is shlibpath searched before the hard-coded library search path?
19895
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19896
 
 
19897
 
# How to hardcode a shared library path into an executable.
19898
 
hardcode_action=$hardcode_action_GCJ
19899
 
 
19900
 
# Whether we should hardcode library paths into libraries.
19901
 
hardcode_into_libs=$hardcode_into_libs
19902
 
 
19903
 
# Flag to hardcode \$libdir into a binary during linking.
19904
 
# This must work even if \$libdir does not exist.
19905
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19906
 
 
19907
 
# If ld is used when linking, flag to hardcode \$libdir into
19908
 
# a binary during linking. This must work even if \$libdir does
19909
 
# not exist.
19910
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19911
 
 
19912
 
# Whether we need a single -rpath flag with a separated argument.
19913
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19914
 
 
19915
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19916
 
# resulting binary.
19917
 
hardcode_direct=$hardcode_direct_GCJ
19918
 
 
19919
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19920
 
# resulting binary.
19921
 
hardcode_minus_L=$hardcode_minus_L_GCJ
19922
 
 
19923
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19924
 
# the resulting binary.
19925
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19926
 
 
19927
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19928
 
# and all subsequent libraries and executables linked against it.
19929
 
hardcode_automatic=$hardcode_automatic_GCJ
19930
 
 
19931
 
# Variables whose values should be saved in libtool wrapper scripts and
19932
 
# restored at relink time.
19933
 
variables_saved_for_relink="$variables_saved_for_relink"
19934
 
 
19935
 
# Whether libtool must link a program against all its dependency libraries.
19936
 
link_all_deplibs=$link_all_deplibs_GCJ
19937
 
 
19938
 
# Compile-time system search path for libraries
19939
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19940
 
 
19941
 
# Run-time system search path for libraries
19942
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19943
 
 
19944
 
# Fix the shell variable \$srcfile for the compiler.
19945
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
19946
 
 
19947
 
# Set to yes if exported symbols are required.
19948
 
always_export_symbols=$always_export_symbols_GCJ
19949
 
 
19950
 
# The commands to list exported symbols.
19951
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19952
 
 
19953
 
# The commands to extract the exported symbol list from a shared archive.
19954
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19955
 
 
19956
 
# Symbols that should not be listed in the preloaded symbols.
19957
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
19958
 
 
19959
 
# Symbols that must always be exported.
19960
 
include_expsyms=$lt_include_expsyms_GCJ
19961
 
 
19962
 
# ### END LIBTOOL TAG CONFIG: $tagname
19963
 
 
19964
 
__EOF__
19965
 
 
19966
 
 
19967
 
else
19968
 
  # If there is no Makefile yet, we rely on a make rule to execute
19969
 
  # `config.status --recheck' to rerun these tests and create the
19970
 
  # libtool script then.
19971
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19972
 
  if test -f "$ltmain_in"; then
19973
 
    test -f Makefile && make "$ltmain"
19974
 
  fi
19975
 
fi
19976
 
 
19977
 
 
19978
 
ac_ext=c
19979
 
ac_cpp='$CPP $CPPFLAGS'
19980
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19983
 
 
19984
 
CC="$lt_save_CC"
19985
 
 
19986
 
        else
19987
 
          tagname=""
19988
 
        fi
19989
 
        ;;
19990
 
 
19991
 
      RC)
19992
 
        
19993
 
 
19994
 
 
19995
 
# Source file extension for RC test sources.
19996
 
ac_ext=rc
19997
 
 
19998
 
# Object file extension for compiled RC test sources.
19999
 
objext=o
20000
 
objext_RC=$objext
20001
 
 
20002
 
# Code to be used in simple compile tests
20003
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20004
 
 
20005
 
# Code to be used in simple link tests
20006
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
20007
 
 
20008
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20009
 
 
20010
 
# If no C compiler was specified, use CC.
20011
 
LTCC=${LTCC-"$CC"}
20012
 
 
20013
 
# Allow CC to be a program name with arguments.
20014
 
compiler=$CC
20015
 
 
20016
 
 
20017
 
# Allow CC to be a program name with arguments.
20018
 
lt_save_CC="$CC"
20019
 
CC=${RC-"windres"}
20020
 
compiler=$CC
20021
 
compiler_RC=$CC
20022
 
lt_cv_prog_compiler_c_o_RC=yes
20023
 
 
20024
 
# The else clause should only fire when bootstrapping the
20025
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
20026
 
# with your package, and you will get complaints that there are
20027
 
# no rules to generate ltmain.sh.
20028
 
if test -f "$ltmain"; then
20029
 
  # See if we are running on zsh, and set the options which allow our commands through
20030
 
  # without removal of \ escapes.
20031
 
  if test -n "${ZSH_VERSION+set}" ; then
20032
 
    setopt NO_GLOB_SUBST
20033
 
  fi
20034
 
  # Now quote all the things that may contain metacharacters while being
20035
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20036
 
  # variables and quote the copies for generation of the libtool script.
20037
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
20038
 
    SED SHELL STRIP \
20039
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20040
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20041
 
    deplibs_check_method reload_flag reload_cmds need_locks \
20042
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20043
 
    lt_cv_sys_global_symbol_to_c_name_address \
20044
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20045
 
    old_postinstall_cmds old_postuninstall_cmds \
20046
 
    compiler_RC \
20047
 
    CC_RC \
20048
 
    LD_RC \
20049
 
    lt_prog_compiler_wl_RC \
20050
 
    lt_prog_compiler_pic_RC \
20051
 
    lt_prog_compiler_static_RC \
20052
 
    lt_prog_compiler_no_builtin_flag_RC \
20053
 
    export_dynamic_flag_spec_RC \
20054
 
    thread_safe_flag_spec_RC \
20055
 
    whole_archive_flag_spec_RC \
20056
 
    enable_shared_with_static_runtimes_RC \
20057
 
    old_archive_cmds_RC \
20058
 
    old_archive_from_new_cmds_RC \
20059
 
    predep_objects_RC \
20060
 
    postdep_objects_RC \
20061
 
    predeps_RC \
20062
 
    postdeps_RC \
20063
 
    compiler_lib_search_path_RC \
20064
 
    archive_cmds_RC \
20065
 
    archive_expsym_cmds_RC \
20066
 
    postinstall_cmds_RC \
20067
 
    postuninstall_cmds_RC \
20068
 
    old_archive_from_expsyms_cmds_RC \
20069
 
    allow_undefined_flag_RC \
20070
 
    no_undefined_flag_RC \
20071
 
    export_symbols_cmds_RC \
20072
 
    hardcode_libdir_flag_spec_RC \
20073
 
    hardcode_libdir_flag_spec_ld_RC \
20074
 
    hardcode_libdir_separator_RC \
20075
 
    hardcode_automatic_RC \
20076
 
    module_cmds_RC \
20077
 
    module_expsym_cmds_RC \
20078
 
    lt_cv_prog_compiler_c_o_RC \
20079
 
    exclude_expsyms_RC \
20080
 
    include_expsyms_RC; do
20081
 
 
20082
 
    case $var in
20083
 
    old_archive_cmds_RC | \
20084
 
    old_archive_from_new_cmds_RC | \
20085
 
    archive_cmds_RC | \
20086
 
    archive_expsym_cmds_RC | \
20087
 
    module_cmds_RC | \
20088
 
    module_expsym_cmds_RC | \
20089
 
    old_archive_from_expsyms_cmds_RC | \
20090
 
    export_symbols_cmds_RC | \
20091
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20092
 
    postinstall_cmds | postuninstall_cmds | \
20093
 
    old_postinstall_cmds | old_postuninstall_cmds | \
20094
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20095
 
      # Double-quote double-evaled strings.
20096
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20097
 
      ;;
20098
 
    *)
20099
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20100
 
      ;;
20101
 
    esac
20102
 
  done
20103
 
 
20104
 
  case $lt_echo in
20105
 
  *'\$0 --fallback-echo"')
20106
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20107
 
    ;;
20108
 
  esac
20109
 
 
20110
 
cfgfile="$ofile"
20111
 
 
20112
 
  cat <<__EOF__ >> "$cfgfile"
20113
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20114
 
 
20115
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20116
 
 
20117
 
# Shell to use when invoking shell scripts.
20118
 
SHELL=$lt_SHELL
20119
 
 
20120
 
# Whether or not to build shared libraries.
20121
 
build_libtool_libs=$enable_shared
20122
 
 
20123
 
# Whether or not to build static libraries.
20124
 
build_old_libs=$enable_static
20125
 
 
20126
 
# Whether or not to add -lc for building shared libraries.
20127
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
20128
 
 
20129
 
# Whether or not to disallow shared libs when runtime libs are static
20130
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20131
 
 
20132
 
# Whether or not to optimize for fast installation.
20133
 
fast_install=$enable_fast_install
20134
 
 
20135
 
# The host system.
20136
 
host_alias=$host_alias
20137
 
host=$host
20138
 
host_os=$host_os
20139
 
 
20140
 
# The build system.
20141
 
build_alias=$build_alias
20142
 
build=$build
20143
 
build_os=$build_os
20144
 
 
20145
 
# An echo program that does not interpret backslashes.
20146
 
echo=$lt_echo
20147
 
 
20148
 
# The archiver.
20149
 
AR=$lt_AR
20150
 
AR_FLAGS=$lt_AR_FLAGS
20151
 
 
20152
 
# A C compiler.
20153
 
LTCC=$lt_LTCC
20154
 
 
20155
 
# A language-specific compiler.
20156
 
CC=$lt_compiler_RC
20157
 
 
20158
 
# Is the compiler the GNU C compiler?
20159
 
with_gcc=$GCC_RC
20160
 
 
20161
 
# An ERE matcher.
20162
 
EGREP=$lt_EGREP
20163
 
 
20164
 
# The linker used to build libraries.
20165
 
LD=$lt_LD_RC
20166
 
 
20167
 
# Whether we need hard or soft links.
20168
 
LN_S=$lt_LN_S
20169
 
 
20170
 
# A BSD-compatible nm program.
20171
 
NM=$lt_NM
20172
 
 
20173
 
# A symbol stripping program
20174
 
STRIP=$lt_STRIP
20175
 
 
20176
 
# Used to examine libraries when file_magic_cmd begins "file"
20177
 
MAGIC_CMD=$MAGIC_CMD
20178
 
 
20179
 
# Used on cygwin: DLL creation program.
20180
 
DLLTOOL="$DLLTOOL"
20181
 
 
20182
 
# Used on cygwin: object dumper.
20183
 
OBJDUMP="$OBJDUMP"
20184
 
 
20185
 
# Used on cygwin: assembler.
20186
 
AS=$lt_AS
20187
 
 
20188
 
# The name of the directory that contains temporary libtool files.
20189
 
objdir=$objdir
20190
 
 
20191
 
# How to create reloadable object files.
20192
 
reload_flag=$lt_reload_flag
20193
 
reload_cmds=$lt_reload_cmds
20194
 
 
20195
 
# How to pass a linker flag through the compiler.
20196
 
wl=$lt_lt_prog_compiler_wl_RC
20197
 
 
20198
 
# Object file suffix (normally "o").
20199
 
objext="$ac_objext"
20200
 
 
20201
 
# Old archive suffix (normally "a").
20202
 
libext="$libext"
20203
 
 
20204
 
# Shared library suffix (normally ".so").
20205
 
shrext_cmds='$shrext_cmds'
20206
 
 
20207
 
# Executable file suffix (normally "").
20208
 
exeext="$exeext"
20209
 
 
20210
 
# Additional compiler flags for building library objects.
20211
 
pic_flag=$lt_lt_prog_compiler_pic_RC
20212
 
pic_mode=$pic_mode
20213
 
 
20214
 
# What is the maximum length of a command?
20215
 
max_cmd_len=$lt_cv_sys_max_cmd_len
20216
 
 
20217
 
# Does compiler simultaneously support -c and -o options?
20218
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20219
 
 
20220
 
# Must we lock files when doing compilation ?
20221
 
need_locks=$lt_need_locks
20222
 
 
20223
 
# Do we need the lib prefix for modules?
20224
 
need_lib_prefix=$need_lib_prefix
20225
 
 
20226
 
# Do we need a version for libraries?
20227
 
need_version=$need_version
20228
 
 
20229
 
# Whether dlopen is supported.
20230
 
dlopen_support=$enable_dlopen
20231
 
 
20232
 
# Whether dlopen of programs is supported.
20233
 
dlopen_self=$enable_dlopen_self
20234
 
 
20235
 
# Whether dlopen of statically linked programs is supported.
20236
 
dlopen_self_static=$enable_dlopen_self_static
20237
 
 
20238
 
# Compiler flag to prevent dynamic linking.
20239
 
link_static_flag=$lt_lt_prog_compiler_static_RC
20240
 
 
20241
 
# Compiler flag to turn off builtin functions.
20242
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20243
 
 
20244
 
# Compiler flag to allow reflexive dlopens.
20245
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20246
 
 
20247
 
# Compiler flag to generate shared objects directly from archives.
20248
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20249
 
 
20250
 
# Compiler flag to generate thread-safe objects.
20251
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20252
 
 
20253
 
# Library versioning type.
20254
 
version_type=$version_type
20255
 
 
20256
 
# Format of library name prefix.
20257
 
libname_spec=$lt_libname_spec
20258
 
 
20259
 
# List of archive names.  First name is the real one, the rest are links.
20260
 
# The last name is the one that the linker finds with -lNAME.
20261
 
library_names_spec=$lt_library_names_spec
20262
 
 
20263
 
# The coded name of the library, if different from the real name.
20264
 
soname_spec=$lt_soname_spec
20265
 
 
20266
 
# Commands used to build and install an old-style archive.
20267
 
RANLIB=$lt_RANLIB
20268
 
old_archive_cmds=$lt_old_archive_cmds_RC
20269
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20270
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20271
 
 
20272
 
# Create an old-style archive from a shared archive.
20273
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20274
 
 
20275
 
# Create a temporary old-style archive to link instead of a shared archive.
20276
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20277
 
 
20278
 
# Commands used to build and install a shared archive.
20279
 
archive_cmds=$lt_archive_cmds_RC
20280
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20281
 
postinstall_cmds=$lt_postinstall_cmds
20282
 
postuninstall_cmds=$lt_postuninstall_cmds
20283
 
 
20284
 
# Commands used to build a loadable module (assumed same as above if empty)
20285
 
module_cmds=$lt_module_cmds_RC
20286
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
20287
 
 
20288
 
# Commands to strip libraries.
20289
 
old_striplib=$lt_old_striplib
20290
 
striplib=$lt_striplib
20291
 
 
20292
 
# Dependencies to place before the objects being linked to create a
20293
 
# shared library.
20294
 
predep_objects=$lt_predep_objects_RC
20295
 
 
20296
 
# Dependencies to place after the objects being linked to create a
20297
 
# shared library.
20298
 
postdep_objects=$lt_postdep_objects_RC
20299
 
 
20300
 
# Dependencies to place before the objects being linked to create a
20301
 
# shared library.
20302
 
predeps=$lt_predeps_RC
20303
 
 
20304
 
# Dependencies to place after the objects being linked to create a
20305
 
# shared library.
20306
 
postdeps=$lt_postdeps_RC
20307
 
 
20308
 
# The library search path used internally by the compiler when linking
20309
 
# a shared library.
20310
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20311
 
 
20312
 
# Method to check whether dependent libraries are shared objects.
20313
 
deplibs_check_method=$lt_deplibs_check_method
20314
 
 
20315
 
# Command to use when deplibs_check_method == file_magic.
20316
 
file_magic_cmd=$lt_file_magic_cmd
20317
 
 
20318
 
# Flag that allows shared libraries with undefined symbols to be built.
20319
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
20320
 
 
20321
 
# Flag that forces no undefined symbols.
20322
 
no_undefined_flag=$lt_no_undefined_flag_RC
20323
 
 
20324
 
# Commands used to finish a libtool library installation in a directory.
20325
 
finish_cmds=$lt_finish_cmds
20326
 
 
20327
 
# Same as above, but a single script fragment to be evaled but not shown.
20328
 
finish_eval=$lt_finish_eval
20329
 
 
20330
 
# Take the output of nm and produce a listing of raw symbols and C names.
20331
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20332
 
 
20333
 
# Transform the output of nm in a proper C declaration
20334
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20335
 
 
20336
 
# Transform the output of nm in a C name address pair
20337
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20338
 
 
20339
 
# This is the shared library runtime path variable.
20340
 
runpath_var=$runpath_var
20341
 
 
20342
 
# This is the shared library path variable.
20343
 
shlibpath_var=$shlibpath_var
20344
 
 
20345
 
# Is shlibpath searched before the hard-coded library search path?
20346
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20347
 
 
20348
 
# How to hardcode a shared library path into an executable.
20349
 
hardcode_action=$hardcode_action_RC
20350
 
 
20351
 
# Whether we should hardcode library paths into libraries.
20352
 
hardcode_into_libs=$hardcode_into_libs
20353
 
 
20354
 
# Flag to hardcode \$libdir into a binary during linking.
20355
 
# This must work even if \$libdir does not exist.
20356
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20357
 
 
20358
 
# If ld is used when linking, flag to hardcode \$libdir into
20359
 
# a binary during linking. This must work even if \$libdir does
20360
 
# not exist.
20361
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20362
 
 
20363
 
# Whether we need a single -rpath flag with a separated argument.
20364
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20365
 
 
20366
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20367
 
# resulting binary.
20368
 
hardcode_direct=$hardcode_direct_RC
20369
 
 
20370
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20371
 
# resulting binary.
20372
 
hardcode_minus_L=$hardcode_minus_L_RC
20373
 
 
20374
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20375
 
# the resulting binary.
20376
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20377
 
 
20378
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20379
 
# and all subsequent libraries and executables linked against it.
20380
 
hardcode_automatic=$hardcode_automatic_RC
20381
 
 
20382
 
# Variables whose values should be saved in libtool wrapper scripts and
20383
 
# restored at relink time.
20384
 
variables_saved_for_relink="$variables_saved_for_relink"
20385
 
 
20386
 
# Whether libtool must link a program against all its dependency libraries.
20387
 
link_all_deplibs=$link_all_deplibs_RC
20388
 
 
20389
 
# Compile-time system search path for libraries
20390
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20391
 
 
20392
 
# Run-time system search path for libraries
20393
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20394
 
 
20395
 
# Fix the shell variable \$srcfile for the compiler.
20396
 
fix_srcfile_path="$fix_srcfile_path_RC"
20397
 
 
20398
 
# Set to yes if exported symbols are required.
20399
 
always_export_symbols=$always_export_symbols_RC
20400
 
 
20401
 
# The commands to list exported symbols.
20402
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
20403
 
 
20404
 
# The commands to extract the exported symbol list from a shared archive.
20405
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20406
 
 
20407
 
# Symbols that should not be listed in the preloaded symbols.
20408
 
exclude_expsyms=$lt_exclude_expsyms_RC
20409
 
 
20410
 
# Symbols that must always be exported.
20411
 
include_expsyms=$lt_include_expsyms_RC
20412
 
 
20413
 
# ### END LIBTOOL TAG CONFIG: $tagname
20414
 
 
20415
 
__EOF__
20416
 
 
20417
 
 
20418
 
else
20419
 
  # If there is no Makefile yet, we rely on a make rule to execute
20420
 
  # `config.status --recheck' to rerun these tests and create the
20421
 
  # libtool script then.
20422
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20423
 
  if test -f "$ltmain_in"; then
20424
 
    test -f Makefile && make "$ltmain"
20425
 
  fi
20426
 
fi
20427
 
 
20428
 
 
20429
 
ac_ext=c
20430
 
ac_cpp='$CPP $CPPFLAGS'
20431
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20432
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20433
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20434
 
 
20435
 
CC="$lt_save_CC"
20436
 
 
20437
 
        ;;
20438
 
 
20439
 
      *)
20440
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20441
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20442
 
   { (exit 1); exit 1; }; }
20443
 
        ;;
20444
 
      esac
20445
 
 
20446
 
      # Append the new tag name to the list of available tags.
20447
 
      if test -n "$tagname" ; then
20448
 
      available_tags="$available_tags $tagname"
20449
 
    fi
20450
 
    fi
20451
 
  done
20452
 
  IFS="$lt_save_ifs"
20453
 
 
20454
 
  # Now substitute the updated list of available tags.
20455
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20456
 
    mv "${ofile}T" "$ofile"
20457
 
    chmod +x "$ofile"
20458
 
  else
20459
 
    rm -f "${ofile}T"
20460
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20461
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20462
 
   { (exit 1); exit 1; }; }
20463
 
  fi
20464
 
fi
20465
 
 
20466
 
 
20467
 
 
20468
 
# This can be used to rebuild libtool when needed
20469
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20470
 
 
20471
 
# Always use our own libtool.
20472
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20473
 
 
20474
 
# Prevent multiple expansion
20475
 
 
20476
 
 
20477
 
 
20478
 
 
20479
 
 
20480
 
 
20481
 
 
20482
 
 
20483
 
 
20484
 
 
20485
 
 
20486
 
  
20487
 
 
20488
 
  
20489
 
 
20490
 
 
20491
 
  
20492
 
       
20493
 
       
20494
 
 
20495
 
 
20496
 
TCSD_DEFAULT_PORT=30003
20497
 
 
20498
 
 
20499
 
 
20500
 
CFLAGS="$CFLAGS -I../include -W -Wall -Werror -Wno-unused-parameter -DTCSD_DEFAULT_PORT=${TCSD_DEFAULT_PORT} -DTSS_VER_MAJOR=${TSS_VER_MAJOR} -DTSS_VER_MINOR=${TSS_VER_MINOR}"
20501
 
#CFLAGS="$CFLAGS -I../include -std=c99 -pedantic -W -Wall"
20502
 
KERNEL_VERSION=`uname -r`
20503
 
 
20504
 
 
20505
 
# When we build the rpms, prefix will be /usr. This'll do some things that make sense,
20506
 
# like put our sbin stuff in /usr/sbin and our library in /usr/lib. It'll do some other
20507
 
# things that don't make sense like put our config file in /usr/etc. So, I'll just hack
20508
 
# it here. If the --prefix option isn't specified during configure, let it all go to
20509
 
# /usr/local, even /usr/local/etc. :-P
20510
 
if test x"${prefix}" == x"/usr"; then
20511
 
        sysconfdir="/etc"
20512
 
        localstatedir="/var"
20513
 
        mandir="/usr/share/man"
20514
 
elif test x"${prefix}" == x"NONE"; then
20515
 
        localstatedir="/usr/local/var"
20516
 
fi
20517
 
 
20518
 
                                                                                                                                                                                              ac_config_files="$ac_config_files dist/tcsd.conf dist/fedora/trousers.spec dist/trousers.spec Makefile src/Makefile src/include/Makefile src/tcs/Makefile src/tddl/Makefile src/tspi/Makefile src/trspi/Makefile src/tcsd/Makefile tools/Makefile man/man8/tcsd.8 man/man5/tcsd.conf.5 dist/Makefile man/Makefile man/man3/Makefile man/man5/Makefile man/man8/Makefile"
20519
 
cat >confcache <<\_ACEOF
20520
 
# This file is a shell script that caches the results of configure
20521
 
# tests run on this system so they can be shared between configure
20522
 
# scripts and configure runs, see configure's option --config-cache.
20523
 
# It is not useful on other systems.  If it contains results you don't
20524
 
# want to keep, you may remove or edit it.
20525
 
#
20526
 
# config.status only pays attention to the cache file if you give it
20527
 
# the --recheck option to rerun configure.
20528
 
#
20529
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20530
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20531
 
# following values.
20532
 
 
20533
 
_ACEOF
20534
 
 
20535
 
# The following way of writing the cache mishandles newlines in values,
20536
 
# but we know of no workaround that is simple, portable, and efficient.
20537
 
# So, don't put newlines in cache variables' values.
20538
 
# Ultrix sh set writes to stderr and can't be redirected directly,
20539
 
# and sets the high bit in the cache file unless we assign to the vars.
20540
 
{
20541
 
  (set) 2>&1 |
20542
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20543
 
    *ac_space=\ *)
20544
 
      # `set' does not quote correctly, so add quotes (double-quote
20545
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
20546
 
      sed -n \
20547
 
        "s/'/'\\\\''/g;
20548
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20549
 
      ;;
20550
 
    *)
20551
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
20552
 
      sed -n \
20553
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20554
 
      ;;
20555
 
    esac;
20556
 
} |
20557
 
  sed '
20558
 
     t clear
20559
 
     : clear
20560
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20561
 
     t end
20562
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20563
 
     : end' >>confcache
20564
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20565
 
  if test -w $cache_file; then
20566
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20567
 
    cat confcache >$cache_file
20568
 
  else
20569
 
    echo "not updating unwritable cache $cache_file"
20570
 
  fi
20571
 
fi
20572
 
rm -f confcache
20573
 
 
20574
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20575
 
# Let make expand exec_prefix.
20576
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20577
 
 
20578
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20579
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20580
 
# trailing colons and then remove the whole line if VPATH becomes empty
20581
 
# (actually we leave an empty line to preserve line numbers).
20582
 
if test "x$srcdir" = x.; then
20583
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
20584
 
s/:*\$(srcdir):*/:/;
20585
 
s/:*\${srcdir}:*/:/;
20586
 
s/:*@srcdir@:*/:/;
20587
 
s/^\([^=]*=[     ]*\):*/\1/;
20588
 
s/:*$//;
20589
 
s/^[^=]*=[       ]*$//;
20590
 
}'
20591
 
fi
20592
 
 
20593
 
# Transform confdefs.h into DEFS.
20594
 
# Protect against shell expansion while executing Makefile rules.
20595
 
# Protect against Makefile macro expansion.
20596
 
#
20597
 
# If the first sed substitution is executed (which looks for macros that
20598
 
# take arguments), then we branch to the quote section.  Otherwise,
20599
 
# look for a macro that doesn't take arguments.
20600
 
cat >confdef2opt.sed <<\_ACEOF
20601
 
t clear
20602
 
: clear
20603
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
20604
 
t quote
20605
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
20606
 
t quote
20607
 
d
20608
 
: quote
20609
 
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
20610
 
s,\[,\\&,g
20611
 
s,\],\\&,g
20612
 
s,\$,$$,g
20613
 
p
20614
 
_ACEOF
20615
 
# We use echo to avoid assuming a particular line-breaking character.
20616
 
# The extra dot is to prevent the shell from consuming trailing
20617
 
# line-breaks from the sub-command output.  A line-break within
20618
 
# single-quotes doesn't work because, if this script is created in a
20619
 
# platform that uses two characters for line-breaks (e.g., DOS), tr
20620
 
# would break.
20621
 
ac_LF_and_DOT=`echo; echo .`
20622
 
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20623
 
rm -f confdef2opt.sed
20624
 
 
20625
 
 
20626
 
ac_libobjs=
20627
 
ac_ltlibobjs=
20628
 
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
20629
 
  # 1. Remove the extension, and $U if already installed.
20630
 
  ac_i=`echo "$ac_i" |
20631
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20632
 
  # 2. Add them.
20633
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20634
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20635
 
done
20636
 
LIB@&t@OBJS=$ac_libobjs
20637
 
 
20638
 
LTLIBOBJS=$ac_ltlibobjs
20639
 
 
20640
 
 
20641
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20642
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20643
 
Usually this means the macro was only invoked conditionally." >&5
20644
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20645
 
Usually this means the macro was only invoked conditionally." >&2;}
20646
 
   { (exit 1); exit 1; }; }
20647
 
fi
20648
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20649
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20650
 
Usually this means the macro was only invoked conditionally." >&5
20651
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20652
 
Usually this means the macro was only invoked conditionally." >&2;}
20653
 
   { (exit 1); exit 1; }; }
20654
 
fi
20655
 
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20656
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20657
 
Usually this means the macro was only invoked conditionally." >&5
20658
 
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20659
 
Usually this means the macro was only invoked conditionally." >&2;}
20660
 
   { (exit 1); exit 1; }; }
20661
 
fi
20662
 
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20663
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20664
 
Usually this means the macro was only invoked conditionally." >&5
20665
 
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20666
 
Usually this means the macro was only invoked conditionally." >&2;}
20667
 
   { (exit 1); exit 1; }; }
20668
 
fi
20669
 
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20670
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20671
 
Usually this means the macro was only invoked conditionally." >&5
20672
 
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20673
 
Usually this means the macro was only invoked conditionally." >&2;}
20674
 
   { (exit 1); exit 1; }; }
20675
 
fi
20676
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20677
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20678
 
Usually this means the macro was only invoked conditionally." >&5
20679
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20680
 
Usually this means the macro was only invoked conditionally." >&2;}
20681
 
   { (exit 1); exit 1; }; }
20682
 
fi
20683
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20684
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20685
 
Usually this means the macro was only invoked conditionally." >&5
20686
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20687
 
Usually this means the macro was only invoked conditionally." >&2;}
20688
 
   { (exit 1); exit 1; }; }
20689
 
fi
20690
 
 
20691
 
: ${CONFIG_STATUS=./config.status}
20692
 
ac_clean_files_save=$ac_clean_files
20693
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20694
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20695
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20696
 
cat >$CONFIG_STATUS <<_ACEOF
20697
 
#! $SHELL
20698
 
# Generated by $as_me.
20699
 
# Run this file to recreate the current configuration.
20700
 
# Compiler output produced by configure, useful for debugging
20701
 
# configure, is in config.log if it exists.
20702
 
 
20703
 
debug=false
20704
 
ac_cs_recheck=false
20705
 
ac_cs_silent=false
20706
 
SHELL=\${CONFIG_SHELL-$SHELL}
20707
 
_ACEOF
20708
 
 
20709
 
cat >>$CONFIG_STATUS <<\_ACEOF
20710
 
## --------------------- ##
20711
 
## M4sh Initialization.  ##
20712
 
## --------------------- ##
20713
 
 
20714
 
# Be Bourne compatible
20715
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20716
 
  emulate sh
20717
 
  NULLCMD=:
20718
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20719
 
  # is contrary to our usage.  Disable this feature.
20720
 
  alias -g '${1+"$@"}'='"$@"'
20721
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20722
 
  set -o posix
20723
 
fi
20724
 
DUALCASE=1; export DUALCASE # for MKS sh
20725
 
 
20726
 
# Support unset when possible.
20727
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20728
 
  as_unset=unset
20729
 
else
20730
 
  as_unset=false
20731
 
fi
20732
 
 
20733
 
 
20734
 
# Work around bugs in pre-3.0 UWIN ksh.
20735
 
$as_unset ENV MAIL MAILPATH
20736
 
PS1='$ '
20737
 
PS2='> '
20738
 
PS4='+ '
20739
 
 
20740
 
# NLS nuisances.
20741
 
for as_var in \
20742
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20743
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20744
 
  LC_TELEPHONE LC_TIME
20745
 
do
20746
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20747
 
    eval $as_var=C; export $as_var
20748
 
  else
20749
 
    $as_unset $as_var
20750
 
  fi
20751
 
done
20752
 
 
20753
 
# Required to use basename.
20754
 
if expr a : '\(a\)' >/dev/null 2>&1; then
20755
 
  as_expr=expr
20756
 
else
20757
 
  as_expr=false
20758
 
fi
20759
 
 
20760
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20761
 
  as_basename=basename
20762
 
else
20763
 
  as_basename=false
20764
 
fi
20765
 
 
20766
 
 
20767
 
# Name of the executable.
20768
 
as_me=`$as_basename "$0" ||
20769
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20770
 
         X"$0" : 'X\(//\)$' \| \
20771
 
         X"$0" : 'X\(/\)$' \| \
20772
 
         .     : '\(.\)' 2>/dev/null ||
20773
 
echo X/"$0" |
20774
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20775
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
20776
 
          /^X\/\(\/\).*/{ s//\1/; q; }
20777
 
          s/.*/./; q'`
20778
 
 
20779
 
 
20780
 
# PATH needs CR, and LINENO needs CR and PATH.
20781
 
# Avoid depending upon Character Ranges.
20782
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20783
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20784
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20785
 
as_cr_digits='0123456789'
20786
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
20787
 
 
20788
 
# The user is always right.
20789
 
if test "${PATH_SEPARATOR+set}" != set; then
20790
 
  echo "#! /bin/sh" >conf$$.sh
20791
 
  echo  "exit 0"   >>conf$$.sh
20792
 
  chmod +x conf$$.sh
20793
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20794
 
    PATH_SEPARATOR=';'
20795
 
  else
20796
 
    PATH_SEPARATOR=:
20797
 
  fi
20798
 
  rm -f conf$$.sh
20799
 
fi
20800
 
 
20801
 
 
20802
 
  as_lineno_1=$LINENO
20803
 
  as_lineno_2=$LINENO
20804
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20805
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20806
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20807
 
  # Find who we are.  Look in the path if we contain no path at all
20808
 
  # relative or not.
20809
 
  case $0 in
20810
 
    *[\\/]* ) as_myself=$0 ;;
20811
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20812
 
for as_dir in $PATH
20813
 
do
20814
 
  IFS=$as_save_IFS
20815
 
  test -z "$as_dir" && as_dir=.
20816
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20817
 
done
20818
 
 
20819
 
       ;;
20820
 
  esac
20821
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
20822
 
  # in which case we are not to be found in the path.
20823
 
  if test "x$as_myself" = x; then
20824
 
    as_myself=$0
20825
 
  fi
20826
 
  if test ! -f "$as_myself"; then
20827
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20828
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20829
 
   { (exit 1); exit 1; }; }
20830
 
  fi
20831
 
  case $CONFIG_SHELL in
20832
 
  '')
20833
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20834
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20835
 
do
20836
 
  IFS=$as_save_IFS
20837
 
  test -z "$as_dir" && as_dir=.
20838
 
  for as_base in sh bash ksh sh5; do
20839
 
         case $as_dir in
20840
 
         /*)
20841
 
           if ("$as_dir/$as_base" -c '
20842
 
  as_lineno_1=$LINENO
20843
 
  as_lineno_2=$LINENO
20844
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20845
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20846
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20847
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20848
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20849
 
             CONFIG_SHELL=$as_dir/$as_base
20850
 
             export CONFIG_SHELL
20851
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20852
 
           fi;;
20853
 
         esac
20854
 
       done
20855
 
done
20856
 
;;
20857
 
  esac
20858
 
 
20859
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20860
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
20861
 
  # line-number line before each line; the second 'sed' does the real
20862
 
  # work.  The second script uses 'N' to pair each line-number line
20863
 
  # with the numbered line, and appends trailing '-' during
20864
 
  # substitution so that $LINENO is not a special case at line end.
20865
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20866
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20867
 
  sed '=' <$as_myself |
20868
 
    sed '
20869
 
      N
20870
 
      s,$,-,
20871
 
      : loop
20872
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20873
 
      t loop
20874
 
      s,-$,,
20875
 
      s,^['$as_cr_digits']*\n,,
20876
 
    ' >$as_me.lineno &&
20877
 
  chmod +x $as_me.lineno ||
20878
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20879
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20880
 
   { (exit 1); exit 1; }; }
20881
 
 
20882
 
  # Don't try to exec as it changes $[0], causing all sort of problems
20883
 
  # (the dirname of $[0] is not the place where we might find the
20884
 
  # original and so on.  Autoconf is especially sensible to this).
20885
 
  . ./$as_me.lineno
20886
 
  # Exit status is that of the last command.
20887
 
  exit
20888
 
}
20889
 
 
20890
 
 
20891
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20892
 
  *c*,-n*) ECHO_N= ECHO_C='
20893
 
' ECHO_T='      ' ;;
20894
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20895
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20896
 
esac
20897
 
 
20898
 
if expr a : '\(a\)' >/dev/null 2>&1; then
20899
 
  as_expr=expr
20900
 
else
20901
 
  as_expr=false
20902
 
fi
20903
 
 
20904
 
rm -f conf$$ conf$$.exe conf$$.file
20905
 
echo >conf$$.file
20906
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
20907
 
  # We could just check for DJGPP; but this test a) works b) is more generic
20908
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20909
 
  if test -f conf$$.exe; then
20910
 
    # Don't use ln at all; we don't have any links
20911
 
    as_ln_s='cp -p'
20912
 
  else
20913
 
    as_ln_s='ln -s'
20914
 
  fi
20915
 
elif ln conf$$.file conf$$ 2>/dev/null; then
20916
 
  as_ln_s=ln
20917
 
else
20918
 
  as_ln_s='cp -p'
20919
 
fi
20920
 
rm -f conf$$ conf$$.exe conf$$.file
20921
 
 
20922
 
if mkdir -p . 2>/dev/null; then
20923
 
  as_mkdir_p=:
20924
 
else
20925
 
  test -d ./-p && rmdir ./-p
20926
 
  as_mkdir_p=false
20927
 
fi
20928
 
 
20929
 
as_executable_p="test -f"
20930
 
 
20931
 
# Sed expression to map a string onto a valid CPP name.
20932
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20933
 
 
20934
 
# Sed expression to map a string onto a valid variable name.
20935
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20936
 
 
20937
 
 
20938
 
# IFS
20939
 
# We need space, tab and new line, in precisely that order.
20940
 
as_nl='
20941
 
'
20942
 
IFS="   $as_nl"
20943
 
 
20944
 
# CDPATH.
20945
 
$as_unset CDPATH
20946
 
 
20947
 
exec 6>&1
20948
 
 
20949
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20950
 
# report actual input values of CONFIG_FILES etc. instead of their
20951
 
# values after options handling.  Logging --version etc. is OK.
20952
 
exec 5>>config.log
20953
 
{
20954
 
  echo
20955
 
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20956
 
@%:@@%:@ Running $as_me. @%:@@%:@
20957
 
_ASBOX
20958
 
} >&5
20959
 
cat >&5 <<_CSEOF
20960
 
 
20961
 
This file was extended by trousers $as_me 0.2.9.1, which was
20962
 
generated by GNU Autoconf 2.59.  Invocation command line was
20963
 
 
20964
 
  CONFIG_FILES    = $CONFIG_FILES
20965
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
20966
 
  CONFIG_LINKS    = $CONFIG_LINKS
20967
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
20968
 
  $ $0 $@
20969
 
 
20970
 
_CSEOF
20971
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20972
 
echo >&5
20973
 
_ACEOF
20974
 
 
20975
 
# Files that config.status was made for.
20976
 
if test -n "$ac_config_files"; then
20977
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20978
 
fi
20979
 
 
20980
 
if test -n "$ac_config_headers"; then
20981
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20982
 
fi
20983
 
 
20984
 
if test -n "$ac_config_links"; then
20985
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20986
 
fi
20987
 
 
20988
 
if test -n "$ac_config_commands"; then
20989
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20990
 
fi
20991
 
 
20992
 
cat >>$CONFIG_STATUS <<\_ACEOF
20993
 
 
20994
 
ac_cs_usage="\
20995
 
\`$as_me' instantiates files from templates according to the
20996
 
current configuration.
20997
 
 
20998
 
Usage: $0 [OPTIONS] [FILE]...
20999
 
 
21000
 
  -h, --help       print this help, then exit
21001
 
  -V, --version    print version number, then exit
21002
 
  -q, --quiet      do not print progress messages
21003
 
  -d, --debug      don't remove temporary files
21004
 
      --recheck    update $as_me by reconfiguring in the same conditions
21005
 
  --file=FILE[:TEMPLATE]
21006
 
                   instantiate the configuration file FILE
21007
 
 
21008
 
Configuration files:
21009
 
$config_files
21010
 
 
21011
 
Configuration commands:
21012
 
$config_commands
21013
 
 
21014
 
Report bugs to <bug-autoconf@gnu.org>."
21015
 
_ACEOF
21016
 
 
21017
 
cat >>$CONFIG_STATUS <<_ACEOF
21018
 
ac_cs_version="\\
21019
 
trousers config.status 0.2.9.1
21020
 
configured by $0, generated by GNU Autoconf 2.59,
21021
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21022
 
 
21023
 
Copyright (C) 2003 Free Software Foundation, Inc.
21024
 
This config.status script is free software; the Free Software Foundation
21025
 
gives unlimited permission to copy, distribute and modify it."
21026
 
srcdir=$srcdir
21027
 
INSTALL="$INSTALL"
21028
 
_ACEOF
21029
 
 
21030
 
cat >>$CONFIG_STATUS <<\_ACEOF
21031
 
# If no file are specified by the user, then we need to provide default
21032
 
# value.  By we need to know if files were specified by the user.
21033
 
ac_need_defaults=:
21034
 
while test $# != 0
21035
 
do
21036
 
  case $1 in
21037
 
  --*=*)
21038
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21039
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21040
 
    ac_shift=:
21041
 
    ;;
21042
 
  -*)
21043
 
    ac_option=$1
21044
 
    ac_optarg=$2
21045
 
    ac_shift=shift
21046
 
    ;;
21047
 
  *) # This is not an option, so the user has probably given explicit
21048
 
     # arguments.
21049
 
     ac_option=$1
21050
 
     ac_need_defaults=false;;
21051
 
  esac
21052
 
 
21053
 
  case $ac_option in
21054
 
  # Handling of the options.
21055
 
_ACEOF
21056
 
cat >>$CONFIG_STATUS <<\_ACEOF
21057
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21058
 
    ac_cs_recheck=: ;;
21059
 
  --version | --vers* | -V )
21060
 
    echo "$ac_cs_version"; exit 0 ;;
21061
 
  --he | --h)
21062
 
    # Conflict between --help and --header
21063
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21064
 
Try \`$0 --help' for more information." >&5
21065
 
echo "$as_me: error: ambiguous option: $1
21066
 
Try \`$0 --help' for more information." >&2;}
21067
 
   { (exit 1); exit 1; }; };;
21068
 
  --help | --hel | -h )
21069
 
    echo "$ac_cs_usage"; exit 0 ;;
21070
 
  --debug | --d* | -d )
21071
 
    debug=: ;;
21072
 
  --file | --fil | --fi | --f )
21073
 
    $ac_shift
21074
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21075
 
    ac_need_defaults=false;;
21076
 
  --header | --heade | --head | --hea )
21077
 
    $ac_shift
21078
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21079
 
    ac_need_defaults=false;;
21080
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21081
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21082
 
    ac_cs_silent=: ;;
21083
 
 
21084
 
  # This is an error.
21085
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21086
 
Try \`$0 --help' for more information." >&5
21087
 
echo "$as_me: error: unrecognized option: $1
21088
 
Try \`$0 --help' for more information." >&2;}
21089
 
   { (exit 1); exit 1; }; } ;;
21090
 
 
21091
 
  *) ac_config_targets="$ac_config_targets $1" ;;
21092
 
 
21093
 
  esac
21094
 
  shift
21095
 
done
21096
 
 
21097
 
ac_configure_extra_args=
21098
 
 
21099
 
if $ac_cs_silent; then
21100
 
  exec 6>/dev/null
21101
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
21102
 
fi
21103
 
 
21104
 
_ACEOF
21105
 
cat >>$CONFIG_STATUS <<_ACEOF
21106
 
if \$ac_cs_recheck; then
21107
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21108
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21109
 
fi
21110
 
 
21111
 
_ACEOF
21112
 
 
21113
 
cat >>$CONFIG_STATUS <<_ACEOF
21114
 
#
21115
 
# INIT-COMMANDS section.
21116
 
#
21117
 
 
21118
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21119
 
 
21120
 
_ACEOF
21121
 
 
21122
 
 
21123
 
 
21124
 
cat >>$CONFIG_STATUS <<\_ACEOF
21125
 
for ac_config_target in $ac_config_targets
21126
 
do
21127
 
  case "$ac_config_target" in
21128
 
  # Handling of arguments.
21129
 
  "dist/tcsd.conf" ) CONFIG_FILES="$CONFIG_FILES dist/tcsd.conf" ;;
21130
 
  "dist/fedora/trousers.spec" ) CONFIG_FILES="$CONFIG_FILES dist/fedora/trousers.spec" ;;
21131
 
  "dist/trousers.spec" ) CONFIG_FILES="$CONFIG_FILES dist/trousers.spec" ;;
21132
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21133
 
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21134
 
  "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
21135
 
  "src/tcs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tcs/Makefile" ;;
21136
 
  "src/tddl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tddl/Makefile" ;;
21137
 
  "src/tspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tspi/Makefile" ;;
21138
 
  "src/trspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/trspi/Makefile" ;;
21139
 
  "src/tcsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tcsd/Makefile" ;;
21140
 
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21141
 
  "man/man8/tcsd.8" ) CONFIG_FILES="$CONFIG_FILES man/man8/tcsd.8" ;;
21142
 
  "man/man5/tcsd.conf.5" ) CONFIG_FILES="$CONFIG_FILES man/man5/tcsd.conf.5" ;;
21143
 
  "dist/Makefile" ) CONFIG_FILES="$CONFIG_FILES dist/Makefile" ;;
21144
 
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21145
 
  "man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
21146
 
  "man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
21147
 
  "man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
21148
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21149
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21150
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21151
 
   { (exit 1); exit 1; }; };;
21152
 
  esac
21153
 
done
21154
 
 
21155
 
# If the user did not use the arguments to specify the items to instantiate,
21156
 
# then the envvar interface is used.  Set only those that are not.
21157
 
# We use the long form for the default assignment because of an extremely
21158
 
# bizarre bug on SunOS 4.1.3.
21159
 
if $ac_need_defaults; then
21160
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21161
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21162
 
fi
21163
 
 
21164
 
# Have a temporary directory for convenience.  Make it in the build tree
21165
 
# simply because there is no reason to put it here, and in addition,
21166
 
# creating and moving files from /tmp can sometimes cause problems.
21167
 
# Create a temporary directory, and hook for its removal unless debugging.
21168
 
$debug ||
21169
 
{
21170
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21171
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
21172
 
}
21173
 
 
21174
 
# Create a (secure) tmp directory for tmp files.
21175
 
 
21176
 
{
21177
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21178
 
  test -n "$tmp" && test -d "$tmp"
21179
 
}  ||
21180
 
{
21181
 
  tmp=./confstat$$-$RANDOM
21182
 
  (umask 077 && mkdir $tmp)
21183
 
} ||
21184
 
{
21185
 
   echo "$me: cannot create a temporary directory in ." >&2
21186
 
   { (exit 1); exit 1; }
21187
 
}
21188
 
 
21189
 
_ACEOF
21190
 
 
21191
 
cat >>$CONFIG_STATUS <<_ACEOF
21192
 
 
21193
 
#
21194
 
# CONFIG_FILES section.
21195
 
#
21196
 
 
21197
 
# No need to generate the scripts if there are no CONFIG_FILES.
21198
 
# This happens for instance when ./config.status config.h
21199
 
if test -n "\$CONFIG_FILES"; then
21200
 
  # Protect against being on the right side of a sed subst in config.status.
21201
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21202
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21203
 
s,@SHELL@,$SHELL,;t t
21204
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21205
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21206
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21207
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21208
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21209
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21210
 
s,@exec_prefix@,$exec_prefix,;t t
21211
 
s,@prefix@,$prefix,;t t
21212
 
s,@program_transform_name@,$program_transform_name,;t t
21213
 
s,@bindir@,$bindir,;t t
21214
 
s,@sbindir@,$sbindir,;t t
21215
 
s,@libexecdir@,$libexecdir,;t t
21216
 
s,@datadir@,$datadir,;t t
21217
 
s,@sysconfdir@,$sysconfdir,;t t
21218
 
s,@sharedstatedir@,$sharedstatedir,;t t
21219
 
s,@localstatedir@,$localstatedir,;t t
21220
 
s,@libdir@,$libdir,;t t
21221
 
s,@includedir@,$includedir,;t t
21222
 
s,@oldincludedir@,$oldincludedir,;t t
21223
 
s,@infodir@,$infodir,;t t
21224
 
s,@mandir@,$mandir,;t t
21225
 
s,@build_alias@,$build_alias,;t t
21226
 
s,@host_alias@,$host_alias,;t t
21227
 
s,@target_alias@,$target_alias,;t t
21228
 
s,@DEFS@,$DEFS,;t t
21229
 
s,@ECHO_C@,$ECHO_C,;t t
21230
 
s,@ECHO_N@,$ECHO_N,;t t
21231
 
s,@ECHO_T@,$ECHO_T,;t t
21232
 
s,@LIBS@,$LIBS,;t t
21233
 
s,@build@,$build,;t t
21234
 
s,@build_cpu@,$build_cpu,;t t
21235
 
s,@build_vendor@,$build_vendor,;t t
21236
 
s,@build_os@,$build_os,;t t
21237
 
s,@host@,$host,;t t
21238
 
s,@host_cpu@,$host_cpu,;t t
21239
 
s,@host_vendor@,$host_vendor,;t t
21240
 
s,@host_os@,$host_os,;t t
21241
 
s,@target@,$target,;t t
21242
 
s,@target_cpu@,$target_cpu,;t t
21243
 
s,@target_vendor@,$target_vendor,;t t
21244
 
s,@target_os@,$target_os,;t t
21245
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21246
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21247
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21248
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
21249
 
s,@PACKAGE@,$PACKAGE,;t t
21250
 
s,@VERSION@,$VERSION,;t t
21251
 
s,@ACLOCAL@,$ACLOCAL,;t t
21252
 
s,@AUTOCONF@,$AUTOCONF,;t t
21253
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
21254
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
21255
 
s,@MAKEINFO@,$MAKEINFO,;t t
21256
 
s,@install_sh@,$install_sh,;t t
21257
 
s,@STRIP@,$STRIP,;t t
21258
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21259
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21260
 
s,@mkdir_p@,$mkdir_p,;t t
21261
 
s,@AWK@,$AWK,;t t
21262
 
s,@SET_MAKE@,$SET_MAKE,;t t
21263
 
s,@am__leading_dot@,$am__leading_dot,;t t
21264
 
s,@AMTAR@,$AMTAR,;t t
21265
 
s,@am__tar@,$am__tar,;t t
21266
 
s,@am__untar@,$am__untar,;t t
21267
 
s,@OPENSSL_LIB_DIR@,$OPENSSL_LIB_DIR,;t t
21268
 
s,@CC@,$CC,;t t
21269
 
s,@CFLAGS@,$CFLAGS,;t t
21270
 
s,@LDFLAGS@,$LDFLAGS,;t t
21271
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
21272
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
21273
 
s,@EXEEXT@,$EXEEXT,;t t
21274
 
s,@OBJEXT@,$OBJEXT,;t t
21275
 
s,@DEPDIR@,$DEPDIR,;t t
21276
 
s,@am__include@,$am__include,;t t
21277
 
s,@am__quote@,$am__quote,;t t
21278
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21279
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21280
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21281
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
21282
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21283
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21284
 
s,@CRYPTO_PACKAGE@,$CRYPTO_PACKAGE,;t t
21285
 
s,@HAVE_GTK_TRUE@,$HAVE_GTK_TRUE,;t t
21286
 
s,@HAVE_GTK_FALSE@,$HAVE_GTK_FALSE,;t t
21287
 
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21288
 
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21289
 
s,@GTK_LIBS@,$GTK_LIBS,;t t
21290
 
s,@EGREP@,$EGREP,;t t
21291
 
s,@LN_S@,$LN_S,;t t
21292
 
s,@ECHO@,$ECHO,;t t
21293
 
s,@AR@,$AR,;t t
21294
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
21295
 
s,@RANLIB@,$RANLIB,;t t
21296
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21297
 
s,@CPP@,$CPP,;t t
21298
 
s,@CXX@,$CXX,;t t
21299
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
21300
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21301
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21302
 
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21303
 
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21304
 
s,@CXXCPP@,$CXXCPP,;t t
21305
 
s,@F77@,$F77,;t t
21306
 
s,@FFLAGS@,$FFLAGS,;t t
21307
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
21308
 
s,@LIBTOOL@,$LIBTOOL,;t t
21309
 
s,@TCSD_DEFAULT_PORT@,$TCSD_DEFAULT_PORT,;t t
21310
 
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
21311
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21312
 
CEOF
21313
 
 
21314
 
_ACEOF
21315
 
 
21316
 
  cat >>$CONFIG_STATUS <<\_ACEOF
21317
 
  # Split the substitutions into bite-sized pieces for seds with
21318
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
21319
 
  ac_max_sed_lines=48
21320
 
  ac_sed_frag=1 # Number of current file.
21321
 
  ac_beg=1 # First line for current file.
21322
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
21323
 
  ac_more_lines=:
21324
 
  ac_sed_cmds=
21325
 
  while $ac_more_lines; do
21326
 
    if test $ac_beg -gt 1; then
21327
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21328
 
    else
21329
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21330
 
    fi
21331
 
    if test ! -s $tmp/subs.frag; then
21332
 
      ac_more_lines=false
21333
 
    else
21334
 
      # The purpose of the label and of the branching condition is to
21335
 
      # speed up the sed processing (if there are no `@' at all, there
21336
 
      # is no need to browse any of the substitutions).
21337
 
      # These are the two extra sed commands mentioned above.
21338
 
      (echo ':t
21339
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21340
 
      if test -z "$ac_sed_cmds"; then
21341
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21342
 
      else
21343
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21344
 
      fi
21345
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
21346
 
      ac_beg=$ac_end
21347
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
21348
 
    fi
21349
 
  done
21350
 
  if test -z "$ac_sed_cmds"; then
21351
 
    ac_sed_cmds=cat
21352
 
  fi
21353
 
fi # test -n "$CONFIG_FILES"
21354
 
 
21355
 
_ACEOF
21356
 
cat >>$CONFIG_STATUS <<\_ACEOF
21357
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21358
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21359
 
  case $ac_file in
21360
 
  - | *:- | *:-:* ) # input from stdin
21361
 
        cat >$tmp/stdin
21362
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21363
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21364
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21365
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21366
 
  * )   ac_file_in=$ac_file.in ;;
21367
 
  esac
21368
 
 
21369
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21370
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21371
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21372
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
21373
 
         X"$ac_file" : 'X\(//\)$' \| \
21374
 
         X"$ac_file" : 'X\(/\)' \| \
21375
 
         .     : '\(.\)' 2>/dev/null ||
21376
 
echo X"$ac_file" |
21377
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21378
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21379
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21380
 
          /^X\(\/\).*/{ s//\1/; q; }
21381
 
          s/.*/./; q'`
21382
 
  { if $as_mkdir_p; then
21383
 
    mkdir -p "$ac_dir"
21384
 
  else
21385
 
    as_dir="$ac_dir"
21386
 
    as_dirs=
21387
 
    while test ! -d "$as_dir"; do
21388
 
      as_dirs="$as_dir $as_dirs"
21389
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21390
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21391
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21392
 
         X"$as_dir" : 'X\(//\)$' \| \
21393
 
         X"$as_dir" : 'X\(/\)' \| \
21394
 
         .     : '\(.\)' 2>/dev/null ||
21395
 
echo X"$as_dir" |
21396
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21397
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21398
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21399
 
          /^X\(\/\).*/{ s//\1/; q; }
21400
 
          s/.*/./; q'`
21401
 
    done
21402
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21403
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21404
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21405
 
   { (exit 1); exit 1; }; }; }
21406
 
 
21407
 
  ac_builddir=.
21408
 
 
21409
 
if test "$ac_dir" != .; then
21410
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21411
 
  # A "../" for each directory in $ac_dir_suffix.
21412
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21413
 
else
21414
 
  ac_dir_suffix= ac_top_builddir=
21415
 
fi
21416
 
 
21417
 
case $srcdir in
21418
 
  .)  # No --srcdir option.  We are building in place.
21419
 
    ac_srcdir=.
21420
 
    if test -z "$ac_top_builddir"; then
21421
 
       ac_top_srcdir=.
21422
 
    else
21423
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21424
 
    fi ;;
21425
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
21426
 
    ac_srcdir=$srcdir$ac_dir_suffix;
21427
 
    ac_top_srcdir=$srcdir ;;
21428
 
  *) # Relative path.
21429
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21430
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21431
 
esac
21432
 
 
21433
 
# Do not use `cd foo && pwd` to compute absolute paths, because
21434
 
# the directories may not exist.
21435
 
case `pwd` in
21436
 
.) ac_abs_builddir="$ac_dir";;
21437
 
*)
21438
 
  case "$ac_dir" in
21439
 
  .) ac_abs_builddir=`pwd`;;
21440
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21441
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21442
 
  esac;;
21443
 
esac
21444
 
case $ac_abs_builddir in
21445
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21446
 
*)
21447
 
  case ${ac_top_builddir}. in
21448
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
21449
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21450
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21451
 
  esac;;
21452
 
esac
21453
 
case $ac_abs_builddir in
21454
 
.) ac_abs_srcdir=$ac_srcdir;;
21455
 
*)
21456
 
  case $ac_srcdir in
21457
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
21458
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21459
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21460
 
  esac;;
21461
 
esac
21462
 
case $ac_abs_builddir in
21463
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21464
 
*)
21465
 
  case $ac_top_srcdir in
21466
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21467
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21468
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21469
 
  esac;;
21470
 
esac
21471
 
 
21472
 
 
21473
 
  case $INSTALL in
21474
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21475
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21476
 
  esac
21477
 
 
21478
 
  if test x"$ac_file" != x-; then
21479
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
21480
 
echo "$as_me: creating $ac_file" >&6;}
21481
 
    rm -f "$ac_file"
21482
 
  fi
21483
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21484
 
  # use $as_me), people would be surprised to read:
21485
 
  #    /* config.h.  Generated by config.status.  */
21486
 
  if test x"$ac_file" = x-; then
21487
 
    configure_input=
21488
 
  else
21489
 
    configure_input="$ac_file.  "
21490
 
  fi
21491
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
21492
 
                                     sed 's,.*/,,'` by configure."
21493
 
 
21494
 
  # First look for the input files in the build tree, otherwise in the
21495
 
  # src tree.
21496
 
  ac_file_inputs=`IFS=:
21497
 
    for f in $ac_file_in; do
21498
 
      case $f in
21499
 
      -) echo $tmp/stdin ;;
21500
 
      [\\/$]*)
21501
 
         # Absolute (can't be DOS-style, as IFS=:)
21502
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21503
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21504
 
   { (exit 1); exit 1; }; }
21505
 
         echo "$f";;
21506
 
      *) # Relative
21507
 
         if test -f "$f"; then
21508
 
           # Build tree
21509
 
           echo "$f"
21510
 
         elif test -f "$srcdir/$f"; then
21511
 
           # Source tree
21512
 
           echo "$srcdir/$f"
21513
 
         else
21514
 
           # /dev/null tree
21515
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21516
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21517
 
   { (exit 1); exit 1; }; }
21518
 
         fi;;
21519
 
      esac
21520
 
    done` || { (exit 1); exit 1; }
21521
 
_ACEOF
21522
 
cat >>$CONFIG_STATUS <<_ACEOF
21523
 
  sed "$ac_vpsub
21524
 
$extrasub
21525
 
_ACEOF
21526
 
cat >>$CONFIG_STATUS <<\_ACEOF
21527
 
:t
21528
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21529
 
s,@configure_input@,$configure_input,;t t
21530
 
s,@srcdir@,$ac_srcdir,;t t
21531
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21532
 
s,@top_srcdir@,$ac_top_srcdir,;t t
21533
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21534
 
s,@builddir@,$ac_builddir,;t t
21535
 
s,@abs_builddir@,$ac_abs_builddir,;t t
21536
 
s,@top_builddir@,$ac_top_builddir,;t t
21537
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21538
 
s,@INSTALL@,$ac_INSTALL,;t t
21539
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21540
 
  rm -f $tmp/stdin
21541
 
  if test x"$ac_file" != x-; then
21542
 
    mv $tmp/out $ac_file
21543
 
  else
21544
 
    cat $tmp/out
21545
 
    rm -f $tmp/out
21546
 
  fi
21547
 
 
21548
 
done
21549
 
_ACEOF
21550
 
cat >>$CONFIG_STATUS <<\_ACEOF
21551
 
 
21552
 
#
21553
 
# CONFIG_COMMANDS section.
21554
 
#
21555
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21556
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21557
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21558
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21559
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21560
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
21561
 
         X"$ac_dest" : 'X\(//\)$' \| \
21562
 
         X"$ac_dest" : 'X\(/\)' \| \
21563
 
         .     : '\(.\)' 2>/dev/null ||
21564
 
echo X"$ac_dest" |
21565
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21566
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21567
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21568
 
          /^X\(\/\).*/{ s//\1/; q; }
21569
 
          s/.*/./; q'`
21570
 
  { if $as_mkdir_p; then
21571
 
    mkdir -p "$ac_dir"
21572
 
  else
21573
 
    as_dir="$ac_dir"
21574
 
    as_dirs=
21575
 
    while test ! -d "$as_dir"; do
21576
 
      as_dirs="$as_dir $as_dirs"
21577
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21578
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21579
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21580
 
         X"$as_dir" : 'X\(//\)$' \| \
21581
 
         X"$as_dir" : 'X\(/\)' \| \
21582
 
         .     : '\(.\)' 2>/dev/null ||
21583
 
echo X"$as_dir" |
21584
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21585
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21586
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21587
 
          /^X\(\/\).*/{ s//\1/; q; }
21588
 
          s/.*/./; q'`
21589
 
    done
21590
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21591
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21592
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21593
 
   { (exit 1); exit 1; }; }; }
21594
 
 
21595
 
  ac_builddir=.
21596
 
 
21597
 
if test "$ac_dir" != .; then
21598
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21599
 
  # A "../" for each directory in $ac_dir_suffix.
21600
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21601
 
else
21602
 
  ac_dir_suffix= ac_top_builddir=
21603
 
fi
21604
 
 
21605
 
case $srcdir in
21606
 
  .)  # No --srcdir option.  We are building in place.
21607
 
    ac_srcdir=.
21608
 
    if test -z "$ac_top_builddir"; then
21609
 
       ac_top_srcdir=.
21610
 
    else
21611
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21612
 
    fi ;;
21613
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
21614
 
    ac_srcdir=$srcdir$ac_dir_suffix;
21615
 
    ac_top_srcdir=$srcdir ;;
21616
 
  *) # Relative path.
21617
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21618
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21619
 
esac
21620
 
 
21621
 
# Do not use `cd foo && pwd` to compute absolute paths, because
21622
 
# the directories may not exist.
21623
 
case `pwd` in
21624
 
.) ac_abs_builddir="$ac_dir";;
21625
 
*)
21626
 
  case "$ac_dir" in
21627
 
  .) ac_abs_builddir=`pwd`;;
21628
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21629
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21630
 
  esac;;
21631
 
esac
21632
 
case $ac_abs_builddir in
21633
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21634
 
*)
21635
 
  case ${ac_top_builddir}. in
21636
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
21637
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21638
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21639
 
  esac;;
21640
 
esac
21641
 
case $ac_abs_builddir in
21642
 
.) ac_abs_srcdir=$ac_srcdir;;
21643
 
*)
21644
 
  case $ac_srcdir in
21645
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
21646
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21647
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21648
 
  esac;;
21649
 
esac
21650
 
case $ac_abs_builddir in
21651
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21652
 
*)
21653
 
  case $ac_top_srcdir in
21654
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21655
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21656
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21657
 
  esac;;
21658
 
esac
21659
 
 
21660
 
 
21661
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21662
 
echo "$as_me: executing $ac_dest commands" >&6;}
21663
 
  case $ac_dest in
21664
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21665
 
  # Strip MF so we end up with the name of the file.
21666
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
21667
 
  # Check whether this is an Automake generated Makefile or not.
21668
 
  # We used to match only the files named `Makefile.in', but
21669
 
  # some people rename them; so instead we look at the file content.
21670
 
  # Grep'ing the first line is not enough: some people post-process
21671
 
  # each Makefile.in and add a new line on top of each file to say so.
21672
 
  # So let's grep whole file.
21673
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21674
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
21675
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21676
 
         X"$mf" : 'X\(//\)[^/]' \| \
21677
 
         X"$mf" : 'X\(//\)$' \| \
21678
 
         X"$mf" : 'X\(/\)' \| \
21679
 
         .     : '\(.\)' 2>/dev/null ||
21680
 
echo X"$mf" |
21681
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21682
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21683
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21684
 
          /^X\(\/\).*/{ s//\1/; q; }
21685
 
          s/.*/./; q'`
21686
 
  else
21687
 
    continue
21688
 
  fi
21689
 
  # Extract the definition of DEPDIR, am__include, and am__quote
21690
 
  # from the Makefile without running `make'.
21691
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21692
 
  test -z "$DEPDIR" && continue
21693
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21694
 
  test -z "am__include" && continue
21695
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21696
 
  # When using ansi2knr, U may be empty or an underscore; expand it
21697
 
  U=`sed -n 's/^U = //p' < "$mf"`
21698
 
  # Find all dependency output files, they are included files with
21699
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21700
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
21701
 
  # expansion.
21702
 
  for file in `sed -n "
21703
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21704
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21705
 
    # Make sure the directory exists.
21706
 
    test -f "$dirpart/$file" && continue
21707
 
    fdir=`(dirname "$file") 2>/dev/null ||
21708
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21709
 
         X"$file" : 'X\(//\)[^/]' \| \
21710
 
         X"$file" : 'X\(//\)$' \| \
21711
 
         X"$file" : 'X\(/\)' \| \
21712
 
         .     : '\(.\)' 2>/dev/null ||
21713
 
echo X"$file" |
21714
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21715
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21716
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21717
 
          /^X\(\/\).*/{ s//\1/; q; }
21718
 
          s/.*/./; q'`
21719
 
    { if $as_mkdir_p; then
21720
 
    mkdir -p $dirpart/$fdir
21721
 
  else
21722
 
    as_dir=$dirpart/$fdir
21723
 
    as_dirs=
21724
 
    while test ! -d "$as_dir"; do
21725
 
      as_dirs="$as_dir $as_dirs"
21726
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21727
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21728
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21729
 
         X"$as_dir" : 'X\(//\)$' \| \
21730
 
         X"$as_dir" : 'X\(/\)' \| \
21731
 
         .     : '\(.\)' 2>/dev/null ||
21732
 
echo X"$as_dir" |
21733
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21734
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21735
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21736
 
          /^X\(\/\).*/{ s//\1/; q; }
21737
 
          s/.*/./; q'`
21738
 
    done
21739
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21740
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21741
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21742
 
   { (exit 1); exit 1; }; }; }
21743
 
 
21744
 
    # echo "creating $dirpart/$file"
21745
 
    echo '# dummy' > "$dirpart/$file"
21746
 
  done
21747
 
done
21748
 
 ;;
21749
 
  esac
21750
 
done
21751
 
_ACEOF
21752
 
 
21753
 
cat >>$CONFIG_STATUS <<\_ACEOF
21754
 
 
21755
 
{ (exit 0); exit 0; }
21756
 
_ACEOF
21757
 
chmod +x $CONFIG_STATUS
21758
 
ac_clean_files=$ac_clean_files_save
21759
 
 
21760
 
 
21761
 
# configure is writing to config.log, and then calls config.status.
21762
 
# config.status does its own redirection, appending to config.log.
21763
 
# Unfortunately, on DOS this fails, as config.log is still kept open
21764
 
# by configure, so config.status won't be able to write to it; its
21765
 
# output is simply discarded.  So we exec the FD to /dev/null,
21766
 
# effectively closing config.log, so it can be properly (re)opened and
21767
 
# appended to by config.status.  When coming back to configure, we
21768
 
# need to make the FD available again.
21769
 
if test "$no_create" != yes; then
21770
 
  ac_cs_success=:
21771
 
  ac_config_status_args=
21772
 
  test "$silent" = yes &&
21773
 
    ac_config_status_args="$ac_config_status_args --quiet"
21774
 
  exec 5>/dev/null
21775
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21776
 
  exec 5>>config.log
21777
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21778
 
  # would make configure fail if this is the last instruction.
21779
 
  $ac_cs_success || { (exit 1); exit 1; }
21780
 
fi
21781
 
 
21782
 
 
21783
 
echo "CFLAGS=$CFLAGS"
21784