~ubuntu-branches/ubuntu/lucid/judy/lucid

« back to all changes in this revision

Viewing changes to autom4te.cache/output.0

  • Committer: Bazaar Package Importer
  • Author(s): Troy Heber
  • Date: 2005-03-22 06:55:53 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050322065553-syjpkd48r4re18dn
Tags: 1.0.1-5

* Moving LGPL link in copyright back to LGPL-2.1
* Cleanup of debian/rules: removed explicit refs to 32-bit archs, removed
  unnecessary nostrip, using --man dir to install man pages, moving from
  dh_movefiles to dh_install.

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 Judy 1.0.0.
 
4
@%:@
 
5
@%:@ Report bugs to <doug@sourcejudy.com>.
 
6
@%:@ 
 
7
@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
 
8
@%:@ This configure script is free software; the Free Software Foundation
 
9
@%:@ gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
 
 
247
# Check that we are running under the correct shell.
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
 
 
250
case X$ECHO in
 
251
X*--fallback-echo)
 
252
  # Remove one level of quotation (which was required for Make).
 
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
254
  ;;
 
255
esac
 
256
 
 
257
echo=${ECHO-echo}
 
258
if test "X$1" = X--no-reexec; then
 
259
  # Discard the --no-reexec flag, and continue.
 
260
  shift
 
261
elif test "X$1" = X--fallback-echo; then
 
262
  # Avoid inline document here, it may be left over
 
263
  :
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $echo works!
 
266
  :
 
267
else
 
268
  # Restart under the correct shell.
 
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
270
fi
 
271
 
 
272
if test "X$1" = X--fallback-echo; then
 
273
  # used as fallback echo
 
274
  shift
 
275
  cat <<EOF
 
276
$*
 
277
EOF
 
278
  exit 0
 
279
fi
 
280
 
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
282
# if CDPATH is set.
 
283
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
284
 
 
285
if test -z "$ECHO"; then
 
286
if test "X${echo_test_string+set}" != Xset; then
 
287
# find a string as large as possible, as long as the shell can cope with it
 
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
290
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
291
       echo_test_string="`eval $cmd`" &&
 
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
293
    then
 
294
      break
 
295
    fi
 
296
  done
 
297
fi
 
298
 
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
302
  :
 
303
else
 
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
305
  # backslashes.  This makes it impossible to quote backslashes using
 
306
  #   echo "$something" | sed 's/\\/\\\\/g'
 
307
  #
 
308
  # So, first we look for a working echo in the user's PATH.
 
309
 
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
 
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
317
      echo="$dir/echo"
 
318
      break
 
319
    fi
 
320
  done
 
321
  IFS="$lt_save_ifs"
 
322
 
 
323
  if test "X$echo" = Xecho; then
 
324
    # We didn't find a better echo, so look for alternatives.
 
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      # This shell has a builtin print -r that does the trick.
 
329
      echo='print -r'
 
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
332
      # If we have ksh, try running configure again with it.
 
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
334
      export ORIGINAL_CONFIG_SHELL
 
335
      CONFIG_SHELL=/bin/ksh
 
336
      export CONFIG_SHELL
 
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
338
    else
 
339
      # Try using printf.
 
340
      echo='printf %s\n'
 
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
344
        # Cool, printf works
 
345
        :
 
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = 'X\t' &&
 
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
351
        export CONFIG_SHELL
 
352
        SHELL="$CONFIG_SHELL"
 
353
        export SHELL
 
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
360
      else
 
361
        # maybe with a smaller string...
 
362
        prev=:
 
363
 
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
366
          then
 
367
            break
 
368
          fi
 
369
          prev="$cmd"
 
370
        done
 
371
 
 
372
        if test "$prev" != 'sed 50q "$0"'; then
 
373
          echo_test_string=`eval $prev`
 
374
          export echo_test_string
 
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
376
        else
 
377
          # Oops.  We lost completely, so just stick with echo.
 
378
          echo=echo
 
379
        fi
 
380
      fi
 
381
    fi
 
382
  fi
 
383
fi
 
384
fi
 
385
 
 
386
# Copy echo and quote the copy suitably for passing to libtool from
 
387
# the Makefile, instead of quoting the original, which is used later.
 
388
ECHO=$echo
 
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
391
fi
 
392
 
 
393
 
 
394
 
 
395
 
 
396
tagnames=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
 
400
# Name of the host.
 
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
402
# so uname gets run too.
 
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
404
 
 
405
exec 6>&1
 
406
 
 
407
#
 
408
# Initializations.
 
409
#
 
410
ac_default_prefix=/usr/local
 
411
ac_config_libobj_dir=.
 
412
cross_compiling=no
 
413
subdirs=
 
414
MFLAGS=
 
415
MAKEFLAGS=
 
416
SHELL=${CONFIG_SHELL-/bin/sh}
 
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
 
423
# Identity of this package.
 
424
PACKAGE_NAME='Judy'
 
425
PACKAGE_TARNAME='judy'
 
426
PACKAGE_VERSION='1.0.0'
 
427
PACKAGE_STRING='Judy 1.0.0'
 
428
PACKAGE_BUGREPORT='doug@sourcejudy.com'
 
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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 VERSION_INFO FLAVOR 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 CPP LN_S EGREP LIB@&t@OBJS AR ac_ct_AR LD ac_ct_LD RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WARN_CFLAGS 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 Judy 1.0.0 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
_ACEOF
 
1018
fi
 
1019
 
 
1020
if test -n "$ac_init_help"; then
 
1021
  case $ac_init_help in
 
1022
     short | recursive ) echo "Configuration of Judy 1.0.0:";;
 
1023
   esac
 
1024
  cat <<\_ACEOF
 
1025
 
 
1026
Optional Features:
 
1027
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1028
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1029
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1030
                          (and sometimes confusing) to the casual installer
 
1031
  --enable-debug          enable debugging features
 
1032
  --enable-ccover         enable use of ccover code coverage tools
 
1033
  --disable-dependency-tracking  speeds up one-time build
 
1034
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1035
 --enable-32-bit          Generate code for a 32-bit environment
 
1036
 --enable-64-bit          Generate code for a 64-bit environment
 
1037
  --enable-shared@<:@=PKGS@:>@ 
 
1038
                          build shared libraries @<:@default=yes@:>@
 
1039
  --enable-static@<:@=PKGS@:>@ 
 
1040
                          build static libraries @<:@default=yes@:>@
 
1041
  --enable-fast-install@<:@=PKGS@:>@ 
 
1042
                          optimize for fast installation @<:@default=yes@:>@
 
1043
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1044
  --enable-build-warnings    Enable build-time compiler warnings for gcc
 
1045
 
 
1046
Optional Packages:
 
1047
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1048
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1049
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
 
1050
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
 
1051
                          both@:>@
 
1052
  --with-tags@<:@=TAGS@:>@ 
 
1053
                          include additional configurations @<:@automatic@:>@
 
1054
 
 
1055
Some influential environment variables:
 
1056
  CC          C compiler command
 
1057
  CFLAGS      C compiler flags
 
1058
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1059
              nonstandard directory <lib dir>
 
1060
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1061
              headers in a nonstandard directory <include dir>
 
1062
  CPP         C preprocessor
 
1063
  CXX         C++ compiler command
 
1064
  CXXFLAGS    C++ compiler flags
 
1065
  CXXCPP      C++ preprocessor
 
1066
  F77         Fortran 77 compiler command
 
1067
  FFLAGS      Fortran 77 compiler flags
 
1068
 
 
1069
Use these variables to override the choices made by `configure' or to help
 
1070
it to find libraries and programs with nonstandard names/locations.
 
1071
 
 
1072
Report bugs to <doug@sourcejudy.com>.
 
1073
_ACEOF
 
1074
fi
 
1075
 
 
1076
if test "$ac_init_help" = "recursive"; then
 
1077
  # If there are subdirs, report their specific --help.
 
1078
  ac_popdir=`pwd`
 
1079
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1080
    test -d $ac_dir || continue
 
1081
    ac_builddir=.
 
1082
 
 
1083
if test "$ac_dir" != .; then
 
1084
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1085
  # A "../" for each directory in $ac_dir_suffix.
 
1086
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1087
else
 
1088
  ac_dir_suffix= ac_top_builddir=
 
1089
fi
 
1090
 
 
1091
case $srcdir in
 
1092
  .)  # No --srcdir option.  We are building in place.
 
1093
    ac_srcdir=.
 
1094
    if test -z "$ac_top_builddir"; then
 
1095
       ac_top_srcdir=.
 
1096
    else
 
1097
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1098
    fi ;;
 
1099
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1100
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1101
    ac_top_srcdir=$srcdir ;;
 
1102
  *) # Relative path.
 
1103
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1104
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1105
esac
 
1106
 
 
1107
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1108
# the directories may not exist.
 
1109
case `pwd` in
 
1110
.) ac_abs_builddir="$ac_dir";;
 
1111
*)
 
1112
  case "$ac_dir" in
 
1113
  .) ac_abs_builddir=`pwd`;;
 
1114
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1115
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1116
  esac;;
 
1117
esac
 
1118
case $ac_abs_builddir in
 
1119
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1120
*)
 
1121
  case ${ac_top_builddir}. in
 
1122
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1123
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1124
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1125
  esac;;
 
1126
esac
 
1127
case $ac_abs_builddir in
 
1128
.) ac_abs_srcdir=$ac_srcdir;;
 
1129
*)
 
1130
  case $ac_srcdir in
 
1131
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1132
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1133
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1134
  esac;;
 
1135
esac
 
1136
case $ac_abs_builddir in
 
1137
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1138
*)
 
1139
  case $ac_top_srcdir in
 
1140
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1141
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1142
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1143
  esac;;
 
1144
esac
 
1145
 
 
1146
    cd $ac_dir
 
1147
    # Check for guested configure; otherwise get Cygnus style configure.
 
1148
    if test -f $ac_srcdir/configure.gnu; then
 
1149
      echo
 
1150
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1151
    elif test -f $ac_srcdir/configure; then
 
1152
      echo
 
1153
      $SHELL $ac_srcdir/configure  --help=recursive
 
1154
    elif test -f $ac_srcdir/configure.ac ||
 
1155
           test -f $ac_srcdir/configure.in; then
 
1156
      echo
 
1157
      $ac_configure --help
 
1158
    else
 
1159
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1160
    fi
 
1161
    cd "$ac_popdir"
 
1162
  done
 
1163
fi
 
1164
 
 
1165
test -n "$ac_init_help" && exit 0
 
1166
if $ac_init_version; then
 
1167
  cat <<\_ACEOF
 
1168
Judy configure 1.0.0
 
1169
generated by GNU Autoconf 2.59
 
1170
 
 
1171
Copyright (C) 2003 Free Software Foundation, Inc.
 
1172
This configure script is free software; the Free Software Foundation
 
1173
gives unlimited permission to copy, distribute and modify it.
 
1174
_ACEOF
 
1175
  exit 0
 
1176
fi
 
1177
exec 5>config.log
 
1178
cat >&5 <<_ACEOF
 
1179
This file contains any messages produced by compilers while
 
1180
running configure, to aid debugging if configure makes a mistake.
 
1181
 
 
1182
It was created by Judy $as_me 1.0.0, which was
 
1183
generated by GNU Autoconf 2.59.  Invocation command line was
 
1184
 
 
1185
  $ $0 $@
 
1186
 
 
1187
_ACEOF
 
1188
{
 
1189
cat <<_ASUNAME
 
1190
@%:@@%:@ --------- @%:@@%:@
 
1191
@%:@@%:@ Platform. @%:@@%:@
 
1192
@%:@@%:@ --------- @%:@@%:@
 
1193
 
 
1194
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1195
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1196
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1197
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1198
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1199
 
 
1200
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1201
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1202
 
 
1203
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1204
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1205
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1206
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1207
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1208
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1209
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1210
 
 
1211
_ASUNAME
 
1212
 
 
1213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1214
for as_dir in $PATH
 
1215
do
 
1216
  IFS=$as_save_IFS
 
1217
  test -z "$as_dir" && as_dir=.
 
1218
  echo "PATH: $as_dir"
 
1219
done
 
1220
 
 
1221
} >&5
 
1222
 
 
1223
cat >&5 <<_ACEOF
 
1224
 
 
1225
 
 
1226
@%:@@%:@ ----------- @%:@@%:@
 
1227
@%:@@%:@ Core tests. @%:@@%:@
 
1228
@%:@@%:@ ----------- @%:@@%:@
 
1229
 
 
1230
_ACEOF
 
1231
 
 
1232
 
 
1233
# Keep a trace of the command line.
 
1234
# Strip out --no-create and --no-recursion so they do not pile up.
 
1235
# Strip out --silent because we don't want to record it for future runs.
 
1236
# Also quote any args containing shell meta-characters.
 
1237
# Make two passes to allow for proper duplicate-argument suppression.
 
1238
ac_configure_args=
 
1239
ac_configure_args0=
 
1240
ac_configure_args1=
 
1241
ac_sep=
 
1242
ac_must_keep_next=false
 
1243
for ac_pass in 1 2
 
1244
do
 
1245
  for ac_arg
 
1246
  do
 
1247
    case $ac_arg in
 
1248
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1249
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1250
    | -silent | --silent | --silen | --sile | --sil)
 
1251
      continue ;;
 
1252
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1253
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1254
    esac
 
1255
    case $ac_pass in
 
1256
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1257
    2)
 
1258
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1259
      if test $ac_must_keep_next = true; then
 
1260
        ac_must_keep_next=false # Got value, back to normal.
 
1261
      else
 
1262
        case $ac_arg in
 
1263
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1264
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1265
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1266
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1267
            case "$ac_configure_args0 " in
 
1268
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1269
            esac
 
1270
            ;;
 
1271
          -* ) ac_must_keep_next=true ;;
 
1272
        esac
 
1273
      fi
 
1274
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1275
      # Get rid of the leading space.
 
1276
      ac_sep=" "
 
1277
      ;;
 
1278
    esac
 
1279
  done
 
1280
done
 
1281
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1282
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1283
 
 
1284
# When interrupted or exit'd, cleanup temporary files, and complete
 
1285
# config.log.  We remove comments because anyway the quotes in there
 
1286
# would cause problems or look ugly.
 
1287
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1288
# such as our DU 5.0 friend, will then `close' the trap.
 
1289
trap 'exit_status=$?
 
1290
  # Save into config.log some information that might help in debugging.
 
1291
  {
 
1292
    echo
 
1293
 
 
1294
    cat <<\_ASBOX
 
1295
@%:@@%:@ ---------------- @%:@@%:@
 
1296
@%:@@%:@ Cache variables. @%:@@%:@
 
1297
@%:@@%:@ ---------------- @%:@@%:@
 
1298
_ASBOX
 
1299
    echo
 
1300
    # The following way of writing the cache mishandles newlines in values,
 
1301
{
 
1302
  (set) 2>&1 |
 
1303
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1304
    *ac_space=\ *)
 
1305
      sed -n \
 
1306
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1307
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1308
      ;;
 
1309
    *)
 
1310
      sed -n \
 
1311
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1312
      ;;
 
1313
    esac;
 
1314
}
 
1315
    echo
 
1316
 
 
1317
    cat <<\_ASBOX
 
1318
@%:@@%:@ ----------------- @%:@@%:@
 
1319
@%:@@%:@ Output variables. @%:@@%:@
 
1320
@%:@@%:@ ----------------- @%:@@%:@
 
1321
_ASBOX
 
1322
    echo
 
1323
    for ac_var in $ac_subst_vars
 
1324
    do
 
1325
      eval ac_val=$`echo $ac_var`
 
1326
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1327
    done | sort
 
1328
    echo
 
1329
 
 
1330
    if test -n "$ac_subst_files"; then
 
1331
      cat <<\_ASBOX
 
1332
@%:@@%:@ ------------- @%:@@%:@
 
1333
@%:@@%:@ Output files. @%:@@%:@
 
1334
@%:@@%:@ ------------- @%:@@%:@
 
1335
_ASBOX
 
1336
      echo
 
1337
      for ac_var in $ac_subst_files
 
1338
      do
 
1339
        eval ac_val=$`echo $ac_var`
 
1340
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1341
      done | sort
 
1342
      echo
 
1343
    fi
 
1344
 
 
1345
    if test -s confdefs.h; then
 
1346
      cat <<\_ASBOX
 
1347
@%:@@%:@ ----------- @%:@@%:@
 
1348
@%:@@%:@ confdefs.h. @%:@@%:@
 
1349
@%:@@%:@ ----------- @%:@@%:@
 
1350
_ASBOX
 
1351
      echo
 
1352
      sed "/^$/d" confdefs.h | sort
 
1353
      echo
 
1354
    fi
 
1355
    test "$ac_signal" != 0 &&
 
1356
      echo "$as_me: caught signal $ac_signal"
 
1357
    echo "$as_me: exit $exit_status"
 
1358
  } >&5
 
1359
  rm -f core *.core &&
 
1360
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1361
    exit $exit_status
 
1362
     ' 0
 
1363
for ac_signal in 1 2 13 15; do
 
1364
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1365
done
 
1366
ac_signal=0
 
1367
 
 
1368
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1369
rm -rf conftest* confdefs.h
 
1370
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1371
echo >confdefs.h
 
1372
 
 
1373
# Predefined preprocessor variables.
 
1374
 
 
1375
cat >>confdefs.h <<_ACEOF
 
1376
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
 
1377
_ACEOF
 
1378
 
 
1379
 
 
1380
cat >>confdefs.h <<_ACEOF
 
1381
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1382
_ACEOF
 
1383
 
 
1384
 
 
1385
cat >>confdefs.h <<_ACEOF
 
1386
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1387
_ACEOF
 
1388
 
 
1389
 
 
1390
cat >>confdefs.h <<_ACEOF
 
1391
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
 
1392
_ACEOF
 
1393
 
 
1394
 
 
1395
cat >>confdefs.h <<_ACEOF
 
1396
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1397
_ACEOF
 
1398
 
 
1399
 
 
1400
# Let the site file select an alternate cache file if it wants to.
 
1401
# Prefer explicitly selected file to automatically selected ones.
 
1402
if test -z "$CONFIG_SITE"; then
 
1403
  if test "x$prefix" != xNONE; then
 
1404
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1405
  else
 
1406
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1407
  fi
 
1408
fi
 
1409
for ac_site_file in $CONFIG_SITE; do
 
1410
  if test -r "$ac_site_file"; then
 
1411
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1412
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1413
    sed 's/^/| /' "$ac_site_file" >&5
 
1414
    . "$ac_site_file"
 
1415
  fi
 
1416
done
 
1417
 
 
1418
if test -r "$cache_file"; then
 
1419
  # Some versions of bash will fail to source /dev/null (special
 
1420
  # files actually), so we avoid doing that.
 
1421
  if test -f "$cache_file"; then
 
1422
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1423
echo "$as_me: loading cache $cache_file" >&6;}
 
1424
    case $cache_file in
 
1425
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1426
      *)                      . ./$cache_file;;
 
1427
    esac
 
1428
  fi
 
1429
else
 
1430
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1431
echo "$as_me: creating cache $cache_file" >&6;}
 
1432
  >$cache_file
 
1433
fi
 
1434
 
 
1435
# Check that the precious variables saved in the cache have kept the same
 
1436
# value.
 
1437
ac_cache_corrupted=false
 
1438
for ac_var in `(set) 2>&1 |
 
1439
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1440
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1441
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1442
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1443
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1444
  case $ac_old_set,$ac_new_set in
 
1445
    set,)
 
1446
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1447
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1448
      ac_cache_corrupted=: ;;
 
1449
    ,set)
 
1450
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1451
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1452
      ac_cache_corrupted=: ;;
 
1453
    ,);;
 
1454
    *)
 
1455
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1456
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1457
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1458
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1459
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1460
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1461
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1462
        ac_cache_corrupted=:
 
1463
      fi;;
 
1464
  esac
 
1465
  # Pass precious variables to config.status.
 
1466
  if test "$ac_new_set" = set; then
 
1467
    case $ac_new_val in
 
1468
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1469
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1470
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1471
    esac
 
1472
    case " $ac_configure_args " in
 
1473
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1474
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1475
    esac
 
1476
  fi
 
1477
done
 
1478
if $ac_cache_corrupted; then
 
1479
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1480
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1481
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1482
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1483
   { (exit 1); exit 1; }; }
 
1484
fi
 
1485
 
 
1486
ac_ext=c
 
1487
ac_cpp='$CPP $CPPFLAGS'
 
1488
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1489
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1490
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1520
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1521
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1522
if test "${enable_maintainer_mode+set}" = set; then
 
1523
  enableval="$enable_maintainer_mode"
 
1524
  USE_MAINTAINER_MODE=$enableval
 
1525
else
 
1526
  USE_MAINTAINER_MODE=no
 
1527
fi; 
 
1528
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1529
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1530
   
 
1531
 
 
1532
if test $USE_MAINTAINER_MODE = yes; then
 
1533
  MAINTAINER_MODE_TRUE=
 
1534
  MAINTAINER_MODE_FALSE='#'
 
1535
else
 
1536
  MAINTAINER_MODE_TRUE='#'
 
1537
  MAINTAINER_MODE_FALSE=
 
1538
fi
 
1539
 
 
1540
  MAINT=$MAINTAINER_MODE_TRUE
 
1541
  
 
1542
 
 
1543
 
 
1544
am__api_version="1.9"
 
1545
ac_aux_dir=
 
1546
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1547
  if test -f $ac_dir/install-sh; then
 
1548
    ac_aux_dir=$ac_dir
 
1549
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1550
    break
 
1551
  elif test -f $ac_dir/install.sh; then
 
1552
    ac_aux_dir=$ac_dir
 
1553
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1554
    break
 
1555
  elif test -f $ac_dir/shtool; then
 
1556
    ac_aux_dir=$ac_dir
 
1557
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1558
    break
 
1559
  fi
 
1560
done
 
1561
if test -z "$ac_aux_dir"; then
 
1562
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1563
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1564
   { (exit 1); exit 1; }; }
 
1565
fi
 
1566
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1567
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1568
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1569
 
 
1570
# Find a good install program.  We prefer a C program (faster),
 
1571
# so one script is as good as another.  But avoid the broken or
 
1572
# incompatible versions:
 
1573
# SysV /etc/install, /usr/sbin/install
 
1574
# SunOS /usr/etc/install
 
1575
# IRIX /sbin/install
 
1576
# AIX /bin/install
 
1577
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1578
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1579
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1580
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1581
# OS/2's system install, which has a completely different semantic
 
1582
# ./install, which can be erroneously created by make from ./install.sh.
 
1583
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1584
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1585
if test -z "$INSTALL"; then
 
1586
if test "${ac_cv_path_install+set}" = set; then
 
1587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1588
else
 
1589
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1590
for as_dir in $PATH
 
1591
do
 
1592
  IFS=$as_save_IFS
 
1593
  test -z "$as_dir" && as_dir=.
 
1594
  # Account for people who put trailing slashes in PATH elements.
 
1595
case $as_dir/ in
 
1596
  ./ | .// | /cC/* | \
 
1597
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1598
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1599
  /usr/ucb/* ) ;;
 
1600
  *)
 
1601
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1602
    # Don't use installbsd from OSF since it installs stuff as root
 
1603
    # by default.
 
1604
    for ac_prog in ginstall scoinst install; do
 
1605
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1606
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1607
          if test $ac_prog = install &&
 
1608
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1609
            # AIX install.  It has an incompatible calling convention.
 
1610
            :
 
1611
          elif test $ac_prog = install &&
 
1612
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1613
            # program-specific install script used by HP pwplus--don't use.
 
1614
            :
 
1615
          else
 
1616
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1617
            break 3
 
1618
          fi
 
1619
        fi
 
1620
      done
 
1621
    done
 
1622
    ;;
 
1623
esac
 
1624
done
 
1625
 
 
1626
 
 
1627
fi
 
1628
  if test "${ac_cv_path_install+set}" = set; then
 
1629
    INSTALL=$ac_cv_path_install
 
1630
  else
 
1631
    # As a last resort, use the slow shell script.  We don't cache a
 
1632
    # path for INSTALL within a source directory, because that will
 
1633
    # break other packages using the cache if that directory is
 
1634
    # removed, or if the path is relative.
 
1635
    INSTALL=$ac_install_sh
 
1636
  fi
 
1637
fi
 
1638
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1639
echo "${ECHO_T}$INSTALL" >&6
 
1640
 
 
1641
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1642
# It thinks the first close brace ends the variable substitution.
 
1643
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1644
 
 
1645
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1646
 
 
1647
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1648
 
 
1649
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1650
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1651
# Just in case
 
1652
sleep 1
 
1653
echo timestamp > conftest.file
 
1654
# Do `set' in a subshell so we don't clobber the current shell's
 
1655
# arguments.  Must try -L first in case configure is actually a
 
1656
# symlink; some systems play weird games with the mod time of symlinks
 
1657
# (eg FreeBSD returns the mod time of the symlink's containing
 
1658
# directory).
 
1659
if (
 
1660
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1661
   if test "$*" = "X"; then
 
1662
      # -L didn't work.
 
1663
      set X `ls -t $srcdir/configure conftest.file`
 
1664
   fi
 
1665
   rm -f conftest.file
 
1666
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1667
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1668
 
 
1669
      # If neither matched, then we have a broken ls.  This can happen
 
1670
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1671
      # broken ls alias from the environment.  This has actually
 
1672
      # happened.  Such a system could not be considered "sane".
 
1673
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1674
alias in your environment" >&5
 
1675
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1676
alias in your environment" >&2;}
 
1677
   { (exit 1); exit 1; }; }
 
1678
   fi
 
1679
 
 
1680
   test "$2" = conftest.file
 
1681
   )
 
1682
then
 
1683
   # Ok.
 
1684
   :
 
1685
else
 
1686
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1687
Check your system clock" >&5
 
1688
echo "$as_me: error: newly created file is older than distributed files!
 
1689
Check your system clock" >&2;}
 
1690
   { (exit 1); exit 1; }; }
 
1691
fi
 
1692
echo "$as_me:$LINENO: result: yes" >&5
 
1693
echo "${ECHO_T}yes" >&6
 
1694
test "$program_prefix" != NONE &&
 
1695
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1696
# Use a double $ so make ignores it.
 
1697
test "$program_suffix" != NONE &&
 
1698
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1699
# Double any \ or $.  echo might interpret backslashes.
 
1700
# By default was `s,x,x', remove it if useless.
 
1701
cat <<\_ACEOF >conftest.sed
 
1702
s/[\\$]/&&/g;s/;s,x,x,$//
 
1703
_ACEOF
 
1704
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1705
rm conftest.sed
 
1706
 
 
1707
# expand $ac_aux_dir to an absolute path
 
1708
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1709
 
 
1710
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1711
# Use eval to expand $SHELL
 
1712
if eval "$MISSING --run true"; then
 
1713
  am_missing_run="$MISSING --run "
 
1714
else
 
1715
  am_missing_run=
 
1716
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1717
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1718
fi
 
1719
 
 
1720
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1721
  # We used to keeping the `.' as first argument, in order to
 
1722
  # allow $(mkdir_p) to be used without argument.  As in
 
1723
  #   $(mkdir_p) $(somedir)
 
1724
  # where $(somedir) is conditionally defined.  However this is wrong
 
1725
  # for two reasons:
 
1726
  #  1. if the package is installed by a user who cannot write `.'
 
1727
  #     make install will fail,
 
1728
  #  2. the above comment should most certainly read
 
1729
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1730
  #     so it does not work when $(somedir) is undefined and
 
1731
  #     $(DESTDIR) is not.
 
1732
  #  To support the latter case, we have to write
 
1733
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1734
  #  so the `.' trick is pointless.
 
1735
  mkdir_p='mkdir -p --'
 
1736
else
 
1737
  # On NextStep and OpenStep, the `mkdir' command does not
 
1738
  # recognize any option.  It will interpret all options as
 
1739
  # directories to create, and then abort because `.' already
 
1740
  # exists.
 
1741
  for d in ./-p ./--version;
 
1742
  do
 
1743
    test -d $d && rmdir $d
 
1744
  done
 
1745
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1746
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1747
    mkdir_p='$(mkinstalldirs)'
 
1748
  else
 
1749
    mkdir_p='$(install_sh) -d'
 
1750
  fi
 
1751
fi
 
1752
 
 
1753
for ac_prog in gawk mawk nawk awk
 
1754
do
 
1755
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1756
set dummy $ac_prog; ac_word=$2
 
1757
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1759
if test "${ac_cv_prog_AWK+set}" = set; then
 
1760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1761
else
 
1762
  if test -n "$AWK"; then
 
1763
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1764
else
 
1765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1766
for as_dir in $PATH
 
1767
do
 
1768
  IFS=$as_save_IFS
 
1769
  test -z "$as_dir" && as_dir=.
 
1770
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1771
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1772
    ac_cv_prog_AWK="$ac_prog"
 
1773
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1774
    break 2
 
1775
  fi
 
1776
done
 
1777
done
 
1778
 
 
1779
fi
 
1780
fi
 
1781
AWK=$ac_cv_prog_AWK
 
1782
if test -n "$AWK"; then
 
1783
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1784
echo "${ECHO_T}$AWK" >&6
 
1785
else
 
1786
  echo "$as_me:$LINENO: result: no" >&5
 
1787
echo "${ECHO_T}no" >&6
 
1788
fi
 
1789
 
 
1790
  test -n "$AWK" && break
 
1791
done
 
1792
 
 
1793
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1794
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1795
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1796
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1798
else
 
1799
  cat >conftest.make <<\_ACEOF
 
1800
all:
 
1801
        @echo 'ac_maketemp="$(MAKE)"'
 
1802
_ACEOF
 
1803
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1804
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1805
if test -n "$ac_maketemp"; then
 
1806
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1807
else
 
1808
  eval ac_cv_prog_make_${ac_make}_set=no
 
1809
fi
 
1810
rm -f conftest.make
 
1811
fi
 
1812
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1813
  echo "$as_me:$LINENO: result: yes" >&5
 
1814
echo "${ECHO_T}yes" >&6
 
1815
  SET_MAKE=
 
1816
else
 
1817
  echo "$as_me:$LINENO: result: no" >&5
 
1818
echo "${ECHO_T}no" >&6
 
1819
  SET_MAKE="MAKE=${MAKE-make}"
 
1820
fi
 
1821
 
 
1822
rm -rf .tst 2>/dev/null
 
1823
mkdir .tst 2>/dev/null
 
1824
if test -d .tst; then
 
1825
  am__leading_dot=.
 
1826
else
 
1827
  am__leading_dot=_
 
1828
fi
 
1829
rmdir .tst 2>/dev/null
 
1830
 
 
1831
# test to see if srcdir already configured
 
1832
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1833
   test -f $srcdir/config.status; then
 
1834
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1835
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1836
   { (exit 1); exit 1; }; }
 
1837
fi
 
1838
 
 
1839
# test whether we have cygpath
 
1840
if test -z "$CYGPATH_W"; then
 
1841
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1842
    CYGPATH_W='cygpath -w'
 
1843
  else
 
1844
    CYGPATH_W=echo
 
1845
  fi
 
1846
fi
 
1847
 
 
1848
 
 
1849
# Define the identity of the package.
 
1850
 PACKAGE=$PACKAGE_NAME
 
1851
 VERSION=$PACKAGE_VERSION
 
1852
 
 
1853
 
 
1854
cat >>confdefs.h <<_ACEOF
 
1855
@%:@define PACKAGE "$PACKAGE"
 
1856
_ACEOF
 
1857
 
 
1858
 
 
1859
cat >>confdefs.h <<_ACEOF
 
1860
@%:@define VERSION "$VERSION"
 
1861
_ACEOF
 
1862
 
 
1863
# Some tools Automake needs.
 
1864
 
 
1865
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1866
 
 
1867
 
 
1868
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1869
 
 
1870
 
 
1871
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1872
 
 
1873
 
 
1874
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1875
 
 
1876
 
 
1877
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1878
 
 
1879
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1880
 
 
1881
# Installed binaries are usually stripped using `strip' when the user
 
1882
# run `make install-strip'.  However `strip' might not be the right
 
1883
# tool to use in cross-compilation environments, therefore Automake
 
1884
# will honor the `STRIP' environment variable to overrule this program.
 
1885
if test "$cross_compiling" != no; then
 
1886
  if test -n "$ac_tool_prefix"; then
 
1887
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1888
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1889
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1891
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1892
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1893
else
 
1894
  if test -n "$STRIP"; then
 
1895
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1896
else
 
1897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1898
for as_dir in $PATH
 
1899
do
 
1900
  IFS=$as_save_IFS
 
1901
  test -z "$as_dir" && as_dir=.
 
1902
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1903
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1904
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1905
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1906
    break 2
 
1907
  fi
 
1908
done
 
1909
done
 
1910
 
 
1911
fi
 
1912
fi
 
1913
STRIP=$ac_cv_prog_STRIP
 
1914
if test -n "$STRIP"; then
 
1915
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1916
echo "${ECHO_T}$STRIP" >&6
 
1917
else
 
1918
  echo "$as_me:$LINENO: result: no" >&5
 
1919
echo "${ECHO_T}no" >&6
 
1920
fi
 
1921
 
 
1922
fi
 
1923
if test -z "$ac_cv_prog_STRIP"; then
 
1924
  ac_ct_STRIP=$STRIP
 
1925
  # Extract the first word of "strip", so it can be a program name with args.
 
1926
set dummy strip; ac_word=$2
 
1927
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1929
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1930
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1931
else
 
1932
  if test -n "$ac_ct_STRIP"; then
 
1933
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1934
else
 
1935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1936
for as_dir in $PATH
 
1937
do
 
1938
  IFS=$as_save_IFS
 
1939
  test -z "$as_dir" && as_dir=.
 
1940
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1941
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1942
    ac_cv_prog_ac_ct_STRIP="strip"
 
1943
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1944
    break 2
 
1945
  fi
 
1946
done
 
1947
done
 
1948
 
 
1949
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1950
fi
 
1951
fi
 
1952
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1953
if test -n "$ac_ct_STRIP"; then
 
1954
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1955
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1956
else
 
1957
  echo "$as_me:$LINENO: result: no" >&5
 
1958
echo "${ECHO_T}no" >&6
 
1959
fi
 
1960
 
 
1961
  STRIP=$ac_ct_STRIP
 
1962
else
 
1963
  STRIP="$ac_cv_prog_STRIP"
 
1964
fi
 
1965
 
 
1966
fi
 
1967
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1968
 
 
1969
# We need awk for the "check" target.  The system "awk" is bad on
 
1970
# some platforms.
 
1971
# Always define AMTAR for backward compatibility.
 
1972
 
 
1973
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1974
 
 
1975
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1976
 
 
1977
 
 
1978
 
 
1979
 
 
1980
 
 
1981
 
 
1982
          ac_config_headers="$ac_config_headers config.h"
 
1983
 
 
1984
 
 
1985
 
 
1986
VERSION_INFO="-version-info 1:1:0"
 
1987
 
 
1988
 
 
1989
 
 
1990
echo "$as_me:$LINENO: checking which flavor to build" >&5
 
1991
echo $ECHO_N "checking which flavor to build... $ECHO_C" >&6
 
1992
 
 
1993
# Check whether --enable-debug or --disable-debug was given.
 
1994
if test "${enable_debug+set}" = set; then
 
1995
  enableval="$enable_debug"
 
1996
  
 
1997
else
 
1998
  enable_debug=no
 
1999
fi; 
 
2000
if test "x$enable_debug" != xyes -a "x$enable_debug" != xno; then
 
2001
   { { echo "$as_me:$LINENO: error: You may not pass an argument to --enable-debug" >&5
 
2002
echo "$as_me: error: You may not pass an argument to --enable-debug" >&2;}
 
2003
   { (exit 1); exit 1; }; }
 
2004
fi
 
2005
 
 
2006
# Check whether --enable-ccover or --disable-ccover was given.
 
2007
if test "${enable_ccover+set}" = set; then
 
2008
  enableval="$enable_ccover"
 
2009
  
 
2010
else
 
2011
  enable_ccover=no
 
2012
fi; 
 
2013
if test "x$enable_ccover" != xyes -a "x$enable_ccover" != xno; then
 
2014
   { { echo "$as_me:$LINENO: error: You may not pass an argument to --enable-ccover" >&5
 
2015
echo "$as_me: error: You may not pass an argument to --enable-ccover" >&2;}
 
2016
   { (exit 1); exit 1; }; }
 
2017
fi
 
2018
 
 
2019
if test "x$enable_debug" = xyes -a "x$enable_ccover" = xyes; then
 
2020
   { { echo "$as_me:$LINENO: error: You may not use --enable-debug and --enable-ccover together" >&5
 
2021
echo "$as_me: error: You may not use --enable-debug and --enable-ccover together" >&2;}
 
2022
   { (exit 1); exit 1; }; }
 
2023
elif test "x$enable_debug" = xyes; then
 
2024
   FLAVOR=debug
 
2025
elif test "x$enable_ccover" = xyes; then
 
2026
   FLAVOR=cov
 
2027
else
 
2028
   FLAVOR=product
 
2029
fi
 
2030
 
 
2031
 
 
2032
 
 
2033
echo "$as_me:$LINENO: result: $FLAVOR" >&5
 
2034
echo "${ECHO_T}$FLAVOR" >&6
 
2035
 
 
2036
 
 
2037
ac_ext=c
 
2038
ac_cpp='$CPP $CPPFLAGS'
 
2039
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2040
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2041
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2042
if test -n "$ac_tool_prefix"; then
 
2043
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2044
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2045
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2046
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2047
if test "${ac_cv_prog_CC+set}" = set; then
 
2048
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2049
else
 
2050
  if test -n "$CC"; then
 
2051
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2052
else
 
2053
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2054
for as_dir in $PATH
 
2055
do
 
2056
  IFS=$as_save_IFS
 
2057
  test -z "$as_dir" && as_dir=.
 
2058
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2059
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2060
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2061
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2062
    break 2
 
2063
  fi
 
2064
done
 
2065
done
 
2066
 
 
2067
fi
 
2068
fi
 
2069
CC=$ac_cv_prog_CC
 
2070
if test -n "$CC"; then
 
2071
  echo "$as_me:$LINENO: result: $CC" >&5
 
2072
echo "${ECHO_T}$CC" >&6
 
2073
else
 
2074
  echo "$as_me:$LINENO: result: no" >&5
 
2075
echo "${ECHO_T}no" >&6
 
2076
fi
 
2077
 
 
2078
fi
 
2079
if test -z "$ac_cv_prog_CC"; then
 
2080
  ac_ct_CC=$CC
 
2081
  # Extract the first word of "gcc", so it can be a program name with args.
 
2082
set dummy gcc; ac_word=$2
 
2083
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2084
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2085
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2087
else
 
2088
  if test -n "$ac_ct_CC"; then
 
2089
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2090
else
 
2091
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2092
for as_dir in $PATH
 
2093
do
 
2094
  IFS=$as_save_IFS
 
2095
  test -z "$as_dir" && as_dir=.
 
2096
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2097
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2098
    ac_cv_prog_ac_ct_CC="gcc"
 
2099
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2100
    break 2
 
2101
  fi
 
2102
done
 
2103
done
 
2104
 
 
2105
fi
 
2106
fi
 
2107
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2108
if test -n "$ac_ct_CC"; then
 
2109
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2110
echo "${ECHO_T}$ac_ct_CC" >&6
 
2111
else
 
2112
  echo "$as_me:$LINENO: result: no" >&5
 
2113
echo "${ECHO_T}no" >&6
 
2114
fi
 
2115
 
 
2116
  CC=$ac_ct_CC
 
2117
else
 
2118
  CC="$ac_cv_prog_CC"
 
2119
fi
 
2120
 
 
2121
if test -z "$CC"; then
 
2122
  if test -n "$ac_tool_prefix"; then
 
2123
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2124
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2125
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2126
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2127
if test "${ac_cv_prog_CC+set}" = set; then
 
2128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2129
else
 
2130
  if test -n "$CC"; then
 
2131
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2132
else
 
2133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2134
for as_dir in $PATH
 
2135
do
 
2136
  IFS=$as_save_IFS
 
2137
  test -z "$as_dir" && as_dir=.
 
2138
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2139
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2140
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2141
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2142
    break 2
 
2143
  fi
 
2144
done
 
2145
done
 
2146
 
 
2147
fi
 
2148
fi
 
2149
CC=$ac_cv_prog_CC
 
2150
if test -n "$CC"; then
 
2151
  echo "$as_me:$LINENO: result: $CC" >&5
 
2152
echo "${ECHO_T}$CC" >&6
 
2153
else
 
2154
  echo "$as_me:$LINENO: result: no" >&5
 
2155
echo "${ECHO_T}no" >&6
 
2156
fi
 
2157
 
 
2158
fi
 
2159
if test -z "$ac_cv_prog_CC"; then
 
2160
  ac_ct_CC=$CC
 
2161
  # Extract the first word of "cc", so it can be a program name with args.
 
2162
set dummy cc; ac_word=$2
 
2163
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2165
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2167
else
 
2168
  if test -n "$ac_ct_CC"; then
 
2169
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2170
else
 
2171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2172
for as_dir in $PATH
 
2173
do
 
2174
  IFS=$as_save_IFS
 
2175
  test -z "$as_dir" && as_dir=.
 
2176
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2177
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2178
    ac_cv_prog_ac_ct_CC="cc"
 
2179
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2180
    break 2
 
2181
  fi
 
2182
done
 
2183
done
 
2184
 
 
2185
fi
 
2186
fi
 
2187
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2188
if test -n "$ac_ct_CC"; then
 
2189
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2190
echo "${ECHO_T}$ac_ct_CC" >&6
 
2191
else
 
2192
  echo "$as_me:$LINENO: result: no" >&5
 
2193
echo "${ECHO_T}no" >&6
 
2194
fi
 
2195
 
 
2196
  CC=$ac_ct_CC
 
2197
else
 
2198
  CC="$ac_cv_prog_CC"
 
2199
fi
 
2200
 
 
2201
fi
 
2202
if test -z "$CC"; then
 
2203
  # Extract the first word of "cc", so it can be a program name with args.
 
2204
set dummy cc; ac_word=$2
 
2205
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2207
if test "${ac_cv_prog_CC+set}" = set; then
 
2208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2209
else
 
2210
  if test -n "$CC"; then
 
2211
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2212
else
 
2213
  ac_prog_rejected=no
 
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2215
for as_dir in $PATH
 
2216
do
 
2217
  IFS=$as_save_IFS
 
2218
  test -z "$as_dir" && as_dir=.
 
2219
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2220
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2221
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2222
       ac_prog_rejected=yes
 
2223
       continue
 
2224
     fi
 
2225
    ac_cv_prog_CC="cc"
 
2226
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2227
    break 2
 
2228
  fi
 
2229
done
 
2230
done
 
2231
 
 
2232
if test $ac_prog_rejected = yes; then
 
2233
  # We found a bogon in the path, so make sure we never use it.
 
2234
  set dummy $ac_cv_prog_CC
 
2235
  shift
 
2236
  if test $@%:@ != 0; then
 
2237
    # We chose a different compiler from the bogus one.
 
2238
    # However, it has the same basename, so the bogon will be chosen
 
2239
    # first if we set CC to just the basename; use the full file name.
 
2240
    shift
 
2241
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2242
  fi
 
2243
fi
 
2244
fi
 
2245
fi
 
2246
CC=$ac_cv_prog_CC
 
2247
if test -n "$CC"; then
 
2248
  echo "$as_me:$LINENO: result: $CC" >&5
 
2249
echo "${ECHO_T}$CC" >&6
 
2250
else
 
2251
  echo "$as_me:$LINENO: result: no" >&5
 
2252
echo "${ECHO_T}no" >&6
 
2253
fi
 
2254
 
 
2255
fi
 
2256
if test -z "$CC"; then
 
2257
  if test -n "$ac_tool_prefix"; then
 
2258
  for ac_prog in cl
 
2259
  do
 
2260
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2261
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2262
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2264
if test "${ac_cv_prog_CC+set}" = set; then
 
2265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2266
else
 
2267
  if test -n "$CC"; then
 
2268
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2269
else
 
2270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2271
for as_dir in $PATH
 
2272
do
 
2273
  IFS=$as_save_IFS
 
2274
  test -z "$as_dir" && as_dir=.
 
2275
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2276
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2277
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2278
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2279
    break 2
 
2280
  fi
 
2281
done
 
2282
done
 
2283
 
 
2284
fi
 
2285
fi
 
2286
CC=$ac_cv_prog_CC
 
2287
if test -n "$CC"; then
 
2288
  echo "$as_me:$LINENO: result: $CC" >&5
 
2289
echo "${ECHO_T}$CC" >&6
 
2290
else
 
2291
  echo "$as_me:$LINENO: result: no" >&5
 
2292
echo "${ECHO_T}no" >&6
 
2293
fi
 
2294
 
 
2295
    test -n "$CC" && break
 
2296
  done
 
2297
fi
 
2298
if test -z "$CC"; then
 
2299
  ac_ct_CC=$CC
 
2300
  for ac_prog in cl
 
2301
do
 
2302
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2303
set dummy $ac_prog; ac_word=$2
 
2304
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2306
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2307
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2308
else
 
2309
  if test -n "$ac_ct_CC"; then
 
2310
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2311
else
 
2312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2313
for as_dir in $PATH
 
2314
do
 
2315
  IFS=$as_save_IFS
 
2316
  test -z "$as_dir" && as_dir=.
 
2317
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2318
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2319
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2320
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2321
    break 2
 
2322
  fi
 
2323
done
 
2324
done
 
2325
 
 
2326
fi
 
2327
fi
 
2328
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2329
if test -n "$ac_ct_CC"; then
 
2330
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2331
echo "${ECHO_T}$ac_ct_CC" >&6
 
2332
else
 
2333
  echo "$as_me:$LINENO: result: no" >&5
 
2334
echo "${ECHO_T}no" >&6
 
2335
fi
 
2336
 
 
2337
  test -n "$ac_ct_CC" && break
 
2338
done
 
2339
 
 
2340
  CC=$ac_ct_CC
 
2341
fi
 
2342
 
 
2343
fi
 
2344
 
 
2345
 
 
2346
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2347
See \`config.log' for more details." >&5
 
2348
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2349
See \`config.log' for more details." >&2;}
 
2350
   { (exit 1); exit 1; }; }
 
2351
 
 
2352
# Provide some information about the compiler.
 
2353
echo "$as_me:$LINENO:" \
 
2354
     "checking for C compiler version" >&5
 
2355
ac_compiler=`set X $ac_compile; echo $2`
 
2356
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2357
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2358
  ac_status=$?
 
2359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2360
  (exit $ac_status); }
 
2361
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2362
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2363
  ac_status=$?
 
2364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2365
  (exit $ac_status); }
 
2366
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2367
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2368
  ac_status=$?
 
2369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2370
  (exit $ac_status); }
 
2371
 
 
2372
cat >conftest.$ac_ext <<_ACEOF
 
2373
/* confdefs.h.  */
 
2374
_ACEOF
 
2375
cat confdefs.h >>conftest.$ac_ext
 
2376
cat >>conftest.$ac_ext <<_ACEOF
 
2377
/* end confdefs.h.  */
 
2378
 
 
2379
int
 
2380
main ()
 
2381
{
 
2382
 
 
2383
  ;
 
2384
  return 0;
 
2385
}
 
2386
_ACEOF
 
2387
ac_clean_files_save=$ac_clean_files
 
2388
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2389
# Try to create an executable without -o first, disregard a.out.
 
2390
# It will help us diagnose broken compilers, and finding out an intuition
 
2391
# of exeext.
 
2392
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2393
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2394
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2395
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2396
  (eval $ac_link_default) 2>&5
 
2397
  ac_status=$?
 
2398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2399
  (exit $ac_status); }; then
 
2400
  # Find the output, starting from the most likely.  This scheme is
 
2401
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2402
# resort.
 
2403
 
 
2404
# Be careful to initialize this variable, since it used to be cached.
 
2405
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2406
ac_cv_exeext=
 
2407
# b.out is created by i960 compilers.
 
2408
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2409
do
 
2410
  test -f "$ac_file" || continue
 
2411
  case $ac_file in
 
2412
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2413
        ;;
 
2414
    conftest.$ac_ext )
 
2415
        # This is the source file.
 
2416
        ;;
 
2417
    [ab].out )
 
2418
        # We found the default executable, but exeext='' is most
 
2419
        # certainly right.
 
2420
        break;;
 
2421
    *.* )
 
2422
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2423
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2424
        # but it would be cool to find out if it's true.  Does anybody
 
2425
        # maintain Libtool? --akim.
 
2426
        export ac_cv_exeext
 
2427
        break;;
 
2428
    * )
 
2429
        break;;
 
2430
  esac
 
2431
done
 
2432
else
 
2433
  echo "$as_me: failed program was:" >&5
 
2434
sed 's/^/| /' conftest.$ac_ext >&5
 
2435
 
 
2436
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2437
See \`config.log' for more details." >&5
 
2438
echo "$as_me: error: C compiler cannot create executables
 
2439
See \`config.log' for more details." >&2;}
 
2440
   { (exit 77); exit 77; }; }
 
2441
fi
 
2442
 
 
2443
ac_exeext=$ac_cv_exeext
 
2444
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2445
echo "${ECHO_T}$ac_file" >&6
 
2446
 
 
2447
# Check the compiler produces executables we can run.  If not, either
 
2448
# the compiler is broken, or we cross compile.
 
2449
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2450
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2451
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2452
# If not cross compiling, check that we can run a simple program.
 
2453
if test "$cross_compiling" != yes; then
 
2454
  if { ac_try='./$ac_file'
 
2455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2456
  (eval $ac_try) 2>&5
 
2457
  ac_status=$?
 
2458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2459
  (exit $ac_status); }; }; then
 
2460
    cross_compiling=no
 
2461
  else
 
2462
    if test "$cross_compiling" = maybe; then
 
2463
        cross_compiling=yes
 
2464
    else
 
2465
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2466
If you meant to cross compile, use \`--host'.
 
2467
See \`config.log' for more details." >&5
 
2468
echo "$as_me: error: cannot run C compiled programs.
 
2469
If you meant to cross compile, use \`--host'.
 
2470
See \`config.log' for more details." >&2;}
 
2471
   { (exit 1); exit 1; }; }
 
2472
    fi
 
2473
  fi
 
2474
fi
 
2475
echo "$as_me:$LINENO: result: yes" >&5
 
2476
echo "${ECHO_T}yes" >&6
 
2477
 
 
2478
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2479
ac_clean_files=$ac_clean_files_save
 
2480
# Check the compiler produces executables we can run.  If not, either
 
2481
# the compiler is broken, or we cross compile.
 
2482
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2483
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2484
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2485
echo "${ECHO_T}$cross_compiling" >&6
 
2486
 
 
2487
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2488
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2489
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2490
  (eval $ac_link) 2>&5
 
2491
  ac_status=$?
 
2492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2493
  (exit $ac_status); }; then
 
2494
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2495
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2496
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2497
# `rm'.
 
2498
for ac_file in conftest.exe conftest conftest.*; do
 
2499
  test -f "$ac_file" || continue
 
2500
  case $ac_file in
 
2501
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2502
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2503
          export ac_cv_exeext
 
2504
          break;;
 
2505
    * ) break;;
 
2506
  esac
 
2507
done
 
2508
else
 
2509
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2510
See \`config.log' for more details." >&5
 
2511
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2512
See \`config.log' for more details." >&2;}
 
2513
   { (exit 1); exit 1; }; }
 
2514
fi
 
2515
 
 
2516
rm -f conftest$ac_cv_exeext
 
2517
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2518
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2519
 
 
2520
rm -f conftest.$ac_ext
 
2521
EXEEXT=$ac_cv_exeext
 
2522
ac_exeext=$EXEEXT
 
2523
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2524
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2525
if test "${ac_cv_objext+set}" = set; then
 
2526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2527
else
 
2528
  cat >conftest.$ac_ext <<_ACEOF
 
2529
/* confdefs.h.  */
 
2530
_ACEOF
 
2531
cat confdefs.h >>conftest.$ac_ext
 
2532
cat >>conftest.$ac_ext <<_ACEOF
 
2533
/* end confdefs.h.  */
 
2534
 
 
2535
int
 
2536
main ()
 
2537
{
 
2538
 
 
2539
  ;
 
2540
  return 0;
 
2541
}
 
2542
_ACEOF
 
2543
rm -f conftest.o conftest.obj
 
2544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2545
  (eval $ac_compile) 2>&5
 
2546
  ac_status=$?
 
2547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2548
  (exit $ac_status); }; then
 
2549
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2550
  case $ac_file in
 
2551
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2552
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2553
       break;;
 
2554
  esac
 
2555
done
 
2556
else
 
2557
  echo "$as_me: failed program was:" >&5
 
2558
sed 's/^/| /' conftest.$ac_ext >&5
 
2559
 
 
2560
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2561
See \`config.log' for more details." >&5
 
2562
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2563
See \`config.log' for more details." >&2;}
 
2564
   { (exit 1); exit 1; }; }
 
2565
fi
 
2566
 
 
2567
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2568
fi
 
2569
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2570
echo "${ECHO_T}$ac_cv_objext" >&6
 
2571
OBJEXT=$ac_cv_objext
 
2572
ac_objext=$OBJEXT
 
2573
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2574
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2575
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2577
else
 
2578
  cat >conftest.$ac_ext <<_ACEOF
 
2579
/* confdefs.h.  */
 
2580
_ACEOF
 
2581
cat confdefs.h >>conftest.$ac_ext
 
2582
cat >>conftest.$ac_ext <<_ACEOF
 
2583
/* end confdefs.h.  */
 
2584
 
 
2585
int
 
2586
main ()
 
2587
{
 
2588
#ifndef __GNUC__
 
2589
       choke me
 
2590
#endif
 
2591
 
 
2592
  ;
 
2593
  return 0;
 
2594
}
 
2595
_ACEOF
 
2596
rm -f conftest.$ac_objext
 
2597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2598
  (eval $ac_compile) 2>conftest.er1
 
2599
  ac_status=$?
 
2600
  grep -v '^ *+' conftest.er1 >conftest.err
 
2601
  rm -f conftest.er1
 
2602
  cat conftest.err >&5
 
2603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2604
  (exit $ac_status); } &&
 
2605
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2607
  (eval $ac_try) 2>&5
 
2608
  ac_status=$?
 
2609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2610
  (exit $ac_status); }; } &&
 
2611
         { ac_try='test -s conftest.$ac_objext'
 
2612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2613
  (eval $ac_try) 2>&5
 
2614
  ac_status=$?
 
2615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2616
  (exit $ac_status); }; }; then
 
2617
  ac_compiler_gnu=yes
 
2618
else
 
2619
  echo "$as_me: failed program was:" >&5
 
2620
sed 's/^/| /' conftest.$ac_ext >&5
 
2621
 
 
2622
ac_compiler_gnu=no
 
2623
fi
 
2624
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2625
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2626
 
 
2627
fi
 
2628
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2629
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2630
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2631
ac_test_CFLAGS=${CFLAGS+set}
 
2632
ac_save_CFLAGS=$CFLAGS
 
2633
CFLAGS="-g"
 
2634
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2635
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2636
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2638
else
 
2639
  cat >conftest.$ac_ext <<_ACEOF
 
2640
/* confdefs.h.  */
 
2641
_ACEOF
 
2642
cat confdefs.h >>conftest.$ac_ext
 
2643
cat >>conftest.$ac_ext <<_ACEOF
 
2644
/* end confdefs.h.  */
 
2645
 
 
2646
int
 
2647
main ()
 
2648
{
 
2649
 
 
2650
  ;
 
2651
  return 0;
 
2652
}
 
2653
_ACEOF
 
2654
rm -f conftest.$ac_objext
 
2655
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2656
  (eval $ac_compile) 2>conftest.er1
 
2657
  ac_status=$?
 
2658
  grep -v '^ *+' conftest.er1 >conftest.err
 
2659
  rm -f conftest.er1
 
2660
  cat conftest.err >&5
 
2661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2662
  (exit $ac_status); } &&
 
2663
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2665
  (eval $ac_try) 2>&5
 
2666
  ac_status=$?
 
2667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2668
  (exit $ac_status); }; } &&
 
2669
         { ac_try='test -s conftest.$ac_objext'
 
2670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2671
  (eval $ac_try) 2>&5
 
2672
  ac_status=$?
 
2673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2674
  (exit $ac_status); }; }; then
 
2675
  ac_cv_prog_cc_g=yes
 
2676
else
 
2677
  echo "$as_me: failed program was:" >&5
 
2678
sed 's/^/| /' conftest.$ac_ext >&5
 
2679
 
 
2680
ac_cv_prog_cc_g=no
 
2681
fi
 
2682
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2683
fi
 
2684
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2685
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2686
if test "$ac_test_CFLAGS" = set; then
 
2687
  CFLAGS=$ac_save_CFLAGS
 
2688
elif test $ac_cv_prog_cc_g = yes; then
 
2689
  if test "$GCC" = yes; then
 
2690
    CFLAGS="-g -O2"
 
2691
  else
 
2692
    CFLAGS="-g"
 
2693
  fi
 
2694
else
 
2695
  if test "$GCC" = yes; then
 
2696
    CFLAGS="-O2"
 
2697
  else
 
2698
    CFLAGS=
 
2699
  fi
 
2700
fi
 
2701
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2702
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2703
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2705
else
 
2706
  ac_cv_prog_cc_stdc=no
 
2707
ac_save_CC=$CC
 
2708
cat >conftest.$ac_ext <<_ACEOF
 
2709
/* confdefs.h.  */
 
2710
_ACEOF
 
2711
cat confdefs.h >>conftest.$ac_ext
 
2712
cat >>conftest.$ac_ext <<_ACEOF
 
2713
/* end confdefs.h.  */
 
2714
#include <stdarg.h>
 
2715
#include <stdio.h>
 
2716
#include <sys/types.h>
 
2717
#include <sys/stat.h>
 
2718
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2719
struct buf { int x; };
 
2720
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2721
static char *e (p, i)
 
2722
     char **p;
 
2723
     int i;
 
2724
{
 
2725
  return p[i];
 
2726
}
 
2727
static char *f (char * (*g) (char **, int), char **p, ...)
 
2728
{
 
2729
  char *s;
 
2730
  va_list v;
 
2731
  va_start (v,p);
 
2732
  s = g (p, va_arg (v,int));
 
2733
  va_end (v);
 
2734
  return s;
 
2735
}
 
2736
 
 
2737
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2738
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2739
   These don't provoke an error unfortunately, instead are silently treated
 
2740
   as 'x'.  The following induces an error, until -std1 is added to get
 
2741
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2742
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2743
   that's true only with -std1.  */
 
2744
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2745
 
 
2746
int test (int i, double x);
 
2747
struct s1 {int (*f) (int a);};
 
2748
struct s2 {int (*f) (double a);};
 
2749
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2750
int argc;
 
2751
char **argv;
 
2752
int
 
2753
main ()
 
2754
{
 
2755
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2756
  ;
 
2757
  return 0;
 
2758
}
 
2759
_ACEOF
 
2760
# Don't try gcc -ansi; that turns off useful extensions and
 
2761
# breaks some systems' header files.
 
2762
# AIX                   -qlanglvl=ansi
 
2763
# Ultrix and OSF/1      -std1
 
2764
# HP-UX 10.20 and later -Ae
 
2765
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2766
# SVR4                  -Xc -D__EXTENSIONS__
 
2767
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2768
do
 
2769
  CC="$ac_save_CC $ac_arg"
 
2770
  rm -f conftest.$ac_objext
 
2771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2772
  (eval $ac_compile) 2>conftest.er1
 
2773
  ac_status=$?
 
2774
  grep -v '^ *+' conftest.er1 >conftest.err
 
2775
  rm -f conftest.er1
 
2776
  cat conftest.err >&5
 
2777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2778
  (exit $ac_status); } &&
 
2779
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2780
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2781
  (eval $ac_try) 2>&5
 
2782
  ac_status=$?
 
2783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2784
  (exit $ac_status); }; } &&
 
2785
         { ac_try='test -s conftest.$ac_objext'
 
2786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2787
  (eval $ac_try) 2>&5
 
2788
  ac_status=$?
 
2789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2790
  (exit $ac_status); }; }; then
 
2791
  ac_cv_prog_cc_stdc=$ac_arg
 
2792
break
 
2793
else
 
2794
  echo "$as_me: failed program was:" >&5
 
2795
sed 's/^/| /' conftest.$ac_ext >&5
 
2796
 
 
2797
fi
 
2798
rm -f conftest.err conftest.$ac_objext 
 
2799
done
 
2800
rm -f conftest.$ac_ext conftest.$ac_objext
 
2801
CC=$ac_save_CC
 
2802
 
 
2803
fi
 
2804
 
 
2805
case "x$ac_cv_prog_cc_stdc" in
 
2806
  x|xno)
 
2807
    echo "$as_me:$LINENO: result: none needed" >&5
 
2808
echo "${ECHO_T}none needed" >&6 ;;
 
2809
  *)
 
2810
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2811
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2812
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2813
esac
 
2814
 
 
2815
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2816
# in C++ we need to declare it.  In case someone uses the same compiler
 
2817
# for both compiling C and C++ we need to have the C++ compiler decide
 
2818
# the declaration of exit, since it's the most demanding environment.
 
2819
cat >conftest.$ac_ext <<_ACEOF
 
2820
@%:@ifndef __cplusplus
 
2821
  choke me
 
2822
@%:@endif
 
2823
_ACEOF
 
2824
rm -f conftest.$ac_objext
 
2825
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2826
  (eval $ac_compile) 2>conftest.er1
 
2827
  ac_status=$?
 
2828
  grep -v '^ *+' conftest.er1 >conftest.err
 
2829
  rm -f conftest.er1
 
2830
  cat conftest.err >&5
 
2831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2832
  (exit $ac_status); } &&
 
2833
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2835
  (eval $ac_try) 2>&5
 
2836
  ac_status=$?
 
2837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2838
  (exit $ac_status); }; } &&
 
2839
         { ac_try='test -s conftest.$ac_objext'
 
2840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2841
  (eval $ac_try) 2>&5
 
2842
  ac_status=$?
 
2843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2844
  (exit $ac_status); }; }; then
 
2845
  for ac_declaration in \
 
2846
   '' \
 
2847
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2848
   'extern "C" void std::exit (int); using std::exit;' \
 
2849
   'extern "C" void exit (int) throw ();' \
 
2850
   'extern "C" void exit (int);' \
 
2851
   'void exit (int);'
 
2852
do
 
2853
  cat >conftest.$ac_ext <<_ACEOF
 
2854
/* confdefs.h.  */
 
2855
_ACEOF
 
2856
cat confdefs.h >>conftest.$ac_ext
 
2857
cat >>conftest.$ac_ext <<_ACEOF
 
2858
/* end confdefs.h.  */
 
2859
$ac_declaration
 
2860
@%:@include <stdlib.h>
 
2861
int
 
2862
main ()
 
2863
{
 
2864
exit (42);
 
2865
  ;
 
2866
  return 0;
 
2867
}
 
2868
_ACEOF
 
2869
rm -f conftest.$ac_objext
 
2870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2871
  (eval $ac_compile) 2>conftest.er1
 
2872
  ac_status=$?
 
2873
  grep -v '^ *+' conftest.er1 >conftest.err
 
2874
  rm -f conftest.er1
 
2875
  cat conftest.err >&5
 
2876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2877
  (exit $ac_status); } &&
 
2878
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2880
  (eval $ac_try) 2>&5
 
2881
  ac_status=$?
 
2882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2883
  (exit $ac_status); }; } &&
 
2884
         { ac_try='test -s conftest.$ac_objext'
 
2885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2886
  (eval $ac_try) 2>&5
 
2887
  ac_status=$?
 
2888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2889
  (exit $ac_status); }; }; then
 
2890
  :
 
2891
else
 
2892
  echo "$as_me: failed program was:" >&5
 
2893
sed 's/^/| /' conftest.$ac_ext >&5
 
2894
 
 
2895
continue
 
2896
fi
 
2897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2898
  cat >conftest.$ac_ext <<_ACEOF
 
2899
/* confdefs.h.  */
 
2900
_ACEOF
 
2901
cat confdefs.h >>conftest.$ac_ext
 
2902
cat >>conftest.$ac_ext <<_ACEOF
 
2903
/* end confdefs.h.  */
 
2904
$ac_declaration
 
2905
int
 
2906
main ()
 
2907
{
 
2908
exit (42);
 
2909
  ;
 
2910
  return 0;
 
2911
}
 
2912
_ACEOF
 
2913
rm -f conftest.$ac_objext
 
2914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2915
  (eval $ac_compile) 2>conftest.er1
 
2916
  ac_status=$?
 
2917
  grep -v '^ *+' conftest.er1 >conftest.err
 
2918
  rm -f conftest.er1
 
2919
  cat conftest.err >&5
 
2920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2921
  (exit $ac_status); } &&
 
2922
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2924
  (eval $ac_try) 2>&5
 
2925
  ac_status=$?
 
2926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2927
  (exit $ac_status); }; } &&
 
2928
         { ac_try='test -s conftest.$ac_objext'
 
2929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2930
  (eval $ac_try) 2>&5
 
2931
  ac_status=$?
 
2932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2933
  (exit $ac_status); }; }; then
 
2934
  break
 
2935
else
 
2936
  echo "$as_me: failed program was:" >&5
 
2937
sed 's/^/| /' conftest.$ac_ext >&5
 
2938
 
 
2939
fi
 
2940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2941
done
 
2942
rm -f conftest*
 
2943
if test -n "$ac_declaration"; then
 
2944
  echo '#ifdef __cplusplus' >>confdefs.h
 
2945
  echo $ac_declaration      >>confdefs.h
 
2946
  echo '#endif'             >>confdefs.h
 
2947
fi
 
2948
 
 
2949
else
 
2950
  echo "$as_me: failed program was:" >&5
 
2951
sed 's/^/| /' conftest.$ac_ext >&5
 
2952
 
 
2953
fi
 
2954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2955
ac_ext=c
 
2956
ac_cpp='$CPP $CPPFLAGS'
 
2957
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2958
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2959
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2960
DEPDIR="${am__leading_dot}deps"
 
2961
 
 
2962
          ac_config_commands="$ac_config_commands depfiles"
 
2963
 
 
2964
 
 
2965
am_make=${MAKE-make}
 
2966
cat > confinc << 'END'
 
2967
am__doit:
 
2968
        @echo done
 
2969
.PHONY: am__doit
 
2970
END
 
2971
# If we don't find an include directive, just comment out the code.
 
2972
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2973
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2974
am__include="#"
 
2975
am__quote=
 
2976
_am_result=none
 
2977
# First try GNU make style include.
 
2978
echo "include confinc" > confmf
 
2979
# We grep out `Entering directory' and `Leaving directory'
 
2980
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2981
# In particular we don't look at `^make:' because GNU make might
 
2982
# be invoked under some other name (usually "gmake"), in which
 
2983
# case it prints its new name instead of `make'.
 
2984
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2985
   am__include=include
 
2986
   am__quote=
 
2987
   _am_result=GNU
 
2988
fi
 
2989
# Now try BSD make style include.
 
2990
if test "$am__include" = "#"; then
 
2991
   echo '.include "confinc"' > confmf
 
2992
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2993
      am__include=.include
 
2994
      am__quote="\""
 
2995
      _am_result=BSD
 
2996
   fi
 
2997
fi
 
2998
 
 
2999
 
 
3000
echo "$as_me:$LINENO: result: $_am_result" >&5
 
3001
echo "${ECHO_T}$_am_result" >&6
 
3002
rm -f confinc confmf
 
3003
 
 
3004
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3005
if test "${enable_dependency_tracking+set}" = set; then
 
3006
  enableval="$enable_dependency_tracking"
 
3007
  
 
3008
fi; 
 
3009
if test "x$enable_dependency_tracking" != xno; then
 
3010
  am_depcomp="$ac_aux_dir/depcomp"
 
3011
  AMDEPBACKSLASH='\'
 
3012
fi
 
3013
 
 
3014
 
 
3015
if test "x$enable_dependency_tracking" != xno; then
 
3016
  AMDEP_TRUE=
 
3017
  AMDEP_FALSE='#'
 
3018
else
 
3019
  AMDEP_TRUE='#'
 
3020
  AMDEP_FALSE=
 
3021
fi
 
3022
 
 
3023
 
 
3024
 
 
3025
 
 
3026
depcc="$CC"   am_compiler_list=
 
3027
 
 
3028
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3029
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3030
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3031
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3032
else
 
3033
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3034
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3035
  # making bogus files that we don't know about and never remove.  For
 
3036
  # instance it was reported that on HP-UX the gcc test will end up
 
3037
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3038
  # in D'.
 
3039
  mkdir conftest.dir
 
3040
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3041
  # using a relative directory.
 
3042
  cp "$am_depcomp" conftest.dir
 
3043
  cd conftest.dir
 
3044
  # We will build objects and dependencies in a subdirectory because
 
3045
  # it helps to detect inapplicable dependency modes.  For instance
 
3046
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3047
  # side effect of compilation, but ICC will put the dependencies in
 
3048
  # the current directory while Tru64 will put them in the object
 
3049
  # directory.
 
3050
  mkdir sub
 
3051
 
 
3052
  am_cv_CC_dependencies_compiler_type=none
 
3053
  if test "$am_compiler_list" = ""; then
 
3054
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3055
  fi
 
3056
  for depmode in $am_compiler_list; do
 
3057
    # Setup a source with many dependencies, because some compilers
 
3058
    # like to wrap large dependency lists on column 80 (with \), and
 
3059
    # we should not choose a depcomp mode which is confused by this.
 
3060
    #
 
3061
    # We need to recreate these files for each test, as the compiler may
 
3062
    # overwrite some of them when testing with obscure command lines.
 
3063
    # This happens at least with the AIX C compiler.
 
3064
    : > sub/conftest.c
 
3065
    for i in 1 2 3 4 5 6; do
 
3066
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3067
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3068
      # Solaris 8's {/usr,}/bin/sh.
 
3069
      touch sub/conftst$i.h
 
3070
    done
 
3071
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3072
 
 
3073
    case $depmode in
 
3074
    nosideeffect)
 
3075
      # after this tag, mechanisms are not by side-effect, so they'll
 
3076
      # only be used when explicitly requested
 
3077
      if test "x$enable_dependency_tracking" = xyes; then
 
3078
        continue
 
3079
      else
 
3080
        break
 
3081
      fi
 
3082
      ;;
 
3083
    none) break ;;
 
3084
    esac
 
3085
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3086
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3087
    # handle `-M -o', and we need to detect this.
 
3088
    if depmode=$depmode \
 
3089
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3090
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3091
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3092
         >/dev/null 2>conftest.err &&
 
3093
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3094
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3095
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3096
      # icc doesn't choke on unknown options, it will just issue warnings
 
3097
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3098
      # that says an option was ignored or not supported.
 
3099
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3100
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3101
      # The diagnosis changed in icc 8.0:
 
3102
      #   icc: Command line remark: option '-MP' not supported
 
3103
      if (grep 'ignoring option' conftest.err ||
 
3104
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3105
        am_cv_CC_dependencies_compiler_type=$depmode
 
3106
        break
 
3107
      fi
 
3108
    fi
 
3109
  done
 
3110
 
 
3111
  cd ..
 
3112
  rm -rf conftest.dir
 
3113
else
 
3114
  am_cv_CC_dependencies_compiler_type=none
 
3115
fi
 
3116
 
 
3117
fi
 
3118
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3119
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3120
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3121
 
 
3122
 
 
3123
 
 
3124
if 
 
3125
  test "x$enable_dependency_tracking" != xno \
 
3126
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3127
  am__fastdepCC_TRUE=
 
3128
  am__fastdepCC_FALSE='#'
 
3129
else
 
3130
  am__fastdepCC_TRUE='#'
 
3131
  am__fastdepCC_FALSE=
 
3132
fi
 
3133
 
 
3134
 
 
3135
ac_ext=c
 
3136
ac_cpp='$CPP $CPPFLAGS'
 
3137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3140
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3141
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3142
# On Suns, sometimes $CPP names a directory.
 
3143
if test -n "$CPP" && test -d "$CPP"; then
 
3144
  CPP=
 
3145
fi
 
3146
if test -z "$CPP"; then
 
3147
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3149
else
 
3150
      # Double quotes because CPP needs to be expanded
 
3151
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3152
    do
 
3153
      ac_preproc_ok=false
 
3154
for ac_c_preproc_warn_flag in '' yes
 
3155
do
 
3156
  # Use a header file that comes with gcc, so configuring glibc
 
3157
  # with a fresh cross-compiler works.
 
3158
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3159
  # <limits.h> exists even on freestanding compilers.
 
3160
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3161
  # not just through cpp. "Syntax error" is here to catch this case.
 
3162
  cat >conftest.$ac_ext <<_ACEOF
 
3163
/* confdefs.h.  */
 
3164
_ACEOF
 
3165
cat confdefs.h >>conftest.$ac_ext
 
3166
cat >>conftest.$ac_ext <<_ACEOF
 
3167
/* end confdefs.h.  */
 
3168
@%:@ifdef __STDC__
 
3169
@%:@ include <limits.h>
 
3170
@%:@else
 
3171
@%:@ include <assert.h>
 
3172
@%:@endif
 
3173
                     Syntax error
 
3174
_ACEOF
 
3175
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3176
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3177
  ac_status=$?
 
3178
  grep -v '^ *+' conftest.er1 >conftest.err
 
3179
  rm -f conftest.er1
 
3180
  cat conftest.err >&5
 
3181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3182
  (exit $ac_status); } >/dev/null; then
 
3183
  if test -s conftest.err; then
 
3184
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3185
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3186
  else
 
3187
    ac_cpp_err=
 
3188
  fi
 
3189
else
 
3190
  ac_cpp_err=yes
 
3191
fi
 
3192
if test -z "$ac_cpp_err"; then
 
3193
  :
 
3194
else
 
3195
  echo "$as_me: failed program was:" >&5
 
3196
sed 's/^/| /' conftest.$ac_ext >&5
 
3197
 
 
3198
  # Broken: fails on valid input.
 
3199
continue
 
3200
fi
 
3201
rm -f conftest.err conftest.$ac_ext
 
3202
 
 
3203
  # OK, works on sane cases.  Now check whether non-existent headers
 
3204
  # can be detected and how.
 
3205
  cat >conftest.$ac_ext <<_ACEOF
 
3206
/* confdefs.h.  */
 
3207
_ACEOF
 
3208
cat confdefs.h >>conftest.$ac_ext
 
3209
cat >>conftest.$ac_ext <<_ACEOF
 
3210
/* end confdefs.h.  */
 
3211
@%:@include <ac_nonexistent.h>
 
3212
_ACEOF
 
3213
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3214
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3215
  ac_status=$?
 
3216
  grep -v '^ *+' conftest.er1 >conftest.err
 
3217
  rm -f conftest.er1
 
3218
  cat conftest.err >&5
 
3219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3220
  (exit $ac_status); } >/dev/null; then
 
3221
  if test -s conftest.err; then
 
3222
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3223
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3224
  else
 
3225
    ac_cpp_err=
 
3226
  fi
 
3227
else
 
3228
  ac_cpp_err=yes
 
3229
fi
 
3230
if test -z "$ac_cpp_err"; then
 
3231
  # Broken: success on invalid input.
 
3232
continue
 
3233
else
 
3234
  echo "$as_me: failed program was:" >&5
 
3235
sed 's/^/| /' conftest.$ac_ext >&5
 
3236
 
 
3237
  # Passes both tests.
 
3238
ac_preproc_ok=:
 
3239
break
 
3240
fi
 
3241
rm -f conftest.err conftest.$ac_ext
 
3242
 
 
3243
done
 
3244
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3245
rm -f conftest.err conftest.$ac_ext
 
3246
if $ac_preproc_ok; then
 
3247
  break
 
3248
fi
 
3249
 
 
3250
    done
 
3251
    ac_cv_prog_CPP=$CPP
 
3252
  
 
3253
fi
 
3254
  CPP=$ac_cv_prog_CPP
 
3255
else
 
3256
  ac_cv_prog_CPP=$CPP
 
3257
fi
 
3258
echo "$as_me:$LINENO: result: $CPP" >&5
 
3259
echo "${ECHO_T}$CPP" >&6
 
3260
ac_preproc_ok=false
 
3261
for ac_c_preproc_warn_flag in '' yes
 
3262
do
 
3263
  # Use a header file that comes with gcc, so configuring glibc
 
3264
  # with a fresh cross-compiler works.
 
3265
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3266
  # <limits.h> exists even on freestanding compilers.
 
3267
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3268
  # not just through cpp. "Syntax error" is here to catch this case.
 
3269
  cat >conftest.$ac_ext <<_ACEOF
 
3270
/* confdefs.h.  */
 
3271
_ACEOF
 
3272
cat confdefs.h >>conftest.$ac_ext
 
3273
cat >>conftest.$ac_ext <<_ACEOF
 
3274
/* end confdefs.h.  */
 
3275
@%:@ifdef __STDC__
 
3276
@%:@ include <limits.h>
 
3277
@%:@else
 
3278
@%:@ include <assert.h>
 
3279
@%:@endif
 
3280
                     Syntax error
 
3281
_ACEOF
 
3282
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3283
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3284
  ac_status=$?
 
3285
  grep -v '^ *+' conftest.er1 >conftest.err
 
3286
  rm -f conftest.er1
 
3287
  cat conftest.err >&5
 
3288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3289
  (exit $ac_status); } >/dev/null; then
 
3290
  if test -s conftest.err; then
 
3291
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3292
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3293
  else
 
3294
    ac_cpp_err=
 
3295
  fi
 
3296
else
 
3297
  ac_cpp_err=yes
 
3298
fi
 
3299
if test -z "$ac_cpp_err"; then
 
3300
  :
 
3301
else
 
3302
  echo "$as_me: failed program was:" >&5
 
3303
sed 's/^/| /' conftest.$ac_ext >&5
 
3304
 
 
3305
  # Broken: fails on valid input.
 
3306
continue
 
3307
fi
 
3308
rm -f conftest.err conftest.$ac_ext
 
3309
 
 
3310
  # OK, works on sane cases.  Now check whether non-existent headers
 
3311
  # can be detected and how.
 
3312
  cat >conftest.$ac_ext <<_ACEOF
 
3313
/* confdefs.h.  */
 
3314
_ACEOF
 
3315
cat confdefs.h >>conftest.$ac_ext
 
3316
cat >>conftest.$ac_ext <<_ACEOF
 
3317
/* end confdefs.h.  */
 
3318
@%:@include <ac_nonexistent.h>
 
3319
_ACEOF
 
3320
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3321
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3322
  ac_status=$?
 
3323
  grep -v '^ *+' conftest.er1 >conftest.err
 
3324
  rm -f conftest.er1
 
3325
  cat conftest.err >&5
 
3326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3327
  (exit $ac_status); } >/dev/null; then
 
3328
  if test -s conftest.err; then
 
3329
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3330
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3331
  else
 
3332
    ac_cpp_err=
 
3333
  fi
 
3334
else
 
3335
  ac_cpp_err=yes
 
3336
fi
 
3337
if test -z "$ac_cpp_err"; then
 
3338
  # Broken: success on invalid input.
 
3339
continue
 
3340
else
 
3341
  echo "$as_me: failed program was:" >&5
 
3342
sed 's/^/| /' conftest.$ac_ext >&5
 
3343
 
 
3344
  # Passes both tests.
 
3345
ac_preproc_ok=:
 
3346
break
 
3347
fi
 
3348
rm -f conftest.err conftest.$ac_ext
 
3349
 
 
3350
done
 
3351
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3352
rm -f conftest.err conftest.$ac_ext
 
3353
if $ac_preproc_ok; then
 
3354
  :
 
3355
else
 
3356
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3357
See \`config.log' for more details." >&5
 
3358
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3359
See \`config.log' for more details." >&2;}
 
3360
   { (exit 1); exit 1; }; }
 
3361
fi
 
3362
 
 
3363
ac_ext=c
 
3364
ac_cpp='$CPP $CPPFLAGS'
 
3365
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3366
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3367
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3368
 
 
3369
# Find a good install program.  We prefer a C program (faster),
 
3370
# so one script is as good as another.  But avoid the broken or
 
3371
# incompatible versions:
 
3372
# SysV /etc/install, /usr/sbin/install
 
3373
# SunOS /usr/etc/install
 
3374
# IRIX /sbin/install
 
3375
# AIX /bin/install
 
3376
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3377
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3378
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3379
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3380
# OS/2's system install, which has a completely different semantic
 
3381
# ./install, which can be erroneously created by make from ./install.sh.
 
3382
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3383
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3384
if test -z "$INSTALL"; then
 
3385
if test "${ac_cv_path_install+set}" = set; then
 
3386
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3387
else
 
3388
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3389
for as_dir in $PATH
 
3390
do
 
3391
  IFS=$as_save_IFS
 
3392
  test -z "$as_dir" && as_dir=.
 
3393
  # Account for people who put trailing slashes in PATH elements.
 
3394
case $as_dir/ in
 
3395
  ./ | .// | /cC/* | \
 
3396
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3397
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3398
  /usr/ucb/* ) ;;
 
3399
  *)
 
3400
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3401
    # Don't use installbsd from OSF since it installs stuff as root
 
3402
    # by default.
 
3403
    for ac_prog in ginstall scoinst install; do
 
3404
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3405
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3406
          if test $ac_prog = install &&
 
3407
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3408
            # AIX install.  It has an incompatible calling convention.
 
3409
            :
 
3410
          elif test $ac_prog = install &&
 
3411
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3412
            # program-specific install script used by HP pwplus--don't use.
 
3413
            :
 
3414
          else
 
3415
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3416
            break 3
 
3417
          fi
 
3418
        fi
 
3419
      done
 
3420
    done
 
3421
    ;;
 
3422
esac
 
3423
done
 
3424
 
 
3425
 
 
3426
fi
 
3427
  if test "${ac_cv_path_install+set}" = set; then
 
3428
    INSTALL=$ac_cv_path_install
 
3429
  else
 
3430
    # As a last resort, use the slow shell script.  We don't cache a
 
3431
    # path for INSTALL within a source directory, because that will
 
3432
    # break other packages using the cache if that directory is
 
3433
    # removed, or if the path is relative.
 
3434
    INSTALL=$ac_install_sh
 
3435
  fi
 
3436
fi
 
3437
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3438
echo "${ECHO_T}$INSTALL" >&6
 
3439
 
 
3440
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3441
# It thinks the first close brace ends the variable substitution.
 
3442
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3443
 
 
3444
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3445
 
 
3446
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3447
 
 
3448
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3449
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3450
LN_S=$as_ln_s
 
3451
if test "$LN_S" = "ln -s"; then
 
3452
  echo "$as_me:$LINENO: result: yes" >&5
 
3453
echo "${ECHO_T}yes" >&6
 
3454
else
 
3455
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3456
echo "${ECHO_T}no, using $LN_S" >&6
 
3457
fi
 
3458
 
 
3459
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3460
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3461
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3462
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3464
else
 
3465
  cat >conftest.make <<\_ACEOF
 
3466
all:
 
3467
        @echo 'ac_maketemp="$(MAKE)"'
 
3468
_ACEOF
 
3469
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3470
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3471
if test -n "$ac_maketemp"; then
 
3472
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3473
else
 
3474
  eval ac_cv_prog_make_${ac_make}_set=no
 
3475
fi
 
3476
rm -f conftest.make
 
3477
fi
 
3478
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3479
  echo "$as_me:$LINENO: result: yes" >&5
 
3480
echo "${ECHO_T}yes" >&6
 
3481
  SET_MAKE=
 
3482
else
 
3483
  echo "$as_me:$LINENO: result: no" >&5
 
3484
echo "${ECHO_T}no" >&6
 
3485
  SET_MAKE="MAKE=${MAKE-make}"
 
3486
fi
 
3487
 
 
3488
 
 
3489
 
 
3490
 
 
3491
echo "$as_me:$LINENO: checking for egrep" >&5
 
3492
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3493
if test "${ac_cv_prog_egrep+set}" = set; then
 
3494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3495
else
 
3496
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3497
    then ac_cv_prog_egrep='grep -E'
 
3498
    else ac_cv_prog_egrep='egrep'
 
3499
    fi
 
3500
fi
 
3501
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3502
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3503
 EGREP=$ac_cv_prog_egrep
 
3504
 
 
3505
 
 
3506
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3507
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3508
if test "${ac_cv_header_stdc+set}" = set; then
 
3509
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3510
else
 
3511
  cat >conftest.$ac_ext <<_ACEOF
 
3512
/* confdefs.h.  */
 
3513
_ACEOF
 
3514
cat confdefs.h >>conftest.$ac_ext
 
3515
cat >>conftest.$ac_ext <<_ACEOF
 
3516
/* end confdefs.h.  */
 
3517
#include <stdlib.h>
 
3518
#include <stdarg.h>
 
3519
#include <string.h>
 
3520
#include <float.h>
 
3521
 
 
3522
int
 
3523
main ()
 
3524
{
 
3525
 
 
3526
  ;
 
3527
  return 0;
 
3528
}
 
3529
_ACEOF
 
3530
rm -f conftest.$ac_objext
 
3531
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3532
  (eval $ac_compile) 2>conftest.er1
 
3533
  ac_status=$?
 
3534
  grep -v '^ *+' conftest.er1 >conftest.err
 
3535
  rm -f conftest.er1
 
3536
  cat conftest.err >&5
 
3537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3538
  (exit $ac_status); } &&
 
3539
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3540
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3541
  (eval $ac_try) 2>&5
 
3542
  ac_status=$?
 
3543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3544
  (exit $ac_status); }; } &&
 
3545
         { ac_try='test -s conftest.$ac_objext'
 
3546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3547
  (eval $ac_try) 2>&5
 
3548
  ac_status=$?
 
3549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3550
  (exit $ac_status); }; }; then
 
3551
  ac_cv_header_stdc=yes
 
3552
else
 
3553
  echo "$as_me: failed program was:" >&5
 
3554
sed 's/^/| /' conftest.$ac_ext >&5
 
3555
 
 
3556
ac_cv_header_stdc=no
 
3557
fi
 
3558
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3559
 
 
3560
if test $ac_cv_header_stdc = yes; then
 
3561
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3562
  cat >conftest.$ac_ext <<_ACEOF
 
3563
/* confdefs.h.  */
 
3564
_ACEOF
 
3565
cat confdefs.h >>conftest.$ac_ext
 
3566
cat >>conftest.$ac_ext <<_ACEOF
 
3567
/* end confdefs.h.  */
 
3568
#include <string.h>
 
3569
 
 
3570
_ACEOF
 
3571
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3572
  $EGREP "memchr" >/dev/null 2>&1; then
 
3573
  :
 
3574
else
 
3575
  ac_cv_header_stdc=no
 
3576
fi
 
3577
rm -f conftest*
 
3578
 
 
3579
fi
 
3580
 
 
3581
if test $ac_cv_header_stdc = yes; then
 
3582
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3583
  cat >conftest.$ac_ext <<_ACEOF
 
3584
/* confdefs.h.  */
 
3585
_ACEOF
 
3586
cat confdefs.h >>conftest.$ac_ext
 
3587
cat >>conftest.$ac_ext <<_ACEOF
 
3588
/* end confdefs.h.  */
 
3589
#include <stdlib.h>
 
3590
 
 
3591
_ACEOF
 
3592
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3593
  $EGREP "free" >/dev/null 2>&1; then
 
3594
  :
 
3595
else
 
3596
  ac_cv_header_stdc=no
 
3597
fi
 
3598
rm -f conftest*
 
3599
 
 
3600
fi
 
3601
 
 
3602
if test $ac_cv_header_stdc = yes; then
 
3603
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3604
  if test "$cross_compiling" = yes; then
 
3605
  :
 
3606
else
 
3607
  cat >conftest.$ac_ext <<_ACEOF
 
3608
/* confdefs.h.  */
 
3609
_ACEOF
 
3610
cat confdefs.h >>conftest.$ac_ext
 
3611
cat >>conftest.$ac_ext <<_ACEOF
 
3612
/* end confdefs.h.  */
 
3613
#include <ctype.h>
 
3614
#if ((' ' & 0x0FF) == 0x020)
 
3615
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3616
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3617
#else
 
3618
# define ISLOWER(c) \
 
3619
                   (('a' <= (c) && (c) <= 'i') \
 
3620
                     || ('j' <= (c) && (c) <= 'r') \
 
3621
                     || ('s' <= (c) && (c) <= 'z'))
 
3622
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3623
#endif
 
3624
 
 
3625
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3626
int
 
3627
main ()
 
3628
{
 
3629
  int i;
 
3630
  for (i = 0; i < 256; i++)
 
3631
    if (XOR (islower (i), ISLOWER (i))
 
3632
        || toupper (i) != TOUPPER (i))
 
3633
      exit(2);
 
3634
  exit (0);
 
3635
}
 
3636
_ACEOF
 
3637
rm -f conftest$ac_exeext
 
3638
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3639
  (eval $ac_link) 2>&5
 
3640
  ac_status=$?
 
3641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3642
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3644
  (eval $ac_try) 2>&5
 
3645
  ac_status=$?
 
3646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3647
  (exit $ac_status); }; }; then
 
3648
  :
 
3649
else
 
3650
  echo "$as_me: program exited with status $ac_status" >&5
 
3651
echo "$as_me: failed program was:" >&5
 
3652
sed 's/^/| /' conftest.$ac_ext >&5
 
3653
 
 
3654
( exit $ac_status )
 
3655
ac_cv_header_stdc=no
 
3656
fi
 
3657
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3658
fi
 
3659
fi
 
3660
fi
 
3661
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3662
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3663
if test $ac_cv_header_stdc = yes; then
 
3664
  
 
3665
cat >>confdefs.h <<\_ACEOF
 
3666
@%:@define STDC_HEADERS 1
 
3667
_ACEOF
 
3668
 
 
3669
fi
 
3670
 
 
3671
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3672
 
 
3673
 
 
3674
 
 
3675
 
 
3676
 
 
3677
 
 
3678
 
 
3679
 
 
3680
 
 
3681
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3682
                  inttypes.h stdint.h unistd.h
 
3683
do
 
3684
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3685
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3686
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3687
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3689
else
 
3690
  cat >conftest.$ac_ext <<_ACEOF
 
3691
/* confdefs.h.  */
 
3692
_ACEOF
 
3693
cat confdefs.h >>conftest.$ac_ext
 
3694
cat >>conftest.$ac_ext <<_ACEOF
 
3695
/* end confdefs.h.  */
 
3696
$ac_includes_default
 
3697
 
 
3698
@%:@include <$ac_header>
 
3699
_ACEOF
 
3700
rm -f conftest.$ac_objext
 
3701
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3702
  (eval $ac_compile) 2>conftest.er1
 
3703
  ac_status=$?
 
3704
  grep -v '^ *+' conftest.er1 >conftest.err
 
3705
  rm -f conftest.er1
 
3706
  cat conftest.err >&5
 
3707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3708
  (exit $ac_status); } &&
 
3709
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3711
  (eval $ac_try) 2>&5
 
3712
  ac_status=$?
 
3713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3714
  (exit $ac_status); }; } &&
 
3715
         { ac_try='test -s conftest.$ac_objext'
 
3716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3717
  (eval $ac_try) 2>&5
 
3718
  ac_status=$?
 
3719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3720
  (exit $ac_status); }; }; then
 
3721
  eval "$as_ac_Header=yes"
 
3722
else
 
3723
  echo "$as_me: failed program was:" >&5
 
3724
sed 's/^/| /' conftest.$ac_ext >&5
 
3725
 
 
3726
eval "$as_ac_Header=no"
 
3727
fi
 
3728
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3729
fi
 
3730
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3731
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3732
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3733
  cat >>confdefs.h <<_ACEOF
 
3734
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3735
_ACEOF
 
3736
 
 
3737
fi
 
3738
 
 
3739
done
 
3740
 
 
3741
 
 
3742
 
 
3743
 
 
3744
 
 
3745
 
 
3746
 
 
3747
 
 
3748
 
 
3749
 
 
3750
 
 
3751
 
 
3752
 
 
3753
 
 
3754
for ac_header in fcntl.h inttypes.h limits.h malloc.h stddef.h stdint.h stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h
 
3755
do
 
3756
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3758
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3759
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3760
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3762
fi
 
3763
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3764
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3765
else
 
3766
  # Is the header compilable?
 
3767
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3768
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3769
cat >conftest.$ac_ext <<_ACEOF
 
3770
/* confdefs.h.  */
 
3771
_ACEOF
 
3772
cat confdefs.h >>conftest.$ac_ext
 
3773
cat >>conftest.$ac_ext <<_ACEOF
 
3774
/* end confdefs.h.  */
 
3775
$ac_includes_default
 
3776
@%:@include <$ac_header>
 
3777
_ACEOF
 
3778
rm -f conftest.$ac_objext
 
3779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3780
  (eval $ac_compile) 2>conftest.er1
 
3781
  ac_status=$?
 
3782
  grep -v '^ *+' conftest.er1 >conftest.err
 
3783
  rm -f conftest.er1
 
3784
  cat conftest.err >&5
 
3785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3786
  (exit $ac_status); } &&
 
3787
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3789
  (eval $ac_try) 2>&5
 
3790
  ac_status=$?
 
3791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3792
  (exit $ac_status); }; } &&
 
3793
         { ac_try='test -s conftest.$ac_objext'
 
3794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3795
  (eval $ac_try) 2>&5
 
3796
  ac_status=$?
 
3797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3798
  (exit $ac_status); }; }; then
 
3799
  ac_header_compiler=yes
 
3800
else
 
3801
  echo "$as_me: failed program was:" >&5
 
3802
sed 's/^/| /' conftest.$ac_ext >&5
 
3803
 
 
3804
ac_header_compiler=no
 
3805
fi
 
3806
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3807
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3808
echo "${ECHO_T}$ac_header_compiler" >&6
 
3809
 
 
3810
# Is the header present?
 
3811
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3812
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3813
cat >conftest.$ac_ext <<_ACEOF
 
3814
/* confdefs.h.  */
 
3815
_ACEOF
 
3816
cat confdefs.h >>conftest.$ac_ext
 
3817
cat >>conftest.$ac_ext <<_ACEOF
 
3818
/* end confdefs.h.  */
 
3819
@%:@include <$ac_header>
 
3820
_ACEOF
 
3821
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3822
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3823
  ac_status=$?
 
3824
  grep -v '^ *+' conftest.er1 >conftest.err
 
3825
  rm -f conftest.er1
 
3826
  cat conftest.err >&5
 
3827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3828
  (exit $ac_status); } >/dev/null; then
 
3829
  if test -s conftest.err; then
 
3830
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3831
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3832
  else
 
3833
    ac_cpp_err=
 
3834
  fi
 
3835
else
 
3836
  ac_cpp_err=yes
 
3837
fi
 
3838
if test -z "$ac_cpp_err"; then
 
3839
  ac_header_preproc=yes
 
3840
else
 
3841
  echo "$as_me: failed program was:" >&5
 
3842
sed 's/^/| /' conftest.$ac_ext >&5
 
3843
 
 
3844
  ac_header_preproc=no
 
3845
fi
 
3846
rm -f conftest.err conftest.$ac_ext
 
3847
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3848
echo "${ECHO_T}$ac_header_preproc" >&6
 
3849
 
 
3850
# So?  What about this header?
 
3851
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3852
  yes:no: )
 
3853
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3854
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3855
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
3856
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
3857
    ac_header_preproc=yes
 
3858
    ;;
 
3859
  no:yes:* )
 
3860
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3861
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3862
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
3863
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
3864
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
3865
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
3866
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
3867
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3868
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3869
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3870
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
3871
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
3872
    (
 
3873
      cat <<\_ASBOX
 
3874
@%:@@%:@ ---------------------------------- @%:@@%:@
 
3875
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
 
3876
@%:@@%:@ ---------------------------------- @%:@@%:@
 
3877
_ASBOX
 
3878
    ) |
 
3879
      sed "s/^/$as_me: WARNING:     /" >&2
 
3880
    ;;
 
3881
esac
 
3882
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3883
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3884
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3886
else
 
3887
  eval "$as_ac_Header=\$ac_header_preproc"
 
3888
fi
 
3889
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3890
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3891
 
 
3892
fi
 
3893
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3894
  cat >>confdefs.h <<_ACEOF
 
3895
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3896
_ACEOF
 
3897
 
 
3898
fi
 
3899
 
 
3900
done
 
3901
 
 
3902
 
 
3903
 
 
3904
echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
3905
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
 
3906
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
3907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3908
else
 
3909
  cat >conftest.$ac_ext <<_ACEOF
 
3910
/* confdefs.h.  */
 
3911
_ACEOF
 
3912
cat confdefs.h >>conftest.$ac_ext
 
3913
cat >>conftest.$ac_ext <<_ACEOF
 
3914
/* end confdefs.h.  */
 
3915
 
 
3916
#include <stdbool.h>
 
3917
#ifndef bool
 
3918
# error bool is not defined
 
3919
#endif
 
3920
#ifndef false
 
3921
# error false is not defined
 
3922
#endif
 
3923
#if false
 
3924
# error false is not 0
 
3925
#endif
 
3926
#ifndef true
 
3927
# error true is not defined
 
3928
#endif
 
3929
#if true != 1
 
3930
# error true is not 1
 
3931
#endif
 
3932
#ifndef __bool_true_false_are_defined
 
3933
# error __bool_true_false_are_defined is not defined
 
3934
#endif
 
3935
 
 
3936
        struct s { _Bool s: 1; _Bool t; } s;
 
3937
 
 
3938
        char a[true == 1 ? 1 : -1];
 
3939
        char b[false == 0 ? 1 : -1];
 
3940
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
3941
        char d[(bool) -0.5 == true ? 1 : -1];
 
3942
        bool e = &s;
 
3943
        char f[(_Bool) -0.0 == false ? 1 : -1];
 
3944
        char g[true];
 
3945
        char h[sizeof (_Bool)];
 
3946
        char i[sizeof s.t];
 
3947
      
 
3948
int
 
3949
main ()
 
3950
{
 
3951
 return !a + !b + !c + !d + !e + !f + !g + !h + !i; 
 
3952
  ;
 
3953
  return 0;
 
3954
}
 
3955
_ACEOF
 
3956
rm -f conftest.$ac_objext
 
3957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3958
  (eval $ac_compile) 2>conftest.er1
 
3959
  ac_status=$?
 
3960
  grep -v '^ *+' conftest.er1 >conftest.err
 
3961
  rm -f conftest.er1
 
3962
  cat conftest.err >&5
 
3963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3964
  (exit $ac_status); } &&
 
3965
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3966
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3967
  (eval $ac_try) 2>&5
 
3968
  ac_status=$?
 
3969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3970
  (exit $ac_status); }; } &&
 
3971
         { ac_try='test -s conftest.$ac_objext'
 
3972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3973
  (eval $ac_try) 2>&5
 
3974
  ac_status=$?
 
3975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3976
  (exit $ac_status); }; }; then
 
3977
  ac_cv_header_stdbool_h=yes
 
3978
else
 
3979
  echo "$as_me: failed program was:" >&5
 
3980
sed 's/^/| /' conftest.$ac_ext >&5
 
3981
 
 
3982
ac_cv_header_stdbool_h=no
 
3983
fi
 
3984
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3985
fi
 
3986
echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
3987
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
 
3988
echo "$as_me:$LINENO: checking for _Bool" >&5
 
3989
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
 
3990
if test "${ac_cv_type__Bool+set}" = set; then
 
3991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3992
else
 
3993
  cat >conftest.$ac_ext <<_ACEOF
 
3994
/* confdefs.h.  */
 
3995
_ACEOF
 
3996
cat confdefs.h >>conftest.$ac_ext
 
3997
cat >>conftest.$ac_ext <<_ACEOF
 
3998
/* end confdefs.h.  */
 
3999
$ac_includes_default
 
4000
int
 
4001
main ()
 
4002
{
 
4003
if ((_Bool *) 0)
 
4004
  return 0;
 
4005
if (sizeof (_Bool))
 
4006
  return 0;
 
4007
  ;
 
4008
  return 0;
 
4009
}
 
4010
_ACEOF
 
4011
rm -f conftest.$ac_objext
 
4012
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4013
  (eval $ac_compile) 2>conftest.er1
 
4014
  ac_status=$?
 
4015
  grep -v '^ *+' conftest.er1 >conftest.err
 
4016
  rm -f conftest.er1
 
4017
  cat conftest.err >&5
 
4018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4019
  (exit $ac_status); } &&
 
4020
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4022
  (eval $ac_try) 2>&5
 
4023
  ac_status=$?
 
4024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4025
  (exit $ac_status); }; } &&
 
4026
         { ac_try='test -s conftest.$ac_objext'
 
4027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4028
  (eval $ac_try) 2>&5
 
4029
  ac_status=$?
 
4030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4031
  (exit $ac_status); }; }; then
 
4032
  ac_cv_type__Bool=yes
 
4033
else
 
4034
  echo "$as_me: failed program was:" >&5
 
4035
sed 's/^/| /' conftest.$ac_ext >&5
 
4036
 
 
4037
ac_cv_type__Bool=no
 
4038
fi
 
4039
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4040
fi
 
4041
echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
4042
echo "${ECHO_T}$ac_cv_type__Bool" >&6
 
4043
if test $ac_cv_type__Bool = yes; then
 
4044
  
 
4045
cat >>confdefs.h <<_ACEOF
 
4046
@%:@define HAVE__BOOL 1
 
4047
_ACEOF
 
4048
 
 
4049
 
 
4050
fi
 
4051
 
 
4052
if test $ac_cv_header_stdbool_h = yes; then
 
4053
  
 
4054
cat >>confdefs.h <<\_ACEOF
 
4055
@%:@define HAVE_STDBOOL_H 1
 
4056
_ACEOF
 
4057
 
 
4058
fi
 
4059
 
 
4060
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4061
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
4062
if test "${ac_cv_c_const+set}" = set; then
 
4063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4064
else
 
4065
  cat >conftest.$ac_ext <<_ACEOF
 
4066
/* confdefs.h.  */
 
4067
_ACEOF
 
4068
cat confdefs.h >>conftest.$ac_ext
 
4069
cat >>conftest.$ac_ext <<_ACEOF
 
4070
/* end confdefs.h.  */
 
4071
 
 
4072
int
 
4073
main ()
 
4074
{
 
4075
/* FIXME: Include the comments suggested by Paul. */
 
4076
#ifndef __cplusplus
 
4077
  /* Ultrix mips cc rejects this.  */
 
4078
  typedef int charset[2];
 
4079
  const charset x;
 
4080
  /* SunOS 4.1.1 cc rejects this.  */
 
4081
  char const *const *ccp;
 
4082
  char **p;
 
4083
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4084
  struct point {int x, y;};
 
4085
  static struct point const zero = {0,0};
 
4086
  /* AIX XL C 1.02.0.0 rejects this.
 
4087
     It does not let you subtract one const X* pointer from another in
 
4088
     an arm of an if-expression whose if-part is not a constant
 
4089
     expression */
 
4090
  const char *g = "string";
 
4091
  ccp = &g + (g ? g-g : 0);
 
4092
  /* HPUX 7.0 cc rejects these. */
 
4093
  ++ccp;
 
4094
  p = (char**) ccp;
 
4095
  ccp = (char const *const *) p;
 
4096
  { /* SCO 3.2v4 cc rejects this.  */
 
4097
    char *t;
 
4098
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4099
 
 
4100
    *t++ = 0;
 
4101
  }
 
4102
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4103
    int x[] = {25, 17};
 
4104
    const int *foo = &x[0];
 
4105
    ++foo;
 
4106
  }
 
4107
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4108
    typedef const int *iptr;
 
4109
    iptr p = 0;
 
4110
    ++p;
 
4111
  }
 
4112
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4113
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4114
    struct s { int j; const int *ap[3]; };
 
4115
    struct s *b; b->j = 5;
 
4116
  }
 
4117
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4118
    const int foo = 10;
 
4119
  }
 
4120
#endif
 
4121
 
 
4122
  ;
 
4123
  return 0;
 
4124
}
 
4125
_ACEOF
 
4126
rm -f conftest.$ac_objext
 
4127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4128
  (eval $ac_compile) 2>conftest.er1
 
4129
  ac_status=$?
 
4130
  grep -v '^ *+' conftest.er1 >conftest.err
 
4131
  rm -f conftest.er1
 
4132
  cat conftest.err >&5
 
4133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4134
  (exit $ac_status); } &&
 
4135
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4137
  (eval $ac_try) 2>&5
 
4138
  ac_status=$?
 
4139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4140
  (exit $ac_status); }; } &&
 
4141
         { ac_try='test -s conftest.$ac_objext'
 
4142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4143
  (eval $ac_try) 2>&5
 
4144
  ac_status=$?
 
4145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4146
  (exit $ac_status); }; }; then
 
4147
  ac_cv_c_const=yes
 
4148
else
 
4149
  echo "$as_me: failed program was:" >&5
 
4150
sed 's/^/| /' conftest.$ac_ext >&5
 
4151
 
 
4152
ac_cv_c_const=no
 
4153
fi
 
4154
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4155
fi
 
4156
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4157
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4158
if test $ac_cv_c_const = no; then
 
4159
  
 
4160
cat >>confdefs.h <<\_ACEOF
 
4161
@%:@define const 
 
4162
_ACEOF
 
4163
 
 
4164
fi
 
4165
 
 
4166
echo "$as_me:$LINENO: checking for inline" >&5
 
4167
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
4168
if test "${ac_cv_c_inline+set}" = set; then
 
4169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4170
else
 
4171
  ac_cv_c_inline=no
 
4172
for ac_kw in inline __inline__ __inline; do
 
4173
  cat >conftest.$ac_ext <<_ACEOF
 
4174
/* confdefs.h.  */
 
4175
_ACEOF
 
4176
cat confdefs.h >>conftest.$ac_ext
 
4177
cat >>conftest.$ac_ext <<_ACEOF
 
4178
/* end confdefs.h.  */
 
4179
#ifndef __cplusplus
 
4180
typedef int foo_t;
 
4181
static $ac_kw foo_t static_foo () {return 0; }
 
4182
$ac_kw foo_t foo () {return 0; }
 
4183
#endif
 
4184
 
 
4185
_ACEOF
 
4186
rm -f conftest.$ac_objext
 
4187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4188
  (eval $ac_compile) 2>conftest.er1
 
4189
  ac_status=$?
 
4190
  grep -v '^ *+' conftest.er1 >conftest.err
 
4191
  rm -f conftest.er1
 
4192
  cat conftest.err >&5
 
4193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4194
  (exit $ac_status); } &&
 
4195
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4197
  (eval $ac_try) 2>&5
 
4198
  ac_status=$?
 
4199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4200
  (exit $ac_status); }; } &&
 
4201
         { ac_try='test -s conftest.$ac_objext'
 
4202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4203
  (eval $ac_try) 2>&5
 
4204
  ac_status=$?
 
4205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4206
  (exit $ac_status); }; }; then
 
4207
  ac_cv_c_inline=$ac_kw; break
 
4208
else
 
4209
  echo "$as_me: failed program was:" >&5
 
4210
sed 's/^/| /' conftest.$ac_ext >&5
 
4211
 
 
4212
fi
 
4213
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4214
done
 
4215
 
 
4216
fi
 
4217
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
4218
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
4219
 
 
4220
 
 
4221
case $ac_cv_c_inline in
 
4222
  inline | yes) ;;
 
4223
  *)
 
4224
    case $ac_cv_c_inline in
 
4225
      no) ac_val=;;
 
4226
      *) ac_val=$ac_cv_c_inline;;
 
4227
    esac
 
4228
    cat >>confdefs.h <<_ACEOF
 
4229
#ifndef __cplusplus
 
4230
#define inline $ac_val
 
4231
#endif
 
4232
_ACEOF
 
4233
    ;;
 
4234
esac
 
4235
 
 
4236
echo "$as_me:$LINENO: checking for size_t" >&5
 
4237
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
4238
if test "${ac_cv_type_size_t+set}" = set; then
 
4239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4240
else
 
4241
  cat >conftest.$ac_ext <<_ACEOF
 
4242
/* confdefs.h.  */
 
4243
_ACEOF
 
4244
cat confdefs.h >>conftest.$ac_ext
 
4245
cat >>conftest.$ac_ext <<_ACEOF
 
4246
/* end confdefs.h.  */
 
4247
$ac_includes_default
 
4248
int
 
4249
main ()
 
4250
{
 
4251
if ((size_t *) 0)
 
4252
  return 0;
 
4253
if (sizeof (size_t))
 
4254
  return 0;
 
4255
  ;
 
4256
  return 0;
 
4257
}
 
4258
_ACEOF
 
4259
rm -f conftest.$ac_objext
 
4260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4261
  (eval $ac_compile) 2>conftest.er1
 
4262
  ac_status=$?
 
4263
  grep -v '^ *+' conftest.er1 >conftest.err
 
4264
  rm -f conftest.er1
 
4265
  cat conftest.err >&5
 
4266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4267
  (exit $ac_status); } &&
 
4268
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4270
  (eval $ac_try) 2>&5
 
4271
  ac_status=$?
 
4272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4273
  (exit $ac_status); }; } &&
 
4274
         { ac_try='test -s conftest.$ac_objext'
 
4275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4276
  (eval $ac_try) 2>&5
 
4277
  ac_status=$?
 
4278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4279
  (exit $ac_status); }; }; then
 
4280
  ac_cv_type_size_t=yes
 
4281
else
 
4282
  echo "$as_me: failed program was:" >&5
 
4283
sed 's/^/| /' conftest.$ac_ext >&5
 
4284
 
 
4285
ac_cv_type_size_t=no
 
4286
fi
 
4287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4288
fi
 
4289
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
4290
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
4291
if test $ac_cv_type_size_t = yes; then
 
4292
  :
 
4293
else
 
4294
  
 
4295
cat >>confdefs.h <<_ACEOF
 
4296
@%:@define size_t unsigned
 
4297
_ACEOF
 
4298
 
 
4299
fi
 
4300
 
 
4301
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
4302
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
4303
if test "${ac_cv_header_time+set}" = set; then
 
4304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4305
else
 
4306
  cat >conftest.$ac_ext <<_ACEOF
 
4307
/* confdefs.h.  */
 
4308
_ACEOF
 
4309
cat confdefs.h >>conftest.$ac_ext
 
4310
cat >>conftest.$ac_ext <<_ACEOF
 
4311
/* end confdefs.h.  */
 
4312
#include <sys/types.h>
 
4313
#include <sys/time.h>
 
4314
#include <time.h>
 
4315
 
 
4316
int
 
4317
main ()
 
4318
{
 
4319
if ((struct tm *) 0)
 
4320
return 0;
 
4321
  ;
 
4322
  return 0;
 
4323
}
 
4324
_ACEOF
 
4325
rm -f conftest.$ac_objext
 
4326
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4327
  (eval $ac_compile) 2>conftest.er1
 
4328
  ac_status=$?
 
4329
  grep -v '^ *+' conftest.er1 >conftest.err
 
4330
  rm -f conftest.er1
 
4331
  cat conftest.err >&5
 
4332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4333
  (exit $ac_status); } &&
 
4334
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4336
  (eval $ac_try) 2>&5
 
4337
  ac_status=$?
 
4338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4339
  (exit $ac_status); }; } &&
 
4340
         { ac_try='test -s conftest.$ac_objext'
 
4341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4342
  (eval $ac_try) 2>&5
 
4343
  ac_status=$?
 
4344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4345
  (exit $ac_status); }; }; then
 
4346
  ac_cv_header_time=yes
 
4347
else
 
4348
  echo "$as_me: failed program was:" >&5
 
4349
sed 's/^/| /' conftest.$ac_ext >&5
 
4350
 
 
4351
ac_cv_header_time=no
 
4352
fi
 
4353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4354
fi
 
4355
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
4356
echo "${ECHO_T}$ac_cv_header_time" >&6
 
4357
if test $ac_cv_header_time = yes; then
 
4358
  
 
4359
cat >>confdefs.h <<\_ACEOF
 
4360
@%:@define TIME_WITH_SYS_TIME 1
 
4361
_ACEOF
 
4362
 
 
4363
fi
 
4364
 
 
4365
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
4366
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
 
4367
if test "${ac_cv_struct_tm+set}" = set; then
 
4368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4369
else
 
4370
  cat >conftest.$ac_ext <<_ACEOF
 
4371
/* confdefs.h.  */
 
4372
_ACEOF
 
4373
cat confdefs.h >>conftest.$ac_ext
 
4374
cat >>conftest.$ac_ext <<_ACEOF
 
4375
/* end confdefs.h.  */
 
4376
#include <sys/types.h>
 
4377
#include <time.h>
 
4378
 
 
4379
int
 
4380
main ()
 
4381
{
 
4382
struct tm *tp; tp->tm_sec;
 
4383
  ;
 
4384
  return 0;
 
4385
}
 
4386
_ACEOF
 
4387
rm -f conftest.$ac_objext
 
4388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4389
  (eval $ac_compile) 2>conftest.er1
 
4390
  ac_status=$?
 
4391
  grep -v '^ *+' conftest.er1 >conftest.err
 
4392
  rm -f conftest.er1
 
4393
  cat conftest.err >&5
 
4394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4395
  (exit $ac_status); } &&
 
4396
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4398
  (eval $ac_try) 2>&5
 
4399
  ac_status=$?
 
4400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4401
  (exit $ac_status); }; } &&
 
4402
         { ac_try='test -s conftest.$ac_objext'
 
4403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4404
  (eval $ac_try) 2>&5
 
4405
  ac_status=$?
 
4406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4407
  (exit $ac_status); }; }; then
 
4408
  ac_cv_struct_tm=time.h
 
4409
else
 
4410
  echo "$as_me: failed program was:" >&5
 
4411
sed 's/^/| /' conftest.$ac_ext >&5
 
4412
 
 
4413
ac_cv_struct_tm=sys/time.h
 
4414
fi
 
4415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4416
fi
 
4417
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
4418
echo "${ECHO_T}$ac_cv_struct_tm" >&6
 
4419
if test $ac_cv_struct_tm = sys/time.h; then
 
4420
  
 
4421
cat >>confdefs.h <<\_ACEOF
 
4422
@%:@define TM_IN_SYS_TIME 1
 
4423
_ACEOF
 
4424
 
 
4425
fi
 
4426
 
 
4427
echo "$as_me:$LINENO: checking for working volatile" >&5
 
4428
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
 
4429
if test "${ac_cv_c_volatile+set}" = set; then
 
4430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4431
else
 
4432
  cat >conftest.$ac_ext <<_ACEOF
 
4433
/* confdefs.h.  */
 
4434
_ACEOF
 
4435
cat confdefs.h >>conftest.$ac_ext
 
4436
cat >>conftest.$ac_ext <<_ACEOF
 
4437
/* end confdefs.h.  */
 
4438
 
 
4439
int
 
4440
main ()
 
4441
{
 
4442
 
 
4443
volatile int x;
 
4444
int * volatile y;
 
4445
  ;
 
4446
  return 0;
 
4447
}
 
4448
_ACEOF
 
4449
rm -f conftest.$ac_objext
 
4450
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4451
  (eval $ac_compile) 2>conftest.er1
 
4452
  ac_status=$?
 
4453
  grep -v '^ *+' conftest.er1 >conftest.err
 
4454
  rm -f conftest.er1
 
4455
  cat conftest.err >&5
 
4456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4457
  (exit $ac_status); } &&
 
4458
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4460
  (eval $ac_try) 2>&5
 
4461
  ac_status=$?
 
4462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4463
  (exit $ac_status); }; } &&
 
4464
         { ac_try='test -s conftest.$ac_objext'
 
4465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4466
  (eval $ac_try) 2>&5
 
4467
  ac_status=$?
 
4468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4469
  (exit $ac_status); }; }; then
 
4470
  ac_cv_c_volatile=yes
 
4471
else
 
4472
  echo "$as_me: failed program was:" >&5
 
4473
sed 's/^/| /' conftest.$ac_ext >&5
 
4474
 
 
4475
ac_cv_c_volatile=no
 
4476
fi
 
4477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4478
fi
 
4479
echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
4480
echo "${ECHO_T}$ac_cv_c_volatile" >&6
 
4481
if test $ac_cv_c_volatile = no; then
 
4482
  
 
4483
cat >>confdefs.h <<\_ACEOF
 
4484
@%:@define volatile 
 
4485
_ACEOF
 
4486
 
 
4487
fi
 
4488
 
 
4489
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
4490
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
 
4491
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
4492
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4493
else
 
4494
  cat >conftest.$ac_ext <<_ACEOF
 
4495
/* confdefs.h.  */
 
4496
_ACEOF
 
4497
cat confdefs.h >>conftest.$ac_ext
 
4498
cat >>conftest.$ac_ext <<_ACEOF
 
4499
/* end confdefs.h.  */
 
4500
$ac_includes_default
 
4501
int
 
4502
main ()
 
4503
{
 
4504
if ((ptrdiff_t *) 0)
 
4505
  return 0;
 
4506
if (sizeof (ptrdiff_t))
 
4507
  return 0;
 
4508
  ;
 
4509
  return 0;
 
4510
}
 
4511
_ACEOF
 
4512
rm -f conftest.$ac_objext
 
4513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4514
  (eval $ac_compile) 2>conftest.er1
 
4515
  ac_status=$?
 
4516
  grep -v '^ *+' conftest.er1 >conftest.err
 
4517
  rm -f conftest.er1
 
4518
  cat conftest.err >&5
 
4519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4520
  (exit $ac_status); } &&
 
4521
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4523
  (eval $ac_try) 2>&5
 
4524
  ac_status=$?
 
4525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4526
  (exit $ac_status); }; } &&
 
4527
         { ac_try='test -s conftest.$ac_objext'
 
4528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4529
  (eval $ac_try) 2>&5
 
4530
  ac_status=$?
 
4531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4532
  (exit $ac_status); }; }; then
 
4533
  ac_cv_type_ptrdiff_t=yes
 
4534
else
 
4535
  echo "$as_me: failed program was:" >&5
 
4536
sed 's/^/| /' conftest.$ac_ext >&5
 
4537
 
 
4538
ac_cv_type_ptrdiff_t=no
 
4539
fi
 
4540
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4541
fi
 
4542
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
4543
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
 
4544
if test $ac_cv_type_ptrdiff_t = yes; then
 
4545
  
 
4546
cat >>confdefs.h <<_ACEOF
 
4547
@%:@define HAVE_PTRDIFF_T 1
 
4548
_ACEOF
 
4549
 
 
4550
 
 
4551
fi
 
4552
 
 
4553
 
 
4554
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
4555
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
4556
if test "${ac_cv_c_bigendian+set}" = set; then
 
4557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4558
else
 
4559
  # See if sys/param.h defines the BYTE_ORDER macro.
 
4560
cat >conftest.$ac_ext <<_ACEOF
 
4561
/* confdefs.h.  */
 
4562
_ACEOF
 
4563
cat confdefs.h >>conftest.$ac_ext
 
4564
cat >>conftest.$ac_ext <<_ACEOF
 
4565
/* end confdefs.h.  */
 
4566
#include <sys/types.h>
 
4567
#include <sys/param.h>
 
4568
 
 
4569
int
 
4570
main ()
 
4571
{
 
4572
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
4573
 bogus endian macros
 
4574
#endif
 
4575
 
 
4576
  ;
 
4577
  return 0;
 
4578
}
 
4579
_ACEOF
 
4580
rm -f conftest.$ac_objext
 
4581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4582
  (eval $ac_compile) 2>conftest.er1
 
4583
  ac_status=$?
 
4584
  grep -v '^ *+' conftest.er1 >conftest.err
 
4585
  rm -f conftest.er1
 
4586
  cat conftest.err >&5
 
4587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4588
  (exit $ac_status); } &&
 
4589
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4591
  (eval $ac_try) 2>&5
 
4592
  ac_status=$?
 
4593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4594
  (exit $ac_status); }; } &&
 
4595
         { ac_try='test -s conftest.$ac_objext'
 
4596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4597
  (eval $ac_try) 2>&5
 
4598
  ac_status=$?
 
4599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4600
  (exit $ac_status); }; }; then
 
4601
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
4602
cat >conftest.$ac_ext <<_ACEOF
 
4603
/* confdefs.h.  */
 
4604
_ACEOF
 
4605
cat confdefs.h >>conftest.$ac_ext
 
4606
cat >>conftest.$ac_ext <<_ACEOF
 
4607
/* end confdefs.h.  */
 
4608
#include <sys/types.h>
 
4609
#include <sys/param.h>
 
4610
 
 
4611
int
 
4612
main ()
 
4613
{
 
4614
#if BYTE_ORDER != BIG_ENDIAN
 
4615
 not big endian
 
4616
#endif
 
4617
 
 
4618
  ;
 
4619
  return 0;
 
4620
}
 
4621
_ACEOF
 
4622
rm -f conftest.$ac_objext
 
4623
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4624
  (eval $ac_compile) 2>conftest.er1
 
4625
  ac_status=$?
 
4626
  grep -v '^ *+' conftest.er1 >conftest.err
 
4627
  rm -f conftest.er1
 
4628
  cat conftest.err >&5
 
4629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4630
  (exit $ac_status); } &&
 
4631
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4633
  (eval $ac_try) 2>&5
 
4634
  ac_status=$?
 
4635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4636
  (exit $ac_status); }; } &&
 
4637
         { ac_try='test -s conftest.$ac_objext'
 
4638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4639
  (eval $ac_try) 2>&5
 
4640
  ac_status=$?
 
4641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4642
  (exit $ac_status); }; }; then
 
4643
  ac_cv_c_bigendian=yes
 
4644
else
 
4645
  echo "$as_me: failed program was:" >&5
 
4646
sed 's/^/| /' conftest.$ac_ext >&5
 
4647
 
 
4648
ac_cv_c_bigendian=no
 
4649
fi
 
4650
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4651
else
 
4652
  echo "$as_me: failed program was:" >&5
 
4653
sed 's/^/| /' conftest.$ac_ext >&5
 
4654
 
 
4655
# It does not; compile a test program.
 
4656
if test "$cross_compiling" = yes; then
 
4657
  # try to guess the endianness by grepping values into an object file
 
4658
  ac_cv_c_bigendian=unknown
 
4659
  cat >conftest.$ac_ext <<_ACEOF
 
4660
/* confdefs.h.  */
 
4661
_ACEOF
 
4662
cat confdefs.h >>conftest.$ac_ext
 
4663
cat >>conftest.$ac_ext <<_ACEOF
 
4664
/* end confdefs.h.  */
 
4665
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
4666
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
4667
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
4668
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
4669
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
4670
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
4671
int
 
4672
main ()
 
4673
{
 
4674
 _ascii (); _ebcdic (); 
 
4675
  ;
 
4676
  return 0;
 
4677
}
 
4678
_ACEOF
 
4679
rm -f conftest.$ac_objext
 
4680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4681
  (eval $ac_compile) 2>conftest.er1
 
4682
  ac_status=$?
 
4683
  grep -v '^ *+' conftest.er1 >conftest.err
 
4684
  rm -f conftest.er1
 
4685
  cat conftest.err >&5
 
4686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4687
  (exit $ac_status); } &&
 
4688
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4690
  (eval $ac_try) 2>&5
 
4691
  ac_status=$?
 
4692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4693
  (exit $ac_status); }; } &&
 
4694
         { ac_try='test -s conftest.$ac_objext'
 
4695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4696
  (eval $ac_try) 2>&5
 
4697
  ac_status=$?
 
4698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4699
  (exit $ac_status); }; }; then
 
4700
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
4701
  ac_cv_c_bigendian=yes
 
4702
fi
 
4703
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
4704
  if test "$ac_cv_c_bigendian" = unknown; then
 
4705
    ac_cv_c_bigendian=no
 
4706
  else
 
4707
    # finding both strings is unlikely to happen, but who knows?
 
4708
    ac_cv_c_bigendian=unknown
 
4709
  fi
 
4710
fi
 
4711
else
 
4712
  echo "$as_me: failed program was:" >&5
 
4713
sed 's/^/| /' conftest.$ac_ext >&5
 
4714
 
 
4715
fi
 
4716
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4717
else
 
4718
  cat >conftest.$ac_ext <<_ACEOF
 
4719
/* confdefs.h.  */
 
4720
_ACEOF
 
4721
cat confdefs.h >>conftest.$ac_ext
 
4722
cat >>conftest.$ac_ext <<_ACEOF
 
4723
/* end confdefs.h.  */
 
4724
int
 
4725
main ()
 
4726
{
 
4727
  /* Are we little or big endian?  From Harbison&Steele.  */
 
4728
  union
 
4729
  {
 
4730
    long l;
 
4731
    char c[sizeof (long)];
 
4732
  } u;
 
4733
  u.l = 1;
 
4734
  exit (u.c[sizeof (long) - 1] == 1);
 
4735
}
 
4736
_ACEOF
 
4737
rm -f conftest$ac_exeext
 
4738
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4739
  (eval $ac_link) 2>&5
 
4740
  ac_status=$?
 
4741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4742
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4744
  (eval $ac_try) 2>&5
 
4745
  ac_status=$?
 
4746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4747
  (exit $ac_status); }; }; then
 
4748
  ac_cv_c_bigendian=no
 
4749
else
 
4750
  echo "$as_me: program exited with status $ac_status" >&5
 
4751
echo "$as_me: failed program was:" >&5
 
4752
sed 's/^/| /' conftest.$ac_ext >&5
 
4753
 
 
4754
( exit $ac_status )
 
4755
ac_cv_c_bigendian=yes
 
4756
fi
 
4757
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4758
fi
 
4759
fi
 
4760
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4761
fi
 
4762
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
4763
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
4764
case $ac_cv_c_bigendian in
 
4765
  yes)
 
4766
    
 
4767
cat >>confdefs.h <<\_ACEOF
 
4768
@%:@define WORDS_BIGENDIAN 1
 
4769
_ACEOF
 
4770
 ;;
 
4771
  no)
 
4772
    
 
4773
cat >>confdefs.h <<\_ACEOF
 
4774
@%:@define JU_LITTLE_ENDIAN 1
 
4775
_ACEOF
 
4776
 ;;
 
4777
  *)
 
4778
    { { echo "$as_me:$LINENO: error: unknown endianness
 
4779
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
4780
echo "$as_me: error: unknown endianness
 
4781
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
4782
   { (exit 1); exit 1; }; } ;;
 
4783
esac
 
4784
 
 
4785
 
 
4786
 
 
4787
# Check whether --enable-32-bit or --disable-32-bit was given.
 
4788
if test "${enable_32_bit+set}" = set; then
 
4789
  enableval="$enable_32_bit"
 
4790
  b32="$enableval"
 
4791
else
 
4792
  b32="no"
 
4793
fi; 
 
4794
if test x"$b32" != "xno"; then
 
4795
    echo "$as_me:$LINENO: result: Building 32-bit" >&5
 
4796
echo "${ECHO_T}Building 32-bit" >&6
 
4797
    CFLAGS="-UJU_64BIT $CFLAGS"
 
4798
fi
 
4799
 
 
4800
# Check whether --enable-64-bit or --disable-64-bit was given.
 
4801
if test "${enable_64_bit+set}" = set; then
 
4802
  enableval="$enable_64_bit"
 
4803
  b64="$enableval"
 
4804
else
 
4805
  b64="no"
 
4806
fi; 
 
4807
if test x"$b64" != "xno"; then
 
4808
    echo "$as_me:$LINENO: result: Building 64-bit" >&5
 
4809
echo "${ECHO_T}Building 64-bit" >&6
 
4810
    CFLAGS="-DJU_64BIT $CFLAGS"
 
4811
fi
 
4812
 
 
4813
if test x"$b32" = "xno"; then 
 
4814
    if test x"$b64" = "xno"; then
 
4815
        { { echo "$as_me:$LINENO: error: You must run configure with either: 
 
4816
                      --enable-32-bit 
 
4817
                      --enable-64-bit" >&5
 
4818
echo "$as_me: error: You must run configure with either: 
 
4819
                      --enable-32-bit 
 
4820
                      --enable-64-bit" >&2;}
 
4821
   { (exit 1); exit 1; }; };
 
4822
    fi
 
4823
fi
 
4824
 
 
4825
#  dnl Determine whether or not we're compiling for a 64-bit system by looking
 
4826
#  dnl at the size of a 'long'.  This will define SIZEOF_LONG in config.h.  We
 
4827
#  dnl append some text to the bottom of config.h to set JU_64BIT appropriately.
 
4828
#  dnl we try to do the correct thing if the user doesn't chose for us. 
 
4829
#  AC_CHECK_SIZEOF(long)
 
4830
#  AH_BOTTOM([/* Define JU_64BIT to 1 if we're on a 64-bit system. */
 
4831
#  if SIZEOF_LONG == 8
 
4832
#    define JU_64BIT 1
 
4833
#  endif])
 
4834
#fi
 
4835
 
 
4836
 
 
4837
echo "$as_me:$LINENO: checking for error_at_line" >&5
 
4838
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
 
4839
if test "${ac_cv_lib_error_at_line+set}" = set; then
 
4840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4841
else
 
4842
  cat >conftest.$ac_ext <<_ACEOF
 
4843
/* confdefs.h.  */
 
4844
_ACEOF
 
4845
cat confdefs.h >>conftest.$ac_ext
 
4846
cat >>conftest.$ac_ext <<_ACEOF
 
4847
/* end confdefs.h.  */
 
4848
$ac_includes_default
 
4849
int
 
4850
main ()
 
4851
{
 
4852
error_at_line (0, 0, "", 0, "");
 
4853
  ;
 
4854
  return 0;
 
4855
}
 
4856
_ACEOF
 
4857
rm -f conftest.$ac_objext conftest$ac_exeext
 
4858
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4859
  (eval $ac_link) 2>conftest.er1
 
4860
  ac_status=$?
 
4861
  grep -v '^ *+' conftest.er1 >conftest.err
 
4862
  rm -f conftest.er1
 
4863
  cat conftest.err >&5
 
4864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4865
  (exit $ac_status); } &&
 
4866
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4868
  (eval $ac_try) 2>&5
 
4869
  ac_status=$?
 
4870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4871
  (exit $ac_status); }; } &&
 
4872
         { ac_try='test -s conftest$ac_exeext'
 
4873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4874
  (eval $ac_try) 2>&5
 
4875
  ac_status=$?
 
4876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4877
  (exit $ac_status); }; }; then
 
4878
  ac_cv_lib_error_at_line=yes
 
4879
else
 
4880
  echo "$as_me: failed program was:" >&5
 
4881
sed 's/^/| /' conftest.$ac_ext >&5
 
4882
 
 
4883
ac_cv_lib_error_at_line=no
 
4884
fi
 
4885
rm -f conftest.err conftest.$ac_objext \
 
4886
      conftest$ac_exeext conftest.$ac_ext
 
4887
fi
 
4888
echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
 
4889
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
 
4890
if test $ac_cv_lib_error_at_line = no; then
 
4891
  case $LIB@&t@OBJS in
 
4892
    "error.$ac_objext"   | \
 
4893
  *" error.$ac_objext"   | \
 
4894
    "error.$ac_objext "* | \
 
4895
  *" error.$ac_objext "* ) ;;
 
4896
  *) LIB@&t@OBJS="$LIB@&t@OBJS error.$ac_objext" ;;
 
4897
esac
 
4898
 
 
4899
fi
 
4900
 
 
4901
 
 
4902
for ac_header in stdlib.h
 
4903
do
 
4904
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4905
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4906
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4907
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4908
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4910
fi
 
4911
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4912
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4913
else
 
4914
  # Is the header compilable?
 
4915
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4916
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4917
cat >conftest.$ac_ext <<_ACEOF
 
4918
/* confdefs.h.  */
 
4919
_ACEOF
 
4920
cat confdefs.h >>conftest.$ac_ext
 
4921
cat >>conftest.$ac_ext <<_ACEOF
 
4922
/* end confdefs.h.  */
 
4923
$ac_includes_default
 
4924
@%:@include <$ac_header>
 
4925
_ACEOF
 
4926
rm -f conftest.$ac_objext
 
4927
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4928
  (eval $ac_compile) 2>conftest.er1
 
4929
  ac_status=$?
 
4930
  grep -v '^ *+' conftest.er1 >conftest.err
 
4931
  rm -f conftest.er1
 
4932
  cat conftest.err >&5
 
4933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4934
  (exit $ac_status); } &&
 
4935
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4937
  (eval $ac_try) 2>&5
 
4938
  ac_status=$?
 
4939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4940
  (exit $ac_status); }; } &&
 
4941
         { ac_try='test -s conftest.$ac_objext'
 
4942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4943
  (eval $ac_try) 2>&5
 
4944
  ac_status=$?
 
4945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4946
  (exit $ac_status); }; }; then
 
4947
  ac_header_compiler=yes
 
4948
else
 
4949
  echo "$as_me: failed program was:" >&5
 
4950
sed 's/^/| /' conftest.$ac_ext >&5
 
4951
 
 
4952
ac_header_compiler=no
 
4953
fi
 
4954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4955
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4956
echo "${ECHO_T}$ac_header_compiler" >&6
 
4957
 
 
4958
# Is the header present?
 
4959
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4960
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4961
cat >conftest.$ac_ext <<_ACEOF
 
4962
/* confdefs.h.  */
 
4963
_ACEOF
 
4964
cat confdefs.h >>conftest.$ac_ext
 
4965
cat >>conftest.$ac_ext <<_ACEOF
 
4966
/* end confdefs.h.  */
 
4967
@%:@include <$ac_header>
 
4968
_ACEOF
 
4969
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4970
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4971
  ac_status=$?
 
4972
  grep -v '^ *+' conftest.er1 >conftest.err
 
4973
  rm -f conftest.er1
 
4974
  cat conftest.err >&5
 
4975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4976
  (exit $ac_status); } >/dev/null; then
 
4977
  if test -s conftest.err; then
 
4978
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4979
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4980
  else
 
4981
    ac_cpp_err=
 
4982
  fi
 
4983
else
 
4984
  ac_cpp_err=yes
 
4985
fi
 
4986
if test -z "$ac_cpp_err"; then
 
4987
  ac_header_preproc=yes
 
4988
else
 
4989
  echo "$as_me: failed program was:" >&5
 
4990
sed 's/^/| /' conftest.$ac_ext >&5
 
4991
 
 
4992
  ac_header_preproc=no
 
4993
fi
 
4994
rm -f conftest.err conftest.$ac_ext
 
4995
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4996
echo "${ECHO_T}$ac_header_preproc" >&6
 
4997
 
 
4998
# So?  What about this header?
 
4999
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5000
  yes:no: )
 
5001
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5002
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5003
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5004
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5005
    ac_header_preproc=yes
 
5006
    ;;
 
5007
  no:yes:* )
 
5008
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5009
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5010
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5011
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5012
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5013
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5014
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5015
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5016
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5017
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5018
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5019
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5020
    (
 
5021
      cat <<\_ASBOX
 
5022
@%:@@%:@ ---------------------------------- @%:@@%:@
 
5023
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
 
5024
@%:@@%:@ ---------------------------------- @%:@@%:@
 
5025
_ASBOX
 
5026
    ) |
 
5027
      sed "s/^/$as_me: WARNING:     /" >&2
 
5028
    ;;
 
5029
esac
 
5030
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5034
else
 
5035
  eval "$as_ac_Header=\$ac_header_preproc"
 
5036
fi
 
5037
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5038
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5039
 
 
5040
fi
 
5041
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5042
  cat >>confdefs.h <<_ACEOF
 
5043
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5044
_ACEOF
 
5045
 
 
5046
fi
 
5047
 
 
5048
done
 
5049
 
 
5050
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
5051
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
5052
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
5053
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5054
else
 
5055
  if test "$cross_compiling" = yes; then
 
5056
  ac_cv_func_malloc_0_nonnull=no
 
5057
else
 
5058
  cat >conftest.$ac_ext <<_ACEOF
 
5059
/* confdefs.h.  */
 
5060
_ACEOF
 
5061
cat confdefs.h >>conftest.$ac_ext
 
5062
cat >>conftest.$ac_ext <<_ACEOF
 
5063
/* end confdefs.h.  */
 
5064
#if STDC_HEADERS || HAVE_STDLIB_H
 
5065
# include <stdlib.h>
 
5066
#else
 
5067
char *malloc ();
 
5068
#endif
 
5069
 
 
5070
int
 
5071
main ()
 
5072
{
 
5073
exit (malloc (0) ? 0 : 1);
 
5074
  ;
 
5075
  return 0;
 
5076
}
 
5077
_ACEOF
 
5078
rm -f conftest$ac_exeext
 
5079
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5080
  (eval $ac_link) 2>&5
 
5081
  ac_status=$?
 
5082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5083
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5085
  (eval $ac_try) 2>&5
 
5086
  ac_status=$?
 
5087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5088
  (exit $ac_status); }; }; then
 
5089
  ac_cv_func_malloc_0_nonnull=yes
 
5090
else
 
5091
  echo "$as_me: program exited with status $ac_status" >&5
 
5092
echo "$as_me: failed program was:" >&5
 
5093
sed 's/^/| /' conftest.$ac_ext >&5
 
5094
 
 
5095
( exit $ac_status )
 
5096
ac_cv_func_malloc_0_nonnull=no
 
5097
fi
 
5098
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5099
fi
 
5100
fi
 
5101
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
5102
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
5103
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
5104
  
 
5105
cat >>confdefs.h <<\_ACEOF
 
5106
@%:@define HAVE_MALLOC 1
 
5107
_ACEOF
 
5108
 
 
5109
else
 
5110
  cat >>confdefs.h <<\_ACEOF
 
5111
@%:@define HAVE_MALLOC 0
 
5112
_ACEOF
 
5113
 
 
5114
   case $LIB@&t@OBJS in
 
5115
    "malloc.$ac_objext"   | \
 
5116
  *" malloc.$ac_objext"   | \
 
5117
    "malloc.$ac_objext "* | \
 
5118
  *" malloc.$ac_objext "* ) ;;
 
5119
  *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" ;;
 
5120
esac
 
5121
 
 
5122
   
 
5123
cat >>confdefs.h <<\_ACEOF
 
5124
@%:@define malloc rpl_malloc
 
5125
_ACEOF
 
5126
 
 
5127
fi
 
5128
 
 
5129
 
 
5130
 
 
5131
echo "$as_me:$LINENO: checking for working memcmp" >&5
 
5132
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
 
5133
if test "${ac_cv_func_memcmp_working+set}" = set; then
 
5134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5135
else
 
5136
  if test "$cross_compiling" = yes; then
 
5137
  ac_cv_func_memcmp_working=no
 
5138
else
 
5139
  cat >conftest.$ac_ext <<_ACEOF
 
5140
/* confdefs.h.  */
 
5141
_ACEOF
 
5142
cat confdefs.h >>conftest.$ac_ext
 
5143
cat >>conftest.$ac_ext <<_ACEOF
 
5144
/* end confdefs.h.  */
 
5145
$ac_includes_default
 
5146
int
 
5147
main ()
 
5148
{
 
5149
 
 
5150
  /* Some versions of memcmp are not 8-bit clean.  */
 
5151
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
 
5152
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
 
5153
    exit (1);
 
5154
 
 
5155
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
 
5156
     or more and with at least one buffer not starting on a 4-byte boundary.
 
5157
     William Lewis provided this test program.   */
 
5158
  {
 
5159
    char foo[21];
 
5160
    char bar[21];
 
5161
    int i;
 
5162
    for (i = 0; i < 4; i++)
 
5163
      {
 
5164
        char *a = foo + i;
 
5165
        char *b = bar + i;
 
5166
        strcpy (a, "--------01111111");
 
5167
        strcpy (b, "--------10000000");
 
5168
        if (memcmp (a, b, 16) >= 0)
 
5169
          exit (1);
 
5170
      }
 
5171
    exit (0);
 
5172
  }
 
5173
 
 
5174
  ;
 
5175
  return 0;
 
5176
}
 
5177
_ACEOF
 
5178
rm -f conftest$ac_exeext
 
5179
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5180
  (eval $ac_link) 2>&5
 
5181
  ac_status=$?
 
5182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5183
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5185
  (eval $ac_try) 2>&5
 
5186
  ac_status=$?
 
5187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5188
  (exit $ac_status); }; }; then
 
5189
  ac_cv_func_memcmp_working=yes
 
5190
else
 
5191
  echo "$as_me: program exited with status $ac_status" >&5
 
5192
echo "$as_me: failed program was:" >&5
 
5193
sed 's/^/| /' conftest.$ac_ext >&5
 
5194
 
 
5195
( exit $ac_status )
 
5196
ac_cv_func_memcmp_working=no
 
5197
fi
 
5198
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5199
fi
 
5200
fi
 
5201
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
 
5202
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
 
5203
test $ac_cv_func_memcmp_working = no && case $LIB@&t@OBJS in
 
5204
    "memcmp.$ac_objext"   | \
 
5205
  *" memcmp.$ac_objext"   | \
 
5206
    "memcmp.$ac_objext "* | \
 
5207
  *" memcmp.$ac_objext "* ) ;;
 
5208
  *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext" ;;
 
5209
esac
 
5210
 
 
5211
 
 
5212
 
 
5213
 
 
5214
for ac_header in stdlib.h unistd.h
 
5215
do
 
5216
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5217
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5218
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5219
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5220
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5222
fi
 
5223
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5224
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5225
else
 
5226
  # Is the header compilable?
 
5227
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5228
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5229
cat >conftest.$ac_ext <<_ACEOF
 
5230
/* confdefs.h.  */
 
5231
_ACEOF
 
5232
cat confdefs.h >>conftest.$ac_ext
 
5233
cat >>conftest.$ac_ext <<_ACEOF
 
5234
/* end confdefs.h.  */
 
5235
$ac_includes_default
 
5236
@%:@include <$ac_header>
 
5237
_ACEOF
 
5238
rm -f conftest.$ac_objext
 
5239
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5240
  (eval $ac_compile) 2>conftest.er1
 
5241
  ac_status=$?
 
5242
  grep -v '^ *+' conftest.er1 >conftest.err
 
5243
  rm -f conftest.er1
 
5244
  cat conftest.err >&5
 
5245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5246
  (exit $ac_status); } &&
 
5247
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5249
  (eval $ac_try) 2>&5
 
5250
  ac_status=$?
 
5251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5252
  (exit $ac_status); }; } &&
 
5253
         { ac_try='test -s conftest.$ac_objext'
 
5254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5255
  (eval $ac_try) 2>&5
 
5256
  ac_status=$?
 
5257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5258
  (exit $ac_status); }; }; then
 
5259
  ac_header_compiler=yes
 
5260
else
 
5261
  echo "$as_me: failed program was:" >&5
 
5262
sed 's/^/| /' conftest.$ac_ext >&5
 
5263
 
 
5264
ac_header_compiler=no
 
5265
fi
 
5266
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5267
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5268
echo "${ECHO_T}$ac_header_compiler" >&6
 
5269
 
 
5270
# Is the header present?
 
5271
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5272
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5273
cat >conftest.$ac_ext <<_ACEOF
 
5274
/* confdefs.h.  */
 
5275
_ACEOF
 
5276
cat confdefs.h >>conftest.$ac_ext
 
5277
cat >>conftest.$ac_ext <<_ACEOF
 
5278
/* end confdefs.h.  */
 
5279
@%:@include <$ac_header>
 
5280
_ACEOF
 
5281
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5282
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5283
  ac_status=$?
 
5284
  grep -v '^ *+' conftest.er1 >conftest.err
 
5285
  rm -f conftest.er1
 
5286
  cat conftest.err >&5
 
5287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5288
  (exit $ac_status); } >/dev/null; then
 
5289
  if test -s conftest.err; then
 
5290
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5291
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5292
  else
 
5293
    ac_cpp_err=
 
5294
  fi
 
5295
else
 
5296
  ac_cpp_err=yes
 
5297
fi
 
5298
if test -z "$ac_cpp_err"; then
 
5299
  ac_header_preproc=yes
 
5300
else
 
5301
  echo "$as_me: failed program was:" >&5
 
5302
sed 's/^/| /' conftest.$ac_ext >&5
 
5303
 
 
5304
  ac_header_preproc=no
 
5305
fi
 
5306
rm -f conftest.err conftest.$ac_ext
 
5307
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5308
echo "${ECHO_T}$ac_header_preproc" >&6
 
5309
 
 
5310
# So?  What about this header?
 
5311
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5312
  yes:no: )
 
5313
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5314
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5315
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5316
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5317
    ac_header_preproc=yes
 
5318
    ;;
 
5319
  no:yes:* )
 
5320
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5321
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5322
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5323
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5324
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5325
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5326
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5327
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5328
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5329
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5330
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5331
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5332
    (
 
5333
      cat <<\_ASBOX
 
5334
@%:@@%:@ ---------------------------------- @%:@@%:@
 
5335
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
 
5336
@%:@@%:@ ---------------------------------- @%:@@%:@
 
5337
_ASBOX
 
5338
    ) |
 
5339
      sed "s/^/$as_me: WARNING:     /" >&2
 
5340
    ;;
 
5341
esac
 
5342
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5343
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5344
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5346
else
 
5347
  eval "$as_ac_Header=\$ac_header_preproc"
 
5348
fi
 
5349
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5350
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5351
 
 
5352
fi
 
5353
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5354
  cat >>confdefs.h <<_ACEOF
 
5355
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5356
_ACEOF
 
5357
 
 
5358
fi
 
5359
 
 
5360
done
 
5361
 
 
5362
 
 
5363
for ac_func in getpagesize
 
5364
do
 
5365
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5366
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5367
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5368
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5370
else
 
5371
  cat >conftest.$ac_ext <<_ACEOF
 
5372
/* confdefs.h.  */
 
5373
_ACEOF
 
5374
cat confdefs.h >>conftest.$ac_ext
 
5375
cat >>conftest.$ac_ext <<_ACEOF
 
5376
/* end confdefs.h.  */
 
5377
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5378
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5379
#define $ac_func innocuous_$ac_func
 
5380
 
 
5381
/* System header to define __stub macros and hopefully few prototypes,
 
5382
    which can conflict with char $ac_func (); below.
 
5383
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5384
    <limits.h> exists even on freestanding compilers.  */
 
5385
 
 
5386
#ifdef __STDC__
 
5387
# include <limits.h>
 
5388
#else
 
5389
# include <assert.h>
 
5390
#endif
 
5391
 
 
5392
#undef $ac_func
 
5393
 
 
5394
/* Override any gcc2 internal prototype to avoid an error.  */
 
5395
#ifdef __cplusplus
 
5396
extern "C"
 
5397
{
 
5398
#endif
 
5399
/* We use char because int might match the return type of a gcc2
 
5400
   builtin and then its argument prototype would still apply.  */
 
5401
char $ac_func ();
 
5402
/* The GNU C library defines this for functions which it implements
 
5403
    to always fail with ENOSYS.  Some functions are actually named
 
5404
    something starting with __ and the normal name is an alias.  */
 
5405
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5406
choke me
 
5407
#else
 
5408
char (*f) () = $ac_func;
 
5409
#endif
 
5410
#ifdef __cplusplus
 
5411
}
 
5412
#endif
 
5413
 
 
5414
int
 
5415
main ()
 
5416
{
 
5417
return f != $ac_func;
 
5418
  ;
 
5419
  return 0;
 
5420
}
 
5421
_ACEOF
 
5422
rm -f conftest.$ac_objext conftest$ac_exeext
 
5423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5424
  (eval $ac_link) 2>conftest.er1
 
5425
  ac_status=$?
 
5426
  grep -v '^ *+' conftest.er1 >conftest.err
 
5427
  rm -f conftest.er1
 
5428
  cat conftest.err >&5
 
5429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5430
  (exit $ac_status); } &&
 
5431
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5433
  (eval $ac_try) 2>&5
 
5434
  ac_status=$?
 
5435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5436
  (exit $ac_status); }; } &&
 
5437
         { ac_try='test -s conftest$ac_exeext'
 
5438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5439
  (eval $ac_try) 2>&5
 
5440
  ac_status=$?
 
5441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5442
  (exit $ac_status); }; }; then
 
5443
  eval "$as_ac_var=yes"
 
5444
else
 
5445
  echo "$as_me: failed program was:" >&5
 
5446
sed 's/^/| /' conftest.$ac_ext >&5
 
5447
 
 
5448
eval "$as_ac_var=no"
 
5449
fi
 
5450
rm -f conftest.err conftest.$ac_objext \
 
5451
      conftest$ac_exeext conftest.$ac_ext
 
5452
fi
 
5453
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5454
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5455
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5456
  cat >>confdefs.h <<_ACEOF
 
5457
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5458
_ACEOF
 
5459
 
 
5460
fi
 
5461
done
 
5462
 
 
5463
echo "$as_me:$LINENO: checking for working mmap" >&5
 
5464
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
5465
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
5466
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5467
else
 
5468
  if test "$cross_compiling" = yes; then
 
5469
  ac_cv_func_mmap_fixed_mapped=no
 
5470
else
 
5471
  cat >conftest.$ac_ext <<_ACEOF
 
5472
/* confdefs.h.  */
 
5473
_ACEOF
 
5474
cat confdefs.h >>conftest.$ac_ext
 
5475
cat >>conftest.$ac_ext <<_ACEOF
 
5476
/* end confdefs.h.  */
 
5477
$ac_includes_default
 
5478
/* malloc might have been renamed as rpl_malloc. */
 
5479
#undef malloc
 
5480
 
 
5481
/* Thanks to Mike Haertel and Jim Avera for this test.
 
5482
   Here is a matrix of mmap possibilities:
 
5483
        mmap private not fixed
 
5484
        mmap private fixed at somewhere currently unmapped
 
5485
        mmap private fixed at somewhere already mapped
 
5486
        mmap shared not fixed
 
5487
        mmap shared fixed at somewhere currently unmapped
 
5488
        mmap shared fixed at somewhere already mapped
 
5489
   For private mappings, we should verify that changes cannot be read()
 
5490
   back from the file, nor mmap's back from the file at a different
 
5491
   address.  (There have been systems where private was not correctly
 
5492
   implemented like the infamous i386 svr4.0, and systems where the
 
5493
   VM page cache was not coherent with the file system buffer cache
 
5494
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
5495
   For shared mappings, we should conversely verify that changes get
 
5496
   propagated back to all the places they're supposed to be.
 
5497
 
 
5498
   Grep wants private fixed already mapped.
 
5499
   The main things grep needs to know about mmap are:
 
5500
   * does it exist and is it safe to write into the mmap'd area
 
5501
   * how to use it (BSD variants)  */
 
5502
 
 
5503
#include <fcntl.h>
 
5504
#include <sys/mman.h>
 
5505
 
 
5506
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
5507
char *malloc ();
 
5508
#endif
 
5509
 
 
5510
/* This mess was copied from the GNU getpagesize.h.  */
 
5511
#if !HAVE_GETPAGESIZE
 
5512
/* Assume that all systems that can run configure have sys/param.h.  */
 
5513
# if !HAVE_SYS_PARAM_H
 
5514
#  define HAVE_SYS_PARAM_H 1
 
5515
# endif
 
5516
 
 
5517
# ifdef _SC_PAGESIZE
 
5518
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
5519
# else /* no _SC_PAGESIZE */
 
5520
#  if HAVE_SYS_PARAM_H
 
5521
#   include <sys/param.h>
 
5522
#   ifdef EXEC_PAGESIZE
 
5523
#    define getpagesize() EXEC_PAGESIZE
 
5524
#   else /* no EXEC_PAGESIZE */
 
5525
#    ifdef NBPG
 
5526
#     define getpagesize() NBPG * CLSIZE
 
5527
#     ifndef CLSIZE
 
5528
#      define CLSIZE 1
 
5529
#     endif /* no CLSIZE */
 
5530
#    else /* no NBPG */
 
5531
#     ifdef NBPC
 
5532
#      define getpagesize() NBPC
 
5533
#     else /* no NBPC */
 
5534
#      ifdef PAGESIZE
 
5535
#       define getpagesize() PAGESIZE
 
5536
#      endif /* PAGESIZE */
 
5537
#     endif /* no NBPC */
 
5538
#    endif /* no NBPG */
 
5539
#   endif /* no EXEC_PAGESIZE */
 
5540
#  else /* no HAVE_SYS_PARAM_H */
 
5541
#   define getpagesize() 8192   /* punt totally */
 
5542
#  endif /* no HAVE_SYS_PARAM_H */
 
5543
# endif /* no _SC_PAGESIZE */
 
5544
 
 
5545
#endif /* no HAVE_GETPAGESIZE */
 
5546
 
 
5547
int
 
5548
main ()
 
5549
{
 
5550
  char *data, *data2, *data3;
 
5551
  int i, pagesize;
 
5552
  int fd;
 
5553
 
 
5554
  pagesize = getpagesize ();
 
5555
 
 
5556
  /* First, make a file with some known garbage in it. */
 
5557
  data = (char *) malloc (pagesize);
 
5558
  if (!data)
 
5559
    exit (1);
 
5560
  for (i = 0; i < pagesize; ++i)
 
5561
    *(data + i) = rand ();
 
5562
  umask (0);
 
5563
  fd = creat ("conftest.mmap", 0600);
 
5564
  if (fd < 0)
 
5565
    exit (1);
 
5566
  if (write (fd, data, pagesize) != pagesize)
 
5567
    exit (1);
 
5568
  close (fd);
 
5569
 
 
5570
  /* Next, try to mmap the file at a fixed address which already has
 
5571
     something else allocated at it.  If we can, also make sure that
 
5572
     we see the same garbage.  */
 
5573
  fd = open ("conftest.mmap", O_RDWR);
 
5574
  if (fd < 0)
 
5575
    exit (1);
 
5576
  data2 = (char *) malloc (2 * pagesize);
 
5577
  if (!data2)
 
5578
    exit (1);
 
5579
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
5580
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
5581
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
5582
    exit (1);
 
5583
  for (i = 0; i < pagesize; ++i)
 
5584
    if (*(data + i) != *(data2 + i))
 
5585
      exit (1);
 
5586
 
 
5587
  /* Finally, make sure that changes to the mapped area do not
 
5588
     percolate back to the file as seen by read().  (This is a bug on
 
5589
     some variants of i386 svr4.0.)  */
 
5590
  for (i = 0; i < pagesize; ++i)
 
5591
    *(data2 + i) = *(data2 + i) + 1;
 
5592
  data3 = (char *) malloc (pagesize);
 
5593
  if (!data3)
 
5594
    exit (1);
 
5595
  if (read (fd, data3, pagesize) != pagesize)
 
5596
    exit (1);
 
5597
  for (i = 0; i < pagesize; ++i)
 
5598
    if (*(data + i) != *(data3 + i))
 
5599
      exit (1);
 
5600
  close (fd);
 
5601
  exit (0);
 
5602
}
 
5603
_ACEOF
 
5604
rm -f conftest$ac_exeext
 
5605
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5606
  (eval $ac_link) 2>&5
 
5607
  ac_status=$?
 
5608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5609
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5611
  (eval $ac_try) 2>&5
 
5612
  ac_status=$?
 
5613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5614
  (exit $ac_status); }; }; then
 
5615
  ac_cv_func_mmap_fixed_mapped=yes
 
5616
else
 
5617
  echo "$as_me: program exited with status $ac_status" >&5
 
5618
echo "$as_me: failed program was:" >&5
 
5619
sed 's/^/| /' conftest.$ac_ext >&5
 
5620
 
 
5621
( exit $ac_status )
 
5622
ac_cv_func_mmap_fixed_mapped=no
 
5623
fi
 
5624
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5625
fi
 
5626
fi
 
5627
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
5628
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
5629
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
5630
  
 
5631
cat >>confdefs.h <<\_ACEOF
 
5632
@%:@define HAVE_MMAP 1
 
5633
_ACEOF
 
5634
 
 
5635
fi
 
5636
rm -f conftest.mmap
 
5637
 
 
5638
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
5639
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
 
5640
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
 
5641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5642
else
 
5643
  rm -f conftest.sym conftest.file
 
5644
echo >conftest.file
 
5645
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
5646
  if test "$cross_compiling" = yes; then
 
5647
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
5648
else
 
5649
  cat >conftest.$ac_ext <<_ACEOF
 
5650
/* confdefs.h.  */
 
5651
_ACEOF
 
5652
cat confdefs.h >>conftest.$ac_ext
 
5653
cat >>conftest.$ac_ext <<_ACEOF
 
5654
/* end confdefs.h.  */
 
5655
$ac_includes_default
 
5656
int
 
5657
main ()
 
5658
{
 
5659
struct stat sbuf;
 
5660
     /* Linux will dereference the symlink and fail.
 
5661
        That is better in the sense that it means we will not
 
5662
        have to compile and use the lstat wrapper.  */
 
5663
     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
 
5664
  ;
 
5665
  return 0;
 
5666
}
 
5667
_ACEOF
 
5668
rm -f conftest$ac_exeext
 
5669
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5670
  (eval $ac_link) 2>&5
 
5671
  ac_status=$?
 
5672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5673
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5674
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5675
  (eval $ac_try) 2>&5
 
5676
  ac_status=$?
 
5677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5678
  (exit $ac_status); }; }; then
 
5679
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
5680
else
 
5681
  echo "$as_me: program exited with status $ac_status" >&5
 
5682
echo "$as_me: failed program was:" >&5
 
5683
sed 's/^/| /' conftest.$ac_ext >&5
 
5684
 
 
5685
( exit $ac_status )
 
5686
ac_cv_func_lstat_dereferences_slashed_symlink=no
 
5687
fi
 
5688
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5689
fi
 
5690
else
 
5691
  # If the `ln -s' command failed, then we probably don't even
 
5692
  # have an lstat function.
 
5693
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
5694
fi
 
5695
rm -f conftest.sym conftest.file
 
5696
 
 
5697
fi
 
5698
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
5699
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
 
5700
 
 
5701
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
5702
  
 
5703
cat >>confdefs.h <<_ACEOF
 
5704
@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
5705
_ACEOF
 
5706
 
 
5707
 
 
5708
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
5709
  case $LIB@&t@OBJS in
 
5710
    "lstat.$ac_objext"   | \
 
5711
  *" lstat.$ac_objext"   | \
 
5712
    "lstat.$ac_objext "* | \
 
5713
  *" lstat.$ac_objext "* ) ;;
 
5714
  *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" ;;
 
5715
esac
 
5716
 
 
5717
fi
 
5718
 
 
5719
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
 
5720
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
 
5721
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
 
5722
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5723
else
 
5724
  if test "$cross_compiling" = yes; then
 
5725
  ac_cv_func_stat_empty_string_bug=yes
 
5726
else
 
5727
  cat >conftest.$ac_ext <<_ACEOF
 
5728
/* confdefs.h.  */
 
5729
_ACEOF
 
5730
cat confdefs.h >>conftest.$ac_ext
 
5731
cat >>conftest.$ac_ext <<_ACEOF
 
5732
/* end confdefs.h.  */
 
5733
$ac_includes_default
 
5734
int
 
5735
main ()
 
5736
{
 
5737
struct stat sbuf;
 
5738
  exit (stat ("", &sbuf) ? 1 : 0);
 
5739
  ;
 
5740
  return 0;
 
5741
}
 
5742
_ACEOF
 
5743
rm -f conftest$ac_exeext
 
5744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5745
  (eval $ac_link) 2>&5
 
5746
  ac_status=$?
 
5747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5748
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5750
  (eval $ac_try) 2>&5
 
5751
  ac_status=$?
 
5752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5753
  (exit $ac_status); }; }; then
 
5754
  ac_cv_func_stat_empty_string_bug=yes
 
5755
else
 
5756
  echo "$as_me: program exited with status $ac_status" >&5
 
5757
echo "$as_me: failed program was:" >&5
 
5758
sed 's/^/| /' conftest.$ac_ext >&5
 
5759
 
 
5760
( exit $ac_status )
 
5761
ac_cv_func_stat_empty_string_bug=no
 
5762
fi
 
5763
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5764
fi
 
5765
fi
 
5766
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
 
5767
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
 
5768
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
5769
  case $LIB@&t@OBJS in
 
5770
    "stat.$ac_objext"   | \
 
5771
  *" stat.$ac_objext"   | \
 
5772
    "stat.$ac_objext "* | \
 
5773
  *" stat.$ac_objext "* ) ;;
 
5774
  *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext" ;;
 
5775
esac
 
5776
 
 
5777
  
 
5778
cat >>confdefs.h <<_ACEOF
 
5779
@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
 
5780
_ACEOF
 
5781
 
 
5782
fi
 
5783
 
 
5784
 
 
5785
for ac_func in vprintf
 
5786
do
 
5787
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5788
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5789
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5790
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5792
else
 
5793
  cat >conftest.$ac_ext <<_ACEOF
 
5794
/* confdefs.h.  */
 
5795
_ACEOF
 
5796
cat confdefs.h >>conftest.$ac_ext
 
5797
cat >>conftest.$ac_ext <<_ACEOF
 
5798
/* end confdefs.h.  */
 
5799
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5800
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5801
#define $ac_func innocuous_$ac_func
 
5802
 
 
5803
/* System header to define __stub macros and hopefully few prototypes,
 
5804
    which can conflict with char $ac_func (); below.
 
5805
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5806
    <limits.h> exists even on freestanding compilers.  */
 
5807
 
 
5808
#ifdef __STDC__
 
5809
# include <limits.h>
 
5810
#else
 
5811
# include <assert.h>
 
5812
#endif
 
5813
 
 
5814
#undef $ac_func
 
5815
 
 
5816
/* Override any gcc2 internal prototype to avoid an error.  */
 
5817
#ifdef __cplusplus
 
5818
extern "C"
 
5819
{
 
5820
#endif
 
5821
/* We use char because int might match the return type of a gcc2
 
5822
   builtin and then its argument prototype would still apply.  */
 
5823
char $ac_func ();
 
5824
/* The GNU C library defines this for functions which it implements
 
5825
    to always fail with ENOSYS.  Some functions are actually named
 
5826
    something starting with __ and the normal name is an alias.  */
 
5827
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5828
choke me
 
5829
#else
 
5830
char (*f) () = $ac_func;
 
5831
#endif
 
5832
#ifdef __cplusplus
 
5833
}
 
5834
#endif
 
5835
 
 
5836
int
 
5837
main ()
 
5838
{
 
5839
return f != $ac_func;
 
5840
  ;
 
5841
  return 0;
 
5842
}
 
5843
_ACEOF
 
5844
rm -f conftest.$ac_objext conftest$ac_exeext
 
5845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5846
  (eval $ac_link) 2>conftest.er1
 
5847
  ac_status=$?
 
5848
  grep -v '^ *+' conftest.er1 >conftest.err
 
5849
  rm -f conftest.er1
 
5850
  cat conftest.err >&5
 
5851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5852
  (exit $ac_status); } &&
 
5853
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5855
  (eval $ac_try) 2>&5
 
5856
  ac_status=$?
 
5857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5858
  (exit $ac_status); }; } &&
 
5859
         { ac_try='test -s conftest$ac_exeext'
 
5860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5861
  (eval $ac_try) 2>&5
 
5862
  ac_status=$?
 
5863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5864
  (exit $ac_status); }; }; then
 
5865
  eval "$as_ac_var=yes"
 
5866
else
 
5867
  echo "$as_me: failed program was:" >&5
 
5868
sed 's/^/| /' conftest.$ac_ext >&5
 
5869
 
 
5870
eval "$as_ac_var=no"
 
5871
fi
 
5872
rm -f conftest.err conftest.$ac_objext \
 
5873
      conftest$ac_exeext conftest.$ac_ext
 
5874
fi
 
5875
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5876
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5877
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5878
  cat >>confdefs.h <<_ACEOF
 
5879
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5880
_ACEOF
 
5881
 
 
5882
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
5883
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
5884
if test "${ac_cv_func__doprnt+set}" = set; then
 
5885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5886
else
 
5887
  cat >conftest.$ac_ext <<_ACEOF
 
5888
/* confdefs.h.  */
 
5889
_ACEOF
 
5890
cat confdefs.h >>conftest.$ac_ext
 
5891
cat >>conftest.$ac_ext <<_ACEOF
 
5892
/* end confdefs.h.  */
 
5893
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
5894
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5895
#define _doprnt innocuous__doprnt
 
5896
 
 
5897
/* System header to define __stub macros and hopefully few prototypes,
 
5898
    which can conflict with char _doprnt (); below.
 
5899
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5900
    <limits.h> exists even on freestanding compilers.  */
 
5901
 
 
5902
#ifdef __STDC__
 
5903
# include <limits.h>
 
5904
#else
 
5905
# include <assert.h>
 
5906
#endif
 
5907
 
 
5908
#undef _doprnt
 
5909
 
 
5910
/* Override any gcc2 internal prototype to avoid an error.  */
 
5911
#ifdef __cplusplus
 
5912
extern "C"
 
5913
{
 
5914
#endif
 
5915
/* We use char because int might match the return type of a gcc2
 
5916
   builtin and then its argument prototype would still apply.  */
 
5917
char _doprnt ();
 
5918
/* The GNU C library defines this for functions which it implements
 
5919
    to always fail with ENOSYS.  Some functions are actually named
 
5920
    something starting with __ and the normal name is an alias.  */
 
5921
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
5922
choke me
 
5923
#else
 
5924
char (*f) () = _doprnt;
 
5925
#endif
 
5926
#ifdef __cplusplus
 
5927
}
 
5928
#endif
 
5929
 
 
5930
int
 
5931
main ()
 
5932
{
 
5933
return f != _doprnt;
 
5934
  ;
 
5935
  return 0;
 
5936
}
 
5937
_ACEOF
 
5938
rm -f conftest.$ac_objext conftest$ac_exeext
 
5939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5940
  (eval $ac_link) 2>conftest.er1
 
5941
  ac_status=$?
 
5942
  grep -v '^ *+' conftest.er1 >conftest.err
 
5943
  rm -f conftest.er1
 
5944
  cat conftest.err >&5
 
5945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5946
  (exit $ac_status); } &&
 
5947
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5949
  (eval $ac_try) 2>&5
 
5950
  ac_status=$?
 
5951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5952
  (exit $ac_status); }; } &&
 
5953
         { ac_try='test -s conftest$ac_exeext'
 
5954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5955
  (eval $ac_try) 2>&5
 
5956
  ac_status=$?
 
5957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5958
  (exit $ac_status); }; }; then
 
5959
  ac_cv_func__doprnt=yes
 
5960
else
 
5961
  echo "$as_me: failed program was:" >&5
 
5962
sed 's/^/| /' conftest.$ac_ext >&5
 
5963
 
 
5964
ac_cv_func__doprnt=no
 
5965
fi
 
5966
rm -f conftest.err conftest.$ac_objext \
 
5967
      conftest$ac_exeext conftest.$ac_ext
 
5968
fi
 
5969
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
5970
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
5971
if test $ac_cv_func__doprnt = yes; then
 
5972
  
 
5973
cat >>confdefs.h <<\_ACEOF
 
5974
@%:@define HAVE_DOPRNT 1
 
5975
_ACEOF
 
5976
 
 
5977
fi
 
5978
 
 
5979
fi
 
5980
done
 
5981
 
 
5982
 
 
5983
 
 
5984
 
 
5985
 
 
5986
 
 
5987
 
 
5988
 
 
5989
 
 
5990
 
 
5991
 
 
5992
 
 
5993
 
 
5994
for ac_func in getpagesize gettimeofday memset munmap pow strchr strcspn strerror strstr strtoul uname
 
5995
do
 
5996
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5997
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5998
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5999
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
6000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6001
else
 
6002
  cat >conftest.$ac_ext <<_ACEOF
 
6003
/* confdefs.h.  */
 
6004
_ACEOF
 
6005
cat confdefs.h >>conftest.$ac_ext
 
6006
cat >>conftest.$ac_ext <<_ACEOF
 
6007
/* end confdefs.h.  */
 
6008
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6009
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6010
#define $ac_func innocuous_$ac_func
 
6011
 
 
6012
/* System header to define __stub macros and hopefully few prototypes,
 
6013
    which can conflict with char $ac_func (); below.
 
6014
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6015
    <limits.h> exists even on freestanding compilers.  */
 
6016
 
 
6017
#ifdef __STDC__
 
6018
# include <limits.h>
 
6019
#else
 
6020
# include <assert.h>
 
6021
#endif
 
6022
 
 
6023
#undef $ac_func
 
6024
 
 
6025
/* Override any gcc2 internal prototype to avoid an error.  */
 
6026
#ifdef __cplusplus
 
6027
extern "C"
 
6028
{
 
6029
#endif
 
6030
/* We use char because int might match the return type of a gcc2
 
6031
   builtin and then its argument prototype would still apply.  */
 
6032
char $ac_func ();
 
6033
/* The GNU C library defines this for functions which it implements
 
6034
    to always fail with ENOSYS.  Some functions are actually named
 
6035
    something starting with __ and the normal name is an alias.  */
 
6036
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
6037
choke me
 
6038
#else
 
6039
char (*f) () = $ac_func;
 
6040
#endif
 
6041
#ifdef __cplusplus
 
6042
}
 
6043
#endif
 
6044
 
 
6045
int
 
6046
main ()
 
6047
{
 
6048
return f != $ac_func;
 
6049
  ;
 
6050
  return 0;
 
6051
}
 
6052
_ACEOF
 
6053
rm -f conftest.$ac_objext conftest$ac_exeext
 
6054
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6055
  (eval $ac_link) 2>conftest.er1
 
6056
  ac_status=$?
 
6057
  grep -v '^ *+' conftest.er1 >conftest.err
 
6058
  rm -f conftest.er1
 
6059
  cat conftest.err >&5
 
6060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6061
  (exit $ac_status); } &&
 
6062
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6064
  (eval $ac_try) 2>&5
 
6065
  ac_status=$?
 
6066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6067
  (exit $ac_status); }; } &&
 
6068
         { ac_try='test -s conftest$ac_exeext'
 
6069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6070
  (eval $ac_try) 2>&5
 
6071
  ac_status=$?
 
6072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6073
  (exit $ac_status); }; }; then
 
6074
  eval "$as_ac_var=yes"
 
6075
else
 
6076
  echo "$as_me: failed program was:" >&5
 
6077
sed 's/^/| /' conftest.$ac_ext >&5
 
6078
 
 
6079
eval "$as_ac_var=no"
 
6080
fi
 
6081
rm -f conftest.err conftest.$ac_objext \
 
6082
      conftest$ac_exeext conftest.$ac_ext
 
6083
fi
 
6084
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
6085
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
6086
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6087
  cat >>confdefs.h <<_ACEOF
 
6088
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6089
_ACEOF
 
6090
 
 
6091
fi
 
6092
done
 
6093
 
 
6094
 
 
6095
if test -n "$ac_tool_prefix"; then
 
6096
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6097
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6098
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6100
if test "${ac_cv_prog_AR+set}" = set; then
 
6101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6102
else
 
6103
  if test -n "$AR"; then
 
6104
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6105
else
 
6106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6107
for as_dir in $PATH
 
6108
do
 
6109
  IFS=$as_save_IFS
 
6110
  test -z "$as_dir" && as_dir=.
 
6111
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6112
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6113
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6114
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6115
    break 2
 
6116
  fi
 
6117
done
 
6118
done
 
6119
 
 
6120
fi
 
6121
fi
 
6122
AR=$ac_cv_prog_AR
 
6123
if test -n "$AR"; then
 
6124
  echo "$as_me:$LINENO: result: $AR" >&5
 
6125
echo "${ECHO_T}$AR" >&6
 
6126
else
 
6127
  echo "$as_me:$LINENO: result: no" >&5
 
6128
echo "${ECHO_T}no" >&6
 
6129
fi
 
6130
 
 
6131
fi
 
6132
if test -z "$ac_cv_prog_AR"; then
 
6133
  ac_ct_AR=$AR
 
6134
  # Extract the first word of "ar", so it can be a program name with args.
 
6135
set dummy ar; ac_word=$2
 
6136
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6137
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6138
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6140
else
 
6141
  if test -n "$ac_ct_AR"; then
 
6142
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6143
else
 
6144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6145
for as_dir in $PATH
 
6146
do
 
6147
  IFS=$as_save_IFS
 
6148
  test -z "$as_dir" && as_dir=.
 
6149
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6150
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6151
    ac_cv_prog_ac_ct_AR="ar"
 
6152
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6153
    break 2
 
6154
  fi
 
6155
done
 
6156
done
 
6157
 
 
6158
fi
 
6159
fi
 
6160
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6161
if test -n "$ac_ct_AR"; then
 
6162
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6163
echo "${ECHO_T}$ac_ct_AR" >&6
 
6164
else
 
6165
  echo "$as_me:$LINENO: result: no" >&5
 
6166
echo "${ECHO_T}no" >&6
 
6167
fi
 
6168
 
 
6169
  AR=$ac_ct_AR
 
6170
else
 
6171
  AR="$ac_cv_prog_AR"
 
6172
fi
 
6173
 
 
6174
if test -n "$ac_tool_prefix"; then
 
6175
  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
 
6176
set dummy ${ac_tool_prefix}ld; ac_word=$2
 
6177
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6178
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6179
if test "${ac_cv_prog_LD+set}" = set; then
 
6180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6181
else
 
6182
  if test -n "$LD"; then
 
6183
  ac_cv_prog_LD="$LD" # Let the user override the test.
 
6184
else
 
6185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6186
for as_dir in $PATH
 
6187
do
 
6188
  IFS=$as_save_IFS
 
6189
  test -z "$as_dir" && as_dir=.
 
6190
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6191
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6192
    ac_cv_prog_LD="${ac_tool_prefix}ld"
 
6193
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6194
    break 2
 
6195
  fi
 
6196
done
 
6197
done
 
6198
 
 
6199
fi
 
6200
fi
 
6201
LD=$ac_cv_prog_LD
 
6202
if test -n "$LD"; then
 
6203
  echo "$as_me:$LINENO: result: $LD" >&5
 
6204
echo "${ECHO_T}$LD" >&6
 
6205
else
 
6206
  echo "$as_me:$LINENO: result: no" >&5
 
6207
echo "${ECHO_T}no" >&6
 
6208
fi
 
6209
 
 
6210
fi
 
6211
if test -z "$ac_cv_prog_LD"; then
 
6212
  ac_ct_LD=$LD
 
6213
  # Extract the first word of "ld", so it can be a program name with args.
 
6214
set dummy ld; ac_word=$2
 
6215
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6216
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6217
if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
 
6218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6219
else
 
6220
  if test -n "$ac_ct_LD"; then
 
6221
  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
 
6222
else
 
6223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6224
for as_dir in $PATH
 
6225
do
 
6226
  IFS=$as_save_IFS
 
6227
  test -z "$as_dir" && as_dir=.
 
6228
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6229
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6230
    ac_cv_prog_ac_ct_LD="ld"
 
6231
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6232
    break 2
 
6233
  fi
 
6234
done
 
6235
done
 
6236
 
 
6237
fi
 
6238
fi
 
6239
ac_ct_LD=$ac_cv_prog_ac_ct_LD
 
6240
if test -n "$ac_ct_LD"; then
 
6241
  echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
 
6242
echo "${ECHO_T}$ac_ct_LD" >&6
 
6243
else
 
6244
  echo "$as_me:$LINENO: result: no" >&5
 
6245
echo "${ECHO_T}no" >&6
 
6246
fi
 
6247
 
 
6248
  LD=$ac_ct_LD
 
6249
else
 
6250
  LD="$ac_cv_prog_LD"
 
6251
fi
 
6252
 
 
6253
if test -n "$ac_tool_prefix"; then
 
6254
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6255
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6256
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6257
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6258
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6260
else
 
6261
  if test -n "$RANLIB"; then
 
6262
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6263
else
 
6264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6265
for as_dir in $PATH
 
6266
do
 
6267
  IFS=$as_save_IFS
 
6268
  test -z "$as_dir" && as_dir=.
 
6269
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6270
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6271
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6272
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6273
    break 2
 
6274
  fi
 
6275
done
 
6276
done
 
6277
 
 
6278
fi
 
6279
fi
 
6280
RANLIB=$ac_cv_prog_RANLIB
 
6281
if test -n "$RANLIB"; then
 
6282
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6283
echo "${ECHO_T}$RANLIB" >&6
 
6284
else
 
6285
  echo "$as_me:$LINENO: result: no" >&5
 
6286
echo "${ECHO_T}no" >&6
 
6287
fi
 
6288
 
 
6289
fi
 
6290
if test -z "$ac_cv_prog_RANLIB"; then
 
6291
  ac_ct_RANLIB=$RANLIB
 
6292
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6293
set dummy ranlib; ac_word=$2
 
6294
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6295
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6296
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6297
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6298
else
 
6299
  if test -n "$ac_ct_RANLIB"; then
 
6300
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6301
else
 
6302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6303
for as_dir in $PATH
 
6304
do
 
6305
  IFS=$as_save_IFS
 
6306
  test -z "$as_dir" && as_dir=.
 
6307
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6308
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6309
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6310
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6311
    break 2
 
6312
  fi
 
6313
done
 
6314
done
 
6315
 
 
6316
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6317
fi
 
6318
fi
 
6319
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6320
if test -n "$ac_ct_RANLIB"; then
 
6321
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6322
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6323
else
 
6324
  echo "$as_me:$LINENO: result: no" >&5
 
6325
echo "${ECHO_T}no" >&6
 
6326
fi
 
6327
 
 
6328
  RANLIB=$ac_ct_RANLIB
 
6329
else
 
6330
  RANLIB="$ac_cv_prog_RANLIB"
 
6331
fi
 
6332
 
 
6333
 
 
6334
# Check whether --enable-shared or --disable-shared was given.
 
6335
if test "${enable_shared+set}" = set; then
 
6336
  enableval="$enable_shared"
 
6337
  p=${PACKAGE-default}
 
6338
    case $enableval in
 
6339
    yes) enable_shared=yes ;;
 
6340
    no) enable_shared=no ;;
 
6341
    *)
 
6342
      enable_shared=no
 
6343
      # Look at the argument we got.  We use all the common list separators.
 
6344
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6345
      for pkg in $enableval; do
 
6346
        IFS="$lt_save_ifs"
 
6347
        if test "X$pkg" = "X$p"; then
 
6348
          enable_shared=yes
 
6349
        fi
 
6350
      done
 
6351
      IFS="$lt_save_ifs"
 
6352
      ;;
 
6353
    esac
 
6354
else
 
6355
  enable_shared=yes
 
6356
fi; 
 
6357
 
 
6358
# Check whether --enable-static or --disable-static was given.
 
6359
if test "${enable_static+set}" = set; then
 
6360
  enableval="$enable_static"
 
6361
  p=${PACKAGE-default}
 
6362
    case $enableval in
 
6363
    yes) enable_static=yes ;;
 
6364
    no) enable_static=no ;;
 
6365
    *)
 
6366
     enable_static=no
 
6367
      # Look at the argument we got.  We use all the common list separators.
 
6368
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6369
      for pkg in $enableval; do
 
6370
        IFS="$lt_save_ifs"
 
6371
        if test "X$pkg" = "X$p"; then
 
6372
          enable_static=yes
 
6373
        fi
 
6374
      done
 
6375
      IFS="$lt_save_ifs"
 
6376
      ;;
 
6377
    esac
 
6378
else
 
6379
  enable_static=yes
 
6380
fi; 
 
6381
 
 
6382
# Check whether --enable-fast-install or --disable-fast-install was given.
 
6383
if test "${enable_fast_install+set}" = set; then
 
6384
  enableval="$enable_fast_install"
 
6385
  p=${PACKAGE-default}
 
6386
    case $enableval in
 
6387
    yes) enable_fast_install=yes ;;
 
6388
    no) enable_fast_install=no ;;
 
6389
    *)
 
6390
      enable_fast_install=no
 
6391
      # Look at the argument we got.  We use all the common list separators.
 
6392
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6393
      for pkg in $enableval; do
 
6394
        IFS="$lt_save_ifs"
 
6395
        if test "X$pkg" = "X$p"; then
 
6396
          enable_fast_install=yes
 
6397
        fi
 
6398
      done
 
6399
      IFS="$lt_save_ifs"
 
6400
      ;;
 
6401
    esac
 
6402
else
 
6403
  enable_fast_install=yes
 
6404
fi; 
 
6405
 
 
6406
# Make sure we can run config.sub.
 
6407
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
6408
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
6409
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
6410
   { (exit 1); exit 1; }; }
 
6411
 
 
6412
echo "$as_me:$LINENO: checking build system type" >&5
 
6413
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
6414
if test "${ac_cv_build+set}" = set; then
 
6415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6416
else
 
6417
  ac_cv_build_alias=$build_alias
 
6418
test -z "$ac_cv_build_alias" &&
 
6419
  ac_cv_build_alias=`$ac_config_guess`
 
6420
test -z "$ac_cv_build_alias" &&
 
6421
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
6422
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
6423
   { (exit 1); exit 1; }; }
 
6424
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
6425
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
6426
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
6427
   { (exit 1); exit 1; }; }
 
6428
 
 
6429
fi
 
6430
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
6431
echo "${ECHO_T}$ac_cv_build" >&6
 
6432
build=$ac_cv_build
 
6433
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
6434
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
6435
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
6436
 
 
6437
 
 
6438
echo "$as_me:$LINENO: checking host system type" >&5
 
6439
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
6440
if test "${ac_cv_host+set}" = set; then
 
6441
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6442
else
 
6443
  ac_cv_host_alias=$host_alias
 
6444
test -z "$ac_cv_host_alias" &&
 
6445
  ac_cv_host_alias=$ac_cv_build_alias
 
6446
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
6447
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
6448
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
6449
   { (exit 1); exit 1; }; }
 
6450
 
 
6451
fi
 
6452
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
6453
echo "${ECHO_T}$ac_cv_host" >&6
 
6454
host=$ac_cv_host
 
6455
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
6456
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
6457
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
6458
 
 
6459
 
 
6460
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
6461
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
6462
if test "${lt_cv_path_SED+set}" = set; then
 
6463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6464
else
 
6465
  # Loop through the user's path and test for sed and gsed.
 
6466
# Then use that list of sed's as ones to test for truncation.
 
6467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6468
for as_dir in $PATH
 
6469
do
 
6470
  IFS=$as_save_IFS
 
6471
  test -z "$as_dir" && as_dir=.
 
6472
  for lt_ac_prog in sed gsed; do
 
6473
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6474
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6475
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
6476
      fi
 
6477
    done
 
6478
  done
 
6479
done
 
6480
lt_ac_max=0
 
6481
lt_ac_count=0
 
6482
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
6483
# along with /bin/sed that truncates output.
 
6484
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
6485
  test ! -f $lt_ac_sed && break
 
6486
  cat /dev/null > conftest.in
 
6487
  lt_ac_count=0
 
6488
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
6489
  # Check for GNU sed and select it if it is found.
 
6490
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
6491
    lt_cv_path_SED=$lt_ac_sed
 
6492
    break
 
6493
  fi
 
6494
  while true; do
 
6495
    cat conftest.in conftest.in >conftest.tmp
 
6496
    mv conftest.tmp conftest.in
 
6497
    cp conftest.in conftest.nl
 
6498
    echo >>conftest.nl
 
6499
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
6500
    cmp -s conftest.out conftest.nl || break
 
6501
    # 10000 chars as input seems more than enough
 
6502
    test $lt_ac_count -gt 10 && break
 
6503
    lt_ac_count=`expr $lt_ac_count + 1`
 
6504
    if test $lt_ac_count -gt $lt_ac_max; then
 
6505
      lt_ac_max=$lt_ac_count
 
6506
      lt_cv_path_SED=$lt_ac_sed
 
6507
    fi
 
6508
  done
 
6509
done
 
6510
SED=$lt_cv_path_SED
 
6511
 
 
6512
fi
 
6513
 
 
6514
echo "$as_me:$LINENO: result: $SED" >&5
 
6515
echo "${ECHO_T}$SED" >&6
 
6516
 
 
6517
 
 
6518
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
6519
if test "${with_gnu_ld+set}" = set; then
 
6520
  withval="$with_gnu_ld"
 
6521
  test "$withval" = no || with_gnu_ld=yes
 
6522
else
 
6523
  with_gnu_ld=no
 
6524
fi; 
 
6525
ac_prog=ld
 
6526
if test "$GCC" = yes; then
 
6527
  # Check if gcc -print-prog-name=ld gives a path.
 
6528
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
6529
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
6530
  case $host in
 
6531
  *-*-mingw*)
 
6532
    # gcc leaves a trailing carriage return which upsets mingw
 
6533
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
6534
  *)
 
6535
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
6536
  esac
 
6537
  case $ac_prog in
 
6538
    # Accept absolute paths.
 
6539
    [\\/]* | ?:[\\/]*)
 
6540
      re_direlt='/[^/][^/]*/\.\./'
 
6541
      # Canonicalize the pathname of ld
 
6542
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
6543
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
6544
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
6545
      done
 
6546
      test -z "$LD" && LD="$ac_prog"
 
6547
      ;;
 
6548
  "")
 
6549
    # If it fails, then pretend we aren't using GCC.
 
6550
    ac_prog=ld
 
6551
    ;;
 
6552
  *)
 
6553
    # If it is relative, then search for the first ld in PATH.
 
6554
    with_gnu_ld=unknown
 
6555
    ;;
 
6556
  esac
 
6557
elif test "$with_gnu_ld" = yes; then
 
6558
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
6559
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
6560
else
 
6561
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
6562
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
6563
fi
 
6564
if test "${lt_cv_path_LD+set}" = set; then
 
6565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6566
else
 
6567
  if test -z "$LD"; then
 
6568
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6569
  for ac_dir in $PATH; do
 
6570
    IFS="$lt_save_ifs"
 
6571
    test -z "$ac_dir" && ac_dir=.
 
6572
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
6573
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
6574
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
6575
      # but apparently some GNU ld's only accept -v.
 
6576
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
6577
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
6578
      *GNU* | *'with BFD'*)
 
6579
        test "$with_gnu_ld" != no && break
 
6580
        ;;
 
6581
      *)
 
6582
        test "$with_gnu_ld" != yes && break
 
6583
        ;;
 
6584
      esac
 
6585
    fi
 
6586
  done
 
6587
  IFS="$lt_save_ifs"
 
6588
else
 
6589
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
6590
fi
 
6591
fi
 
6592
 
 
6593
LD="$lt_cv_path_LD"
 
6594
if test -n "$LD"; then
 
6595
  echo "$as_me:$LINENO: result: $LD" >&5
 
6596
echo "${ECHO_T}$LD" >&6
 
6597
else
 
6598
  echo "$as_me:$LINENO: result: no" >&5
 
6599
echo "${ECHO_T}no" >&6
 
6600
fi
 
6601
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
6602
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
6603
   { (exit 1); exit 1; }; }
 
6604
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
6605
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
6606
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
6607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6608
else
 
6609
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
6610
case `$LD -v 2>&1 </dev/null` in
 
6611
*GNU* | *'with BFD'*)
 
6612
  lt_cv_prog_gnu_ld=yes
 
6613
  ;;
 
6614
*)
 
6615
  lt_cv_prog_gnu_ld=no
 
6616
  ;;
 
6617
esac
 
6618
fi
 
6619
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
6620
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
6621
with_gnu_ld=$lt_cv_prog_gnu_ld
 
6622
 
 
6623
 
 
6624
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
6625
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
6626
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
6627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6628
else
 
6629
  lt_cv_ld_reload_flag='-r'
 
6630
fi
 
6631
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
6632
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
6633
reload_flag=$lt_cv_ld_reload_flag
 
6634
case $reload_flag in
 
6635
"" | " "*) ;;
 
6636
*) reload_flag=" $reload_flag" ;;
 
6637
esac
 
6638
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6639
 
 
6640
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
6641
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
6642
if test "${lt_cv_path_NM+set}" = set; then
 
6643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6644
else
 
6645
  if test -n "$NM"; then
 
6646
  # Let the user override the test.
 
6647
  lt_cv_path_NM="$NM"
 
6648
else
 
6649
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6650
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
6651
    IFS="$lt_save_ifs"
 
6652
    test -z "$ac_dir" && ac_dir=.
 
6653
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
6654
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
6655
      # Check to see if the nm accepts a BSD-compat flag.
 
6656
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
6657
      #   nm: unknown option "B" ignored
 
6658
      # Tru64's nm complains that /dev/null is an invalid object file
 
6659
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
6660
      */dev/null* | *'Invalid file or object type'*)
 
6661
        lt_cv_path_NM="$tmp_nm -B"
 
6662
        break
 
6663
        ;;
 
6664
      *)
 
6665
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
6666
        */dev/null*)
 
6667
          lt_cv_path_NM="$tmp_nm -p"
 
6668
          break
 
6669
          ;;
 
6670
        *)
 
6671
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
6672
          continue # so that we can try to find one that supports BSD flags
 
6673
          ;;
 
6674
        esac
 
6675
      esac
 
6676
    fi
 
6677
  done
 
6678
  IFS="$lt_save_ifs"
 
6679
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
6680
fi
 
6681
fi
 
6682
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
6683
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
6684
NM="$lt_cv_path_NM"
 
6685
 
 
6686
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
6687
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
6688
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
6689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6690
else
 
6691
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6692
lt_cv_file_magic_test_file=
 
6693
lt_cv_deplibs_check_method='unknown'
 
6694
# Need to set the preceding variable on all platforms that support
 
6695
# interlibrary dependencies.
 
6696
# 'none' -- dependencies not supported.
 
6697
# `unknown' -- same as none, but documents that we really don't know.
 
6698
# 'pass_all' -- all dependencies passed with no checks.
 
6699
# 'test_compile' -- check by making test program.
 
6700
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6701
# which responds to the $file_magic_cmd with a given extended regex.
 
6702
# If you have `file' or equivalent on your system and you're not sure
 
6703
# whether `pass_all' will *always* work, you probably want this one.
 
6704
 
 
6705
case $host_os in
 
6706
aix4* | aix5*)
 
6707
  lt_cv_deplibs_check_method=pass_all
 
6708
  ;;
 
6709
 
 
6710
beos*)
 
6711
  lt_cv_deplibs_check_method=pass_all
 
6712
  ;;
 
6713
 
 
6714
bsdi4*)
 
6715
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6716
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6717
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6718
  ;;
 
6719
 
 
6720
cygwin*)
 
6721
  # func_win32_libid is a shell function defined in ltmain.sh
 
6722
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6723
  lt_cv_file_magic_cmd='func_win32_libid'
 
6724
  ;;
 
6725
 
 
6726
mingw* | pw32*)
 
6727
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6728
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
6729
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
6730
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6731
  ;;
 
6732
 
 
6733
darwin* | rhapsody*)
 
6734
  lt_cv_deplibs_check_method=pass_all
 
6735
  ;;
 
6736
 
 
6737
freebsd* | kfreebsd*-gnu)
 
6738
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6739
    case $host_cpu in
 
6740
    i*86 )
 
6741
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6742
      # Let's accept both of them until this is cleared up.
 
6743
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
6744
      lt_cv_file_magic_cmd=/usr/bin/file
 
6745
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6746
      ;;
 
6747
    esac
 
6748
  else
 
6749
    lt_cv_deplibs_check_method=pass_all
 
6750
  fi
 
6751
  ;;
 
6752
 
 
6753
gnu*)
 
6754
  lt_cv_deplibs_check_method=pass_all
 
6755
  ;;
 
6756
 
 
6757
hpux10.20* | hpux11*)
 
6758
  lt_cv_file_magic_cmd=/usr/bin/file
 
6759
  case "$host_cpu" in
 
6760
  ia64*)
 
6761
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6762
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6763
    ;;
 
6764
  hppa*64*)
 
6765
    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]'
 
6766
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6767
    ;;
 
6768
  *)
 
6769
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
6770
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6771
    ;;
 
6772
  esac
 
6773
  ;;
 
6774
 
 
6775
irix5* | irix6* | nonstopux*)
 
6776
  case $LD in
 
6777
  *-32|*"-32 ") libmagic=32-bit;;
 
6778
  *-n32|*"-n32 ") libmagic=N32;;
 
6779
  *-64|*"-64 ") libmagic=64-bit;;
 
6780
  *) libmagic=never-match;;
 
6781
  esac
 
6782
  lt_cv_deplibs_check_method=pass_all
 
6783
  ;;
 
6784
 
 
6785
# This must be Linux ELF.
 
6786
linux*)
 
6787
  lt_cv_deplibs_check_method=pass_all
 
6788
  ;;
 
6789
 
 
6790
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6791
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6792
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6793
  else
 
6794
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6795
  fi
 
6796
  ;;
 
6797
 
 
6798
newos6*)
 
6799
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6800
  lt_cv_file_magic_cmd=/usr/bin/file
 
6801
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6802
  ;;
 
6803
 
 
6804
nto-qnx*)
 
6805
  lt_cv_deplibs_check_method=unknown
 
6806
  ;;
 
6807
 
 
6808
openbsd*)
 
6809
  lt_cv_file_magic_cmd=/usr/bin/file
 
6810
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6811
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6812
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
6813
  else
 
6814
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
6815
  fi
 
6816
  ;;
 
6817
 
 
6818
osf3* | osf4* | osf5*)
 
6819
  lt_cv_deplibs_check_method=pass_all
 
6820
  ;;
 
6821
 
 
6822
sco3.2v5*)
 
6823
  lt_cv_deplibs_check_method=pass_all
 
6824
  ;;
 
6825
 
 
6826
solaris*)
 
6827
  lt_cv_deplibs_check_method=pass_all
 
6828
  ;;
 
6829
 
 
6830
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6831
  case $host_vendor in
 
6832
  motorola)
 
6833
    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]'
 
6834
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6835
    ;;
 
6836
  ncr)
 
6837
    lt_cv_deplibs_check_method=pass_all
 
6838
    ;;
 
6839
  sequent)
 
6840
    lt_cv_file_magic_cmd='/bin/file'
 
6841
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6842
    ;;
 
6843
  sni)
 
6844
    lt_cv_file_magic_cmd='/bin/file'
 
6845
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6846
    lt_cv_file_magic_test_file=/lib/libc.so
 
6847
    ;;
 
6848
  siemens)
 
6849
    lt_cv_deplibs_check_method=pass_all
 
6850
    ;;
 
6851
  esac
 
6852
  ;;
 
6853
 
 
6854
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
6855
  lt_cv_deplibs_check_method=pass_all
 
6856
  ;;
 
6857
esac
 
6858
 
 
6859
fi
 
6860
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
6861
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
6862
file_magic_cmd=$lt_cv_file_magic_cmd
 
6863
deplibs_check_method=$lt_cv_deplibs_check_method
 
6864
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6865
 
 
6866
 
 
6867
 
 
6868
 
 
6869
# If no C compiler was specified, use CC.
 
6870
LTCC=${LTCC-"$CC"}
 
6871
 
 
6872
# Allow CC to be a program name with arguments.
 
6873
compiler=$CC
 
6874
 
 
6875
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6876
if test "${enable_libtool_lock+set}" = set; then
 
6877
  enableval="$enable_libtool_lock"
 
6878
  
 
6879
fi; 
 
6880
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6881
 
 
6882
# Some flags need to be propagated to the compiler or linker for good
 
6883
# libtool support.
 
6884
case $host in
 
6885
ia64-*-hpux*)
 
6886
  # Find out which ABI we are using.
 
6887
  echo 'int i;' > conftest.$ac_ext
 
6888
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6889
  (eval $ac_compile) 2>&5
 
6890
  ac_status=$?
 
6891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6892
  (exit $ac_status); }; then
 
6893
    case `/usr/bin/file conftest.$ac_objext` in
 
6894
    *ELF-32*)
 
6895
      HPUX_IA64_MODE="32"
 
6896
      ;;
 
6897
    *ELF-64*)
 
6898
      HPUX_IA64_MODE="64"
 
6899
      ;;
 
6900
    esac
 
6901
  fi
 
6902
  rm -rf conftest*
 
6903
  ;;
 
6904
*-*-irix6*)
 
6905
  # Find out which ABI we are using.
 
6906
  echo '#line __oline__ "configure"' > conftest.$ac_ext
 
6907
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6908
  (eval $ac_compile) 2>&5
 
6909
  ac_status=$?
 
6910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6911
  (exit $ac_status); }; then
 
6912
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
6913
    case `/usr/bin/file conftest.$ac_objext` in
 
6914
    *32-bit*)
 
6915
      LD="${LD-ld} -melf32bsmip"
 
6916
      ;;
 
6917
    *N32*)
 
6918
      LD="${LD-ld} -melf32bmipn32"
 
6919
      ;;
 
6920
    *64-bit*)
 
6921
      LD="${LD-ld} -melf64bmip"
 
6922
      ;;
 
6923
    esac
 
6924
   else
 
6925
    case `/usr/bin/file conftest.$ac_objext` in
 
6926
    *32-bit*)
 
6927
      LD="${LD-ld} -32"
 
6928
      ;;
 
6929
    *N32*)
 
6930
      LD="${LD-ld} -n32"
 
6931
      ;;
 
6932
    *64-bit*)
 
6933
      LD="${LD-ld} -64"
 
6934
      ;;
 
6935
    esac
 
6936
   fi
 
6937
  fi
 
6938
  rm -rf conftest*
 
6939
  ;;
 
6940
 
 
6941
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
6942
  # Find out which ABI we are using.
 
6943
  echo 'int i;' > conftest.$ac_ext
 
6944
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6945
  (eval $ac_compile) 2>&5
 
6946
  ac_status=$?
 
6947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6948
  (exit $ac_status); }; then
 
6949
    case "`/usr/bin/file conftest.o`" in
 
6950
    *32-bit*)
 
6951
      case $host in
 
6952
        x86_64-*linux*)
 
6953
          LD="${LD-ld} -m elf_i386"
 
6954
          ;;
 
6955
        ppc64-*linux*|powerpc64-*linux*)
 
6956
          LD="${LD-ld} -m elf32ppclinux"
 
6957
          ;;
 
6958
        s390x-*linux*)
 
6959
          LD="${LD-ld} -m elf_s390"
 
6960
          ;;
 
6961
        sparc64-*linux*)
 
6962
          LD="${LD-ld} -m elf32_sparc"
 
6963
          ;;
 
6964
      esac
 
6965
      ;;
 
6966
    *64-bit*)
 
6967
      case $host in
 
6968
        x86_64-*linux*)
 
6969
          LD="${LD-ld} -m elf_x86_64"
 
6970
          ;;
 
6971
        ppc*-*linux*|powerpc*-*linux*)
 
6972
          LD="${LD-ld} -m elf64ppc"
 
6973
          ;;
 
6974
        s390*-*linux*)
 
6975
          LD="${LD-ld} -m elf64_s390"
 
6976
          ;;
 
6977
        sparc*-*linux*)
 
6978
          LD="${LD-ld} -m elf64_sparc"
 
6979
          ;;
 
6980
      esac
 
6981
      ;;
 
6982
    esac
 
6983
  fi
 
6984
  rm -rf conftest*
 
6985
  ;;
 
6986
 
 
6987
*-*-sco3.2v5*)
 
6988
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6989
  SAVE_CFLAGS="$CFLAGS"
 
6990
  CFLAGS="$CFLAGS -belf"
 
6991
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
6992
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
6993
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
6994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6995
else
 
6996
  ac_ext=c
 
6997
ac_cpp='$CPP $CPPFLAGS'
 
6998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7001
 
 
7002
     cat >conftest.$ac_ext <<_ACEOF
 
7003
/* confdefs.h.  */
 
7004
_ACEOF
 
7005
cat confdefs.h >>conftest.$ac_ext
 
7006
cat >>conftest.$ac_ext <<_ACEOF
 
7007
/* end confdefs.h.  */
 
7008
 
 
7009
int
 
7010
main ()
 
7011
{
 
7012
 
 
7013
  ;
 
7014
  return 0;
 
7015
}
 
7016
_ACEOF
 
7017
rm -f conftest.$ac_objext conftest$ac_exeext
 
7018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7019
  (eval $ac_link) 2>conftest.er1
 
7020
  ac_status=$?
 
7021
  grep -v '^ *+' conftest.er1 >conftest.err
 
7022
  rm -f conftest.er1
 
7023
  cat conftest.err >&5
 
7024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7025
  (exit $ac_status); } &&
 
7026
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7028
  (eval $ac_try) 2>&5
 
7029
  ac_status=$?
 
7030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7031
  (exit $ac_status); }; } &&
 
7032
         { ac_try='test -s conftest$ac_exeext'
 
7033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7034
  (eval $ac_try) 2>&5
 
7035
  ac_status=$?
 
7036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7037
  (exit $ac_status); }; }; then
 
7038
  lt_cv_cc_needs_belf=yes
 
7039
else
 
7040
  echo "$as_me: failed program was:" >&5
 
7041
sed 's/^/| /' conftest.$ac_ext >&5
 
7042
 
 
7043
lt_cv_cc_needs_belf=no
 
7044
fi
 
7045
rm -f conftest.err conftest.$ac_objext \
 
7046
      conftest$ac_exeext conftest.$ac_ext
 
7047
     ac_ext=c
 
7048
ac_cpp='$CPP $CPPFLAGS'
 
7049
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7050
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7051
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7052
 
 
7053
fi
 
7054
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
7055
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
7056
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7057
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7058
    CFLAGS="$SAVE_CFLAGS"
 
7059
  fi
 
7060
  ;;
 
7061
 
 
7062
esac
 
7063
 
 
7064
need_locks="$enable_libtool_lock"
 
7065
 
 
7066
 
 
7067
 
 
7068
for ac_header in dlfcn.h
 
7069
do
 
7070
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7071
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7072
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7073
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7074
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7076
fi
 
7077
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7078
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7079
else
 
7080
  # Is the header compilable?
 
7081
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7082
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7083
cat >conftest.$ac_ext <<_ACEOF
 
7084
/* confdefs.h.  */
 
7085
_ACEOF
 
7086
cat confdefs.h >>conftest.$ac_ext
 
7087
cat >>conftest.$ac_ext <<_ACEOF
 
7088
/* end confdefs.h.  */
 
7089
$ac_includes_default
 
7090
@%:@include <$ac_header>
 
7091
_ACEOF
 
7092
rm -f conftest.$ac_objext
 
7093
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7094
  (eval $ac_compile) 2>conftest.er1
 
7095
  ac_status=$?
 
7096
  grep -v '^ *+' conftest.er1 >conftest.err
 
7097
  rm -f conftest.er1
 
7098
  cat conftest.err >&5
 
7099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7100
  (exit $ac_status); } &&
 
7101
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7103
  (eval $ac_try) 2>&5
 
7104
  ac_status=$?
 
7105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7106
  (exit $ac_status); }; } &&
 
7107
         { ac_try='test -s conftest.$ac_objext'
 
7108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7109
  (eval $ac_try) 2>&5
 
7110
  ac_status=$?
 
7111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7112
  (exit $ac_status); }; }; then
 
7113
  ac_header_compiler=yes
 
7114
else
 
7115
  echo "$as_me: failed program was:" >&5
 
7116
sed 's/^/| /' conftest.$ac_ext >&5
 
7117
 
 
7118
ac_header_compiler=no
 
7119
fi
 
7120
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7121
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7122
echo "${ECHO_T}$ac_header_compiler" >&6
 
7123
 
 
7124
# Is the header present?
 
7125
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7126
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7127
cat >conftest.$ac_ext <<_ACEOF
 
7128
/* confdefs.h.  */
 
7129
_ACEOF
 
7130
cat confdefs.h >>conftest.$ac_ext
 
7131
cat >>conftest.$ac_ext <<_ACEOF
 
7132
/* end confdefs.h.  */
 
7133
@%:@include <$ac_header>
 
7134
_ACEOF
 
7135
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7136
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7137
  ac_status=$?
 
7138
  grep -v '^ *+' conftest.er1 >conftest.err
 
7139
  rm -f conftest.er1
 
7140
  cat conftest.err >&5
 
7141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7142
  (exit $ac_status); } >/dev/null; then
 
7143
  if test -s conftest.err; then
 
7144
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7145
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7146
  else
 
7147
    ac_cpp_err=
 
7148
  fi
 
7149
else
 
7150
  ac_cpp_err=yes
 
7151
fi
 
7152
if test -z "$ac_cpp_err"; then
 
7153
  ac_header_preproc=yes
 
7154
else
 
7155
  echo "$as_me: failed program was:" >&5
 
7156
sed 's/^/| /' conftest.$ac_ext >&5
 
7157
 
 
7158
  ac_header_preproc=no
 
7159
fi
 
7160
rm -f conftest.err conftest.$ac_ext
 
7161
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7162
echo "${ECHO_T}$ac_header_preproc" >&6
 
7163
 
 
7164
# So?  What about this header?
 
7165
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7166
  yes:no: )
 
7167
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7168
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7169
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7170
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7171
    ac_header_preproc=yes
 
7172
    ;;
 
7173
  no:yes:* )
 
7174
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7175
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7176
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7177
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7178
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7179
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7180
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7181
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7182
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7183
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7184
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7185
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7186
    (
 
7187
      cat <<\_ASBOX
 
7188
@%:@@%:@ ---------------------------------- @%:@@%:@
 
7189
@%:@@%:@ Report this to doug@sourcejudy.com @%:@@%:@
 
7190
@%:@@%:@ ---------------------------------- @%:@@%:@
 
7191
_ASBOX
 
7192
    ) |
 
7193
      sed "s/^/$as_me: WARNING:     /" >&2
 
7194
    ;;
 
7195
esac
 
7196
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7197
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7198
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7200
else
 
7201
  eval "$as_ac_Header=\$ac_header_preproc"
 
7202
fi
 
7203
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7204
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7205
 
 
7206
fi
 
7207
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7208
  cat >>confdefs.h <<_ACEOF
 
7209
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7210
_ACEOF
 
7211
 
 
7212
fi
 
7213
 
 
7214
done
 
7215
 
 
7216
ac_ext=cc
 
7217
ac_cpp='$CXXCPP $CPPFLAGS'
 
7218
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7219
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7220
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7221
if test -n "$ac_tool_prefix"; then
 
7222
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
7223
  do
 
7224
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7225
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7226
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7227
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7228
if test "${ac_cv_prog_CXX+set}" = set; then
 
7229
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7230
else
 
7231
  if test -n "$CXX"; then
 
7232
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
7233
else
 
7234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7235
for as_dir in $PATH
 
7236
do
 
7237
  IFS=$as_save_IFS
 
7238
  test -z "$as_dir" && as_dir=.
 
7239
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7240
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7241
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
7242
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7243
    break 2
 
7244
  fi
 
7245
done
 
7246
done
 
7247
 
 
7248
fi
 
7249
fi
 
7250
CXX=$ac_cv_prog_CXX
 
7251
if test -n "$CXX"; then
 
7252
  echo "$as_me:$LINENO: result: $CXX" >&5
 
7253
echo "${ECHO_T}$CXX" >&6
 
7254
else
 
7255
  echo "$as_me:$LINENO: result: no" >&5
 
7256
echo "${ECHO_T}no" >&6
 
7257
fi
 
7258
 
 
7259
    test -n "$CXX" && break
 
7260
  done
 
7261
fi
 
7262
if test -z "$CXX"; then
 
7263
  ac_ct_CXX=$CXX
 
7264
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
7265
do
 
7266
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7267
set dummy $ac_prog; ac_word=$2
 
7268
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7270
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
7271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7272
else
 
7273
  if test -n "$ac_ct_CXX"; then
 
7274
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
7275
else
 
7276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7277
for as_dir in $PATH
 
7278
do
 
7279
  IFS=$as_save_IFS
 
7280
  test -z "$as_dir" && as_dir=.
 
7281
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7282
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7283
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
7284
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7285
    break 2
 
7286
  fi
 
7287
done
 
7288
done
 
7289
 
 
7290
fi
 
7291
fi
 
7292
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
7293
if test -n "$ac_ct_CXX"; then
 
7294
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
7295
echo "${ECHO_T}$ac_ct_CXX" >&6
 
7296
else
 
7297
  echo "$as_me:$LINENO: result: no" >&5
 
7298
echo "${ECHO_T}no" >&6
 
7299
fi
 
7300
 
 
7301
  test -n "$ac_ct_CXX" && break
 
7302
done
 
7303
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
7304
 
 
7305
  CXX=$ac_ct_CXX
 
7306
fi
 
7307
 
 
7308
 
 
7309
# Provide some information about the compiler.
 
7310
echo "$as_me:$LINENO:" \
 
7311
     "checking for C++ compiler version" >&5
 
7312
ac_compiler=`set X $ac_compile; echo $2`
 
7313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
7314
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
7315
  ac_status=$?
 
7316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7317
  (exit $ac_status); }
 
7318
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
7319
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
7320
  ac_status=$?
 
7321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7322
  (exit $ac_status); }
 
7323
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
7324
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
7325
  ac_status=$?
 
7326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7327
  (exit $ac_status); }
 
7328
 
 
7329
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
7330
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
7331
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
7332
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7333
else
 
7334
  cat >conftest.$ac_ext <<_ACEOF
 
7335
/* confdefs.h.  */
 
7336
_ACEOF
 
7337
cat confdefs.h >>conftest.$ac_ext
 
7338
cat >>conftest.$ac_ext <<_ACEOF
 
7339
/* end confdefs.h.  */
 
7340
 
 
7341
int
 
7342
main ()
 
7343
{
 
7344
#ifndef __GNUC__
 
7345
       choke me
 
7346
#endif
 
7347
 
 
7348
  ;
 
7349
  return 0;
 
7350
}
 
7351
_ACEOF
 
7352
rm -f conftest.$ac_objext
 
7353
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7354
  (eval $ac_compile) 2>conftest.er1
 
7355
  ac_status=$?
 
7356
  grep -v '^ *+' conftest.er1 >conftest.err
 
7357
  rm -f conftest.er1
 
7358
  cat conftest.err >&5
 
7359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7360
  (exit $ac_status); } &&
 
7361
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
7362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7363
  (eval $ac_try) 2>&5
 
7364
  ac_status=$?
 
7365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7366
  (exit $ac_status); }; } &&
 
7367
         { ac_try='test -s conftest.$ac_objext'
 
7368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7369
  (eval $ac_try) 2>&5
 
7370
  ac_status=$?
 
7371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7372
  (exit $ac_status); }; }; then
 
7373
  ac_compiler_gnu=yes
 
7374
else
 
7375
  echo "$as_me: failed program was:" >&5
 
7376
sed 's/^/| /' conftest.$ac_ext >&5
 
7377
 
 
7378
ac_compiler_gnu=no
 
7379
fi
 
7380
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7381
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
7382
 
 
7383
fi
 
7384
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
7385
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
7386
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
7387
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
7388
ac_save_CXXFLAGS=$CXXFLAGS
 
7389
CXXFLAGS="-g"
 
7390
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
7391
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
7392
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
7393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7394
else
 
7395
  cat >conftest.$ac_ext <<_ACEOF
 
7396
/* confdefs.h.  */
 
7397
_ACEOF
 
7398
cat confdefs.h >>conftest.$ac_ext
 
7399
cat >>conftest.$ac_ext <<_ACEOF
 
7400
/* end confdefs.h.  */
 
7401
 
 
7402
int
 
7403
main ()
 
7404
{
 
7405
 
 
7406
  ;
 
7407
  return 0;
 
7408
}
 
7409
_ACEOF
 
7410
rm -f conftest.$ac_objext
 
7411
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7412
  (eval $ac_compile) 2>conftest.er1
 
7413
  ac_status=$?
 
7414
  grep -v '^ *+' conftest.er1 >conftest.err
 
7415
  rm -f conftest.er1
 
7416
  cat conftest.err >&5
 
7417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7418
  (exit $ac_status); } &&
 
7419
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
7420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7421
  (eval $ac_try) 2>&5
 
7422
  ac_status=$?
 
7423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7424
  (exit $ac_status); }; } &&
 
7425
         { ac_try='test -s conftest.$ac_objext'
 
7426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7427
  (eval $ac_try) 2>&5
 
7428
  ac_status=$?
 
7429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7430
  (exit $ac_status); }; }; then
 
7431
  ac_cv_prog_cxx_g=yes
 
7432
else
 
7433
  echo "$as_me: failed program was:" >&5
 
7434
sed 's/^/| /' conftest.$ac_ext >&5
 
7435
 
 
7436
ac_cv_prog_cxx_g=no
 
7437
fi
 
7438
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7439
fi
 
7440
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
7441
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
7442
if test "$ac_test_CXXFLAGS" = set; then
 
7443
  CXXFLAGS=$ac_save_CXXFLAGS
 
7444
elif test $ac_cv_prog_cxx_g = yes; then
 
7445
  if test "$GXX" = yes; then
 
7446
    CXXFLAGS="-g -O2"
 
7447
  else
 
7448
    CXXFLAGS="-g"
 
7449
  fi
 
7450
else
 
7451
  if test "$GXX" = yes; then
 
7452
    CXXFLAGS="-O2"
 
7453
  else
 
7454
    CXXFLAGS=
 
7455
  fi
 
7456
fi
 
7457
for ac_declaration in \
 
7458
   '' \
 
7459
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
7460
   'extern "C" void std::exit (int); using std::exit;' \
 
7461
   'extern "C" void exit (int) throw ();' \
 
7462
   'extern "C" void exit (int);' \
 
7463
   'void exit (int);'
 
7464
do
 
7465
  cat >conftest.$ac_ext <<_ACEOF
 
7466
/* confdefs.h.  */
 
7467
_ACEOF
 
7468
cat confdefs.h >>conftest.$ac_ext
 
7469
cat >>conftest.$ac_ext <<_ACEOF
 
7470
/* end confdefs.h.  */
 
7471
$ac_declaration
 
7472
@%:@include <stdlib.h>
 
7473
int
 
7474
main ()
 
7475
{
 
7476
exit (42);
 
7477
  ;
 
7478
  return 0;
 
7479
}
 
7480
_ACEOF
 
7481
rm -f conftest.$ac_objext
 
7482
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7483
  (eval $ac_compile) 2>conftest.er1
 
7484
  ac_status=$?
 
7485
  grep -v '^ *+' conftest.er1 >conftest.err
 
7486
  rm -f conftest.er1
 
7487
  cat conftest.err >&5
 
7488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7489
  (exit $ac_status); } &&
 
7490
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
7491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7492
  (eval $ac_try) 2>&5
 
7493
  ac_status=$?
 
7494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7495
  (exit $ac_status); }; } &&
 
7496
         { ac_try='test -s conftest.$ac_objext'
 
7497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7498
  (eval $ac_try) 2>&5
 
7499
  ac_status=$?
 
7500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7501
  (exit $ac_status); }; }; then
 
7502
  :
 
7503
else
 
7504
  echo "$as_me: failed program was:" >&5
 
7505
sed 's/^/| /' conftest.$ac_ext >&5
 
7506
 
 
7507
continue
 
7508
fi
 
7509
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7510
  cat >conftest.$ac_ext <<_ACEOF
 
7511
/* confdefs.h.  */
 
7512
_ACEOF
 
7513
cat confdefs.h >>conftest.$ac_ext
 
7514
cat >>conftest.$ac_ext <<_ACEOF
 
7515
/* end confdefs.h.  */
 
7516
$ac_declaration
 
7517
int
 
7518
main ()
 
7519
{
 
7520
exit (42);
 
7521
  ;
 
7522
  return 0;
 
7523
}
 
7524
_ACEOF
 
7525
rm -f conftest.$ac_objext
 
7526
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7527
  (eval $ac_compile) 2>conftest.er1
 
7528
  ac_status=$?
 
7529
  grep -v '^ *+' conftest.er1 >conftest.err
 
7530
  rm -f conftest.er1
 
7531
  cat conftest.err >&5
 
7532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7533
  (exit $ac_status); } &&
 
7534
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
7535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7536
  (eval $ac_try) 2>&5
 
7537
  ac_status=$?
 
7538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7539
  (exit $ac_status); }; } &&
 
7540
         { ac_try='test -s conftest.$ac_objext'
 
7541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7542
  (eval $ac_try) 2>&5
 
7543
  ac_status=$?
 
7544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7545
  (exit $ac_status); }; }; then
 
7546
  break
 
7547
else
 
7548
  echo "$as_me: failed program was:" >&5
 
7549
sed 's/^/| /' conftest.$ac_ext >&5
 
7550
 
 
7551
fi
 
7552
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7553
done
 
7554
rm -f conftest*
 
7555
if test -n "$ac_declaration"; then
 
7556
  echo '#ifdef __cplusplus' >>confdefs.h
 
7557
  echo $ac_declaration      >>confdefs.h
 
7558
  echo '#endif'             >>confdefs.h
 
7559
fi
 
7560
 
 
7561
ac_ext=cc
 
7562
ac_cpp='$CXXCPP $CPPFLAGS'
 
7563
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7564
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7565
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7566
 
 
7567
depcc="$CXX"  am_compiler_list=
 
7568
 
 
7569
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
7570
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
7571
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
7572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7573
else
 
7574
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
7575
  # We make a subdir and do the tests there.  Otherwise we can end up
 
7576
  # making bogus files that we don't know about and never remove.  For
 
7577
  # instance it was reported that on HP-UX the gcc test will end up
 
7578
  # making a dummy file named `D' -- because `-MD' means `put the output
 
7579
  # in D'.
 
7580
  mkdir conftest.dir
 
7581
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
7582
  # using a relative directory.
 
7583
  cp "$am_depcomp" conftest.dir
 
7584
  cd conftest.dir
 
7585
  # We will build objects and dependencies in a subdirectory because
 
7586
  # it helps to detect inapplicable dependency modes.  For instance
 
7587
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
7588
  # side effect of compilation, but ICC will put the dependencies in
 
7589
  # the current directory while Tru64 will put them in the object
 
7590
  # directory.
 
7591
  mkdir sub
 
7592
 
 
7593
  am_cv_CXX_dependencies_compiler_type=none
 
7594
  if test "$am_compiler_list" = ""; then
 
7595
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
7596
  fi
 
7597
  for depmode in $am_compiler_list; do
 
7598
    # Setup a source with many dependencies, because some compilers
 
7599
    # like to wrap large dependency lists on column 80 (with \), and
 
7600
    # we should not choose a depcomp mode which is confused by this.
 
7601
    #
 
7602
    # We need to recreate these files for each test, as the compiler may
 
7603
    # overwrite some of them when testing with obscure command lines.
 
7604
    # This happens at least with the AIX C compiler.
 
7605
    : > sub/conftest.c
 
7606
    for i in 1 2 3 4 5 6; do
 
7607
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
7608
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
7609
      # Solaris 8's {/usr,}/bin/sh.
 
7610
      touch sub/conftst$i.h
 
7611
    done
 
7612
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
7613
 
 
7614
    case $depmode in
 
7615
    nosideeffect)
 
7616
      # after this tag, mechanisms are not by side-effect, so they'll
 
7617
      # only be used when explicitly requested
 
7618
      if test "x$enable_dependency_tracking" = xyes; then
 
7619
        continue
 
7620
      else
 
7621
        break
 
7622
      fi
 
7623
      ;;
 
7624
    none) break ;;
 
7625
    esac
 
7626
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
7627
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
7628
    # handle `-M -o', and we need to detect this.
 
7629
    if depmode=$depmode \
 
7630
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
7631
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
7632
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
7633
         >/dev/null 2>conftest.err &&
 
7634
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
7635
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
7636
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
7637
      # icc doesn't choke on unknown options, it will just issue warnings
 
7638
      # or remarks (even with -Werror).  So we grep stderr for any message
 
7639
      # that says an option was ignored or not supported.
 
7640
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
7641
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
7642
      # The diagnosis changed in icc 8.0:
 
7643
      #   icc: Command line remark: option '-MP' not supported
 
7644
      if (grep 'ignoring option' conftest.err ||
 
7645
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
7646
        am_cv_CXX_dependencies_compiler_type=$depmode
 
7647
        break
 
7648
      fi
 
7649
    fi
 
7650
  done
 
7651
 
 
7652
  cd ..
 
7653
  rm -rf conftest.dir
 
7654
else
 
7655
  am_cv_CXX_dependencies_compiler_type=none
 
7656
fi
 
7657
 
 
7658
fi
 
7659
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
7660
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
7661
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
7662
 
 
7663
 
 
7664
 
 
7665
if 
 
7666
  test "x$enable_dependency_tracking" != xno \
 
7667
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
7668
  am__fastdepCXX_TRUE=
 
7669
  am__fastdepCXX_FALSE='#'
 
7670
else
 
7671
  am__fastdepCXX_TRUE='#'
 
7672
  am__fastdepCXX_FALSE=
 
7673
fi
 
7674
 
 
7675
 
 
7676
ac_ext=cc
 
7677
ac_cpp='$CXXCPP $CPPFLAGS'
 
7678
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7679
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7680
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7681
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
7682
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
7683
if test -z "$CXXCPP"; then
 
7684
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
7685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7686
else
 
7687
      # Double quotes because CXXCPP needs to be expanded
 
7688
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
7689
    do
 
7690
      ac_preproc_ok=false
 
7691
for ac_cxx_preproc_warn_flag in '' yes
 
7692
do
 
7693
  # Use a header file that comes with gcc, so configuring glibc
 
7694
  # with a fresh cross-compiler works.
 
7695
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7696
  # <limits.h> exists even on freestanding compilers.
 
7697
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7698
  # not just through cpp. "Syntax error" is here to catch this case.
 
7699
  cat >conftest.$ac_ext <<_ACEOF
 
7700
/* confdefs.h.  */
 
7701
_ACEOF
 
7702
cat confdefs.h >>conftest.$ac_ext
 
7703
cat >>conftest.$ac_ext <<_ACEOF
 
7704
/* end confdefs.h.  */
 
7705
@%:@ifdef __STDC__
 
7706
@%:@ include <limits.h>
 
7707
@%:@else
 
7708
@%:@ include <assert.h>
 
7709
@%:@endif
 
7710
                     Syntax error
 
7711
_ACEOF
 
7712
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7713
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7714
  ac_status=$?
 
7715
  grep -v '^ *+' conftest.er1 >conftest.err
 
7716
  rm -f conftest.er1
 
7717
  cat conftest.err >&5
 
7718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7719
  (exit $ac_status); } >/dev/null; then
 
7720
  if test -s conftest.err; then
 
7721
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7722
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7723
  else
 
7724
    ac_cpp_err=
 
7725
  fi
 
7726
else
 
7727
  ac_cpp_err=yes
 
7728
fi
 
7729
if test -z "$ac_cpp_err"; then
 
7730
  :
 
7731
else
 
7732
  echo "$as_me: failed program was:" >&5
 
7733
sed 's/^/| /' conftest.$ac_ext >&5
 
7734
 
 
7735
  # Broken: fails on valid input.
 
7736
continue
 
7737
fi
 
7738
rm -f conftest.err conftest.$ac_ext
 
7739
 
 
7740
  # OK, works on sane cases.  Now check whether non-existent headers
 
7741
  # can be detected and how.
 
7742
  cat >conftest.$ac_ext <<_ACEOF
 
7743
/* confdefs.h.  */
 
7744
_ACEOF
 
7745
cat confdefs.h >>conftest.$ac_ext
 
7746
cat >>conftest.$ac_ext <<_ACEOF
 
7747
/* end confdefs.h.  */
 
7748
@%:@include <ac_nonexistent.h>
 
7749
_ACEOF
 
7750
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7751
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7752
  ac_status=$?
 
7753
  grep -v '^ *+' conftest.er1 >conftest.err
 
7754
  rm -f conftest.er1
 
7755
  cat conftest.err >&5
 
7756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7757
  (exit $ac_status); } >/dev/null; then
 
7758
  if test -s conftest.err; then
 
7759
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7760
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7761
  else
 
7762
    ac_cpp_err=
 
7763
  fi
 
7764
else
 
7765
  ac_cpp_err=yes
 
7766
fi
 
7767
if test -z "$ac_cpp_err"; then
 
7768
  # Broken: success on invalid input.
 
7769
continue
 
7770
else
 
7771
  echo "$as_me: failed program was:" >&5
 
7772
sed 's/^/| /' conftest.$ac_ext >&5
 
7773
 
 
7774
  # Passes both tests.
 
7775
ac_preproc_ok=:
 
7776
break
 
7777
fi
 
7778
rm -f conftest.err conftest.$ac_ext
 
7779
 
 
7780
done
 
7781
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7782
rm -f conftest.err conftest.$ac_ext
 
7783
if $ac_preproc_ok; then
 
7784
  break
 
7785
fi
 
7786
 
 
7787
    done
 
7788
    ac_cv_prog_CXXCPP=$CXXCPP
 
7789
  
 
7790
fi
 
7791
  CXXCPP=$ac_cv_prog_CXXCPP
 
7792
else
 
7793
  ac_cv_prog_CXXCPP=$CXXCPP
 
7794
fi
 
7795
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
7796
echo "${ECHO_T}$CXXCPP" >&6
 
7797
ac_preproc_ok=false
 
7798
for ac_cxx_preproc_warn_flag in '' yes
 
7799
do
 
7800
  # Use a header file that comes with gcc, so configuring glibc
 
7801
  # with a fresh cross-compiler works.
 
7802
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7803
  # <limits.h> exists even on freestanding compilers.
 
7804
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7805
  # not just through cpp. "Syntax error" is here to catch this case.
 
7806
  cat >conftest.$ac_ext <<_ACEOF
 
7807
/* confdefs.h.  */
 
7808
_ACEOF
 
7809
cat confdefs.h >>conftest.$ac_ext
 
7810
cat >>conftest.$ac_ext <<_ACEOF
 
7811
/* end confdefs.h.  */
 
7812
@%:@ifdef __STDC__
 
7813
@%:@ include <limits.h>
 
7814
@%:@else
 
7815
@%:@ include <assert.h>
 
7816
@%:@endif
 
7817
                     Syntax error
 
7818
_ACEOF
 
7819
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7820
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7821
  ac_status=$?
 
7822
  grep -v '^ *+' conftest.er1 >conftest.err
 
7823
  rm -f conftest.er1
 
7824
  cat conftest.err >&5
 
7825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7826
  (exit $ac_status); } >/dev/null; then
 
7827
  if test -s conftest.err; then
 
7828
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7829
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7830
  else
 
7831
    ac_cpp_err=
 
7832
  fi
 
7833
else
 
7834
  ac_cpp_err=yes
 
7835
fi
 
7836
if test -z "$ac_cpp_err"; then
 
7837
  :
 
7838
else
 
7839
  echo "$as_me: failed program was:" >&5
 
7840
sed 's/^/| /' conftest.$ac_ext >&5
 
7841
 
 
7842
  # Broken: fails on valid input.
 
7843
continue
 
7844
fi
 
7845
rm -f conftest.err conftest.$ac_ext
 
7846
 
 
7847
  # OK, works on sane cases.  Now check whether non-existent headers
 
7848
  # can be detected and how.
 
7849
  cat >conftest.$ac_ext <<_ACEOF
 
7850
/* confdefs.h.  */
 
7851
_ACEOF
 
7852
cat confdefs.h >>conftest.$ac_ext
 
7853
cat >>conftest.$ac_ext <<_ACEOF
 
7854
/* end confdefs.h.  */
 
7855
@%:@include <ac_nonexistent.h>
 
7856
_ACEOF
 
7857
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7858
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7859
  ac_status=$?
 
7860
  grep -v '^ *+' conftest.er1 >conftest.err
 
7861
  rm -f conftest.er1
 
7862
  cat conftest.err >&5
 
7863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7864
  (exit $ac_status); } >/dev/null; then
 
7865
  if test -s conftest.err; then
 
7866
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7867
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7868
  else
 
7869
    ac_cpp_err=
 
7870
  fi
 
7871
else
 
7872
  ac_cpp_err=yes
 
7873
fi
 
7874
if test -z "$ac_cpp_err"; then
 
7875
  # Broken: success on invalid input.
 
7876
continue
 
7877
else
 
7878
  echo "$as_me: failed program was:" >&5
 
7879
sed 's/^/| /' conftest.$ac_ext >&5
 
7880
 
 
7881
  # Passes both tests.
 
7882
ac_preproc_ok=:
 
7883
break
 
7884
fi
 
7885
rm -f conftest.err conftest.$ac_ext
 
7886
 
 
7887
done
 
7888
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7889
rm -f conftest.err conftest.$ac_ext
 
7890
if $ac_preproc_ok; then
 
7891
  :
 
7892
else
 
7893
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7894
See \`config.log' for more details." >&5
 
7895
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7896
See \`config.log' for more details." >&2;}
 
7897
   { (exit 1); exit 1; }; }
 
7898
fi
 
7899
 
 
7900
ac_ext=cc
 
7901
ac_cpp='$CXXCPP $CPPFLAGS'
 
7902
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7903
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7904
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7905
 
 
7906
 
 
7907
ac_ext=f
 
7908
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
7909
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7910
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
7911
if test -n "$ac_tool_prefix"; then
 
7912
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7913
  do
 
7914
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7915
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7916
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7917
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7918
if test "${ac_cv_prog_F77+set}" = set; then
 
7919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7920
else
 
7921
  if test -n "$F77"; then
 
7922
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
7923
else
 
7924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7925
for as_dir in $PATH
 
7926
do
 
7927
  IFS=$as_save_IFS
 
7928
  test -z "$as_dir" && as_dir=.
 
7929
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7930
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7931
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
7932
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7933
    break 2
 
7934
  fi
 
7935
done
 
7936
done
 
7937
 
 
7938
fi
 
7939
fi
 
7940
F77=$ac_cv_prog_F77
 
7941
if test -n "$F77"; then
 
7942
  echo "$as_me:$LINENO: result: $F77" >&5
 
7943
echo "${ECHO_T}$F77" >&6
 
7944
else
 
7945
  echo "$as_me:$LINENO: result: no" >&5
 
7946
echo "${ECHO_T}no" >&6
 
7947
fi
 
7948
 
 
7949
    test -n "$F77" && break
 
7950
  done
 
7951
fi
 
7952
if test -z "$F77"; then
 
7953
  ac_ct_F77=$F77
 
7954
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7955
do
 
7956
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7957
set dummy $ac_prog; ac_word=$2
 
7958
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7960
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
7961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7962
else
 
7963
  if test -n "$ac_ct_F77"; then
 
7964
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
7965
else
 
7966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7967
for as_dir in $PATH
 
7968
do
 
7969
  IFS=$as_save_IFS
 
7970
  test -z "$as_dir" && as_dir=.
 
7971
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7972
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7973
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
7974
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7975
    break 2
 
7976
  fi
 
7977
done
 
7978
done
 
7979
 
 
7980
fi
 
7981
fi
 
7982
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
7983
if test -n "$ac_ct_F77"; then
 
7984
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
7985
echo "${ECHO_T}$ac_ct_F77" >&6
 
7986
else
 
7987
  echo "$as_me:$LINENO: result: no" >&5
 
7988
echo "${ECHO_T}no" >&6
 
7989
fi
 
7990
 
 
7991
  test -n "$ac_ct_F77" && break
 
7992
done
 
7993
 
 
7994
  F77=$ac_ct_F77
 
7995
fi
 
7996
 
 
7997
 
 
7998
# Provide some information about the compiler.
 
7999
echo "$as_me:__oline__:" \
 
8000
     "checking for Fortran 77 compiler version" >&5
 
8001
ac_compiler=`set X $ac_compile; echo $2`
 
8002
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
8003
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
8004
  ac_status=$?
 
8005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8006
  (exit $ac_status); }
 
8007
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
8008
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
8009
  ac_status=$?
 
8010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8011
  (exit $ac_status); }
 
8012
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
8013
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
8014
  ac_status=$?
 
8015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8016
  (exit $ac_status); }
 
8017
rm -f a.out
 
8018
 
 
8019
# If we don't use `.F' as extension, the preprocessor is not run on the
 
8020
# input file.  (Note that this only needs to work for GNU compilers.)
 
8021
ac_save_ext=$ac_ext
 
8022
ac_ext=F
 
8023
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
8024
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
8025
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
8026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8027
else
 
8028
  cat >conftest.$ac_ext <<_ACEOF
 
8029
      program main
 
8030
#ifndef __GNUC__
 
8031
       choke me
 
8032
#endif
 
8033
 
 
8034
      end
 
8035
_ACEOF
 
8036
rm -f conftest.$ac_objext
 
8037
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8038
  (eval $ac_compile) 2>conftest.er1
 
8039
  ac_status=$?
 
8040
  grep -v '^ *+' conftest.er1 >conftest.err
 
8041
  rm -f conftest.er1
 
8042
  cat conftest.err >&5
 
8043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8044
  (exit $ac_status); } &&
 
8045
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
8046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8047
  (eval $ac_try) 2>&5
 
8048
  ac_status=$?
 
8049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8050
  (exit $ac_status); }; } &&
 
8051
         { ac_try='test -s conftest.$ac_objext'
 
8052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8053
  (eval $ac_try) 2>&5
 
8054
  ac_status=$?
 
8055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8056
  (exit $ac_status); }; }; then
 
8057
  ac_compiler_gnu=yes
 
8058
else
 
8059
  echo "$as_me: failed program was:" >&5
 
8060
sed 's/^/| /' conftest.$ac_ext >&5
 
8061
 
 
8062
ac_compiler_gnu=no
 
8063
fi
 
8064
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8065
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
8066
 
 
8067
fi
 
8068
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
8069
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
8070
ac_ext=$ac_save_ext
 
8071
ac_test_FFLAGS=${FFLAGS+set}
 
8072
ac_save_FFLAGS=$FFLAGS
 
8073
FFLAGS=
 
8074
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
8075
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
8076
if test "${ac_cv_prog_f77_g+set}" = set; then
 
8077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8078
else
 
8079
  FFLAGS=-g
 
8080
cat >conftest.$ac_ext <<_ACEOF
 
8081
      program main
 
8082
 
 
8083
      end
 
8084
_ACEOF
 
8085
rm -f conftest.$ac_objext
 
8086
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8087
  (eval $ac_compile) 2>conftest.er1
 
8088
  ac_status=$?
 
8089
  grep -v '^ *+' conftest.er1 >conftest.err
 
8090
  rm -f conftest.er1
 
8091
  cat conftest.err >&5
 
8092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8093
  (exit $ac_status); } &&
 
8094
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
8095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8096
  (eval $ac_try) 2>&5
 
8097
  ac_status=$?
 
8098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8099
  (exit $ac_status); }; } &&
 
8100
         { ac_try='test -s conftest.$ac_objext'
 
8101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8102
  (eval $ac_try) 2>&5
 
8103
  ac_status=$?
 
8104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8105
  (exit $ac_status); }; }; then
 
8106
  ac_cv_prog_f77_g=yes
 
8107
else
 
8108
  echo "$as_me: failed program was:" >&5
 
8109
sed 's/^/| /' conftest.$ac_ext >&5
 
8110
 
 
8111
ac_cv_prog_f77_g=no
 
8112
fi
 
8113
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8114
 
 
8115
fi
 
8116
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
8117
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
8118
if test "$ac_test_FFLAGS" = set; then
 
8119
  FFLAGS=$ac_save_FFLAGS
 
8120
elif test $ac_cv_prog_f77_g = yes; then
 
8121
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
8122
    FFLAGS="-g -O2"
 
8123
  else
 
8124
    FFLAGS="-g"
 
8125
  fi
 
8126
else
 
8127
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
8128
    FFLAGS="-O2"
 
8129
  else
 
8130
    FFLAGS=
 
8131
  fi
 
8132
fi
 
8133
 
 
8134
G77=`test $ac_compiler_gnu = yes && echo yes`
 
8135
ac_ext=c
 
8136
ac_cpp='$CPP $CPPFLAGS'
 
8137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8140
 
 
8141
 
 
8142
 
 
8143
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
8144
 
 
8145
# find the maximum length of command line arguments
 
8146
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
8147
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
8148
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
8149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8150
else
 
8151
    i=0
 
8152
  teststring="ABCD"
 
8153
 
 
8154
  case $build_os in
 
8155
  msdosdjgpp*)
 
8156
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
8157
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
8158
    # during glob expansion).  Even if it were fixed, the result of this
 
8159
    # check would be larger than it should be.
 
8160
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
8161
    ;;
 
8162
 
 
8163
  gnu*)
 
8164
    # Under GNU Hurd, this test is not required because there is
 
8165
    # no limit to the length of command line arguments.
 
8166
    # Libtool will interpret -1 as no limit whatsoever
 
8167
    lt_cv_sys_max_cmd_len=-1;
 
8168
    ;;
 
8169
 
 
8170
  cygwin* | mingw*)
 
8171
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
8172
    # about 5 minutes as the teststring grows exponentially.
 
8173
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
8174
    # you end up with a "frozen" computer, even though with patience
 
8175
    # the test eventually succeeds (with a max line length of 256k).
 
8176
    # Instead, let's just punt: use the minimum linelength reported by
 
8177
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
8178
    lt_cv_sys_max_cmd_len=8192;
 
8179
    ;;
 
8180
 
 
8181
  amigaos*)
 
8182
    # On AmigaOS with pdksh, this test takes hours, literally.
 
8183
    # So we just punt and use a minimum line length of 8192.
 
8184
    lt_cv_sys_max_cmd_len=8192;
 
8185
    ;;
 
8186
 
 
8187
 *)
 
8188
    # If test is not a shell built-in, we'll probably end up computing a
 
8189
    # maximum length that is only half of the actual maximum length, but
 
8190
    # we can't tell.
 
8191
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
8192
               = "XX$teststring") >/dev/null 2>&1 &&
 
8193
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
8194
            lt_cv_sys_max_cmd_len=$new_result &&
 
8195
            test $i != 17 # 1/2 MB should be enough
 
8196
    do
 
8197
      i=`expr $i + 1`
 
8198
      teststring=$teststring$teststring
 
8199
    done
 
8200
    teststring=
 
8201
    # Add a significant safety factor because C++ compilers can tack on massive
 
8202
    # amounts of additional arguments before passing them to the linker.
 
8203
    # It appears as though 1/2 is a usable value.
 
8204
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
8205
    ;;
 
8206
  esac
 
8207
 
 
8208
fi
 
8209
 
 
8210
if test -n $lt_cv_sys_max_cmd_len ; then
 
8211
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
8212
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
8213
else
 
8214
  echo "$as_me:$LINENO: result: none" >&5
 
8215
echo "${ECHO_T}none" >&6
 
8216
fi
 
8217
 
 
8218
 
 
8219
 
 
8220
 
 
8221
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
8222
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
8223
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
8224
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
8225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8226
else
 
8227
  
 
8228
# These are sane defaults that work on at least a few old systems.
 
8229
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
8230
 
 
8231
# Character class describing NM global symbol codes.
 
8232
symcode='[BCDEGRST]'
 
8233
 
 
8234
# Regexp to match symbols that can be accessed directly from C.
 
8235
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
8236
 
 
8237
# Transform the above into a raw symbol and a C symbol.
 
8238
symxfrm='\1 \2\3 \3'
 
8239
 
 
8240
# Transform an extracted symbol line into a proper C declaration
 
8241
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
8242
 
 
8243
# Transform an extracted symbol line into symbol name and symbol address
 
8244
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'"
 
8245
 
 
8246
# Define system-specific variables.
 
8247
case $host_os in
 
8248
aix*)
 
8249
  symcode='[BCDT]'
 
8250
  ;;
 
8251
cygwin* | mingw* | pw32*)
 
8252
  symcode='[ABCDGISTW]'
 
8253
  ;;
 
8254
hpux*) # Its linker distinguishes data from code symbols
 
8255
  if test "$host_cpu" = ia64; then
 
8256
    symcode='[ABCDEGRST]'
 
8257
  fi
 
8258
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
8259
  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'"
 
8260
  ;;
 
8261
irix* | nonstopux*)
 
8262
  symcode='[BCDEGRST]'
 
8263
  ;;
 
8264
osf*)
 
8265
  symcode='[BCDEGQRST]'
 
8266
  ;;
 
8267
solaris* | sysv5*)
 
8268
  symcode='[BDRT]'
 
8269
  ;;
 
8270
sysv4)
 
8271
  symcode='[DFNSTU]'
 
8272
  ;;
 
8273
esac
 
8274
 
 
8275
# Handle CRLF in mingw tool chain
 
8276
opt_cr=
 
8277
case $build_os in
 
8278
mingw*)
 
8279
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
8280
  ;;
 
8281
esac
 
8282
 
 
8283
# If we're using GNU nm, then use its standard symbol codes.
 
8284
case `$NM -V 2>&1` in
 
8285
*GNU* | *'with BFD'*)
 
8286
  symcode='[ABCDGIRSTW]' ;;
 
8287
esac
 
8288
 
 
8289
# Try without a prefix undercore, then with it.
 
8290
for ac_symprfx in "" "_"; do
 
8291
 
 
8292
  # Write the raw and C identifiers.
 
8293
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
8294
 
 
8295
  # Check to see that the pipe works correctly.
 
8296
  pipe_works=no
 
8297
 
 
8298
  rm -f conftest*
 
8299
  cat > conftest.$ac_ext <<EOF
 
8300
#ifdef __cplusplus
 
8301
extern "C" {
 
8302
#endif
 
8303
char nm_test_var;
 
8304
void nm_test_func(){}
 
8305
#ifdef __cplusplus
 
8306
}
 
8307
#endif
 
8308
int main(){nm_test_var='a';nm_test_func();return(0);}
 
8309
EOF
 
8310
 
 
8311
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8312
  (eval $ac_compile) 2>&5
 
8313
  ac_status=$?
 
8314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8315
  (exit $ac_status); }; then
 
8316
    # Now try to grab the symbols.
 
8317
    nlist=conftest.nm
 
8318
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
8319
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
8320
  ac_status=$?
 
8321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8322
  (exit $ac_status); } && test -s "$nlist"; then
 
8323
      # Try sorting and uniquifying the output.
 
8324
      if sort "$nlist" | uniq > "$nlist"T; then
 
8325
        mv -f "$nlist"T "$nlist"
 
8326
      else
 
8327
        rm -f "$nlist"T
 
8328
      fi
 
8329
 
 
8330
      # Make sure that we snagged all the symbols we need.
 
8331
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
8332
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
8333
          cat <<EOF > conftest.$ac_ext
 
8334
#ifdef __cplusplus
 
8335
extern "C" {
 
8336
#endif
 
8337
 
 
8338
EOF
 
8339
          # Now generate the symbol file.
 
8340
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
8341
 
 
8342
          cat <<EOF >> conftest.$ac_ext
 
8343
#if defined (__STDC__) && __STDC__
 
8344
# define lt_ptr_t void *
 
8345
#else
 
8346
# define lt_ptr_t char *
 
8347
# define const
 
8348
#endif
 
8349
 
 
8350
/* The mapping between symbol names and symbols. */
 
8351
const struct {
 
8352
  const char *name;
 
8353
  lt_ptr_t address;
 
8354
}
 
8355
lt_preloaded_symbols[] =
 
8356
{
 
8357
EOF
 
8358
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
8359
          cat <<\EOF >> conftest.$ac_ext
 
8360
  {0, (lt_ptr_t) 0}
 
8361
};
 
8362
 
 
8363
#ifdef __cplusplus
 
8364
}
 
8365
#endif
 
8366
EOF
 
8367
          # Now try linking the two files.
 
8368
          mv conftest.$ac_objext conftstm.$ac_objext
 
8369
          lt_save_LIBS="$LIBS"
 
8370
          lt_save_CFLAGS="$CFLAGS"
 
8371
          LIBS="conftstm.$ac_objext"
 
8372
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
8373
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8374
  (eval $ac_link) 2>&5
 
8375
  ac_status=$?
 
8376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8377
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
8378
            pipe_works=yes
 
8379
          fi
 
8380
          LIBS="$lt_save_LIBS"
 
8381
          CFLAGS="$lt_save_CFLAGS"
 
8382
        else
 
8383
          echo "cannot find nm_test_func in $nlist" >&5
 
8384
        fi
 
8385
      else
 
8386
        echo "cannot find nm_test_var in $nlist" >&5
 
8387
      fi
 
8388
    else
 
8389
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
8390
    fi
 
8391
  else
 
8392
    echo "$progname: failed program was:" >&5
 
8393
    cat conftest.$ac_ext >&5
 
8394
  fi
 
8395
  rm -f conftest* conftst*
 
8396
 
 
8397
  # Do not use the global_symbol_pipe unless it works.
 
8398
  if test "$pipe_works" = yes; then
 
8399
    break
 
8400
  else
 
8401
    lt_cv_sys_global_symbol_pipe=
 
8402
  fi
 
8403
done
 
8404
 
 
8405
fi
 
8406
 
 
8407
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
8408
  lt_cv_sys_global_symbol_to_cdecl=
 
8409
fi
 
8410
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
8411
  echo "$as_me:$LINENO: result: failed" >&5
 
8412
echo "${ECHO_T}failed" >&6
 
8413
else
 
8414
  echo "$as_me:$LINENO: result: ok" >&5
 
8415
echo "${ECHO_T}ok" >&6
 
8416
fi
 
8417
 
 
8418
echo "$as_me:$LINENO: checking for objdir" >&5
 
8419
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
8420
if test "${lt_cv_objdir+set}" = set; then
 
8421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8422
else
 
8423
  rm -f .libs 2>/dev/null
 
8424
mkdir .libs 2>/dev/null
 
8425
if test -d .libs; then
 
8426
  lt_cv_objdir=.libs
 
8427
else
 
8428
  # MS-DOS does not allow filenames that begin with a dot.
 
8429
  lt_cv_objdir=_libs
 
8430
fi
 
8431
rmdir .libs 2>/dev/null
 
8432
fi
 
8433
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
8434
echo "${ECHO_T}$lt_cv_objdir" >&6
 
8435
objdir=$lt_cv_objdir
 
8436
 
 
8437
 
 
8438
 
 
8439
 
 
8440
 
 
8441
case $host_os in
 
8442
aix3*)
 
8443
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
8444
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
8445
  # vanish in a puff of smoke.
 
8446
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
8447
    COLLECT_NAMES=
 
8448
    export COLLECT_NAMES
 
8449
  fi
 
8450
  ;;
 
8451
esac
 
8452
 
 
8453
# Sed substitution that helps us do robust quoting.  It backslashifies
 
8454
# metacharacters that are still active within double-quoted strings.
 
8455
Xsed='sed -e s/^X//'
 
8456
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
8457
 
 
8458
# Same as above, but do not quote variable references.
 
8459
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
8460
 
 
8461
# Sed substitution to delay expansion of an escaped shell variable in a
 
8462
# double_quote_subst'ed string.
 
8463
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
8464
 
 
8465
# Sed substitution to avoid accidental globbing in evaled expressions
 
8466
no_glob_subst='s/\*/\\\*/g'
 
8467
 
 
8468
# Constants:
 
8469
rm="rm -f"
 
8470
 
 
8471
# Global variables:
 
8472
default_ofile=libtool
 
8473
can_build_shared=yes
 
8474
 
 
8475
# All known linkers require a `.a' archive for static linking (except M$VC,
 
8476
# which needs '.lib').
 
8477
libext=a
 
8478
ltmain="$ac_aux_dir/ltmain.sh"
 
8479
ofile="$default_ofile"
 
8480
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
8481
 
 
8482
if test -n "$ac_tool_prefix"; then
 
8483
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
8484
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
8485
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8486
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8487
if test "${ac_cv_prog_AR+set}" = set; then
 
8488
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8489
else
 
8490
  if test -n "$AR"; then
 
8491
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
8492
else
 
8493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8494
for as_dir in $PATH
 
8495
do
 
8496
  IFS=$as_save_IFS
 
8497
  test -z "$as_dir" && as_dir=.
 
8498
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8499
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8500
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
8501
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8502
    break 2
 
8503
  fi
 
8504
done
 
8505
done
 
8506
 
 
8507
fi
 
8508
fi
 
8509
AR=$ac_cv_prog_AR
 
8510
if test -n "$AR"; then
 
8511
  echo "$as_me:$LINENO: result: $AR" >&5
 
8512
echo "${ECHO_T}$AR" >&6
 
8513
else
 
8514
  echo "$as_me:$LINENO: result: no" >&5
 
8515
echo "${ECHO_T}no" >&6
 
8516
fi
 
8517
 
 
8518
fi
 
8519
if test -z "$ac_cv_prog_AR"; then
 
8520
  ac_ct_AR=$AR
 
8521
  # Extract the first word of "ar", so it can be a program name with args.
 
8522
set dummy ar; ac_word=$2
 
8523
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8524
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8525
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
8526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8527
else
 
8528
  if test -n "$ac_ct_AR"; then
 
8529
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
8530
else
 
8531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8532
for as_dir in $PATH
 
8533
do
 
8534
  IFS=$as_save_IFS
 
8535
  test -z "$as_dir" && as_dir=.
 
8536
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8537
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8538
    ac_cv_prog_ac_ct_AR="ar"
 
8539
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8540
    break 2
 
8541
  fi
 
8542
done
 
8543
done
 
8544
 
 
8545
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
8546
fi
 
8547
fi
 
8548
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
8549
if test -n "$ac_ct_AR"; then
 
8550
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
8551
echo "${ECHO_T}$ac_ct_AR" >&6
 
8552
else
 
8553
  echo "$as_me:$LINENO: result: no" >&5
 
8554
echo "${ECHO_T}no" >&6
 
8555
fi
 
8556
 
 
8557
  AR=$ac_ct_AR
 
8558
else
 
8559
  AR="$ac_cv_prog_AR"
 
8560
fi
 
8561
 
 
8562
if test -n "$ac_tool_prefix"; then
 
8563
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
8564
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
8565
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8566
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8567
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
8568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8569
else
 
8570
  if test -n "$RANLIB"; then
 
8571
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
8572
else
 
8573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8574
for as_dir in $PATH
 
8575
do
 
8576
  IFS=$as_save_IFS
 
8577
  test -z "$as_dir" && as_dir=.
 
8578
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8579
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8580
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
8581
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8582
    break 2
 
8583
  fi
 
8584
done
 
8585
done
 
8586
 
 
8587
fi
 
8588
fi
 
8589
RANLIB=$ac_cv_prog_RANLIB
 
8590
if test -n "$RANLIB"; then
 
8591
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
8592
echo "${ECHO_T}$RANLIB" >&6
 
8593
else
 
8594
  echo "$as_me:$LINENO: result: no" >&5
 
8595
echo "${ECHO_T}no" >&6
 
8596
fi
 
8597
 
 
8598
fi
 
8599
if test -z "$ac_cv_prog_RANLIB"; then
 
8600
  ac_ct_RANLIB=$RANLIB
 
8601
  # Extract the first word of "ranlib", so it can be a program name with args.
 
8602
set dummy ranlib; ac_word=$2
 
8603
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8604
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8605
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
8606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8607
else
 
8608
  if test -n "$ac_ct_RANLIB"; then
 
8609
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
8610
else
 
8611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8612
for as_dir in $PATH
 
8613
do
 
8614
  IFS=$as_save_IFS
 
8615
  test -z "$as_dir" && as_dir=.
 
8616
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8617
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8618
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
8619
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8620
    break 2
 
8621
  fi
 
8622
done
 
8623
done
 
8624
 
 
8625
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
8626
fi
 
8627
fi
 
8628
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
8629
if test -n "$ac_ct_RANLIB"; then
 
8630
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
8631
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
8632
else
 
8633
  echo "$as_me:$LINENO: result: no" >&5
 
8634
echo "${ECHO_T}no" >&6
 
8635
fi
 
8636
 
 
8637
  RANLIB=$ac_ct_RANLIB
 
8638
else
 
8639
  RANLIB="$ac_cv_prog_RANLIB"
 
8640
fi
 
8641
 
 
8642
if test -n "$ac_tool_prefix"; then
 
8643
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
8644
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
8645
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8646
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8647
if test "${ac_cv_prog_STRIP+set}" = set; then
 
8648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8649
else
 
8650
  if test -n "$STRIP"; then
 
8651
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
8652
else
 
8653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8654
for as_dir in $PATH
 
8655
do
 
8656
  IFS=$as_save_IFS
 
8657
  test -z "$as_dir" && as_dir=.
 
8658
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8659
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8660
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
8661
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8662
    break 2
 
8663
  fi
 
8664
done
 
8665
done
 
8666
 
 
8667
fi
 
8668
fi
 
8669
STRIP=$ac_cv_prog_STRIP
 
8670
if test -n "$STRIP"; then
 
8671
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
8672
echo "${ECHO_T}$STRIP" >&6
 
8673
else
 
8674
  echo "$as_me:$LINENO: result: no" >&5
 
8675
echo "${ECHO_T}no" >&6
 
8676
fi
 
8677
 
 
8678
fi
 
8679
if test -z "$ac_cv_prog_STRIP"; then
 
8680
  ac_ct_STRIP=$STRIP
 
8681
  # Extract the first word of "strip", so it can be a program name with args.
 
8682
set dummy strip; ac_word=$2
 
8683
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8684
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8685
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
8686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8687
else
 
8688
  if test -n "$ac_ct_STRIP"; then
 
8689
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
8690
else
 
8691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8692
for as_dir in $PATH
 
8693
do
 
8694
  IFS=$as_save_IFS
 
8695
  test -z "$as_dir" && as_dir=.
 
8696
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8697
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8698
    ac_cv_prog_ac_ct_STRIP="strip"
 
8699
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8700
    break 2
 
8701
  fi
 
8702
done
 
8703
done
 
8704
 
 
8705
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
8706
fi
 
8707
fi
 
8708
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
8709
if test -n "$ac_ct_STRIP"; then
 
8710
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
8711
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
8712
else
 
8713
  echo "$as_me:$LINENO: result: no" >&5
 
8714
echo "${ECHO_T}no" >&6
 
8715
fi
 
8716
 
 
8717
  STRIP=$ac_ct_STRIP
 
8718
else
 
8719
  STRIP="$ac_cv_prog_STRIP"
 
8720
fi
 
8721
 
 
8722
 
 
8723
old_CC="$CC"
 
8724
old_CFLAGS="$CFLAGS"
 
8725
 
 
8726
# Set sane defaults for various variables
 
8727
test -z "$AR" && AR=ar
 
8728
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
8729
test -z "$AS" && AS=as
 
8730
test -z "$CC" && CC=cc
 
8731
test -z "$LTCC" && LTCC=$CC
 
8732
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
8733
test -z "$LD" && LD=ld
 
8734
test -z "$LN_S" && LN_S="ln -s"
 
8735
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
8736
test -z "$NM" && NM=nm
 
8737
test -z "$SED" && SED=sed
 
8738
test -z "$OBJDUMP" && OBJDUMP=objdump
 
8739
test -z "$RANLIB" && RANLIB=:
 
8740
test -z "$STRIP" && STRIP=:
 
8741
test -z "$ac_objext" && ac_objext=o
 
8742
 
 
8743
# Determine commands to create old-style static archives.
 
8744
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
8745
old_postinstall_cmds='chmod 644 $oldlib'
 
8746
old_postuninstall_cmds=
 
8747
 
 
8748
if test -n "$RANLIB"; then
 
8749
  case $host_os in
 
8750
  openbsd*)
 
8751
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
8752
    ;;
 
8753
  *)
 
8754
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
8755
    ;;
 
8756
  esac
 
8757
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
8758
fi
 
8759
 
 
8760
# Only perform the check for file, if the check method requires it
 
8761
case $deplibs_check_method in
 
8762
file_magic*)
 
8763
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
8764
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
8765
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
8766
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8767
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8768
else
 
8769
  case $MAGIC_CMD in
 
8770
[\\/*] |  ?:[\\/]*)
 
8771
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8772
  ;;
 
8773
*)
 
8774
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8775
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8776
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8777
  for ac_dir in $ac_dummy; do
 
8778
    IFS="$lt_save_ifs"
 
8779
    test -z "$ac_dir" && ac_dir=.
 
8780
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
8781
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
8782
      if test -n "$file_magic_test_file"; then
 
8783
        case $deplibs_check_method in
 
8784
        "file_magic "*)
 
8785
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8786
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8787
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8788
            $EGREP "$file_magic_regex" > /dev/null; then
 
8789
            :
 
8790
          else
 
8791
            cat <<EOF 1>&2
 
8792
 
 
8793
*** Warning: the command libtool uses to detect shared libraries,
 
8794
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8795
*** The result is that libtool may fail to recognize shared libraries
 
8796
*** as such.  This will affect the creation of libtool libraries that
 
8797
*** depend on shared libraries, but programs linked with such libtool
 
8798
*** libraries will work regardless of this problem.  Nevertheless, you
 
8799
*** may want to report the problem to your system manager and/or to
 
8800
*** bug-libtool@gnu.org
 
8801
 
 
8802
EOF
 
8803
          fi ;;
 
8804
        esac
 
8805
      fi
 
8806
      break
 
8807
    fi
 
8808
  done
 
8809
  IFS="$lt_save_ifs"
 
8810
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8811
  ;;
 
8812
esac
 
8813
fi
 
8814
 
 
8815
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8816
if test -n "$MAGIC_CMD"; then
 
8817
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8818
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8819
else
 
8820
  echo "$as_me:$LINENO: result: no" >&5
 
8821
echo "${ECHO_T}no" >&6
 
8822
fi
 
8823
 
 
8824
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8825
  if test -n "$ac_tool_prefix"; then
 
8826
    echo "$as_me:$LINENO: checking for file" >&5
 
8827
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
8828
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8830
else
 
8831
  case $MAGIC_CMD in
 
8832
[\\/*] |  ?:[\\/]*)
 
8833
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8834
  ;;
 
8835
*)
 
8836
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8837
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8838
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8839
  for ac_dir in $ac_dummy; do
 
8840
    IFS="$lt_save_ifs"
 
8841
    test -z "$ac_dir" && ac_dir=.
 
8842
    if test -f $ac_dir/file; then
 
8843
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8844
      if test -n "$file_magic_test_file"; then
 
8845
        case $deplibs_check_method in
 
8846
        "file_magic "*)
 
8847
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8848
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8849
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8850
            $EGREP "$file_magic_regex" > /dev/null; then
 
8851
            :
 
8852
          else
 
8853
            cat <<EOF 1>&2
 
8854
 
 
8855
*** Warning: the command libtool uses to detect shared libraries,
 
8856
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8857
*** The result is that libtool may fail to recognize shared libraries
 
8858
*** as such.  This will affect the creation of libtool libraries that
 
8859
*** depend on shared libraries, but programs linked with such libtool
 
8860
*** libraries will work regardless of this problem.  Nevertheless, you
 
8861
*** may want to report the problem to your system manager and/or to
 
8862
*** bug-libtool@gnu.org
 
8863
 
 
8864
EOF
 
8865
          fi ;;
 
8866
        esac
 
8867
      fi
 
8868
      break
 
8869
    fi
 
8870
  done
 
8871
  IFS="$lt_save_ifs"
 
8872
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8873
  ;;
 
8874
esac
 
8875
fi
 
8876
 
 
8877
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8878
if test -n "$MAGIC_CMD"; then
 
8879
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8880
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8881
else
 
8882
  echo "$as_me:$LINENO: result: no" >&5
 
8883
echo "${ECHO_T}no" >&6
 
8884
fi
 
8885
 
 
8886
  else
 
8887
    MAGIC_CMD=:
 
8888
  fi
 
8889
fi
 
8890
 
 
8891
  fi
 
8892
  ;;
 
8893
esac
 
8894
 
 
8895
enable_dlopen=no
 
8896
enable_win32_dll=no
 
8897
 
 
8898
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
8899
if test "${enable_libtool_lock+set}" = set; then
 
8900
  enableval="$enable_libtool_lock"
 
8901
  
 
8902
fi; 
 
8903
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8904
 
 
8905
 
 
8906
# Check whether --with-pic or --without-pic was given.
 
8907
if test "${with_pic+set}" = set; then
 
8908
  withval="$with_pic"
 
8909
  pic_mode="$withval"
 
8910
else
 
8911
  pic_mode=default
 
8912
fi; 
 
8913
test -z "$pic_mode" && pic_mode=default
 
8914
 
 
8915
# Use C for the default configuration in the libtool script
 
8916
tagname=
 
8917
lt_save_CC="$CC"
 
8918
ac_ext=c
 
8919
ac_cpp='$CPP $CPPFLAGS'
 
8920
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8921
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8922
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8923
 
 
8924
 
 
8925
# Source file extension for C test sources.
 
8926
ac_ext=c
 
8927
 
 
8928
# Object file extension for compiled C test sources.
 
8929
objext=o
 
8930
objext=$objext
 
8931
 
 
8932
# Code to be used in simple compile tests
 
8933
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8934
 
 
8935
# Code to be used in simple link tests
 
8936
lt_simple_link_test_code='int main(){return(0);}\n'
 
8937
 
 
8938
 
 
8939
# If no C compiler was specified, use CC.
 
8940
LTCC=${LTCC-"$CC"}
 
8941
 
 
8942
# Allow CC to be a program name with arguments.
 
8943
compiler=$CC
 
8944
 
 
8945
 
 
8946
#
 
8947
# Check for any special shared library compilation flags.
 
8948
#
 
8949
lt_prog_cc_shlib=
 
8950
if test "$GCC" = no; then
 
8951
  case $host_os in
 
8952
  sco3.2v5*)
 
8953
    lt_prog_cc_shlib='-belf'
 
8954
    ;;
 
8955
  esac
 
8956
fi
 
8957
if test -n "$lt_prog_cc_shlib"; then
 
8958
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
8959
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
8960
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
8961
  else
 
8962
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
8963
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
8964
    lt_cv_prog_cc_can_build_shared=no
 
8965
  fi
 
8966
fi
 
8967
 
 
8968
 
 
8969
#
 
8970
# Check to make sure the static flag actually works.
 
8971
#
 
8972
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
8973
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
8974
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8975
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8976
else
 
8977
  lt_prog_compiler_static_works=no
 
8978
   save_LDFLAGS="$LDFLAGS"
 
8979
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
8980
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8981
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8982
     # The compiler can only warn and ignore the option if not recognized
 
8983
     # So say no if there are warnings
 
8984
     if test -s conftest.err; then
 
8985
       # Append any errors to the config.log.
 
8986
       cat conftest.err 1>&5
 
8987
     else
 
8988
       lt_prog_compiler_static_works=yes
 
8989
     fi
 
8990
   fi
 
8991
   $rm conftest*
 
8992
   LDFLAGS="$save_LDFLAGS"
 
8993
 
 
8994
fi
 
8995
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
8996
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
8997
 
 
8998
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8999
    :
 
9000
else
 
9001
    lt_prog_compiler_static=
 
9002
fi
 
9003
 
 
9004
 
 
9005
 
 
9006
## CAVEAT EMPTOR:
 
9007
## There is no encapsulation within the following macros, do not change
 
9008
## the running order or otherwise move them around unless you know exactly
 
9009
## what you are doing...
 
9010
 
 
9011
lt_prog_compiler_no_builtin_flag=
 
9012
 
 
9013
if test "$GCC" = yes; then
 
9014
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
9015
 
 
9016
  
 
9017
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9018
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
9019
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
9020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9021
else
 
9022
  lt_cv_prog_compiler_rtti_exceptions=no
 
9023
  ac_outfile=conftest.$ac_objext
 
9024
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9025
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
9026
   # Insert the option either (1) after the last *FLAGS variable, or
 
9027
   # (2) before a word containing "conftest.", or (3) at the end.
 
9028
   # Note that $ac_compile itself does not contain backslashes and begins
 
9029
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9030
   # The option is referenced via a variable to avoid confusing sed.
 
9031
   lt_compile=`echo "$ac_compile" | $SED \
 
9032
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9033
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9034
   -e 's:$: $lt_compiler_flag:'`
 
9035
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
9036
   (eval "$lt_compile" 2>conftest.err)
 
9037
   ac_status=$?
 
9038
   cat conftest.err >&5
 
9039
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
9040
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9041
     # The compiler can only warn and ignore the option if not recognized
 
9042
     # So say no if there are warnings
 
9043
     if test ! -s conftest.err; then
 
9044
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9045
     fi
 
9046
   fi
 
9047
   $rm conftest*
 
9048
 
 
9049
fi
 
9050
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9051
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
9052
 
 
9053
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
9054
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9055
else
 
9056
    :
 
9057
fi
 
9058
 
 
9059
fi
 
9060
 
 
9061
lt_prog_compiler_wl=
 
9062
lt_prog_compiler_pic=
 
9063
lt_prog_compiler_static=
 
9064
 
 
9065
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
9066
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
9067
 
 
9068
  if test "$GCC" = yes; then
 
9069
    lt_prog_compiler_wl='-Wl,'
 
9070
    lt_prog_compiler_static='-static'
 
9071
 
 
9072
    case $host_os in
 
9073
      aix*)
 
9074
      # All AIX code is PIC.
 
9075
      if test "$host_cpu" = ia64; then
 
9076
        # AIX 5 now supports IA64 processor
 
9077
        lt_prog_compiler_static='-Bstatic'
 
9078
      fi
 
9079
      ;;
 
9080
 
 
9081
    amigaos*)
 
9082
      # FIXME: we need at least 68020 code to build shared libraries, but
 
9083
      # adding the `-m68020' flag to GCC prevents building anything better,
 
9084
      # like `-m68040'.
 
9085
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9086
      ;;
 
9087
 
 
9088
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9089
      # PIC is the default for these OSes.
 
9090
      ;;
 
9091
 
 
9092
    mingw* | pw32* | os2*)
 
9093
      # This hack is so that the source file can tell whether it is being
 
9094
      # built for inclusion in a dll (and should export symbols for example).
 
9095
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9096
      ;;
 
9097
 
 
9098
    darwin* | rhapsody*)
 
9099
      # PIC is the default on this platform
 
9100
      # Common symbols not allowed in MH_DYLIB files
 
9101
      lt_prog_compiler_pic='-fno-common'
 
9102
      ;;
 
9103
 
 
9104
    msdosdjgpp*)
 
9105
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9106
      # on systems that don't support them.
 
9107
      lt_prog_compiler_can_build_shared=no
 
9108
      enable_shared=no
 
9109
      ;;
 
9110
 
 
9111
    sysv4*MP*)
 
9112
      if test -d /usr/nec; then
 
9113
        lt_prog_compiler_pic=-Kconform_pic
 
9114
      fi
 
9115
      ;;
 
9116
 
 
9117
    hpux*)
 
9118
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9119
      # not for PA HP-UX.
 
9120
      case "$host_cpu" in
 
9121
      hppa*64*|ia64*)
 
9122
        # +Z the default
 
9123
        ;;
 
9124
      *)
 
9125
        lt_prog_compiler_pic='-fPIC'
 
9126
        ;;
 
9127
      esac
 
9128
      ;;
 
9129
 
 
9130
    *)
 
9131
      lt_prog_compiler_pic='-fPIC'
 
9132
      ;;
 
9133
    esac
 
9134
  else
 
9135
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9136
    case $host_os in
 
9137
    aix*)
 
9138
      lt_prog_compiler_wl='-Wl,'
 
9139
      if test "$host_cpu" = ia64; then
 
9140
        # AIX 5 now supports IA64 processor
 
9141
        lt_prog_compiler_static='-Bstatic'
 
9142
      else
 
9143
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9144
      fi
 
9145
      ;;
 
9146
 
 
9147
    mingw* | pw32* | os2*)
 
9148
      # This hack is so that the source file can tell whether it is being
 
9149
      # built for inclusion in a dll (and should export symbols for example).
 
9150
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9151
      ;;
 
9152
 
 
9153
    hpux9* | hpux10* | hpux11*)
 
9154
      lt_prog_compiler_wl='-Wl,'
 
9155
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9156
      # not for PA HP-UX.
 
9157
      case "$host_cpu" in
 
9158
      hppa*64*|ia64*)
 
9159
        # +Z the default
 
9160
        ;;
 
9161
      *)
 
9162
        lt_prog_compiler_pic='+Z'
 
9163
        ;;
 
9164
      esac
 
9165
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9166
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
9167
      ;;
 
9168
 
 
9169
    irix5* | irix6* | nonstopux*)
 
9170
      lt_prog_compiler_wl='-Wl,'
 
9171
      # PIC (with -KPIC) is the default.
 
9172
      lt_prog_compiler_static='-non_shared'
 
9173
      ;;
 
9174
 
 
9175
    newsos6)
 
9176
      lt_prog_compiler_pic='-KPIC'
 
9177
      lt_prog_compiler_static='-Bstatic'
 
9178
      ;;
 
9179
 
 
9180
    linux*)
 
9181
      case $CC in
 
9182
      icc* | ecc*)
 
9183
        lt_prog_compiler_wl='-Wl,'
 
9184
        lt_prog_compiler_pic='-KPIC'
 
9185
        lt_prog_compiler_static='-static'
 
9186
        ;;
 
9187
      ccc*)
 
9188
        lt_prog_compiler_wl='-Wl,'
 
9189
        # All Alpha code is PIC.
 
9190
        lt_prog_compiler_static='-non_shared'
 
9191
        ;;
 
9192
      esac
 
9193
      ;;
 
9194
 
 
9195
    osf3* | osf4* | osf5*)
 
9196
      lt_prog_compiler_wl='-Wl,'
 
9197
      # All OSF/1 code is PIC.
 
9198
      lt_prog_compiler_static='-non_shared'
 
9199
      ;;
 
9200
 
 
9201
    sco3.2v5*)
 
9202
      lt_prog_compiler_pic='-Kpic'
 
9203
      lt_prog_compiler_static='-dn'
 
9204
      ;;
 
9205
 
 
9206
    solaris*)
 
9207
      lt_prog_compiler_wl='-Wl,'
 
9208
      lt_prog_compiler_pic='-KPIC'
 
9209
      lt_prog_compiler_static='-Bstatic'
 
9210
      ;;
 
9211
 
 
9212
    sunos4*)
 
9213
      lt_prog_compiler_wl='-Qoption ld '
 
9214
      lt_prog_compiler_pic='-PIC'
 
9215
      lt_prog_compiler_static='-Bstatic'
 
9216
      ;;
 
9217
 
 
9218
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9219
      lt_prog_compiler_wl='-Wl,'
 
9220
      lt_prog_compiler_pic='-KPIC'
 
9221
      lt_prog_compiler_static='-Bstatic'
 
9222
      ;;
 
9223
 
 
9224
    sysv4*MP*)
 
9225
      if test -d /usr/nec ;then
 
9226
        lt_prog_compiler_pic='-Kconform_pic'
 
9227
        lt_prog_compiler_static='-Bstatic'
 
9228
      fi
 
9229
      ;;
 
9230
 
 
9231
    uts4*)
 
9232
      lt_prog_compiler_pic='-pic'
 
9233
      lt_prog_compiler_static='-Bstatic'
 
9234
      ;;
 
9235
 
 
9236
    *)
 
9237
      lt_prog_compiler_can_build_shared=no
 
9238
      ;;
 
9239
    esac
 
9240
  fi
 
9241
 
 
9242
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
9243
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
9244
 
 
9245
#
 
9246
# Check to make sure the PIC flag actually works.
 
9247
#
 
9248
if test -n "$lt_prog_compiler_pic"; then
 
9249
  
 
9250
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9251
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
9252
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
9253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9254
else
 
9255
  lt_prog_compiler_pic_works=no
 
9256
  ac_outfile=conftest.$ac_objext
 
9257
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9258
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9259
   # Insert the option either (1) after the last *FLAGS variable, or
 
9260
   # (2) before a word containing "conftest.", or (3) at the end.
 
9261
   # Note that $ac_compile itself does not contain backslashes and begins
 
9262
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9263
   # The option is referenced via a variable to avoid confusing sed.
 
9264
   lt_compile=`echo "$ac_compile" | $SED \
 
9265
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9266
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9267
   -e 's:$: $lt_compiler_flag:'`
 
9268
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
9269
   (eval "$lt_compile" 2>conftest.err)
 
9270
   ac_status=$?
 
9271
   cat conftest.err >&5
 
9272
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
9273
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9274
     # The compiler can only warn and ignore the option if not recognized
 
9275
     # So say no if there are warnings
 
9276
     if test ! -s conftest.err; then
 
9277
       lt_prog_compiler_pic_works=yes
 
9278
     fi
 
9279
   fi
 
9280
   $rm conftest*
 
9281
 
 
9282
fi
 
9283
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
9284
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
9285
 
 
9286
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
9287
    case $lt_prog_compiler_pic in
 
9288
     "" | " "*) ;;
 
9289
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9290
     esac
 
9291
else
 
9292
    lt_prog_compiler_pic=
 
9293
     lt_prog_compiler_can_build_shared=no
 
9294
fi
 
9295
 
 
9296
fi
 
9297
case "$host_os" in
 
9298
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9299
  *djgpp*)
 
9300
    lt_prog_compiler_pic=
 
9301
    ;;
 
9302
  *)
 
9303
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9304
    ;;
 
9305
esac
 
9306
 
 
9307
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9308
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
9309
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9311
else
 
9312
  lt_cv_prog_compiler_c_o=no
 
9313
   $rm -r conftest 2>/dev/null
 
9314
   mkdir conftest
 
9315
   cd conftest
 
9316
   mkdir out
 
9317
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9318
 
 
9319
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9320
   # Insert the option either (1) after the last *FLAGS variable, or
 
9321
   # (2) before a word containing "conftest.", or (3) at the end.
 
9322
   # Note that $ac_compile itself does not contain backslashes and begins
 
9323
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9324
   lt_compile=`echo "$ac_compile" | $SED \
 
9325
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
9326
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9327
   -e 's:$: $lt_compiler_flag:'`
 
9328
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
9329
   (eval "$lt_compile" 2>out/conftest.err)
 
9330
   ac_status=$?
 
9331
   cat out/conftest.err >&5
 
9332
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
9333
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9334
   then
 
9335
     # The compiler can only warn and ignore the option if not recognized
 
9336
     # So say no if there are warnings
 
9337
     if test ! -s out/conftest.err; then
 
9338
       lt_cv_prog_compiler_c_o=yes
 
9339
     fi
 
9340
   fi
 
9341
   chmod u+w .
 
9342
   $rm conftest*
 
9343
   # SGI C++ compiler will create directory out/ii_files/ for
 
9344
   # template instantiation
 
9345
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
9346
   $rm out/* && rmdir out
 
9347
   cd ..
 
9348
   rmdir conftest
 
9349
   $rm conftest*
 
9350
 
 
9351
fi
 
9352
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9353
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
9354
 
 
9355
 
 
9356
hard_links="nottested"
 
9357
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9358
  # do not overwrite the value of need_locks provided by the user
 
9359
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
9360
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
9361
  hard_links=yes
 
9362
  $rm conftest*
 
9363
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9364
  touch conftest.a
 
9365
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9366
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9367
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
9368
echo "${ECHO_T}$hard_links" >&6
 
9369
  if test "$hard_links" = no; then
 
9370
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9371
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9372
    need_locks=warn
 
9373
  fi
 
9374
else
 
9375
  need_locks=no
 
9376
fi
 
9377
 
 
9378
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9379
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9380
 
 
9381
  runpath_var=
 
9382
  allow_undefined_flag=
 
9383
  enable_shared_with_static_runtimes=no
 
9384
  archive_cmds=
 
9385
  archive_expsym_cmds=
 
9386
  old_archive_From_new_cmds=
 
9387
  old_archive_from_expsyms_cmds=
 
9388
  export_dynamic_flag_spec=
 
9389
  whole_archive_flag_spec=
 
9390
  thread_safe_flag_spec=
 
9391
  hardcode_libdir_flag_spec=
 
9392
  hardcode_libdir_flag_spec_ld=
 
9393
  hardcode_libdir_separator=
 
9394
  hardcode_direct=no
 
9395
  hardcode_minus_L=no
 
9396
  hardcode_shlibpath_var=unsupported
 
9397
  link_all_deplibs=unknown
 
9398
  hardcode_automatic=no
 
9399
  module_cmds=
 
9400
  module_expsym_cmds=
 
9401
  always_export_symbols=no
 
9402
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9403
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9404
  # included in the symbol list
 
9405
  include_expsyms=
 
9406
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9407
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9408
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9409
  # as well as any symbol that contains `d'.
 
9410
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
9411
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
9412
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
9413
  # the symbol is explicitly referenced.  Since portable code cannot
 
9414
  # rely on this symbol name, it's probably fine to never include it in
 
9415
  # preloaded symbol tables.
 
9416
  extract_expsyms_cmds=
 
9417
 
 
9418
  case $host_os in
 
9419
  cygwin* | mingw* | pw32*)
 
9420
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
9421
    # When not using gcc, we currently assume that we are using
 
9422
    # Microsoft Visual C++.
 
9423
    if test "$GCC" != yes; then
 
9424
      with_gnu_ld=no
 
9425
    fi
 
9426
    ;;
 
9427
  openbsd*)
 
9428
    with_gnu_ld=no
 
9429
    ;;
 
9430
  esac
 
9431
 
 
9432
  ld_shlibs=yes
 
9433
  if test "$with_gnu_ld" = yes; then
 
9434
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9435
    wlarc='${wl}'
 
9436
 
 
9437
    # See if GNU ld supports shared libraries.
 
9438
    case $host_os in
 
9439
    aix3* | aix4* | aix5*)
 
9440
      # On AIX/PPC, the GNU linker is very broken
 
9441
      if test "$host_cpu" != ia64; then
 
9442
        ld_shlibs=no
 
9443
        cat <<EOF 1>&2
 
9444
 
 
9445
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
9446
*** to be unable to reliably create shared libraries on AIX.
 
9447
*** Therefore, libtool is disabling shared libraries support.  If you
 
9448
*** really care for shared libraries, you may want to modify your PATH
 
9449
*** so that a non-GNU linker is found, and then restart.
 
9450
 
 
9451
EOF
 
9452
      fi
 
9453
      ;;
 
9454
 
 
9455
    amigaos*)
 
9456
      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)'
 
9457
      hardcode_libdir_flag_spec='-L$libdir'
 
9458
      hardcode_minus_L=yes
 
9459
 
 
9460
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
9461
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
9462
      # to version 4, is to share data among multiple programs linked
 
9463
      # with the same dynamic library.  Since this doesn't match the
 
9464
      # behavior of shared libraries on other platforms, we can't use
 
9465
      # them.
 
9466
      ld_shlibs=no
 
9467
      ;;
 
9468
 
 
9469
    beos*)
 
9470
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9471
        allow_undefined_flag=unsupported
 
9472
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
9473
        # support --undefined.  This deserves some investigation.  FIXME
 
9474
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9475
      else
 
9476
        ld_shlibs=no
 
9477
      fi
 
9478
      ;;
 
9479
 
 
9480
    cygwin* | mingw* | pw32*)
 
9481
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
9482
      # as there is no search path for DLLs.
 
9483
      hardcode_libdir_flag_spec='-L$libdir'
 
9484
      allow_undefined_flag=unsupported
 
9485
      always_export_symbols=no
 
9486
      enable_shared_with_static_runtimes=yes
 
9487
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
9488
 
 
9489
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9490
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
9491
        # If the export-symbols file already is a .def file (1st line
 
9492
        # is EXPORTS), use it as is; otherwise, prepend...
 
9493
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9494
          cp $export_symbols $output_objdir/$soname.def;
 
9495
        else
 
9496
          echo EXPORTS > $output_objdir/$soname.def;
 
9497
          cat $export_symbols >> $output_objdir/$soname.def;
 
9498
        fi~
 
9499
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
9500
      else
 
9501
        ld_shlibs=no
 
9502
      fi
 
9503
      ;;
 
9504
 
 
9505
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
9506
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9507
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
9508
        wlarc=
 
9509
      else
 
9510
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9511
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9512
      fi
 
9513
      ;;
 
9514
 
 
9515
    solaris* | sysv5*)
 
9516
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
9517
        ld_shlibs=no
 
9518
        cat <<EOF 1>&2
 
9519
 
 
9520
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
9521
*** create shared libraries on Solaris systems.  Therefore, libtool
 
9522
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
9523
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
9524
*** your PATH or compiler configuration so that the native linker is
 
9525
*** used, and then restart.
 
9526
 
 
9527
EOF
 
9528
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9529
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9530
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9531
      else
 
9532
        ld_shlibs=no
 
9533
      fi
 
9534
      ;;
 
9535
 
 
9536
    sunos4*)
 
9537
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9538
      wlarc=
 
9539
      hardcode_direct=yes
 
9540
      hardcode_shlibpath_var=no
 
9541
      ;;
 
9542
 
 
9543
  linux*)
 
9544
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9545
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9546
        archive_cmds="$tmp_archive_cmds"
 
9547
      supports_anon_versioning=no
 
9548
      case `$LD -v 2>/dev/null` in
 
9549
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
9550
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
9551
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
9552
        *\ 2.11.*) ;; # other 2.11 versions
 
9553
        *) supports_anon_versioning=yes ;;
 
9554
      esac
 
9555
      if test $supports_anon_versioning = yes; then
 
9556
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
9557
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
9558
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
9559
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
9560
      else
 
9561
        archive_expsym_cmds="$tmp_archive_cmds"
 
9562
      fi
 
9563
      link_all_deplibs=no
 
9564
    else
 
9565
      ld_shlibs=no
 
9566
    fi
 
9567
    ;;
 
9568
 
 
9569
    *)
 
9570
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
9571
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9572
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
9573
      else
 
9574
        ld_shlibs=no
 
9575
      fi
 
9576
      ;;
 
9577
    esac
 
9578
 
 
9579
    if test "$ld_shlibs" = yes; then
 
9580
      runpath_var=LD_RUN_PATH
 
9581
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
9582
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
9583
      # ancient GNU ld didn't support --whole-archive et. al.
 
9584
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
9585
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9586
      else
 
9587
        whole_archive_flag_spec=
 
9588
      fi
 
9589
    fi
 
9590
  else
 
9591
    # PORTME fill in a description of your system's linker (not GNU ld)
 
9592
    case $host_os in
 
9593
    aix3*)
 
9594
      allow_undefined_flag=unsupported
 
9595
      always_export_symbols=yes
 
9596
      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'
 
9597
      # Note: this linker hardcodes the directories in LIBPATH if there
 
9598
      # are no directories specified by -L.
 
9599
      hardcode_minus_L=yes
 
9600
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
9601
        # Neither direct hardcoding nor static linking is supported with a
 
9602
        # broken collect2.
 
9603
        hardcode_direct=unsupported
 
9604
      fi
 
9605
      ;;
 
9606
 
 
9607
    aix4* | aix5*)
 
9608
      if test "$host_cpu" = ia64; then
 
9609
        # On IA64, the linker does run time linking by default, so we don't
 
9610
        # have to do anything special.
 
9611
        aix_use_runtimelinking=no
 
9612
        exp_sym_flag='-Bexport'
 
9613
        no_entry_flag=""
 
9614
      else
 
9615
        # If we're using GNU nm, then we don't want the "-C" option.
 
9616
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9617
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
9618
          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'
 
9619
        else
 
9620
          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'
 
9621
        fi
 
9622
        aix_use_runtimelinking=no
 
9623
 
 
9624
        # Test if we are trying to use run time linking or normal
 
9625
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9626
        # need to do runtime linking.
 
9627
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9628
          for ld_flag in $LDFLAGS; do
 
9629
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9630
            aix_use_runtimelinking=yes
 
9631
            break
 
9632
          fi
 
9633
          done
 
9634
        esac
 
9635
 
 
9636
        exp_sym_flag='-bexport'
 
9637
        no_entry_flag='-bnoentry'
 
9638
      fi
 
9639
 
 
9640
      # When large executables or shared objects are built, AIX ld can
 
9641
      # have problems creating the table of contents.  If linking a library
 
9642
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9643
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9644
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9645
 
 
9646
      archive_cmds=''
 
9647
      hardcode_direct=yes
 
9648
      hardcode_libdir_separator=':'
 
9649
      link_all_deplibs=yes
 
9650
 
 
9651
      if test "$GCC" = yes; then
 
9652
        case $host_os in aix4.012|aix4.012.*)
 
9653
        # We only want to do this on AIX 4.2 and lower, the check
 
9654
        # below for broken collect2 doesn't work under 4.3+
 
9655
          collect2name=`${CC} -print-prog-name=collect2`
 
9656
          if test -f "$collect2name" && \
 
9657
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9658
          then
 
9659
          # We have reworked collect2
 
9660
          hardcode_direct=yes
 
9661
          else
 
9662
          # We have old collect2
 
9663
          hardcode_direct=unsupported
 
9664
          # It fails to find uninstalled libraries when the uninstalled
 
9665
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9666
          # to unsupported forces relinking
 
9667
          hardcode_minus_L=yes
 
9668
          hardcode_libdir_flag_spec='-L$libdir'
 
9669
          hardcode_libdir_separator=
 
9670
          fi
 
9671
        esac
 
9672
        shared_flag='-shared'
 
9673
      else
 
9674
        # not using gcc
 
9675
        if test "$host_cpu" = ia64; then
 
9676
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9677
        # chokes on -Wl,-G. The following line is correct:
 
9678
          shared_flag='-G'
 
9679
        else
 
9680
        if test "$aix_use_runtimelinking" = yes; then
 
9681
            shared_flag='${wl}-G'
 
9682
          else
 
9683
            shared_flag='${wl}-bM:SRE'
 
9684
        fi
 
9685
        fi
 
9686
      fi
 
9687
 
 
9688
      # It seems that -bexpall does not export symbols beginning with
 
9689
      # underscore (_), so it is better to generate a list of symbols to export.
 
9690
      always_export_symbols=yes
 
9691
      if test "$aix_use_runtimelinking" = yes; then
 
9692
        # Warning - without using the other runtime loading flags (-brtl),
 
9693
        # -berok will link without error, but may produce a broken library.
 
9694
        allow_undefined_flag='-berok'
 
9695
       # Determine the default libpath from the value encoded in an empty executable.
 
9696
       cat >conftest.$ac_ext <<_ACEOF
 
9697
/* confdefs.h.  */
 
9698
_ACEOF
 
9699
cat confdefs.h >>conftest.$ac_ext
 
9700
cat >>conftest.$ac_ext <<_ACEOF
 
9701
/* end confdefs.h.  */
 
9702
 
 
9703
int
 
9704
main ()
 
9705
{
 
9706
 
 
9707
  ;
 
9708
  return 0;
 
9709
}
 
9710
_ACEOF
 
9711
rm -f conftest.$ac_objext conftest$ac_exeext
 
9712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9713
  (eval $ac_link) 2>conftest.er1
 
9714
  ac_status=$?
 
9715
  grep -v '^ *+' conftest.er1 >conftest.err
 
9716
  rm -f conftest.er1
 
9717
  cat conftest.err >&5
 
9718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9719
  (exit $ac_status); } &&
 
9720
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9722
  (eval $ac_try) 2>&5
 
9723
  ac_status=$?
 
9724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9725
  (exit $ac_status); }; } &&
 
9726
         { ac_try='test -s conftest$ac_exeext'
 
9727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9728
  (eval $ac_try) 2>&5
 
9729
  ac_status=$?
 
9730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9731
  (exit $ac_status); }; }; then
 
9732
  
 
9733
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9734
}'`
 
9735
# Check for a 64-bit object if we didn't find anything.
 
9736
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; }
 
9737
}'`; fi
 
9738
else
 
9739
  echo "$as_me: failed program was:" >&5
 
9740
sed 's/^/| /' conftest.$ac_ext >&5
 
9741
 
 
9742
fi
 
9743
rm -f conftest.err conftest.$ac_objext \
 
9744
      conftest$ac_exeext conftest.$ac_ext
 
9745
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9746
 
 
9747
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9748
        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"
 
9749
       else
 
9750
        if test "$host_cpu" = ia64; then
 
9751
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9752
          allow_undefined_flag="-z nodefs"
 
9753
          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"
 
9754
        else
 
9755
         # Determine the default libpath from the value encoded in an empty executable.
 
9756
         cat >conftest.$ac_ext <<_ACEOF
 
9757
/* confdefs.h.  */
 
9758
_ACEOF
 
9759
cat confdefs.h >>conftest.$ac_ext
 
9760
cat >>conftest.$ac_ext <<_ACEOF
 
9761
/* end confdefs.h.  */
 
9762
 
 
9763
int
 
9764
main ()
 
9765
{
 
9766
 
 
9767
  ;
 
9768
  return 0;
 
9769
}
 
9770
_ACEOF
 
9771
rm -f conftest.$ac_objext conftest$ac_exeext
 
9772
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9773
  (eval $ac_link) 2>conftest.er1
 
9774
  ac_status=$?
 
9775
  grep -v '^ *+' conftest.er1 >conftest.err
 
9776
  rm -f conftest.er1
 
9777
  cat conftest.err >&5
 
9778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9779
  (exit $ac_status); } &&
 
9780
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9782
  (eval $ac_try) 2>&5
 
9783
  ac_status=$?
 
9784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9785
  (exit $ac_status); }; } &&
 
9786
         { ac_try='test -s conftest$ac_exeext'
 
9787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9788
  (eval $ac_try) 2>&5
 
9789
  ac_status=$?
 
9790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9791
  (exit $ac_status); }; }; then
 
9792
  
 
9793
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9794
}'`
 
9795
# Check for a 64-bit object if we didn't find anything.
 
9796
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; }
 
9797
}'`; fi
 
9798
else
 
9799
  echo "$as_me: failed program was:" >&5
 
9800
sed 's/^/| /' conftest.$ac_ext >&5
 
9801
 
 
9802
fi
 
9803
rm -f conftest.err conftest.$ac_objext \
 
9804
      conftest$ac_exeext conftest.$ac_ext
 
9805
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9806
 
 
9807
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9808
          # Warning - without using the other run time loading flags,
 
9809
          # -berok will link without error, but may produce a broken library.
 
9810
          no_undefined_flag=' ${wl}-bernotok'
 
9811
          allow_undefined_flag=' ${wl}-berok'
 
9812
          # -bexpall does not export symbols beginning with underscore (_)
 
9813
          always_export_symbols=yes
 
9814
          # Exported symbols can be pulled into shared objects from archives
 
9815
          whole_archive_flag_spec=' '
 
9816
          archive_cmds_need_lc=yes
 
9817
          # This is similar to how AIX traditionally builds it's shared libraries.
 
9818
          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'
 
9819
        fi
 
9820
      fi
 
9821
      ;;
 
9822
 
 
9823
    amigaos*)
 
9824
      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)'
 
9825
      hardcode_libdir_flag_spec='-L$libdir'
 
9826
      hardcode_minus_L=yes
 
9827
      # see comment about different semantics on the GNU ld section
 
9828
      ld_shlibs=no
 
9829
      ;;
 
9830
 
 
9831
    bsdi4*)
 
9832
      export_dynamic_flag_spec=-rdynamic
 
9833
      ;;
 
9834
 
 
9835
    cygwin* | mingw* | pw32*)
 
9836
      # When not using gcc, we currently assume that we are using
 
9837
      # Microsoft Visual C++.
 
9838
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9839
      # no search path for DLLs.
 
9840
      hardcode_libdir_flag_spec=' '
 
9841
      allow_undefined_flag=unsupported
 
9842
      # Tell ltmain to make .lib files, not .a files.
 
9843
      libext=lib
 
9844
      # Tell ltmain to make .dll files, not .so files.
 
9845
      shrext_cmds=".dll"
 
9846
      # FIXME: Setting linknames here is a bad hack.
 
9847
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9848
      # The linker will automatically build a .lib file if we build a DLL.
 
9849
      old_archive_From_new_cmds='true'
 
9850
      # FIXME: Should let the user specify the lib program.
 
9851
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9852
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9853
      enable_shared_with_static_runtimes=yes
 
9854
      ;;
 
9855
 
 
9856
    darwin* | rhapsody*)
 
9857
    if test "$GXX" = yes ; then
 
9858
      archive_cmds_need_lc=no
 
9859
      case "$host_os" in
 
9860
      rhapsody* | darwin1.[012])
 
9861
        allow_undefined_flag='-undefined suppress'
 
9862
        ;;
 
9863
      *) # Darwin 1.3 on
 
9864
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9865
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9866
      else
 
9867
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9868
          10.[012])
 
9869
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9870
            ;;
 
9871
          10.*)
 
9872
            allow_undefined_flag='-undefined dynamic_lookup'
 
9873
            ;;
 
9874
        esac
 
9875
      fi
 
9876
        ;;
 
9877
      esac
 
9878
        lt_int_apple_cc_single_mod=no
 
9879
        output_verbose_link_cmd='echo'
 
9880
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9881
          lt_int_apple_cc_single_mod=yes
 
9882
        fi
 
9883
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9884
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9885
        else
 
9886
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9887
      fi
 
9888
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9889
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9890
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9891
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9892
        else
 
9893
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9894
        fi
 
9895
          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}'
 
9896
      hardcode_direct=no
 
9897
      hardcode_automatic=yes
 
9898
      hardcode_shlibpath_var=unsupported
 
9899
      whole_archive_flag_spec='-all_load $convenience'
 
9900
      link_all_deplibs=yes
 
9901
    else
 
9902
      ld_shlibs=no
 
9903
    fi
 
9904
      ;;
 
9905
 
 
9906
    dgux*)
 
9907
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9908
      hardcode_libdir_flag_spec='-L$libdir'
 
9909
      hardcode_shlibpath_var=no
 
9910
      ;;
 
9911
 
 
9912
    freebsd1*)
 
9913
      ld_shlibs=no
 
9914
      ;;
 
9915
 
 
9916
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9917
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9918
    # does not break anything, and helps significantly (at the cost of a little
 
9919
    # extra space).
 
9920
    freebsd2.2*)
 
9921
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9922
      hardcode_libdir_flag_spec='-R$libdir'
 
9923
      hardcode_direct=yes
 
9924
      hardcode_shlibpath_var=no
 
9925
      ;;
 
9926
 
 
9927
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9928
    freebsd2*)
 
9929
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9930
      hardcode_direct=yes
 
9931
      hardcode_minus_L=yes
 
9932
      hardcode_shlibpath_var=no
 
9933
      ;;
 
9934
 
 
9935
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9936
    freebsd* | kfreebsd*-gnu)
 
9937
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9938
      hardcode_libdir_flag_spec='-R$libdir'
 
9939
      hardcode_direct=yes
 
9940
      hardcode_shlibpath_var=no
 
9941
      ;;
 
9942
 
 
9943
    hpux9*)
 
9944
      if test "$GCC" = yes; then
 
9945
        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'
 
9946
      else
 
9947
        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'
 
9948
      fi
 
9949
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9950
      hardcode_libdir_separator=:
 
9951
      hardcode_direct=yes
 
9952
 
 
9953
      # hardcode_minus_L: Not really in the search PATH,
 
9954
      # but as the default location of the library.
 
9955
      hardcode_minus_L=yes
 
9956
      export_dynamic_flag_spec='${wl}-E'
 
9957
      ;;
 
9958
 
 
9959
    hpux10* | hpux11*)
 
9960
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9961
        case "$host_cpu" in
 
9962
        hppa*64*|ia64*)
 
9963
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9964
          ;;
 
9965
        *)
 
9966
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9967
          ;;
 
9968
        esac
 
9969
      else
 
9970
        case "$host_cpu" in
 
9971
        hppa*64*|ia64*)
 
9972
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9973
          ;;
 
9974
        *)
 
9975
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9976
          ;;
 
9977
        esac
 
9978
      fi
 
9979
      if test "$with_gnu_ld" = no; then
 
9980
        case "$host_cpu" in
 
9981
        hppa*64*)
 
9982
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9983
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9984
          hardcode_libdir_separator=:
 
9985
          hardcode_direct=no
 
9986
          hardcode_shlibpath_var=no
 
9987
          ;;
 
9988
        ia64*)
 
9989
          hardcode_libdir_flag_spec='-L$libdir'
 
9990
          hardcode_direct=no
 
9991
          hardcode_shlibpath_var=no
 
9992
 
 
9993
          # hardcode_minus_L: Not really in the search PATH,
 
9994
          # but as the default location of the library.
 
9995
          hardcode_minus_L=yes
 
9996
          ;;
 
9997
        *)
 
9998
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9999
          hardcode_libdir_separator=:
 
10000
          hardcode_direct=yes
 
10001
          export_dynamic_flag_spec='${wl}-E'
 
10002
 
 
10003
          # hardcode_minus_L: Not really in the search PATH,
 
10004
          # but as the default location of the library.
 
10005
          hardcode_minus_L=yes
 
10006
          ;;
 
10007
        esac
 
10008
      fi
 
10009
      ;;
 
10010
 
 
10011
    irix5* | irix6* | nonstopux*)
 
10012
      if test "$GCC" = yes; then
 
10013
        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'
 
10014
      else
 
10015
        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'
 
10016
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
10017
      fi
 
10018
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10019
      hardcode_libdir_separator=:
 
10020
      link_all_deplibs=yes
 
10021
      ;;
 
10022
 
 
10023
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10024
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10025
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10026
      else
 
10027
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10028
      fi
 
10029
      hardcode_libdir_flag_spec='-R$libdir'
 
10030
      hardcode_direct=yes
 
10031
      hardcode_shlibpath_var=no
 
10032
      ;;
 
10033
 
 
10034
    newsos6)
 
10035
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10036
      hardcode_direct=yes
 
10037
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10038
      hardcode_libdir_separator=:
 
10039
      hardcode_shlibpath_var=no
 
10040
      ;;
 
10041
 
 
10042
    openbsd*)
 
10043
      hardcode_direct=yes
 
10044
      hardcode_shlibpath_var=no
 
10045
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10046
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10047
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10048
        export_dynamic_flag_spec='${wl}-E'
 
10049
      else
 
10050
       case $host_os in
 
10051
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10052
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10053
           hardcode_libdir_flag_spec='-R$libdir'
 
10054
           ;;
 
10055
         *)
 
10056
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10057
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10058
           ;;
 
10059
       esac
 
10060
      fi
 
10061
      ;;
 
10062
 
 
10063
    os2*)
 
10064
      hardcode_libdir_flag_spec='-L$libdir'
 
10065
      hardcode_minus_L=yes
 
10066
      allow_undefined_flag=unsupported
 
10067
      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'
 
10068
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10069
      ;;
 
10070
 
 
10071
    osf3*)
 
10072
      if test "$GCC" = yes; then
 
10073
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10074
        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'
 
10075
      else
 
10076
        allow_undefined_flag=' -expect_unresolved \*'
 
10077
        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'
 
10078
      fi
 
10079
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10080
      hardcode_libdir_separator=:
 
10081
      ;;
 
10082
 
 
10083
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10084
      if test "$GCC" = yes; then
 
10085
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10086
        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'
 
10087
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10088
      else
 
10089
        allow_undefined_flag=' -expect_unresolved \*'
 
10090
        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'
 
10091
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
10092
        $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'
 
10093
 
 
10094
        # Both c and cxx compiler support -rpath directly
 
10095
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10096
      fi
 
10097
      hardcode_libdir_separator=:
 
10098
      ;;
 
10099
 
 
10100
    sco3.2v5*)
 
10101
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10102
      hardcode_shlibpath_var=no
 
10103
      export_dynamic_flag_spec='${wl}-Bexport'
 
10104
      runpath_var=LD_RUN_PATH
 
10105
      hardcode_runpath_var=yes
 
10106
      ;;
 
10107
 
 
10108
    solaris*)
 
10109
      no_undefined_flag=' -z text'
 
10110
      if test "$GCC" = yes; then
 
10111
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10112
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10113
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
10114
      else
 
10115
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10116
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10117
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10118
      fi
 
10119
      hardcode_libdir_flag_spec='-R$libdir'
 
10120
      hardcode_shlibpath_var=no
 
10121
      case $host_os in
 
10122
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10123
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10124
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
10125
      esac
 
10126
      link_all_deplibs=yes
 
10127
      ;;
 
10128
 
 
10129
    sunos4*)
 
10130
      if test "x$host_vendor" = xsequent; then
 
10131
        # Use $CC to link under sequent, because it throws in some extra .o
 
10132
        # files that make .init and .fini sections work.
 
10133
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10134
      else
 
10135
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10136
      fi
 
10137
      hardcode_libdir_flag_spec='-L$libdir'
 
10138
      hardcode_direct=yes
 
10139
      hardcode_minus_L=yes
 
10140
      hardcode_shlibpath_var=no
 
10141
      ;;
 
10142
 
 
10143
    sysv4)
 
10144
      case $host_vendor in
 
10145
        sni)
 
10146
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10147
          hardcode_direct=yes # is this really true???
 
10148
        ;;
 
10149
        siemens)
 
10150
          ## LD is ld it makes a PLAMLIB
 
10151
          ## CC just makes a GrossModule.
 
10152
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10153
          reload_cmds='$CC -r -o $output$reload_objs'
 
10154
          hardcode_direct=no
 
10155
        ;;
 
10156
        motorola)
 
10157
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10158
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10159
        ;;
 
10160
      esac
 
10161
      runpath_var='LD_RUN_PATH'
 
10162
      hardcode_shlibpath_var=no
 
10163
      ;;
 
10164
 
 
10165
    sysv4.3*)
 
10166
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10167
      hardcode_shlibpath_var=no
 
10168
      export_dynamic_flag_spec='-Bexport'
 
10169
      ;;
 
10170
 
 
10171
    sysv4*MP*)
 
10172
      if test -d /usr/nec; then
 
10173
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10174
        hardcode_shlibpath_var=no
 
10175
        runpath_var=LD_RUN_PATH
 
10176
        hardcode_runpath_var=yes
 
10177
        ld_shlibs=yes
 
10178
      fi
 
10179
      ;;
 
10180
 
 
10181
    sysv4.2uw2*)
 
10182
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10183
      hardcode_direct=yes
 
10184
      hardcode_minus_L=no
 
10185
      hardcode_shlibpath_var=no
 
10186
      hardcode_runpath_var=yes
 
10187
      runpath_var=LD_RUN_PATH
 
10188
      ;;
 
10189
 
 
10190
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
10191
      no_undefined_flag='${wl}-z ${wl}text'
 
10192
      if test "$GCC" = yes; then
 
10193
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10194
      else
 
10195
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10196
      fi
 
10197
      runpath_var='LD_RUN_PATH'
 
10198
      hardcode_shlibpath_var=no
 
10199
      ;;
 
10200
 
 
10201
    sysv5*)
 
10202
      no_undefined_flag=' -z text'
 
10203
      # $CC -shared without GNU ld will not create a library from C++
 
10204
      # object files and a static libstdc++, better avoid it by now
 
10205
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10206
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10207
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
10208
      hardcode_libdir_flag_spec=
 
10209
      hardcode_shlibpath_var=no
 
10210
      runpath_var='LD_RUN_PATH'
 
10211
      ;;
 
10212
 
 
10213
    uts4*)
 
10214
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10215
      hardcode_libdir_flag_spec='-L$libdir'
 
10216
      hardcode_shlibpath_var=no
 
10217
      ;;
 
10218
 
 
10219
    *)
 
10220
      ld_shlibs=no
 
10221
      ;;
 
10222
    esac
 
10223
  fi
 
10224
 
 
10225
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
10226
echo "${ECHO_T}$ld_shlibs" >&6
 
10227
test "$ld_shlibs" = no && can_build_shared=no
 
10228
 
 
10229
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10230
if test "$GCC" = yes; then
 
10231
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10232
fi
 
10233
 
 
10234
#
 
10235
# Do we need to explicitly link libc?
 
10236
#
 
10237
case "x$archive_cmds_need_lc" in
 
10238
x|xyes)
 
10239
  # Assume -lc should be added
 
10240
  archive_cmds_need_lc=yes
 
10241
 
 
10242
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10243
    case $archive_cmds in
 
10244
    *'~'*)
 
10245
      # FIXME: we may have to deal with multi-command sequences.
 
10246
      ;;
 
10247
    '$CC '*)
 
10248
      # Test whether the compiler implicitly links with -lc since on some
 
10249
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10250
      # to ld, don't add -lc before -lgcc.
 
10251
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10252
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
10253
      $rm conftest*
 
10254
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10255
 
 
10256
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10257
  (eval $ac_compile) 2>&5
 
10258
  ac_status=$?
 
10259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10260
  (exit $ac_status); } 2>conftest.err; then
 
10261
        soname=conftest
 
10262
        lib=conftest
 
10263
        libobjs=conftest.$ac_objext
 
10264
        deplibs=
 
10265
        wl=$lt_prog_compiler_wl
 
10266
        compiler_flags=-v
 
10267
        linker_flags=-v
 
10268
        verstring=
 
10269
        output_objdir=.
 
10270
        libname=conftest
 
10271
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
10272
        allow_undefined_flag=
 
10273
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10274
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10275
  ac_status=$?
 
10276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10277
  (exit $ac_status); }
 
10278
        then
 
10279
          archive_cmds_need_lc=no
 
10280
        else
 
10281
          archive_cmds_need_lc=yes
 
10282
        fi
 
10283
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
10284
      else
 
10285
        cat conftest.err 1>&5
 
10286
      fi
 
10287
      $rm conftest*
 
10288
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
10289
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
10290
      ;;
 
10291
    esac
 
10292
  fi
 
10293
  ;;
 
10294
esac
 
10295
 
 
10296
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10297
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
10298
library_names_spec=
 
10299
libname_spec='lib$name'
 
10300
soname_spec=
 
10301
shrext_cmds=".so"
 
10302
postinstall_cmds=
 
10303
postuninstall_cmds=
 
10304
finish_cmds=
 
10305
finish_eval=
 
10306
shlibpath_var=
 
10307
shlibpath_overrides_runpath=unknown
 
10308
version_type=none
 
10309
dynamic_linker="$host_os ld.so"
 
10310
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10311
if test "$GCC" = yes; then
 
10312
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10313
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
10314
    # if the path contains ";" then we assume it to be the separator
 
10315
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10316
    # assumed that no part of a normal pathname contains ";" but that should
 
10317
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10318
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10319
  else
 
10320
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10321
  fi
 
10322
else
 
10323
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10324
fi
 
10325
need_lib_prefix=unknown
 
10326
hardcode_into_libs=no
 
10327
 
 
10328
# when you set need_version to no, make sure it does not cause -set_version
 
10329
# flags to be left without arguments
 
10330
need_version=unknown
 
10331
 
 
10332
case $host_os in
 
10333
aix3*)
 
10334
  version_type=linux
 
10335
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10336
  shlibpath_var=LIBPATH
 
10337
 
 
10338
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10339
  soname_spec='${libname}${release}${shared_ext}$major'
 
10340
  ;;
 
10341
 
 
10342
aix4* | aix5*)
 
10343
  version_type=linux
 
10344
  need_lib_prefix=no
 
10345
  need_version=no
 
10346
  hardcode_into_libs=yes
 
10347
  if test "$host_cpu" = ia64; then
 
10348
    # AIX 5 supports IA64
 
10349
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10350
    shlibpath_var=LD_LIBRARY_PATH
 
10351
  else
 
10352
    # With GCC up to 2.95.x, collect2 would create an import file
 
10353
    # for dependence libraries.  The import file would start with
 
10354
    # the line `#! .'.  This would cause the generated library to
 
10355
    # depend on `.', always an invalid library.  This was fixed in
 
10356
    # development snapshots of GCC prior to 3.0.
 
10357
    case $host_os in
 
10358
      aix4 | aix4.[01] | aix4.[01].*)
 
10359
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10360
           echo ' yes '
 
10361
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10362
        :
 
10363
      else
 
10364
        can_build_shared=no
 
10365
      fi
 
10366
      ;;
 
10367
    esac
 
10368
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10369
    # soname into executable. Probably we can add versioning support to
 
10370
    # collect2, so additional links can be useful in future.
 
10371
    if test "$aix_use_runtimelinking" = yes; then
 
10372
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10373
      # instead of lib<name>.a to let people know that these are not
 
10374
      # typical AIX shared libraries.
 
10375
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10376
    else
 
10377
      # We preserve .a as extension for shared libraries through AIX4.2
 
10378
      # and later when we are not doing run time linking.
 
10379
      library_names_spec='${libname}${release}.a $libname.a'
 
10380
      soname_spec='${libname}${release}${shared_ext}$major'
 
10381
    fi
 
10382
    shlibpath_var=LIBPATH
 
10383
  fi
 
10384
  ;;
 
10385
 
 
10386
amigaos*)
 
10387
  library_names_spec='$libname.ixlibrary $libname.a'
 
10388
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10389
  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'
 
10390
  ;;
 
10391
 
 
10392
beos*)
 
10393
  library_names_spec='${libname}${shared_ext}'
 
10394
  dynamic_linker="$host_os ld.so"
 
10395
  shlibpath_var=LIBRARY_PATH
 
10396
  ;;
 
10397
 
 
10398
bsdi4*)
 
10399
  version_type=linux
 
10400
  need_version=no
 
10401
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10402
  soname_spec='${libname}${release}${shared_ext}$major'
 
10403
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10404
  shlibpath_var=LD_LIBRARY_PATH
 
10405
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10406
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10407
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10408
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10409
  # libtool to hard-code these into programs
 
10410
  ;;
 
10411
 
 
10412
cygwin* | mingw* | pw32*)
 
10413
  version_type=windows
 
10414
  shrext_cmds=".dll"
 
10415
  need_version=no
 
10416
  need_lib_prefix=no
 
10417
 
 
10418
  case $GCC,$host_os in
 
10419
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10420
    library_names_spec='$libname.dll.a'
 
10421
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10422
    postinstall_cmds='base_file=`basename \${file}`~
 
10423
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10424
      dldir=$destdir/`dirname \$dlpath`~
 
10425
      test -d \$dldir || mkdir -p \$dldir~
 
10426
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10427
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10428
      dlpath=$dir/\$dldll~
 
10429
       $rm \$dlpath'
 
10430
    shlibpath_overrides_runpath=yes
 
10431
 
 
10432
    case $host_os in
 
10433
    cygwin*)
 
10434
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10435
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10436
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10437
      ;;
 
10438
    mingw*)
 
10439
      # MinGW DLLs use traditional 'lib' prefix
 
10440
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10441
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10442
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10443
        # It is most probably a Windows format PATH printed by
 
10444
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10445
        # path with ; separators, and with drive letters. We can handle the
 
10446
        # drive letters (cygwin fileutils understands them), so leave them,
 
10447
        # especially as we might pass files found there to a mingw objdump,
 
10448
        # which wouldn't understand a cygwinified path. Ahh.
 
10449
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10450
      else
 
10451
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10452
      fi
 
10453
      ;;
 
10454
    pw32*)
 
10455
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10456
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
10457
      ;;
 
10458
    esac
 
10459
    ;;
 
10460
 
 
10461
  *)
 
10462
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10463
    ;;
 
10464
  esac
 
10465
  dynamic_linker='Win32 ld.exe'
 
10466
  # FIXME: first we should search . and the directory the executable is in
 
10467
  shlibpath_var=PATH
 
10468
  ;;
 
10469
 
 
10470
darwin* | rhapsody*)
 
10471
  dynamic_linker="$host_os dyld"
 
10472
  version_type=darwin
 
10473
  need_lib_prefix=no
 
10474
  need_version=no
 
10475
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10476
  soname_spec='${libname}${release}${major}$shared_ext'
 
10477
  shlibpath_overrides_runpath=yes
 
10478
  shlibpath_var=DYLD_LIBRARY_PATH
 
10479
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
10480
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
10481
  if test "$GCC" = yes; then
 
10482
    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"`
 
10483
  else
 
10484
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
10485
  fi
 
10486
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10487
  ;;
 
10488
 
 
10489
dgux*)
 
10490
  version_type=linux
 
10491
  need_lib_prefix=no
 
10492
  need_version=no
 
10493
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10494
  soname_spec='${libname}${release}${shared_ext}$major'
 
10495
  shlibpath_var=LD_LIBRARY_PATH
 
10496
  ;;
 
10497
 
 
10498
freebsd1*)
 
10499
  dynamic_linker=no
 
10500
  ;;
 
10501
 
 
10502
kfreebsd*-gnu)
 
10503
  version_type=linux
 
10504
  need_lib_prefix=no
 
10505
  need_version=no
 
10506
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10507
  soname_spec='${libname}${release}${shared_ext}$major'
 
10508
  shlibpath_var=LD_LIBRARY_PATH
 
10509
  shlibpath_overrides_runpath=no
 
10510
  hardcode_into_libs=yes
 
10511
  dynamic_linker='GNU ld.so'
 
10512
  ;;
 
10513
 
 
10514
freebsd*)
 
10515
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
10516
  version_type=freebsd-$objformat
 
10517
  case $version_type in
 
10518
    freebsd-elf*)
 
10519
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10520
      need_version=no
 
10521
      need_lib_prefix=no
 
10522
      ;;
 
10523
    freebsd-*)
 
10524
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10525
      need_version=yes
 
10526
      ;;
 
10527
  esac
 
10528
  shlibpath_var=LD_LIBRARY_PATH
 
10529
  case $host_os in
 
10530
  freebsd2*)
 
10531
    shlibpath_overrides_runpath=yes
 
10532
    ;;
 
10533
  freebsd3.01* | freebsdelf3.01*)
 
10534
    shlibpath_overrides_runpath=yes
 
10535
    hardcode_into_libs=yes
 
10536
    ;;
 
10537
  *) # from 3.2 on
 
10538
    shlibpath_overrides_runpath=no
 
10539
    hardcode_into_libs=yes
 
10540
    ;;
 
10541
  esac
 
10542
  ;;
 
10543
 
 
10544
gnu*)
 
10545
  version_type=linux
 
10546
  need_lib_prefix=no
 
10547
  need_version=no
 
10548
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10549
  soname_spec='${libname}${release}${shared_ext}$major'
 
10550
  shlibpath_var=LD_LIBRARY_PATH
 
10551
  hardcode_into_libs=yes
 
10552
  ;;
 
10553
 
 
10554
hpux9* | hpux10* | hpux11*)
 
10555
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10556
  # link against other versions.
 
10557
  version_type=sunos
 
10558
  need_lib_prefix=no
 
10559
  need_version=no
 
10560
  case "$host_cpu" in
 
10561
  ia64*)
 
10562
    shrext_cmds='.so'
 
10563
    hardcode_into_libs=yes
 
10564
    dynamic_linker="$host_os dld.so"
 
10565
    shlibpath_var=LD_LIBRARY_PATH
 
10566
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10567
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10568
    soname_spec='${libname}${release}${shared_ext}$major'
 
10569
    if test "X$HPUX_IA64_MODE" = X32; then
 
10570
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10571
    else
 
10572
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10573
    fi
 
10574
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10575
    ;;
 
10576
   hppa*64*)
 
10577
     shrext_cmds='.sl'
 
10578
     hardcode_into_libs=yes
 
10579
     dynamic_linker="$host_os dld.sl"
 
10580
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10581
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10582
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10583
     soname_spec='${libname}${release}${shared_ext}$major'
 
10584
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10585
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10586
     ;;
 
10587
   *)
 
10588
    shrext_cmds='.sl'
 
10589
    dynamic_linker="$host_os dld.sl"
 
10590
    shlibpath_var=SHLIB_PATH
 
10591
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10592
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10593
    soname_spec='${libname}${release}${shared_ext}$major'
 
10594
    ;;
 
10595
  esac
 
10596
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10597
  postinstall_cmds='chmod 555 $lib'
 
10598
  ;;
 
10599
 
 
10600
irix5* | irix6* | nonstopux*)
 
10601
  case $host_os in
 
10602
    nonstopux*) version_type=nonstopux ;;
 
10603
    *)
 
10604
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10605
                version_type=linux
 
10606
        else
 
10607
                version_type=irix
 
10608
        fi ;;
 
10609
  esac
 
10610
  need_lib_prefix=no
 
10611
  need_version=no
 
10612
  soname_spec='${libname}${release}${shared_ext}$major'
 
10613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10614
  case $host_os in
 
10615
  irix5* | nonstopux*)
 
10616
    libsuff= shlibsuff=
 
10617
    ;;
 
10618
  *)
 
10619
    case $LD in # libtool.m4 will add one of these switches to LD
 
10620
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10621
      libsuff= shlibsuff= libmagic=32-bit;;
 
10622
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10623
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10624
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10625
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10626
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10627
    esac
 
10628
    ;;
 
10629
  esac
 
10630
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10631
  shlibpath_overrides_runpath=no
 
10632
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10633
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10634
  hardcode_into_libs=yes
 
10635
  ;;
 
10636
 
 
10637
# No shared lib support for Linux oldld, aout, or coff.
 
10638
linux*oldld* | linux*aout* | linux*coff*)
 
10639
  dynamic_linker=no
 
10640
  ;;
 
10641
 
 
10642
# This must be Linux ELF.
 
10643
linux*)
 
10644
  version_type=linux
 
10645
  need_lib_prefix=no
 
10646
  need_version=no
 
10647
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10648
  soname_spec='${libname}${release}${shared_ext}$major'
 
10649
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10650
  shlibpath_var=LD_LIBRARY_PATH
 
10651
  shlibpath_overrides_runpath=no
 
10652
  # This implies no fast_install, which is unacceptable.
 
10653
  # Some rework will be needed to allow for fast_install
 
10654
  # before this can be enabled.
 
10655
  hardcode_into_libs=yes
 
10656
 
 
10657
  # Append ld.so.conf contents to the search path
 
10658
  if test -f /etc/ld.so.conf; then
 
10659
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
10660
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10661
  fi
 
10662
 
 
10663
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10664
  # powerpc, because MkLinux only supported shared libraries with the
 
10665
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10666
  # most powerpc-linux boxes support dynamic linking these days and
 
10667
  # people can always --disable-shared, the test was removed, and we
 
10668
  # assume the GNU/Linux dynamic linker is in use.
 
10669
  dynamic_linker='GNU/Linux ld.so'
 
10670
  ;;
 
10671
 
 
10672
netbsdelf*-gnu)
 
10673
  version_type=linux
 
10674
  need_lib_prefix=no
 
10675
  need_version=no
 
10676
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10677
  soname_spec='${libname}${release}${shared_ext}$major'
 
10678
  shlibpath_var=LD_LIBRARY_PATH
 
10679
  shlibpath_overrides_runpath=no
 
10680
  hardcode_into_libs=yes
 
10681
  dynamic_linker='NetBSD ld.elf_so'
 
10682
  ;;
 
10683
 
 
10684
knetbsd*-gnu)
 
10685
  version_type=linux
 
10686
  need_lib_prefix=no
 
10687
  need_version=no
 
10688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10689
  soname_spec='${libname}${release}${shared_ext}$major'
 
10690
  shlibpath_var=LD_LIBRARY_PATH
 
10691
  shlibpath_overrides_runpath=no
 
10692
  hardcode_into_libs=yes
 
10693
  dynamic_linker='GNU ld.so'
 
10694
  ;;
 
10695
 
 
10696
netbsd*)
 
10697
  version_type=sunos
 
10698
  need_lib_prefix=no
 
10699
  need_version=no
 
10700
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10701
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10702
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10703
    dynamic_linker='NetBSD (a.out) ld.so'
 
10704
  else
 
10705
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10706
    soname_spec='${libname}${release}${shared_ext}$major'
 
10707
    dynamic_linker='NetBSD ld.elf_so'
 
10708
  fi
 
10709
  shlibpath_var=LD_LIBRARY_PATH
 
10710
  shlibpath_overrides_runpath=yes
 
10711
  hardcode_into_libs=yes
 
10712
  ;;
 
10713
 
 
10714
newsos6)
 
10715
  version_type=linux
 
10716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10717
  shlibpath_var=LD_LIBRARY_PATH
 
10718
  shlibpath_overrides_runpath=yes
 
10719
  ;;
 
10720
 
 
10721
nto-qnx*)
 
10722
  version_type=linux
 
10723
  need_lib_prefix=no
 
10724
  need_version=no
 
10725
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10726
  soname_spec='${libname}${release}${shared_ext}$major'
 
10727
  shlibpath_var=LD_LIBRARY_PATH
 
10728
  shlibpath_overrides_runpath=yes
 
10729
  ;;
 
10730
 
 
10731
openbsd*)
 
10732
  version_type=sunos
 
10733
  need_lib_prefix=no
 
10734
  need_version=yes
 
10735
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10736
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10737
  shlibpath_var=LD_LIBRARY_PATH
 
10738
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10739
    case $host_os in
 
10740
      openbsd2.[89] | openbsd2.[89].*)
 
10741
        shlibpath_overrides_runpath=no
 
10742
        ;;
 
10743
      *)
 
10744
        shlibpath_overrides_runpath=yes
 
10745
        ;;
 
10746
      esac
 
10747
  else
 
10748
    shlibpath_overrides_runpath=yes
 
10749
  fi
 
10750
  ;;
 
10751
 
 
10752
os2*)
 
10753
  libname_spec='$name'
 
10754
  shrext_cmds=".dll"
 
10755
  need_lib_prefix=no
 
10756
  library_names_spec='$libname${shared_ext} $libname.a'
 
10757
  dynamic_linker='OS/2 ld.exe'
 
10758
  shlibpath_var=LIBPATH
 
10759
  ;;
 
10760
 
 
10761
osf3* | osf4* | osf5*)
 
10762
  version_type=osf
 
10763
  need_lib_prefix=no
 
10764
  need_version=no
 
10765
  soname_spec='${libname}${release}${shared_ext}$major'
 
10766
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10767
  shlibpath_var=LD_LIBRARY_PATH
 
10768
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10769
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10770
  ;;
 
10771
 
 
10772
sco3.2v5*)
 
10773
  version_type=osf
 
10774
  soname_spec='${libname}${release}${shared_ext}$major'
 
10775
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10776
  shlibpath_var=LD_LIBRARY_PATH
 
10777
  ;;
 
10778
 
 
10779
solaris*)
 
10780
  version_type=linux
 
10781
  need_lib_prefix=no
 
10782
  need_version=no
 
10783
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10784
  soname_spec='${libname}${release}${shared_ext}$major'
 
10785
  shlibpath_var=LD_LIBRARY_PATH
 
10786
  shlibpath_overrides_runpath=yes
 
10787
  hardcode_into_libs=yes
 
10788
  # ldd complains unless libraries are executable
 
10789
  postinstall_cmds='chmod +x $lib'
 
10790
  ;;
 
10791
 
 
10792
sunos4*)
 
10793
  version_type=sunos
 
10794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10795
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10796
  shlibpath_var=LD_LIBRARY_PATH
 
10797
  shlibpath_overrides_runpath=yes
 
10798
  if test "$with_gnu_ld" = yes; then
 
10799
    need_lib_prefix=no
 
10800
  fi
 
10801
  need_version=yes
 
10802
  ;;
 
10803
 
 
10804
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10805
  version_type=linux
 
10806
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10807
  soname_spec='${libname}${release}${shared_ext}$major'
 
10808
  shlibpath_var=LD_LIBRARY_PATH
 
10809
  case $host_vendor in
 
10810
    sni)
 
10811
      shlibpath_overrides_runpath=no
 
10812
      need_lib_prefix=no
 
10813
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10814
      runpath_var=LD_RUN_PATH
 
10815
      ;;
 
10816
    siemens)
 
10817
      need_lib_prefix=no
 
10818
      ;;
 
10819
    motorola)
 
10820
      need_lib_prefix=no
 
10821
      need_version=no
 
10822
      shlibpath_overrides_runpath=no
 
10823
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10824
      ;;
 
10825
  esac
 
10826
  ;;
 
10827
 
 
10828
sysv4*MP*)
 
10829
  if test -d /usr/nec ;then
 
10830
    version_type=linux
 
10831
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10832
    soname_spec='$libname${shared_ext}.$major'
 
10833
    shlibpath_var=LD_LIBRARY_PATH
 
10834
  fi
 
10835
  ;;
 
10836
 
 
10837
uts4*)
 
10838
  version_type=linux
 
10839
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10840
  soname_spec='${libname}${release}${shared_ext}$major'
 
10841
  shlibpath_var=LD_LIBRARY_PATH
 
10842
  ;;
 
10843
 
 
10844
*)
 
10845
  dynamic_linker=no
 
10846
  ;;
 
10847
esac
 
10848
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10849
echo "${ECHO_T}$dynamic_linker" >&6
 
10850
test "$dynamic_linker" = no && can_build_shared=no
 
10851
 
 
10852
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10853
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
10854
hardcode_action=
 
10855
if test -n "$hardcode_libdir_flag_spec" || \
 
10856
   test -n "$runpath_var " || \
 
10857
   test "X$hardcode_automatic"="Xyes" ; then
 
10858
 
 
10859
  # We can hardcode non-existant directories.
 
10860
  if test "$hardcode_direct" != no &&
 
10861
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10862
     # have to relink, otherwise we might link with an installed library
 
10863
     # when we should be linking with a yet-to-be-installed one
 
10864
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10865
     test "$hardcode_minus_L" != no; then
 
10866
    # Linking always hardcodes the temporary library directory.
 
10867
    hardcode_action=relink
 
10868
  else
 
10869
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10870
    hardcode_action=immediate
 
10871
  fi
 
10872
else
 
10873
  # We cannot hardcode anything, or else we can only hardcode existing
 
10874
  # directories.
 
10875
  hardcode_action=unsupported
 
10876
fi
 
10877
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10878
echo "${ECHO_T}$hardcode_action" >&6
 
10879
 
 
10880
if test "$hardcode_action" = relink; then
 
10881
  # Fast installation is not supported
 
10882
  enable_fast_install=no
 
10883
elif test "$shlibpath_overrides_runpath" = yes ||
 
10884
     test "$enable_shared" = no; then
 
10885
  # Fast installation is not necessary
 
10886
  enable_fast_install=needless
 
10887
fi
 
10888
 
 
10889
striplib=
 
10890
old_striplib=
 
10891
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10892
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
10893
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10894
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10895
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10896
  echo "$as_me:$LINENO: result: yes" >&5
 
10897
echo "${ECHO_T}yes" >&6
 
10898
else
 
10899
# FIXME - insert some real tests, host_os isn't really good enough
 
10900
  case $host_os in
 
10901
   darwin*)
 
10902
       if test -n "$STRIP" ; then
 
10903
         striplib="$STRIP -x"
 
10904
         echo "$as_me:$LINENO: result: yes" >&5
 
10905
echo "${ECHO_T}yes" >&6
 
10906
       else
 
10907
  echo "$as_me:$LINENO: result: no" >&5
 
10908
echo "${ECHO_T}no" >&6
 
10909
fi
 
10910
       ;;
 
10911
   *)
 
10912
  echo "$as_me:$LINENO: result: no" >&5
 
10913
echo "${ECHO_T}no" >&6
 
10914
    ;;
 
10915
  esac
 
10916
fi
 
10917
 
 
10918
if test "x$enable_dlopen" != xyes; then
 
10919
  enable_dlopen=unknown
 
10920
  enable_dlopen_self=unknown
 
10921
  enable_dlopen_self_static=unknown
 
10922
else
 
10923
  lt_cv_dlopen=no
 
10924
  lt_cv_dlopen_libs=
 
10925
 
 
10926
  case $host_os in
 
10927
  beos*)
 
10928
    lt_cv_dlopen="load_add_on"
 
10929
    lt_cv_dlopen_libs=
 
10930
    lt_cv_dlopen_self=yes
 
10931
    ;;
 
10932
 
 
10933
  mingw* | pw32*)
 
10934
    lt_cv_dlopen="LoadLibrary"
 
10935
    lt_cv_dlopen_libs=
 
10936
   ;;
 
10937
 
 
10938
  cygwin*)
 
10939
    lt_cv_dlopen="dlopen"
 
10940
    lt_cv_dlopen_libs=
 
10941
   ;;
 
10942
 
 
10943
  darwin*)
 
10944
  # if libdl is installed we need to link against it
 
10945
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10946
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10947
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10949
else
 
10950
  ac_check_lib_save_LIBS=$LIBS
 
10951
LIBS="-ldl  $LIBS"
 
10952
cat >conftest.$ac_ext <<_ACEOF
 
10953
/* confdefs.h.  */
 
10954
_ACEOF
 
10955
cat confdefs.h >>conftest.$ac_ext
 
10956
cat >>conftest.$ac_ext <<_ACEOF
 
10957
/* end confdefs.h.  */
 
10958
 
 
10959
/* Override any gcc2 internal prototype to avoid an error.  */
 
10960
#ifdef __cplusplus
 
10961
extern "C"
 
10962
#endif
 
10963
/* We use char because int might match the return type of a gcc2
 
10964
   builtin and then its argument prototype would still apply.  */
 
10965
char dlopen ();
 
10966
int
 
10967
main ()
 
10968
{
 
10969
dlopen ();
 
10970
  ;
 
10971
  return 0;
 
10972
}
 
10973
_ACEOF
 
10974
rm -f conftest.$ac_objext conftest$ac_exeext
 
10975
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10976
  (eval $ac_link) 2>conftest.er1
 
10977
  ac_status=$?
 
10978
  grep -v '^ *+' conftest.er1 >conftest.err
 
10979
  rm -f conftest.er1
 
10980
  cat conftest.err >&5
 
10981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10982
  (exit $ac_status); } &&
 
10983
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10985
  (eval $ac_try) 2>&5
 
10986
  ac_status=$?
 
10987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10988
  (exit $ac_status); }; } &&
 
10989
         { ac_try='test -s conftest$ac_exeext'
 
10990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10991
  (eval $ac_try) 2>&5
 
10992
  ac_status=$?
 
10993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10994
  (exit $ac_status); }; }; then
 
10995
  ac_cv_lib_dl_dlopen=yes
 
10996
else
 
10997
  echo "$as_me: failed program was:" >&5
 
10998
sed 's/^/| /' conftest.$ac_ext >&5
 
10999
 
 
11000
ac_cv_lib_dl_dlopen=no
 
11001
fi
 
11002
rm -f conftest.err conftest.$ac_objext \
 
11003
      conftest$ac_exeext conftest.$ac_ext
 
11004
LIBS=$ac_check_lib_save_LIBS
 
11005
fi
 
11006
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11007
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11008
if test $ac_cv_lib_dl_dlopen = yes; then
 
11009
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11010
else
 
11011
  
 
11012
    lt_cv_dlopen="dyld"
 
11013
    lt_cv_dlopen_libs=
 
11014
    lt_cv_dlopen_self=yes
 
11015
    
 
11016
fi
 
11017
 
 
11018
   ;;
 
11019
 
 
11020
  *)
 
11021
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11022
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11023
if test "${ac_cv_func_shl_load+set}" = set; then
 
11024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11025
else
 
11026
  cat >conftest.$ac_ext <<_ACEOF
 
11027
/* confdefs.h.  */
 
11028
_ACEOF
 
11029
cat confdefs.h >>conftest.$ac_ext
 
11030
cat >>conftest.$ac_ext <<_ACEOF
 
11031
/* end confdefs.h.  */
 
11032
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11033
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11034
#define shl_load innocuous_shl_load
 
11035
 
 
11036
/* System header to define __stub macros and hopefully few prototypes,
 
11037
    which can conflict with char shl_load (); below.
 
11038
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11039
    <limits.h> exists even on freestanding compilers.  */
 
11040
 
 
11041
#ifdef __STDC__
 
11042
# include <limits.h>
 
11043
#else
 
11044
# include <assert.h>
 
11045
#endif
 
11046
 
 
11047
#undef shl_load
 
11048
 
 
11049
/* Override any gcc2 internal prototype to avoid an error.  */
 
11050
#ifdef __cplusplus
 
11051
extern "C"
 
11052
{
 
11053
#endif
 
11054
/* We use char because int might match the return type of a gcc2
 
11055
   builtin and then its argument prototype would still apply.  */
 
11056
char shl_load ();
 
11057
/* The GNU C library defines this for functions which it implements
 
11058
    to always fail with ENOSYS.  Some functions are actually named
 
11059
    something starting with __ and the normal name is an alias.  */
 
11060
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11061
choke me
 
11062
#else
 
11063
char (*f) () = shl_load;
 
11064
#endif
 
11065
#ifdef __cplusplus
 
11066
}
 
11067
#endif
 
11068
 
 
11069
int
 
11070
main ()
 
11071
{
 
11072
return f != shl_load;
 
11073
  ;
 
11074
  return 0;
 
11075
}
 
11076
_ACEOF
 
11077
rm -f conftest.$ac_objext conftest$ac_exeext
 
11078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11079
  (eval $ac_link) 2>conftest.er1
 
11080
  ac_status=$?
 
11081
  grep -v '^ *+' conftest.er1 >conftest.err
 
11082
  rm -f conftest.er1
 
11083
  cat conftest.err >&5
 
11084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11085
  (exit $ac_status); } &&
 
11086
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11088
  (eval $ac_try) 2>&5
 
11089
  ac_status=$?
 
11090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11091
  (exit $ac_status); }; } &&
 
11092
         { ac_try='test -s conftest$ac_exeext'
 
11093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11094
  (eval $ac_try) 2>&5
 
11095
  ac_status=$?
 
11096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11097
  (exit $ac_status); }; }; then
 
11098
  ac_cv_func_shl_load=yes
 
11099
else
 
11100
  echo "$as_me: failed program was:" >&5
 
11101
sed 's/^/| /' conftest.$ac_ext >&5
 
11102
 
 
11103
ac_cv_func_shl_load=no
 
11104
fi
 
11105
rm -f conftest.err conftest.$ac_objext \
 
11106
      conftest$ac_exeext conftest.$ac_ext
 
11107
fi
 
11108
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11109
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
11110
if test $ac_cv_func_shl_load = yes; then
 
11111
  lt_cv_dlopen="shl_load"
 
11112
else
 
11113
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11114
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
11115
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11116
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11117
else
 
11118
  ac_check_lib_save_LIBS=$LIBS
 
11119
LIBS="-ldld  $LIBS"
 
11120
cat >conftest.$ac_ext <<_ACEOF
 
11121
/* confdefs.h.  */
 
11122
_ACEOF
 
11123
cat confdefs.h >>conftest.$ac_ext
 
11124
cat >>conftest.$ac_ext <<_ACEOF
 
11125
/* end confdefs.h.  */
 
11126
 
 
11127
/* Override any gcc2 internal prototype to avoid an error.  */
 
11128
#ifdef __cplusplus
 
11129
extern "C"
 
11130
#endif
 
11131
/* We use char because int might match the return type of a gcc2
 
11132
   builtin and then its argument prototype would still apply.  */
 
11133
char shl_load ();
 
11134
int
 
11135
main ()
 
11136
{
 
11137
shl_load ();
 
11138
  ;
 
11139
  return 0;
 
11140
}
 
11141
_ACEOF
 
11142
rm -f conftest.$ac_objext conftest$ac_exeext
 
11143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11144
  (eval $ac_link) 2>conftest.er1
 
11145
  ac_status=$?
 
11146
  grep -v '^ *+' conftest.er1 >conftest.err
 
11147
  rm -f conftest.er1
 
11148
  cat conftest.err >&5
 
11149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11150
  (exit $ac_status); } &&
 
11151
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11153
  (eval $ac_try) 2>&5
 
11154
  ac_status=$?
 
11155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11156
  (exit $ac_status); }; } &&
 
11157
         { ac_try='test -s conftest$ac_exeext'
 
11158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11159
  (eval $ac_try) 2>&5
 
11160
  ac_status=$?
 
11161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11162
  (exit $ac_status); }; }; then
 
11163
  ac_cv_lib_dld_shl_load=yes
 
11164
else
 
11165
  echo "$as_me: failed program was:" >&5
 
11166
sed 's/^/| /' conftest.$ac_ext >&5
 
11167
 
 
11168
ac_cv_lib_dld_shl_load=no
 
11169
fi
 
11170
rm -f conftest.err conftest.$ac_objext \
 
11171
      conftest$ac_exeext conftest.$ac_ext
 
11172
LIBS=$ac_check_lib_save_LIBS
 
11173
fi
 
11174
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11175
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11176
if test $ac_cv_lib_dld_shl_load = yes; then
 
11177
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11178
else
 
11179
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11180
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11181
if test "${ac_cv_func_dlopen+set}" = set; then
 
11182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11183
else
 
11184
  cat >conftest.$ac_ext <<_ACEOF
 
11185
/* confdefs.h.  */
 
11186
_ACEOF
 
11187
cat confdefs.h >>conftest.$ac_ext
 
11188
cat >>conftest.$ac_ext <<_ACEOF
 
11189
/* end confdefs.h.  */
 
11190
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
11191
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11192
#define dlopen innocuous_dlopen
 
11193
 
 
11194
/* System header to define __stub macros and hopefully few prototypes,
 
11195
    which can conflict with char dlopen (); below.
 
11196
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11197
    <limits.h> exists even on freestanding compilers.  */
 
11198
 
 
11199
#ifdef __STDC__
 
11200
# include <limits.h>
 
11201
#else
 
11202
# include <assert.h>
 
11203
#endif
 
11204
 
 
11205
#undef dlopen
 
11206
 
 
11207
/* Override any gcc2 internal prototype to avoid an error.  */
 
11208
#ifdef __cplusplus
 
11209
extern "C"
 
11210
{
 
11211
#endif
 
11212
/* We use char because int might match the return type of a gcc2
 
11213
   builtin and then its argument prototype would still apply.  */
 
11214
char dlopen ();
 
11215
/* The GNU C library defines this for functions which it implements
 
11216
    to always fail with ENOSYS.  Some functions are actually named
 
11217
    something starting with __ and the normal name is an alias.  */
 
11218
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11219
choke me
 
11220
#else
 
11221
char (*f) () = dlopen;
 
11222
#endif
 
11223
#ifdef __cplusplus
 
11224
}
 
11225
#endif
 
11226
 
 
11227
int
 
11228
main ()
 
11229
{
 
11230
return f != dlopen;
 
11231
  ;
 
11232
  return 0;
 
11233
}
 
11234
_ACEOF
 
11235
rm -f conftest.$ac_objext conftest$ac_exeext
 
11236
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11237
  (eval $ac_link) 2>conftest.er1
 
11238
  ac_status=$?
 
11239
  grep -v '^ *+' conftest.er1 >conftest.err
 
11240
  rm -f conftest.er1
 
11241
  cat conftest.err >&5
 
11242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11243
  (exit $ac_status); } &&
 
11244
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11246
  (eval $ac_try) 2>&5
 
11247
  ac_status=$?
 
11248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11249
  (exit $ac_status); }; } &&
 
11250
         { ac_try='test -s conftest$ac_exeext'
 
11251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11252
  (eval $ac_try) 2>&5
 
11253
  ac_status=$?
 
11254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11255
  (exit $ac_status); }; }; then
 
11256
  ac_cv_func_dlopen=yes
 
11257
else
 
11258
  echo "$as_me: failed program was:" >&5
 
11259
sed 's/^/| /' conftest.$ac_ext >&5
 
11260
 
 
11261
ac_cv_func_dlopen=no
 
11262
fi
 
11263
rm -f conftest.err conftest.$ac_objext \
 
11264
      conftest$ac_exeext conftest.$ac_ext
 
11265
fi
 
11266
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
11267
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
11268
if test $ac_cv_func_dlopen = yes; then
 
11269
  lt_cv_dlopen="dlopen"
 
11270
else
 
11271
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11272
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11273
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11275
else
 
11276
  ac_check_lib_save_LIBS=$LIBS
 
11277
LIBS="-ldl  $LIBS"
 
11278
cat >conftest.$ac_ext <<_ACEOF
 
11279
/* confdefs.h.  */
 
11280
_ACEOF
 
11281
cat confdefs.h >>conftest.$ac_ext
 
11282
cat >>conftest.$ac_ext <<_ACEOF
 
11283
/* end confdefs.h.  */
 
11284
 
 
11285
/* Override any gcc2 internal prototype to avoid an error.  */
 
11286
#ifdef __cplusplus
 
11287
extern "C"
 
11288
#endif
 
11289
/* We use char because int might match the return type of a gcc2
 
11290
   builtin and then its argument prototype would still apply.  */
 
11291
char dlopen ();
 
11292
int
 
11293
main ()
 
11294
{
 
11295
dlopen ();
 
11296
  ;
 
11297
  return 0;
 
11298
}
 
11299
_ACEOF
 
11300
rm -f conftest.$ac_objext conftest$ac_exeext
 
11301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11302
  (eval $ac_link) 2>conftest.er1
 
11303
  ac_status=$?
 
11304
  grep -v '^ *+' conftest.er1 >conftest.err
 
11305
  rm -f conftest.er1
 
11306
  cat conftest.err >&5
 
11307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11308
  (exit $ac_status); } &&
 
11309
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11311
  (eval $ac_try) 2>&5
 
11312
  ac_status=$?
 
11313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11314
  (exit $ac_status); }; } &&
 
11315
         { ac_try='test -s conftest$ac_exeext'
 
11316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11317
  (eval $ac_try) 2>&5
 
11318
  ac_status=$?
 
11319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11320
  (exit $ac_status); }; }; then
 
11321
  ac_cv_lib_dl_dlopen=yes
 
11322
else
 
11323
  echo "$as_me: failed program was:" >&5
 
11324
sed 's/^/| /' conftest.$ac_ext >&5
 
11325
 
 
11326
ac_cv_lib_dl_dlopen=no
 
11327
fi
 
11328
rm -f conftest.err conftest.$ac_objext \
 
11329
      conftest$ac_exeext conftest.$ac_ext
 
11330
LIBS=$ac_check_lib_save_LIBS
 
11331
fi
 
11332
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11333
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11334
if test $ac_cv_lib_dl_dlopen = yes; then
 
11335
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11336
else
 
11337
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11338
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
11339
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11340
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11341
else
 
11342
  ac_check_lib_save_LIBS=$LIBS
 
11343
LIBS="-lsvld  $LIBS"
 
11344
cat >conftest.$ac_ext <<_ACEOF
 
11345
/* confdefs.h.  */
 
11346
_ACEOF
 
11347
cat confdefs.h >>conftest.$ac_ext
 
11348
cat >>conftest.$ac_ext <<_ACEOF
 
11349
/* end confdefs.h.  */
 
11350
 
 
11351
/* Override any gcc2 internal prototype to avoid an error.  */
 
11352
#ifdef __cplusplus
 
11353
extern "C"
 
11354
#endif
 
11355
/* We use char because int might match the return type of a gcc2
 
11356
   builtin and then its argument prototype would still apply.  */
 
11357
char dlopen ();
 
11358
int
 
11359
main ()
 
11360
{
 
11361
dlopen ();
 
11362
  ;
 
11363
  return 0;
 
11364
}
 
11365
_ACEOF
 
11366
rm -f conftest.$ac_objext conftest$ac_exeext
 
11367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11368
  (eval $ac_link) 2>conftest.er1
 
11369
  ac_status=$?
 
11370
  grep -v '^ *+' conftest.er1 >conftest.err
 
11371
  rm -f conftest.er1
 
11372
  cat conftest.err >&5
 
11373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11374
  (exit $ac_status); } &&
 
11375
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11377
  (eval $ac_try) 2>&5
 
11378
  ac_status=$?
 
11379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11380
  (exit $ac_status); }; } &&
 
11381
         { ac_try='test -s conftest$ac_exeext'
 
11382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11383
  (eval $ac_try) 2>&5
 
11384
  ac_status=$?
 
11385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11386
  (exit $ac_status); }; }; then
 
11387
  ac_cv_lib_svld_dlopen=yes
 
11388
else
 
11389
  echo "$as_me: failed program was:" >&5
 
11390
sed 's/^/| /' conftest.$ac_ext >&5
 
11391
 
 
11392
ac_cv_lib_svld_dlopen=no
 
11393
fi
 
11394
rm -f conftest.err conftest.$ac_objext \
 
11395
      conftest$ac_exeext conftest.$ac_ext
 
11396
LIBS=$ac_check_lib_save_LIBS
 
11397
fi
 
11398
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11399
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
11400
if test $ac_cv_lib_svld_dlopen = yes; then
 
11401
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11402
else
 
11403
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11404
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
11405
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11407
else
 
11408
  ac_check_lib_save_LIBS=$LIBS
 
11409
LIBS="-ldld  $LIBS"
 
11410
cat >conftest.$ac_ext <<_ACEOF
 
11411
/* confdefs.h.  */
 
11412
_ACEOF
 
11413
cat confdefs.h >>conftest.$ac_ext
 
11414
cat >>conftest.$ac_ext <<_ACEOF
 
11415
/* end confdefs.h.  */
 
11416
 
 
11417
/* Override any gcc2 internal prototype to avoid an error.  */
 
11418
#ifdef __cplusplus
 
11419
extern "C"
 
11420
#endif
 
11421
/* We use char because int might match the return type of a gcc2
 
11422
   builtin and then its argument prototype would still apply.  */
 
11423
char dld_link ();
 
11424
int
 
11425
main ()
 
11426
{
 
11427
dld_link ();
 
11428
  ;
 
11429
  return 0;
 
11430
}
 
11431
_ACEOF
 
11432
rm -f conftest.$ac_objext conftest$ac_exeext
 
11433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11434
  (eval $ac_link) 2>conftest.er1
 
11435
  ac_status=$?
 
11436
  grep -v '^ *+' conftest.er1 >conftest.err
 
11437
  rm -f conftest.er1
 
11438
  cat conftest.err >&5
 
11439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11440
  (exit $ac_status); } &&
 
11441
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11443
  (eval $ac_try) 2>&5
 
11444
  ac_status=$?
 
11445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11446
  (exit $ac_status); }; } &&
 
11447
         { ac_try='test -s conftest$ac_exeext'
 
11448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11449
  (eval $ac_try) 2>&5
 
11450
  ac_status=$?
 
11451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11452
  (exit $ac_status); }; }; then
 
11453
  ac_cv_lib_dld_dld_link=yes
 
11454
else
 
11455
  echo "$as_me: failed program was:" >&5
 
11456
sed 's/^/| /' conftest.$ac_ext >&5
 
11457
 
 
11458
ac_cv_lib_dld_dld_link=no
 
11459
fi
 
11460
rm -f conftest.err conftest.$ac_objext \
 
11461
      conftest$ac_exeext conftest.$ac_ext
 
11462
LIBS=$ac_check_lib_save_LIBS
 
11463
fi
 
11464
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11465
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
11466
if test $ac_cv_lib_dld_dld_link = yes; then
 
11467
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11468
fi
 
11469
 
 
11470
              
 
11471
fi
 
11472
 
 
11473
            
 
11474
fi
 
11475
 
 
11476
          
 
11477
fi
 
11478
 
 
11479
        
 
11480
fi
 
11481
 
 
11482
      
 
11483
fi
 
11484
 
 
11485
    ;;
 
11486
  esac
 
11487
 
 
11488
  if test "x$lt_cv_dlopen" != xno; then
 
11489
    enable_dlopen=yes
 
11490
  else
 
11491
    enable_dlopen=no
 
11492
  fi
 
11493
 
 
11494
  case $lt_cv_dlopen in
 
11495
  dlopen)
 
11496
    save_CPPFLAGS="$CPPFLAGS"
 
11497
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11498
 
 
11499
    save_LDFLAGS="$LDFLAGS"
 
11500
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11501
 
 
11502
    save_LIBS="$LIBS"
 
11503
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11504
 
 
11505
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11506
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
11507
if test "${lt_cv_dlopen_self+set}" = set; then
 
11508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11509
else
 
11510
          if test "$cross_compiling" = yes; then :
 
11511
  lt_cv_dlopen_self=cross
 
11512
else
 
11513
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11514
  lt_status=$lt_dlunknown
 
11515
  cat > conftest.$ac_ext <<EOF
 
11516
#line __oline__ "configure"
 
11517
#include "confdefs.h"
 
11518
 
 
11519
#if HAVE_DLFCN_H
 
11520
#include <dlfcn.h>
 
11521
#endif
 
11522
 
 
11523
#include <stdio.h>
 
11524
 
 
11525
#ifdef RTLD_GLOBAL
 
11526
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11527
#else
 
11528
#  ifdef DL_GLOBAL
 
11529
#    define LT_DLGLOBAL         DL_GLOBAL
 
11530
#  else
 
11531
#    define LT_DLGLOBAL         0
 
11532
#  endif
 
11533
#endif
 
11534
 
 
11535
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11536
   find out it does not work in some platform. */
 
11537
#ifndef LT_DLLAZY_OR_NOW
 
11538
#  ifdef RTLD_LAZY
 
11539
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11540
#  else
 
11541
#    ifdef DL_LAZY
 
11542
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11543
#    else
 
11544
#      ifdef RTLD_NOW
 
11545
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11546
#      else
 
11547
#        ifdef DL_NOW
 
11548
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11549
#        else
 
11550
#          define LT_DLLAZY_OR_NOW      0
 
11551
#        endif
 
11552
#      endif
 
11553
#    endif
 
11554
#  endif
 
11555
#endif
 
11556
 
 
11557
#ifdef __cplusplus
 
11558
extern "C" void exit (int);
 
11559
#endif
 
11560
 
 
11561
void fnord() { int i=42;}
 
11562
int main ()
 
11563
{
 
11564
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11565
  int status = $lt_dlunknown;
 
11566
 
 
11567
  if (self)
 
11568
    {
 
11569
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11570
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11571
      /* dlclose (self); */
 
11572
    }
 
11573
 
 
11574
    exit (status);
 
11575
}
 
11576
EOF
 
11577
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11578
  (eval $ac_link) 2>&5
 
11579
  ac_status=$?
 
11580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11581
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11582
    (./conftest; exit; ) 2>/dev/null
 
11583
    lt_status=$?
 
11584
    case x$lt_status in
 
11585
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11586
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11587
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
11588
    esac
 
11589
  else :
 
11590
    # compilation failed
 
11591
    lt_cv_dlopen_self=no
 
11592
  fi
 
11593
fi
 
11594
rm -fr conftest*
 
11595
 
 
11596
    
 
11597
fi
 
11598
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
11599
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
11600
 
 
11601
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11602
      LDFLAGS="$LDFLAGS $link_static_flag"
 
11603
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
11604
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
11605
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
11606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11607
else
 
11608
          if test "$cross_compiling" = yes; then :
 
11609
  lt_cv_dlopen_self_static=cross
 
11610
else
 
11611
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11612
  lt_status=$lt_dlunknown
 
11613
  cat > conftest.$ac_ext <<EOF
 
11614
#line __oline__ "configure"
 
11615
#include "confdefs.h"
 
11616
 
 
11617
#if HAVE_DLFCN_H
 
11618
#include <dlfcn.h>
 
11619
#endif
 
11620
 
 
11621
#include <stdio.h>
 
11622
 
 
11623
#ifdef RTLD_GLOBAL
 
11624
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11625
#else
 
11626
#  ifdef DL_GLOBAL
 
11627
#    define LT_DLGLOBAL         DL_GLOBAL
 
11628
#  else
 
11629
#    define LT_DLGLOBAL         0
 
11630
#  endif
 
11631
#endif
 
11632
 
 
11633
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11634
   find out it does not work in some platform. */
 
11635
#ifndef LT_DLLAZY_OR_NOW
 
11636
#  ifdef RTLD_LAZY
 
11637
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11638
#  else
 
11639
#    ifdef DL_LAZY
 
11640
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11641
#    else
 
11642
#      ifdef RTLD_NOW
 
11643
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11644
#      else
 
11645
#        ifdef DL_NOW
 
11646
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11647
#        else
 
11648
#          define LT_DLLAZY_OR_NOW      0
 
11649
#        endif
 
11650
#      endif
 
11651
#    endif
 
11652
#  endif
 
11653
#endif
 
11654
 
 
11655
#ifdef __cplusplus
 
11656
extern "C" void exit (int);
 
11657
#endif
 
11658
 
 
11659
void fnord() { int i=42;}
 
11660
int main ()
 
11661
{
 
11662
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11663
  int status = $lt_dlunknown;
 
11664
 
 
11665
  if (self)
 
11666
    {
 
11667
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11668
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11669
      /* dlclose (self); */
 
11670
    }
 
11671
 
 
11672
    exit (status);
 
11673
}
 
11674
EOF
 
11675
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11676
  (eval $ac_link) 2>&5
 
11677
  ac_status=$?
 
11678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11679
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11680
    (./conftest; exit; ) 2>/dev/null
 
11681
    lt_status=$?
 
11682
    case x$lt_status in
 
11683
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11684
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11685
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
11686
    esac
 
11687
  else :
 
11688
    # compilation failed
 
11689
    lt_cv_dlopen_self_static=no
 
11690
  fi
 
11691
fi
 
11692
rm -fr conftest*
 
11693
 
 
11694
      
 
11695
fi
 
11696
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
11697
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
11698
    fi
 
11699
 
 
11700
    CPPFLAGS="$save_CPPFLAGS"
 
11701
    LDFLAGS="$save_LDFLAGS"
 
11702
    LIBS="$save_LIBS"
 
11703
    ;;
 
11704
  esac
 
11705
 
 
11706
  case $lt_cv_dlopen_self in
 
11707
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11708
  *) enable_dlopen_self=unknown ;;
 
11709
  esac
 
11710
 
 
11711
  case $lt_cv_dlopen_self_static in
 
11712
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11713
  *) enable_dlopen_self_static=unknown ;;
 
11714
  esac
 
11715
fi
 
11716
 
 
11717
 
 
11718
# Report which librarie types wil actually be built
 
11719
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
11720
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
11721
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
11722
echo "${ECHO_T}$can_build_shared" >&6
 
11723
 
 
11724
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
11725
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
11726
test "$can_build_shared" = "no" && enable_shared=no
 
11727
 
 
11728
# On AIX, shared libraries and static libraries use the same namespace, and
 
11729
# are all built from PIC.
 
11730
case "$host_os" in
 
11731
aix3*)
 
11732
  test "$enable_shared" = yes && enable_static=no
 
11733
  if test -n "$RANLIB"; then
 
11734
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11735
    postinstall_cmds='$RANLIB $lib'
 
11736
  fi
 
11737
  ;;
 
11738
 
 
11739
aix4* | aix5*)
 
11740
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11741
    test "$enable_shared" = yes && enable_static=no
 
11742
  fi
 
11743
  ;;
 
11744
  darwin* | rhapsody*)
 
11745
  if test "$GCC" = yes; then
 
11746
    archive_cmds_need_lc=no
 
11747
    case "$host_os" in
 
11748
    rhapsody* | darwin1.[012])
 
11749
      allow_undefined_flag='-undefined suppress'
 
11750
      ;;
 
11751
    *) # Darwin 1.3 on
 
11752
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11753
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
11754
      else
 
11755
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
11756
          10.[012])
 
11757
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
11758
            ;;
 
11759
          10.*)
 
11760
            allow_undefined_flag='-undefined dynamic_lookup'
 
11761
            ;;
 
11762
        esac
 
11763
      fi
 
11764
      ;;
 
11765
    esac
 
11766
    output_verbose_link_cmd='echo'
 
11767
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
11768
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11769
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11770
    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}'
 
11771
    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}'
 
11772
    hardcode_direct=no
 
11773
    hardcode_automatic=yes
 
11774
    hardcode_shlibpath_var=unsupported
 
11775
    whole_archive_flag_spec='-all_load $convenience'
 
11776
    link_all_deplibs=yes
 
11777
  else
 
11778
    ld_shlibs=no
 
11779
  fi
 
11780
    ;;
 
11781
esac
 
11782
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
11783
echo "${ECHO_T}$enable_shared" >&6
 
11784
 
 
11785
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
11786
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
11787
# Make sure either enable_shared or enable_static is yes.
 
11788
test "$enable_shared" = yes || enable_static=yes
 
11789
echo "$as_me:$LINENO: result: $enable_static" >&5
 
11790
echo "${ECHO_T}$enable_static" >&6
 
11791
 
 
11792
# The else clause should only fire when bootstrapping the
 
11793
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
11794
# with your package, and you will get complaints that there are
 
11795
# no rules to generate ltmain.sh.
 
11796
if test -f "$ltmain"; then
 
11797
  # See if we are running on zsh, and set the options which allow our commands through
 
11798
  # without removal of \ escapes.
 
11799
  if test -n "${ZSH_VERSION+set}" ; then
 
11800
    setopt NO_GLOB_SUBST
 
11801
  fi
 
11802
  # Now quote all the things that may contain metacharacters while being
 
11803
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
11804
  # variables and quote the copies for generation of the libtool script.
 
11805
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
11806
    SED SHELL STRIP \
 
11807
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
11808
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
11809
    deplibs_check_method reload_flag reload_cmds need_locks \
 
11810
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
11811
    lt_cv_sys_global_symbol_to_c_name_address \
 
11812
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
11813
    old_postinstall_cmds old_postuninstall_cmds \
 
11814
    compiler \
 
11815
    CC \
 
11816
    LD \
 
11817
    lt_prog_compiler_wl \
 
11818
    lt_prog_compiler_pic \
 
11819
    lt_prog_compiler_static \
 
11820
    lt_prog_compiler_no_builtin_flag \
 
11821
    export_dynamic_flag_spec \
 
11822
    thread_safe_flag_spec \
 
11823
    whole_archive_flag_spec \
 
11824
    enable_shared_with_static_runtimes \
 
11825
    old_archive_cmds \
 
11826
    old_archive_from_new_cmds \
 
11827
    predep_objects \
 
11828
    postdep_objects \
 
11829
    predeps \
 
11830
    postdeps \
 
11831
    compiler_lib_search_path \
 
11832
    archive_cmds \
 
11833
    archive_expsym_cmds \
 
11834
    postinstall_cmds \
 
11835
    postuninstall_cmds \
 
11836
    old_archive_from_expsyms_cmds \
 
11837
    allow_undefined_flag \
 
11838
    no_undefined_flag \
 
11839
    export_symbols_cmds \
 
11840
    hardcode_libdir_flag_spec \
 
11841
    hardcode_libdir_flag_spec_ld \
 
11842
    hardcode_libdir_separator \
 
11843
    hardcode_automatic \
 
11844
    module_cmds \
 
11845
    module_expsym_cmds \
 
11846
    lt_cv_prog_compiler_c_o \
 
11847
    exclude_expsyms \
 
11848
    include_expsyms; do
 
11849
 
 
11850
    case $var in
 
11851
    old_archive_cmds | \
 
11852
    old_archive_from_new_cmds | \
 
11853
    archive_cmds | \
 
11854
    archive_expsym_cmds | \
 
11855
    module_cmds | \
 
11856
    module_expsym_cmds | \
 
11857
    old_archive_from_expsyms_cmds | \
 
11858
    export_symbols_cmds | \
 
11859
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11860
    postinstall_cmds | postuninstall_cmds | \
 
11861
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11862
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11863
      # Double-quote double-evaled strings.
 
11864
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11865
      ;;
 
11866
    *)
 
11867
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11868
      ;;
 
11869
    esac
 
11870
  done
 
11871
 
 
11872
  case $lt_echo in
 
11873
  *'\$0 --fallback-echo"')
 
11874
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11875
    ;;
 
11876
  esac
 
11877
 
 
11878
cfgfile="${ofile}T"
 
11879
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11880
  $rm -f "$cfgfile"
 
11881
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
11882
echo "$as_me: creating $ofile" >&6;}
 
11883
 
 
11884
  cat <<__EOF__ >> "$cfgfile"
 
11885
#! $SHELL
 
11886
 
 
11887
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11888
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11889
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11890
#
 
11891
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
11892
# Free Software Foundation, Inc.
 
11893
#
 
11894
# This file is part of GNU Libtool:
 
11895
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11896
#
 
11897
# This program is free software; you can redistribute it and/or modify
 
11898
# it under the terms of the GNU General Public License as published by
 
11899
# the Free Software Foundation; either version 2 of the License, or
 
11900
# (at your option) any later version.
 
11901
#
 
11902
# This program is distributed in the hope that it will be useful, but
 
11903
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11904
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11905
# General Public License for more details.
 
11906
#
 
11907
# You should have received a copy of the GNU General Public License
 
11908
# along with this program; if not, write to the Free Software
 
11909
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
11910
#
 
11911
# As a special exception to the GNU General Public License, if you
 
11912
# distribute this file as part of a program that contains a
 
11913
# configuration script generated by Autoconf, you may include it under
 
11914
# the same distribution terms that you use for the rest of that program.
 
11915
 
 
11916
# A sed program that does not truncate output.
 
11917
SED=$lt_SED
 
11918
 
 
11919
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11920
Xsed="$SED -e s/^X//"
 
11921
 
 
11922
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11923
# if CDPATH is set.
 
11924
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
11925
 
 
11926
# The names of the tagged configurations supported by this script.
 
11927
available_tags=
 
11928
 
 
11929
# ### BEGIN LIBTOOL CONFIG
 
11930
 
 
11931
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11932
 
 
11933
# Shell to use when invoking shell scripts.
 
11934
SHELL=$lt_SHELL
 
11935
 
 
11936
# Whether or not to build shared libraries.
 
11937
build_libtool_libs=$enable_shared
 
11938
 
 
11939
# Whether or not to build static libraries.
 
11940
build_old_libs=$enable_static
 
11941
 
 
11942
# Whether or not to add -lc for building shared libraries.
 
11943
build_libtool_need_lc=$archive_cmds_need_lc
 
11944
 
 
11945
# Whether or not to disallow shared libs when runtime libs are static
 
11946
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11947
 
 
11948
# Whether or not to optimize for fast installation.
 
11949
fast_install=$enable_fast_install
 
11950
 
 
11951
# The host system.
 
11952
host_alias=$host_alias
 
11953
host=$host
 
11954
 
 
11955
# An echo program that does not interpret backslashes.
 
11956
echo=$lt_echo
 
11957
 
 
11958
# The archiver.
 
11959
AR=$lt_AR
 
11960
AR_FLAGS=$lt_AR_FLAGS
 
11961
 
 
11962
# A C compiler.
 
11963
LTCC=$lt_LTCC
 
11964
 
 
11965
# A language-specific compiler.
 
11966
CC=$lt_compiler
 
11967
 
 
11968
# Is the compiler the GNU C compiler?
 
11969
with_gcc=$GCC
 
11970
 
 
11971
# An ERE matcher.
 
11972
EGREP=$lt_EGREP
 
11973
 
 
11974
# The linker used to build libraries.
 
11975
LD=$lt_LD
 
11976
 
 
11977
# Whether we need hard or soft links.
 
11978
LN_S=$lt_LN_S
 
11979
 
 
11980
# A BSD-compatible nm program.
 
11981
NM=$lt_NM
 
11982
 
 
11983
# A symbol stripping program
 
11984
STRIP=$lt_STRIP
 
11985
 
 
11986
# Used to examine libraries when file_magic_cmd begins "file"
 
11987
MAGIC_CMD=$MAGIC_CMD
 
11988
 
 
11989
# Used on cygwin: DLL creation program.
 
11990
DLLTOOL="$DLLTOOL"
 
11991
 
 
11992
# Used on cygwin: object dumper.
 
11993
OBJDUMP="$OBJDUMP"
 
11994
 
 
11995
# Used on cygwin: assembler.
 
11996
AS="$AS"
 
11997
 
 
11998
# The name of the directory that contains temporary libtool files.
 
11999
objdir=$objdir
 
12000
 
 
12001
# How to create reloadable object files.
 
12002
reload_flag=$lt_reload_flag
 
12003
reload_cmds=$lt_reload_cmds
 
12004
 
 
12005
# How to pass a linker flag through the compiler.
 
12006
wl=$lt_lt_prog_compiler_wl
 
12007
 
 
12008
# Object file suffix (normally "o").
 
12009
objext="$ac_objext"
 
12010
 
 
12011
# Old archive suffix (normally "a").
 
12012
libext="$libext"
 
12013
 
 
12014
# Shared library suffix (normally ".so").
 
12015
shrext_cmds='$shrext_cmds'
 
12016
 
 
12017
# Executable file suffix (normally "").
 
12018
exeext="$exeext"
 
12019
 
 
12020
# Additional compiler flags for building library objects.
 
12021
pic_flag=$lt_lt_prog_compiler_pic
 
12022
pic_mode=$pic_mode
 
12023
 
 
12024
# What is the maximum length of a command?
 
12025
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12026
 
 
12027
# Does compiler simultaneously support -c and -o options?
 
12028
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
12029
 
 
12030
# Must we lock files when doing compilation ?
 
12031
need_locks=$lt_need_locks
 
12032
 
 
12033
# Do we need the lib prefix for modules?
 
12034
need_lib_prefix=$need_lib_prefix
 
12035
 
 
12036
# Do we need a version for libraries?
 
12037
need_version=$need_version
 
12038
 
 
12039
# Whether dlopen is supported.
 
12040
dlopen_support=$enable_dlopen
 
12041
 
 
12042
# Whether dlopen of programs is supported.
 
12043
dlopen_self=$enable_dlopen_self
 
12044
 
 
12045
# Whether dlopen of statically linked programs is supported.
 
12046
dlopen_self_static=$enable_dlopen_self_static
 
12047
 
 
12048
# Compiler flag to prevent dynamic linking.
 
12049
link_static_flag=$lt_lt_prog_compiler_static
 
12050
 
 
12051
# Compiler flag to turn off builtin functions.
 
12052
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
12053
 
 
12054
# Compiler flag to allow reflexive dlopens.
 
12055
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
12056
 
 
12057
# Compiler flag to generate shared objects directly from archives.
 
12058
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
12059
 
 
12060
# Compiler flag to generate thread-safe objects.
 
12061
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
12062
 
 
12063
# Library versioning type.
 
12064
version_type=$version_type
 
12065
 
 
12066
# Format of library name prefix.
 
12067
libname_spec=$lt_libname_spec
 
12068
 
 
12069
# List of archive names.  First name is the real one, the rest are links.
 
12070
# The last name is the one that the linker finds with -lNAME.
 
12071
library_names_spec=$lt_library_names_spec
 
12072
 
 
12073
# The coded name of the library, if different from the real name.
 
12074
soname_spec=$lt_soname_spec
 
12075
 
 
12076
# Commands used to build and install an old-style archive.
 
12077
RANLIB=$lt_RANLIB
 
12078
old_archive_cmds=$lt_old_archive_cmds
 
12079
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12080
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12081
 
 
12082
# Create an old-style archive from a shared archive.
 
12083
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
12084
 
 
12085
# Create a temporary old-style archive to link instead of a shared archive.
 
12086
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
12087
 
 
12088
# Commands used to build and install a shared archive.
 
12089
archive_cmds=$lt_archive_cmds
 
12090
archive_expsym_cmds=$lt_archive_expsym_cmds
 
12091
postinstall_cmds=$lt_postinstall_cmds
 
12092
postuninstall_cmds=$lt_postuninstall_cmds
 
12093
 
 
12094
# Commands used to build a loadable module (assumed same as above if empty)
 
12095
module_cmds=$lt_module_cmds
 
12096
module_expsym_cmds=$lt_module_expsym_cmds
 
12097
 
 
12098
# Commands to strip libraries.
 
12099
old_striplib=$lt_old_striplib
 
12100
striplib=$lt_striplib
 
12101
 
 
12102
# Dependencies to place before the objects being linked to create a
 
12103
# shared library.
 
12104
predep_objects=$lt_predep_objects
 
12105
 
 
12106
# Dependencies to place after the objects being linked to create a
 
12107
# shared library.
 
12108
postdep_objects=$lt_postdep_objects
 
12109
 
 
12110
# Dependencies to place before the objects being linked to create a
 
12111
# shared library.
 
12112
predeps=$lt_predeps
 
12113
 
 
12114
# Dependencies to place after the objects being linked to create a
 
12115
# shared library.
 
12116
postdeps=$lt_postdeps
 
12117
 
 
12118
# The library search path used internally by the compiler when linking
 
12119
# a shared library.
 
12120
compiler_lib_search_path=$lt_compiler_lib_search_path
 
12121
 
 
12122
# Method to check whether dependent libraries are shared objects.
 
12123
deplibs_check_method=$lt_deplibs_check_method
 
12124
 
 
12125
# Command to use when deplibs_check_method == file_magic.
 
12126
file_magic_cmd=$lt_file_magic_cmd
 
12127
 
 
12128
# Flag that allows shared libraries with undefined symbols to be built.
 
12129
allow_undefined_flag=$lt_allow_undefined_flag
 
12130
 
 
12131
# Flag that forces no undefined symbols.
 
12132
no_undefined_flag=$lt_no_undefined_flag
 
12133
 
 
12134
# Commands used to finish a libtool library installation in a directory.
 
12135
finish_cmds=$lt_finish_cmds
 
12136
 
 
12137
# Same as above, but a single script fragment to be evaled but not shown.
 
12138
finish_eval=$lt_finish_eval
 
12139
 
 
12140
# Take the output of nm and produce a listing of raw symbols and C names.
 
12141
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12142
 
 
12143
# Transform the output of nm in a proper C declaration
 
12144
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12145
 
 
12146
# Transform the output of nm in a C name address pair
 
12147
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12148
 
 
12149
# This is the shared library runtime path variable.
 
12150
runpath_var=$runpath_var
 
12151
 
 
12152
# This is the shared library path variable.
 
12153
shlibpath_var=$shlibpath_var
 
12154
 
 
12155
# Is shlibpath searched before the hard-coded library search path?
 
12156
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12157
 
 
12158
# How to hardcode a shared library path into an executable.
 
12159
hardcode_action=$hardcode_action
 
12160
 
 
12161
# Whether we should hardcode library paths into libraries.
 
12162
hardcode_into_libs=$hardcode_into_libs
 
12163
 
 
12164
# Flag to hardcode \$libdir into a binary during linking.
 
12165
# This must work even if \$libdir does not exist.
 
12166
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
12167
 
 
12168
# If ld is used when linking, flag to hardcode \$libdir into
 
12169
# a binary during linking. This must work even if \$libdir does
 
12170
# not exist.
 
12171
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
12172
 
 
12173
# Whether we need a single -rpath flag with a separated argument.
 
12174
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
12175
 
 
12176
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12177
# resulting binary.
 
12178
hardcode_direct=$hardcode_direct
 
12179
 
 
12180
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12181
# resulting binary.
 
12182
hardcode_minus_L=$hardcode_minus_L
 
12183
 
 
12184
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12185
# the resulting binary.
 
12186
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
12187
 
 
12188
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12189
# and all subsequent libraries and executables linked against it.
 
12190
hardcode_automatic=$hardcode_automatic
 
12191
 
 
12192
# Variables whose values should be saved in libtool wrapper scripts and
 
12193
# restored at relink time.
 
12194
variables_saved_for_relink="$variables_saved_for_relink"
 
12195
 
 
12196
# Whether libtool must link a program against all its dependency libraries.
 
12197
link_all_deplibs=$link_all_deplibs
 
12198
 
 
12199
# Compile-time system search path for libraries
 
12200
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12201
 
 
12202
# Run-time system search path for libraries
 
12203
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12204
 
 
12205
# Fix the shell variable \$srcfile for the compiler.
 
12206
fix_srcfile_path="$fix_srcfile_path"
 
12207
 
 
12208
# Set to yes if exported symbols are required.
 
12209
always_export_symbols=$always_export_symbols
 
12210
 
 
12211
# The commands to list exported symbols.
 
12212
export_symbols_cmds=$lt_export_symbols_cmds
 
12213
 
 
12214
# The commands to extract the exported symbol list from a shared archive.
 
12215
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12216
 
 
12217
# Symbols that should not be listed in the preloaded symbols.
 
12218
exclude_expsyms=$lt_exclude_expsyms
 
12219
 
 
12220
# Symbols that must always be exported.
 
12221
include_expsyms=$lt_include_expsyms
 
12222
 
 
12223
# ### END LIBTOOL CONFIG
 
12224
 
 
12225
__EOF__
 
12226
 
 
12227
 
 
12228
  case $host_os in
 
12229
  aix3*)
 
12230
    cat <<\EOF >> "$cfgfile"
 
12231
 
 
12232
# AIX sometimes has problems with the GCC collect2 program.  For some
 
12233
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
12234
# vanish in a puff of smoke.
 
12235
if test "X${COLLECT_NAMES+set}" != Xset; then
 
12236
  COLLECT_NAMES=
 
12237
  export COLLECT_NAMES
 
12238
fi
 
12239
EOF
 
12240
    ;;
 
12241
  esac
 
12242
 
 
12243
  # We use sed instead of cat because bash on DJGPP gets confused if
 
12244
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
12245
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
12246
  # is reportedly fixed, but why not run on old versions too?
 
12247
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
12248
 
 
12249
  mv -f "$cfgfile" "$ofile" || \
 
12250
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
12251
  chmod +x "$ofile"
 
12252
 
 
12253
else
 
12254
  # If there is no Makefile yet, we rely on a make rule to execute
 
12255
  # `config.status --recheck' to rerun these tests and create the
 
12256
  # libtool script then.
 
12257
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12258
  if test -f "$ltmain_in"; then
 
12259
    test -f Makefile && make "$ltmain"
 
12260
  fi
 
12261
fi
 
12262
 
 
12263
 
 
12264
ac_ext=c
 
12265
ac_cpp='$CPP $CPPFLAGS'
 
12266
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12267
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12268
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12269
 
 
12270
CC="$lt_save_CC"
 
12271
 
 
12272
 
 
12273
# Check whether --with-tags or --without-tags was given.
 
12274
if test "${with_tags+set}" = set; then
 
12275
  withval="$with_tags"
 
12276
  tagnames="$withval"
 
12277
fi; 
 
12278
 
 
12279
if test -f "$ltmain" && test -n "$tagnames"; then
 
12280
  if test ! -f "${ofile}"; then
 
12281
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
12282
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
12283
  fi
 
12284
 
 
12285
  if test -z "$LTCC"; then
 
12286
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
12287
    if test -z "$LTCC"; then
 
12288
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
12289
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
12290
    else
 
12291
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
12292
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
12293
    fi
 
12294
  fi
 
12295
 
 
12296
  # Extract list of available tagged configurations in $ofile.
 
12297
  # Note that this assumes the entire list is on one line.
 
12298
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
12299
 
 
12300
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
12301
  for tagname in $tagnames; do
 
12302
    IFS="$lt_save_ifs"
 
12303
    # Check whether tagname contains only valid characters
 
12304
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
12305
    "") ;;
 
12306
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
12307
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
12308
   { (exit 1); exit 1; }; }
 
12309
        ;;
 
12310
    esac
 
12311
 
 
12312
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
12313
    then
 
12314
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
12315
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
12316
   { (exit 1); exit 1; }; }
 
12317
    fi
 
12318
 
 
12319
    # Update the list of available tags.
 
12320
    if test -n "$tagname"; then
 
12321
      echo appending configuration tag \"$tagname\" to $ofile
 
12322
 
 
12323
      case $tagname in
 
12324
      CXX)
 
12325
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
12326
          ac_ext=cc
 
12327
ac_cpp='$CXXCPP $CPPFLAGS'
 
12328
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12329
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12330
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12331
 
 
12332
 
 
12333
 
 
12334
 
 
12335
archive_cmds_need_lc_CXX=no
 
12336
allow_undefined_flag_CXX=
 
12337
always_export_symbols_CXX=no
 
12338
archive_expsym_cmds_CXX=
 
12339
export_dynamic_flag_spec_CXX=
 
12340
hardcode_direct_CXX=no
 
12341
hardcode_libdir_flag_spec_CXX=
 
12342
hardcode_libdir_flag_spec_ld_CXX=
 
12343
hardcode_libdir_separator_CXX=
 
12344
hardcode_minus_L_CXX=no
 
12345
hardcode_automatic_CXX=no
 
12346
module_cmds_CXX=
 
12347
module_expsym_cmds_CXX=
 
12348
link_all_deplibs_CXX=unknown
 
12349
old_archive_cmds_CXX=$old_archive_cmds
 
12350
no_undefined_flag_CXX=
 
12351
whole_archive_flag_spec_CXX=
 
12352
enable_shared_with_static_runtimes_CXX=no
 
12353
 
 
12354
# Dependencies to place before and after the object being linked:
 
12355
predep_objects_CXX=
 
12356
postdep_objects_CXX=
 
12357
predeps_CXX=
 
12358
postdeps_CXX=
 
12359
compiler_lib_search_path_CXX=
 
12360
 
 
12361
# Source file extension for C++ test sources.
 
12362
ac_ext=cc
 
12363
 
 
12364
# Object file extension for compiled C++ test sources.
 
12365
objext=o
 
12366
objext_CXX=$objext
 
12367
 
 
12368
# Code to be used in simple compile tests
 
12369
lt_simple_compile_test_code="int some_variable = 0;\n"
 
12370
 
 
12371
# Code to be used in simple link tests
 
12372
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
12373
 
 
12374
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12375
 
 
12376
# If no C compiler was specified, use CC.
 
12377
LTCC=${LTCC-"$CC"}
 
12378
 
 
12379
# Allow CC to be a program name with arguments.
 
12380
compiler=$CC
 
12381
 
 
12382
 
 
12383
# Allow CC to be a program name with arguments.
 
12384
lt_save_CC=$CC
 
12385
lt_save_LD=$LD
 
12386
lt_save_GCC=$GCC
 
12387
GCC=$GXX
 
12388
lt_save_with_gnu_ld=$with_gnu_ld
 
12389
lt_save_path_LD=$lt_cv_path_LD
 
12390
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12391
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12392
else
 
12393
  unset lt_cv_prog_gnu_ld
 
12394
fi
 
12395
if test -n "${lt_cv_path_LDCXX+set}"; then
 
12396
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
12397
else
 
12398
  unset lt_cv_path_LD
 
12399
fi
 
12400
test -z "${LDCXX+set}" || LD=$LDCXX
 
12401
CC=${CXX-"c++"}
 
12402
compiler=$CC
 
12403
compiler_CXX=$CC
 
12404
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12405
 
 
12406
# We don't want -fno-exception wen compiling C++ code, so set the
 
12407
# no_builtin_flag separately
 
12408
if test "$GXX" = yes; then
 
12409
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12410
else
 
12411
  lt_prog_compiler_no_builtin_flag_CXX=
 
12412
fi
 
12413
 
 
12414
if test "$GXX" = yes; then
 
12415
  # Set up default GNU C++ configuration
 
12416
 
 
12417
  
 
12418
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
12419
if test "${with_gnu_ld+set}" = set; then
 
12420
  withval="$with_gnu_ld"
 
12421
  test "$withval" = no || with_gnu_ld=yes
 
12422
else
 
12423
  with_gnu_ld=no
 
12424
fi; 
 
12425
ac_prog=ld
 
12426
if test "$GCC" = yes; then
 
12427
  # Check if gcc -print-prog-name=ld gives a path.
 
12428
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
12429
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
12430
  case $host in
 
12431
  *-*-mingw*)
 
12432
    # gcc leaves a trailing carriage return which upsets mingw
 
12433
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12434
  *)
 
12435
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12436
  esac
 
12437
  case $ac_prog in
 
12438
    # Accept absolute paths.
 
12439
    [\\/]* | ?:[\\/]*)
 
12440
      re_direlt='/[^/][^/]*/\.\./'
 
12441
      # Canonicalize the pathname of ld
 
12442
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
12443
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
12444
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
12445
      done
 
12446
      test -z "$LD" && LD="$ac_prog"
 
12447
      ;;
 
12448
  "")
 
12449
    # If it fails, then pretend we aren't using GCC.
 
12450
    ac_prog=ld
 
12451
    ;;
 
12452
  *)
 
12453
    # If it is relative, then search for the first ld in PATH.
 
12454
    with_gnu_ld=unknown
 
12455
    ;;
 
12456
  esac
 
12457
elif test "$with_gnu_ld" = yes; then
 
12458
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
12459
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
12460
else
 
12461
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
12462
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
12463
fi
 
12464
if test "${lt_cv_path_LD+set}" = set; then
 
12465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12466
else
 
12467
  if test -z "$LD"; then
 
12468
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12469
  for ac_dir in $PATH; do
 
12470
    IFS="$lt_save_ifs"
 
12471
    test -z "$ac_dir" && ac_dir=.
 
12472
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12473
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12474
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12475
      # but apparently some GNU ld's only accept -v.
 
12476
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12477
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12478
      *GNU* | *'with BFD'*)
 
12479
        test "$with_gnu_ld" != no && break
 
12480
        ;;
 
12481
      *)
 
12482
        test "$with_gnu_ld" != yes && break
 
12483
        ;;
 
12484
      esac
 
12485
    fi
 
12486
  done
 
12487
  IFS="$lt_save_ifs"
 
12488
else
 
12489
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12490
fi
 
12491
fi
 
12492
 
 
12493
LD="$lt_cv_path_LD"
 
12494
if test -n "$LD"; then
 
12495
  echo "$as_me:$LINENO: result: $LD" >&5
 
12496
echo "${ECHO_T}$LD" >&6
 
12497
else
 
12498
  echo "$as_me:$LINENO: result: no" >&5
 
12499
echo "${ECHO_T}no" >&6
 
12500
fi
 
12501
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
12502
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
12503
   { (exit 1); exit 1; }; }
 
12504
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
12505
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
12506
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
12507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12508
else
 
12509
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
12510
case `$LD -v 2>&1 </dev/null` in
 
12511
*GNU* | *'with BFD'*)
 
12512
  lt_cv_prog_gnu_ld=yes
 
12513
  ;;
 
12514
*)
 
12515
  lt_cv_prog_gnu_ld=no
 
12516
  ;;
 
12517
esac
 
12518
fi
 
12519
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
12520
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
12521
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12522
 
 
12523
 
 
12524
 
 
12525
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12526
  # archiving commands below assume that GNU ld is being used.
 
12527
  if test "$with_gnu_ld" = yes; then
 
12528
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12529
    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'
 
12530
 
 
12531
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12532
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12533
 
 
12534
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
12535
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12536
    #     investigate it a little bit more. (MM)
 
12537
    wlarc='${wl}'
 
12538
 
 
12539
    # ancient GNU ld didn't support --whole-archive et. al.
 
12540
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
12541
        grep 'no-whole-archive' > /dev/null; then
 
12542
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12543
    else
 
12544
      whole_archive_flag_spec_CXX=
 
12545
    fi
 
12546
  else
 
12547
    with_gnu_ld=no
 
12548
    wlarc=
 
12549
 
 
12550
    # A generic and very simple default shared library creation
 
12551
    # command for GNU C++ for the case where it uses the native
 
12552
    # linker, instead of GNU ld.  If possible, this setting should
 
12553
    # overridden to take advantage of the native linker features on
 
12554
    # the platform it is being used on.
 
12555
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12556
  fi
 
12557
 
 
12558
  # Commands to make compiler produce verbose output that lists
 
12559
  # what "hidden" libraries, object files and flags are used when
 
12560
  # linking a shared library.
 
12561
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12562
 
 
12563
else
 
12564
  GXX=no
 
12565
  with_gnu_ld=no
 
12566
  wlarc=
 
12567
fi
 
12568
 
 
12569
# PORTME: fill in a description of your system's C++ link characteristics
 
12570
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12571
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12572
ld_shlibs_CXX=yes
 
12573
case $host_os in
 
12574
  aix3*)
 
12575
    # FIXME: insert proper C++ library support
 
12576
    ld_shlibs_CXX=no
 
12577
    ;;
 
12578
  aix4* | aix5*)
 
12579
    if test "$host_cpu" = ia64; then
 
12580
      # On IA64, the linker does run time linking by default, so we don't
 
12581
      # have to do anything special.
 
12582
      aix_use_runtimelinking=no
 
12583
      exp_sym_flag='-Bexport'
 
12584
      no_entry_flag=""
 
12585
    else
 
12586
      aix_use_runtimelinking=no
 
12587
 
 
12588
      # Test if we are trying to use run time linking or normal
 
12589
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12590
      # need to do runtime linking.
 
12591
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
12592
        for ld_flag in $LDFLAGS; do
 
12593
          case $ld_flag in
 
12594
          *-brtl*)
 
12595
            aix_use_runtimelinking=yes
 
12596
            break
 
12597
            ;;
 
12598
          esac
 
12599
        done
 
12600
      esac
 
12601
 
 
12602
      exp_sym_flag='-bexport'
 
12603
      no_entry_flag='-bnoentry'
 
12604
    fi
 
12605
 
 
12606
    # When large executables or shared objects are built, AIX ld can
 
12607
    # have problems creating the table of contents.  If linking a library
 
12608
    # or program results in "error TOC overflow" add -mminimal-toc to
 
12609
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12610
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12611
 
 
12612
    archive_cmds_CXX=''
 
12613
    hardcode_direct_CXX=yes
 
12614
    hardcode_libdir_separator_CXX=':'
 
12615
    link_all_deplibs_CXX=yes
 
12616
 
 
12617
    if test "$GXX" = yes; then
 
12618
      case $host_os in aix4.012|aix4.012.*)
 
12619
      # We only want to do this on AIX 4.2 and lower, the check
 
12620
      # below for broken collect2 doesn't work under 4.3+
 
12621
        collect2name=`${CC} -print-prog-name=collect2`
 
12622
        if test -f "$collect2name" && \
 
12623
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
12624
        then
 
12625
          # We have reworked collect2
 
12626
          hardcode_direct_CXX=yes
 
12627
        else
 
12628
          # We have old collect2
 
12629
          hardcode_direct_CXX=unsupported
 
12630
          # It fails to find uninstalled libraries when the uninstalled
 
12631
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
12632
          # to unsupported forces relinking
 
12633
          hardcode_minus_L_CXX=yes
 
12634
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12635
          hardcode_libdir_separator_CXX=
 
12636
        fi
 
12637
      esac
 
12638
      shared_flag='-shared'
 
12639
    else
 
12640
      # not using gcc
 
12641
      if test "$host_cpu" = ia64; then
 
12642
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12643
        # chokes on -Wl,-G. The following line is correct:
 
12644
        shared_flag='-G'
 
12645
      else
 
12646
        if test "$aix_use_runtimelinking" = yes; then
 
12647
          shared_flag='${wl}-G'
 
12648
        else
 
12649
          shared_flag='${wl}-bM:SRE'
 
12650
        fi
 
12651
      fi
 
12652
    fi
 
12653
 
 
12654
    # It seems that -bexpall does not export symbols beginning with
 
12655
    # underscore (_), so it is better to generate a list of symbols to export.
 
12656
    always_export_symbols_CXX=yes
 
12657
    if test "$aix_use_runtimelinking" = yes; then
 
12658
      # Warning - without using the other runtime loading flags (-brtl),
 
12659
      # -berok will link without error, but may produce a broken library.
 
12660
      allow_undefined_flag_CXX='-berok'
 
12661
      # Determine the default libpath from the value encoded in an empty executable.
 
12662
      cat >conftest.$ac_ext <<_ACEOF
 
12663
/* confdefs.h.  */
 
12664
_ACEOF
 
12665
cat confdefs.h >>conftest.$ac_ext
 
12666
cat >>conftest.$ac_ext <<_ACEOF
 
12667
/* end confdefs.h.  */
 
12668
 
 
12669
int
 
12670
main ()
 
12671
{
 
12672
 
 
12673
  ;
 
12674
  return 0;
 
12675
}
 
12676
_ACEOF
 
12677
rm -f conftest.$ac_objext conftest$ac_exeext
 
12678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12679
  (eval $ac_link) 2>conftest.er1
 
12680
  ac_status=$?
 
12681
  grep -v '^ *+' conftest.er1 >conftest.err
 
12682
  rm -f conftest.er1
 
12683
  cat conftest.err >&5
 
12684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12685
  (exit $ac_status); } &&
 
12686
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12688
  (eval $ac_try) 2>&5
 
12689
  ac_status=$?
 
12690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12691
  (exit $ac_status); }; } &&
 
12692
         { ac_try='test -s conftest$ac_exeext'
 
12693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12694
  (eval $ac_try) 2>&5
 
12695
  ac_status=$?
 
12696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12697
  (exit $ac_status); }; }; then
 
12698
  
 
12699
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12700
}'`
 
12701
# Check for a 64-bit object if we didn't find anything.
 
12702
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; }
 
12703
}'`; fi
 
12704
else
 
12705
  echo "$as_me: failed program was:" >&5
 
12706
sed 's/^/| /' conftest.$ac_ext >&5
 
12707
 
 
12708
fi
 
12709
rm -f conftest.err conftest.$ac_objext \
 
12710
      conftest$ac_exeext conftest.$ac_ext
 
12711
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12712
 
 
12713
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12714
 
 
12715
      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"
 
12716
     else
 
12717
      if test "$host_cpu" = ia64; then
 
12718
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12719
        allow_undefined_flag_CXX="-z nodefs"
 
12720
        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"
 
12721
      else
 
12722
        # Determine the default libpath from the value encoded in an empty executable.
 
12723
        cat >conftest.$ac_ext <<_ACEOF
 
12724
/* confdefs.h.  */
 
12725
_ACEOF
 
12726
cat confdefs.h >>conftest.$ac_ext
 
12727
cat >>conftest.$ac_ext <<_ACEOF
 
12728
/* end confdefs.h.  */
 
12729
 
 
12730
int
 
12731
main ()
 
12732
{
 
12733
 
 
12734
  ;
 
12735
  return 0;
 
12736
}
 
12737
_ACEOF
 
12738
rm -f conftest.$ac_objext conftest$ac_exeext
 
12739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12740
  (eval $ac_link) 2>conftest.er1
 
12741
  ac_status=$?
 
12742
  grep -v '^ *+' conftest.er1 >conftest.err
 
12743
  rm -f conftest.er1
 
12744
  cat conftest.err >&5
 
12745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12746
  (exit $ac_status); } &&
 
12747
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12749
  (eval $ac_try) 2>&5
 
12750
  ac_status=$?
 
12751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12752
  (exit $ac_status); }; } &&
 
12753
         { ac_try='test -s conftest$ac_exeext'
 
12754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12755
  (eval $ac_try) 2>&5
 
12756
  ac_status=$?
 
12757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12758
  (exit $ac_status); }; }; then
 
12759
  
 
12760
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12761
}'`
 
12762
# Check for a 64-bit object if we didn't find anything.
 
12763
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; }
 
12764
}'`; fi
 
12765
else
 
12766
  echo "$as_me: failed program was:" >&5
 
12767
sed 's/^/| /' conftest.$ac_ext >&5
 
12768
 
 
12769
fi
 
12770
rm -f conftest.err conftest.$ac_objext \
 
12771
      conftest$ac_exeext conftest.$ac_ext
 
12772
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12773
 
 
12774
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12775
        # Warning - without using the other run time loading flags,
 
12776
        # -berok will link without error, but may produce a broken library.
 
12777
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
12778
        allow_undefined_flag_CXX=' ${wl}-berok'
 
12779
        # -bexpall does not export symbols beginning with underscore (_)
 
12780
        always_export_symbols_CXX=yes
 
12781
        # Exported symbols can be pulled into shared objects from archives
 
12782
        whole_archive_flag_spec_CXX=' '
 
12783
        archive_cmds_need_lc_CXX=yes
 
12784
        # This is similar to how AIX traditionally builds it's shared libraries.
 
12785
        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'
 
12786
      fi
 
12787
    fi
 
12788
    ;;
 
12789
  chorus*)
 
12790
    case $cc_basename in
 
12791
      *)
 
12792
        # FIXME: insert proper C++ library support
 
12793
        ld_shlibs_CXX=no
 
12794
        ;;
 
12795
    esac
 
12796
    ;;
 
12797
 
 
12798
  cygwin* | mingw* | pw32*)
 
12799
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12800
    # as there is no search path for DLLs.
 
12801
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12802
    allow_undefined_flag_CXX=unsupported
 
12803
    always_export_symbols_CXX=no
 
12804
    enable_shared_with_static_runtimes_CXX=yes
 
12805
 
 
12806
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12807
      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'
 
12808
      # If the export-symbols file already is a .def file (1st line
 
12809
      # is EXPORTS), use it as is; otherwise, prepend...
 
12810
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12811
        cp $export_symbols $output_objdir/$soname.def;
 
12812
      else
 
12813
        echo EXPORTS > $output_objdir/$soname.def;
 
12814
        cat $export_symbols >> $output_objdir/$soname.def;
 
12815
      fi~
 
12816
      $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'
 
12817
    else
 
12818
      ld_shlibs_CXX=no
 
12819
    fi
 
12820
  ;;
 
12821
 
 
12822
  darwin* | rhapsody*)
 
12823
  if test "$GXX" = yes; then
 
12824
    archive_cmds_need_lc_CXX=no
 
12825
    case "$host_os" in
 
12826
    rhapsody* | darwin1.[012])
 
12827
      allow_undefined_flag_CXX='-undefined suppress'
 
12828
      ;;
 
12829
    *) # Darwin 1.3 on
 
12830
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
12831
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
12832
      else
 
12833
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
12834
          10.[012])
 
12835
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
12836
            ;;
 
12837
          10.*)
 
12838
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
12839
            ;;
 
12840
        esac
 
12841
      fi
 
12842
      ;;
 
12843
    esac
 
12844
    lt_int_apple_cc_single_mod=no
 
12845
    output_verbose_link_cmd='echo'
 
12846
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
12847
      lt_int_apple_cc_single_mod=yes
 
12848
    fi
 
12849
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12850
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12851
    else
 
12852
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12853
    fi
 
12854
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12855
 
 
12856
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
12857
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12858
      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}'
 
12859
    else
 
12860
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12861
    fi
 
12862
    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}'
 
12863
    hardcode_direct_CXX=no
 
12864
    hardcode_automatic_CXX=yes
 
12865
    hardcode_shlibpath_var_CXX=unsupported
 
12866
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
12867
    link_all_deplibs_CXX=yes
 
12868
  else
 
12869
    ld_shlibs_CXX=no
 
12870
  fi
 
12871
    ;;
 
12872
 
 
12873
  dgux*)
 
12874
    case $cc_basename in
 
12875
      ec++)
 
12876
        # FIXME: insert proper C++ library support
 
12877
        ld_shlibs_CXX=no
 
12878
        ;;
 
12879
      ghcx)
 
12880
        # Green Hills C++ Compiler
 
12881
        # FIXME: insert proper C++ library support
 
12882
        ld_shlibs_CXX=no
 
12883
        ;;
 
12884
      *)
 
12885
        # FIXME: insert proper C++ library support
 
12886
        ld_shlibs_CXX=no
 
12887
        ;;
 
12888
    esac
 
12889
    ;;
 
12890
  freebsd12*)
 
12891
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12892
    ld_shlibs_CXX=no
 
12893
    ;;
 
12894
  freebsd-elf*)
 
12895
    archive_cmds_need_lc_CXX=no
 
12896
    ;;
 
12897
  freebsd* | kfreebsd*-gnu)
 
12898
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12899
    # conventions
 
12900
    ld_shlibs_CXX=yes
 
12901
    ;;
 
12902
  gnu*)
 
12903
    ;;
 
12904
  hpux9*)
 
12905
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12906
    hardcode_libdir_separator_CXX=:
 
12907
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12908
    hardcode_direct_CXX=yes
 
12909
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12910
                                # but as the default
 
12911
                                # location of the library.
 
12912
 
 
12913
    case $cc_basename in
 
12914
    CC)
 
12915
      # FIXME: insert proper C++ library support
 
12916
      ld_shlibs_CXX=no
 
12917
      ;;
 
12918
    aCC)
 
12919
      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'
 
12920
      # Commands to make compiler produce verbose output that lists
 
12921
      # what "hidden" libraries, object files and flags are used when
 
12922
      # linking a shared library.
 
12923
      #
 
12924
      # There doesn't appear to be a way to prevent this compiler from
 
12925
      # explicitly linking system object files so we need to strip them
 
12926
      # from the output so that they don't get included in the library
 
12927
      # dependencies.
 
12928
      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'
 
12929
      ;;
 
12930
    *)
 
12931
      if test "$GXX" = yes; then
 
12932
        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'
 
12933
      else
 
12934
        # FIXME: insert proper C++ library support
 
12935
        ld_shlibs_CXX=no
 
12936
      fi
 
12937
      ;;
 
12938
    esac
 
12939
    ;;
 
12940
  hpux10*|hpux11*)
 
12941
    if test $with_gnu_ld = no; then
 
12942
      case "$host_cpu" in
 
12943
      hppa*64*)
 
12944
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12945
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
12946
        hardcode_libdir_separator_CXX=:
 
12947
        ;;
 
12948
      ia64*)
 
12949
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12950
        ;;
 
12951
      *)
 
12952
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12953
        hardcode_libdir_separator_CXX=:
 
12954
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12955
        ;;
 
12956
      esac
 
12957
    fi
 
12958
    case "$host_cpu" in
 
12959
    hppa*64*)
 
12960
      hardcode_direct_CXX=no
 
12961
      hardcode_shlibpath_var_CXX=no
 
12962
      ;;
 
12963
    ia64*)
 
12964
      hardcode_direct_CXX=no
 
12965
      hardcode_shlibpath_var_CXX=no
 
12966
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12967
                                              # but as the default
 
12968
                                              # location of the library.
 
12969
      ;;
 
12970
    *)
 
12971
      hardcode_direct_CXX=yes
 
12972
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12973
                                              # but as the default
 
12974
                                              # location of the library.
 
12975
      ;;
 
12976
    esac
 
12977
 
 
12978
    case $cc_basename in
 
12979
      CC)
 
12980
        # FIXME: insert proper C++ library support
 
12981
        ld_shlibs_CXX=no
 
12982
        ;;
 
12983
      aCC)
 
12984
        case "$host_cpu" in
 
12985
        hppa*64*|ia64*)
 
12986
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12987
          ;;
 
12988
        *)
 
12989
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12990
          ;;
 
12991
        esac
 
12992
        # Commands to make compiler produce verbose output that lists
 
12993
        # what "hidden" libraries, object files and flags are used when
 
12994
        # linking a shared library.
 
12995
        #
 
12996
        # There doesn't appear to be a way to prevent this compiler from
 
12997
        # explicitly linking system object files so we need to strip them
 
12998
        # from the output so that they don't get included in the library
 
12999
        # dependencies.
 
13000
        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'
 
13001
        ;;
 
13002
      *)
 
13003
        if test "$GXX" = yes; then
 
13004
          if test $with_gnu_ld = no; then
 
13005
            case "$host_cpu" in
 
13006
            ia64*|hppa*64*)
 
13007
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
13008
              ;;
 
13009
            *)
 
13010
              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'
 
13011
              ;;
 
13012
            esac
 
13013
          fi
 
13014
        else
 
13015
          # FIXME: insert proper C++ library support
 
13016
          ld_shlibs_CXX=no
 
13017
        fi
 
13018
        ;;
 
13019
    esac
 
13020
    ;;
 
13021
  irix5* | irix6*)
 
13022
    case $cc_basename in
 
13023
      CC)
 
13024
        # SGI C++
 
13025
        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'
 
13026
 
 
13027
        # Archives containing C++ object files must be created using
 
13028
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13029
        # necessary to make sure instantiated templates are included
 
13030
        # in the archive.
 
13031
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13032
        ;;
 
13033
      *)
 
13034
        if test "$GXX" = yes; then
 
13035
          if test "$with_gnu_ld" = no; then
 
13036
            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'
 
13037
          else
 
13038
            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'
 
13039
          fi
 
13040
        fi
 
13041
        link_all_deplibs_CXX=yes
 
13042
        ;;
 
13043
    esac
 
13044
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13045
    hardcode_libdir_separator_CXX=:
 
13046
    ;;
 
13047
  linux*)
 
13048
    case $cc_basename in
 
13049
      KCC)
 
13050
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13051
 
 
13052
        # KCC will only create a shared library if the output file
 
13053
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13054
        # to its proper name (with version) after linking.
 
13055
        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'
 
13056
        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'
 
13057
        # Commands to make compiler produce verbose output that lists
 
13058
        # what "hidden" libraries, object files and flags are used when
 
13059
        # linking a shared library.
 
13060
        #
 
13061
        # There doesn't appear to be a way to prevent this compiler from
 
13062
        # explicitly linking system object files so we need to strip them
 
13063
        # from the output so that they don't get included in the library
 
13064
        # dependencies.
 
13065
        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'
 
13066
 
 
13067
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
13068
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13069
 
 
13070
        # Archives containing C++ object files must be created using
 
13071
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13072
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13073
        ;;
 
13074
      icpc)
 
13075
        # Intel C++
 
13076
        with_gnu_ld=yes
 
13077
        archive_cmds_need_lc_CXX=no
 
13078
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13079
        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'
 
13080
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13081
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13082
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13083
        ;;
 
13084
      cxx)
 
13085
        # Compaq C++
 
13086
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13087
        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'
 
13088
 
 
13089
        runpath_var=LD_RUN_PATH
 
13090
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13091
        hardcode_libdir_separator_CXX=:
 
13092
 
 
13093
        # Commands to make compiler produce verbose output that lists
 
13094
        # what "hidden" libraries, object files and flags are used when
 
13095
        # linking a shared library.
 
13096
        #
 
13097
        # There doesn't appear to be a way to prevent this compiler from
 
13098
        # explicitly linking system object files so we need to strip them
 
13099
        # from the output so that they don't get included in the library
 
13100
        # dependencies.
 
13101
        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'
 
13102
        ;;
 
13103
    esac
 
13104
    ;;
 
13105
  lynxos*)
 
13106
    # FIXME: insert proper C++ library support
 
13107
    ld_shlibs_CXX=no
 
13108
    ;;
 
13109
  m88k*)
 
13110
    # FIXME: insert proper C++ library support
 
13111
    ld_shlibs_CXX=no
 
13112
    ;;
 
13113
  mvs*)
 
13114
    case $cc_basename in
 
13115
      cxx)
 
13116
        # FIXME: insert proper C++ library support
 
13117
        ld_shlibs_CXX=no
 
13118
        ;;
 
13119
      *)
 
13120
        # FIXME: insert proper C++ library support
 
13121
        ld_shlibs_CXX=no
 
13122
        ;;
 
13123
    esac
 
13124
    ;;
 
13125
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13126
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13127
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13128
      wlarc=
 
13129
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13130
      hardcode_direct_CXX=yes
 
13131
      hardcode_shlibpath_var_CXX=no
 
13132
    fi
 
13133
    # Workaround some broken pre-1.5 toolchains
 
13134
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13135
    ;;
 
13136
  osf3*)
 
13137
    case $cc_basename in
 
13138
      KCC)
 
13139
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13140
 
 
13141
        # KCC will only create a shared library if the output file
 
13142
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13143
        # to its proper name (with version) after linking.
 
13144
        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'
 
13145
 
 
13146
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13147
        hardcode_libdir_separator_CXX=:
 
13148
 
 
13149
        # Archives containing C++ object files must be created using
 
13150
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13151
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13152
 
 
13153
        ;;
 
13154
      RCC)
 
13155
        # Rational C++ 2.4.1
 
13156
        # FIXME: insert proper C++ library support
 
13157
        ld_shlibs_CXX=no
 
13158
        ;;
 
13159
      cxx)
 
13160
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13161
        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'
 
13162
 
 
13163
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13164
        hardcode_libdir_separator_CXX=:
 
13165
 
 
13166
        # Commands to make compiler produce verbose output that lists
 
13167
        # what "hidden" libraries, object files and flags are used when
 
13168
        # linking a shared library.
 
13169
        #
 
13170
        # There doesn't appear to be a way to prevent this compiler from
 
13171
        # explicitly linking system object files so we need to strip them
 
13172
        # from the output so that they don't get included in the library
 
13173
        # dependencies.
 
13174
        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'
 
13175
        ;;
 
13176
      *)
 
13177
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13178
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13179
          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'
 
13180
 
 
13181
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13182
          hardcode_libdir_separator_CXX=:
 
13183
 
 
13184
          # Commands to make compiler produce verbose output that lists
 
13185
          # what "hidden" libraries, object files and flags are used when
 
13186
          # linking a shared library.
 
13187
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13188
 
 
13189
        else
 
13190
          # FIXME: insert proper C++ library support
 
13191
          ld_shlibs_CXX=no
 
13192
        fi
 
13193
        ;;
 
13194
    esac
 
13195
    ;;
 
13196
  osf4* | osf5*)
 
13197
    case $cc_basename in
 
13198
      KCC)
 
13199
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13200
 
 
13201
        # KCC will only create a shared library if the output file
 
13202
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13203
        # to its proper name (with version) after linking.
 
13204
        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'
 
13205
 
 
13206
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13207
        hardcode_libdir_separator_CXX=:
 
13208
 
 
13209
        # Archives containing C++ object files must be created using
 
13210
        # the KAI C++ compiler.
 
13211
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
13212
        ;;
 
13213
      RCC)
 
13214
        # Rational C++ 2.4.1
 
13215
        # FIXME: insert proper C++ library support
 
13216
        ld_shlibs_CXX=no
 
13217
        ;;
 
13218
      cxx)
 
13219
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13220
        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'
 
13221
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13222
          echo "-hidden">> $lib.exp~
 
13223
          $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~
 
13224
          $rm $lib.exp'
 
13225
 
 
13226
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13227
        hardcode_libdir_separator_CXX=:
 
13228
 
 
13229
        # Commands to make compiler produce verbose output that lists
 
13230
        # what "hidden" libraries, object files and flags are used when
 
13231
        # linking a shared library.
 
13232
        #
 
13233
        # There doesn't appear to be a way to prevent this compiler from
 
13234
        # explicitly linking system object files so we need to strip them
 
13235
        # from the output so that they don't get included in the library
 
13236
        # dependencies.
 
13237
        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'
 
13238
        ;;
 
13239
      *)
 
13240
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13241
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13242
         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'
 
13243
 
 
13244
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13245
          hardcode_libdir_separator_CXX=:
 
13246
 
 
13247
          # Commands to make compiler produce verbose output that lists
 
13248
          # what "hidden" libraries, object files and flags are used when
 
13249
          # linking a shared library.
 
13250
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
13251
 
 
13252
        else
 
13253
          # FIXME: insert proper C++ library support
 
13254
          ld_shlibs_CXX=no
 
13255
        fi
 
13256
        ;;
 
13257
    esac
 
13258
    ;;
 
13259
  psos*)
 
13260
    # FIXME: insert proper C++ library support
 
13261
    ld_shlibs_CXX=no
 
13262
    ;;
 
13263
  sco*)
 
13264
    archive_cmds_need_lc_CXX=no
 
13265
    case $cc_basename in
 
13266
      CC)
 
13267
        # FIXME: insert proper C++ library support
 
13268
        ld_shlibs_CXX=no
 
13269
        ;;
 
13270
      *)
 
13271
        # FIXME: insert proper C++ library support
 
13272
        ld_shlibs_CXX=no
 
13273
        ;;
 
13274
    esac
 
13275
    ;;
 
13276
  sunos4*)
 
13277
    case $cc_basename in
 
13278
      CC)
 
13279
        # Sun C++ 4.x
 
13280
        # FIXME: insert proper C++ library support
 
13281
        ld_shlibs_CXX=no
 
13282
        ;;
 
13283
      lcc)
 
13284
        # Lucid
 
13285
        # FIXME: insert proper C++ library support
 
13286
        ld_shlibs_CXX=no
 
13287
        ;;
 
13288
      *)
 
13289
        # FIXME: insert proper C++ library support
 
13290
        ld_shlibs_CXX=no
 
13291
        ;;
 
13292
    esac
 
13293
    ;;
 
13294
  solaris*)
 
13295
    case $cc_basename in
 
13296
      CC)
 
13297
        # Sun C++ 4.2, 5.x and Centerline C++
 
13298
        no_undefined_flag_CXX=' -zdefs'
 
13299
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13300
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13301
        $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'
 
13302
 
 
13303
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13304
        hardcode_shlibpath_var_CXX=no
 
13305
        case $host_os in
 
13306
          solaris2.0-5 | solaris2.0-5.*) ;;
 
13307
          *)
 
13308
            # The C++ compiler is used as linker so we must use $wl
 
13309
            # flag to pass the commands to the underlying system
 
13310
            # linker.
 
13311
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13312
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13313
            ;;
 
13314
        esac
 
13315
        link_all_deplibs_CXX=yes
 
13316
 
 
13317
        # Commands to make compiler produce verbose output that lists
 
13318
        # what "hidden" libraries, object files and flags are used when
 
13319
        # linking a shared library.
 
13320
        #
 
13321
        # There doesn't appear to be a way to prevent this compiler from
 
13322
        # explicitly linking system object files so we need to strip them
 
13323
        # from the output so that they don't get included in the library
 
13324
        # dependencies.
 
13325
        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'
 
13326
 
 
13327
        # Archives containing C++ object files must be created using
 
13328
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13329
        # necessary to make sure instantiated templates are included
 
13330
        # in the archive.
 
13331
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13332
        ;;
 
13333
      gcx)
 
13334
        # Green Hills C++ Compiler
 
13335
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13336
 
 
13337
        # The C++ compiler must be used to create the archive.
 
13338
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13339
        ;;
 
13340
      *)
 
13341
        # GNU C++ compiler with Solaris linker
 
13342
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13343
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13344
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
13345
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13346
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13347
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
13348
 
 
13349
            # Commands to make compiler produce verbose output that lists
 
13350
            # what "hidden" libraries, object files and flags are used when
 
13351
            # linking a shared library.
 
13352
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13353
          else
 
13354
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13355
            # platform.
 
13356
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13357
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13358
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
13359
 
 
13360
            # Commands to make compiler produce verbose output that lists
 
13361
            # what "hidden" libraries, object files and flags are used when
 
13362
            # linking a shared library.
 
13363
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
13364
          fi
 
13365
 
 
13366
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13367
        fi
 
13368
        ;;
 
13369
    esac
 
13370
    ;;
 
13371
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
13372
    archive_cmds_need_lc_CXX=no
 
13373
    ;;
 
13374
  tandem*)
 
13375
    case $cc_basename in
 
13376
      NCC)
 
13377
        # NonStop-UX NCC 3.20
 
13378
        # FIXME: insert proper C++ library support
 
13379
        ld_shlibs_CXX=no
 
13380
        ;;
 
13381
      *)
 
13382
        # FIXME: insert proper C++ library support
 
13383
        ld_shlibs_CXX=no
 
13384
        ;;
 
13385
    esac
 
13386
    ;;
 
13387
  vxworks*)
 
13388
    # FIXME: insert proper C++ library support
 
13389
    ld_shlibs_CXX=no
 
13390
    ;;
 
13391
  *)
 
13392
    # FIXME: insert proper C++ library support
 
13393
    ld_shlibs_CXX=no
 
13394
    ;;
 
13395
esac
 
13396
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13397
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13398
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13399
 
 
13400
GCC_CXX="$GXX"
 
13401
LD_CXX="$LD"
 
13402
 
 
13403
## CAVEAT EMPTOR:
 
13404
## There is no encapsulation within the following macros, do not change
 
13405
## the running order or otherwise move them around unless you know exactly
 
13406
## what you are doing...
 
13407
 
 
13408
cat > conftest.$ac_ext <<EOF
 
13409
class Foo
 
13410
{
 
13411
public:
 
13412
  Foo (void) { a = 0; }
 
13413
private:
 
13414
  int a;
 
13415
};
 
13416
EOF
 
13417
 
 
13418
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13419
  (eval $ac_compile) 2>&5
 
13420
  ac_status=$?
 
13421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13422
  (exit $ac_status); }; then
 
13423
  # Parse the compiler output and extract the necessary
 
13424
  # objects, libraries and library flags.
 
13425
 
 
13426
  # Sentinel used to keep track of whether or not we are before
 
13427
  # the conftest object file.
 
13428
  pre_test_object_deps_done=no
 
13429
 
 
13430
  # The `*' in the case matches for architectures that use `case' in
 
13431
  # $output_verbose_cmd can trigger glob expansion during the loop
 
13432
  # eval without this substitution.
 
13433
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
13434
 
 
13435
  for p in `eval $output_verbose_link_cmd`; do
 
13436
    case $p in
 
13437
 
 
13438
    -L* | -R* | -l*)
 
13439
       # Some compilers place space between "-{L,R}" and the path.
 
13440
       # Remove the space.
 
13441
       if test $p = "-L" \
 
13442
          || test $p = "-R"; then
 
13443
         prev=$p
 
13444
         continue
 
13445
       else
 
13446
         prev=
 
13447
       fi
 
13448
 
 
13449
       if test "$pre_test_object_deps_done" = no; then
 
13450
         case $p in
 
13451
         -L* | -R*)
 
13452
           # Internal compiler library paths should come after those
 
13453
           # provided the user.  The postdeps already come after the
 
13454
           # user supplied libs so there is no need to process them.
 
13455
           if test -z "$compiler_lib_search_path_CXX"; then
 
13456
             compiler_lib_search_path_CXX="${prev}${p}"
 
13457
           else
 
13458
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13459
           fi
 
13460
           ;;
 
13461
         # The "-l" case would never come before the object being
 
13462
         # linked, so don't bother handling this case.
 
13463
         esac
 
13464
       else
 
13465
         if test -z "$postdeps_CXX"; then
 
13466
           postdeps_CXX="${prev}${p}"
 
13467
         else
 
13468
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13469
         fi
 
13470
       fi
 
13471
       ;;
 
13472
 
 
13473
    *.$objext)
 
13474
       # This assumes that the test object file only shows up
 
13475
       # once in the compiler output.
 
13476
       if test "$p" = "conftest.$objext"; then
 
13477
         pre_test_object_deps_done=yes
 
13478
         continue
 
13479
       fi
 
13480
 
 
13481
       if test "$pre_test_object_deps_done" = no; then
 
13482
         if test -z "$predep_objects_CXX"; then
 
13483
           predep_objects_CXX="$p"
 
13484
         else
 
13485
           predep_objects_CXX="$predep_objects_CXX $p"
 
13486
         fi
 
13487
       else
 
13488
         if test -z "$postdep_objects_CXX"; then
 
13489
           postdep_objects_CXX="$p"
 
13490
         else
 
13491
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13492
         fi
 
13493
       fi
 
13494
       ;;
 
13495
 
 
13496
    *) ;; # Ignore the rest.
 
13497
 
 
13498
    esac
 
13499
  done
 
13500
 
 
13501
  # Clean up.
 
13502
  rm -f a.out a.exe
 
13503
else
 
13504
  echo "libtool.m4: error: problem compiling CXX test program"
 
13505
fi
 
13506
 
 
13507
$rm -f confest.$objext
 
13508
 
 
13509
case " $postdeps_CXX " in
 
13510
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13511
esac
 
13512
 
 
13513
lt_prog_compiler_wl_CXX=
 
13514
lt_prog_compiler_pic_CXX=
 
13515
lt_prog_compiler_static_CXX=
 
13516
 
 
13517
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13518
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13519
 
 
13520
  # C++ specific cases for pic, static, wl, etc.
 
13521
  if test "$GXX" = yes; then
 
13522
    lt_prog_compiler_wl_CXX='-Wl,'
 
13523
    lt_prog_compiler_static_CXX='-static'
 
13524
 
 
13525
    case $host_os in
 
13526
    aix*)
 
13527
      # All AIX code is PIC.
 
13528
      if test "$host_cpu" = ia64; then
 
13529
        # AIX 5 now supports IA64 processor
 
13530
        lt_prog_compiler_static_CXX='-Bstatic'
 
13531
      fi
 
13532
      ;;
 
13533
    amigaos*)
 
13534
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13535
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13536
      # like `-m68040'.
 
13537
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13538
      ;;
 
13539
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13540
      # PIC is the default for these OSes.
 
13541
      ;;
 
13542
    mingw* | os2* | pw32*)
 
13543
      # This hack is so that the source file can tell whether it is being
 
13544
      # built for inclusion in a dll (and should export symbols for example).
 
13545
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13546
      ;;
 
13547
    darwin* | rhapsody*)
 
13548
      # PIC is the default on this platform
 
13549
      # Common symbols not allowed in MH_DYLIB files
 
13550
      lt_prog_compiler_pic_CXX='-fno-common'
 
13551
      ;;
 
13552
    *djgpp*)
 
13553
      # DJGPP does not support shared libraries at all
 
13554
      lt_prog_compiler_pic_CXX=
 
13555
      ;;
 
13556
    sysv4*MP*)
 
13557
      if test -d /usr/nec; then
 
13558
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13559
      fi
 
13560
      ;;
 
13561
    hpux*)
 
13562
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13563
      # not for PA HP-UX.
 
13564
      case "$host_cpu" in
 
13565
      hppa*64*|ia64*)
 
13566
        ;;
 
13567
      *)
 
13568
        lt_prog_compiler_pic_CXX='-fPIC'
 
13569
        ;;
 
13570
      esac
 
13571
      ;;
 
13572
    *)
 
13573
      lt_prog_compiler_pic_CXX='-fPIC'
 
13574
      ;;
 
13575
    esac
 
13576
  else
 
13577
    case $host_os in
 
13578
      aix4* | aix5*)
 
13579
        # All AIX code is PIC.
 
13580
        if test "$host_cpu" = ia64; then
 
13581
          # AIX 5 now supports IA64 processor
 
13582
          lt_prog_compiler_static_CXX='-Bstatic'
 
13583
        else
 
13584
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13585
        fi
 
13586
        ;;
 
13587
      chorus*)
 
13588
        case $cc_basename in
 
13589
        cxch68)
 
13590
          # Green Hills C++ Compiler
 
13591
          # _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"
 
13592
          ;;
 
13593
        esac
 
13594
        ;;
 
13595
      dgux*)
 
13596
        case $cc_basename in
 
13597
          ec++)
 
13598
            lt_prog_compiler_pic_CXX='-KPIC'
 
13599
            ;;
 
13600
          ghcx)
 
13601
            # Green Hills C++ Compiler
 
13602
            lt_prog_compiler_pic_CXX='-pic'
 
13603
            ;;
 
13604
          *)
 
13605
            ;;
 
13606
        esac
 
13607
        ;;
 
13608
      freebsd* | kfreebsd*-gnu)
 
13609
        # FreeBSD uses GNU C++
 
13610
        ;;
 
13611
      hpux9* | hpux10* | hpux11*)
 
13612
        case $cc_basename in
 
13613
          CC)
 
13614
            lt_prog_compiler_wl_CXX='-Wl,'
 
13615
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
13616
            if test "$host_cpu" != ia64; then
 
13617
              lt_prog_compiler_pic_CXX='+Z'
 
13618
            fi
 
13619
            ;;
 
13620
          aCC)
 
13621
            lt_prog_compiler_wl_CXX='-Wl,'
 
13622
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
13623
            case "$host_cpu" in
 
13624
            hppa*64*|ia64*)
 
13625
              # +Z the default
 
13626
              ;;
 
13627
            *)
 
13628
              lt_prog_compiler_pic_CXX='+Z'
 
13629
              ;;
 
13630
            esac
 
13631
            ;;
 
13632
          *)
 
13633
            ;;
 
13634
        esac
 
13635
        ;;
 
13636
      irix5* | irix6* | nonstopux*)
 
13637
        case $cc_basename in
 
13638
          CC)
 
13639
            lt_prog_compiler_wl_CXX='-Wl,'
 
13640
            lt_prog_compiler_static_CXX='-non_shared'
 
13641
            # CC pic flag -KPIC is the default.
 
13642
            ;;
 
13643
          *)
 
13644
            ;;
 
13645
        esac
 
13646
        ;;
 
13647
      linux*)
 
13648
        case $cc_basename in
 
13649
          KCC)
 
13650
            # KAI C++ Compiler
 
13651
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13652
            lt_prog_compiler_pic_CXX='-fPIC'
 
13653
            ;;
 
13654
          icpc)
 
13655
            # Intel C++
 
13656
            lt_prog_compiler_wl_CXX='-Wl,'
 
13657
            lt_prog_compiler_pic_CXX='-KPIC'
 
13658
            lt_prog_compiler_static_CXX='-static'
 
13659
            ;;
 
13660
          cxx)
 
13661
            # Compaq C++
 
13662
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13663
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13664
            lt_prog_compiler_pic_CXX=
 
13665
            lt_prog_compiler_static_CXX='-non_shared'
 
13666
            ;;
 
13667
          *)
 
13668
            ;;
 
13669
        esac
 
13670
        ;;
 
13671
      lynxos*)
 
13672
        ;;
 
13673
      m88k*)
 
13674
        ;;
 
13675
      mvs*)
 
13676
        case $cc_basename in
 
13677
          cxx)
 
13678
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13679
            ;;
 
13680
          *)
 
13681
            ;;
 
13682
        esac
 
13683
        ;;
 
13684
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13685
        ;;
 
13686
      osf3* | osf4* | osf5*)
 
13687
        case $cc_basename in
 
13688
          KCC)
 
13689
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13690
            ;;
 
13691
          RCC)
 
13692
            # Rational C++ 2.4.1
 
13693
            lt_prog_compiler_pic_CXX='-pic'
 
13694
            ;;
 
13695
          cxx)
 
13696
            # Digital/Compaq C++
 
13697
            lt_prog_compiler_wl_CXX='-Wl,'
 
13698
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13699
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13700
            lt_prog_compiler_pic_CXX=
 
13701
            lt_prog_compiler_static_CXX='-non_shared'
 
13702
            ;;
 
13703
          *)
 
13704
            ;;
 
13705
        esac
 
13706
        ;;
 
13707
      psos*)
 
13708
        ;;
 
13709
      sco*)
 
13710
        case $cc_basename in
 
13711
          CC)
 
13712
            lt_prog_compiler_pic_CXX='-fPIC'
 
13713
            ;;
 
13714
          *)
 
13715
            ;;
 
13716
        esac
 
13717
        ;;
 
13718
      solaris*)
 
13719
        case $cc_basename in
 
13720
          CC)
 
13721
            # Sun C++ 4.2, 5.x and Centerline C++
 
13722
            lt_prog_compiler_pic_CXX='-KPIC'
 
13723
            lt_prog_compiler_static_CXX='-Bstatic'
 
13724
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13725
            ;;
 
13726
          gcx)
 
13727
            # Green Hills C++ Compiler
 
13728
            lt_prog_compiler_pic_CXX='-PIC'
 
13729
            ;;
 
13730
          *)
 
13731
            ;;
 
13732
        esac
 
13733
        ;;
 
13734
      sunos4*)
 
13735
        case $cc_basename in
 
13736
          CC)
 
13737
            # Sun C++ 4.x
 
13738
            lt_prog_compiler_pic_CXX='-pic'
 
13739
            lt_prog_compiler_static_CXX='-Bstatic'
 
13740
            ;;
 
13741
          lcc)
 
13742
            # Lucid
 
13743
            lt_prog_compiler_pic_CXX='-pic'
 
13744
            ;;
 
13745
          *)
 
13746
            ;;
 
13747
        esac
 
13748
        ;;
 
13749
      tandem*)
 
13750
        case $cc_basename in
 
13751
          NCC)
 
13752
            # NonStop-UX NCC 3.20
 
13753
            lt_prog_compiler_pic_CXX='-KPIC'
 
13754
            ;;
 
13755
          *)
 
13756
            ;;
 
13757
        esac
 
13758
        ;;
 
13759
      unixware*)
 
13760
        ;;
 
13761
      vxworks*)
 
13762
        ;;
 
13763
      *)
 
13764
        lt_prog_compiler_can_build_shared_CXX=no
 
13765
        ;;
 
13766
    esac
 
13767
  fi
 
13768
 
 
13769
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13770
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
13771
 
 
13772
#
 
13773
# Check to make sure the PIC flag actually works.
 
13774
#
 
13775
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13776
  
 
13777
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13778
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
13779
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
13780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13781
else
 
13782
  lt_prog_compiler_pic_works_CXX=no
 
13783
  ac_outfile=conftest.$ac_objext
 
13784
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13785
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13786
   # Insert the option either (1) after the last *FLAGS variable, or
 
13787
   # (2) before a word containing "conftest.", or (3) at the end.
 
13788
   # Note that $ac_compile itself does not contain backslashes and begins
 
13789
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13790
   # The option is referenced via a variable to avoid confusing sed.
 
13791
   lt_compile=`echo "$ac_compile" | $SED \
 
13792
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13793
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13794
   -e 's:$: $lt_compiler_flag:'`
 
13795
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
13796
   (eval "$lt_compile" 2>conftest.err)
 
13797
   ac_status=$?
 
13798
   cat conftest.err >&5
 
13799
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
13800
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13801
     # The compiler can only warn and ignore the option if not recognized
 
13802
     # So say no if there are warnings
 
13803
     if test ! -s conftest.err; then
 
13804
       lt_prog_compiler_pic_works_CXX=yes
 
13805
     fi
 
13806
   fi
 
13807
   $rm conftest*
 
13808
 
 
13809
fi
 
13810
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
13811
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
13812
 
 
13813
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13814
    case $lt_prog_compiler_pic_CXX in
 
13815
     "" | " "*) ;;
 
13816
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13817
     esac
 
13818
else
 
13819
    lt_prog_compiler_pic_CXX=
 
13820
     lt_prog_compiler_can_build_shared_CXX=no
 
13821
fi
 
13822
 
 
13823
fi
 
13824
case "$host_os" in
 
13825
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13826
  *djgpp*)
 
13827
    lt_prog_compiler_pic_CXX=
 
13828
    ;;
 
13829
  *)
 
13830
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13831
    ;;
 
13832
esac
 
13833
 
 
13834
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13835
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13836
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13838
else
 
13839
  lt_cv_prog_compiler_c_o_CXX=no
 
13840
   $rm -r conftest 2>/dev/null
 
13841
   mkdir conftest
 
13842
   cd conftest
 
13843
   mkdir out
 
13844
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13845
 
 
13846
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13847
   # Insert the option either (1) after the last *FLAGS variable, or
 
13848
   # (2) before a word containing "conftest.", or (3) at the end.
 
13849
   # Note that $ac_compile itself does not contain backslashes and begins
 
13850
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13851
   lt_compile=`echo "$ac_compile" | $SED \
 
13852
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13853
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13854
   -e 's:$: $lt_compiler_flag:'`
 
13855
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
13856
   (eval "$lt_compile" 2>out/conftest.err)
 
13857
   ac_status=$?
 
13858
   cat out/conftest.err >&5
 
13859
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
13860
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13861
   then
 
13862
     # The compiler can only warn and ignore the option if not recognized
 
13863
     # So say no if there are warnings
 
13864
     if test ! -s out/conftest.err; then
 
13865
       lt_cv_prog_compiler_c_o_CXX=yes
 
13866
     fi
 
13867
   fi
 
13868
   chmod u+w .
 
13869
   $rm conftest*
 
13870
   # SGI C++ compiler will create directory out/ii_files/ for
 
13871
   # template instantiation
 
13872
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13873
   $rm out/* && rmdir out
 
13874
   cd ..
 
13875
   rmdir conftest
 
13876
   $rm conftest*
 
13877
 
 
13878
fi
 
13879
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13880
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13881
 
 
13882
 
 
13883
hard_links="nottested"
 
13884
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13885
  # do not overwrite the value of need_locks provided by the user
 
13886
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13887
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13888
  hard_links=yes
 
13889
  $rm conftest*
 
13890
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13891
  touch conftest.a
 
13892
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13893
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13894
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13895
echo "${ECHO_T}$hard_links" >&6
 
13896
  if test "$hard_links" = no; then
 
13897
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13898
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13899
    need_locks=warn
 
13900
  fi
 
13901
else
 
13902
  need_locks=no
 
13903
fi
 
13904
 
 
13905
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13906
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13907
 
 
13908
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13909
  case $host_os in
 
13910
  aix4* | aix5*)
 
13911
    # If we're using GNU nm, then we don't want the "-C" option.
 
13912
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13913
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13914
      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'
 
13915
    else
 
13916
      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'
 
13917
    fi
 
13918
    ;;
 
13919
  pw32*)
 
13920
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13921
  ;;
 
13922
  cygwin* | mingw*)
 
13923
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13924
  ;;
 
13925
  linux*)
 
13926
    link_all_deplibs_CXX=no
 
13927
  ;;
 
13928
  *)
 
13929
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13930
  ;;
 
13931
  esac
 
13932
 
 
13933
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13934
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13935
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13936
 
 
13937
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13938
if test "$GCC" = yes; then
 
13939
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13940
fi
 
13941
 
 
13942
#
 
13943
# Do we need to explicitly link libc?
 
13944
#
 
13945
case "x$archive_cmds_need_lc_CXX" in
 
13946
x|xyes)
 
13947
  # Assume -lc should be added
 
13948
  archive_cmds_need_lc_CXX=yes
 
13949
 
 
13950
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13951
    case $archive_cmds_CXX in
 
13952
    *'~'*)
 
13953
      # FIXME: we may have to deal with multi-command sequences.
 
13954
      ;;
 
13955
    '$CC '*)
 
13956
      # Test whether the compiler implicitly links with -lc since on some
 
13957
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13958
      # to ld, don't add -lc before -lgcc.
 
13959
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13960
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13961
      $rm conftest*
 
13962
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13963
 
 
13964
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13965
  (eval $ac_compile) 2>&5
 
13966
  ac_status=$?
 
13967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13968
  (exit $ac_status); } 2>conftest.err; then
 
13969
        soname=conftest
 
13970
        lib=conftest
 
13971
        libobjs=conftest.$ac_objext
 
13972
        deplibs=
 
13973
        wl=$lt_prog_compiler_wl_CXX
 
13974
        compiler_flags=-v
 
13975
        linker_flags=-v
 
13976
        verstring=
 
13977
        output_objdir=.
 
13978
        libname=conftest
 
13979
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13980
        allow_undefined_flag_CXX=
 
13981
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13982
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13983
  ac_status=$?
 
13984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13985
  (exit $ac_status); }
 
13986
        then
 
13987
          archive_cmds_need_lc_CXX=no
 
13988
        else
 
13989
          archive_cmds_need_lc_CXX=yes
 
13990
        fi
 
13991
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13992
      else
 
13993
        cat conftest.err 1>&5
 
13994
      fi
 
13995
      $rm conftest*
 
13996
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13997
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
13998
      ;;
 
13999
    esac
 
14000
  fi
 
14001
  ;;
 
14002
esac
 
14003
 
 
14004
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14005
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14006
library_names_spec=
 
14007
libname_spec='lib$name'
 
14008
soname_spec=
 
14009
shrext_cmds=".so"
 
14010
postinstall_cmds=
 
14011
postuninstall_cmds=
 
14012
finish_cmds=
 
14013
finish_eval=
 
14014
shlibpath_var=
 
14015
shlibpath_overrides_runpath=unknown
 
14016
version_type=none
 
14017
dynamic_linker="$host_os ld.so"
 
14018
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14019
if test "$GCC" = yes; then
 
14020
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14021
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14022
    # if the path contains ";" then we assume it to be the separator
 
14023
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14024
    # assumed that no part of a normal pathname contains ";" but that should
 
14025
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14026
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14027
  else
 
14028
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14029
  fi
 
14030
else
 
14031
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14032
fi
 
14033
need_lib_prefix=unknown
 
14034
hardcode_into_libs=no
 
14035
 
 
14036
# when you set need_version to no, make sure it does not cause -set_version
 
14037
# flags to be left without arguments
 
14038
need_version=unknown
 
14039
 
 
14040
case $host_os in
 
14041
aix3*)
 
14042
  version_type=linux
 
14043
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14044
  shlibpath_var=LIBPATH
 
14045
 
 
14046
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14047
  soname_spec='${libname}${release}${shared_ext}$major'
 
14048
  ;;
 
14049
 
 
14050
aix4* | aix5*)
 
14051
  version_type=linux
 
14052
  need_lib_prefix=no
 
14053
  need_version=no
 
14054
  hardcode_into_libs=yes
 
14055
  if test "$host_cpu" = ia64; then
 
14056
    # AIX 5 supports IA64
 
14057
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14058
    shlibpath_var=LD_LIBRARY_PATH
 
14059
  else
 
14060
    # With GCC up to 2.95.x, collect2 would create an import file
 
14061
    # for dependence libraries.  The import file would start with
 
14062
    # the line `#! .'.  This would cause the generated library to
 
14063
    # depend on `.', always an invalid library.  This was fixed in
 
14064
    # development snapshots of GCC prior to 3.0.
 
14065
    case $host_os in
 
14066
      aix4 | aix4.[01] | aix4.[01].*)
 
14067
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14068
           echo ' yes '
 
14069
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14070
        :
 
14071
      else
 
14072
        can_build_shared=no
 
14073
      fi
 
14074
      ;;
 
14075
    esac
 
14076
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14077
    # soname into executable. Probably we can add versioning support to
 
14078
    # collect2, so additional links can be useful in future.
 
14079
    if test "$aix_use_runtimelinking" = yes; then
 
14080
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14081
      # instead of lib<name>.a to let people know that these are not
 
14082
      # typical AIX shared libraries.
 
14083
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14084
    else
 
14085
      # We preserve .a as extension for shared libraries through AIX4.2
 
14086
      # and later when we are not doing run time linking.
 
14087
      library_names_spec='${libname}${release}.a $libname.a'
 
14088
      soname_spec='${libname}${release}${shared_ext}$major'
 
14089
    fi
 
14090
    shlibpath_var=LIBPATH
 
14091
  fi
 
14092
  ;;
 
14093
 
 
14094
amigaos*)
 
14095
  library_names_spec='$libname.ixlibrary $libname.a'
 
14096
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14097
  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'
 
14098
  ;;
 
14099
 
 
14100
beos*)
 
14101
  library_names_spec='${libname}${shared_ext}'
 
14102
  dynamic_linker="$host_os ld.so"
 
14103
  shlibpath_var=LIBRARY_PATH
 
14104
  ;;
 
14105
 
 
14106
bsdi4*)
 
14107
  version_type=linux
 
14108
  need_version=no
 
14109
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14110
  soname_spec='${libname}${release}${shared_ext}$major'
 
14111
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14112
  shlibpath_var=LD_LIBRARY_PATH
 
14113
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14114
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14115
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14116
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14117
  # libtool to hard-code these into programs
 
14118
  ;;
 
14119
 
 
14120
cygwin* | mingw* | pw32*)
 
14121
  version_type=windows
 
14122
  shrext_cmds=".dll"
 
14123
  need_version=no
 
14124
  need_lib_prefix=no
 
14125
 
 
14126
  case $GCC,$host_os in
 
14127
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14128
    library_names_spec='$libname.dll.a'
 
14129
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14130
    postinstall_cmds='base_file=`basename \${file}`~
 
14131
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14132
      dldir=$destdir/`dirname \$dlpath`~
 
14133
      test -d \$dldir || mkdir -p \$dldir~
 
14134
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14135
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14136
      dlpath=$dir/\$dldll~
 
14137
       $rm \$dlpath'
 
14138
    shlibpath_overrides_runpath=yes
 
14139
 
 
14140
    case $host_os in
 
14141
    cygwin*)
 
14142
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14143
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14144
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14145
      ;;
 
14146
    mingw*)
 
14147
      # MinGW DLLs use traditional 'lib' prefix
 
14148
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14149
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14150
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14151
        # It is most probably a Windows format PATH printed by
 
14152
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14153
        # path with ; separators, and with drive letters. We can handle the
 
14154
        # drive letters (cygwin fileutils understands them), so leave them,
 
14155
        # especially as we might pass files found there to a mingw objdump,
 
14156
        # which wouldn't understand a cygwinified path. Ahh.
 
14157
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14158
      else
 
14159
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14160
      fi
 
14161
      ;;
 
14162
    pw32*)
 
14163
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14164
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14165
      ;;
 
14166
    esac
 
14167
    ;;
 
14168
 
 
14169
  *)
 
14170
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14171
    ;;
 
14172
  esac
 
14173
  dynamic_linker='Win32 ld.exe'
 
14174
  # FIXME: first we should search . and the directory the executable is in
 
14175
  shlibpath_var=PATH
 
14176
  ;;
 
14177
 
 
14178
darwin* | rhapsody*)
 
14179
  dynamic_linker="$host_os dyld"
 
14180
  version_type=darwin
 
14181
  need_lib_prefix=no
 
14182
  need_version=no
 
14183
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14184
  soname_spec='${libname}${release}${major}$shared_ext'
 
14185
  shlibpath_overrides_runpath=yes
 
14186
  shlibpath_var=DYLD_LIBRARY_PATH
 
14187
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14188
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14189
  if test "$GCC" = yes; then
 
14190
    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"`
 
14191
  else
 
14192
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14193
  fi
 
14194
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14195
  ;;
 
14196
 
 
14197
dgux*)
 
14198
  version_type=linux
 
14199
  need_lib_prefix=no
 
14200
  need_version=no
 
14201
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14202
  soname_spec='${libname}${release}${shared_ext}$major'
 
14203
  shlibpath_var=LD_LIBRARY_PATH
 
14204
  ;;
 
14205
 
 
14206
freebsd1*)
 
14207
  dynamic_linker=no
 
14208
  ;;
 
14209
 
 
14210
kfreebsd*-gnu)
 
14211
  version_type=linux
 
14212
  need_lib_prefix=no
 
14213
  need_version=no
 
14214
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14215
  soname_spec='${libname}${release}${shared_ext}$major'
 
14216
  shlibpath_var=LD_LIBRARY_PATH
 
14217
  shlibpath_overrides_runpath=no
 
14218
  hardcode_into_libs=yes
 
14219
  dynamic_linker='GNU ld.so'
 
14220
  ;;
 
14221
 
 
14222
freebsd*)
 
14223
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14224
  version_type=freebsd-$objformat
 
14225
  case $version_type in
 
14226
    freebsd-elf*)
 
14227
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14228
      need_version=no
 
14229
      need_lib_prefix=no
 
14230
      ;;
 
14231
    freebsd-*)
 
14232
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14233
      need_version=yes
 
14234
      ;;
 
14235
  esac
 
14236
  shlibpath_var=LD_LIBRARY_PATH
 
14237
  case $host_os in
 
14238
  freebsd2*)
 
14239
    shlibpath_overrides_runpath=yes
 
14240
    ;;
 
14241
  freebsd3.01* | freebsdelf3.01*)
 
14242
    shlibpath_overrides_runpath=yes
 
14243
    hardcode_into_libs=yes
 
14244
    ;;
 
14245
  *) # from 3.2 on
 
14246
    shlibpath_overrides_runpath=no
 
14247
    hardcode_into_libs=yes
 
14248
    ;;
 
14249
  esac
 
14250
  ;;
 
14251
 
 
14252
gnu*)
 
14253
  version_type=linux
 
14254
  need_lib_prefix=no
 
14255
  need_version=no
 
14256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14257
  soname_spec='${libname}${release}${shared_ext}$major'
 
14258
  shlibpath_var=LD_LIBRARY_PATH
 
14259
  hardcode_into_libs=yes
 
14260
  ;;
 
14261
 
 
14262
hpux9* | hpux10* | hpux11*)
 
14263
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14264
  # link against other versions.
 
14265
  version_type=sunos
 
14266
  need_lib_prefix=no
 
14267
  need_version=no
 
14268
  case "$host_cpu" in
 
14269
  ia64*)
 
14270
    shrext_cmds='.so'
 
14271
    hardcode_into_libs=yes
 
14272
    dynamic_linker="$host_os dld.so"
 
14273
    shlibpath_var=LD_LIBRARY_PATH
 
14274
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14275
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14276
    soname_spec='${libname}${release}${shared_ext}$major'
 
14277
    if test "X$HPUX_IA64_MODE" = X32; then
 
14278
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14279
    else
 
14280
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14281
    fi
 
14282
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14283
    ;;
 
14284
   hppa*64*)
 
14285
     shrext_cmds='.sl'
 
14286
     hardcode_into_libs=yes
 
14287
     dynamic_linker="$host_os dld.sl"
 
14288
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14289
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14290
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14291
     soname_spec='${libname}${release}${shared_ext}$major'
 
14292
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14293
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14294
     ;;
 
14295
   *)
 
14296
    shrext_cmds='.sl'
 
14297
    dynamic_linker="$host_os dld.sl"
 
14298
    shlibpath_var=SHLIB_PATH
 
14299
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14300
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14301
    soname_spec='${libname}${release}${shared_ext}$major'
 
14302
    ;;
 
14303
  esac
 
14304
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14305
  postinstall_cmds='chmod 555 $lib'
 
14306
  ;;
 
14307
 
 
14308
irix5* | irix6* | nonstopux*)
 
14309
  case $host_os in
 
14310
    nonstopux*) version_type=nonstopux ;;
 
14311
    *)
 
14312
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14313
                version_type=linux
 
14314
        else
 
14315
                version_type=irix
 
14316
        fi ;;
 
14317
  esac
 
14318
  need_lib_prefix=no
 
14319
  need_version=no
 
14320
  soname_spec='${libname}${release}${shared_ext}$major'
 
14321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14322
  case $host_os in
 
14323
  irix5* | nonstopux*)
 
14324
    libsuff= shlibsuff=
 
14325
    ;;
 
14326
  *)
 
14327
    case $LD in # libtool.m4 will add one of these switches to LD
 
14328
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14329
      libsuff= shlibsuff= libmagic=32-bit;;
 
14330
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14331
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14332
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14333
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14334
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14335
    esac
 
14336
    ;;
 
14337
  esac
 
14338
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14339
  shlibpath_overrides_runpath=no
 
14340
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14341
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14342
  hardcode_into_libs=yes
 
14343
  ;;
 
14344
 
 
14345
# No shared lib support for Linux oldld, aout, or coff.
 
14346
linux*oldld* | linux*aout* | linux*coff*)
 
14347
  dynamic_linker=no
 
14348
  ;;
 
14349
 
 
14350
# This must be Linux ELF.
 
14351
linux*)
 
14352
  version_type=linux
 
14353
  need_lib_prefix=no
 
14354
  need_version=no
 
14355
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14356
  soname_spec='${libname}${release}${shared_ext}$major'
 
14357
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14358
  shlibpath_var=LD_LIBRARY_PATH
 
14359
  shlibpath_overrides_runpath=no
 
14360
  # This implies no fast_install, which is unacceptable.
 
14361
  # Some rework will be needed to allow for fast_install
 
14362
  # before this can be enabled.
 
14363
  hardcode_into_libs=yes
 
14364
 
 
14365
  # Append ld.so.conf contents to the search path
 
14366
  if test -f /etc/ld.so.conf; then
 
14367
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
14368
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14369
  fi
 
14370
 
 
14371
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14372
  # powerpc, because MkLinux only supported shared libraries with the
 
14373
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14374
  # most powerpc-linux boxes support dynamic linking these days and
 
14375
  # people can always --disable-shared, the test was removed, and we
 
14376
  # assume the GNU/Linux dynamic linker is in use.
 
14377
  dynamic_linker='GNU/Linux ld.so'
 
14378
  ;;
 
14379
 
 
14380
netbsdelf*-gnu)
 
14381
  version_type=linux
 
14382
  need_lib_prefix=no
 
14383
  need_version=no
 
14384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14385
  soname_spec='${libname}${release}${shared_ext}$major'
 
14386
  shlibpath_var=LD_LIBRARY_PATH
 
14387
  shlibpath_overrides_runpath=no
 
14388
  hardcode_into_libs=yes
 
14389
  dynamic_linker='NetBSD ld.elf_so'
 
14390
  ;;
 
14391
 
 
14392
knetbsd*-gnu)
 
14393
  version_type=linux
 
14394
  need_lib_prefix=no
 
14395
  need_version=no
 
14396
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14397
  soname_spec='${libname}${release}${shared_ext}$major'
 
14398
  shlibpath_var=LD_LIBRARY_PATH
 
14399
  shlibpath_overrides_runpath=no
 
14400
  hardcode_into_libs=yes
 
14401
  dynamic_linker='GNU ld.so'
 
14402
  ;;
 
14403
 
 
14404
netbsd*)
 
14405
  version_type=sunos
 
14406
  need_lib_prefix=no
 
14407
  need_version=no
 
14408
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14409
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14410
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14411
    dynamic_linker='NetBSD (a.out) ld.so'
 
14412
  else
 
14413
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14414
    soname_spec='${libname}${release}${shared_ext}$major'
 
14415
    dynamic_linker='NetBSD ld.elf_so'
 
14416
  fi
 
14417
  shlibpath_var=LD_LIBRARY_PATH
 
14418
  shlibpath_overrides_runpath=yes
 
14419
  hardcode_into_libs=yes
 
14420
  ;;
 
14421
 
 
14422
newsos6)
 
14423
  version_type=linux
 
14424
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14425
  shlibpath_var=LD_LIBRARY_PATH
 
14426
  shlibpath_overrides_runpath=yes
 
14427
  ;;
 
14428
 
 
14429
nto-qnx*)
 
14430
  version_type=linux
 
14431
  need_lib_prefix=no
 
14432
  need_version=no
 
14433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14434
  soname_spec='${libname}${release}${shared_ext}$major'
 
14435
  shlibpath_var=LD_LIBRARY_PATH
 
14436
  shlibpath_overrides_runpath=yes
 
14437
  ;;
 
14438
 
 
14439
openbsd*)
 
14440
  version_type=sunos
 
14441
  need_lib_prefix=no
 
14442
  need_version=yes
 
14443
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14444
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14445
  shlibpath_var=LD_LIBRARY_PATH
 
14446
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14447
    case $host_os in
 
14448
      openbsd2.[89] | openbsd2.[89].*)
 
14449
        shlibpath_overrides_runpath=no
 
14450
        ;;
 
14451
      *)
 
14452
        shlibpath_overrides_runpath=yes
 
14453
        ;;
 
14454
      esac
 
14455
  else
 
14456
    shlibpath_overrides_runpath=yes
 
14457
  fi
 
14458
  ;;
 
14459
 
 
14460
os2*)
 
14461
  libname_spec='$name'
 
14462
  shrext_cmds=".dll"
 
14463
  need_lib_prefix=no
 
14464
  library_names_spec='$libname${shared_ext} $libname.a'
 
14465
  dynamic_linker='OS/2 ld.exe'
 
14466
  shlibpath_var=LIBPATH
 
14467
  ;;
 
14468
 
 
14469
osf3* | osf4* | osf5*)
 
14470
  version_type=osf
 
14471
  need_lib_prefix=no
 
14472
  need_version=no
 
14473
  soname_spec='${libname}${release}${shared_ext}$major'
 
14474
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14475
  shlibpath_var=LD_LIBRARY_PATH
 
14476
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14477
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14478
  ;;
 
14479
 
 
14480
sco3.2v5*)
 
14481
  version_type=osf
 
14482
  soname_spec='${libname}${release}${shared_ext}$major'
 
14483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14484
  shlibpath_var=LD_LIBRARY_PATH
 
14485
  ;;
 
14486
 
 
14487
solaris*)
 
14488
  version_type=linux
 
14489
  need_lib_prefix=no
 
14490
  need_version=no
 
14491
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14492
  soname_spec='${libname}${release}${shared_ext}$major'
 
14493
  shlibpath_var=LD_LIBRARY_PATH
 
14494
  shlibpath_overrides_runpath=yes
 
14495
  hardcode_into_libs=yes
 
14496
  # ldd complains unless libraries are executable
 
14497
  postinstall_cmds='chmod +x $lib'
 
14498
  ;;
 
14499
 
 
14500
sunos4*)
 
14501
  version_type=sunos
 
14502
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14503
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14504
  shlibpath_var=LD_LIBRARY_PATH
 
14505
  shlibpath_overrides_runpath=yes
 
14506
  if test "$with_gnu_ld" = yes; then
 
14507
    need_lib_prefix=no
 
14508
  fi
 
14509
  need_version=yes
 
14510
  ;;
 
14511
 
 
14512
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14513
  version_type=linux
 
14514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14515
  soname_spec='${libname}${release}${shared_ext}$major'
 
14516
  shlibpath_var=LD_LIBRARY_PATH
 
14517
  case $host_vendor in
 
14518
    sni)
 
14519
      shlibpath_overrides_runpath=no
 
14520
      need_lib_prefix=no
 
14521
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14522
      runpath_var=LD_RUN_PATH
 
14523
      ;;
 
14524
    siemens)
 
14525
      need_lib_prefix=no
 
14526
      ;;
 
14527
    motorola)
 
14528
      need_lib_prefix=no
 
14529
      need_version=no
 
14530
      shlibpath_overrides_runpath=no
 
14531
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14532
      ;;
 
14533
  esac
 
14534
  ;;
 
14535
 
 
14536
sysv4*MP*)
 
14537
  if test -d /usr/nec ;then
 
14538
    version_type=linux
 
14539
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14540
    soname_spec='$libname${shared_ext}.$major'
 
14541
    shlibpath_var=LD_LIBRARY_PATH
 
14542
  fi
 
14543
  ;;
 
14544
 
 
14545
uts4*)
 
14546
  version_type=linux
 
14547
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14548
  soname_spec='${libname}${release}${shared_ext}$major'
 
14549
  shlibpath_var=LD_LIBRARY_PATH
 
14550
  ;;
 
14551
 
 
14552
*)
 
14553
  dynamic_linker=no
 
14554
  ;;
 
14555
esac
 
14556
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14557
echo "${ECHO_T}$dynamic_linker" >&6
 
14558
test "$dynamic_linker" = no && can_build_shared=no
 
14559
 
 
14560
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14561
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14562
hardcode_action_CXX=
 
14563
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14564
   test -n "$runpath_var CXX" || \
 
14565
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
14566
 
 
14567
  # We can hardcode non-existant directories.
 
14568
  if test "$hardcode_direct_CXX" != no &&
 
14569
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14570
     # have to relink, otherwise we might link with an installed library
 
14571
     # when we should be linking with a yet-to-be-installed one
 
14572
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14573
     test "$hardcode_minus_L_CXX" != no; then
 
14574
    # Linking always hardcodes the temporary library directory.
 
14575
    hardcode_action_CXX=relink
 
14576
  else
 
14577
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14578
    hardcode_action_CXX=immediate
 
14579
  fi
 
14580
else
 
14581
  # We cannot hardcode anything, or else we can only hardcode existing
 
14582
  # directories.
 
14583
  hardcode_action_CXX=unsupported
 
14584
fi
 
14585
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14586
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
14587
 
 
14588
if test "$hardcode_action_CXX" = relink; then
 
14589
  # Fast installation is not supported
 
14590
  enable_fast_install=no
 
14591
elif test "$shlibpath_overrides_runpath" = yes ||
 
14592
     test "$enable_shared" = no; then
 
14593
  # Fast installation is not necessary
 
14594
  enable_fast_install=needless
 
14595
fi
 
14596
 
 
14597
striplib=
 
14598
old_striplib=
 
14599
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14600
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14601
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14602
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14603
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14604
  echo "$as_me:$LINENO: result: yes" >&5
 
14605
echo "${ECHO_T}yes" >&6
 
14606
else
 
14607
# FIXME - insert some real tests, host_os isn't really good enough
 
14608
  case $host_os in
 
14609
   darwin*)
 
14610
       if test -n "$STRIP" ; then
 
14611
         striplib="$STRIP -x"
 
14612
         echo "$as_me:$LINENO: result: yes" >&5
 
14613
echo "${ECHO_T}yes" >&6
 
14614
       else
 
14615
  echo "$as_me:$LINENO: result: no" >&5
 
14616
echo "${ECHO_T}no" >&6
 
14617
fi
 
14618
       ;;
 
14619
   *)
 
14620
  echo "$as_me:$LINENO: result: no" >&5
 
14621
echo "${ECHO_T}no" >&6
 
14622
    ;;
 
14623
  esac
 
14624
fi
 
14625
 
 
14626
if test "x$enable_dlopen" != xyes; then
 
14627
  enable_dlopen=unknown
 
14628
  enable_dlopen_self=unknown
 
14629
  enable_dlopen_self_static=unknown
 
14630
else
 
14631
  lt_cv_dlopen=no
 
14632
  lt_cv_dlopen_libs=
 
14633
 
 
14634
  case $host_os in
 
14635
  beos*)
 
14636
    lt_cv_dlopen="load_add_on"
 
14637
    lt_cv_dlopen_libs=
 
14638
    lt_cv_dlopen_self=yes
 
14639
    ;;
 
14640
 
 
14641
  mingw* | pw32*)
 
14642
    lt_cv_dlopen="LoadLibrary"
 
14643
    lt_cv_dlopen_libs=
 
14644
   ;;
 
14645
 
 
14646
  cygwin*)
 
14647
    lt_cv_dlopen="dlopen"
 
14648
    lt_cv_dlopen_libs=
 
14649
   ;;
 
14650
 
 
14651
  darwin*)
 
14652
  # if libdl is installed we need to link against it
 
14653
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14654
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14655
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14657
else
 
14658
  ac_check_lib_save_LIBS=$LIBS
 
14659
LIBS="-ldl  $LIBS"
 
14660
cat >conftest.$ac_ext <<_ACEOF
 
14661
/* confdefs.h.  */
 
14662
_ACEOF
 
14663
cat confdefs.h >>conftest.$ac_ext
 
14664
cat >>conftest.$ac_ext <<_ACEOF
 
14665
/* end confdefs.h.  */
 
14666
 
 
14667
/* Override any gcc2 internal prototype to avoid an error.  */
 
14668
#ifdef __cplusplus
 
14669
extern "C"
 
14670
#endif
 
14671
/* We use char because int might match the return type of a gcc2
 
14672
   builtin and then its argument prototype would still apply.  */
 
14673
char dlopen ();
 
14674
int
 
14675
main ()
 
14676
{
 
14677
dlopen ();
 
14678
  ;
 
14679
  return 0;
 
14680
}
 
14681
_ACEOF
 
14682
rm -f conftest.$ac_objext conftest$ac_exeext
 
14683
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14684
  (eval $ac_link) 2>conftest.er1
 
14685
  ac_status=$?
 
14686
  grep -v '^ *+' conftest.er1 >conftest.err
 
14687
  rm -f conftest.er1
 
14688
  cat conftest.err >&5
 
14689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14690
  (exit $ac_status); } &&
 
14691
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14693
  (eval $ac_try) 2>&5
 
14694
  ac_status=$?
 
14695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14696
  (exit $ac_status); }; } &&
 
14697
         { ac_try='test -s conftest$ac_exeext'
 
14698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14699
  (eval $ac_try) 2>&5
 
14700
  ac_status=$?
 
14701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14702
  (exit $ac_status); }; }; then
 
14703
  ac_cv_lib_dl_dlopen=yes
 
14704
else
 
14705
  echo "$as_me: failed program was:" >&5
 
14706
sed 's/^/| /' conftest.$ac_ext >&5
 
14707
 
 
14708
ac_cv_lib_dl_dlopen=no
 
14709
fi
 
14710
rm -f conftest.err conftest.$ac_objext \
 
14711
      conftest$ac_exeext conftest.$ac_ext
 
14712
LIBS=$ac_check_lib_save_LIBS
 
14713
fi
 
14714
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14715
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14716
if test $ac_cv_lib_dl_dlopen = yes; then
 
14717
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14718
else
 
14719
  
 
14720
    lt_cv_dlopen="dyld"
 
14721
    lt_cv_dlopen_libs=
 
14722
    lt_cv_dlopen_self=yes
 
14723
    
 
14724
fi
 
14725
 
 
14726
   ;;
 
14727
 
 
14728
  *)
 
14729
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
14730
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
14731
if test "${ac_cv_func_shl_load+set}" = set; then
 
14732
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14733
else
 
14734
  cat >conftest.$ac_ext <<_ACEOF
 
14735
/* confdefs.h.  */
 
14736
_ACEOF
 
14737
cat confdefs.h >>conftest.$ac_ext
 
14738
cat >>conftest.$ac_ext <<_ACEOF
 
14739
/* end confdefs.h.  */
 
14740
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
14741
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14742
#define shl_load innocuous_shl_load
 
14743
 
 
14744
/* System header to define __stub macros and hopefully few prototypes,
 
14745
    which can conflict with char shl_load (); below.
 
14746
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14747
    <limits.h> exists even on freestanding compilers.  */
 
14748
 
 
14749
#ifdef __STDC__
 
14750
# include <limits.h>
 
14751
#else
 
14752
# include <assert.h>
 
14753
#endif
 
14754
 
 
14755
#undef shl_load
 
14756
 
 
14757
/* Override any gcc2 internal prototype to avoid an error.  */
 
14758
#ifdef __cplusplus
 
14759
extern "C"
 
14760
{
 
14761
#endif
 
14762
/* We use char because int might match the return type of a gcc2
 
14763
   builtin and then its argument prototype would still apply.  */
 
14764
char shl_load ();
 
14765
/* The GNU C library defines this for functions which it implements
 
14766
    to always fail with ENOSYS.  Some functions are actually named
 
14767
    something starting with __ and the normal name is an alias.  */
 
14768
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
14769
choke me
 
14770
#else
 
14771
char (*f) () = shl_load;
 
14772
#endif
 
14773
#ifdef __cplusplus
 
14774
}
 
14775
#endif
 
14776
 
 
14777
int
 
14778
main ()
 
14779
{
 
14780
return f != shl_load;
 
14781
  ;
 
14782
  return 0;
 
14783
}
 
14784
_ACEOF
 
14785
rm -f conftest.$ac_objext conftest$ac_exeext
 
14786
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14787
  (eval $ac_link) 2>conftest.er1
 
14788
  ac_status=$?
 
14789
  grep -v '^ *+' conftest.er1 >conftest.err
 
14790
  rm -f conftest.er1
 
14791
  cat conftest.err >&5
 
14792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14793
  (exit $ac_status); } &&
 
14794
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14796
  (eval $ac_try) 2>&5
 
14797
  ac_status=$?
 
14798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14799
  (exit $ac_status); }; } &&
 
14800
         { ac_try='test -s conftest$ac_exeext'
 
14801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14802
  (eval $ac_try) 2>&5
 
14803
  ac_status=$?
 
14804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14805
  (exit $ac_status); }; }; then
 
14806
  ac_cv_func_shl_load=yes
 
14807
else
 
14808
  echo "$as_me: failed program was:" >&5
 
14809
sed 's/^/| /' conftest.$ac_ext >&5
 
14810
 
 
14811
ac_cv_func_shl_load=no
 
14812
fi
 
14813
rm -f conftest.err conftest.$ac_objext \
 
14814
      conftest$ac_exeext conftest.$ac_ext
 
14815
fi
 
14816
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
14817
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
14818
if test $ac_cv_func_shl_load = yes; then
 
14819
  lt_cv_dlopen="shl_load"
 
14820
else
 
14821
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
14822
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
14823
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
14824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14825
else
 
14826
  ac_check_lib_save_LIBS=$LIBS
 
14827
LIBS="-ldld  $LIBS"
 
14828
cat >conftest.$ac_ext <<_ACEOF
 
14829
/* confdefs.h.  */
 
14830
_ACEOF
 
14831
cat confdefs.h >>conftest.$ac_ext
 
14832
cat >>conftest.$ac_ext <<_ACEOF
 
14833
/* end confdefs.h.  */
 
14834
 
 
14835
/* Override any gcc2 internal prototype to avoid an error.  */
 
14836
#ifdef __cplusplus
 
14837
extern "C"
 
14838
#endif
 
14839
/* We use char because int might match the return type of a gcc2
 
14840
   builtin and then its argument prototype would still apply.  */
 
14841
char shl_load ();
 
14842
int
 
14843
main ()
 
14844
{
 
14845
shl_load ();
 
14846
  ;
 
14847
  return 0;
 
14848
}
 
14849
_ACEOF
 
14850
rm -f conftest.$ac_objext conftest$ac_exeext
 
14851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14852
  (eval $ac_link) 2>conftest.er1
 
14853
  ac_status=$?
 
14854
  grep -v '^ *+' conftest.er1 >conftest.err
 
14855
  rm -f conftest.er1
 
14856
  cat conftest.err >&5
 
14857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14858
  (exit $ac_status); } &&
 
14859
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14861
  (eval $ac_try) 2>&5
 
14862
  ac_status=$?
 
14863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14864
  (exit $ac_status); }; } &&
 
14865
         { ac_try='test -s conftest$ac_exeext'
 
14866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14867
  (eval $ac_try) 2>&5
 
14868
  ac_status=$?
 
14869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14870
  (exit $ac_status); }; }; then
 
14871
  ac_cv_lib_dld_shl_load=yes
 
14872
else
 
14873
  echo "$as_me: failed program was:" >&5
 
14874
sed 's/^/| /' conftest.$ac_ext >&5
 
14875
 
 
14876
ac_cv_lib_dld_shl_load=no
 
14877
fi
 
14878
rm -f conftest.err conftest.$ac_objext \
 
14879
      conftest$ac_exeext conftest.$ac_ext
 
14880
LIBS=$ac_check_lib_save_LIBS
 
14881
fi
 
14882
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
14883
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
14884
if test $ac_cv_lib_dld_shl_load = yes; then
 
14885
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
14886
else
 
14887
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
14888
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
14889
if test "${ac_cv_func_dlopen+set}" = set; then
 
14890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14891
else
 
14892
  cat >conftest.$ac_ext <<_ACEOF
 
14893
/* confdefs.h.  */
 
14894
_ACEOF
 
14895
cat confdefs.h >>conftest.$ac_ext
 
14896
cat >>conftest.$ac_ext <<_ACEOF
 
14897
/* end confdefs.h.  */
 
14898
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
14899
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14900
#define dlopen innocuous_dlopen
 
14901
 
 
14902
/* System header to define __stub macros and hopefully few prototypes,
 
14903
    which can conflict with char dlopen (); below.
 
14904
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14905
    <limits.h> exists even on freestanding compilers.  */
 
14906
 
 
14907
#ifdef __STDC__
 
14908
# include <limits.h>
 
14909
#else
 
14910
# include <assert.h>
 
14911
#endif
 
14912
 
 
14913
#undef dlopen
 
14914
 
 
14915
/* Override any gcc2 internal prototype to avoid an error.  */
 
14916
#ifdef __cplusplus
 
14917
extern "C"
 
14918
{
 
14919
#endif
 
14920
/* We use char because int might match the return type of a gcc2
 
14921
   builtin and then its argument prototype would still apply.  */
 
14922
char dlopen ();
 
14923
/* The GNU C library defines this for functions which it implements
 
14924
    to always fail with ENOSYS.  Some functions are actually named
 
14925
    something starting with __ and the normal name is an alias.  */
 
14926
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
14927
choke me
 
14928
#else
 
14929
char (*f) () = dlopen;
 
14930
#endif
 
14931
#ifdef __cplusplus
 
14932
}
 
14933
#endif
 
14934
 
 
14935
int
 
14936
main ()
 
14937
{
 
14938
return f != dlopen;
 
14939
  ;
 
14940
  return 0;
 
14941
}
 
14942
_ACEOF
 
14943
rm -f conftest.$ac_objext conftest$ac_exeext
 
14944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14945
  (eval $ac_link) 2>conftest.er1
 
14946
  ac_status=$?
 
14947
  grep -v '^ *+' conftest.er1 >conftest.err
 
14948
  rm -f conftest.er1
 
14949
  cat conftest.err >&5
 
14950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14951
  (exit $ac_status); } &&
 
14952
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14954
  (eval $ac_try) 2>&5
 
14955
  ac_status=$?
 
14956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14957
  (exit $ac_status); }; } &&
 
14958
         { ac_try='test -s conftest$ac_exeext'
 
14959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14960
  (eval $ac_try) 2>&5
 
14961
  ac_status=$?
 
14962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14963
  (exit $ac_status); }; }; then
 
14964
  ac_cv_func_dlopen=yes
 
14965
else
 
14966
  echo "$as_me: failed program was:" >&5
 
14967
sed 's/^/| /' conftest.$ac_ext >&5
 
14968
 
 
14969
ac_cv_func_dlopen=no
 
14970
fi
 
14971
rm -f conftest.err conftest.$ac_objext \
 
14972
      conftest$ac_exeext conftest.$ac_ext
 
14973
fi
 
14974
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
14975
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
14976
if test $ac_cv_func_dlopen = yes; then
 
14977
  lt_cv_dlopen="dlopen"
 
14978
else
 
14979
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14980
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14981
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14983
else
 
14984
  ac_check_lib_save_LIBS=$LIBS
 
14985
LIBS="-ldl  $LIBS"
 
14986
cat >conftest.$ac_ext <<_ACEOF
 
14987
/* confdefs.h.  */
 
14988
_ACEOF
 
14989
cat confdefs.h >>conftest.$ac_ext
 
14990
cat >>conftest.$ac_ext <<_ACEOF
 
14991
/* end confdefs.h.  */
 
14992
 
 
14993
/* Override any gcc2 internal prototype to avoid an error.  */
 
14994
#ifdef __cplusplus
 
14995
extern "C"
 
14996
#endif
 
14997
/* We use char because int might match the return type of a gcc2
 
14998
   builtin and then its argument prototype would still apply.  */
 
14999
char dlopen ();
 
15000
int
 
15001
main ()
 
15002
{
 
15003
dlopen ();
 
15004
  ;
 
15005
  return 0;
 
15006
}
 
15007
_ACEOF
 
15008
rm -f conftest.$ac_objext conftest$ac_exeext
 
15009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15010
  (eval $ac_link) 2>conftest.er1
 
15011
  ac_status=$?
 
15012
  grep -v '^ *+' conftest.er1 >conftest.err
 
15013
  rm -f conftest.er1
 
15014
  cat conftest.err >&5
 
15015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15016
  (exit $ac_status); } &&
 
15017
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
15018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15019
  (eval $ac_try) 2>&5
 
15020
  ac_status=$?
 
15021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15022
  (exit $ac_status); }; } &&
 
15023
         { ac_try='test -s conftest$ac_exeext'
 
15024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15025
  (eval $ac_try) 2>&5
 
15026
  ac_status=$?
 
15027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15028
  (exit $ac_status); }; }; then
 
15029
  ac_cv_lib_dl_dlopen=yes
 
15030
else
 
15031
  echo "$as_me: failed program was:" >&5
 
15032
sed 's/^/| /' conftest.$ac_ext >&5
 
15033
 
 
15034
ac_cv_lib_dl_dlopen=no
 
15035
fi
 
15036
rm -f conftest.err conftest.$ac_objext \
 
15037
      conftest$ac_exeext conftest.$ac_ext
 
15038
LIBS=$ac_check_lib_save_LIBS
 
15039
fi
 
15040
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
15041
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
15042
if test $ac_cv_lib_dl_dlopen = yes; then
 
15043
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
15044
else
 
15045
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
15046
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
15047
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
15048
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15049
else
 
15050
  ac_check_lib_save_LIBS=$LIBS
 
15051
LIBS="-lsvld  $LIBS"
 
15052
cat >conftest.$ac_ext <<_ACEOF
 
15053
/* confdefs.h.  */
 
15054
_ACEOF
 
15055
cat confdefs.h >>conftest.$ac_ext
 
15056
cat >>conftest.$ac_ext <<_ACEOF
 
15057
/* end confdefs.h.  */
 
15058
 
 
15059
/* Override any gcc2 internal prototype to avoid an error.  */
 
15060
#ifdef __cplusplus
 
15061
extern "C"
 
15062
#endif
 
15063
/* We use char because int might match the return type of a gcc2
 
15064
   builtin and then its argument prototype would still apply.  */
 
15065
char dlopen ();
 
15066
int
 
15067
main ()
 
15068
{
 
15069
dlopen ();
 
15070
  ;
 
15071
  return 0;
 
15072
}
 
15073
_ACEOF
 
15074
rm -f conftest.$ac_objext conftest$ac_exeext
 
15075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15076
  (eval $ac_link) 2>conftest.er1
 
15077
  ac_status=$?
 
15078
  grep -v '^ *+' conftest.er1 >conftest.err
 
15079
  rm -f conftest.er1
 
15080
  cat conftest.err >&5
 
15081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15082
  (exit $ac_status); } &&
 
15083
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
15084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15085
  (eval $ac_try) 2>&5
 
15086
  ac_status=$?
 
15087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15088
  (exit $ac_status); }; } &&
 
15089
         { ac_try='test -s conftest$ac_exeext'
 
15090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15091
  (eval $ac_try) 2>&5
 
15092
  ac_status=$?
 
15093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15094
  (exit $ac_status); }; }; then
 
15095
  ac_cv_lib_svld_dlopen=yes
 
15096
else
 
15097
  echo "$as_me: failed program was:" >&5
 
15098
sed 's/^/| /' conftest.$ac_ext >&5
 
15099
 
 
15100
ac_cv_lib_svld_dlopen=no
 
15101
fi
 
15102
rm -f conftest.err conftest.$ac_objext \
 
15103
      conftest$ac_exeext conftest.$ac_ext
 
15104
LIBS=$ac_check_lib_save_LIBS
 
15105
fi
 
15106
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
15107
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
15108
if test $ac_cv_lib_svld_dlopen = yes; then
 
15109
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
15110
else
 
15111
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
15112
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
15113
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
15114
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15115
else
 
15116
  ac_check_lib_save_LIBS=$LIBS
 
15117
LIBS="-ldld  $LIBS"
 
15118
cat >conftest.$ac_ext <<_ACEOF
 
15119
/* confdefs.h.  */
 
15120
_ACEOF
 
15121
cat confdefs.h >>conftest.$ac_ext
 
15122
cat >>conftest.$ac_ext <<_ACEOF
 
15123
/* end confdefs.h.  */
 
15124
 
 
15125
/* Override any gcc2 internal prototype to avoid an error.  */
 
15126
#ifdef __cplusplus
 
15127
extern "C"
 
15128
#endif
 
15129
/* We use char because int might match the return type of a gcc2
 
15130
   builtin and then its argument prototype would still apply.  */
 
15131
char dld_link ();
 
15132
int
 
15133
main ()
 
15134
{
 
15135
dld_link ();
 
15136
  ;
 
15137
  return 0;
 
15138
}
 
15139
_ACEOF
 
15140
rm -f conftest.$ac_objext conftest$ac_exeext
 
15141
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15142
  (eval $ac_link) 2>conftest.er1
 
15143
  ac_status=$?
 
15144
  grep -v '^ *+' conftest.er1 >conftest.err
 
15145
  rm -f conftest.er1
 
15146
  cat conftest.err >&5
 
15147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15148
  (exit $ac_status); } &&
 
15149
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
15150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15151
  (eval $ac_try) 2>&5
 
15152
  ac_status=$?
 
15153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15154
  (exit $ac_status); }; } &&
 
15155
         { ac_try='test -s conftest$ac_exeext'
 
15156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15157
  (eval $ac_try) 2>&5
 
15158
  ac_status=$?
 
15159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15160
  (exit $ac_status); }; }; then
 
15161
  ac_cv_lib_dld_dld_link=yes
 
15162
else
 
15163
  echo "$as_me: failed program was:" >&5
 
15164
sed 's/^/| /' conftest.$ac_ext >&5
 
15165
 
 
15166
ac_cv_lib_dld_dld_link=no
 
15167
fi
 
15168
rm -f conftest.err conftest.$ac_objext \
 
15169
      conftest$ac_exeext conftest.$ac_ext
 
15170
LIBS=$ac_check_lib_save_LIBS
 
15171
fi
 
15172
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
15173
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
15174
if test $ac_cv_lib_dld_dld_link = yes; then
 
15175
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
15176
fi
 
15177
 
 
15178
              
 
15179
fi
 
15180
 
 
15181
            
 
15182
fi
 
15183
 
 
15184
          
 
15185
fi
 
15186
 
 
15187
        
 
15188
fi
 
15189
 
 
15190
      
 
15191
fi
 
15192
 
 
15193
    ;;
 
15194
  esac
 
15195
 
 
15196
  if test "x$lt_cv_dlopen" != xno; then
 
15197
    enable_dlopen=yes
 
15198
  else
 
15199
    enable_dlopen=no
 
15200
  fi
 
15201
 
 
15202
  case $lt_cv_dlopen in
 
15203
  dlopen)
 
15204
    save_CPPFLAGS="$CPPFLAGS"
 
15205
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
15206
 
 
15207
    save_LDFLAGS="$LDFLAGS"
 
15208
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
15209
 
 
15210
    save_LIBS="$LIBS"
 
15211
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
15212
 
 
15213
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
15214
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
15215
if test "${lt_cv_dlopen_self+set}" = set; then
 
15216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15217
else
 
15218
          if test "$cross_compiling" = yes; then :
 
15219
  lt_cv_dlopen_self=cross
 
15220
else
 
15221
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
15222
  lt_status=$lt_dlunknown
 
15223
  cat > conftest.$ac_ext <<EOF
 
15224
#line __oline__ "configure"
 
15225
#include "confdefs.h"
 
15226
 
 
15227
#if HAVE_DLFCN_H
 
15228
#include <dlfcn.h>
 
15229
#endif
 
15230
 
 
15231
#include <stdio.h>
 
15232
 
 
15233
#ifdef RTLD_GLOBAL
 
15234
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
15235
#else
 
15236
#  ifdef DL_GLOBAL
 
15237
#    define LT_DLGLOBAL         DL_GLOBAL
 
15238
#  else
 
15239
#    define LT_DLGLOBAL         0
 
15240
#  endif
 
15241
#endif
 
15242
 
 
15243
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
15244
   find out it does not work in some platform. */
 
15245
#ifndef LT_DLLAZY_OR_NOW
 
15246
#  ifdef RTLD_LAZY
 
15247
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
15248
#  else
 
15249
#    ifdef DL_LAZY
 
15250
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
15251
#    else
 
15252
#      ifdef RTLD_NOW
 
15253
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
15254
#      else
 
15255
#        ifdef DL_NOW
 
15256
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
15257
#        else
 
15258
#          define LT_DLLAZY_OR_NOW      0
 
15259
#        endif
 
15260
#      endif
 
15261
#    endif
 
15262
#  endif
 
15263
#endif
 
15264
 
 
15265
#ifdef __cplusplus
 
15266
extern "C" void exit (int);
 
15267
#endif
 
15268
 
 
15269
void fnord() { int i=42;}
 
15270
int main ()
 
15271
{
 
15272
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
15273
  int status = $lt_dlunknown;
 
15274
 
 
15275
  if (self)
 
15276
    {
 
15277
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
15278
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
15279
      /* dlclose (self); */
 
15280
    }
 
15281
 
 
15282
    exit (status);
 
15283
}
 
15284
EOF
 
15285
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15286
  (eval $ac_link) 2>&5
 
15287
  ac_status=$?
 
15288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15289
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
15290
    (./conftest; exit; ) 2>/dev/null
 
15291
    lt_status=$?
 
15292
    case x$lt_status in
 
15293
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
15294
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
15295
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
15296
    esac
 
15297
  else :
 
15298
    # compilation failed
 
15299
    lt_cv_dlopen_self=no
 
15300
  fi
 
15301
fi
 
15302
rm -fr conftest*
 
15303
 
 
15304
    
 
15305
fi
 
15306
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
15307
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
15308
 
 
15309
    if test "x$lt_cv_dlopen_self" = xyes; then
 
15310
      LDFLAGS="$LDFLAGS $link_static_flag"
 
15311
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
15312
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
15313
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
15314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15315
else
 
15316
          if test "$cross_compiling" = yes; then :
 
15317
  lt_cv_dlopen_self_static=cross
 
15318
else
 
15319
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
15320
  lt_status=$lt_dlunknown
 
15321
  cat > conftest.$ac_ext <<EOF
 
15322
#line __oline__ "configure"
 
15323
#include "confdefs.h"
 
15324
 
 
15325
#if HAVE_DLFCN_H
 
15326
#include <dlfcn.h>
 
15327
#endif
 
15328
 
 
15329
#include <stdio.h>
 
15330
 
 
15331
#ifdef RTLD_GLOBAL
 
15332
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
15333
#else
 
15334
#  ifdef DL_GLOBAL
 
15335
#    define LT_DLGLOBAL         DL_GLOBAL
 
15336
#  else
 
15337
#    define LT_DLGLOBAL         0
 
15338
#  endif
 
15339
#endif
 
15340
 
 
15341
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
15342
   find out it does not work in some platform. */
 
15343
#ifndef LT_DLLAZY_OR_NOW
 
15344
#  ifdef RTLD_LAZY
 
15345
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
15346
#  else
 
15347
#    ifdef DL_LAZY
 
15348
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
15349
#    else
 
15350
#      ifdef RTLD_NOW
 
15351
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
15352
#      else
 
15353
#        ifdef DL_NOW
 
15354
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
15355
#        else
 
15356
#          define LT_DLLAZY_OR_NOW      0
 
15357
#        endif
 
15358
#      endif
 
15359
#    endif
 
15360
#  endif
 
15361
#endif
 
15362
 
 
15363
#ifdef __cplusplus
 
15364
extern "C" void exit (int);
 
15365
#endif
 
15366
 
 
15367
void fnord() { int i=42;}
 
15368
int main ()
 
15369
{
 
15370
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
15371
  int status = $lt_dlunknown;
 
15372
 
 
15373
  if (self)
 
15374
    {
 
15375
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
15376
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
15377
      /* dlclose (self); */
 
15378
    }
 
15379
 
 
15380
    exit (status);
 
15381
}
 
15382
EOF
 
15383
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15384
  (eval $ac_link) 2>&5
 
15385
  ac_status=$?
 
15386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15387
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
15388
    (./conftest; exit; ) 2>/dev/null
 
15389
    lt_status=$?
 
15390
    case x$lt_status in
 
15391
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
15392
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
15393
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
15394
    esac
 
15395
  else :
 
15396
    # compilation failed
 
15397
    lt_cv_dlopen_self_static=no
 
15398
  fi
 
15399
fi
 
15400
rm -fr conftest*
 
15401
 
 
15402
      
 
15403
fi
 
15404
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
15405
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
15406
    fi
 
15407
 
 
15408
    CPPFLAGS="$save_CPPFLAGS"
 
15409
    LDFLAGS="$save_LDFLAGS"
 
15410
    LIBS="$save_LIBS"
 
15411
    ;;
 
15412
  esac
 
15413
 
 
15414
  case $lt_cv_dlopen_self in
 
15415
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
15416
  *) enable_dlopen_self=unknown ;;
 
15417
  esac
 
15418
 
 
15419
  case $lt_cv_dlopen_self_static in
 
15420
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
15421
  *) enable_dlopen_self_static=unknown ;;
 
15422
  esac
 
15423
fi
 
15424
 
 
15425
 
 
15426
# The else clause should only fire when bootstrapping the
 
15427
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15428
# with your package, and you will get complaints that there are
 
15429
# no rules to generate ltmain.sh.
 
15430
if test -f "$ltmain"; then
 
15431
  # See if we are running on zsh, and set the options which allow our commands through
 
15432
  # without removal of \ escapes.
 
15433
  if test -n "${ZSH_VERSION+set}" ; then
 
15434
    setopt NO_GLOB_SUBST
 
15435
  fi
 
15436
  # Now quote all the things that may contain metacharacters while being
 
15437
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15438
  # variables and quote the copies for generation of the libtool script.
 
15439
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15440
    SED SHELL STRIP \
 
15441
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15442
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15443
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15444
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15445
    lt_cv_sys_global_symbol_to_c_name_address \
 
15446
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15447
    old_postinstall_cmds old_postuninstall_cmds \
 
15448
    compiler_CXX \
 
15449
    CC_CXX \
 
15450
    LD_CXX \
 
15451
    lt_prog_compiler_wl_CXX \
 
15452
    lt_prog_compiler_pic_CXX \
 
15453
    lt_prog_compiler_static_CXX \
 
15454
    lt_prog_compiler_no_builtin_flag_CXX \
 
15455
    export_dynamic_flag_spec_CXX \
 
15456
    thread_safe_flag_spec_CXX \
 
15457
    whole_archive_flag_spec_CXX \
 
15458
    enable_shared_with_static_runtimes_CXX \
 
15459
    old_archive_cmds_CXX \
 
15460
    old_archive_from_new_cmds_CXX \
 
15461
    predep_objects_CXX \
 
15462
    postdep_objects_CXX \
 
15463
    predeps_CXX \
 
15464
    postdeps_CXX \
 
15465
    compiler_lib_search_path_CXX \
 
15466
    archive_cmds_CXX \
 
15467
    archive_expsym_cmds_CXX \
 
15468
    postinstall_cmds_CXX \
 
15469
    postuninstall_cmds_CXX \
 
15470
    old_archive_from_expsyms_cmds_CXX \
 
15471
    allow_undefined_flag_CXX \
 
15472
    no_undefined_flag_CXX \
 
15473
    export_symbols_cmds_CXX \
 
15474
    hardcode_libdir_flag_spec_CXX \
 
15475
    hardcode_libdir_flag_spec_ld_CXX \
 
15476
    hardcode_libdir_separator_CXX \
 
15477
    hardcode_automatic_CXX \
 
15478
    module_cmds_CXX \
 
15479
    module_expsym_cmds_CXX \
 
15480
    lt_cv_prog_compiler_c_o_CXX \
 
15481
    exclude_expsyms_CXX \
 
15482
    include_expsyms_CXX; do
 
15483
 
 
15484
    case $var in
 
15485
    old_archive_cmds_CXX | \
 
15486
    old_archive_from_new_cmds_CXX | \
 
15487
    archive_cmds_CXX | \
 
15488
    archive_expsym_cmds_CXX | \
 
15489
    module_cmds_CXX | \
 
15490
    module_expsym_cmds_CXX | \
 
15491
    old_archive_from_expsyms_cmds_CXX | \
 
15492
    export_symbols_cmds_CXX | \
 
15493
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15494
    postinstall_cmds | postuninstall_cmds | \
 
15495
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15496
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15497
      # Double-quote double-evaled strings.
 
15498
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15499
      ;;
 
15500
    *)
 
15501
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15502
      ;;
 
15503
    esac
 
15504
  done
 
15505
 
 
15506
  case $lt_echo in
 
15507
  *'\$0 --fallback-echo"')
 
15508
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15509
    ;;
 
15510
  esac
 
15511
 
 
15512
cfgfile="$ofile"
 
15513
 
 
15514
  cat <<__EOF__ >> "$cfgfile"
 
15515
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15516
 
 
15517
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15518
 
 
15519
# Shell to use when invoking shell scripts.
 
15520
SHELL=$lt_SHELL
 
15521
 
 
15522
# Whether or not to build shared libraries.
 
15523
build_libtool_libs=$enable_shared
 
15524
 
 
15525
# Whether or not to build static libraries.
 
15526
build_old_libs=$enable_static
 
15527
 
 
15528
# Whether or not to add -lc for building shared libraries.
 
15529
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
15530
 
 
15531
# Whether or not to disallow shared libs when runtime libs are static
 
15532
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
15533
 
 
15534
# Whether or not to optimize for fast installation.
 
15535
fast_install=$enable_fast_install
 
15536
 
 
15537
# The host system.
 
15538
host_alias=$host_alias
 
15539
host=$host
 
15540
 
 
15541
# An echo program that does not interpret backslashes.
 
15542
echo=$lt_echo
 
15543
 
 
15544
# The archiver.
 
15545
AR=$lt_AR
 
15546
AR_FLAGS=$lt_AR_FLAGS
 
15547
 
 
15548
# A C compiler.
 
15549
LTCC=$lt_LTCC
 
15550
 
 
15551
# A language-specific compiler.
 
15552
CC=$lt_compiler_CXX
 
15553
 
 
15554
# Is the compiler the GNU C compiler?
 
15555
with_gcc=$GCC_CXX
 
15556
 
 
15557
# An ERE matcher.
 
15558
EGREP=$lt_EGREP
 
15559
 
 
15560
# The linker used to build libraries.
 
15561
LD=$lt_LD_CXX
 
15562
 
 
15563
# Whether we need hard or soft links.
 
15564
LN_S=$lt_LN_S
 
15565
 
 
15566
# A BSD-compatible nm program.
 
15567
NM=$lt_NM
 
15568
 
 
15569
# A symbol stripping program
 
15570
STRIP=$lt_STRIP
 
15571
 
 
15572
# Used to examine libraries when file_magic_cmd begins "file"
 
15573
MAGIC_CMD=$MAGIC_CMD
 
15574
 
 
15575
# Used on cygwin: DLL creation program.
 
15576
DLLTOOL="$DLLTOOL"
 
15577
 
 
15578
# Used on cygwin: object dumper.
 
15579
OBJDUMP="$OBJDUMP"
 
15580
 
 
15581
# Used on cygwin: assembler.
 
15582
AS="$AS"
 
15583
 
 
15584
# The name of the directory that contains temporary libtool files.
 
15585
objdir=$objdir
 
15586
 
 
15587
# How to create reloadable object files.
 
15588
reload_flag=$lt_reload_flag
 
15589
reload_cmds=$lt_reload_cmds
 
15590
 
 
15591
# How to pass a linker flag through the compiler.
 
15592
wl=$lt_lt_prog_compiler_wl_CXX
 
15593
 
 
15594
# Object file suffix (normally "o").
 
15595
objext="$ac_objext"
 
15596
 
 
15597
# Old archive suffix (normally "a").
 
15598
libext="$libext"
 
15599
 
 
15600
# Shared library suffix (normally ".so").
 
15601
shrext_cmds='$shrext_cmds'
 
15602
 
 
15603
# Executable file suffix (normally "").
 
15604
exeext="$exeext"
 
15605
 
 
15606
# Additional compiler flags for building library objects.
 
15607
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
15608
pic_mode=$pic_mode
 
15609
 
 
15610
# What is the maximum length of a command?
 
15611
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15612
 
 
15613
# Does compiler simultaneously support -c and -o options?
 
15614
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
15615
 
 
15616
# Must we lock files when doing compilation ?
 
15617
need_locks=$lt_need_locks
 
15618
 
 
15619
# Do we need the lib prefix for modules?
 
15620
need_lib_prefix=$need_lib_prefix
 
15621
 
 
15622
# Do we need a version for libraries?
 
15623
need_version=$need_version
 
15624
 
 
15625
# Whether dlopen is supported.
 
15626
dlopen_support=$enable_dlopen
 
15627
 
 
15628
# Whether dlopen of programs is supported.
 
15629
dlopen_self=$enable_dlopen_self
 
15630
 
 
15631
# Whether dlopen of statically linked programs is supported.
 
15632
dlopen_self_static=$enable_dlopen_self_static
 
15633
 
 
15634
# Compiler flag to prevent dynamic linking.
 
15635
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
15636
 
 
15637
# Compiler flag to turn off builtin functions.
 
15638
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
15639
 
 
15640
# Compiler flag to allow reflexive dlopens.
 
15641
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
15642
 
 
15643
# Compiler flag to generate shared objects directly from archives.
 
15644
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
15645
 
 
15646
# Compiler flag to generate thread-safe objects.
 
15647
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
15648
 
 
15649
# Library versioning type.
 
15650
version_type=$version_type
 
15651
 
 
15652
# Format of library name prefix.
 
15653
libname_spec=$lt_libname_spec
 
15654
 
 
15655
# List of archive names.  First name is the real one, the rest are links.
 
15656
# The last name is the one that the linker finds with -lNAME.
 
15657
library_names_spec=$lt_library_names_spec
 
15658
 
 
15659
# The coded name of the library, if different from the real name.
 
15660
soname_spec=$lt_soname_spec
 
15661
 
 
15662
# Commands used to build and install an old-style archive.
 
15663
RANLIB=$lt_RANLIB
 
15664
old_archive_cmds=$lt_old_archive_cmds_CXX
 
15665
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15666
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15667
 
 
15668
# Create an old-style archive from a shared archive.
 
15669
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
15670
 
 
15671
# Create a temporary old-style archive to link instead of a shared archive.
 
15672
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
15673
 
 
15674
# Commands used to build and install a shared archive.
 
15675
archive_cmds=$lt_archive_cmds_CXX
 
15676
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
15677
postinstall_cmds=$lt_postinstall_cmds
 
15678
postuninstall_cmds=$lt_postuninstall_cmds
 
15679
 
 
15680
# Commands used to build a loadable module (assumed same as above if empty)
 
15681
module_cmds=$lt_module_cmds_CXX
 
15682
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
15683
 
 
15684
# Commands to strip libraries.
 
15685
old_striplib=$lt_old_striplib
 
15686
striplib=$lt_striplib
 
15687
 
 
15688
# Dependencies to place before the objects being linked to create a
 
15689
# shared library.
 
15690
predep_objects=$lt_predep_objects_CXX
 
15691
 
 
15692
# Dependencies to place after the objects being linked to create a
 
15693
# shared library.
 
15694
postdep_objects=$lt_postdep_objects_CXX
 
15695
 
 
15696
# Dependencies to place before the objects being linked to create a
 
15697
# shared library.
 
15698
predeps=$lt_predeps_CXX
 
15699
 
 
15700
# Dependencies to place after the objects being linked to create a
 
15701
# shared library.
 
15702
postdeps=$lt_postdeps_CXX
 
15703
 
 
15704
# The library search path used internally by the compiler when linking
 
15705
# a shared library.
 
15706
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
15707
 
 
15708
# Method to check whether dependent libraries are shared objects.
 
15709
deplibs_check_method=$lt_deplibs_check_method
 
15710
 
 
15711
# Command to use when deplibs_check_method == file_magic.
 
15712
file_magic_cmd=$lt_file_magic_cmd
 
15713
 
 
15714
# Flag that allows shared libraries with undefined symbols to be built.
 
15715
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
15716
 
 
15717
# Flag that forces no undefined symbols.
 
15718
no_undefined_flag=$lt_no_undefined_flag_CXX
 
15719
 
 
15720
# Commands used to finish a libtool library installation in a directory.
 
15721
finish_cmds=$lt_finish_cmds
 
15722
 
 
15723
# Same as above, but a single script fragment to be evaled but not shown.
 
15724
finish_eval=$lt_finish_eval
 
15725
 
 
15726
# Take the output of nm and produce a listing of raw symbols and C names.
 
15727
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15728
 
 
15729
# Transform the output of nm in a proper C declaration
 
15730
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15731
 
 
15732
# Transform the output of nm in a C name address pair
 
15733
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15734
 
 
15735
# This is the shared library runtime path variable.
 
15736
runpath_var=$runpath_var
 
15737
 
 
15738
# This is the shared library path variable.
 
15739
shlibpath_var=$shlibpath_var
 
15740
 
 
15741
# Is shlibpath searched before the hard-coded library search path?
 
15742
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15743
 
 
15744
# How to hardcode a shared library path into an executable.
 
15745
hardcode_action=$hardcode_action_CXX
 
15746
 
 
15747
# Whether we should hardcode library paths into libraries.
 
15748
hardcode_into_libs=$hardcode_into_libs
 
15749
 
 
15750
# Flag to hardcode \$libdir into a binary during linking.
 
15751
# This must work even if \$libdir does not exist.
 
15752
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
15753
 
 
15754
# If ld is used when linking, flag to hardcode \$libdir into
 
15755
# a binary during linking. This must work even if \$libdir does
 
15756
# not exist.
 
15757
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
15758
 
 
15759
# Whether we need a single -rpath flag with a separated argument.
 
15760
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
15761
 
 
15762
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15763
# resulting binary.
 
15764
hardcode_direct=$hardcode_direct_CXX
 
15765
 
 
15766
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15767
# resulting binary.
 
15768
hardcode_minus_L=$hardcode_minus_L_CXX
 
15769
 
 
15770
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15771
# the resulting binary.
 
15772
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
15773
 
 
15774
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15775
# and all subsequent libraries and executables linked against it.
 
15776
hardcode_automatic=$hardcode_automatic_CXX
 
15777
 
 
15778
# Variables whose values should be saved in libtool wrapper scripts and
 
15779
# restored at relink time.
 
15780
variables_saved_for_relink="$variables_saved_for_relink"
 
15781
 
 
15782
# Whether libtool must link a program against all its dependency libraries.
 
15783
link_all_deplibs=$link_all_deplibs_CXX
 
15784
 
 
15785
# Compile-time system search path for libraries
 
15786
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15787
 
 
15788
# Run-time system search path for libraries
 
15789
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15790
 
 
15791
# Fix the shell variable \$srcfile for the compiler.
 
15792
fix_srcfile_path="$fix_srcfile_path_CXX"
 
15793
 
 
15794
# Set to yes if exported symbols are required.
 
15795
always_export_symbols=$always_export_symbols_CXX
 
15796
 
 
15797
# The commands to list exported symbols.
 
15798
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
15799
 
 
15800
# The commands to extract the exported symbol list from a shared archive.
 
15801
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15802
 
 
15803
# Symbols that should not be listed in the preloaded symbols.
 
15804
exclude_expsyms=$lt_exclude_expsyms_CXX
 
15805
 
 
15806
# Symbols that must always be exported.
 
15807
include_expsyms=$lt_include_expsyms_CXX
 
15808
 
 
15809
# ### END LIBTOOL TAG CONFIG: $tagname
 
15810
 
 
15811
__EOF__
 
15812
 
 
15813
 
 
15814
else
 
15815
  # If there is no Makefile yet, we rely on a make rule to execute
 
15816
  # `config.status --recheck' to rerun these tests and create the
 
15817
  # libtool script then.
 
15818
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15819
  if test -f "$ltmain_in"; then
 
15820
    test -f Makefile && make "$ltmain"
 
15821
  fi
 
15822
fi
 
15823
 
 
15824
 
 
15825
ac_ext=c
 
15826
ac_cpp='$CPP $CPPFLAGS'
 
15827
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15828
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15829
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15830
 
 
15831
CC=$lt_save_CC
 
15832
LDCXX=$LD
 
15833
LD=$lt_save_LD
 
15834
GCC=$lt_save_GCC
 
15835
with_gnu_ldcxx=$with_gnu_ld
 
15836
with_gnu_ld=$lt_save_with_gnu_ld
 
15837
lt_cv_path_LDCXX=$lt_cv_path_LD
 
15838
lt_cv_path_LD=$lt_save_path_LD
 
15839
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15840
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15841
 
 
15842
        else
 
15843
          tagname=""
 
15844
        fi
 
15845
        ;;
 
15846
 
 
15847
      F77)
 
15848
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
15849
          
 
15850
ac_ext=f
 
15851
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
15852
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15853
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
15854
 
 
15855
 
 
15856
archive_cmds_need_lc_F77=no
 
15857
allow_undefined_flag_F77=
 
15858
always_export_symbols_F77=no
 
15859
archive_expsym_cmds_F77=
 
15860
export_dynamic_flag_spec_F77=
 
15861
hardcode_direct_F77=no
 
15862
hardcode_libdir_flag_spec_F77=
 
15863
hardcode_libdir_flag_spec_ld_F77=
 
15864
hardcode_libdir_separator_F77=
 
15865
hardcode_minus_L_F77=no
 
15866
hardcode_automatic_F77=no
 
15867
module_cmds_F77=
 
15868
module_expsym_cmds_F77=
 
15869
link_all_deplibs_F77=unknown
 
15870
old_archive_cmds_F77=$old_archive_cmds
 
15871
no_undefined_flag_F77=
 
15872
whole_archive_flag_spec_F77=
 
15873
enable_shared_with_static_runtimes_F77=no
 
15874
 
 
15875
# Source file extension for f77 test sources.
 
15876
ac_ext=f
 
15877
 
 
15878
# Object file extension for compiled f77 test sources.
 
15879
objext=o
 
15880
objext_F77=$objext
 
15881
 
 
15882
# Code to be used in simple compile tests
 
15883
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
15884
 
 
15885
# Code to be used in simple link tests
 
15886
lt_simple_link_test_code="      program t\n      end\n"
 
15887
 
 
15888
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15889
 
 
15890
# If no C compiler was specified, use CC.
 
15891
LTCC=${LTCC-"$CC"}
 
15892
 
 
15893
# Allow CC to be a program name with arguments.
 
15894
compiler=$CC
 
15895
 
 
15896
 
 
15897
# Allow CC to be a program name with arguments.
 
15898
lt_save_CC="$CC"
 
15899
CC=${F77-"f77"}
 
15900
compiler=$CC
 
15901
compiler_F77=$CC
 
15902
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
15903
 
 
15904
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
15905
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
15906
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
15907
echo "${ECHO_T}$can_build_shared" >&6
 
15908
 
 
15909
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
15910
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
15911
test "$can_build_shared" = "no" && enable_shared=no
 
15912
 
 
15913
# On AIX, shared libraries and static libraries use the same namespace, and
 
15914
# are all built from PIC.
 
15915
case "$host_os" in
 
15916
aix3*)
 
15917
  test "$enable_shared" = yes && enable_static=no
 
15918
  if test -n "$RANLIB"; then
 
15919
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
15920
    postinstall_cmds='$RANLIB $lib'
 
15921
  fi
 
15922
  ;;
 
15923
aix4* | aix5*)
 
15924
  test "$enable_shared" = yes && enable_static=no
 
15925
  ;;
 
15926
esac
 
15927
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
15928
echo "${ECHO_T}$enable_shared" >&6
 
15929
 
 
15930
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
15931
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
15932
# Make sure either enable_shared or enable_static is yes.
 
15933
test "$enable_shared" = yes || enable_static=yes
 
15934
echo "$as_me:$LINENO: result: $enable_static" >&5
 
15935
echo "${ECHO_T}$enable_static" >&6
 
15936
 
 
15937
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15938
 
 
15939
GCC_F77="$G77"
 
15940
LD_F77="$LD"
 
15941
 
 
15942
lt_prog_compiler_wl_F77=
 
15943
lt_prog_compiler_pic_F77=
 
15944
lt_prog_compiler_static_F77=
 
15945
 
 
15946
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15947
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15948
 
 
15949
  if test "$GCC" = yes; then
 
15950
    lt_prog_compiler_wl_F77='-Wl,'
 
15951
    lt_prog_compiler_static_F77='-static'
 
15952
 
 
15953
    case $host_os in
 
15954
      aix*)
 
15955
      # All AIX code is PIC.
 
15956
      if test "$host_cpu" = ia64; then
 
15957
        # AIX 5 now supports IA64 processor
 
15958
        lt_prog_compiler_static_F77='-Bstatic'
 
15959
      fi
 
15960
      ;;
 
15961
 
 
15962
    amigaos*)
 
15963
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15964
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15965
      # like `-m68040'.
 
15966
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
15967
      ;;
 
15968
 
 
15969
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15970
      # PIC is the default for these OSes.
 
15971
      ;;
 
15972
 
 
15973
    mingw* | pw32* | os2*)
 
15974
      # This hack is so that the source file can tell whether it is being
 
15975
      # built for inclusion in a dll (and should export symbols for example).
 
15976
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15977
      ;;
 
15978
 
 
15979
    darwin* | rhapsody*)
 
15980
      # PIC is the default on this platform
 
15981
      # Common symbols not allowed in MH_DYLIB files
 
15982
      lt_prog_compiler_pic_F77='-fno-common'
 
15983
      ;;
 
15984
 
 
15985
    msdosdjgpp*)
 
15986
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15987
      # on systems that don't support them.
 
15988
      lt_prog_compiler_can_build_shared_F77=no
 
15989
      enable_shared=no
 
15990
      ;;
 
15991
 
 
15992
    sysv4*MP*)
 
15993
      if test -d /usr/nec; then
 
15994
        lt_prog_compiler_pic_F77=-Kconform_pic
 
15995
      fi
 
15996
      ;;
 
15997
 
 
15998
    hpux*)
 
15999
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16000
      # not for PA HP-UX.
 
16001
      case "$host_cpu" in
 
16002
      hppa*64*|ia64*)
 
16003
        # +Z the default
 
16004
        ;;
 
16005
      *)
 
16006
        lt_prog_compiler_pic_F77='-fPIC'
 
16007
        ;;
 
16008
      esac
 
16009
      ;;
 
16010
 
 
16011
    *)
 
16012
      lt_prog_compiler_pic_F77='-fPIC'
 
16013
      ;;
 
16014
    esac
 
16015
  else
 
16016
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16017
    case $host_os in
 
16018
    aix*)
 
16019
      lt_prog_compiler_wl_F77='-Wl,'
 
16020
      if test "$host_cpu" = ia64; then
 
16021
        # AIX 5 now supports IA64 processor
 
16022
        lt_prog_compiler_static_F77='-Bstatic'
 
16023
      else
 
16024
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
16025
      fi
 
16026
      ;;
 
16027
 
 
16028
    mingw* | pw32* | os2*)
 
16029
      # This hack is so that the source file can tell whether it is being
 
16030
      # built for inclusion in a dll (and should export symbols for example).
 
16031
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
16032
      ;;
 
16033
 
 
16034
    hpux9* | hpux10* | hpux11*)
 
16035
      lt_prog_compiler_wl_F77='-Wl,'
 
16036
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16037
      # not for PA HP-UX.
 
16038
      case "$host_cpu" in
 
16039
      hppa*64*|ia64*)
 
16040
        # +Z the default
 
16041
        ;;
 
16042
      *)
 
16043
        lt_prog_compiler_pic_F77='+Z'
 
16044
        ;;
 
16045
      esac
 
16046
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16047
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
16048
      ;;
 
16049
 
 
16050
    irix5* | irix6* | nonstopux*)
 
16051
      lt_prog_compiler_wl_F77='-Wl,'
 
16052
      # PIC (with -KPIC) is the default.
 
16053
      lt_prog_compiler_static_F77='-non_shared'
 
16054
      ;;
 
16055
 
 
16056
    newsos6)
 
16057
      lt_prog_compiler_pic_F77='-KPIC'
 
16058
      lt_prog_compiler_static_F77='-Bstatic'
 
16059
      ;;
 
16060
 
 
16061
    linux*)
 
16062
      case $CC in
 
16063
      icc* | ecc*)
 
16064
        lt_prog_compiler_wl_F77='-Wl,'
 
16065
        lt_prog_compiler_pic_F77='-KPIC'
 
16066
        lt_prog_compiler_static_F77='-static'
 
16067
        ;;
 
16068
      ccc*)
 
16069
        lt_prog_compiler_wl_F77='-Wl,'
 
16070
        # All Alpha code is PIC.
 
16071
        lt_prog_compiler_static_F77='-non_shared'
 
16072
        ;;
 
16073
      esac
 
16074
      ;;
 
16075
 
 
16076
    osf3* | osf4* | osf5*)
 
16077
      lt_prog_compiler_wl_F77='-Wl,'
 
16078
      # All OSF/1 code is PIC.
 
16079
      lt_prog_compiler_static_F77='-non_shared'
 
16080
      ;;
 
16081
 
 
16082
    sco3.2v5*)
 
16083
      lt_prog_compiler_pic_F77='-Kpic'
 
16084
      lt_prog_compiler_static_F77='-dn'
 
16085
      ;;
 
16086
 
 
16087
    solaris*)
 
16088
      lt_prog_compiler_wl_F77='-Wl,'
 
16089
      lt_prog_compiler_pic_F77='-KPIC'
 
16090
      lt_prog_compiler_static_F77='-Bstatic'
 
16091
      ;;
 
16092
 
 
16093
    sunos4*)
 
16094
      lt_prog_compiler_wl_F77='-Qoption ld '
 
16095
      lt_prog_compiler_pic_F77='-PIC'
 
16096
      lt_prog_compiler_static_F77='-Bstatic'
 
16097
      ;;
 
16098
 
 
16099
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16100
      lt_prog_compiler_wl_F77='-Wl,'
 
16101
      lt_prog_compiler_pic_F77='-KPIC'
 
16102
      lt_prog_compiler_static_F77='-Bstatic'
 
16103
      ;;
 
16104
 
 
16105
    sysv4*MP*)
 
16106
      if test -d /usr/nec ;then
 
16107
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
16108
        lt_prog_compiler_static_F77='-Bstatic'
 
16109
      fi
 
16110
      ;;
 
16111
 
 
16112
    uts4*)
 
16113
      lt_prog_compiler_pic_F77='-pic'
 
16114
      lt_prog_compiler_static_F77='-Bstatic'
 
16115
      ;;
 
16116
 
 
16117
    *)
 
16118
      lt_prog_compiler_can_build_shared_F77=no
 
16119
      ;;
 
16120
    esac
 
16121
  fi
 
16122
 
 
16123
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
16124
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
16125
 
 
16126
#
 
16127
# Check to make sure the PIC flag actually works.
 
16128
#
 
16129
if test -n "$lt_prog_compiler_pic_F77"; then
 
16130
  
 
16131
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
16132
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
16133
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
16134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16135
else
 
16136
  lt_prog_compiler_pic_works_F77=no
 
16137
  ac_outfile=conftest.$ac_objext
 
16138
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16139
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
16140
   # Insert the option either (1) after the last *FLAGS variable, or
 
16141
   # (2) before a word containing "conftest.", or (3) at the end.
 
16142
   # Note that $ac_compile itself does not contain backslashes and begins
 
16143
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16144
   # The option is referenced via a variable to avoid confusing sed.
 
16145
   lt_compile=`echo "$ac_compile" | $SED \
 
16146
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16147
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16148
   -e 's:$: $lt_compiler_flag:'`
 
16149
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16150
   (eval "$lt_compile" 2>conftest.err)
 
16151
   ac_status=$?
 
16152
   cat conftest.err >&5
 
16153
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16154
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16155
     # The compiler can only warn and ignore the option if not recognized
 
16156
     # So say no if there are warnings
 
16157
     if test ! -s conftest.err; then
 
16158
       lt_prog_compiler_pic_works_F77=yes
 
16159
     fi
 
16160
   fi
 
16161
   $rm conftest*
 
16162
 
 
16163
fi
 
16164
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
16165
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
16166
 
 
16167
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
16168
    case $lt_prog_compiler_pic_F77 in
 
16169
     "" | " "*) ;;
 
16170
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
16171
     esac
 
16172
else
 
16173
    lt_prog_compiler_pic_F77=
 
16174
     lt_prog_compiler_can_build_shared_F77=no
 
16175
fi
 
16176
 
 
16177
fi
 
16178
case "$host_os" in
 
16179
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16180
  *djgpp*)
 
16181
    lt_prog_compiler_pic_F77=
 
16182
    ;;
 
16183
  *)
 
16184
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
16185
    ;;
 
16186
esac
 
16187
 
 
16188
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16189
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16190
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
16191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16192
else
 
16193
  lt_cv_prog_compiler_c_o_F77=no
 
16194
   $rm -r conftest 2>/dev/null
 
16195
   mkdir conftest
 
16196
   cd conftest
 
16197
   mkdir out
 
16198
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16199
 
 
16200
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16201
   # Insert the option either (1) after the last *FLAGS variable, or
 
16202
   # (2) before a word containing "conftest.", or (3) at the end.
 
16203
   # Note that $ac_compile itself does not contain backslashes and begins
 
16204
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16205
   lt_compile=`echo "$ac_compile" | $SED \
 
16206
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16207
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16208
   -e 's:$: $lt_compiler_flag:'`
 
16209
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16210
   (eval "$lt_compile" 2>out/conftest.err)
 
16211
   ac_status=$?
 
16212
   cat out/conftest.err >&5
 
16213
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16214
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16215
   then
 
16216
     # The compiler can only warn and ignore the option if not recognized
 
16217
     # So say no if there are warnings
 
16218
     if test ! -s out/conftest.err; then
 
16219
       lt_cv_prog_compiler_c_o_F77=yes
 
16220
     fi
 
16221
   fi
 
16222
   chmod u+w .
 
16223
   $rm conftest*
 
16224
   # SGI C++ compiler will create directory out/ii_files/ for
 
16225
   # template instantiation
 
16226
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16227
   $rm out/* && rmdir out
 
16228
   cd ..
 
16229
   rmdir conftest
 
16230
   $rm conftest*
 
16231
 
 
16232
fi
 
16233
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
16234
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
16235
 
 
16236
 
 
16237
hard_links="nottested"
 
16238
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
16239
  # do not overwrite the value of need_locks provided by the user
 
16240
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16241
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16242
  hard_links=yes
 
16243
  $rm conftest*
 
16244
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16245
  touch conftest.a
 
16246
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16247
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16248
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16249
echo "${ECHO_T}$hard_links" >&6
 
16250
  if test "$hard_links" = no; then
 
16251
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16252
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16253
    need_locks=warn
 
16254
  fi
 
16255
else
 
16256
  need_locks=no
 
16257
fi
 
16258
 
 
16259
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16260
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16261
 
 
16262
  runpath_var=
 
16263
  allow_undefined_flag_F77=
 
16264
  enable_shared_with_static_runtimes_F77=no
 
16265
  archive_cmds_F77=
 
16266
  archive_expsym_cmds_F77=
 
16267
  old_archive_From_new_cmds_F77=
 
16268
  old_archive_from_expsyms_cmds_F77=
 
16269
  export_dynamic_flag_spec_F77=
 
16270
  whole_archive_flag_spec_F77=
 
16271
  thread_safe_flag_spec_F77=
 
16272
  hardcode_libdir_flag_spec_F77=
 
16273
  hardcode_libdir_flag_spec_ld_F77=
 
16274
  hardcode_libdir_separator_F77=
 
16275
  hardcode_direct_F77=no
 
16276
  hardcode_minus_L_F77=no
 
16277
  hardcode_shlibpath_var_F77=unsupported
 
16278
  link_all_deplibs_F77=unknown
 
16279
  hardcode_automatic_F77=no
 
16280
  module_cmds_F77=
 
16281
  module_expsym_cmds_F77=
 
16282
  always_export_symbols_F77=no
 
16283
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16284
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16285
  # included in the symbol list
 
16286
  include_expsyms_F77=
 
16287
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16288
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16289
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16290
  # as well as any symbol that contains `d'.
 
16291
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
16292
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16293
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16294
  # the symbol is explicitly referenced.  Since portable code cannot
 
16295
  # rely on this symbol name, it's probably fine to never include it in
 
16296
  # preloaded symbol tables.
 
16297
  extract_expsyms_cmds=
 
16298
 
 
16299
  case $host_os in
 
16300
  cygwin* | mingw* | pw32*)
 
16301
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16302
    # When not using gcc, we currently assume that we are using
 
16303
    # Microsoft Visual C++.
 
16304
    if test "$GCC" != yes; then
 
16305
      with_gnu_ld=no
 
16306
    fi
 
16307
    ;;
 
16308
  openbsd*)
 
16309
    with_gnu_ld=no
 
16310
    ;;
 
16311
  esac
 
16312
 
 
16313
  ld_shlibs_F77=yes
 
16314
  if test "$with_gnu_ld" = yes; then
 
16315
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16316
    wlarc='${wl}'
 
16317
 
 
16318
    # See if GNU ld supports shared libraries.
 
16319
    case $host_os in
 
16320
    aix3* | aix4* | aix5*)
 
16321
      # On AIX/PPC, the GNU linker is very broken
 
16322
      if test "$host_cpu" != ia64; then
 
16323
        ld_shlibs_F77=no
 
16324
        cat <<EOF 1>&2
 
16325
 
 
16326
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16327
*** to be unable to reliably create shared libraries on AIX.
 
16328
*** Therefore, libtool is disabling shared libraries support.  If you
 
16329
*** really care for shared libraries, you may want to modify your PATH
 
16330
*** so that a non-GNU linker is found, and then restart.
 
16331
 
 
16332
EOF
 
16333
      fi
 
16334
      ;;
 
16335
 
 
16336
    amigaos*)
 
16337
      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)'
 
16338
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16339
      hardcode_minus_L_F77=yes
 
16340
 
 
16341
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16342
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16343
      # to version 4, is to share data among multiple programs linked
 
16344
      # with the same dynamic library.  Since this doesn't match the
 
16345
      # behavior of shared libraries on other platforms, we can't use
 
16346
      # them.
 
16347
      ld_shlibs_F77=no
 
16348
      ;;
 
16349
 
 
16350
    beos*)
 
16351
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16352
        allow_undefined_flag_F77=unsupported
 
16353
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16354
        # support --undefined.  This deserves some investigation.  FIXME
 
16355
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16356
      else
 
16357
        ld_shlibs_F77=no
 
16358
      fi
 
16359
      ;;
 
16360
 
 
16361
    cygwin* | mingw* | pw32*)
 
16362
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
16363
      # as there is no search path for DLLs.
 
16364
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16365
      allow_undefined_flag_F77=unsupported
 
16366
      always_export_symbols_F77=no
 
16367
      enable_shared_with_static_runtimes_F77=yes
 
16368
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16369
 
 
16370
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16371
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16372
        # If the export-symbols file already is a .def file (1st line
 
16373
        # is EXPORTS), use it as is; otherwise, prepend...
 
16374
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16375
          cp $export_symbols $output_objdir/$soname.def;
 
16376
        else
 
16377
          echo EXPORTS > $output_objdir/$soname.def;
 
16378
          cat $export_symbols >> $output_objdir/$soname.def;
 
16379
        fi~
 
16380
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16381
      else
 
16382
        ld_shlibs=no
 
16383
      fi
 
16384
      ;;
 
16385
 
 
16386
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16387
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16388
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16389
        wlarc=
 
16390
      else
 
16391
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16392
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16393
      fi
 
16394
      ;;
 
16395
 
 
16396
    solaris* | sysv5*)
 
16397
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16398
        ld_shlibs_F77=no
 
16399
        cat <<EOF 1>&2
 
16400
 
 
16401
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16402
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16403
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16404
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16405
*** your PATH or compiler configuration so that the native linker is
 
16406
*** used, and then restart.
 
16407
 
 
16408
EOF
 
16409
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16410
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16411
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16412
      else
 
16413
        ld_shlibs_F77=no
 
16414
      fi
 
16415
      ;;
 
16416
 
 
16417
    sunos4*)
 
16418
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16419
      wlarc=
 
16420
      hardcode_direct_F77=yes
 
16421
      hardcode_shlibpath_var_F77=no
 
16422
      ;;
 
16423
 
 
16424
  linux*)
 
16425
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16426
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16427
        archive_cmds_F77="$tmp_archive_cmds"
 
16428
      supports_anon_versioning=no
 
16429
      case `$LD -v 2>/dev/null` in
 
16430
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16431
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16432
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16433
        *\ 2.11.*) ;; # other 2.11 versions
 
16434
        *) supports_anon_versioning=yes ;;
 
16435
      esac
 
16436
      if test $supports_anon_versioning = yes; then
 
16437
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
16438
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16439
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16440
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16441
      else
 
16442
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
16443
      fi
 
16444
      link_all_deplibs_F77=no
 
16445
    else
 
16446
      ld_shlibs_F77=no
 
16447
    fi
 
16448
    ;;
 
16449
 
 
16450
    *)
 
16451
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16452
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16453
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16454
      else
 
16455
        ld_shlibs_F77=no
 
16456
      fi
 
16457
      ;;
 
16458
    esac
 
16459
 
 
16460
    if test "$ld_shlibs_F77" = yes; then
 
16461
      runpath_var=LD_RUN_PATH
 
16462
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
16463
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
16464
      # ancient GNU ld didn't support --whole-archive et. al.
 
16465
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16466
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16467
      else
 
16468
        whole_archive_flag_spec_F77=
 
16469
      fi
 
16470
    fi
 
16471
  else
 
16472
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16473
    case $host_os in
 
16474
    aix3*)
 
16475
      allow_undefined_flag_F77=unsupported
 
16476
      always_export_symbols_F77=yes
 
16477
      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'
 
16478
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16479
      # are no directories specified by -L.
 
16480
      hardcode_minus_L_F77=yes
 
16481
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16482
        # Neither direct hardcoding nor static linking is supported with a
 
16483
        # broken collect2.
 
16484
        hardcode_direct_F77=unsupported
 
16485
      fi
 
16486
      ;;
 
16487
 
 
16488
    aix4* | aix5*)
 
16489
      if test "$host_cpu" = ia64; then
 
16490
        # On IA64, the linker does run time linking by default, so we don't
 
16491
        # have to do anything special.
 
16492
        aix_use_runtimelinking=no
 
16493
        exp_sym_flag='-Bexport'
 
16494
        no_entry_flag=""
 
16495
      else
 
16496
        # If we're using GNU nm, then we don't want the "-C" option.
 
16497
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16498
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16499
          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'
 
16500
        else
 
16501
          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'
 
16502
        fi
 
16503
        aix_use_runtimelinking=no
 
16504
 
 
16505
        # Test if we are trying to use run time linking or normal
 
16506
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16507
        # need to do runtime linking.
 
16508
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16509
          for ld_flag in $LDFLAGS; do
 
16510
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16511
            aix_use_runtimelinking=yes
 
16512
            break
 
16513
          fi
 
16514
          done
 
16515
        esac
 
16516
 
 
16517
        exp_sym_flag='-bexport'
 
16518
        no_entry_flag='-bnoentry'
 
16519
      fi
 
16520
 
 
16521
      # When large executables or shared objects are built, AIX ld can
 
16522
      # have problems creating the table of contents.  If linking a library
 
16523
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16524
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16525
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16526
 
 
16527
      archive_cmds_F77=''
 
16528
      hardcode_direct_F77=yes
 
16529
      hardcode_libdir_separator_F77=':'
 
16530
      link_all_deplibs_F77=yes
 
16531
 
 
16532
      if test "$GCC" = yes; then
 
16533
        case $host_os in aix4.012|aix4.012.*)
 
16534
        # We only want to do this on AIX 4.2 and lower, the check
 
16535
        # below for broken collect2 doesn't work under 4.3+
 
16536
          collect2name=`${CC} -print-prog-name=collect2`
 
16537
          if test -f "$collect2name" && \
 
16538
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16539
          then
 
16540
          # We have reworked collect2
 
16541
          hardcode_direct_F77=yes
 
16542
          else
 
16543
          # We have old collect2
 
16544
          hardcode_direct_F77=unsupported
 
16545
          # It fails to find uninstalled libraries when the uninstalled
 
16546
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16547
          # to unsupported forces relinking
 
16548
          hardcode_minus_L_F77=yes
 
16549
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16550
          hardcode_libdir_separator_F77=
 
16551
          fi
 
16552
        esac
 
16553
        shared_flag='-shared'
 
16554
      else
 
16555
        # not using gcc
 
16556
        if test "$host_cpu" = ia64; then
 
16557
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16558
        # chokes on -Wl,-G. The following line is correct:
 
16559
          shared_flag='-G'
 
16560
        else
 
16561
        if test "$aix_use_runtimelinking" = yes; then
 
16562
            shared_flag='${wl}-G'
 
16563
          else
 
16564
            shared_flag='${wl}-bM:SRE'
 
16565
        fi
 
16566
        fi
 
16567
      fi
 
16568
 
 
16569
      # It seems that -bexpall does not export symbols beginning with
 
16570
      # underscore (_), so it is better to generate a list of symbols to export.
 
16571
      always_export_symbols_F77=yes
 
16572
      if test "$aix_use_runtimelinking" = yes; then
 
16573
        # Warning - without using the other runtime loading flags (-brtl),
 
16574
        # -berok will link without error, but may produce a broken library.
 
16575
        allow_undefined_flag_F77='-berok'
 
16576
       # Determine the default libpath from the value encoded in an empty executable.
 
16577
       cat >conftest.$ac_ext <<_ACEOF
 
16578
      program main
 
16579
 
 
16580
      end
 
16581
_ACEOF
 
16582
rm -f conftest.$ac_objext conftest$ac_exeext
 
16583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16584
  (eval $ac_link) 2>conftest.er1
 
16585
  ac_status=$?
 
16586
  grep -v '^ *+' conftest.er1 >conftest.err
 
16587
  rm -f conftest.er1
 
16588
  cat conftest.err >&5
 
16589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16590
  (exit $ac_status); } &&
 
16591
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
16592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16593
  (eval $ac_try) 2>&5
 
16594
  ac_status=$?
 
16595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16596
  (exit $ac_status); }; } &&
 
16597
         { ac_try='test -s conftest$ac_exeext'
 
16598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16599
  (eval $ac_try) 2>&5
 
16600
  ac_status=$?
 
16601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16602
  (exit $ac_status); }; }; then
 
16603
  
 
16604
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16605
}'`
 
16606
# Check for a 64-bit object if we didn't find anything.
 
16607
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; }
 
16608
}'`; fi
 
16609
else
 
16610
  echo "$as_me: failed program was:" >&5
 
16611
sed 's/^/| /' conftest.$ac_ext >&5
 
16612
 
 
16613
fi
 
16614
rm -f conftest.err conftest.$ac_objext \
 
16615
      conftest$ac_exeext conftest.$ac_ext
 
16616
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16617
 
 
16618
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16619
        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"
 
16620
       else
 
16621
        if test "$host_cpu" = ia64; then
 
16622
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
16623
          allow_undefined_flag_F77="-z nodefs"
 
16624
          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"
 
16625
        else
 
16626
         # Determine the default libpath from the value encoded in an empty executable.
 
16627
         cat >conftest.$ac_ext <<_ACEOF
 
16628
      program main
 
16629
 
 
16630
      end
 
16631
_ACEOF
 
16632
rm -f conftest.$ac_objext conftest$ac_exeext
 
16633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16634
  (eval $ac_link) 2>conftest.er1
 
16635
  ac_status=$?
 
16636
  grep -v '^ *+' conftest.er1 >conftest.err
 
16637
  rm -f conftest.er1
 
16638
  cat conftest.err >&5
 
16639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16640
  (exit $ac_status); } &&
 
16641
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
16642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16643
  (eval $ac_try) 2>&5
 
16644
  ac_status=$?
 
16645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16646
  (exit $ac_status); }; } &&
 
16647
         { ac_try='test -s conftest$ac_exeext'
 
16648
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16649
  (eval $ac_try) 2>&5
 
16650
  ac_status=$?
 
16651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16652
  (exit $ac_status); }; }; then
 
16653
  
 
16654
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16655
}'`
 
16656
# Check for a 64-bit object if we didn't find anything.
 
16657
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; }
 
16658
}'`; fi
 
16659
else
 
16660
  echo "$as_me: failed program was:" >&5
 
16661
sed 's/^/| /' conftest.$ac_ext >&5
 
16662
 
 
16663
fi
 
16664
rm -f conftest.err conftest.$ac_objext \
 
16665
      conftest$ac_exeext conftest.$ac_ext
 
16666
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16667
 
 
16668
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16669
          # Warning - without using the other run time loading flags,
 
16670
          # -berok will link without error, but may produce a broken library.
 
16671
          no_undefined_flag_F77=' ${wl}-bernotok'
 
16672
          allow_undefined_flag_F77=' ${wl}-berok'
 
16673
          # -bexpall does not export symbols beginning with underscore (_)
 
16674
          always_export_symbols_F77=yes
 
16675
          # Exported symbols can be pulled into shared objects from archives
 
16676
          whole_archive_flag_spec_F77=' '
 
16677
          archive_cmds_need_lc_F77=yes
 
16678
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16679
          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'
 
16680
        fi
 
16681
      fi
 
16682
      ;;
 
16683
 
 
16684
    amigaos*)
 
16685
      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)'
 
16686
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16687
      hardcode_minus_L_F77=yes
 
16688
      # see comment about different semantics on the GNU ld section
 
16689
      ld_shlibs_F77=no
 
16690
      ;;
 
16691
 
 
16692
    bsdi4*)
 
16693
      export_dynamic_flag_spec_F77=-rdynamic
 
16694
      ;;
 
16695
 
 
16696
    cygwin* | mingw* | pw32*)
 
16697
      # When not using gcc, we currently assume that we are using
 
16698
      # Microsoft Visual C++.
 
16699
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16700
      # no search path for DLLs.
 
16701
      hardcode_libdir_flag_spec_F77=' '
 
16702
      allow_undefined_flag_F77=unsupported
 
16703
      # Tell ltmain to make .lib files, not .a files.
 
16704
      libext=lib
 
16705
      # Tell ltmain to make .dll files, not .so files.
 
16706
      shrext_cmds=".dll"
 
16707
      # FIXME: Setting linknames here is a bad hack.
 
16708
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16709
      # The linker will automatically build a .lib file if we build a DLL.
 
16710
      old_archive_From_new_cmds_F77='true'
 
16711
      # FIXME: Should let the user specify the lib program.
 
16712
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16713
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16714
      enable_shared_with_static_runtimes_F77=yes
 
16715
      ;;
 
16716
 
 
16717
    darwin* | rhapsody*)
 
16718
    if test "$GXX" = yes ; then
 
16719
      archive_cmds_need_lc_F77=no
 
16720
      case "$host_os" in
 
16721
      rhapsody* | darwin1.[012])
 
16722
        allow_undefined_flag_F77='-undefined suppress'
 
16723
        ;;
 
16724
      *) # Darwin 1.3 on
 
16725
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16726
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
16727
      else
 
16728
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
16729
          10.[012])
 
16730
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
16731
            ;;
 
16732
          10.*)
 
16733
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
16734
            ;;
 
16735
        esac
 
16736
      fi
 
16737
        ;;
 
16738
      esac
 
16739
        lt_int_apple_cc_single_mod=no
 
16740
        output_verbose_link_cmd='echo'
 
16741
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16742
          lt_int_apple_cc_single_mod=yes
 
16743
        fi
 
16744
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16745
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16746
        else
 
16747
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16748
      fi
 
16749
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16750
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16751
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16752
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16753
        else
 
16754
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16755
        fi
 
16756
          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}'
 
16757
      hardcode_direct_F77=no
 
16758
      hardcode_automatic_F77=yes
 
16759
      hardcode_shlibpath_var_F77=unsupported
 
16760
      whole_archive_flag_spec_F77='-all_load $convenience'
 
16761
      link_all_deplibs_F77=yes
 
16762
    else
 
16763
      ld_shlibs_F77=no
 
16764
    fi
 
16765
      ;;
 
16766
 
 
16767
    dgux*)
 
16768
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16769
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16770
      hardcode_shlibpath_var_F77=no
 
16771
      ;;
 
16772
 
 
16773
    freebsd1*)
 
16774
      ld_shlibs_F77=no
 
16775
      ;;
 
16776
 
 
16777
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16778
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16779
    # does not break anything, and helps significantly (at the cost of a little
 
16780
    # extra space).
 
16781
    freebsd2.2*)
 
16782
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16783
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16784
      hardcode_direct_F77=yes
 
16785
      hardcode_shlibpath_var_F77=no
 
16786
      ;;
 
16787
 
 
16788
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16789
    freebsd2*)
 
16790
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16791
      hardcode_direct_F77=yes
 
16792
      hardcode_minus_L_F77=yes
 
16793
      hardcode_shlibpath_var_F77=no
 
16794
      ;;
 
16795
 
 
16796
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16797
    freebsd* | kfreebsd*-gnu)
 
16798
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16799
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16800
      hardcode_direct_F77=yes
 
16801
      hardcode_shlibpath_var_F77=no
 
16802
      ;;
 
16803
 
 
16804
    hpux9*)
 
16805
      if test "$GCC" = yes; then
 
16806
        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'
 
16807
      else
 
16808
        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'
 
16809
      fi
 
16810
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16811
      hardcode_libdir_separator_F77=:
 
16812
      hardcode_direct_F77=yes
 
16813
 
 
16814
      # hardcode_minus_L: Not really in the search PATH,
 
16815
      # but as the default location of the library.
 
16816
      hardcode_minus_L_F77=yes
 
16817
      export_dynamic_flag_spec_F77='${wl}-E'
 
16818
      ;;
 
16819
 
 
16820
    hpux10* | hpux11*)
 
16821
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16822
        case "$host_cpu" in
 
16823
        hppa*64*|ia64*)
 
16824
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16825
          ;;
 
16826
        *)
 
16827
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16828
          ;;
 
16829
        esac
 
16830
      else
 
16831
        case "$host_cpu" in
 
16832
        hppa*64*|ia64*)
 
16833
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16834
          ;;
 
16835
        *)
 
16836
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16837
          ;;
 
16838
        esac
 
16839
      fi
 
16840
      if test "$with_gnu_ld" = no; then
 
16841
        case "$host_cpu" in
 
16842
        hppa*64*)
 
16843
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16844
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
16845
          hardcode_libdir_separator_F77=:
 
16846
          hardcode_direct_F77=no
 
16847
          hardcode_shlibpath_var_F77=no
 
16848
          ;;
 
16849
        ia64*)
 
16850
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16851
          hardcode_direct_F77=no
 
16852
          hardcode_shlibpath_var_F77=no
 
16853
 
 
16854
          # hardcode_minus_L: Not really in the search PATH,
 
16855
          # but as the default location of the library.
 
16856
          hardcode_minus_L_F77=yes
 
16857
          ;;
 
16858
        *)
 
16859
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16860
          hardcode_libdir_separator_F77=:
 
16861
          hardcode_direct_F77=yes
 
16862
          export_dynamic_flag_spec_F77='${wl}-E'
 
16863
 
 
16864
          # hardcode_minus_L: Not really in the search PATH,
 
16865
          # but as the default location of the library.
 
16866
          hardcode_minus_L_F77=yes
 
16867
          ;;
 
16868
        esac
 
16869
      fi
 
16870
      ;;
 
16871
 
 
16872
    irix5* | irix6* | nonstopux*)
 
16873
      if test "$GCC" = yes; then
 
16874
        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'
 
16875
      else
 
16876
        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'
 
16877
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
16878
      fi
 
16879
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16880
      hardcode_libdir_separator_F77=:
 
16881
      link_all_deplibs_F77=yes
 
16882
      ;;
 
16883
 
 
16884
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16885
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16886
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16887
      else
 
16888
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16889
      fi
 
16890
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16891
      hardcode_direct_F77=yes
 
16892
      hardcode_shlibpath_var_F77=no
 
16893
      ;;
 
16894
 
 
16895
    newsos6)
 
16896
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16897
      hardcode_direct_F77=yes
 
16898
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16899
      hardcode_libdir_separator_F77=:
 
16900
      hardcode_shlibpath_var_F77=no
 
16901
      ;;
 
16902
 
 
16903
    openbsd*)
 
16904
      hardcode_direct_F77=yes
 
16905
      hardcode_shlibpath_var_F77=no
 
16906
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16907
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16908
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16909
        export_dynamic_flag_spec_F77='${wl}-E'
 
16910
      else
 
16911
       case $host_os in
 
16912
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16913
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16914
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
16915
           ;;
 
16916
         *)
 
16917
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16918
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16919
           ;;
 
16920
       esac
 
16921
      fi
 
16922
      ;;
 
16923
 
 
16924
    os2*)
 
16925
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16926
      hardcode_minus_L_F77=yes
 
16927
      allow_undefined_flag_F77=unsupported
 
16928
      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'
 
16929
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16930
      ;;
 
16931
 
 
16932
    osf3*)
 
16933
      if test "$GCC" = yes; then
 
16934
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16935
        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'
 
16936
      else
 
16937
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16938
        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'
 
16939
      fi
 
16940
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16941
      hardcode_libdir_separator_F77=:
 
16942
      ;;
 
16943
 
 
16944
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16945
      if test "$GCC" = yes; then
 
16946
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16947
        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'
 
16948
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16949
      else
 
16950
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16951
        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'
 
16952
        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~
 
16953
        $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'
 
16954
 
 
16955
        # Both c and cxx compiler support -rpath directly
 
16956
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
16957
      fi
 
16958
      hardcode_libdir_separator_F77=:
 
16959
      ;;
 
16960
 
 
16961
    sco3.2v5*)
 
16962
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16963
      hardcode_shlibpath_var_F77=no
 
16964
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16965
      runpath_var=LD_RUN_PATH
 
16966
      hardcode_runpath_var=yes
 
16967
      ;;
 
16968
 
 
16969
    solaris*)
 
16970
      no_undefined_flag_F77=' -z text'
 
16971
      if test "$GCC" = yes; then
 
16972
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16973
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16974
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16975
      else
 
16976
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16977
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16978
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16979
      fi
 
16980
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16981
      hardcode_shlibpath_var_F77=no
 
16982
      case $host_os in
 
16983
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16984
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16985
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16986
      esac
 
16987
      link_all_deplibs_F77=yes
 
16988
      ;;
 
16989
 
 
16990
    sunos4*)
 
16991
      if test "x$host_vendor" = xsequent; then
 
16992
        # Use $CC to link under sequent, because it throws in some extra .o
 
16993
        # files that make .init and .fini sections work.
 
16994
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16995
      else
 
16996
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16997
      fi
 
16998
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16999
      hardcode_direct_F77=yes
 
17000
      hardcode_minus_L_F77=yes
 
17001
      hardcode_shlibpath_var_F77=no
 
17002
      ;;
 
17003
 
 
17004
    sysv4)
 
17005
      case $host_vendor in
 
17006
        sni)
 
17007
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17008
          hardcode_direct_F77=yes # is this really true???
 
17009
        ;;
 
17010
        siemens)
 
17011
          ## LD is ld it makes a PLAMLIB
 
17012
          ## CC just makes a GrossModule.
 
17013
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17014
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
17015
          hardcode_direct_F77=no
 
17016
        ;;
 
17017
        motorola)
 
17018
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17019
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
17020
        ;;
 
17021
      esac
 
17022
      runpath_var='LD_RUN_PATH'
 
17023
      hardcode_shlibpath_var_F77=no
 
17024
      ;;
 
17025
 
 
17026
    sysv4.3*)
 
17027
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17028
      hardcode_shlibpath_var_F77=no
 
17029
      export_dynamic_flag_spec_F77='-Bexport'
 
17030
      ;;
 
17031
 
 
17032
    sysv4*MP*)
 
17033
      if test -d /usr/nec; then
 
17034
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17035
        hardcode_shlibpath_var_F77=no
 
17036
        runpath_var=LD_RUN_PATH
 
17037
        hardcode_runpath_var=yes
 
17038
        ld_shlibs_F77=yes
 
17039
      fi
 
17040
      ;;
 
17041
 
 
17042
    sysv4.2uw2*)
 
17043
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17044
      hardcode_direct_F77=yes
 
17045
      hardcode_minus_L_F77=no
 
17046
      hardcode_shlibpath_var_F77=no
 
17047
      hardcode_runpath_var=yes
 
17048
      runpath_var=LD_RUN_PATH
 
17049
      ;;
 
17050
 
 
17051
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17052
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
17053
      if test "$GCC" = yes; then
 
17054
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17055
      else
 
17056
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17057
      fi
 
17058
      runpath_var='LD_RUN_PATH'
 
17059
      hardcode_shlibpath_var_F77=no
 
17060
      ;;
 
17061
 
 
17062
    sysv5*)
 
17063
      no_undefined_flag_F77=' -z text'
 
17064
      # $CC -shared without GNU ld will not create a library from C++
 
17065
      # object files and a static libstdc++, better avoid it by now
 
17066
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17067
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17068
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17069
      hardcode_libdir_flag_spec_F77=
 
17070
      hardcode_shlibpath_var_F77=no
 
17071
      runpath_var='LD_RUN_PATH'
 
17072
      ;;
 
17073
 
 
17074
    uts4*)
 
17075
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17076
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17077
      hardcode_shlibpath_var_F77=no
 
17078
      ;;
 
17079
 
 
17080
    *)
 
17081
      ld_shlibs_F77=no
 
17082
      ;;
 
17083
    esac
 
17084
  fi
 
17085
 
 
17086
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
17087
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
17088
test "$ld_shlibs_F77" = no && can_build_shared=no
 
17089
 
 
17090
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17091
if test "$GCC" = yes; then
 
17092
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17093
fi
 
17094
 
 
17095
#
 
17096
# Do we need to explicitly link libc?
 
17097
#
 
17098
case "x$archive_cmds_need_lc_F77" in
 
17099
x|xyes)
 
17100
  # Assume -lc should be added
 
17101
  archive_cmds_need_lc_F77=yes
 
17102
 
 
17103
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17104
    case $archive_cmds_F77 in
 
17105
    *'~'*)
 
17106
      # FIXME: we may have to deal with multi-command sequences.
 
17107
      ;;
 
17108
    '$CC '*)
 
17109
      # Test whether the compiler implicitly links with -lc since on some
 
17110
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17111
      # to ld, don't add -lc before -lgcc.
 
17112
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17113
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17114
      $rm conftest*
 
17115
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17116
 
 
17117
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17118
  (eval $ac_compile) 2>&5
 
17119
  ac_status=$?
 
17120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17121
  (exit $ac_status); } 2>conftest.err; then
 
17122
        soname=conftest
 
17123
        lib=conftest
 
17124
        libobjs=conftest.$ac_objext
 
17125
        deplibs=
 
17126
        wl=$lt_prog_compiler_wl_F77
 
17127
        compiler_flags=-v
 
17128
        linker_flags=-v
 
17129
        verstring=
 
17130
        output_objdir=.
 
17131
        libname=conftest
 
17132
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
17133
        allow_undefined_flag_F77=
 
17134
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17135
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17136
  ac_status=$?
 
17137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17138
  (exit $ac_status); }
 
17139
        then
 
17140
          archive_cmds_need_lc_F77=no
 
17141
        else
 
17142
          archive_cmds_need_lc_F77=yes
 
17143
        fi
 
17144
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
17145
      else
 
17146
        cat conftest.err 1>&5
 
17147
      fi
 
17148
      $rm conftest*
 
17149
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
17150
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
17151
      ;;
 
17152
    esac
 
17153
  fi
 
17154
  ;;
 
17155
esac
 
17156
 
 
17157
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17158
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17159
library_names_spec=
 
17160
libname_spec='lib$name'
 
17161
soname_spec=
 
17162
shrext_cmds=".so"
 
17163
postinstall_cmds=
 
17164
postuninstall_cmds=
 
17165
finish_cmds=
 
17166
finish_eval=
 
17167
shlibpath_var=
 
17168
shlibpath_overrides_runpath=unknown
 
17169
version_type=none
 
17170
dynamic_linker="$host_os ld.so"
 
17171
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17172
if test "$GCC" = yes; then
 
17173
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17174
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17175
    # if the path contains ";" then we assume it to be the separator
 
17176
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17177
    # assumed that no part of a normal pathname contains ";" but that should
 
17178
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17179
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17180
  else
 
17181
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17182
  fi
 
17183
else
 
17184
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17185
fi
 
17186
need_lib_prefix=unknown
 
17187
hardcode_into_libs=no
 
17188
 
 
17189
# when you set need_version to no, make sure it does not cause -set_version
 
17190
# flags to be left without arguments
 
17191
need_version=unknown
 
17192
 
 
17193
case $host_os in
 
17194
aix3*)
 
17195
  version_type=linux
 
17196
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17197
  shlibpath_var=LIBPATH
 
17198
 
 
17199
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17200
  soname_spec='${libname}${release}${shared_ext}$major'
 
17201
  ;;
 
17202
 
 
17203
aix4* | aix5*)
 
17204
  version_type=linux
 
17205
  need_lib_prefix=no
 
17206
  need_version=no
 
17207
  hardcode_into_libs=yes
 
17208
  if test "$host_cpu" = ia64; then
 
17209
    # AIX 5 supports IA64
 
17210
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17211
    shlibpath_var=LD_LIBRARY_PATH
 
17212
  else
 
17213
    # With GCC up to 2.95.x, collect2 would create an import file
 
17214
    # for dependence libraries.  The import file would start with
 
17215
    # the line `#! .'.  This would cause the generated library to
 
17216
    # depend on `.', always an invalid library.  This was fixed in
 
17217
    # development snapshots of GCC prior to 3.0.
 
17218
    case $host_os in
 
17219
      aix4 | aix4.[01] | aix4.[01].*)
 
17220
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17221
           echo ' yes '
 
17222
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17223
        :
 
17224
      else
 
17225
        can_build_shared=no
 
17226
      fi
 
17227
      ;;
 
17228
    esac
 
17229
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17230
    # soname into executable. Probably we can add versioning support to
 
17231
    # collect2, so additional links can be useful in future.
 
17232
    if test "$aix_use_runtimelinking" = yes; then
 
17233
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17234
      # instead of lib<name>.a to let people know that these are not
 
17235
      # typical AIX shared libraries.
 
17236
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17237
    else
 
17238
      # We preserve .a as extension for shared libraries through AIX4.2
 
17239
      # and later when we are not doing run time linking.
 
17240
      library_names_spec='${libname}${release}.a $libname.a'
 
17241
      soname_spec='${libname}${release}${shared_ext}$major'
 
17242
    fi
 
17243
    shlibpath_var=LIBPATH
 
17244
  fi
 
17245
  ;;
 
17246
 
 
17247
amigaos*)
 
17248
  library_names_spec='$libname.ixlibrary $libname.a'
 
17249
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17250
  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'
 
17251
  ;;
 
17252
 
 
17253
beos*)
 
17254
  library_names_spec='${libname}${shared_ext}'
 
17255
  dynamic_linker="$host_os ld.so"
 
17256
  shlibpath_var=LIBRARY_PATH
 
17257
  ;;
 
17258
 
 
17259
bsdi4*)
 
17260
  version_type=linux
 
17261
  need_version=no
 
17262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17263
  soname_spec='${libname}${release}${shared_ext}$major'
 
17264
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17265
  shlibpath_var=LD_LIBRARY_PATH
 
17266
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17267
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17268
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17269
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17270
  # libtool to hard-code these into programs
 
17271
  ;;
 
17272
 
 
17273
cygwin* | mingw* | pw32*)
 
17274
  version_type=windows
 
17275
  shrext_cmds=".dll"
 
17276
  need_version=no
 
17277
  need_lib_prefix=no
 
17278
 
 
17279
  case $GCC,$host_os in
 
17280
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17281
    library_names_spec='$libname.dll.a'
 
17282
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17283
    postinstall_cmds='base_file=`basename \${file}`~
 
17284
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17285
      dldir=$destdir/`dirname \$dlpath`~
 
17286
      test -d \$dldir || mkdir -p \$dldir~
 
17287
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17288
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17289
      dlpath=$dir/\$dldll~
 
17290
       $rm \$dlpath'
 
17291
    shlibpath_overrides_runpath=yes
 
17292
 
 
17293
    case $host_os in
 
17294
    cygwin*)
 
17295
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17296
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17297
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17298
      ;;
 
17299
    mingw*)
 
17300
      # MinGW DLLs use traditional 'lib' prefix
 
17301
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17302
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17303
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17304
        # It is most probably a Windows format PATH printed by
 
17305
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17306
        # path with ; separators, and with drive letters. We can handle the
 
17307
        # drive letters (cygwin fileutils understands them), so leave them,
 
17308
        # especially as we might pass files found there to a mingw objdump,
 
17309
        # which wouldn't understand a cygwinified path. Ahh.
 
17310
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17311
      else
 
17312
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17313
      fi
 
17314
      ;;
 
17315
    pw32*)
 
17316
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17317
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17318
      ;;
 
17319
    esac
 
17320
    ;;
 
17321
 
 
17322
  *)
 
17323
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17324
    ;;
 
17325
  esac
 
17326
  dynamic_linker='Win32 ld.exe'
 
17327
  # FIXME: first we should search . and the directory the executable is in
 
17328
  shlibpath_var=PATH
 
17329
  ;;
 
17330
 
 
17331
darwin* | rhapsody*)
 
17332
  dynamic_linker="$host_os dyld"
 
17333
  version_type=darwin
 
17334
  need_lib_prefix=no
 
17335
  need_version=no
 
17336
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17337
  soname_spec='${libname}${release}${major}$shared_ext'
 
17338
  shlibpath_overrides_runpath=yes
 
17339
  shlibpath_var=DYLD_LIBRARY_PATH
 
17340
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17341
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17342
  if test "$GCC" = yes; then
 
17343
    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"`
 
17344
  else
 
17345
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17346
  fi
 
17347
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17348
  ;;
 
17349
 
 
17350
dgux*)
 
17351
  version_type=linux
 
17352
  need_lib_prefix=no
 
17353
  need_version=no
 
17354
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17355
  soname_spec='${libname}${release}${shared_ext}$major'
 
17356
  shlibpath_var=LD_LIBRARY_PATH
 
17357
  ;;
 
17358
 
 
17359
freebsd1*)
 
17360
  dynamic_linker=no
 
17361
  ;;
 
17362
 
 
17363
kfreebsd*-gnu)
 
17364
  version_type=linux
 
17365
  need_lib_prefix=no
 
17366
  need_version=no
 
17367
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17368
  soname_spec='${libname}${release}${shared_ext}$major'
 
17369
  shlibpath_var=LD_LIBRARY_PATH
 
17370
  shlibpath_overrides_runpath=no
 
17371
  hardcode_into_libs=yes
 
17372
  dynamic_linker='GNU ld.so'
 
17373
  ;;
 
17374
 
 
17375
freebsd*)
 
17376
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17377
  version_type=freebsd-$objformat
 
17378
  case $version_type in
 
17379
    freebsd-elf*)
 
17380
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17381
      need_version=no
 
17382
      need_lib_prefix=no
 
17383
      ;;
 
17384
    freebsd-*)
 
17385
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17386
      need_version=yes
 
17387
      ;;
 
17388
  esac
 
17389
  shlibpath_var=LD_LIBRARY_PATH
 
17390
  case $host_os in
 
17391
  freebsd2*)
 
17392
    shlibpath_overrides_runpath=yes
 
17393
    ;;
 
17394
  freebsd3.01* | freebsdelf3.01*)
 
17395
    shlibpath_overrides_runpath=yes
 
17396
    hardcode_into_libs=yes
 
17397
    ;;
 
17398
  *) # from 3.2 on
 
17399
    shlibpath_overrides_runpath=no
 
17400
    hardcode_into_libs=yes
 
17401
    ;;
 
17402
  esac
 
17403
  ;;
 
17404
 
 
17405
gnu*)
 
17406
  version_type=linux
 
17407
  need_lib_prefix=no
 
17408
  need_version=no
 
17409
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17410
  soname_spec='${libname}${release}${shared_ext}$major'
 
17411
  shlibpath_var=LD_LIBRARY_PATH
 
17412
  hardcode_into_libs=yes
 
17413
  ;;
 
17414
 
 
17415
hpux9* | hpux10* | hpux11*)
 
17416
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17417
  # link against other versions.
 
17418
  version_type=sunos
 
17419
  need_lib_prefix=no
 
17420
  need_version=no
 
17421
  case "$host_cpu" in
 
17422
  ia64*)
 
17423
    shrext_cmds='.so'
 
17424
    hardcode_into_libs=yes
 
17425
    dynamic_linker="$host_os dld.so"
 
17426
    shlibpath_var=LD_LIBRARY_PATH
 
17427
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17428
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17429
    soname_spec='${libname}${release}${shared_ext}$major'
 
17430
    if test "X$HPUX_IA64_MODE" = X32; then
 
17431
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17432
    else
 
17433
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17434
    fi
 
17435
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17436
    ;;
 
17437
   hppa*64*)
 
17438
     shrext_cmds='.sl'
 
17439
     hardcode_into_libs=yes
 
17440
     dynamic_linker="$host_os dld.sl"
 
17441
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17442
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17443
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17444
     soname_spec='${libname}${release}${shared_ext}$major'
 
17445
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17446
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17447
     ;;
 
17448
   *)
 
17449
    shrext_cmds='.sl'
 
17450
    dynamic_linker="$host_os dld.sl"
 
17451
    shlibpath_var=SHLIB_PATH
 
17452
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17453
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17454
    soname_spec='${libname}${release}${shared_ext}$major'
 
17455
    ;;
 
17456
  esac
 
17457
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17458
  postinstall_cmds='chmod 555 $lib'
 
17459
  ;;
 
17460
 
 
17461
irix5* | irix6* | nonstopux*)
 
17462
  case $host_os in
 
17463
    nonstopux*) version_type=nonstopux ;;
 
17464
    *)
 
17465
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17466
                version_type=linux
 
17467
        else
 
17468
                version_type=irix
 
17469
        fi ;;
 
17470
  esac
 
17471
  need_lib_prefix=no
 
17472
  need_version=no
 
17473
  soname_spec='${libname}${release}${shared_ext}$major'
 
17474
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17475
  case $host_os in
 
17476
  irix5* | nonstopux*)
 
17477
    libsuff= shlibsuff=
 
17478
    ;;
 
17479
  *)
 
17480
    case $LD in # libtool.m4 will add one of these switches to LD
 
17481
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17482
      libsuff= shlibsuff= libmagic=32-bit;;
 
17483
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17484
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17485
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17486
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17487
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17488
    esac
 
17489
    ;;
 
17490
  esac
 
17491
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17492
  shlibpath_overrides_runpath=no
 
17493
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17494
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17495
  hardcode_into_libs=yes
 
17496
  ;;
 
17497
 
 
17498
# No shared lib support for Linux oldld, aout, or coff.
 
17499
linux*oldld* | linux*aout* | linux*coff*)
 
17500
  dynamic_linker=no
 
17501
  ;;
 
17502
 
 
17503
# This must be Linux ELF.
 
17504
linux*)
 
17505
  version_type=linux
 
17506
  need_lib_prefix=no
 
17507
  need_version=no
 
17508
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17509
  soname_spec='${libname}${release}${shared_ext}$major'
 
17510
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17511
  shlibpath_var=LD_LIBRARY_PATH
 
17512
  shlibpath_overrides_runpath=no
 
17513
  # This implies no fast_install, which is unacceptable.
 
17514
  # Some rework will be needed to allow for fast_install
 
17515
  # before this can be enabled.
 
17516
  hardcode_into_libs=yes
 
17517
 
 
17518
  # Append ld.so.conf contents to the search path
 
17519
  if test -f /etc/ld.so.conf; then
 
17520
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17521
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17522
  fi
 
17523
 
 
17524
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17525
  # powerpc, because MkLinux only supported shared libraries with the
 
17526
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17527
  # most powerpc-linux boxes support dynamic linking these days and
 
17528
  # people can always --disable-shared, the test was removed, and we
 
17529
  # assume the GNU/Linux dynamic linker is in use.
 
17530
  dynamic_linker='GNU/Linux ld.so'
 
17531
  ;;
 
17532
 
 
17533
netbsdelf*-gnu)
 
17534
  version_type=linux
 
17535
  need_lib_prefix=no
 
17536
  need_version=no
 
17537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17538
  soname_spec='${libname}${release}${shared_ext}$major'
 
17539
  shlibpath_var=LD_LIBRARY_PATH
 
17540
  shlibpath_overrides_runpath=no
 
17541
  hardcode_into_libs=yes
 
17542
  dynamic_linker='NetBSD ld.elf_so'
 
17543
  ;;
 
17544
 
 
17545
knetbsd*-gnu)
 
17546
  version_type=linux
 
17547
  need_lib_prefix=no
 
17548
  need_version=no
 
17549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17550
  soname_spec='${libname}${release}${shared_ext}$major'
 
17551
  shlibpath_var=LD_LIBRARY_PATH
 
17552
  shlibpath_overrides_runpath=no
 
17553
  hardcode_into_libs=yes
 
17554
  dynamic_linker='GNU ld.so'
 
17555
  ;;
 
17556
 
 
17557
netbsd*)
 
17558
  version_type=sunos
 
17559
  need_lib_prefix=no
 
17560
  need_version=no
 
17561
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17562
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17563
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17564
    dynamic_linker='NetBSD (a.out) ld.so'
 
17565
  else
 
17566
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17567
    soname_spec='${libname}${release}${shared_ext}$major'
 
17568
    dynamic_linker='NetBSD ld.elf_so'
 
17569
  fi
 
17570
  shlibpath_var=LD_LIBRARY_PATH
 
17571
  shlibpath_overrides_runpath=yes
 
17572
  hardcode_into_libs=yes
 
17573
  ;;
 
17574
 
 
17575
newsos6)
 
17576
  version_type=linux
 
17577
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17578
  shlibpath_var=LD_LIBRARY_PATH
 
17579
  shlibpath_overrides_runpath=yes
 
17580
  ;;
 
17581
 
 
17582
nto-qnx*)
 
17583
  version_type=linux
 
17584
  need_lib_prefix=no
 
17585
  need_version=no
 
17586
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17587
  soname_spec='${libname}${release}${shared_ext}$major'
 
17588
  shlibpath_var=LD_LIBRARY_PATH
 
17589
  shlibpath_overrides_runpath=yes
 
17590
  ;;
 
17591
 
 
17592
openbsd*)
 
17593
  version_type=sunos
 
17594
  need_lib_prefix=no
 
17595
  need_version=yes
 
17596
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17597
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17598
  shlibpath_var=LD_LIBRARY_PATH
 
17599
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17600
    case $host_os in
 
17601
      openbsd2.[89] | openbsd2.[89].*)
 
17602
        shlibpath_overrides_runpath=no
 
17603
        ;;
 
17604
      *)
 
17605
        shlibpath_overrides_runpath=yes
 
17606
        ;;
 
17607
      esac
 
17608
  else
 
17609
    shlibpath_overrides_runpath=yes
 
17610
  fi
 
17611
  ;;
 
17612
 
 
17613
os2*)
 
17614
  libname_spec='$name'
 
17615
  shrext_cmds=".dll"
 
17616
  need_lib_prefix=no
 
17617
  library_names_spec='$libname${shared_ext} $libname.a'
 
17618
  dynamic_linker='OS/2 ld.exe'
 
17619
  shlibpath_var=LIBPATH
 
17620
  ;;
 
17621
 
 
17622
osf3* | osf4* | osf5*)
 
17623
  version_type=osf
 
17624
  need_lib_prefix=no
 
17625
  need_version=no
 
17626
  soname_spec='${libname}${release}${shared_ext}$major'
 
17627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17628
  shlibpath_var=LD_LIBRARY_PATH
 
17629
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17630
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17631
  ;;
 
17632
 
 
17633
sco3.2v5*)
 
17634
  version_type=osf
 
17635
  soname_spec='${libname}${release}${shared_ext}$major'
 
17636
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17637
  shlibpath_var=LD_LIBRARY_PATH
 
17638
  ;;
 
17639
 
 
17640
solaris*)
 
17641
  version_type=linux
 
17642
  need_lib_prefix=no
 
17643
  need_version=no
 
17644
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17645
  soname_spec='${libname}${release}${shared_ext}$major'
 
17646
  shlibpath_var=LD_LIBRARY_PATH
 
17647
  shlibpath_overrides_runpath=yes
 
17648
  hardcode_into_libs=yes
 
17649
  # ldd complains unless libraries are executable
 
17650
  postinstall_cmds='chmod +x $lib'
 
17651
  ;;
 
17652
 
 
17653
sunos4*)
 
17654
  version_type=sunos
 
17655
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17656
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17657
  shlibpath_var=LD_LIBRARY_PATH
 
17658
  shlibpath_overrides_runpath=yes
 
17659
  if test "$with_gnu_ld" = yes; then
 
17660
    need_lib_prefix=no
 
17661
  fi
 
17662
  need_version=yes
 
17663
  ;;
 
17664
 
 
17665
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17666
  version_type=linux
 
17667
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17668
  soname_spec='${libname}${release}${shared_ext}$major'
 
17669
  shlibpath_var=LD_LIBRARY_PATH
 
17670
  case $host_vendor in
 
17671
    sni)
 
17672
      shlibpath_overrides_runpath=no
 
17673
      need_lib_prefix=no
 
17674
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17675
      runpath_var=LD_RUN_PATH
 
17676
      ;;
 
17677
    siemens)
 
17678
      need_lib_prefix=no
 
17679
      ;;
 
17680
    motorola)
 
17681
      need_lib_prefix=no
 
17682
      need_version=no
 
17683
      shlibpath_overrides_runpath=no
 
17684
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17685
      ;;
 
17686
  esac
 
17687
  ;;
 
17688
 
 
17689
sysv4*MP*)
 
17690
  if test -d /usr/nec ;then
 
17691
    version_type=linux
 
17692
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17693
    soname_spec='$libname${shared_ext}.$major'
 
17694
    shlibpath_var=LD_LIBRARY_PATH
 
17695
  fi
 
17696
  ;;
 
17697
 
 
17698
uts4*)
 
17699
  version_type=linux
 
17700
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17701
  soname_spec='${libname}${release}${shared_ext}$major'
 
17702
  shlibpath_var=LD_LIBRARY_PATH
 
17703
  ;;
 
17704
 
 
17705
*)
 
17706
  dynamic_linker=no
 
17707
  ;;
 
17708
esac
 
17709
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17710
echo "${ECHO_T}$dynamic_linker" >&6
 
17711
test "$dynamic_linker" = no && can_build_shared=no
 
17712
 
 
17713
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17714
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17715
hardcode_action_F77=
 
17716
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
17717
   test -n "$runpath_var F77" || \
 
17718
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
17719
 
 
17720
  # We can hardcode non-existant directories.
 
17721
  if test "$hardcode_direct_F77" != no &&
 
17722
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17723
     # have to relink, otherwise we might link with an installed library
 
17724
     # when we should be linking with a yet-to-be-installed one
 
17725
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
17726
     test "$hardcode_minus_L_F77" != no; then
 
17727
    # Linking always hardcodes the temporary library directory.
 
17728
    hardcode_action_F77=relink
 
17729
  else
 
17730
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17731
    hardcode_action_F77=immediate
 
17732
  fi
 
17733
else
 
17734
  # We cannot hardcode anything, or else we can only hardcode existing
 
17735
  # directories.
 
17736
  hardcode_action_F77=unsupported
 
17737
fi
 
17738
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
17739
echo "${ECHO_T}$hardcode_action_F77" >&6
 
17740
 
 
17741
if test "$hardcode_action_F77" = relink; then
 
17742
  # Fast installation is not supported
 
17743
  enable_fast_install=no
 
17744
elif test "$shlibpath_overrides_runpath" = yes ||
 
17745
     test "$enable_shared" = no; then
 
17746
  # Fast installation is not necessary
 
17747
  enable_fast_install=needless
 
17748
fi
 
17749
 
 
17750
striplib=
 
17751
old_striplib=
 
17752
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17753
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17754
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17755
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17756
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17757
  echo "$as_me:$LINENO: result: yes" >&5
 
17758
echo "${ECHO_T}yes" >&6
 
17759
else
 
17760
# FIXME - insert some real tests, host_os isn't really good enough
 
17761
  case $host_os in
 
17762
   darwin*)
 
17763
       if test -n "$STRIP" ; then
 
17764
         striplib="$STRIP -x"
 
17765
         echo "$as_me:$LINENO: result: yes" >&5
 
17766
echo "${ECHO_T}yes" >&6
 
17767
       else
 
17768
  echo "$as_me:$LINENO: result: no" >&5
 
17769
echo "${ECHO_T}no" >&6
 
17770
fi
 
17771
       ;;
 
17772
   *)
 
17773
  echo "$as_me:$LINENO: result: no" >&5
 
17774
echo "${ECHO_T}no" >&6
 
17775
    ;;
 
17776
  esac
 
17777
fi
 
17778
 
 
17779
 
 
17780
 
 
17781
# The else clause should only fire when bootstrapping the
 
17782
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17783
# with your package, and you will get complaints that there are
 
17784
# no rules to generate ltmain.sh.
 
17785
if test -f "$ltmain"; then
 
17786
  # See if we are running on zsh, and set the options which allow our commands through
 
17787
  # without removal of \ escapes.
 
17788
  if test -n "${ZSH_VERSION+set}" ; then
 
17789
    setopt NO_GLOB_SUBST
 
17790
  fi
 
17791
  # Now quote all the things that may contain metacharacters while being
 
17792
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17793
  # variables and quote the copies for generation of the libtool script.
 
17794
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
17795
    SED SHELL STRIP \
 
17796
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17797
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17798
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17799
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17800
    lt_cv_sys_global_symbol_to_c_name_address \
 
17801
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17802
    old_postinstall_cmds old_postuninstall_cmds \
 
17803
    compiler_F77 \
 
17804
    CC_F77 \
 
17805
    LD_F77 \
 
17806
    lt_prog_compiler_wl_F77 \
 
17807
    lt_prog_compiler_pic_F77 \
 
17808
    lt_prog_compiler_static_F77 \
 
17809
    lt_prog_compiler_no_builtin_flag_F77 \
 
17810
    export_dynamic_flag_spec_F77 \
 
17811
    thread_safe_flag_spec_F77 \
 
17812
    whole_archive_flag_spec_F77 \
 
17813
    enable_shared_with_static_runtimes_F77 \
 
17814
    old_archive_cmds_F77 \
 
17815
    old_archive_from_new_cmds_F77 \
 
17816
    predep_objects_F77 \
 
17817
    postdep_objects_F77 \
 
17818
    predeps_F77 \
 
17819
    postdeps_F77 \
 
17820
    compiler_lib_search_path_F77 \
 
17821
    archive_cmds_F77 \
 
17822
    archive_expsym_cmds_F77 \
 
17823
    postinstall_cmds_F77 \
 
17824
    postuninstall_cmds_F77 \
 
17825
    old_archive_from_expsyms_cmds_F77 \
 
17826
    allow_undefined_flag_F77 \
 
17827
    no_undefined_flag_F77 \
 
17828
    export_symbols_cmds_F77 \
 
17829
    hardcode_libdir_flag_spec_F77 \
 
17830
    hardcode_libdir_flag_spec_ld_F77 \
 
17831
    hardcode_libdir_separator_F77 \
 
17832
    hardcode_automatic_F77 \
 
17833
    module_cmds_F77 \
 
17834
    module_expsym_cmds_F77 \
 
17835
    lt_cv_prog_compiler_c_o_F77 \
 
17836
    exclude_expsyms_F77 \
 
17837
    include_expsyms_F77; do
 
17838
 
 
17839
    case $var in
 
17840
    old_archive_cmds_F77 | \
 
17841
    old_archive_from_new_cmds_F77 | \
 
17842
    archive_cmds_F77 | \
 
17843
    archive_expsym_cmds_F77 | \
 
17844
    module_cmds_F77 | \
 
17845
    module_expsym_cmds_F77 | \
 
17846
    old_archive_from_expsyms_cmds_F77 | \
 
17847
    export_symbols_cmds_F77 | \
 
17848
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17849
    postinstall_cmds | postuninstall_cmds | \
 
17850
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17851
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17852
      # Double-quote double-evaled strings.
 
17853
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17854
      ;;
 
17855
    *)
 
17856
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17857
      ;;
 
17858
    esac
 
17859
  done
 
17860
 
 
17861
  case $lt_echo in
 
17862
  *'\$0 --fallback-echo"')
 
17863
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17864
    ;;
 
17865
  esac
 
17866
 
 
17867
cfgfile="$ofile"
 
17868
 
 
17869
  cat <<__EOF__ >> "$cfgfile"
 
17870
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17871
 
 
17872
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17873
 
 
17874
# Shell to use when invoking shell scripts.
 
17875
SHELL=$lt_SHELL
 
17876
 
 
17877
# Whether or not to build shared libraries.
 
17878
build_libtool_libs=$enable_shared
 
17879
 
 
17880
# Whether or not to build static libraries.
 
17881
build_old_libs=$enable_static
 
17882
 
 
17883
# Whether or not to add -lc for building shared libraries.
 
17884
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
17885
 
 
17886
# Whether or not to disallow shared libs when runtime libs are static
 
17887
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
17888
 
 
17889
# Whether or not to optimize for fast installation.
 
17890
fast_install=$enable_fast_install
 
17891
 
 
17892
# The host system.
 
17893
host_alias=$host_alias
 
17894
host=$host
 
17895
 
 
17896
# An echo program that does not interpret backslashes.
 
17897
echo=$lt_echo
 
17898
 
 
17899
# The archiver.
 
17900
AR=$lt_AR
 
17901
AR_FLAGS=$lt_AR_FLAGS
 
17902
 
 
17903
# A C compiler.
 
17904
LTCC=$lt_LTCC
 
17905
 
 
17906
# A language-specific compiler.
 
17907
CC=$lt_compiler_F77
 
17908
 
 
17909
# Is the compiler the GNU C compiler?
 
17910
with_gcc=$GCC_F77
 
17911
 
 
17912
# An ERE matcher.
 
17913
EGREP=$lt_EGREP
 
17914
 
 
17915
# The linker used to build libraries.
 
17916
LD=$lt_LD_F77
 
17917
 
 
17918
# Whether we need hard or soft links.
 
17919
LN_S=$lt_LN_S
 
17920
 
 
17921
# A BSD-compatible nm program.
 
17922
NM=$lt_NM
 
17923
 
 
17924
# A symbol stripping program
 
17925
STRIP=$lt_STRIP
 
17926
 
 
17927
# Used to examine libraries when file_magic_cmd begins "file"
 
17928
MAGIC_CMD=$MAGIC_CMD
 
17929
 
 
17930
# Used on cygwin: DLL creation program.
 
17931
DLLTOOL="$DLLTOOL"
 
17932
 
 
17933
# Used on cygwin: object dumper.
 
17934
OBJDUMP="$OBJDUMP"
 
17935
 
 
17936
# Used on cygwin: assembler.
 
17937
AS="$AS"
 
17938
 
 
17939
# The name of the directory that contains temporary libtool files.
 
17940
objdir=$objdir
 
17941
 
 
17942
# How to create reloadable object files.
 
17943
reload_flag=$lt_reload_flag
 
17944
reload_cmds=$lt_reload_cmds
 
17945
 
 
17946
# How to pass a linker flag through the compiler.
 
17947
wl=$lt_lt_prog_compiler_wl_F77
 
17948
 
 
17949
# Object file suffix (normally "o").
 
17950
objext="$ac_objext"
 
17951
 
 
17952
# Old archive suffix (normally "a").
 
17953
libext="$libext"
 
17954
 
 
17955
# Shared library suffix (normally ".so").
 
17956
shrext_cmds='$shrext_cmds'
 
17957
 
 
17958
# Executable file suffix (normally "").
 
17959
exeext="$exeext"
 
17960
 
 
17961
# Additional compiler flags for building library objects.
 
17962
pic_flag=$lt_lt_prog_compiler_pic_F77
 
17963
pic_mode=$pic_mode
 
17964
 
 
17965
# What is the maximum length of a command?
 
17966
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17967
 
 
17968
# Does compiler simultaneously support -c and -o options?
 
17969
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
17970
 
 
17971
# Must we lock files when doing compilation ?
 
17972
need_locks=$lt_need_locks
 
17973
 
 
17974
# Do we need the lib prefix for modules?
 
17975
need_lib_prefix=$need_lib_prefix
 
17976
 
 
17977
# Do we need a version for libraries?
 
17978
need_version=$need_version
 
17979
 
 
17980
# Whether dlopen is supported.
 
17981
dlopen_support=$enable_dlopen
 
17982
 
 
17983
# Whether dlopen of programs is supported.
 
17984
dlopen_self=$enable_dlopen_self
 
17985
 
 
17986
# Whether dlopen of statically linked programs is supported.
 
17987
dlopen_self_static=$enable_dlopen_self_static
 
17988
 
 
17989
# Compiler flag to prevent dynamic linking.
 
17990
link_static_flag=$lt_lt_prog_compiler_static_F77
 
17991
 
 
17992
# Compiler flag to turn off builtin functions.
 
17993
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
17994
 
 
17995
# Compiler flag to allow reflexive dlopens.
 
17996
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
17997
 
 
17998
# Compiler flag to generate shared objects directly from archives.
 
17999
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
18000
 
 
18001
# Compiler flag to generate thread-safe objects.
 
18002
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
18003
 
 
18004
# Library versioning type.
 
18005
version_type=$version_type
 
18006
 
 
18007
# Format of library name prefix.
 
18008
libname_spec=$lt_libname_spec
 
18009
 
 
18010
# List of archive names.  First name is the real one, the rest are links.
 
18011
# The last name is the one that the linker finds with -lNAME.
 
18012
library_names_spec=$lt_library_names_spec
 
18013
 
 
18014
# The coded name of the library, if different from the real name.
 
18015
soname_spec=$lt_soname_spec
 
18016
 
 
18017
# Commands used to build and install an old-style archive.
 
18018
RANLIB=$lt_RANLIB
 
18019
old_archive_cmds=$lt_old_archive_cmds_F77
 
18020
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18021
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18022
 
 
18023
# Create an old-style archive from a shared archive.
 
18024
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
18025
 
 
18026
# Create a temporary old-style archive to link instead of a shared archive.
 
18027
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
18028
 
 
18029
# Commands used to build and install a shared archive.
 
18030
archive_cmds=$lt_archive_cmds_F77
 
18031
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
18032
postinstall_cmds=$lt_postinstall_cmds
 
18033
postuninstall_cmds=$lt_postuninstall_cmds
 
18034
 
 
18035
# Commands used to build a loadable module (assumed same as above if empty)
 
18036
module_cmds=$lt_module_cmds_F77
 
18037
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
18038
 
 
18039
# Commands to strip libraries.
 
18040
old_striplib=$lt_old_striplib
 
18041
striplib=$lt_striplib
 
18042
 
 
18043
# Dependencies to place before the objects being linked to create a
 
18044
# shared library.
 
18045
predep_objects=$lt_predep_objects_F77
 
18046
 
 
18047
# Dependencies to place after the objects being linked to create a
 
18048
# shared library.
 
18049
postdep_objects=$lt_postdep_objects_F77
 
18050
 
 
18051
# Dependencies to place before the objects being linked to create a
 
18052
# shared library.
 
18053
predeps=$lt_predeps_F77
 
18054
 
 
18055
# Dependencies to place after the objects being linked to create a
 
18056
# shared library.
 
18057
postdeps=$lt_postdeps_F77
 
18058
 
 
18059
# The library search path used internally by the compiler when linking
 
18060
# a shared library.
 
18061
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
18062
 
 
18063
# Method to check whether dependent libraries are shared objects.
 
18064
deplibs_check_method=$lt_deplibs_check_method
 
18065
 
 
18066
# Command to use when deplibs_check_method == file_magic.
 
18067
file_magic_cmd=$lt_file_magic_cmd
 
18068
 
 
18069
# Flag that allows shared libraries with undefined symbols to be built.
 
18070
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
18071
 
 
18072
# Flag that forces no undefined symbols.
 
18073
no_undefined_flag=$lt_no_undefined_flag_F77
 
18074
 
 
18075
# Commands used to finish a libtool library installation in a directory.
 
18076
finish_cmds=$lt_finish_cmds
 
18077
 
 
18078
# Same as above, but a single script fragment to be evaled but not shown.
 
18079
finish_eval=$lt_finish_eval
 
18080
 
 
18081
# Take the output of nm and produce a listing of raw symbols and C names.
 
18082
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18083
 
 
18084
# Transform the output of nm in a proper C declaration
 
18085
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18086
 
 
18087
# Transform the output of nm in a C name address pair
 
18088
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18089
 
 
18090
# This is the shared library runtime path variable.
 
18091
runpath_var=$runpath_var
 
18092
 
 
18093
# This is the shared library path variable.
 
18094
shlibpath_var=$shlibpath_var
 
18095
 
 
18096
# Is shlibpath searched before the hard-coded library search path?
 
18097
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18098
 
 
18099
# How to hardcode a shared library path into an executable.
 
18100
hardcode_action=$hardcode_action_F77
 
18101
 
 
18102
# Whether we should hardcode library paths into libraries.
 
18103
hardcode_into_libs=$hardcode_into_libs
 
18104
 
 
18105
# Flag to hardcode \$libdir into a binary during linking.
 
18106
# This must work even if \$libdir does not exist.
 
18107
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
18108
 
 
18109
# If ld is used when linking, flag to hardcode \$libdir into
 
18110
# a binary during linking. This must work even if \$libdir does
 
18111
# not exist.
 
18112
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
18113
 
 
18114
# Whether we need a single -rpath flag with a separated argument.
 
18115
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
18116
 
 
18117
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18118
# resulting binary.
 
18119
hardcode_direct=$hardcode_direct_F77
 
18120
 
 
18121
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18122
# resulting binary.
 
18123
hardcode_minus_L=$hardcode_minus_L_F77
 
18124
 
 
18125
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18126
# the resulting binary.
 
18127
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
18128
 
 
18129
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18130
# and all subsequent libraries and executables linked against it.
 
18131
hardcode_automatic=$hardcode_automatic_F77
 
18132
 
 
18133
# Variables whose values should be saved in libtool wrapper scripts and
 
18134
# restored at relink time.
 
18135
variables_saved_for_relink="$variables_saved_for_relink"
 
18136
 
 
18137
# Whether libtool must link a program against all its dependency libraries.
 
18138
link_all_deplibs=$link_all_deplibs_F77
 
18139
 
 
18140
# Compile-time system search path for libraries
 
18141
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18142
 
 
18143
# Run-time system search path for libraries
 
18144
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18145
 
 
18146
# Fix the shell variable \$srcfile for the compiler.
 
18147
fix_srcfile_path="$fix_srcfile_path_F77"
 
18148
 
 
18149
# Set to yes if exported symbols are required.
 
18150
always_export_symbols=$always_export_symbols_F77
 
18151
 
 
18152
# The commands to list exported symbols.
 
18153
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
18154
 
 
18155
# The commands to extract the exported symbol list from a shared archive.
 
18156
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18157
 
 
18158
# Symbols that should not be listed in the preloaded symbols.
 
18159
exclude_expsyms=$lt_exclude_expsyms_F77
 
18160
 
 
18161
# Symbols that must always be exported.
 
18162
include_expsyms=$lt_include_expsyms_F77
 
18163
 
 
18164
# ### END LIBTOOL TAG CONFIG: $tagname
 
18165
 
 
18166
__EOF__
 
18167
 
 
18168
 
 
18169
else
 
18170
  # If there is no Makefile yet, we rely on a make rule to execute
 
18171
  # `config.status --recheck' to rerun these tests and create the
 
18172
  # libtool script then.
 
18173
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18174
  if test -f "$ltmain_in"; then
 
18175
    test -f Makefile && make "$ltmain"
 
18176
  fi
 
18177
fi
 
18178
 
 
18179
 
 
18180
ac_ext=c
 
18181
ac_cpp='$CPP $CPPFLAGS'
 
18182
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18183
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18184
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18185
 
 
18186
CC="$lt_save_CC"
 
18187
 
 
18188
        else
 
18189
          tagname=""
 
18190
        fi
 
18191
        ;;
 
18192
 
 
18193
      GCJ)
 
18194
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
18195
          
 
18196
 
 
18197
 
 
18198
# Source file extension for Java test sources.
 
18199
ac_ext=java
 
18200
 
 
18201
# Object file extension for compiled Java test sources.
 
18202
objext=o
 
18203
objext_GCJ=$objext
 
18204
 
 
18205
# Code to be used in simple compile tests
 
18206
lt_simple_compile_test_code="class foo {}\n"
 
18207
 
 
18208
# Code to be used in simple link tests
 
18209
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
18210
 
 
18211
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18212
 
 
18213
# If no C compiler was specified, use CC.
 
18214
LTCC=${LTCC-"$CC"}
 
18215
 
 
18216
# Allow CC to be a program name with arguments.
 
18217
compiler=$CC
 
18218
 
 
18219
 
 
18220
# Allow CC to be a program name with arguments.
 
18221
lt_save_CC="$CC"
 
18222
CC=${GCJ-"gcj"}
 
18223
compiler=$CC
 
18224
compiler_GCJ=$CC
 
18225
 
 
18226
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
18227
archive_cmds_need_lc_GCJ=no
 
18228
 
 
18229
## CAVEAT EMPTOR:
 
18230
## There is no encapsulation within the following macros, do not change
 
18231
## the running order or otherwise move them around unless you know exactly
 
18232
## what you are doing...
 
18233
 
 
18234
lt_prog_compiler_no_builtin_flag_GCJ=
 
18235
 
 
18236
if test "$GCC" = yes; then
 
18237
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
18238
 
 
18239
  
 
18240
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
18241
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
18242
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
18243
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18244
else
 
18245
  lt_cv_prog_compiler_rtti_exceptions=no
 
18246
  ac_outfile=conftest.$ac_objext
 
18247
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18248
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
18249
   # Insert the option either (1) after the last *FLAGS variable, or
 
18250
   # (2) before a word containing "conftest.", or (3) at the end.
 
18251
   # Note that $ac_compile itself does not contain backslashes and begins
 
18252
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18253
   # The option is referenced via a variable to avoid confusing sed.
 
18254
   lt_compile=`echo "$ac_compile" | $SED \
 
18255
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18256
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18257
   -e 's:$: $lt_compiler_flag:'`
 
18258
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
18259
   (eval "$lt_compile" 2>conftest.err)
 
18260
   ac_status=$?
 
18261
   cat conftest.err >&5
 
18262
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
18263
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18264
     # The compiler can only warn and ignore the option if not recognized
 
18265
     # So say no if there are warnings
 
18266
     if test ! -s conftest.err; then
 
18267
       lt_cv_prog_compiler_rtti_exceptions=yes
 
18268
     fi
 
18269
   fi
 
18270
   $rm conftest*
 
18271
 
 
18272
fi
 
18273
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
18274
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
18275
 
 
18276
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
18277
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
18278
else
 
18279
    :
 
18280
fi
 
18281
 
 
18282
fi
 
18283
 
 
18284
lt_prog_compiler_wl_GCJ=
 
18285
lt_prog_compiler_pic_GCJ=
 
18286
lt_prog_compiler_static_GCJ=
 
18287
 
 
18288
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
18289
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
18290
 
 
18291
  if test "$GCC" = yes; then
 
18292
    lt_prog_compiler_wl_GCJ='-Wl,'
 
18293
    lt_prog_compiler_static_GCJ='-static'
 
18294
 
 
18295
    case $host_os in
 
18296
      aix*)
 
18297
      # All AIX code is PIC.
 
18298
      if test "$host_cpu" = ia64; then
 
18299
        # AIX 5 now supports IA64 processor
 
18300
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18301
      fi
 
18302
      ;;
 
18303
 
 
18304
    amigaos*)
 
18305
      # FIXME: we need at least 68020 code to build shared libraries, but
 
18306
      # adding the `-m68020' flag to GCC prevents building anything better,
 
18307
      # like `-m68040'.
 
18308
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
18309
      ;;
 
18310
 
 
18311
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
18312
      # PIC is the default for these OSes.
 
18313
      ;;
 
18314
 
 
18315
    mingw* | pw32* | os2*)
 
18316
      # This hack is so that the source file can tell whether it is being
 
18317
      # built for inclusion in a dll (and should export symbols for example).
 
18318
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
18319
      ;;
 
18320
 
 
18321
    darwin* | rhapsody*)
 
18322
      # PIC is the default on this platform
 
18323
      # Common symbols not allowed in MH_DYLIB files
 
18324
      lt_prog_compiler_pic_GCJ='-fno-common'
 
18325
      ;;
 
18326
 
 
18327
    msdosdjgpp*)
 
18328
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
18329
      # on systems that don't support them.
 
18330
      lt_prog_compiler_can_build_shared_GCJ=no
 
18331
      enable_shared=no
 
18332
      ;;
 
18333
 
 
18334
    sysv4*MP*)
 
18335
      if test -d /usr/nec; then
 
18336
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
18337
      fi
 
18338
      ;;
 
18339
 
 
18340
    hpux*)
 
18341
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
18342
      # not for PA HP-UX.
 
18343
      case "$host_cpu" in
 
18344
      hppa*64*|ia64*)
 
18345
        # +Z the default
 
18346
        ;;
 
18347
      *)
 
18348
        lt_prog_compiler_pic_GCJ='-fPIC'
 
18349
        ;;
 
18350
      esac
 
18351
      ;;
 
18352
 
 
18353
    *)
 
18354
      lt_prog_compiler_pic_GCJ='-fPIC'
 
18355
      ;;
 
18356
    esac
 
18357
  else
 
18358
    # PORTME Check for flag to pass linker flags through the system compiler.
 
18359
    case $host_os in
 
18360
    aix*)
 
18361
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18362
      if test "$host_cpu" = ia64; then
 
18363
        # AIX 5 now supports IA64 processor
 
18364
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18365
      else
 
18366
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
18367
      fi
 
18368
      ;;
 
18369
 
 
18370
    mingw* | pw32* | os2*)
 
18371
      # This hack is so that the source file can tell whether it is being
 
18372
      # built for inclusion in a dll (and should export symbols for example).
 
18373
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
18374
      ;;
 
18375
 
 
18376
    hpux9* | hpux10* | hpux11*)
 
18377
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18378
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
18379
      # not for PA HP-UX.
 
18380
      case "$host_cpu" in
 
18381
      hppa*64*|ia64*)
 
18382
        # +Z the default
 
18383
        ;;
 
18384
      *)
 
18385
        lt_prog_compiler_pic_GCJ='+Z'
 
18386
        ;;
 
18387
      esac
 
18388
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
18389
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
18390
      ;;
 
18391
 
 
18392
    irix5* | irix6* | nonstopux*)
 
18393
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18394
      # PIC (with -KPIC) is the default.
 
18395
      lt_prog_compiler_static_GCJ='-non_shared'
 
18396
      ;;
 
18397
 
 
18398
    newsos6)
 
18399
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18400
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18401
      ;;
 
18402
 
 
18403
    linux*)
 
18404
      case $CC in
 
18405
      icc* | ecc*)
 
18406
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18407
        lt_prog_compiler_pic_GCJ='-KPIC'
 
18408
        lt_prog_compiler_static_GCJ='-static'
 
18409
        ;;
 
18410
      ccc*)
 
18411
        lt_prog_compiler_wl_GCJ='-Wl,'
 
18412
        # All Alpha code is PIC.
 
18413
        lt_prog_compiler_static_GCJ='-non_shared'
 
18414
        ;;
 
18415
      esac
 
18416
      ;;
 
18417
 
 
18418
    osf3* | osf4* | osf5*)
 
18419
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18420
      # All OSF/1 code is PIC.
 
18421
      lt_prog_compiler_static_GCJ='-non_shared'
 
18422
      ;;
 
18423
 
 
18424
    sco3.2v5*)
 
18425
      lt_prog_compiler_pic_GCJ='-Kpic'
 
18426
      lt_prog_compiler_static_GCJ='-dn'
 
18427
      ;;
 
18428
 
 
18429
    solaris*)
 
18430
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18431
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18432
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18433
      ;;
 
18434
 
 
18435
    sunos4*)
 
18436
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
18437
      lt_prog_compiler_pic_GCJ='-PIC'
 
18438
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18439
      ;;
 
18440
 
 
18441
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18442
      lt_prog_compiler_wl_GCJ='-Wl,'
 
18443
      lt_prog_compiler_pic_GCJ='-KPIC'
 
18444
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18445
      ;;
 
18446
 
 
18447
    sysv4*MP*)
 
18448
      if test -d /usr/nec ;then
 
18449
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
18450
        lt_prog_compiler_static_GCJ='-Bstatic'
 
18451
      fi
 
18452
      ;;
 
18453
 
 
18454
    uts4*)
 
18455
      lt_prog_compiler_pic_GCJ='-pic'
 
18456
      lt_prog_compiler_static_GCJ='-Bstatic'
 
18457
      ;;
 
18458
 
 
18459
    *)
 
18460
      lt_prog_compiler_can_build_shared_GCJ=no
 
18461
      ;;
 
18462
    esac
 
18463
  fi
 
18464
 
 
18465
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
18466
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
18467
 
 
18468
#
 
18469
# Check to make sure the PIC flag actually works.
 
18470
#
 
18471
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
18472
  
 
18473
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
18474
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
18475
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
18476
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18477
else
 
18478
  lt_prog_compiler_pic_works_GCJ=no
 
18479
  ac_outfile=conftest.$ac_objext
 
18480
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18481
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
18482
   # Insert the option either (1) after the last *FLAGS variable, or
 
18483
   # (2) before a word containing "conftest.", or (3) at the end.
 
18484
   # Note that $ac_compile itself does not contain backslashes and begins
 
18485
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18486
   # The option is referenced via a variable to avoid confusing sed.
 
18487
   lt_compile=`echo "$ac_compile" | $SED \
 
18488
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18489
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18490
   -e 's:$: $lt_compiler_flag:'`
 
18491
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
18492
   (eval "$lt_compile" 2>conftest.err)
 
18493
   ac_status=$?
 
18494
   cat conftest.err >&5
 
18495
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
18496
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
18497
     # The compiler can only warn and ignore the option if not recognized
 
18498
     # So say no if there are warnings
 
18499
     if test ! -s conftest.err; then
 
18500
       lt_prog_compiler_pic_works_GCJ=yes
 
18501
     fi
 
18502
   fi
 
18503
   $rm conftest*
 
18504
 
 
18505
fi
 
18506
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
18507
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
18508
 
 
18509
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
18510
    case $lt_prog_compiler_pic_GCJ in
 
18511
     "" | " "*) ;;
 
18512
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
18513
     esac
 
18514
else
 
18515
    lt_prog_compiler_pic_GCJ=
 
18516
     lt_prog_compiler_can_build_shared_GCJ=no
 
18517
fi
 
18518
 
 
18519
fi
 
18520
case "$host_os" in
 
18521
  # For platforms which do not support PIC, -DPIC is meaningless:
 
18522
  *djgpp*)
 
18523
    lt_prog_compiler_pic_GCJ=
 
18524
    ;;
 
18525
  *)
 
18526
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
18527
    ;;
 
18528
esac
 
18529
 
 
18530
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
18531
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
18532
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
18533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18534
else
 
18535
  lt_cv_prog_compiler_c_o_GCJ=no
 
18536
   $rm -r conftest 2>/dev/null
 
18537
   mkdir conftest
 
18538
   cd conftest
 
18539
   mkdir out
 
18540
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18541
 
 
18542
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
18543
   # Insert the option either (1) after the last *FLAGS variable, or
 
18544
   # (2) before a word containing "conftest.", or (3) at the end.
 
18545
   # Note that $ac_compile itself does not contain backslashes and begins
 
18546
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
18547
   lt_compile=`echo "$ac_compile" | $SED \
 
18548
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
18549
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
18550
   -e 's:$: $lt_compiler_flag:'`
 
18551
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
18552
   (eval "$lt_compile" 2>out/conftest.err)
 
18553
   ac_status=$?
 
18554
   cat out/conftest.err >&5
 
18555
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
18556
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
18557
   then
 
18558
     # The compiler can only warn and ignore the option if not recognized
 
18559
     # So say no if there are warnings
 
18560
     if test ! -s out/conftest.err; then
 
18561
       lt_cv_prog_compiler_c_o_GCJ=yes
 
18562
     fi
 
18563
   fi
 
18564
   chmod u+w .
 
18565
   $rm conftest*
 
18566
   # SGI C++ compiler will create directory out/ii_files/ for
 
18567
   # template instantiation
 
18568
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
18569
   $rm out/* && rmdir out
 
18570
   cd ..
 
18571
   rmdir conftest
 
18572
   $rm conftest*
 
18573
 
 
18574
fi
 
18575
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
18576
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
18577
 
 
18578
 
 
18579
hard_links="nottested"
 
18580
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
18581
  # do not overwrite the value of need_locks provided by the user
 
18582
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
18583
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
18584
  hard_links=yes
 
18585
  $rm conftest*
 
18586
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18587
  touch conftest.a
 
18588
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
18589
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
18590
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
18591
echo "${ECHO_T}$hard_links" >&6
 
18592
  if test "$hard_links" = no; then
 
18593
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
18594
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
18595
    need_locks=warn
 
18596
  fi
 
18597
else
 
18598
  need_locks=no
 
18599
fi
 
18600
 
 
18601
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
18602
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
18603
 
 
18604
  runpath_var=
 
18605
  allow_undefined_flag_GCJ=
 
18606
  enable_shared_with_static_runtimes_GCJ=no
 
18607
  archive_cmds_GCJ=
 
18608
  archive_expsym_cmds_GCJ=
 
18609
  old_archive_From_new_cmds_GCJ=
 
18610
  old_archive_from_expsyms_cmds_GCJ=
 
18611
  export_dynamic_flag_spec_GCJ=
 
18612
  whole_archive_flag_spec_GCJ=
 
18613
  thread_safe_flag_spec_GCJ=
 
18614
  hardcode_libdir_flag_spec_GCJ=
 
18615
  hardcode_libdir_flag_spec_ld_GCJ=
 
18616
  hardcode_libdir_separator_GCJ=
 
18617
  hardcode_direct_GCJ=no
 
18618
  hardcode_minus_L_GCJ=no
 
18619
  hardcode_shlibpath_var_GCJ=unsupported
 
18620
  link_all_deplibs_GCJ=unknown
 
18621
  hardcode_automatic_GCJ=no
 
18622
  module_cmds_GCJ=
 
18623
  module_expsym_cmds_GCJ=
 
18624
  always_export_symbols_GCJ=no
 
18625
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
18626
  # include_expsyms should be a list of space-separated symbols to be *always*
 
18627
  # included in the symbol list
 
18628
  include_expsyms_GCJ=
 
18629
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
18630
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
18631
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
18632
  # as well as any symbol that contains `d'.
 
18633
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
18634
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
18635
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
18636
  # the symbol is explicitly referenced.  Since portable code cannot
 
18637
  # rely on this symbol name, it's probably fine to never include it in
 
18638
  # preloaded symbol tables.
 
18639
  extract_expsyms_cmds=
 
18640
 
 
18641
  case $host_os in
 
18642
  cygwin* | mingw* | pw32*)
 
18643
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
18644
    # When not using gcc, we currently assume that we are using
 
18645
    # Microsoft Visual C++.
 
18646
    if test "$GCC" != yes; then
 
18647
      with_gnu_ld=no
 
18648
    fi
 
18649
    ;;
 
18650
  openbsd*)
 
18651
    with_gnu_ld=no
 
18652
    ;;
 
18653
  esac
 
18654
 
 
18655
  ld_shlibs_GCJ=yes
 
18656
  if test "$with_gnu_ld" = yes; then
 
18657
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
18658
    wlarc='${wl}'
 
18659
 
 
18660
    # See if GNU ld supports shared libraries.
 
18661
    case $host_os in
 
18662
    aix3* | aix4* | aix5*)
 
18663
      # On AIX/PPC, the GNU linker is very broken
 
18664
      if test "$host_cpu" != ia64; then
 
18665
        ld_shlibs_GCJ=no
 
18666
        cat <<EOF 1>&2
 
18667
 
 
18668
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
18669
*** to be unable to reliably create shared libraries on AIX.
 
18670
*** Therefore, libtool is disabling shared libraries support.  If you
 
18671
*** really care for shared libraries, you may want to modify your PATH
 
18672
*** so that a non-GNU linker is found, and then restart.
 
18673
 
 
18674
EOF
 
18675
      fi
 
18676
      ;;
 
18677
 
 
18678
    amigaos*)
 
18679
      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)'
 
18680
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18681
      hardcode_minus_L_GCJ=yes
 
18682
 
 
18683
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
18684
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
18685
      # to version 4, is to share data among multiple programs linked
 
18686
      # with the same dynamic library.  Since this doesn't match the
 
18687
      # behavior of shared libraries on other platforms, we can't use
 
18688
      # them.
 
18689
      ld_shlibs_GCJ=no
 
18690
      ;;
 
18691
 
 
18692
    beos*)
 
18693
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18694
        allow_undefined_flag_GCJ=unsupported
 
18695
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
18696
        # support --undefined.  This deserves some investigation.  FIXME
 
18697
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18698
      else
 
18699
        ld_shlibs_GCJ=no
 
18700
      fi
 
18701
      ;;
 
18702
 
 
18703
    cygwin* | mingw* | pw32*)
 
18704
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
18705
      # as there is no search path for DLLs.
 
18706
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18707
      allow_undefined_flag_GCJ=unsupported
 
18708
      always_export_symbols_GCJ=no
 
18709
      enable_shared_with_static_runtimes_GCJ=yes
 
18710
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
18711
 
 
18712
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
18713
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
18714
        # If the export-symbols file already is a .def file (1st line
 
18715
        # is EXPORTS), use it as is; otherwise, prepend...
 
18716
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
18717
          cp $export_symbols $output_objdir/$soname.def;
 
18718
        else
 
18719
          echo EXPORTS > $output_objdir/$soname.def;
 
18720
          cat $export_symbols >> $output_objdir/$soname.def;
 
18721
        fi~
 
18722
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
18723
      else
 
18724
        ld_shlibs=no
 
18725
      fi
 
18726
      ;;
 
18727
 
 
18728
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
18729
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18730
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
18731
        wlarc=
 
18732
      else
 
18733
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18734
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18735
      fi
 
18736
      ;;
 
18737
 
 
18738
    solaris* | sysv5*)
 
18739
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
18740
        ld_shlibs_GCJ=no
 
18741
        cat <<EOF 1>&2
 
18742
 
 
18743
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
18744
*** create shared libraries on Solaris systems.  Therefore, libtool
 
18745
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18746
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
18747
*** your PATH or compiler configuration so that the native linker is
 
18748
*** used, and then restart.
 
18749
 
 
18750
EOF
 
18751
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18752
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18753
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18754
      else
 
18755
        ld_shlibs_GCJ=no
 
18756
      fi
 
18757
      ;;
 
18758
 
 
18759
    sunos4*)
 
18760
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18761
      wlarc=
 
18762
      hardcode_direct_GCJ=yes
 
18763
      hardcode_shlibpath_var_GCJ=no
 
18764
      ;;
 
18765
 
 
18766
  linux*)
 
18767
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18768
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18769
        archive_cmds_GCJ="$tmp_archive_cmds"
 
18770
      supports_anon_versioning=no
 
18771
      case `$LD -v 2>/dev/null` in
 
18772
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
18773
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
18774
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
18775
        *\ 2.11.*) ;; # other 2.11 versions
 
18776
        *) supports_anon_versioning=yes ;;
 
18777
      esac
 
18778
      if test $supports_anon_versioning = yes; then
 
18779
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
18780
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
18781
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
18782
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
18783
      else
 
18784
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
18785
      fi
 
18786
      link_all_deplibs_GCJ=no
 
18787
    else
 
18788
      ld_shlibs_GCJ=no
 
18789
    fi
 
18790
    ;;
 
18791
 
 
18792
    *)
 
18793
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18794
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18795
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18796
      else
 
18797
        ld_shlibs_GCJ=no
 
18798
      fi
 
18799
      ;;
 
18800
    esac
 
18801
 
 
18802
    if test "$ld_shlibs_GCJ" = yes; then
 
18803
      runpath_var=LD_RUN_PATH
 
18804
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
18805
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
18806
      # ancient GNU ld didn't support --whole-archive et. al.
 
18807
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
18808
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18809
      else
 
18810
        whole_archive_flag_spec_GCJ=
 
18811
      fi
 
18812
    fi
 
18813
  else
 
18814
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18815
    case $host_os in
 
18816
    aix3*)
 
18817
      allow_undefined_flag_GCJ=unsupported
 
18818
      always_export_symbols_GCJ=yes
 
18819
      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'
 
18820
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18821
      # are no directories specified by -L.
 
18822
      hardcode_minus_L_GCJ=yes
 
18823
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
18824
        # Neither direct hardcoding nor static linking is supported with a
 
18825
        # broken collect2.
 
18826
        hardcode_direct_GCJ=unsupported
 
18827
      fi
 
18828
      ;;
 
18829
 
 
18830
    aix4* | aix5*)
 
18831
      if test "$host_cpu" = ia64; then
 
18832
        # On IA64, the linker does run time linking by default, so we don't
 
18833
        # have to do anything special.
 
18834
        aix_use_runtimelinking=no
 
18835
        exp_sym_flag='-Bexport'
 
18836
        no_entry_flag=""
 
18837
      else
 
18838
        # If we're using GNU nm, then we don't want the "-C" option.
 
18839
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18840
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18841
          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'
 
18842
        else
 
18843
          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'
 
18844
        fi
 
18845
        aix_use_runtimelinking=no
 
18846
 
 
18847
        # Test if we are trying to use run time linking or normal
 
18848
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
18849
        # need to do runtime linking.
 
18850
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
18851
          for ld_flag in $LDFLAGS; do
 
18852
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
18853
            aix_use_runtimelinking=yes
 
18854
            break
 
18855
          fi
 
18856
          done
 
18857
        esac
 
18858
 
 
18859
        exp_sym_flag='-bexport'
 
18860
        no_entry_flag='-bnoentry'
 
18861
      fi
 
18862
 
 
18863
      # When large executables or shared objects are built, AIX ld can
 
18864
      # have problems creating the table of contents.  If linking a library
 
18865
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18866
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18867
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18868
 
 
18869
      archive_cmds_GCJ=''
 
18870
      hardcode_direct_GCJ=yes
 
18871
      hardcode_libdir_separator_GCJ=':'
 
18872
      link_all_deplibs_GCJ=yes
 
18873
 
 
18874
      if test "$GCC" = yes; then
 
18875
        case $host_os in aix4.012|aix4.012.*)
 
18876
        # We only want to do this on AIX 4.2 and lower, the check
 
18877
        # below for broken collect2 doesn't work under 4.3+
 
18878
          collect2name=`${CC} -print-prog-name=collect2`
 
18879
          if test -f "$collect2name" && \
 
18880
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18881
          then
 
18882
          # We have reworked collect2
 
18883
          hardcode_direct_GCJ=yes
 
18884
          else
 
18885
          # We have old collect2
 
18886
          hardcode_direct_GCJ=unsupported
 
18887
          # It fails to find uninstalled libraries when the uninstalled
 
18888
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18889
          # to unsupported forces relinking
 
18890
          hardcode_minus_L_GCJ=yes
 
18891
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18892
          hardcode_libdir_separator_GCJ=
 
18893
          fi
 
18894
        esac
 
18895
        shared_flag='-shared'
 
18896
      else
 
18897
        # not using gcc
 
18898
        if test "$host_cpu" = ia64; then
 
18899
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18900
        # chokes on -Wl,-G. The following line is correct:
 
18901
          shared_flag='-G'
 
18902
        else
 
18903
        if test "$aix_use_runtimelinking" = yes; then
 
18904
            shared_flag='${wl}-G'
 
18905
          else
 
18906
            shared_flag='${wl}-bM:SRE'
 
18907
        fi
 
18908
        fi
 
18909
      fi
 
18910
 
 
18911
      # It seems that -bexpall does not export symbols beginning with
 
18912
      # underscore (_), so it is better to generate a list of symbols to export.
 
18913
      always_export_symbols_GCJ=yes
 
18914
      if test "$aix_use_runtimelinking" = yes; then
 
18915
        # Warning - without using the other runtime loading flags (-brtl),
 
18916
        # -berok will link without error, but may produce a broken library.
 
18917
        allow_undefined_flag_GCJ='-berok'
 
18918
       # Determine the default libpath from the value encoded in an empty executable.
 
18919
       cat >conftest.$ac_ext <<_ACEOF
 
18920
/* confdefs.h.  */
 
18921
_ACEOF
 
18922
cat confdefs.h >>conftest.$ac_ext
 
18923
cat >>conftest.$ac_ext <<_ACEOF
 
18924
/* end confdefs.h.  */
 
18925
 
 
18926
int
 
18927
main ()
 
18928
{
 
18929
 
 
18930
  ;
 
18931
  return 0;
 
18932
}
 
18933
_ACEOF
 
18934
rm -f conftest.$ac_objext conftest$ac_exeext
 
18935
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18936
  (eval $ac_link) 2>conftest.er1
 
18937
  ac_status=$?
 
18938
  grep -v '^ *+' conftest.er1 >conftest.err
 
18939
  rm -f conftest.er1
 
18940
  cat conftest.err >&5
 
18941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18942
  (exit $ac_status); } &&
 
18943
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18945
  (eval $ac_try) 2>&5
 
18946
  ac_status=$?
 
18947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18948
  (exit $ac_status); }; } &&
 
18949
         { ac_try='test -s conftest$ac_exeext'
 
18950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18951
  (eval $ac_try) 2>&5
 
18952
  ac_status=$?
 
18953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18954
  (exit $ac_status); }; }; then
 
18955
  
 
18956
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18957
}'`
 
18958
# Check for a 64-bit object if we didn't find anything.
 
18959
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; }
 
18960
}'`; fi
 
18961
else
 
18962
  echo "$as_me: failed program was:" >&5
 
18963
sed 's/^/| /' conftest.$ac_ext >&5
 
18964
 
 
18965
fi
 
18966
rm -f conftest.err conftest.$ac_objext \
 
18967
      conftest$ac_exeext conftest.$ac_ext
 
18968
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18969
 
 
18970
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18971
        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"
 
18972
       else
 
18973
        if test "$host_cpu" = ia64; then
 
18974
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18975
          allow_undefined_flag_GCJ="-z nodefs"
 
18976
          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"
 
18977
        else
 
18978
         # Determine the default libpath from the value encoded in an empty executable.
 
18979
         cat >conftest.$ac_ext <<_ACEOF
 
18980
/* confdefs.h.  */
 
18981
_ACEOF
 
18982
cat confdefs.h >>conftest.$ac_ext
 
18983
cat >>conftest.$ac_ext <<_ACEOF
 
18984
/* end confdefs.h.  */
 
18985
 
 
18986
int
 
18987
main ()
 
18988
{
 
18989
 
 
18990
  ;
 
18991
  return 0;
 
18992
}
 
18993
_ACEOF
 
18994
rm -f conftest.$ac_objext conftest$ac_exeext
 
18995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18996
  (eval $ac_link) 2>conftest.er1
 
18997
  ac_status=$?
 
18998
  grep -v '^ *+' conftest.er1 >conftest.err
 
18999
  rm -f conftest.er1
 
19000
  cat conftest.err >&5
 
19001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19002
  (exit $ac_status); } &&
 
19003
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19005
  (eval $ac_try) 2>&5
 
19006
  ac_status=$?
 
19007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19008
  (exit $ac_status); }; } &&
 
19009
         { ac_try='test -s conftest$ac_exeext'
 
19010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19011
  (eval $ac_try) 2>&5
 
19012
  ac_status=$?
 
19013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19014
  (exit $ac_status); }; }; then
 
19015
  
 
19016
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
19017
}'`
 
19018
# Check for a 64-bit object if we didn't find anything.
 
19019
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; }
 
19020
}'`; fi
 
19021
else
 
19022
  echo "$as_me: failed program was:" >&5
 
19023
sed 's/^/| /' conftest.$ac_ext >&5
 
19024
 
 
19025
fi
 
19026
rm -f conftest.err conftest.$ac_objext \
 
19027
      conftest$ac_exeext conftest.$ac_ext
 
19028
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
19029
 
 
19030
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
19031
          # Warning - without using the other run time loading flags,
 
19032
          # -berok will link without error, but may produce a broken library.
 
19033
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
19034
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
19035
          # -bexpall does not export symbols beginning with underscore (_)
 
19036
          always_export_symbols_GCJ=yes
 
19037
          # Exported symbols can be pulled into shared objects from archives
 
19038
          whole_archive_flag_spec_GCJ=' '
 
19039
          archive_cmds_need_lc_GCJ=yes
 
19040
          # This is similar to how AIX traditionally builds it's shared libraries.
 
19041
          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'
 
19042
        fi
 
19043
      fi
 
19044
      ;;
 
19045
 
 
19046
    amigaos*)
 
19047
      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)'
 
19048
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19049
      hardcode_minus_L_GCJ=yes
 
19050
      # see comment about different semantics on the GNU ld section
 
19051
      ld_shlibs_GCJ=no
 
19052
      ;;
 
19053
 
 
19054
    bsdi4*)
 
19055
      export_dynamic_flag_spec_GCJ=-rdynamic
 
19056
      ;;
 
19057
 
 
19058
    cygwin* | mingw* | pw32*)
 
19059
      # When not using gcc, we currently assume that we are using
 
19060
      # Microsoft Visual C++.
 
19061
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
19062
      # no search path for DLLs.
 
19063
      hardcode_libdir_flag_spec_GCJ=' '
 
19064
      allow_undefined_flag_GCJ=unsupported
 
19065
      # Tell ltmain to make .lib files, not .a files.
 
19066
      libext=lib
 
19067
      # Tell ltmain to make .dll files, not .so files.
 
19068
      shrext_cmds=".dll"
 
19069
      # FIXME: Setting linknames here is a bad hack.
 
19070
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
19071
      # The linker will automatically build a .lib file if we build a DLL.
 
19072
      old_archive_From_new_cmds_GCJ='true'
 
19073
      # FIXME: Should let the user specify the lib program.
 
19074
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
19075
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
19076
      enable_shared_with_static_runtimes_GCJ=yes
 
19077
      ;;
 
19078
 
 
19079
    darwin* | rhapsody*)
 
19080
    if test "$GXX" = yes ; then
 
19081
      archive_cmds_need_lc_GCJ=no
 
19082
      case "$host_os" in
 
19083
      rhapsody* | darwin1.[012])
 
19084
        allow_undefined_flag_GCJ='-undefined suppress'
 
19085
        ;;
 
19086
      *) # Darwin 1.3 on
 
19087
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
19088
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
19089
      else
 
19090
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
19091
          10.[012])
 
19092
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
19093
            ;;
 
19094
          10.*)
 
19095
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
19096
            ;;
 
19097
        esac
 
19098
      fi
 
19099
        ;;
 
19100
      esac
 
19101
        lt_int_apple_cc_single_mod=no
 
19102
        output_verbose_link_cmd='echo'
 
19103
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
19104
          lt_int_apple_cc_single_mod=yes
 
19105
        fi
 
19106
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
19107
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
19108
        else
 
19109
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
19110
      fi
 
19111
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
19112
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
19113
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
19114
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19115
        else
 
19116
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
19117
        fi
 
19118
          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}'
 
19119
      hardcode_direct_GCJ=no
 
19120
      hardcode_automatic_GCJ=yes
 
19121
      hardcode_shlibpath_var_GCJ=unsupported
 
19122
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
19123
      link_all_deplibs_GCJ=yes
 
19124
    else
 
19125
      ld_shlibs_GCJ=no
 
19126
    fi
 
19127
      ;;
 
19128
 
 
19129
    dgux*)
 
19130
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19131
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19132
      hardcode_shlibpath_var_GCJ=no
 
19133
      ;;
 
19134
 
 
19135
    freebsd1*)
 
19136
      ld_shlibs_GCJ=no
 
19137
      ;;
 
19138
 
 
19139
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
19140
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
19141
    # does not break anything, and helps significantly (at the cost of a little
 
19142
    # extra space).
 
19143
    freebsd2.2*)
 
19144
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
19145
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19146
      hardcode_direct_GCJ=yes
 
19147
      hardcode_shlibpath_var_GCJ=no
 
19148
      ;;
 
19149
 
 
19150
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
19151
    freebsd2*)
 
19152
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19153
      hardcode_direct_GCJ=yes
 
19154
      hardcode_minus_L_GCJ=yes
 
19155
      hardcode_shlibpath_var_GCJ=no
 
19156
      ;;
 
19157
 
 
19158
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
19159
    freebsd* | kfreebsd*-gnu)
 
19160
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
19161
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19162
      hardcode_direct_GCJ=yes
 
19163
      hardcode_shlibpath_var_GCJ=no
 
19164
      ;;
 
19165
 
 
19166
    hpux9*)
 
19167
      if test "$GCC" = yes; then
 
19168
        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'
 
19169
      else
 
19170
        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'
 
19171
      fi
 
19172
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19173
      hardcode_libdir_separator_GCJ=:
 
19174
      hardcode_direct_GCJ=yes
 
19175
 
 
19176
      # hardcode_minus_L: Not really in the search PATH,
 
19177
      # but as the default location of the library.
 
19178
      hardcode_minus_L_GCJ=yes
 
19179
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
19180
      ;;
 
19181
 
 
19182
    hpux10* | hpux11*)
 
19183
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
19184
        case "$host_cpu" in
 
19185
        hppa*64*|ia64*)
 
19186
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19187
          ;;
 
19188
        *)
 
19189
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
19190
          ;;
 
19191
        esac
 
19192
      else
 
19193
        case "$host_cpu" in
 
19194
        hppa*64*|ia64*)
 
19195
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19196
          ;;
 
19197
        *)
 
19198
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
19199
          ;;
 
19200
        esac
 
19201
      fi
 
19202
      if test "$with_gnu_ld" = no; then
 
19203
        case "$host_cpu" in
 
19204
        hppa*64*)
 
19205
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19206
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
19207
          hardcode_libdir_separator_GCJ=:
 
19208
          hardcode_direct_GCJ=no
 
19209
          hardcode_shlibpath_var_GCJ=no
 
19210
          ;;
 
19211
        ia64*)
 
19212
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19213
          hardcode_direct_GCJ=no
 
19214
          hardcode_shlibpath_var_GCJ=no
 
19215
 
 
19216
          # hardcode_minus_L: Not really in the search PATH,
 
19217
          # but as the default location of the library.
 
19218
          hardcode_minus_L_GCJ=yes
 
19219
          ;;
 
19220
        *)
 
19221
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
19222
          hardcode_libdir_separator_GCJ=:
 
19223
          hardcode_direct_GCJ=yes
 
19224
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
19225
 
 
19226
          # hardcode_minus_L: Not really in the search PATH,
 
19227
          # but as the default location of the library.
 
19228
          hardcode_minus_L_GCJ=yes
 
19229
          ;;
 
19230
        esac
 
19231
      fi
 
19232
      ;;
 
19233
 
 
19234
    irix5* | irix6* | nonstopux*)
 
19235
      if test "$GCC" = yes; then
 
19236
        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'
 
19237
      else
 
19238
        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'
 
19239
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
19240
      fi
 
19241
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19242
      hardcode_libdir_separator_GCJ=:
 
19243
      link_all_deplibs_GCJ=yes
 
19244
      ;;
 
19245
 
 
19246
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
19247
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19248
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
19249
      else
 
19250
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
19251
      fi
 
19252
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19253
      hardcode_direct_GCJ=yes
 
19254
      hardcode_shlibpath_var_GCJ=no
 
19255
      ;;
 
19256
 
 
19257
    newsos6)
 
19258
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19259
      hardcode_direct_GCJ=yes
 
19260
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19261
      hardcode_libdir_separator_GCJ=:
 
19262
      hardcode_shlibpath_var_GCJ=no
 
19263
      ;;
 
19264
 
 
19265
    openbsd*)
 
19266
      hardcode_direct_GCJ=yes
 
19267
      hardcode_shlibpath_var_GCJ=no
 
19268
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19269
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
19270
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19271
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
19272
      else
 
19273
       case $host_os in
 
19274
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
19275
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
19276
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19277
           ;;
 
19278
         *)
 
19279
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
19280
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
19281
           ;;
 
19282
       esac
 
19283
      fi
 
19284
      ;;
 
19285
 
 
19286
    os2*)
 
19287
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19288
      hardcode_minus_L_GCJ=yes
 
19289
      allow_undefined_flag_GCJ=unsupported
 
19290
      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'
 
19291
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
19292
      ;;
 
19293
 
 
19294
    osf3*)
 
19295
      if test "$GCC" = yes; then
 
19296
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
19297
        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'
 
19298
      else
 
19299
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
19300
        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'
 
19301
      fi
 
19302
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19303
      hardcode_libdir_separator_GCJ=:
 
19304
      ;;
 
19305
 
 
19306
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
19307
      if test "$GCC" = yes; then
 
19308
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
19309
        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'
 
19310
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
19311
      else
 
19312
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
19313
        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'
 
19314
        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~
 
19315
        $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'
 
19316
 
 
19317
        # Both c and cxx compiler support -rpath directly
 
19318
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
19319
      fi
 
19320
      hardcode_libdir_separator_GCJ=:
 
19321
      ;;
 
19322
 
 
19323
    sco3.2v5*)
 
19324
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19325
      hardcode_shlibpath_var_GCJ=no
 
19326
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
19327
      runpath_var=LD_RUN_PATH
 
19328
      hardcode_runpath_var=yes
 
19329
      ;;
 
19330
 
 
19331
    solaris*)
 
19332
      no_undefined_flag_GCJ=' -z text'
 
19333
      if test "$GCC" = yes; then
 
19334
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19335
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19336
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
19337
      else
 
19338
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19339
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19340
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19341
      fi
 
19342
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
19343
      hardcode_shlibpath_var_GCJ=no
 
19344
      case $host_os in
 
19345
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
19346
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
19347
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
19348
      esac
 
19349
      link_all_deplibs_GCJ=yes
 
19350
      ;;
 
19351
 
 
19352
    sunos4*)
 
19353
      if test "x$host_vendor" = xsequent; then
 
19354
        # Use $CC to link under sequent, because it throws in some extra .o
 
19355
        # files that make .init and .fini sections work.
 
19356
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
19357
      else
 
19358
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
19359
      fi
 
19360
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19361
      hardcode_direct_GCJ=yes
 
19362
      hardcode_minus_L_GCJ=yes
 
19363
      hardcode_shlibpath_var_GCJ=no
 
19364
      ;;
 
19365
 
 
19366
    sysv4)
 
19367
      case $host_vendor in
 
19368
        sni)
 
19369
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19370
          hardcode_direct_GCJ=yes # is this really true???
 
19371
        ;;
 
19372
        siemens)
 
19373
          ## LD is ld it makes a PLAMLIB
 
19374
          ## CC just makes a GrossModule.
 
19375
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
19376
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
19377
          hardcode_direct_GCJ=no
 
19378
        ;;
 
19379
        motorola)
 
19380
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19381
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
19382
        ;;
 
19383
      esac
 
19384
      runpath_var='LD_RUN_PATH'
 
19385
      hardcode_shlibpath_var_GCJ=no
 
19386
      ;;
 
19387
 
 
19388
    sysv4.3*)
 
19389
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19390
      hardcode_shlibpath_var_GCJ=no
 
19391
      export_dynamic_flag_spec_GCJ='-Bexport'
 
19392
      ;;
 
19393
 
 
19394
    sysv4*MP*)
 
19395
      if test -d /usr/nec; then
 
19396
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19397
        hardcode_shlibpath_var_GCJ=no
 
19398
        runpath_var=LD_RUN_PATH
 
19399
        hardcode_runpath_var=yes
 
19400
        ld_shlibs_GCJ=yes
 
19401
      fi
 
19402
      ;;
 
19403
 
 
19404
    sysv4.2uw2*)
 
19405
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
19406
      hardcode_direct_GCJ=yes
 
19407
      hardcode_minus_L_GCJ=no
 
19408
      hardcode_shlibpath_var_GCJ=no
 
19409
      hardcode_runpath_var=yes
 
19410
      runpath_var=LD_RUN_PATH
 
19411
      ;;
 
19412
 
 
19413
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
19414
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
19415
      if test "$GCC" = yes; then
 
19416
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19417
      else
 
19418
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
19419
      fi
 
19420
      runpath_var='LD_RUN_PATH'
 
19421
      hardcode_shlibpath_var_GCJ=no
 
19422
      ;;
 
19423
 
 
19424
    sysv5*)
 
19425
      no_undefined_flag_GCJ=' -z text'
 
19426
      # $CC -shared without GNU ld will not create a library from C++
 
19427
      # object files and a static libstdc++, better avoid it by now
 
19428
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19429
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
19430
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
19431
      hardcode_libdir_flag_spec_GCJ=
 
19432
      hardcode_shlibpath_var_GCJ=no
 
19433
      runpath_var='LD_RUN_PATH'
 
19434
      ;;
 
19435
 
 
19436
    uts4*)
 
19437
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
19438
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
19439
      hardcode_shlibpath_var_GCJ=no
 
19440
      ;;
 
19441
 
 
19442
    *)
 
19443
      ld_shlibs_GCJ=no
 
19444
      ;;
 
19445
    esac
 
19446
  fi
 
19447
 
 
19448
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
19449
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
19450
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
19451
 
 
19452
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19453
if test "$GCC" = yes; then
 
19454
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19455
fi
 
19456
 
 
19457
#
 
19458
# Do we need to explicitly link libc?
 
19459
#
 
19460
case "x$archive_cmds_need_lc_GCJ" in
 
19461
x|xyes)
 
19462
  # Assume -lc should be added
 
19463
  archive_cmds_need_lc_GCJ=yes
 
19464
 
 
19465
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
19466
    case $archive_cmds_GCJ in
 
19467
    *'~'*)
 
19468
      # FIXME: we may have to deal with multi-command sequences.
 
19469
      ;;
 
19470
    '$CC '*)
 
19471
      # Test whether the compiler implicitly links with -lc since on some
 
19472
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
19473
      # to ld, don't add -lc before -lgcc.
 
19474
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
19475
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
19476
      $rm conftest*
 
19477
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
19478
 
 
19479
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19480
  (eval $ac_compile) 2>&5
 
19481
  ac_status=$?
 
19482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19483
  (exit $ac_status); } 2>conftest.err; then
 
19484
        soname=conftest
 
19485
        lib=conftest
 
19486
        libobjs=conftest.$ac_objext
 
19487
        deplibs=
 
19488
        wl=$lt_prog_compiler_wl_GCJ
 
19489
        compiler_flags=-v
 
19490
        linker_flags=-v
 
19491
        verstring=
 
19492
        output_objdir=.
 
19493
        libname=conftest
 
19494
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
19495
        allow_undefined_flag_GCJ=
 
19496
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
19497
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
19498
  ac_status=$?
 
19499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19500
  (exit $ac_status); }
 
19501
        then
 
19502
          archive_cmds_need_lc_GCJ=no
 
19503
        else
 
19504
          archive_cmds_need_lc_GCJ=yes
 
19505
        fi
 
19506
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
19507
      else
 
19508
        cat conftest.err 1>&5
 
19509
      fi
 
19510
      $rm conftest*
 
19511
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
19512
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
19513
      ;;
 
19514
    esac
 
19515
  fi
 
19516
  ;;
 
19517
esac
 
19518
 
 
19519
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
19520
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
19521
library_names_spec=
 
19522
libname_spec='lib$name'
 
19523
soname_spec=
 
19524
shrext_cmds=".so"
 
19525
postinstall_cmds=
 
19526
postuninstall_cmds=
 
19527
finish_cmds=
 
19528
finish_eval=
 
19529
shlibpath_var=
 
19530
shlibpath_overrides_runpath=unknown
 
19531
version_type=none
 
19532
dynamic_linker="$host_os ld.so"
 
19533
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
19534
if test "$GCC" = yes; then
 
19535
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19536
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
19537
    # if the path contains ";" then we assume it to be the separator
 
19538
    # otherwise default to the standard path separator (i.e. ":") - it is
 
19539
    # assumed that no part of a normal pathname contains ";" but that should
 
19540
    # okay in the real world where ";" in dirpaths is itself problematic.
 
19541
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19542
  else
 
19543
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19544
  fi
 
19545
else
 
19546
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
19547
fi
 
19548
need_lib_prefix=unknown
 
19549
hardcode_into_libs=no
 
19550
 
 
19551
# when you set need_version to no, make sure it does not cause -set_version
 
19552
# flags to be left without arguments
 
19553
need_version=unknown
 
19554
 
 
19555
case $host_os in
 
19556
aix3*)
 
19557
  version_type=linux
 
19558
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
19559
  shlibpath_var=LIBPATH
 
19560
 
 
19561
  # AIX 3 has no versioning support, so we append a major version to the name.
 
19562
  soname_spec='${libname}${release}${shared_ext}$major'
 
19563
  ;;
 
19564
 
 
19565
aix4* | aix5*)
 
19566
  version_type=linux
 
19567
  need_lib_prefix=no
 
19568
  need_version=no
 
19569
  hardcode_into_libs=yes
 
19570
  if test "$host_cpu" = ia64; then
 
19571
    # AIX 5 supports IA64
 
19572
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
19573
    shlibpath_var=LD_LIBRARY_PATH
 
19574
  else
 
19575
    # With GCC up to 2.95.x, collect2 would create an import file
 
19576
    # for dependence libraries.  The import file would start with
 
19577
    # the line `#! .'.  This would cause the generated library to
 
19578
    # depend on `.', always an invalid library.  This was fixed in
 
19579
    # development snapshots of GCC prior to 3.0.
 
19580
    case $host_os in
 
19581
      aix4 | aix4.[01] | aix4.[01].*)
 
19582
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
19583
           echo ' yes '
 
19584
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
19585
        :
 
19586
      else
 
19587
        can_build_shared=no
 
19588
      fi
 
19589
      ;;
 
19590
    esac
 
19591
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
19592
    # soname into executable. Probably we can add versioning support to
 
19593
    # collect2, so additional links can be useful in future.
 
19594
    if test "$aix_use_runtimelinking" = yes; then
 
19595
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
19596
      # instead of lib<name>.a to let people know that these are not
 
19597
      # typical AIX shared libraries.
 
19598
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19599
    else
 
19600
      # We preserve .a as extension for shared libraries through AIX4.2
 
19601
      # and later when we are not doing run time linking.
 
19602
      library_names_spec='${libname}${release}.a $libname.a'
 
19603
      soname_spec='${libname}${release}${shared_ext}$major'
 
19604
    fi
 
19605
    shlibpath_var=LIBPATH
 
19606
  fi
 
19607
  ;;
 
19608
 
 
19609
amigaos*)
 
19610
  library_names_spec='$libname.ixlibrary $libname.a'
 
19611
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
19612
  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'
 
19613
  ;;
 
19614
 
 
19615
beos*)
 
19616
  library_names_spec='${libname}${shared_ext}'
 
19617
  dynamic_linker="$host_os ld.so"
 
19618
  shlibpath_var=LIBRARY_PATH
 
19619
  ;;
 
19620
 
 
19621
bsdi4*)
 
19622
  version_type=linux
 
19623
  need_version=no
 
19624
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19625
  soname_spec='${libname}${release}${shared_ext}$major'
 
19626
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
19627
  shlibpath_var=LD_LIBRARY_PATH
 
19628
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
19629
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
19630
  # the default ld.so.conf also contains /usr/contrib/lib and
 
19631
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
19632
  # libtool to hard-code these into programs
 
19633
  ;;
 
19634
 
 
19635
cygwin* | mingw* | pw32*)
 
19636
  version_type=windows
 
19637
  shrext_cmds=".dll"
 
19638
  need_version=no
 
19639
  need_lib_prefix=no
 
19640
 
 
19641
  case $GCC,$host_os in
 
19642
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
19643
    library_names_spec='$libname.dll.a'
 
19644
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
19645
    postinstall_cmds='base_file=`basename \${file}`~
 
19646
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
19647
      dldir=$destdir/`dirname \$dlpath`~
 
19648
      test -d \$dldir || mkdir -p \$dldir~
 
19649
      $install_prog $dir/$dlname \$dldir/$dlname'
 
19650
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
19651
      dlpath=$dir/\$dldll~
 
19652
       $rm \$dlpath'
 
19653
    shlibpath_overrides_runpath=yes
 
19654
 
 
19655
    case $host_os in
 
19656
    cygwin*)
 
19657
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
19658
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19659
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
19660
      ;;
 
19661
    mingw*)
 
19662
      # MinGW DLLs use traditional 'lib' prefix
 
19663
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
19664
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
19665
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
19666
        # It is most probably a Windows format PATH printed by
 
19667
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
19668
        # path with ; separators, and with drive letters. We can handle the
 
19669
        # drive letters (cygwin fileutils understands them), so leave them,
 
19670
        # especially as we might pass files found there to a mingw objdump,
 
19671
        # which wouldn't understand a cygwinified path. Ahh.
 
19672
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
19673
      else
 
19674
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
19675
      fi
 
19676
      ;;
 
19677
    pw32*)
 
19678
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
19679
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
19680
      ;;
 
19681
    esac
 
19682
    ;;
 
19683
 
 
19684
  *)
 
19685
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
19686
    ;;
 
19687
  esac
 
19688
  dynamic_linker='Win32 ld.exe'
 
19689
  # FIXME: first we should search . and the directory the executable is in
 
19690
  shlibpath_var=PATH
 
19691
  ;;
 
19692
 
 
19693
darwin* | rhapsody*)
 
19694
  dynamic_linker="$host_os dyld"
 
19695
  version_type=darwin
 
19696
  need_lib_prefix=no
 
19697
  need_version=no
 
19698
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
19699
  soname_spec='${libname}${release}${major}$shared_ext'
 
19700
  shlibpath_overrides_runpath=yes
 
19701
  shlibpath_var=DYLD_LIBRARY_PATH
 
19702
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
19703
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
19704
  if test "$GCC" = yes; then
 
19705
    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"`
 
19706
  else
 
19707
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
19708
  fi
 
19709
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
19710
  ;;
 
19711
 
 
19712
dgux*)
 
19713
  version_type=linux
 
19714
  need_lib_prefix=no
 
19715
  need_version=no
 
19716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
19717
  soname_spec='${libname}${release}${shared_ext}$major'
 
19718
  shlibpath_var=LD_LIBRARY_PATH
 
19719
  ;;
 
19720
 
 
19721
freebsd1*)
 
19722
  dynamic_linker=no
 
19723
  ;;
 
19724
 
 
19725
kfreebsd*-gnu)
 
19726
  version_type=linux
 
19727
  need_lib_prefix=no
 
19728
  need_version=no
 
19729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19730
  soname_spec='${libname}${release}${shared_ext}$major'
 
19731
  shlibpath_var=LD_LIBRARY_PATH
 
19732
  shlibpath_overrides_runpath=no
 
19733
  hardcode_into_libs=yes
 
19734
  dynamic_linker='GNU ld.so'
 
19735
  ;;
 
19736
 
 
19737
freebsd*)
 
19738
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
19739
  version_type=freebsd-$objformat
 
19740
  case $version_type in
 
19741
    freebsd-elf*)
 
19742
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19743
      need_version=no
 
19744
      need_lib_prefix=no
 
19745
      ;;
 
19746
    freebsd-*)
 
19747
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19748
      need_version=yes
 
19749
      ;;
 
19750
  esac
 
19751
  shlibpath_var=LD_LIBRARY_PATH
 
19752
  case $host_os in
 
19753
  freebsd2*)
 
19754
    shlibpath_overrides_runpath=yes
 
19755
    ;;
 
19756
  freebsd3.01* | freebsdelf3.01*)
 
19757
    shlibpath_overrides_runpath=yes
 
19758
    hardcode_into_libs=yes
 
19759
    ;;
 
19760
  *) # from 3.2 on
 
19761
    shlibpath_overrides_runpath=no
 
19762
    hardcode_into_libs=yes
 
19763
    ;;
 
19764
  esac
 
19765
  ;;
 
19766
 
 
19767
gnu*)
 
19768
  version_type=linux
 
19769
  need_lib_prefix=no
 
19770
  need_version=no
 
19771
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19772
  soname_spec='${libname}${release}${shared_ext}$major'
 
19773
  shlibpath_var=LD_LIBRARY_PATH
 
19774
  hardcode_into_libs=yes
 
19775
  ;;
 
19776
 
 
19777
hpux9* | hpux10* | hpux11*)
 
19778
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19779
  # link against other versions.
 
19780
  version_type=sunos
 
19781
  need_lib_prefix=no
 
19782
  need_version=no
 
19783
  case "$host_cpu" in
 
19784
  ia64*)
 
19785
    shrext_cmds='.so'
 
19786
    hardcode_into_libs=yes
 
19787
    dynamic_linker="$host_os dld.so"
 
19788
    shlibpath_var=LD_LIBRARY_PATH
 
19789
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19790
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19791
    soname_spec='${libname}${release}${shared_ext}$major'
 
19792
    if test "X$HPUX_IA64_MODE" = X32; then
 
19793
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19794
    else
 
19795
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19796
    fi
 
19797
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19798
    ;;
 
19799
   hppa*64*)
 
19800
     shrext_cmds='.sl'
 
19801
     hardcode_into_libs=yes
 
19802
     dynamic_linker="$host_os dld.sl"
 
19803
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19804
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19805
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19806
     soname_spec='${libname}${release}${shared_ext}$major'
 
19807
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19808
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19809
     ;;
 
19810
   *)
 
19811
    shrext_cmds='.sl'
 
19812
    dynamic_linker="$host_os dld.sl"
 
19813
    shlibpath_var=SHLIB_PATH
 
19814
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19815
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19816
    soname_spec='${libname}${release}${shared_ext}$major'
 
19817
    ;;
 
19818
  esac
 
19819
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19820
  postinstall_cmds='chmod 555 $lib'
 
19821
  ;;
 
19822
 
 
19823
irix5* | irix6* | nonstopux*)
 
19824
  case $host_os in
 
19825
    nonstopux*) version_type=nonstopux ;;
 
19826
    *)
 
19827
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19828
                version_type=linux
 
19829
        else
 
19830
                version_type=irix
 
19831
        fi ;;
 
19832
  esac
 
19833
  need_lib_prefix=no
 
19834
  need_version=no
 
19835
  soname_spec='${libname}${release}${shared_ext}$major'
 
19836
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19837
  case $host_os in
 
19838
  irix5* | nonstopux*)
 
19839
    libsuff= shlibsuff=
 
19840
    ;;
 
19841
  *)
 
19842
    case $LD in # libtool.m4 will add one of these switches to LD
 
19843
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19844
      libsuff= shlibsuff= libmagic=32-bit;;
 
19845
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19846
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19847
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19848
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19849
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19850
    esac
 
19851
    ;;
 
19852
  esac
 
19853
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19854
  shlibpath_overrides_runpath=no
 
19855
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19856
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19857
  hardcode_into_libs=yes
 
19858
  ;;
 
19859
 
 
19860
# No shared lib support for Linux oldld, aout, or coff.
 
19861
linux*oldld* | linux*aout* | linux*coff*)
 
19862
  dynamic_linker=no
 
19863
  ;;
 
19864
 
 
19865
# This must be Linux ELF.
 
19866
linux*)
 
19867
  version_type=linux
 
19868
  need_lib_prefix=no
 
19869
  need_version=no
 
19870
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19871
  soname_spec='${libname}${release}${shared_ext}$major'
 
19872
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19873
  shlibpath_var=LD_LIBRARY_PATH
 
19874
  shlibpath_overrides_runpath=no
 
19875
  # This implies no fast_install, which is unacceptable.
 
19876
  # Some rework will be needed to allow for fast_install
 
19877
  # before this can be enabled.
 
19878
  hardcode_into_libs=yes
 
19879
 
 
19880
  # Append ld.so.conf contents to the search path
 
19881
  if test -f /etc/ld.so.conf; then
 
19882
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
19883
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
19884
  fi
 
19885
 
 
19886
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19887
  # powerpc, because MkLinux only supported shared libraries with the
 
19888
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19889
  # most powerpc-linux boxes support dynamic linking these days and
 
19890
  # people can always --disable-shared, the test was removed, and we
 
19891
  # assume the GNU/Linux dynamic linker is in use.
 
19892
  dynamic_linker='GNU/Linux ld.so'
 
19893
  ;;
 
19894
 
 
19895
netbsdelf*-gnu)
 
19896
  version_type=linux
 
19897
  need_lib_prefix=no
 
19898
  need_version=no
 
19899
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19900
  soname_spec='${libname}${release}${shared_ext}$major'
 
19901
  shlibpath_var=LD_LIBRARY_PATH
 
19902
  shlibpath_overrides_runpath=no
 
19903
  hardcode_into_libs=yes
 
19904
  dynamic_linker='NetBSD ld.elf_so'
 
19905
  ;;
 
19906
 
 
19907
knetbsd*-gnu)
 
19908
  version_type=linux
 
19909
  need_lib_prefix=no
 
19910
  need_version=no
 
19911
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19912
  soname_spec='${libname}${release}${shared_ext}$major'
 
19913
  shlibpath_var=LD_LIBRARY_PATH
 
19914
  shlibpath_overrides_runpath=no
 
19915
  hardcode_into_libs=yes
 
19916
  dynamic_linker='GNU ld.so'
 
19917
  ;;
 
19918
 
 
19919
netbsd*)
 
19920
  version_type=sunos
 
19921
  need_lib_prefix=no
 
19922
  need_version=no
 
19923
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19924
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19925
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19926
    dynamic_linker='NetBSD (a.out) ld.so'
 
19927
  else
 
19928
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19929
    soname_spec='${libname}${release}${shared_ext}$major'
 
19930
    dynamic_linker='NetBSD ld.elf_so'
 
19931
  fi
 
19932
  shlibpath_var=LD_LIBRARY_PATH
 
19933
  shlibpath_overrides_runpath=yes
 
19934
  hardcode_into_libs=yes
 
19935
  ;;
 
19936
 
 
19937
newsos6)
 
19938
  version_type=linux
 
19939
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19940
  shlibpath_var=LD_LIBRARY_PATH
 
19941
  shlibpath_overrides_runpath=yes
 
19942
  ;;
 
19943
 
 
19944
nto-qnx*)
 
19945
  version_type=linux
 
19946
  need_lib_prefix=no
 
19947
  need_version=no
 
19948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19949
  soname_spec='${libname}${release}${shared_ext}$major'
 
19950
  shlibpath_var=LD_LIBRARY_PATH
 
19951
  shlibpath_overrides_runpath=yes
 
19952
  ;;
 
19953
 
 
19954
openbsd*)
 
19955
  version_type=sunos
 
19956
  need_lib_prefix=no
 
19957
  need_version=yes
 
19958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19959
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19960
  shlibpath_var=LD_LIBRARY_PATH
 
19961
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19962
    case $host_os in
 
19963
      openbsd2.[89] | openbsd2.[89].*)
 
19964
        shlibpath_overrides_runpath=no
 
19965
        ;;
 
19966
      *)
 
19967
        shlibpath_overrides_runpath=yes
 
19968
        ;;
 
19969
      esac
 
19970
  else
 
19971
    shlibpath_overrides_runpath=yes
 
19972
  fi
 
19973
  ;;
 
19974
 
 
19975
os2*)
 
19976
  libname_spec='$name'
 
19977
  shrext_cmds=".dll"
 
19978
  need_lib_prefix=no
 
19979
  library_names_spec='$libname${shared_ext} $libname.a'
 
19980
  dynamic_linker='OS/2 ld.exe'
 
19981
  shlibpath_var=LIBPATH
 
19982
  ;;
 
19983
 
 
19984
osf3* | osf4* | osf5*)
 
19985
  version_type=osf
 
19986
  need_lib_prefix=no
 
19987
  need_version=no
 
19988
  soname_spec='${libname}${release}${shared_ext}$major'
 
19989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19990
  shlibpath_var=LD_LIBRARY_PATH
 
19991
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19992
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19993
  ;;
 
19994
 
 
19995
sco3.2v5*)
 
19996
  version_type=osf
 
19997
  soname_spec='${libname}${release}${shared_ext}$major'
 
19998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19999
  shlibpath_var=LD_LIBRARY_PATH
 
20000
  ;;
 
20001
 
 
20002
solaris*)
 
20003
  version_type=linux
 
20004
  need_lib_prefix=no
 
20005
  need_version=no
 
20006
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20007
  soname_spec='${libname}${release}${shared_ext}$major'
 
20008
  shlibpath_var=LD_LIBRARY_PATH
 
20009
  shlibpath_overrides_runpath=yes
 
20010
  hardcode_into_libs=yes
 
20011
  # ldd complains unless libraries are executable
 
20012
  postinstall_cmds='chmod +x $lib'
 
20013
  ;;
 
20014
 
 
20015
sunos4*)
 
20016
  version_type=sunos
 
20017
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
20018
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
20019
  shlibpath_var=LD_LIBRARY_PATH
 
20020
  shlibpath_overrides_runpath=yes
 
20021
  if test "$with_gnu_ld" = yes; then
 
20022
    need_lib_prefix=no
 
20023
  fi
 
20024
  need_version=yes
 
20025
  ;;
 
20026
 
 
20027
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
20028
  version_type=linux
 
20029
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20030
  soname_spec='${libname}${release}${shared_ext}$major'
 
20031
  shlibpath_var=LD_LIBRARY_PATH
 
20032
  case $host_vendor in
 
20033
    sni)
 
20034
      shlibpath_overrides_runpath=no
 
20035
      need_lib_prefix=no
 
20036
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
20037
      runpath_var=LD_RUN_PATH
 
20038
      ;;
 
20039
    siemens)
 
20040
      need_lib_prefix=no
 
20041
      ;;
 
20042
    motorola)
 
20043
      need_lib_prefix=no
 
20044
      need_version=no
 
20045
      shlibpath_overrides_runpath=no
 
20046
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
20047
      ;;
 
20048
  esac
 
20049
  ;;
 
20050
 
 
20051
sysv4*MP*)
 
20052
  if test -d /usr/nec ;then
 
20053
    version_type=linux
 
20054
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
20055
    soname_spec='$libname${shared_ext}.$major'
 
20056
    shlibpath_var=LD_LIBRARY_PATH
 
20057
  fi
 
20058
  ;;
 
20059
 
 
20060
uts4*)
 
20061
  version_type=linux
 
20062
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
20063
  soname_spec='${libname}${release}${shared_ext}$major'
 
20064
  shlibpath_var=LD_LIBRARY_PATH
 
20065
  ;;
 
20066
 
 
20067
*)
 
20068
  dynamic_linker=no
 
20069
  ;;
 
20070
esac
 
20071
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
20072
echo "${ECHO_T}$dynamic_linker" >&6
 
20073
test "$dynamic_linker" = no && can_build_shared=no
 
20074
 
 
20075
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
20076
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
20077
hardcode_action_GCJ=
 
20078
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
20079
   test -n "$runpath_var GCJ" || \
 
20080
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
20081
 
 
20082
  # We can hardcode non-existant directories.
 
20083
  if test "$hardcode_direct_GCJ" != no &&
 
20084
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
20085
     # have to relink, otherwise we might link with an installed library
 
20086
     # when we should be linking with a yet-to-be-installed one
 
20087
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
20088
     test "$hardcode_minus_L_GCJ" != no; then
 
20089
    # Linking always hardcodes the temporary library directory.
 
20090
    hardcode_action_GCJ=relink
 
20091
  else
 
20092
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
20093
    hardcode_action_GCJ=immediate
 
20094
  fi
 
20095
else
 
20096
  # We cannot hardcode anything, or else we can only hardcode existing
 
20097
  # directories.
 
20098
  hardcode_action_GCJ=unsupported
 
20099
fi
 
20100
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
20101
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
20102
 
 
20103
if test "$hardcode_action_GCJ" = relink; then
 
20104
  # Fast installation is not supported
 
20105
  enable_fast_install=no
 
20106
elif test "$shlibpath_overrides_runpath" = yes ||
 
20107
     test "$enable_shared" = no; then
 
20108
  # Fast installation is not necessary
 
20109
  enable_fast_install=needless
 
20110
fi
 
20111
 
 
20112
striplib=
 
20113
old_striplib=
 
20114
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
20115
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
20116
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
20117
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
20118
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
20119
  echo "$as_me:$LINENO: result: yes" >&5
 
20120
echo "${ECHO_T}yes" >&6
 
20121
else
 
20122
# FIXME - insert some real tests, host_os isn't really good enough
 
20123
  case $host_os in
 
20124
   darwin*)
 
20125
       if test -n "$STRIP" ; then
 
20126
         striplib="$STRIP -x"
 
20127
         echo "$as_me:$LINENO: result: yes" >&5
 
20128
echo "${ECHO_T}yes" >&6
 
20129
       else
 
20130
  echo "$as_me:$LINENO: result: no" >&5
 
20131
echo "${ECHO_T}no" >&6
 
20132
fi
 
20133
       ;;
 
20134
   *)
 
20135
  echo "$as_me:$LINENO: result: no" >&5
 
20136
echo "${ECHO_T}no" >&6
 
20137
    ;;
 
20138
  esac
 
20139
fi
 
20140
 
 
20141
if test "x$enable_dlopen" != xyes; then
 
20142
  enable_dlopen=unknown
 
20143
  enable_dlopen_self=unknown
 
20144
  enable_dlopen_self_static=unknown
 
20145
else
 
20146
  lt_cv_dlopen=no
 
20147
  lt_cv_dlopen_libs=
 
20148
 
 
20149
  case $host_os in
 
20150
  beos*)
 
20151
    lt_cv_dlopen="load_add_on"
 
20152
    lt_cv_dlopen_libs=
 
20153
    lt_cv_dlopen_self=yes
 
20154
    ;;
 
20155
 
 
20156
  mingw* | pw32*)
 
20157
    lt_cv_dlopen="LoadLibrary"
 
20158
    lt_cv_dlopen_libs=
 
20159
   ;;
 
20160
 
 
20161
  cygwin*)
 
20162
    lt_cv_dlopen="dlopen"
 
20163
    lt_cv_dlopen_libs=
 
20164
   ;;
 
20165
 
 
20166
  darwin*)
 
20167
  # if libdl is installed we need to link against it
 
20168
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20169
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
20170
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20172
else
 
20173
  ac_check_lib_save_LIBS=$LIBS
 
20174
LIBS="-ldl  $LIBS"
 
20175
cat >conftest.$ac_ext <<_ACEOF
 
20176
/* confdefs.h.  */
 
20177
_ACEOF
 
20178
cat confdefs.h >>conftest.$ac_ext
 
20179
cat >>conftest.$ac_ext <<_ACEOF
 
20180
/* end confdefs.h.  */
 
20181
 
 
20182
/* Override any gcc2 internal prototype to avoid an error.  */
 
20183
#ifdef __cplusplus
 
20184
extern "C"
 
20185
#endif
 
20186
/* We use char because int might match the return type of a gcc2
 
20187
   builtin and then its argument prototype would still apply.  */
 
20188
char dlopen ();
 
20189
int
 
20190
main ()
 
20191
{
 
20192
dlopen ();
 
20193
  ;
 
20194
  return 0;
 
20195
}
 
20196
_ACEOF
 
20197
rm -f conftest.$ac_objext conftest$ac_exeext
 
20198
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20199
  (eval $ac_link) 2>conftest.er1
 
20200
  ac_status=$?
 
20201
  grep -v '^ *+' conftest.er1 >conftest.err
 
20202
  rm -f conftest.er1
 
20203
  cat conftest.err >&5
 
20204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20205
  (exit $ac_status); } &&
 
20206
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20208
  (eval $ac_try) 2>&5
 
20209
  ac_status=$?
 
20210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20211
  (exit $ac_status); }; } &&
 
20212
         { ac_try='test -s conftest$ac_exeext'
 
20213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20214
  (eval $ac_try) 2>&5
 
20215
  ac_status=$?
 
20216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20217
  (exit $ac_status); }; }; then
 
20218
  ac_cv_lib_dl_dlopen=yes
 
20219
else
 
20220
  echo "$as_me: failed program was:" >&5
 
20221
sed 's/^/| /' conftest.$ac_ext >&5
 
20222
 
 
20223
ac_cv_lib_dl_dlopen=no
 
20224
fi
 
20225
rm -f conftest.err conftest.$ac_objext \
 
20226
      conftest$ac_exeext conftest.$ac_ext
 
20227
LIBS=$ac_check_lib_save_LIBS
 
20228
fi
 
20229
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20230
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
20231
if test $ac_cv_lib_dl_dlopen = yes; then
 
20232
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
20233
else
 
20234
  
 
20235
    lt_cv_dlopen="dyld"
 
20236
    lt_cv_dlopen_libs=
 
20237
    lt_cv_dlopen_self=yes
 
20238
    
 
20239
fi
 
20240
 
 
20241
   ;;
 
20242
 
 
20243
  *)
 
20244
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
20245
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
20246
if test "${ac_cv_func_shl_load+set}" = set; then
 
20247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20248
else
 
20249
  cat >conftest.$ac_ext <<_ACEOF
 
20250
/* confdefs.h.  */
 
20251
_ACEOF
 
20252
cat confdefs.h >>conftest.$ac_ext
 
20253
cat >>conftest.$ac_ext <<_ACEOF
 
20254
/* end confdefs.h.  */
 
20255
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
20256
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20257
#define shl_load innocuous_shl_load
 
20258
 
 
20259
/* System header to define __stub macros and hopefully few prototypes,
 
20260
    which can conflict with char shl_load (); below.
 
20261
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20262
    <limits.h> exists even on freestanding compilers.  */
 
20263
 
 
20264
#ifdef __STDC__
 
20265
# include <limits.h>
 
20266
#else
 
20267
# include <assert.h>
 
20268
#endif
 
20269
 
 
20270
#undef shl_load
 
20271
 
 
20272
/* Override any gcc2 internal prototype to avoid an error.  */
 
20273
#ifdef __cplusplus
 
20274
extern "C"
 
20275
{
 
20276
#endif
 
20277
/* We use char because int might match the return type of a gcc2
 
20278
   builtin and then its argument prototype would still apply.  */
 
20279
char shl_load ();
 
20280
/* The GNU C library defines this for functions which it implements
 
20281
    to always fail with ENOSYS.  Some functions are actually named
 
20282
    something starting with __ and the normal name is an alias.  */
 
20283
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
20284
choke me
 
20285
#else
 
20286
char (*f) () = shl_load;
 
20287
#endif
 
20288
#ifdef __cplusplus
 
20289
}
 
20290
#endif
 
20291
 
 
20292
int
 
20293
main ()
 
20294
{
 
20295
return f != shl_load;
 
20296
  ;
 
20297
  return 0;
 
20298
}
 
20299
_ACEOF
 
20300
rm -f conftest.$ac_objext conftest$ac_exeext
 
20301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20302
  (eval $ac_link) 2>conftest.er1
 
20303
  ac_status=$?
 
20304
  grep -v '^ *+' conftest.er1 >conftest.err
 
20305
  rm -f conftest.er1
 
20306
  cat conftest.err >&5
 
20307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20308
  (exit $ac_status); } &&
 
20309
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20311
  (eval $ac_try) 2>&5
 
20312
  ac_status=$?
 
20313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20314
  (exit $ac_status); }; } &&
 
20315
         { ac_try='test -s conftest$ac_exeext'
 
20316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20317
  (eval $ac_try) 2>&5
 
20318
  ac_status=$?
 
20319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20320
  (exit $ac_status); }; }; then
 
20321
  ac_cv_func_shl_load=yes
 
20322
else
 
20323
  echo "$as_me: failed program was:" >&5
 
20324
sed 's/^/| /' conftest.$ac_ext >&5
 
20325
 
 
20326
ac_cv_func_shl_load=no
 
20327
fi
 
20328
rm -f conftest.err conftest.$ac_objext \
 
20329
      conftest$ac_exeext conftest.$ac_ext
 
20330
fi
 
20331
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
20332
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
20333
if test $ac_cv_func_shl_load = yes; then
 
20334
  lt_cv_dlopen="shl_load"
 
20335
else
 
20336
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
20337
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
20338
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
20339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20340
else
 
20341
  ac_check_lib_save_LIBS=$LIBS
 
20342
LIBS="-ldld  $LIBS"
 
20343
cat >conftest.$ac_ext <<_ACEOF
 
20344
/* confdefs.h.  */
 
20345
_ACEOF
 
20346
cat confdefs.h >>conftest.$ac_ext
 
20347
cat >>conftest.$ac_ext <<_ACEOF
 
20348
/* end confdefs.h.  */
 
20349
 
 
20350
/* Override any gcc2 internal prototype to avoid an error.  */
 
20351
#ifdef __cplusplus
 
20352
extern "C"
 
20353
#endif
 
20354
/* We use char because int might match the return type of a gcc2
 
20355
   builtin and then its argument prototype would still apply.  */
 
20356
char shl_load ();
 
20357
int
 
20358
main ()
 
20359
{
 
20360
shl_load ();
 
20361
  ;
 
20362
  return 0;
 
20363
}
 
20364
_ACEOF
 
20365
rm -f conftest.$ac_objext conftest$ac_exeext
 
20366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20367
  (eval $ac_link) 2>conftest.er1
 
20368
  ac_status=$?
 
20369
  grep -v '^ *+' conftest.er1 >conftest.err
 
20370
  rm -f conftest.er1
 
20371
  cat conftest.err >&5
 
20372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20373
  (exit $ac_status); } &&
 
20374
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20376
  (eval $ac_try) 2>&5
 
20377
  ac_status=$?
 
20378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20379
  (exit $ac_status); }; } &&
 
20380
         { ac_try='test -s conftest$ac_exeext'
 
20381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20382
  (eval $ac_try) 2>&5
 
20383
  ac_status=$?
 
20384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20385
  (exit $ac_status); }; }; then
 
20386
  ac_cv_lib_dld_shl_load=yes
 
20387
else
 
20388
  echo "$as_me: failed program was:" >&5
 
20389
sed 's/^/| /' conftest.$ac_ext >&5
 
20390
 
 
20391
ac_cv_lib_dld_shl_load=no
 
20392
fi
 
20393
rm -f conftest.err conftest.$ac_objext \
 
20394
      conftest$ac_exeext conftest.$ac_ext
 
20395
LIBS=$ac_check_lib_save_LIBS
 
20396
fi
 
20397
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
20398
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
20399
if test $ac_cv_lib_dld_shl_load = yes; then
 
20400
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
20401
else
 
20402
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
20403
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
20404
if test "${ac_cv_func_dlopen+set}" = set; then
 
20405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20406
else
 
20407
  cat >conftest.$ac_ext <<_ACEOF
 
20408
/* confdefs.h.  */
 
20409
_ACEOF
 
20410
cat confdefs.h >>conftest.$ac_ext
 
20411
cat >>conftest.$ac_ext <<_ACEOF
 
20412
/* end confdefs.h.  */
 
20413
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
20414
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20415
#define dlopen innocuous_dlopen
 
20416
 
 
20417
/* System header to define __stub macros and hopefully few prototypes,
 
20418
    which can conflict with char dlopen (); below.
 
20419
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20420
    <limits.h> exists even on freestanding compilers.  */
 
20421
 
 
20422
#ifdef __STDC__
 
20423
# include <limits.h>
 
20424
#else
 
20425
# include <assert.h>
 
20426
#endif
 
20427
 
 
20428
#undef dlopen
 
20429
 
 
20430
/* Override any gcc2 internal prototype to avoid an error.  */
 
20431
#ifdef __cplusplus
 
20432
extern "C"
 
20433
{
 
20434
#endif
 
20435
/* We use char because int might match the return type of a gcc2
 
20436
   builtin and then its argument prototype would still apply.  */
 
20437
char dlopen ();
 
20438
/* The GNU C library defines this for functions which it implements
 
20439
    to always fail with ENOSYS.  Some functions are actually named
 
20440
    something starting with __ and the normal name is an alias.  */
 
20441
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
20442
choke me
 
20443
#else
 
20444
char (*f) () = dlopen;
 
20445
#endif
 
20446
#ifdef __cplusplus
 
20447
}
 
20448
#endif
 
20449
 
 
20450
int
 
20451
main ()
 
20452
{
 
20453
return f != dlopen;
 
20454
  ;
 
20455
  return 0;
 
20456
}
 
20457
_ACEOF
 
20458
rm -f conftest.$ac_objext conftest$ac_exeext
 
20459
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20460
  (eval $ac_link) 2>conftest.er1
 
20461
  ac_status=$?
 
20462
  grep -v '^ *+' conftest.er1 >conftest.err
 
20463
  rm -f conftest.er1
 
20464
  cat conftest.err >&5
 
20465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20466
  (exit $ac_status); } &&
 
20467
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20469
  (eval $ac_try) 2>&5
 
20470
  ac_status=$?
 
20471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20472
  (exit $ac_status); }; } &&
 
20473
         { ac_try='test -s conftest$ac_exeext'
 
20474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20475
  (eval $ac_try) 2>&5
 
20476
  ac_status=$?
 
20477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20478
  (exit $ac_status); }; }; then
 
20479
  ac_cv_func_dlopen=yes
 
20480
else
 
20481
  echo "$as_me: failed program was:" >&5
 
20482
sed 's/^/| /' conftest.$ac_ext >&5
 
20483
 
 
20484
ac_cv_func_dlopen=no
 
20485
fi
 
20486
rm -f conftest.err conftest.$ac_objext \
 
20487
      conftest$ac_exeext conftest.$ac_ext
 
20488
fi
 
20489
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
20490
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
20491
if test $ac_cv_func_dlopen = yes; then
 
20492
  lt_cv_dlopen="dlopen"
 
20493
else
 
20494
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20495
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
20496
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20498
else
 
20499
  ac_check_lib_save_LIBS=$LIBS
 
20500
LIBS="-ldl  $LIBS"
 
20501
cat >conftest.$ac_ext <<_ACEOF
 
20502
/* confdefs.h.  */
 
20503
_ACEOF
 
20504
cat confdefs.h >>conftest.$ac_ext
 
20505
cat >>conftest.$ac_ext <<_ACEOF
 
20506
/* end confdefs.h.  */
 
20507
 
 
20508
/* Override any gcc2 internal prototype to avoid an error.  */
 
20509
#ifdef __cplusplus
 
20510
extern "C"
 
20511
#endif
 
20512
/* We use char because int might match the return type of a gcc2
 
20513
   builtin and then its argument prototype would still apply.  */
 
20514
char dlopen ();
 
20515
int
 
20516
main ()
 
20517
{
 
20518
dlopen ();
 
20519
  ;
 
20520
  return 0;
 
20521
}
 
20522
_ACEOF
 
20523
rm -f conftest.$ac_objext conftest$ac_exeext
 
20524
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20525
  (eval $ac_link) 2>conftest.er1
 
20526
  ac_status=$?
 
20527
  grep -v '^ *+' conftest.er1 >conftest.err
 
20528
  rm -f conftest.er1
 
20529
  cat conftest.err >&5
 
20530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20531
  (exit $ac_status); } &&
 
20532
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20534
  (eval $ac_try) 2>&5
 
20535
  ac_status=$?
 
20536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20537
  (exit $ac_status); }; } &&
 
20538
         { ac_try='test -s conftest$ac_exeext'
 
20539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20540
  (eval $ac_try) 2>&5
 
20541
  ac_status=$?
 
20542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20543
  (exit $ac_status); }; }; then
 
20544
  ac_cv_lib_dl_dlopen=yes
 
20545
else
 
20546
  echo "$as_me: failed program was:" >&5
 
20547
sed 's/^/| /' conftest.$ac_ext >&5
 
20548
 
 
20549
ac_cv_lib_dl_dlopen=no
 
20550
fi
 
20551
rm -f conftest.err conftest.$ac_objext \
 
20552
      conftest$ac_exeext conftest.$ac_ext
 
20553
LIBS=$ac_check_lib_save_LIBS
 
20554
fi
 
20555
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20556
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
20557
if test $ac_cv_lib_dl_dlopen = yes; then
 
20558
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
20559
else
 
20560
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
20561
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
20562
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
20563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20564
else
 
20565
  ac_check_lib_save_LIBS=$LIBS
 
20566
LIBS="-lsvld  $LIBS"
 
20567
cat >conftest.$ac_ext <<_ACEOF
 
20568
/* confdefs.h.  */
 
20569
_ACEOF
 
20570
cat confdefs.h >>conftest.$ac_ext
 
20571
cat >>conftest.$ac_ext <<_ACEOF
 
20572
/* end confdefs.h.  */
 
20573
 
 
20574
/* Override any gcc2 internal prototype to avoid an error.  */
 
20575
#ifdef __cplusplus
 
20576
extern "C"
 
20577
#endif
 
20578
/* We use char because int might match the return type of a gcc2
 
20579
   builtin and then its argument prototype would still apply.  */
 
20580
char dlopen ();
 
20581
int
 
20582
main ()
 
20583
{
 
20584
dlopen ();
 
20585
  ;
 
20586
  return 0;
 
20587
}
 
20588
_ACEOF
 
20589
rm -f conftest.$ac_objext conftest$ac_exeext
 
20590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20591
  (eval $ac_link) 2>conftest.er1
 
20592
  ac_status=$?
 
20593
  grep -v '^ *+' conftest.er1 >conftest.err
 
20594
  rm -f conftest.er1
 
20595
  cat conftest.err >&5
 
20596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20597
  (exit $ac_status); } &&
 
20598
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20600
  (eval $ac_try) 2>&5
 
20601
  ac_status=$?
 
20602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20603
  (exit $ac_status); }; } &&
 
20604
         { ac_try='test -s conftest$ac_exeext'
 
20605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20606
  (eval $ac_try) 2>&5
 
20607
  ac_status=$?
 
20608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20609
  (exit $ac_status); }; }; then
 
20610
  ac_cv_lib_svld_dlopen=yes
 
20611
else
 
20612
  echo "$as_me: failed program was:" >&5
 
20613
sed 's/^/| /' conftest.$ac_ext >&5
 
20614
 
 
20615
ac_cv_lib_svld_dlopen=no
 
20616
fi
 
20617
rm -f conftest.err conftest.$ac_objext \
 
20618
      conftest$ac_exeext conftest.$ac_ext
 
20619
LIBS=$ac_check_lib_save_LIBS
 
20620
fi
 
20621
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
20622
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
20623
if test $ac_cv_lib_svld_dlopen = yes; then
 
20624
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
20625
else
 
20626
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
20627
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
20628
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
20629
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20630
else
 
20631
  ac_check_lib_save_LIBS=$LIBS
 
20632
LIBS="-ldld  $LIBS"
 
20633
cat >conftest.$ac_ext <<_ACEOF
 
20634
/* confdefs.h.  */
 
20635
_ACEOF
 
20636
cat confdefs.h >>conftest.$ac_ext
 
20637
cat >>conftest.$ac_ext <<_ACEOF
 
20638
/* end confdefs.h.  */
 
20639
 
 
20640
/* Override any gcc2 internal prototype to avoid an error.  */
 
20641
#ifdef __cplusplus
 
20642
extern "C"
 
20643
#endif
 
20644
/* We use char because int might match the return type of a gcc2
 
20645
   builtin and then its argument prototype would still apply.  */
 
20646
char dld_link ();
 
20647
int
 
20648
main ()
 
20649
{
 
20650
dld_link ();
 
20651
  ;
 
20652
  return 0;
 
20653
}
 
20654
_ACEOF
 
20655
rm -f conftest.$ac_objext conftest$ac_exeext
 
20656
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20657
  (eval $ac_link) 2>conftest.er1
 
20658
  ac_status=$?
 
20659
  grep -v '^ *+' conftest.er1 >conftest.err
 
20660
  rm -f conftest.er1
 
20661
  cat conftest.err >&5
 
20662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20663
  (exit $ac_status); } &&
 
20664
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20666
  (eval $ac_try) 2>&5
 
20667
  ac_status=$?
 
20668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20669
  (exit $ac_status); }; } &&
 
20670
         { ac_try='test -s conftest$ac_exeext'
 
20671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20672
  (eval $ac_try) 2>&5
 
20673
  ac_status=$?
 
20674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20675
  (exit $ac_status); }; }; then
 
20676
  ac_cv_lib_dld_dld_link=yes
 
20677
else
 
20678
  echo "$as_me: failed program was:" >&5
 
20679
sed 's/^/| /' conftest.$ac_ext >&5
 
20680
 
 
20681
ac_cv_lib_dld_dld_link=no
 
20682
fi
 
20683
rm -f conftest.err conftest.$ac_objext \
 
20684
      conftest$ac_exeext conftest.$ac_ext
 
20685
LIBS=$ac_check_lib_save_LIBS
 
20686
fi
 
20687
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
20688
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
20689
if test $ac_cv_lib_dld_dld_link = yes; then
 
20690
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
20691
fi
 
20692
 
 
20693
              
 
20694
fi
 
20695
 
 
20696
            
 
20697
fi
 
20698
 
 
20699
          
 
20700
fi
 
20701
 
 
20702
        
 
20703
fi
 
20704
 
 
20705
      
 
20706
fi
 
20707
 
 
20708
    ;;
 
20709
  esac
 
20710
 
 
20711
  if test "x$lt_cv_dlopen" != xno; then
 
20712
    enable_dlopen=yes
 
20713
  else
 
20714
    enable_dlopen=no
 
20715
  fi
 
20716
 
 
20717
  case $lt_cv_dlopen in
 
20718
  dlopen)
 
20719
    save_CPPFLAGS="$CPPFLAGS"
 
20720
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
20721
 
 
20722
    save_LDFLAGS="$LDFLAGS"
 
20723
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
20724
 
 
20725
    save_LIBS="$LIBS"
 
20726
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
20727
 
 
20728
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
20729
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
20730
if test "${lt_cv_dlopen_self+set}" = set; then
 
20731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20732
else
 
20733
          if test "$cross_compiling" = yes; then :
 
20734
  lt_cv_dlopen_self=cross
 
20735
else
 
20736
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20737
  lt_status=$lt_dlunknown
 
20738
  cat > conftest.$ac_ext <<EOF
 
20739
#line __oline__ "configure"
 
20740
#include "confdefs.h"
 
20741
 
 
20742
#if HAVE_DLFCN_H
 
20743
#include <dlfcn.h>
 
20744
#endif
 
20745
 
 
20746
#include <stdio.h>
 
20747
 
 
20748
#ifdef RTLD_GLOBAL
 
20749
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20750
#else
 
20751
#  ifdef DL_GLOBAL
 
20752
#    define LT_DLGLOBAL         DL_GLOBAL
 
20753
#  else
 
20754
#    define LT_DLGLOBAL         0
 
20755
#  endif
 
20756
#endif
 
20757
 
 
20758
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20759
   find out it does not work in some platform. */
 
20760
#ifndef LT_DLLAZY_OR_NOW
 
20761
#  ifdef RTLD_LAZY
 
20762
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20763
#  else
 
20764
#    ifdef DL_LAZY
 
20765
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20766
#    else
 
20767
#      ifdef RTLD_NOW
 
20768
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20769
#      else
 
20770
#        ifdef DL_NOW
 
20771
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20772
#        else
 
20773
#          define LT_DLLAZY_OR_NOW      0
 
20774
#        endif
 
20775
#      endif
 
20776
#    endif
 
20777
#  endif
 
20778
#endif
 
20779
 
 
20780
#ifdef __cplusplus
 
20781
extern "C" void exit (int);
 
20782
#endif
 
20783
 
 
20784
void fnord() { int i=42;}
 
20785
int main ()
 
20786
{
 
20787
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20788
  int status = $lt_dlunknown;
 
20789
 
 
20790
  if (self)
 
20791
    {
 
20792
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20793
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20794
      /* dlclose (self); */
 
20795
    }
 
20796
 
 
20797
    exit (status);
 
20798
}
 
20799
EOF
 
20800
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20801
  (eval $ac_link) 2>&5
 
20802
  ac_status=$?
 
20803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20804
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20805
    (./conftest; exit; ) 2>/dev/null
 
20806
    lt_status=$?
 
20807
    case x$lt_status in
 
20808
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
20809
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
20810
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
20811
    esac
 
20812
  else :
 
20813
    # compilation failed
 
20814
    lt_cv_dlopen_self=no
 
20815
  fi
 
20816
fi
 
20817
rm -fr conftest*
 
20818
 
 
20819
    
 
20820
fi
 
20821
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
20822
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
20823
 
 
20824
    if test "x$lt_cv_dlopen_self" = xyes; then
 
20825
      LDFLAGS="$LDFLAGS $link_static_flag"
 
20826
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
20827
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
20828
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
20829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20830
else
 
20831
          if test "$cross_compiling" = yes; then :
 
20832
  lt_cv_dlopen_self_static=cross
 
20833
else
 
20834
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20835
  lt_status=$lt_dlunknown
 
20836
  cat > conftest.$ac_ext <<EOF
 
20837
#line __oline__ "configure"
 
20838
#include "confdefs.h"
 
20839
 
 
20840
#if HAVE_DLFCN_H
 
20841
#include <dlfcn.h>
 
20842
#endif
 
20843
 
 
20844
#include <stdio.h>
 
20845
 
 
20846
#ifdef RTLD_GLOBAL
 
20847
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20848
#else
 
20849
#  ifdef DL_GLOBAL
 
20850
#    define LT_DLGLOBAL         DL_GLOBAL
 
20851
#  else
 
20852
#    define LT_DLGLOBAL         0
 
20853
#  endif
 
20854
#endif
 
20855
 
 
20856
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20857
   find out it does not work in some platform. */
 
20858
#ifndef LT_DLLAZY_OR_NOW
 
20859
#  ifdef RTLD_LAZY
 
20860
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20861
#  else
 
20862
#    ifdef DL_LAZY
 
20863
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20864
#    else
 
20865
#      ifdef RTLD_NOW
 
20866
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20867
#      else
 
20868
#        ifdef DL_NOW
 
20869
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20870
#        else
 
20871
#          define LT_DLLAZY_OR_NOW      0
 
20872
#        endif
 
20873
#      endif
 
20874
#    endif
 
20875
#  endif
 
20876
#endif
 
20877
 
 
20878
#ifdef __cplusplus
 
20879
extern "C" void exit (int);
 
20880
#endif
 
20881
 
 
20882
void fnord() { int i=42;}
 
20883
int main ()
 
20884
{
 
20885
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20886
  int status = $lt_dlunknown;
 
20887
 
 
20888
  if (self)
 
20889
    {
 
20890
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20891
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20892
      /* dlclose (self); */
 
20893
    }
 
20894
 
 
20895
    exit (status);
 
20896
}
 
20897
EOF
 
20898
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20899
  (eval $ac_link) 2>&5
 
20900
  ac_status=$?
 
20901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20902
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20903
    (./conftest; exit; ) 2>/dev/null
 
20904
    lt_status=$?
 
20905
    case x$lt_status in
 
20906
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
20907
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
20908
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
20909
    esac
 
20910
  else :
 
20911
    # compilation failed
 
20912
    lt_cv_dlopen_self_static=no
 
20913
  fi
 
20914
fi
 
20915
rm -fr conftest*
 
20916
 
 
20917
      
 
20918
fi
 
20919
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
20920
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
20921
    fi
 
20922
 
 
20923
    CPPFLAGS="$save_CPPFLAGS"
 
20924
    LDFLAGS="$save_LDFLAGS"
 
20925
    LIBS="$save_LIBS"
 
20926
    ;;
 
20927
  esac
 
20928
 
 
20929
  case $lt_cv_dlopen_self in
 
20930
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
20931
  *) enable_dlopen_self=unknown ;;
 
20932
  esac
 
20933
 
 
20934
  case $lt_cv_dlopen_self_static in
 
20935
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
20936
  *) enable_dlopen_self_static=unknown ;;
 
20937
  esac
 
20938
fi
 
20939
 
 
20940
 
 
20941
# The else clause should only fire when bootstrapping the
 
20942
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20943
# with your package, and you will get complaints that there are
 
20944
# no rules to generate ltmain.sh.
 
20945
if test -f "$ltmain"; then
 
20946
  # See if we are running on zsh, and set the options which allow our commands through
 
20947
  # without removal of \ escapes.
 
20948
  if test -n "${ZSH_VERSION+set}" ; then
 
20949
    setopt NO_GLOB_SUBST
 
20950
  fi
 
20951
  # Now quote all the things that may contain metacharacters while being
 
20952
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20953
  # variables and quote the copies for generation of the libtool script.
 
20954
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
20955
    SED SHELL STRIP \
 
20956
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20957
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20958
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20959
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20960
    lt_cv_sys_global_symbol_to_c_name_address \
 
20961
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20962
    old_postinstall_cmds old_postuninstall_cmds \
 
20963
    compiler_GCJ \
 
20964
    CC_GCJ \
 
20965
    LD_GCJ \
 
20966
    lt_prog_compiler_wl_GCJ \
 
20967
    lt_prog_compiler_pic_GCJ \
 
20968
    lt_prog_compiler_static_GCJ \
 
20969
    lt_prog_compiler_no_builtin_flag_GCJ \
 
20970
    export_dynamic_flag_spec_GCJ \
 
20971
    thread_safe_flag_spec_GCJ \
 
20972
    whole_archive_flag_spec_GCJ \
 
20973
    enable_shared_with_static_runtimes_GCJ \
 
20974
    old_archive_cmds_GCJ \
 
20975
    old_archive_from_new_cmds_GCJ \
 
20976
    predep_objects_GCJ \
 
20977
    postdep_objects_GCJ \
 
20978
    predeps_GCJ \
 
20979
    postdeps_GCJ \
 
20980
    compiler_lib_search_path_GCJ \
 
20981
    archive_cmds_GCJ \
 
20982
    archive_expsym_cmds_GCJ \
 
20983
    postinstall_cmds_GCJ \
 
20984
    postuninstall_cmds_GCJ \
 
20985
    old_archive_from_expsyms_cmds_GCJ \
 
20986
    allow_undefined_flag_GCJ \
 
20987
    no_undefined_flag_GCJ \
 
20988
    export_symbols_cmds_GCJ \
 
20989
    hardcode_libdir_flag_spec_GCJ \
 
20990
    hardcode_libdir_flag_spec_ld_GCJ \
 
20991
    hardcode_libdir_separator_GCJ \
 
20992
    hardcode_automatic_GCJ \
 
20993
    module_cmds_GCJ \
 
20994
    module_expsym_cmds_GCJ \
 
20995
    lt_cv_prog_compiler_c_o_GCJ \
 
20996
    exclude_expsyms_GCJ \
 
20997
    include_expsyms_GCJ; do
 
20998
 
 
20999
    case $var in
 
21000
    old_archive_cmds_GCJ | \
 
21001
    old_archive_from_new_cmds_GCJ | \
 
21002
    archive_cmds_GCJ | \
 
21003
    archive_expsym_cmds_GCJ | \
 
21004
    module_cmds_GCJ | \
 
21005
    module_expsym_cmds_GCJ | \
 
21006
    old_archive_from_expsyms_cmds_GCJ | \
 
21007
    export_symbols_cmds_GCJ | \
 
21008
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
21009
    postinstall_cmds | postuninstall_cmds | \
 
21010
    old_postinstall_cmds | old_postuninstall_cmds | \
 
21011
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
21012
      # Double-quote double-evaled strings.
 
21013
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
21014
      ;;
 
21015
    *)
 
21016
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
21017
      ;;
 
21018
    esac
 
21019
  done
 
21020
 
 
21021
  case $lt_echo in
 
21022
  *'\$0 --fallback-echo"')
 
21023
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
21024
    ;;
 
21025
  esac
 
21026
 
 
21027
cfgfile="$ofile"
 
21028
 
 
21029
  cat <<__EOF__ >> "$cfgfile"
 
21030
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
21031
 
 
21032
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
21033
 
 
21034
# Shell to use when invoking shell scripts.
 
21035
SHELL=$lt_SHELL
 
21036
 
 
21037
# Whether or not to build shared libraries.
 
21038
build_libtool_libs=$enable_shared
 
21039
 
 
21040
# Whether or not to build static libraries.
 
21041
build_old_libs=$enable_static
 
21042
 
 
21043
# Whether or not to add -lc for building shared libraries.
 
21044
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
21045
 
 
21046
# Whether or not to disallow shared libs when runtime libs are static
 
21047
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
21048
 
 
21049
# Whether or not to optimize for fast installation.
 
21050
fast_install=$enable_fast_install
 
21051
 
 
21052
# The host system.
 
21053
host_alias=$host_alias
 
21054
host=$host
 
21055
 
 
21056
# An echo program that does not interpret backslashes.
 
21057
echo=$lt_echo
 
21058
 
 
21059
# The archiver.
 
21060
AR=$lt_AR
 
21061
AR_FLAGS=$lt_AR_FLAGS
 
21062
 
 
21063
# A C compiler.
 
21064
LTCC=$lt_LTCC
 
21065
 
 
21066
# A language-specific compiler.
 
21067
CC=$lt_compiler_GCJ
 
21068
 
 
21069
# Is the compiler the GNU C compiler?
 
21070
with_gcc=$GCC_GCJ
 
21071
 
 
21072
# An ERE matcher.
 
21073
EGREP=$lt_EGREP
 
21074
 
 
21075
# The linker used to build libraries.
 
21076
LD=$lt_LD_GCJ
 
21077
 
 
21078
# Whether we need hard or soft links.
 
21079
LN_S=$lt_LN_S
 
21080
 
 
21081
# A BSD-compatible nm program.
 
21082
NM=$lt_NM
 
21083
 
 
21084
# A symbol stripping program
 
21085
STRIP=$lt_STRIP
 
21086
 
 
21087
# Used to examine libraries when file_magic_cmd begins "file"
 
21088
MAGIC_CMD=$MAGIC_CMD
 
21089
 
 
21090
# Used on cygwin: DLL creation program.
 
21091
DLLTOOL="$DLLTOOL"
 
21092
 
 
21093
# Used on cygwin: object dumper.
 
21094
OBJDUMP="$OBJDUMP"
 
21095
 
 
21096
# Used on cygwin: assembler.
 
21097
AS="$AS"
 
21098
 
 
21099
# The name of the directory that contains temporary libtool files.
 
21100
objdir=$objdir
 
21101
 
 
21102
# How to create reloadable object files.
 
21103
reload_flag=$lt_reload_flag
 
21104
reload_cmds=$lt_reload_cmds
 
21105
 
 
21106
# How to pass a linker flag through the compiler.
 
21107
wl=$lt_lt_prog_compiler_wl_GCJ
 
21108
 
 
21109
# Object file suffix (normally "o").
 
21110
objext="$ac_objext"
 
21111
 
 
21112
# Old archive suffix (normally "a").
 
21113
libext="$libext"
 
21114
 
 
21115
# Shared library suffix (normally ".so").
 
21116
shrext_cmds='$shrext_cmds'
 
21117
 
 
21118
# Executable file suffix (normally "").
 
21119
exeext="$exeext"
 
21120
 
 
21121
# Additional compiler flags for building library objects.
 
21122
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
21123
pic_mode=$pic_mode
 
21124
 
 
21125
# What is the maximum length of a command?
 
21126
max_cmd_len=$lt_cv_sys_max_cmd_len
 
21127
 
 
21128
# Does compiler simultaneously support -c and -o options?
 
21129
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
21130
 
 
21131
# Must we lock files when doing compilation ?
 
21132
need_locks=$lt_need_locks
 
21133
 
 
21134
# Do we need the lib prefix for modules?
 
21135
need_lib_prefix=$need_lib_prefix
 
21136
 
 
21137
# Do we need a version for libraries?
 
21138
need_version=$need_version
 
21139
 
 
21140
# Whether dlopen is supported.
 
21141
dlopen_support=$enable_dlopen
 
21142
 
 
21143
# Whether dlopen of programs is supported.
 
21144
dlopen_self=$enable_dlopen_self
 
21145
 
 
21146
# Whether dlopen of statically linked programs is supported.
 
21147
dlopen_self_static=$enable_dlopen_self_static
 
21148
 
 
21149
# Compiler flag to prevent dynamic linking.
 
21150
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
21151
 
 
21152
# Compiler flag to turn off builtin functions.
 
21153
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
21154
 
 
21155
# Compiler flag to allow reflexive dlopens.
 
21156
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
21157
 
 
21158
# Compiler flag to generate shared objects directly from archives.
 
21159
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
21160
 
 
21161
# Compiler flag to generate thread-safe objects.
 
21162
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
21163
 
 
21164
# Library versioning type.
 
21165
version_type=$version_type
 
21166
 
 
21167
# Format of library name prefix.
 
21168
libname_spec=$lt_libname_spec
 
21169
 
 
21170
# List of archive names.  First name is the real one, the rest are links.
 
21171
# The last name is the one that the linker finds with -lNAME.
 
21172
library_names_spec=$lt_library_names_spec
 
21173
 
 
21174
# The coded name of the library, if different from the real name.
 
21175
soname_spec=$lt_soname_spec
 
21176
 
 
21177
# Commands used to build and install an old-style archive.
 
21178
RANLIB=$lt_RANLIB
 
21179
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
21180
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21181
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21182
 
 
21183
# Create an old-style archive from a shared archive.
 
21184
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
21185
 
 
21186
# Create a temporary old-style archive to link instead of a shared archive.
 
21187
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
21188
 
 
21189
# Commands used to build and install a shared archive.
 
21190
archive_cmds=$lt_archive_cmds_GCJ
 
21191
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
21192
postinstall_cmds=$lt_postinstall_cmds
 
21193
postuninstall_cmds=$lt_postuninstall_cmds
 
21194
 
 
21195
# Commands used to build a loadable module (assumed same as above if empty)
 
21196
module_cmds=$lt_module_cmds_GCJ
 
21197
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
21198
 
 
21199
# Commands to strip libraries.
 
21200
old_striplib=$lt_old_striplib
 
21201
striplib=$lt_striplib
 
21202
 
 
21203
# Dependencies to place before the objects being linked to create a
 
21204
# shared library.
 
21205
predep_objects=$lt_predep_objects_GCJ
 
21206
 
 
21207
# Dependencies to place after the objects being linked to create a
 
21208
# shared library.
 
21209
postdep_objects=$lt_postdep_objects_GCJ
 
21210
 
 
21211
# Dependencies to place before the objects being linked to create a
 
21212
# shared library.
 
21213
predeps=$lt_predeps_GCJ
 
21214
 
 
21215
# Dependencies to place after the objects being linked to create a
 
21216
# shared library.
 
21217
postdeps=$lt_postdeps_GCJ
 
21218
 
 
21219
# The library search path used internally by the compiler when linking
 
21220
# a shared library.
 
21221
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
21222
 
 
21223
# Method to check whether dependent libraries are shared objects.
 
21224
deplibs_check_method=$lt_deplibs_check_method
 
21225
 
 
21226
# Command to use when deplibs_check_method == file_magic.
 
21227
file_magic_cmd=$lt_file_magic_cmd
 
21228
 
 
21229
# Flag that allows shared libraries with undefined symbols to be built.
 
21230
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
21231
 
 
21232
# Flag that forces no undefined symbols.
 
21233
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
21234
 
 
21235
# Commands used to finish a libtool library installation in a directory.
 
21236
finish_cmds=$lt_finish_cmds
 
21237
 
 
21238
# Same as above, but a single script fragment to be evaled but not shown.
 
21239
finish_eval=$lt_finish_eval
 
21240
 
 
21241
# Take the output of nm and produce a listing of raw symbols and C names.
 
21242
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21243
 
 
21244
# Transform the output of nm in a proper C declaration
 
21245
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21246
 
 
21247
# Transform the output of nm in a C name address pair
 
21248
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21249
 
 
21250
# This is the shared library runtime path variable.
 
21251
runpath_var=$runpath_var
 
21252
 
 
21253
# This is the shared library path variable.
 
21254
shlibpath_var=$shlibpath_var
 
21255
 
 
21256
# Is shlibpath searched before the hard-coded library search path?
 
21257
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21258
 
 
21259
# How to hardcode a shared library path into an executable.
 
21260
hardcode_action=$hardcode_action_GCJ
 
21261
 
 
21262
# Whether we should hardcode library paths into libraries.
 
21263
hardcode_into_libs=$hardcode_into_libs
 
21264
 
 
21265
# Flag to hardcode \$libdir into a binary during linking.
 
21266
# This must work even if \$libdir does not exist.
 
21267
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
21268
 
 
21269
# If ld is used when linking, flag to hardcode \$libdir into
 
21270
# a binary during linking. This must work even if \$libdir does
 
21271
# not exist.
 
21272
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
21273
 
 
21274
# Whether we need a single -rpath flag with a separated argument.
 
21275
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
21276
 
 
21277
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21278
# resulting binary.
 
21279
hardcode_direct=$hardcode_direct_GCJ
 
21280
 
 
21281
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21282
# resulting binary.
 
21283
hardcode_minus_L=$hardcode_minus_L_GCJ
 
21284
 
 
21285
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21286
# the resulting binary.
 
21287
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
21288
 
 
21289
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21290
# and all subsequent libraries and executables linked against it.
 
21291
hardcode_automatic=$hardcode_automatic_GCJ
 
21292
 
 
21293
# Variables whose values should be saved in libtool wrapper scripts and
 
21294
# restored at relink time.
 
21295
variables_saved_for_relink="$variables_saved_for_relink"
 
21296
 
 
21297
# Whether libtool must link a program against all its dependency libraries.
 
21298
link_all_deplibs=$link_all_deplibs_GCJ
 
21299
 
 
21300
# Compile-time system search path for libraries
 
21301
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21302
 
 
21303
# Run-time system search path for libraries
 
21304
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21305
 
 
21306
# Fix the shell variable \$srcfile for the compiler.
 
21307
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
21308
 
 
21309
# Set to yes if exported symbols are required.
 
21310
always_export_symbols=$always_export_symbols_GCJ
 
21311
 
 
21312
# The commands to list exported symbols.
 
21313
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
21314
 
 
21315
# The commands to extract the exported symbol list from a shared archive.
 
21316
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21317
 
 
21318
# Symbols that should not be listed in the preloaded symbols.
 
21319
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
21320
 
 
21321
# Symbols that must always be exported.
 
21322
include_expsyms=$lt_include_expsyms_GCJ
 
21323
 
 
21324
# ### END LIBTOOL TAG CONFIG: $tagname
 
21325
 
 
21326
__EOF__
 
21327
 
 
21328
 
 
21329
else
 
21330
  # If there is no Makefile yet, we rely on a make rule to execute
 
21331
  # `config.status --recheck' to rerun these tests and create the
 
21332
  # libtool script then.
 
21333
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
21334
  if test -f "$ltmain_in"; then
 
21335
    test -f Makefile && make "$ltmain"
 
21336
  fi
 
21337
fi
 
21338
 
 
21339
 
 
21340
ac_ext=c
 
21341
ac_cpp='$CPP $CPPFLAGS'
 
21342
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21343
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21344
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21345
 
 
21346
CC="$lt_save_CC"
 
21347
 
 
21348
        else
 
21349
          tagname=""
 
21350
        fi
 
21351
        ;;
 
21352
 
 
21353
      RC)
 
21354
        
 
21355
 
 
21356
 
 
21357
# Source file extension for RC test sources.
 
21358
ac_ext=rc
 
21359
 
 
21360
# Object file extension for compiled RC test sources.
 
21361
objext=o
 
21362
objext_RC=$objext
 
21363
 
 
21364
# Code to be used in simple compile tests
 
21365
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
21366
 
 
21367
# Code to be used in simple link tests
 
21368
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
21369
 
 
21370
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
21371
 
 
21372
# If no C compiler was specified, use CC.
 
21373
LTCC=${LTCC-"$CC"}
 
21374
 
 
21375
# Allow CC to be a program name with arguments.
 
21376
compiler=$CC
 
21377
 
 
21378
 
 
21379
# Allow CC to be a program name with arguments.
 
21380
lt_save_CC="$CC"
 
21381
CC=${RC-"windres"}
 
21382
compiler=$CC
 
21383
compiler_RC=$CC
 
21384
lt_cv_prog_compiler_c_o_RC=yes
 
21385
 
 
21386
# The else clause should only fire when bootstrapping the
 
21387
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
21388
# with your package, and you will get complaints that there are
 
21389
# no rules to generate ltmain.sh.
 
21390
if test -f "$ltmain"; then
 
21391
  # See if we are running on zsh, and set the options which allow our commands through
 
21392
  # without removal of \ escapes.
 
21393
  if test -n "${ZSH_VERSION+set}" ; then
 
21394
    setopt NO_GLOB_SUBST
 
21395
  fi
 
21396
  # Now quote all the things that may contain metacharacters while being
 
21397
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
21398
  # variables and quote the copies for generation of the libtool script.
 
21399
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
21400
    SED SHELL STRIP \
 
21401
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
21402
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
21403
    deplibs_check_method reload_flag reload_cmds need_locks \
 
21404
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
21405
    lt_cv_sys_global_symbol_to_c_name_address \
 
21406
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
21407
    old_postinstall_cmds old_postuninstall_cmds \
 
21408
    compiler_RC \
 
21409
    CC_RC \
 
21410
    LD_RC \
 
21411
    lt_prog_compiler_wl_RC \
 
21412
    lt_prog_compiler_pic_RC \
 
21413
    lt_prog_compiler_static_RC \
 
21414
    lt_prog_compiler_no_builtin_flag_RC \
 
21415
    export_dynamic_flag_spec_RC \
 
21416
    thread_safe_flag_spec_RC \
 
21417
    whole_archive_flag_spec_RC \
 
21418
    enable_shared_with_static_runtimes_RC \
 
21419
    old_archive_cmds_RC \
 
21420
    old_archive_from_new_cmds_RC \
 
21421
    predep_objects_RC \
 
21422
    postdep_objects_RC \
 
21423
    predeps_RC \
 
21424
    postdeps_RC \
 
21425
    compiler_lib_search_path_RC \
 
21426
    archive_cmds_RC \
 
21427
    archive_expsym_cmds_RC \
 
21428
    postinstall_cmds_RC \
 
21429
    postuninstall_cmds_RC \
 
21430
    old_archive_from_expsyms_cmds_RC \
 
21431
    allow_undefined_flag_RC \
 
21432
    no_undefined_flag_RC \
 
21433
    export_symbols_cmds_RC \
 
21434
    hardcode_libdir_flag_spec_RC \
 
21435
    hardcode_libdir_flag_spec_ld_RC \
 
21436
    hardcode_libdir_separator_RC \
 
21437
    hardcode_automatic_RC \
 
21438
    module_cmds_RC \
 
21439
    module_expsym_cmds_RC \
 
21440
    lt_cv_prog_compiler_c_o_RC \
 
21441
    exclude_expsyms_RC \
 
21442
    include_expsyms_RC; do
 
21443
 
 
21444
    case $var in
 
21445
    old_archive_cmds_RC | \
 
21446
    old_archive_from_new_cmds_RC | \
 
21447
    archive_cmds_RC | \
 
21448
    archive_expsym_cmds_RC | \
 
21449
    module_cmds_RC | \
 
21450
    module_expsym_cmds_RC | \
 
21451
    old_archive_from_expsyms_cmds_RC | \
 
21452
    export_symbols_cmds_RC | \
 
21453
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
21454
    postinstall_cmds | postuninstall_cmds | \
 
21455
    old_postinstall_cmds | old_postuninstall_cmds | \
 
21456
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
21457
      # Double-quote double-evaled strings.
 
21458
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
21459
      ;;
 
21460
    *)
 
21461
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
21462
      ;;
 
21463
    esac
 
21464
  done
 
21465
 
 
21466
  case $lt_echo in
 
21467
  *'\$0 --fallback-echo"')
 
21468
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
21469
    ;;
 
21470
  esac
 
21471
 
 
21472
cfgfile="$ofile"
 
21473
 
 
21474
  cat <<__EOF__ >> "$cfgfile"
 
21475
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
21476
 
 
21477
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
21478
 
 
21479
# Shell to use when invoking shell scripts.
 
21480
SHELL=$lt_SHELL
 
21481
 
 
21482
# Whether or not to build shared libraries.
 
21483
build_libtool_libs=$enable_shared
 
21484
 
 
21485
# Whether or not to build static libraries.
 
21486
build_old_libs=$enable_static
 
21487
 
 
21488
# Whether or not to add -lc for building shared libraries.
 
21489
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
21490
 
 
21491
# Whether or not to disallow shared libs when runtime libs are static
 
21492
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
21493
 
 
21494
# Whether or not to optimize for fast installation.
 
21495
fast_install=$enable_fast_install
 
21496
 
 
21497
# The host system.
 
21498
host_alias=$host_alias
 
21499
host=$host
 
21500
 
 
21501
# An echo program that does not interpret backslashes.
 
21502
echo=$lt_echo
 
21503
 
 
21504
# The archiver.
 
21505
AR=$lt_AR
 
21506
AR_FLAGS=$lt_AR_FLAGS
 
21507
 
 
21508
# A C compiler.
 
21509
LTCC=$lt_LTCC
 
21510
 
 
21511
# A language-specific compiler.
 
21512
CC=$lt_compiler_RC
 
21513
 
 
21514
# Is the compiler the GNU C compiler?
 
21515
with_gcc=$GCC_RC
 
21516
 
 
21517
# An ERE matcher.
 
21518
EGREP=$lt_EGREP
 
21519
 
 
21520
# The linker used to build libraries.
 
21521
LD=$lt_LD_RC
 
21522
 
 
21523
# Whether we need hard or soft links.
 
21524
LN_S=$lt_LN_S
 
21525
 
 
21526
# A BSD-compatible nm program.
 
21527
NM=$lt_NM
 
21528
 
 
21529
# A symbol stripping program
 
21530
STRIP=$lt_STRIP
 
21531
 
 
21532
# Used to examine libraries when file_magic_cmd begins "file"
 
21533
MAGIC_CMD=$MAGIC_CMD
 
21534
 
 
21535
# Used on cygwin: DLL creation program.
 
21536
DLLTOOL="$DLLTOOL"
 
21537
 
 
21538
# Used on cygwin: object dumper.
 
21539
OBJDUMP="$OBJDUMP"
 
21540
 
 
21541
# Used on cygwin: assembler.
 
21542
AS="$AS"
 
21543
 
 
21544
# The name of the directory that contains temporary libtool files.
 
21545
objdir=$objdir
 
21546
 
 
21547
# How to create reloadable object files.
 
21548
reload_flag=$lt_reload_flag
 
21549
reload_cmds=$lt_reload_cmds
 
21550
 
 
21551
# How to pass a linker flag through the compiler.
 
21552
wl=$lt_lt_prog_compiler_wl_RC
 
21553
 
 
21554
# Object file suffix (normally "o").
 
21555
objext="$ac_objext"
 
21556
 
 
21557
# Old archive suffix (normally "a").
 
21558
libext="$libext"
 
21559
 
 
21560
# Shared library suffix (normally ".so").
 
21561
shrext_cmds='$shrext_cmds'
 
21562
 
 
21563
# Executable file suffix (normally "").
 
21564
exeext="$exeext"
 
21565
 
 
21566
# Additional compiler flags for building library objects.
 
21567
pic_flag=$lt_lt_prog_compiler_pic_RC
 
21568
pic_mode=$pic_mode
 
21569
 
 
21570
# What is the maximum length of a command?
 
21571
max_cmd_len=$lt_cv_sys_max_cmd_len
 
21572
 
 
21573
# Does compiler simultaneously support -c and -o options?
 
21574
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
21575
 
 
21576
# Must we lock files when doing compilation ?
 
21577
need_locks=$lt_need_locks
 
21578
 
 
21579
# Do we need the lib prefix for modules?
 
21580
need_lib_prefix=$need_lib_prefix
 
21581
 
 
21582
# Do we need a version for libraries?
 
21583
need_version=$need_version
 
21584
 
 
21585
# Whether dlopen is supported.
 
21586
dlopen_support=$enable_dlopen
 
21587
 
 
21588
# Whether dlopen of programs is supported.
 
21589
dlopen_self=$enable_dlopen_self
 
21590
 
 
21591
# Whether dlopen of statically linked programs is supported.
 
21592
dlopen_self_static=$enable_dlopen_self_static
 
21593
 
 
21594
# Compiler flag to prevent dynamic linking.
 
21595
link_static_flag=$lt_lt_prog_compiler_static_RC
 
21596
 
 
21597
# Compiler flag to turn off builtin functions.
 
21598
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
21599
 
 
21600
# Compiler flag to allow reflexive dlopens.
 
21601
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
21602
 
 
21603
# Compiler flag to generate shared objects directly from archives.
 
21604
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
21605
 
 
21606
# Compiler flag to generate thread-safe objects.
 
21607
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
21608
 
 
21609
# Library versioning type.
 
21610
version_type=$version_type
 
21611
 
 
21612
# Format of library name prefix.
 
21613
libname_spec=$lt_libname_spec
 
21614
 
 
21615
# List of archive names.  First name is the real one, the rest are links.
 
21616
# The last name is the one that the linker finds with -lNAME.
 
21617
library_names_spec=$lt_library_names_spec
 
21618
 
 
21619
# The coded name of the library, if different from the real name.
 
21620
soname_spec=$lt_soname_spec
 
21621
 
 
21622
# Commands used to build and install an old-style archive.
 
21623
RANLIB=$lt_RANLIB
 
21624
old_archive_cmds=$lt_old_archive_cmds_RC
 
21625
old_postinstall_cmds=$lt_old_postinstall_cmds
 
21626
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
21627
 
 
21628
# Create an old-style archive from a shared archive.
 
21629
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
21630
 
 
21631
# Create a temporary old-style archive to link instead of a shared archive.
 
21632
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
21633
 
 
21634
# Commands used to build and install a shared archive.
 
21635
archive_cmds=$lt_archive_cmds_RC
 
21636
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
21637
postinstall_cmds=$lt_postinstall_cmds
 
21638
postuninstall_cmds=$lt_postuninstall_cmds
 
21639
 
 
21640
# Commands used to build a loadable module (assumed same as above if empty)
 
21641
module_cmds=$lt_module_cmds_RC
 
21642
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
21643
 
 
21644
# Commands to strip libraries.
 
21645
old_striplib=$lt_old_striplib
 
21646
striplib=$lt_striplib
 
21647
 
 
21648
# Dependencies to place before the objects being linked to create a
 
21649
# shared library.
 
21650
predep_objects=$lt_predep_objects_RC
 
21651
 
 
21652
# Dependencies to place after the objects being linked to create a
 
21653
# shared library.
 
21654
postdep_objects=$lt_postdep_objects_RC
 
21655
 
 
21656
# Dependencies to place before the objects being linked to create a
 
21657
# shared library.
 
21658
predeps=$lt_predeps_RC
 
21659
 
 
21660
# Dependencies to place after the objects being linked to create a
 
21661
# shared library.
 
21662
postdeps=$lt_postdeps_RC
 
21663
 
 
21664
# The library search path used internally by the compiler when linking
 
21665
# a shared library.
 
21666
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
21667
 
 
21668
# Method to check whether dependent libraries are shared objects.
 
21669
deplibs_check_method=$lt_deplibs_check_method
 
21670
 
 
21671
# Command to use when deplibs_check_method == file_magic.
 
21672
file_magic_cmd=$lt_file_magic_cmd
 
21673
 
 
21674
# Flag that allows shared libraries with undefined symbols to be built.
 
21675
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
21676
 
 
21677
# Flag that forces no undefined symbols.
 
21678
no_undefined_flag=$lt_no_undefined_flag_RC
 
21679
 
 
21680
# Commands used to finish a libtool library installation in a directory.
 
21681
finish_cmds=$lt_finish_cmds
 
21682
 
 
21683
# Same as above, but a single script fragment to be evaled but not shown.
 
21684
finish_eval=$lt_finish_eval
 
21685
 
 
21686
# Take the output of nm and produce a listing of raw symbols and C names.
 
21687
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
21688
 
 
21689
# Transform the output of nm in a proper C declaration
 
21690
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
21691
 
 
21692
# Transform the output of nm in a C name address pair
 
21693
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
21694
 
 
21695
# This is the shared library runtime path variable.
 
21696
runpath_var=$runpath_var
 
21697
 
 
21698
# This is the shared library path variable.
 
21699
shlibpath_var=$shlibpath_var
 
21700
 
 
21701
# Is shlibpath searched before the hard-coded library search path?
 
21702
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
21703
 
 
21704
# How to hardcode a shared library path into an executable.
 
21705
hardcode_action=$hardcode_action_RC
 
21706
 
 
21707
# Whether we should hardcode library paths into libraries.
 
21708
hardcode_into_libs=$hardcode_into_libs
 
21709
 
 
21710
# Flag to hardcode \$libdir into a binary during linking.
 
21711
# This must work even if \$libdir does not exist.
 
21712
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
21713
 
 
21714
# If ld is used when linking, flag to hardcode \$libdir into
 
21715
# a binary during linking. This must work even if \$libdir does
 
21716
# not exist.
 
21717
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
21718
 
 
21719
# Whether we need a single -rpath flag with a separated argument.
 
21720
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
21721
 
 
21722
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21723
# resulting binary.
 
21724
hardcode_direct=$hardcode_direct_RC
 
21725
 
 
21726
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21727
# resulting binary.
 
21728
hardcode_minus_L=$hardcode_minus_L_RC
 
21729
 
 
21730
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21731
# the resulting binary.
 
21732
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
21733
 
 
21734
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21735
# and all subsequent libraries and executables linked against it.
 
21736
hardcode_automatic=$hardcode_automatic_RC
 
21737
 
 
21738
# Variables whose values should be saved in libtool wrapper scripts and
 
21739
# restored at relink time.
 
21740
variables_saved_for_relink="$variables_saved_for_relink"
 
21741
 
 
21742
# Whether libtool must link a program against all its dependency libraries.
 
21743
link_all_deplibs=$link_all_deplibs_RC
 
21744
 
 
21745
# Compile-time system search path for libraries
 
21746
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21747
 
 
21748
# Run-time system search path for libraries
 
21749
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21750
 
 
21751
# Fix the shell variable \$srcfile for the compiler.
 
21752
fix_srcfile_path="$fix_srcfile_path_RC"
 
21753
 
 
21754
# Set to yes if exported symbols are required.
 
21755
always_export_symbols=$always_export_symbols_RC
 
21756
 
 
21757
# The commands to list exported symbols.
 
21758
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
21759
 
 
21760
# The commands to extract the exported symbol list from a shared archive.
 
21761
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21762
 
 
21763
# Symbols that should not be listed in the preloaded symbols.
 
21764
exclude_expsyms=$lt_exclude_expsyms_RC
 
21765
 
 
21766
# Symbols that must always be exported.
 
21767
include_expsyms=$lt_include_expsyms_RC
 
21768
 
 
21769
# ### END LIBTOOL TAG CONFIG: $tagname
 
21770
 
 
21771
__EOF__
 
21772
 
 
21773
 
 
21774
else
 
21775
  # If there is no Makefile yet, we rely on a make rule to execute
 
21776
  # `config.status --recheck' to rerun these tests and create the
 
21777
  # libtool script then.
 
21778
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
21779
  if test -f "$ltmain_in"; then
 
21780
    test -f Makefile && make "$ltmain"
 
21781
  fi
 
21782
fi
 
21783
 
 
21784
 
 
21785
ac_ext=c
 
21786
ac_cpp='$CPP $CPPFLAGS'
 
21787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21790
 
 
21791
CC="$lt_save_CC"
 
21792
 
 
21793
        ;;
 
21794
 
 
21795
      *)
 
21796
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
21797
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
21798
   { (exit 1); exit 1; }; }
 
21799
        ;;
 
21800
      esac
 
21801
 
 
21802
      # Append the new tag name to the list of available tags.
 
21803
      if test -n "$tagname" ; then
 
21804
      available_tags="$available_tags $tagname"
 
21805
    fi
 
21806
    fi
 
21807
  done
 
21808
  IFS="$lt_save_ifs"
 
21809
 
 
21810
  # Now substitute the updated list of available tags.
 
21811
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
21812
    mv "${ofile}T" "$ofile"
 
21813
    chmod +x "$ofile"
 
21814
  else
 
21815
    rm -f "${ofile}T"
 
21816
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
21817
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
21818
   { (exit 1); exit 1; }; }
 
21819
  fi
 
21820
fi
 
21821
 
 
21822
 
 
21823
 
 
21824
# This can be used to rebuild libtool when needed
 
21825
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
21826
 
 
21827
# Always use our own libtool.
 
21828
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
21829
 
 
21830
# Prevent multiple expansion
 
21831
 
 
21832
 
 
21833
 
 
21834
 
 
21835
 
 
21836
 
 
21837
 
 
21838
 
 
21839
 
 
21840
 
 
21841
 
 
21842
  
 
21843
 
 
21844
  
 
21845
 
 
21846
 
 
21847
  
 
21848
       
 
21849
       
 
21850
 
 
21851
 
 
21852
WARN_CFLAGS=""
 
21853
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
 
21854
# Check whether --enable-build-warnings or --disable-build-warnings was given.
 
21855
if test "${enable_build_warnings+set}" = set; then
 
21856
  enableval="$enable_build_warnings"
 
21857
  
 
21858
fi; 
 
21859
if test x"$build_warnings" = xyes; then
 
21860
    if test x"$GCC" = xyes; then
 
21861
        WARN_CFLAGS="${build_warnings}"
 
21862
    fi
 
21863
fi
 
21864
 
 
21865
 
 
21866
 
 
21867
                                                                                                              ac_config_files="$ac_config_files Makefile src/Judy1/Makefile src/JudyCommon/Makefile src/JudyHS/Makefile src/JudyL/Makefile src/JudySL/Makefile src/Makefile src/obj/Makefile tool/Makefile doc/Makefile test/Makefile"
 
21868
 
 
21869
 
 
21870
 
 
21871
cat >confcache <<\_ACEOF
 
21872
# This file is a shell script that caches the results of configure
 
21873
# tests run on this system so they can be shared between configure
 
21874
# scripts and configure runs, see configure's option --config-cache.
 
21875
# It is not useful on other systems.  If it contains results you don't
 
21876
# want to keep, you may remove or edit it.
 
21877
#
 
21878
# config.status only pays attention to the cache file if you give it
 
21879
# the --recheck option to rerun configure.
 
21880
#
 
21881
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
21882
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
21883
# following values.
 
21884
 
 
21885
_ACEOF
 
21886
 
 
21887
# The following way of writing the cache mishandles newlines in values,
 
21888
# but we know of no workaround that is simple, portable, and efficient.
 
21889
# So, don't put newlines in cache variables' values.
 
21890
# Ultrix sh set writes to stderr and can't be redirected directly,
 
21891
# and sets the high bit in the cache file unless we assign to the vars.
 
21892
{
 
21893
  (set) 2>&1 |
 
21894
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
21895
    *ac_space=\ *)
 
21896
      # `set' does not quote correctly, so add quotes (double-quote
 
21897
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
21898
      sed -n \
 
21899
        "s/'/'\\\\''/g;
 
21900
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
21901
      ;;
 
21902
    *)
 
21903
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
21904
      sed -n \
 
21905
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
21906
      ;;
 
21907
    esac;
 
21908
} |
 
21909
  sed '
 
21910
     t clear
 
21911
     : clear
 
21912
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
21913
     t end
 
21914
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21915
     : end' >>confcache
 
21916
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
21917
  if test -w $cache_file; then
 
21918
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
21919
    cat confcache >$cache_file
 
21920
  else
 
21921
    echo "not updating unwritable cache $cache_file"
 
21922
  fi
 
21923
fi
 
21924
rm -f confcache
 
21925
 
 
21926
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
21927
# Let make expand exec_prefix.
 
21928
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
21929
 
 
21930
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21931
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21932
# trailing colons and then remove the whole line if VPATH becomes empty
 
21933
# (actually we leave an empty line to preserve line numbers).
 
21934
if test "x$srcdir" = x.; then
 
21935
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21936
s/:*\$(srcdir):*/:/;
 
21937
s/:*\${srcdir}:*/:/;
 
21938
s/:*@srcdir@:*/:/;
 
21939
s/^\([^=]*=[     ]*\):*/\1/;
 
21940
s/:*$//;
 
21941
s/^[^=]*=[       ]*$//;
 
21942
}'
 
21943
fi
 
21944
 
 
21945
DEFS=-DHAVE_CONFIG_H
 
21946
 
 
21947
ac_libobjs=
 
21948
ac_ltlibobjs=
 
21949
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
21950
  # 1. Remove the extension, and $U if already installed.
 
21951
  ac_i=`echo "$ac_i" |
 
21952
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
21953
  # 2. Add them.
 
21954
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
21955
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
21956
done
 
21957
LIB@&t@OBJS=$ac_libobjs
 
21958
 
 
21959
LTLIBOBJS=$ac_ltlibobjs
 
21960
 
 
21961
 
 
21962
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
21963
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21964
Usually this means the macro was only invoked conditionally." >&5
 
21965
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21966
Usually this means the macro was only invoked conditionally." >&2;}
 
21967
   { (exit 1); exit 1; }; }
 
21968
fi
 
21969
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
21970
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
21971
Usually this means the macro was only invoked conditionally." >&5
 
21972
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
21973
Usually this means the macro was only invoked conditionally." >&2;}
 
21974
   { (exit 1); exit 1; }; }
 
21975
fi
 
21976
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21977
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21978
Usually this means the macro was only invoked conditionally." >&5
 
21979
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
21980
Usually this means the macro was only invoked conditionally." >&2;}
 
21981
   { (exit 1); exit 1; }; }
 
21982
fi
 
21983
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
21984
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
21985
Usually this means the macro was only invoked conditionally." >&5
 
21986
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
21987
Usually this means the macro was only invoked conditionally." >&2;}
 
21988
   { (exit 1); exit 1; }; }
 
21989
fi
 
21990
 
 
21991
: ${CONFIG_STATUS=./config.status}
 
21992
ac_clean_files_save=$ac_clean_files
 
21993
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
21994
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
21995
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
21996
cat >$CONFIG_STATUS <<_ACEOF
 
21997
#! $SHELL
 
21998
# Generated by $as_me.
 
21999
# Run this file to recreate the current configuration.
 
22000
# Compiler output produced by configure, useful for debugging
 
22001
# configure, is in config.log if it exists.
 
22002
 
 
22003
debug=false
 
22004
ac_cs_recheck=false
 
22005
ac_cs_silent=false
 
22006
SHELL=\${CONFIG_SHELL-$SHELL}
 
22007
_ACEOF
 
22008
 
 
22009
cat >>$CONFIG_STATUS <<\_ACEOF
 
22010
## --------------------- ##
 
22011
## M4sh Initialization.  ##
 
22012
## --------------------- ##
 
22013
 
 
22014
# Be Bourne compatible
 
22015
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
22016
  emulate sh
 
22017
  NULLCMD=:
 
22018
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22019
  # is contrary to our usage.  Disable this feature.
 
22020
  alias -g '${1+"$@"}'='"$@"'
 
22021
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22022
  set -o posix
 
22023
fi
 
22024
DUALCASE=1; export DUALCASE # for MKS sh
 
22025
 
 
22026
# Support unset when possible.
 
22027
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22028
  as_unset=unset
 
22029
else
 
22030
  as_unset=false
 
22031
fi
 
22032
 
 
22033
 
 
22034
# Work around bugs in pre-3.0 UWIN ksh.
 
22035
$as_unset ENV MAIL MAILPATH
 
22036
PS1='$ '
 
22037
PS2='> '
 
22038
PS4='+ '
 
22039
 
 
22040
# NLS nuisances.
 
22041
for as_var in \
 
22042
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
22043
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
22044
  LC_TELEPHONE LC_TIME
 
22045
do
 
22046
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22047
    eval $as_var=C; export $as_var
 
22048
  else
 
22049
    $as_unset $as_var
 
22050
  fi
 
22051
done
 
22052
 
 
22053
# Required to use basename.
 
22054
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22055
  as_expr=expr
 
22056
else
 
22057
  as_expr=false
 
22058
fi
 
22059
 
 
22060
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
22061
  as_basename=basename
 
22062
else
 
22063
  as_basename=false
 
22064
fi
 
22065
 
 
22066
 
 
22067
# Name of the executable.
 
22068
as_me=`$as_basename "$0" ||
 
22069
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22070
         X"$0" : 'X\(//\)$' \| \
 
22071
         X"$0" : 'X\(/\)$' \| \
 
22072
         .     : '\(.\)' 2>/dev/null ||
 
22073
echo X/"$0" |
 
22074
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
22075
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
22076
          /^X\/\(\/\).*/{ s//\1/; q; }
 
22077
          s/.*/./; q'`
 
22078
 
 
22079
 
 
22080
# PATH needs CR, and LINENO needs CR and PATH.
 
22081
# Avoid depending upon Character Ranges.
 
22082
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22083
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22084
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22085
as_cr_digits='0123456789'
 
22086
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22087
 
 
22088
# The user is always right.
 
22089
if test "${PATH_SEPARATOR+set}" != set; then
 
22090
  echo "#! /bin/sh" >conf$$.sh
 
22091
  echo  "exit 0"   >>conf$$.sh
 
22092
  chmod +x conf$$.sh
 
22093
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22094
    PATH_SEPARATOR=';'
 
22095
  else
 
22096
    PATH_SEPARATOR=:
 
22097
  fi
 
22098
  rm -f conf$$.sh
 
22099
fi
 
22100
 
 
22101
 
 
22102
  as_lineno_1=$LINENO
 
22103
  as_lineno_2=$LINENO
 
22104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
22107
  # Find who we are.  Look in the path if we contain no path at all
 
22108
  # relative or not.
 
22109
  case $0 in
 
22110
    *[\\/]* ) as_myself=$0 ;;
 
22111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22112
for as_dir in $PATH
 
22113
do
 
22114
  IFS=$as_save_IFS
 
22115
  test -z "$as_dir" && as_dir=.
 
22116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22117
done
 
22118
 
 
22119
       ;;
 
22120
  esac
 
22121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
22122
  # in which case we are not to be found in the path.
 
22123
  if test "x$as_myself" = x; then
 
22124
    as_myself=$0
 
22125
  fi
 
22126
  if test ! -f "$as_myself"; then
 
22127
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
22128
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
22129
   { (exit 1); exit 1; }; }
 
22130
  fi
 
22131
  case $CONFIG_SHELL in
 
22132
  '')
 
22133
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22134
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
22135
do
 
22136
  IFS=$as_save_IFS
 
22137
  test -z "$as_dir" && as_dir=.
 
22138
  for as_base in sh bash ksh sh5; do
 
22139
         case $as_dir in
 
22140
         /*)
 
22141
           if ("$as_dir/$as_base" -c '
 
22142
  as_lineno_1=$LINENO
 
22143
  as_lineno_2=$LINENO
 
22144
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22145
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22146
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
22147
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
22148
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
22149
             CONFIG_SHELL=$as_dir/$as_base
 
22150
             export CONFIG_SHELL
 
22151
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
22152
           fi;;
 
22153
         esac
 
22154
       done
 
22155
done
 
22156
;;
 
22157
  esac
 
22158
 
 
22159
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22160
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22161
  # line-number line before each line; the second 'sed' does the real
 
22162
  # work.  The second script uses 'N' to pair each line-number line
 
22163
  # with the numbered line, and appends trailing '-' during
 
22164
  # substitution so that $LINENO is not a special case at line end.
 
22165
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22166
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
22167
  sed '=' <$as_myself |
 
22168
    sed '
 
22169
      N
 
22170
      s,$,-,
 
22171
      : loop
 
22172
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
22173
      t loop
 
22174
      s,-$,,
 
22175
      s,^['$as_cr_digits']*\n,,
 
22176
    ' >$as_me.lineno &&
 
22177
  chmod +x $as_me.lineno ||
 
22178
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
22179
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
22180
   { (exit 1); exit 1; }; }
 
22181
 
 
22182
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22183
  # (the dirname of $[0] is not the place where we might find the
 
22184
  # original and so on.  Autoconf is especially sensible to this).
 
22185
  . ./$as_me.lineno
 
22186
  # Exit status is that of the last command.
 
22187
  exit
 
22188
}
 
22189
 
 
22190
 
 
22191
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
22192
  *c*,-n*) ECHO_N= ECHO_C='
 
22193
' ECHO_T='      ' ;;
 
22194
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
22195
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
22196
esac
 
22197
 
 
22198
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22199
  as_expr=expr
 
22200
else
 
22201
  as_expr=false
 
22202
fi
 
22203
 
 
22204
rm -f conf$$ conf$$.exe conf$$.file
 
22205
echo >conf$$.file
 
22206
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22207
  # We could just check for DJGPP; but this test a) works b) is more generic
 
22208
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
22209
  if test -f conf$$.exe; then
 
22210
    # Don't use ln at all; we don't have any links
 
22211
    as_ln_s='cp -p'
 
22212
  else
 
22213
    as_ln_s='ln -s'
 
22214
  fi
 
22215
elif ln conf$$.file conf$$ 2>/dev/null; then
 
22216
  as_ln_s=ln
 
22217
else
 
22218
  as_ln_s='cp -p'
 
22219
fi
 
22220
rm -f conf$$ conf$$.exe conf$$.file
 
22221
 
 
22222
if mkdir -p . 2>/dev/null; then
 
22223
  as_mkdir_p=:
 
22224
else
 
22225
  test -d ./-p && rmdir ./-p
 
22226
  as_mkdir_p=false
 
22227
fi
 
22228
 
 
22229
as_executable_p="test -f"
 
22230
 
 
22231
# Sed expression to map a string onto a valid CPP name.
 
22232
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22233
 
 
22234
# Sed expression to map a string onto a valid variable name.
 
22235
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22236
 
 
22237
 
 
22238
# IFS
 
22239
# We need space, tab and new line, in precisely that order.
 
22240
as_nl='
 
22241
'
 
22242
IFS="   $as_nl"
 
22243
 
 
22244
# CDPATH.
 
22245
$as_unset CDPATH
 
22246
 
 
22247
exec 6>&1
 
22248
 
 
22249
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
22250
# report actual input values of CONFIG_FILES etc. instead of their
 
22251
# values after options handling.  Logging --version etc. is OK.
 
22252
exec 5>>config.log
 
22253
{
 
22254
  echo
 
22255
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
22256
@%:@@%:@ Running $as_me. @%:@@%:@
 
22257
_ASBOX
 
22258
} >&5
 
22259
cat >&5 <<_CSEOF
 
22260
 
 
22261
This file was extended by Judy $as_me 1.0.0, which was
 
22262
generated by GNU Autoconf 2.59.  Invocation command line was
 
22263
 
 
22264
  CONFIG_FILES    = $CONFIG_FILES
 
22265
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22266
  CONFIG_LINKS    = $CONFIG_LINKS
 
22267
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22268
  $ $0 $@
 
22269
 
 
22270
_CSEOF
 
22271
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
22272
echo >&5
 
22273
_ACEOF
 
22274
 
 
22275
# Files that config.status was made for.
 
22276
if test -n "$ac_config_files"; then
 
22277
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
22278
fi
 
22279
 
 
22280
if test -n "$ac_config_headers"; then
 
22281
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
22282
fi
 
22283
 
 
22284
if test -n "$ac_config_links"; then
 
22285
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
22286
fi
 
22287
 
 
22288
if test -n "$ac_config_commands"; then
 
22289
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
22290
fi
 
22291
 
 
22292
cat >>$CONFIG_STATUS <<\_ACEOF
 
22293
 
 
22294
ac_cs_usage="\
 
22295
\`$as_me' instantiates files from templates according to the
 
22296
current configuration.
 
22297
 
 
22298
Usage: $0 [OPTIONS] [FILE]...
 
22299
 
 
22300
  -h, --help       print this help, then exit
 
22301
  -V, --version    print version number, then exit
 
22302
  -q, --quiet      do not print progress messages
 
22303
  -d, --debug      don't remove temporary files
 
22304
      --recheck    update $as_me by reconfiguring in the same conditions
 
22305
  --file=FILE[:TEMPLATE]
 
22306
                   instantiate the configuration file FILE
 
22307
  --header=FILE[:TEMPLATE]
 
22308
                   instantiate the configuration header FILE
 
22309
 
 
22310
Configuration files:
 
22311
$config_files
 
22312
 
 
22313
Configuration headers:
 
22314
$config_headers
 
22315
 
 
22316
Configuration commands:
 
22317
$config_commands
 
22318
 
 
22319
Report bugs to <bug-autoconf@gnu.org>."
 
22320
_ACEOF
 
22321
 
 
22322
cat >>$CONFIG_STATUS <<_ACEOF
 
22323
ac_cs_version="\\
 
22324
Judy config.status 1.0.0
 
22325
configured by $0, generated by GNU Autoconf 2.59,
 
22326
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
22327
 
 
22328
Copyright (C) 2003 Free Software Foundation, Inc.
 
22329
This config.status script is free software; the Free Software Foundation
 
22330
gives unlimited permission to copy, distribute and modify it."
 
22331
srcdir=$srcdir
 
22332
INSTALL="$INSTALL"
 
22333
_ACEOF
 
22334
 
 
22335
cat >>$CONFIG_STATUS <<\_ACEOF
 
22336
# If no file are specified by the user, then we need to provide default
 
22337
# value.  By we need to know if files were specified by the user.
 
22338
ac_need_defaults=:
 
22339
while test $# != 0
 
22340
do
 
22341
  case $1 in
 
22342
  --*=*)
 
22343
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
22344
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
22345
    ac_shift=:
 
22346
    ;;
 
22347
  -*)
 
22348
    ac_option=$1
 
22349
    ac_optarg=$2
 
22350
    ac_shift=shift
 
22351
    ;;
 
22352
  *) # This is not an option, so the user has probably given explicit
 
22353
     # arguments.
 
22354
     ac_option=$1
 
22355
     ac_need_defaults=false;;
 
22356
  esac
 
22357
 
 
22358
  case $ac_option in
 
22359
  # Handling of the options.
 
22360
_ACEOF
 
22361
cat >>$CONFIG_STATUS <<\_ACEOF
 
22362
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22363
    ac_cs_recheck=: ;;
 
22364
  --version | --vers* | -V )
 
22365
    echo "$ac_cs_version"; exit 0 ;;
 
22366
  --he | --h)
 
22367
    # Conflict between --help and --header
 
22368
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
22369
Try \`$0 --help' for more information." >&5
 
22370
echo "$as_me: error: ambiguous option: $1
 
22371
Try \`$0 --help' for more information." >&2;}
 
22372
   { (exit 1); exit 1; }; };;
 
22373
  --help | --hel | -h )
 
22374
    echo "$ac_cs_usage"; exit 0 ;;
 
22375
  --debug | --d* | -d )
 
22376
    debug=: ;;
 
22377
  --file | --fil | --fi | --f )
 
22378
    $ac_shift
 
22379
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
22380
    ac_need_defaults=false;;
 
22381
  --header | --heade | --head | --hea )
 
22382
    $ac_shift
 
22383
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
22384
    ac_need_defaults=false;;
 
22385
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22386
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22387
    ac_cs_silent=: ;;
 
22388
 
 
22389
  # This is an error.
 
22390
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
22391
Try \`$0 --help' for more information." >&5
 
22392
echo "$as_me: error: unrecognized option: $1
 
22393
Try \`$0 --help' for more information." >&2;}
 
22394
   { (exit 1); exit 1; }; } ;;
 
22395
 
 
22396
  *) ac_config_targets="$ac_config_targets $1" ;;
 
22397
 
 
22398
  esac
 
22399
  shift
 
22400
done
 
22401
 
 
22402
ac_configure_extra_args=
 
22403
 
 
22404
if $ac_cs_silent; then
 
22405
  exec 6>/dev/null
 
22406
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22407
fi
 
22408
 
 
22409
_ACEOF
 
22410
cat >>$CONFIG_STATUS <<_ACEOF
 
22411
if \$ac_cs_recheck; then
 
22412
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
22413
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22414
fi
 
22415
 
 
22416
_ACEOF
 
22417
 
 
22418
cat >>$CONFIG_STATUS <<_ACEOF
 
22419
#
 
22420
# INIT-COMMANDS section.
 
22421
#
 
22422
 
 
22423
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
22424
 
 
22425
_ACEOF
 
22426
 
 
22427
 
 
22428
 
 
22429
cat >>$CONFIG_STATUS <<\_ACEOF
 
22430
for ac_config_target in $ac_config_targets
 
22431
do
 
22432
  case "$ac_config_target" in
 
22433
  # Handling of arguments.
 
22434
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22435
  "src/Judy1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Judy1/Makefile" ;;
 
22436
  "src/JudyCommon/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyCommon/Makefile" ;;
 
22437
  "src/JudyHS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyHS/Makefile" ;;
 
22438
  "src/JudyL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudyL/Makefile" ;;
 
22439
  "src/JudySL/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/JudySL/Makefile" ;;
 
22440
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
22441
  "src/obj/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/obj/Makefile" ;;
 
22442
  "tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES tool/Makefile" ;;
 
22443
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
22444
  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
22445
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
22446
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
22447
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
22448
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
22449
   { (exit 1); exit 1; }; };;
 
22450
  esac
 
22451
done
 
22452
 
 
22453
# If the user did not use the arguments to specify the items to instantiate,
 
22454
# then the envvar interface is used.  Set only those that are not.
 
22455
# We use the long form for the default assignment because of an extremely
 
22456
# bizarre bug on SunOS 4.1.3.
 
22457
if $ac_need_defaults; then
 
22458
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
22459
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
22460
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
22461
fi
 
22462
 
 
22463
# Have a temporary directory for convenience.  Make it in the build tree
 
22464
# simply because there is no reason to put it here, and in addition,
 
22465
# creating and moving files from /tmp can sometimes cause problems.
 
22466
# Create a temporary directory, and hook for its removal unless debugging.
 
22467
$debug ||
 
22468
{
 
22469
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
22470
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
22471
}
 
22472
 
 
22473
# Create a (secure) tmp directory for tmp files.
 
22474
 
 
22475
{
 
22476
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
22477
  test -n "$tmp" && test -d "$tmp"
 
22478
}  ||
 
22479
{
 
22480
  tmp=./confstat$$-$RANDOM
 
22481
  (umask 077 && mkdir $tmp)
 
22482
} ||
 
22483
{
 
22484
   echo "$me: cannot create a temporary directory in ." >&2
 
22485
   { (exit 1); exit 1; }
 
22486
}
 
22487
 
 
22488
_ACEOF
 
22489
 
 
22490
cat >>$CONFIG_STATUS <<_ACEOF
 
22491
 
 
22492
#
 
22493
# CONFIG_FILES section.
 
22494
#
 
22495
 
 
22496
# No need to generate the scripts if there are no CONFIG_FILES.
 
22497
# This happens for instance when ./config.status config.h
 
22498
if test -n "\$CONFIG_FILES"; then
 
22499
  # Protect against being on the right side of a sed subst in config.status.
 
22500
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
22501
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
22502
s,@SHELL@,$SHELL,;t t
 
22503
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
22504
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
22505
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
22506
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
22507
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
22508
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
22509
s,@exec_prefix@,$exec_prefix,;t t
 
22510
s,@prefix@,$prefix,;t t
 
22511
s,@program_transform_name@,$program_transform_name,;t t
 
22512
s,@bindir@,$bindir,;t t
 
22513
s,@sbindir@,$sbindir,;t t
 
22514
s,@libexecdir@,$libexecdir,;t t
 
22515
s,@datadir@,$datadir,;t t
 
22516
s,@sysconfdir@,$sysconfdir,;t t
 
22517
s,@sharedstatedir@,$sharedstatedir,;t t
 
22518
s,@localstatedir@,$localstatedir,;t t
 
22519
s,@libdir@,$libdir,;t t
 
22520
s,@includedir@,$includedir,;t t
 
22521
s,@oldincludedir@,$oldincludedir,;t t
 
22522
s,@infodir@,$infodir,;t t
 
22523
s,@mandir@,$mandir,;t t
 
22524
s,@build_alias@,$build_alias,;t t
 
22525
s,@host_alias@,$host_alias,;t t
 
22526
s,@target_alias@,$target_alias,;t t
 
22527
s,@DEFS@,$DEFS,;t t
 
22528
s,@ECHO_C@,$ECHO_C,;t t
 
22529
s,@ECHO_N@,$ECHO_N,;t t
 
22530
s,@ECHO_T@,$ECHO_T,;t t
 
22531
s,@LIBS@,$LIBS,;t t
 
22532
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
22533
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
22534
s,@MAINT@,$MAINT,;t t
 
22535
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
22536
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
22537
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
22538
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
22539
s,@PACKAGE@,$PACKAGE,;t t
 
22540
s,@VERSION@,$VERSION,;t t
 
22541
s,@ACLOCAL@,$ACLOCAL,;t t
 
22542
s,@AUTOCONF@,$AUTOCONF,;t t
 
22543
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
22544
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
22545
s,@MAKEINFO@,$MAKEINFO,;t t
 
22546
s,@install_sh@,$install_sh,;t t
 
22547
s,@STRIP@,$STRIP,;t t
 
22548
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
22549
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
22550
s,@mkdir_p@,$mkdir_p,;t t
 
22551
s,@AWK@,$AWK,;t t
 
22552
s,@SET_MAKE@,$SET_MAKE,;t t
 
22553
s,@am__leading_dot@,$am__leading_dot,;t t
 
22554
s,@AMTAR@,$AMTAR,;t t
 
22555
s,@am__tar@,$am__tar,;t t
 
22556
s,@am__untar@,$am__untar,;t t
 
22557
s,@VERSION_INFO@,$VERSION_INFO,;t t
 
22558
s,@FLAVOR@,$FLAVOR,;t t
 
22559
s,@CC@,$CC,;t t
 
22560
s,@CFLAGS@,$CFLAGS,;t t
 
22561
s,@LDFLAGS@,$LDFLAGS,;t t
 
22562
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
22563
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
22564
s,@EXEEXT@,$EXEEXT,;t t
 
22565
s,@OBJEXT@,$OBJEXT,;t t
 
22566
s,@DEPDIR@,$DEPDIR,;t t
 
22567
s,@am__include@,$am__include,;t t
 
22568
s,@am__quote@,$am__quote,;t t
 
22569
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
22570
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
22571
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
22572
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
22573
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
22574
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
22575
s,@CPP@,$CPP,;t t
 
22576
s,@LN_S@,$LN_S,;t t
 
22577
s,@EGREP@,$EGREP,;t t
 
22578
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
 
22579
s,@AR@,$AR,;t t
 
22580
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
22581
s,@LD@,$LD,;t t
 
22582
s,@ac_ct_LD@,$ac_ct_LD,;t t
 
22583
s,@RANLIB@,$RANLIB,;t t
 
22584
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
22585
s,@build@,$build,;t t
 
22586
s,@build_cpu@,$build_cpu,;t t
 
22587
s,@build_vendor@,$build_vendor,;t t
 
22588
s,@build_os@,$build_os,;t t
 
22589
s,@host@,$host,;t t
 
22590
s,@host_cpu@,$host_cpu,;t t
 
22591
s,@host_vendor@,$host_vendor,;t t
 
22592
s,@host_os@,$host_os,;t t
 
22593
s,@ECHO@,$ECHO,;t t
 
22594
s,@CXX@,$CXX,;t t
 
22595
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
22596
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
22597
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
22598
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
22599
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
22600
s,@CXXCPP@,$CXXCPP,;t t
 
22601
s,@F77@,$F77,;t t
 
22602
s,@FFLAGS@,$FFLAGS,;t t
 
22603
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
22604
s,@LIBTOOL@,$LIBTOOL,;t t
 
22605
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
 
22606
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
22607
CEOF
 
22608
 
 
22609
_ACEOF
 
22610
 
 
22611
  cat >>$CONFIG_STATUS <<\_ACEOF
 
22612
  # Split the substitutions into bite-sized pieces for seds with
 
22613
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
22614
  ac_max_sed_lines=48
 
22615
  ac_sed_frag=1 # Number of current file.
 
22616
  ac_beg=1 # First line for current file.
 
22617
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
22618
  ac_more_lines=:
 
22619
  ac_sed_cmds=
 
22620
  while $ac_more_lines; do
 
22621
    if test $ac_beg -gt 1; then
 
22622
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
22623
    else
 
22624
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
22625
    fi
 
22626
    if test ! -s $tmp/subs.frag; then
 
22627
      ac_more_lines=false
 
22628
    else
 
22629
      # The purpose of the label and of the branching condition is to
 
22630
      # speed up the sed processing (if there are no `@' at all, there
 
22631
      # is no need to browse any of the substitutions).
 
22632
      # These are the two extra sed commands mentioned above.
 
22633
      (echo ':t
 
22634
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
22635
      if test -z "$ac_sed_cmds"; then
 
22636
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
22637
      else
 
22638
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
22639
      fi
 
22640
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
22641
      ac_beg=$ac_end
 
22642
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
22643
    fi
 
22644
  done
 
22645
  if test -z "$ac_sed_cmds"; then
 
22646
    ac_sed_cmds=cat
 
22647
  fi
 
22648
fi # test -n "$CONFIG_FILES"
 
22649
 
 
22650
_ACEOF
 
22651
cat >>$CONFIG_STATUS <<\_ACEOF
 
22652
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
22653
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22654
  case $ac_file in
 
22655
  - | *:- | *:-:* ) # input from stdin
 
22656
        cat >$tmp/stdin
 
22657
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22658
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22659
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22660
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22661
  * )   ac_file_in=$ac_file.in ;;
 
22662
  esac
 
22663
 
 
22664
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
22665
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
22666
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22667
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22668
         X"$ac_file" : 'X\(//\)$' \| \
 
22669
         X"$ac_file" : 'X\(/\)' \| \
 
22670
         .     : '\(.\)' 2>/dev/null ||
 
22671
echo X"$ac_file" |
 
22672
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22673
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22674
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22675
          /^X\(\/\).*/{ s//\1/; q; }
 
22676
          s/.*/./; q'`
 
22677
  { if $as_mkdir_p; then
 
22678
    mkdir -p "$ac_dir"
 
22679
  else
 
22680
    as_dir="$ac_dir"
 
22681
    as_dirs=
 
22682
    while test ! -d "$as_dir"; do
 
22683
      as_dirs="$as_dir $as_dirs"
 
22684
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22685
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22686
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22687
         X"$as_dir" : 'X\(//\)$' \| \
 
22688
         X"$as_dir" : 'X\(/\)' \| \
 
22689
         .     : '\(.\)' 2>/dev/null ||
 
22690
echo X"$as_dir" |
 
22691
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22692
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22693
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22694
          /^X\(\/\).*/{ s//\1/; q; }
 
22695
          s/.*/./; q'`
 
22696
    done
 
22697
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22698
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22699
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22700
   { (exit 1); exit 1; }; }; }
 
22701
 
 
22702
  ac_builddir=.
 
22703
 
 
22704
if test "$ac_dir" != .; then
 
22705
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
22706
  # A "../" for each directory in $ac_dir_suffix.
 
22707
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22708
else
 
22709
  ac_dir_suffix= ac_top_builddir=
 
22710
fi
 
22711
 
 
22712
case $srcdir in
 
22713
  .)  # No --srcdir option.  We are building in place.
 
22714
    ac_srcdir=.
 
22715
    if test -z "$ac_top_builddir"; then
 
22716
       ac_top_srcdir=.
 
22717
    else
 
22718
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22719
    fi ;;
 
22720
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22721
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22722
    ac_top_srcdir=$srcdir ;;
 
22723
  *) # Relative path.
 
22724
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22725
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22726
esac
 
22727
 
 
22728
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22729
# the directories may not exist.
 
22730
case `pwd` in
 
22731
.) ac_abs_builddir="$ac_dir";;
 
22732
*)
 
22733
  case "$ac_dir" in
 
22734
  .) ac_abs_builddir=`pwd`;;
 
22735
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22736
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22737
  esac;;
 
22738
esac
 
22739
case $ac_abs_builddir in
 
22740
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22741
*)
 
22742
  case ${ac_top_builddir}. in
 
22743
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22744
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22745
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22746
  esac;;
 
22747
esac
 
22748
case $ac_abs_builddir in
 
22749
.) ac_abs_srcdir=$ac_srcdir;;
 
22750
*)
 
22751
  case $ac_srcdir in
 
22752
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22753
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22754
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22755
  esac;;
 
22756
esac
 
22757
case $ac_abs_builddir in
 
22758
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22759
*)
 
22760
  case $ac_top_srcdir in
 
22761
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22762
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22763
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22764
  esac;;
 
22765
esac
 
22766
 
 
22767
 
 
22768
  case $INSTALL in
 
22769
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
22770
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
22771
  esac
 
22772
 
 
22773
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22774
  # use $as_me), people would be surprised to read:
 
22775
  #    /* config.h.  Generated by config.status.  */
 
22776
  if test x"$ac_file" = x-; then
 
22777
    configure_input=
 
22778
  else
 
22779
    configure_input="$ac_file.  "
 
22780
  fi
 
22781
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
22782
                                     sed 's,.*/,,'` by configure."
 
22783
 
 
22784
  # First look for the input files in the build tree, otherwise in the
 
22785
  # src tree.
 
22786
  ac_file_inputs=`IFS=:
 
22787
    for f in $ac_file_in; do
 
22788
      case $f in
 
22789
      -) echo $tmp/stdin ;;
 
22790
      [\\/$]*)
 
22791
         # Absolute (can't be DOS-style, as IFS=:)
 
22792
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22793
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22794
   { (exit 1); exit 1; }; }
 
22795
         echo "$f";;
 
22796
      *) # Relative
 
22797
         if test -f "$f"; then
 
22798
           # Build tree
 
22799
           echo "$f"
 
22800
         elif test -f "$srcdir/$f"; then
 
22801
           # Source tree
 
22802
           echo "$srcdir/$f"
 
22803
         else
 
22804
           # /dev/null tree
 
22805
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22806
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22807
   { (exit 1); exit 1; }; }
 
22808
         fi;;
 
22809
      esac
 
22810
    done` || { (exit 1); exit 1; }
 
22811
 
 
22812
  if test x"$ac_file" != x-; then
 
22813
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22814
echo "$as_me: creating $ac_file" >&6;}
 
22815
    rm -f "$ac_file"
 
22816
  fi
 
22817
_ACEOF
 
22818
cat >>$CONFIG_STATUS <<_ACEOF
 
22819
  sed "$ac_vpsub
 
22820
$extrasub
 
22821
_ACEOF
 
22822
cat >>$CONFIG_STATUS <<\_ACEOF
 
22823
:t
 
22824
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22825
s,@configure_input@,$configure_input,;t t
 
22826
s,@srcdir@,$ac_srcdir,;t t
 
22827
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
22828
s,@top_srcdir@,$ac_top_srcdir,;t t
 
22829
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
22830
s,@builddir@,$ac_builddir,;t t
 
22831
s,@abs_builddir@,$ac_abs_builddir,;t t
 
22832
s,@top_builddir@,$ac_top_builddir,;t t
 
22833
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
22834
s,@INSTALL@,$ac_INSTALL,;t t
 
22835
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
22836
  rm -f $tmp/stdin
 
22837
  if test x"$ac_file" != x-; then
 
22838
    mv $tmp/out $ac_file
 
22839
  else
 
22840
    cat $tmp/out
 
22841
    rm -f $tmp/out
 
22842
  fi
 
22843
 
 
22844
done
 
22845
_ACEOF
 
22846
cat >>$CONFIG_STATUS <<\_ACEOF
 
22847
 
 
22848
#
 
22849
# CONFIG_HEADER section.
 
22850
#
 
22851
 
 
22852
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
22853
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
22854
#
 
22855
# ac_d sets the value in "#define NAME VALUE" lines.
 
22856
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
22857
ac_dB='[         ].*$,\1#\2'
 
22858
ac_dC=' '
 
22859
ac_dD=',;t'
 
22860
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
22861
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
22862
ac_uB='$,\1#\2define\3'
 
22863
ac_uC=' '
 
22864
ac_uD=',;t'
 
22865
 
 
22866
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
22867
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22868
  case $ac_file in
 
22869
  - | *:- | *:-:* ) # input from stdin
 
22870
        cat >$tmp/stdin
 
22871
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22872
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22873
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22874
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22875
  * )   ac_file_in=$ac_file.in ;;
 
22876
  esac
 
22877
 
 
22878
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22879
echo "$as_me: creating $ac_file" >&6;}
 
22880
 
 
22881
  # First look for the input files in the build tree, otherwise in the
 
22882
  # src tree.
 
22883
  ac_file_inputs=`IFS=:
 
22884
    for f in $ac_file_in; do
 
22885
      case $f in
 
22886
      -) echo $tmp/stdin ;;
 
22887
      [\\/$]*)
 
22888
         # Absolute (can't be DOS-style, as IFS=:)
 
22889
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22890
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22891
   { (exit 1); exit 1; }; }
 
22892
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
22893
         echo "$f";;
 
22894
      *) # Relative
 
22895
         if test -f "$f"; then
 
22896
           # Build tree
 
22897
           echo "$f"
 
22898
         elif test -f "$srcdir/$f"; then
 
22899
           # Source tree
 
22900
           echo "$srcdir/$f"
 
22901
         else
 
22902
           # /dev/null tree
 
22903
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22904
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22905
   { (exit 1); exit 1; }; }
 
22906
         fi;;
 
22907
      esac
 
22908
    done` || { (exit 1); exit 1; }
 
22909
  # Remove the trailing spaces.
 
22910
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
22911
 
 
22912
_ACEOF
 
22913
 
 
22914
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
22915
# `conftest.undefs', that substitutes the proper values into
 
22916
# config.h.in to produce config.h.  The first handles `#define'
 
22917
# templates, and the second `#undef' templates.
 
22918
# And first: Protect against being on the right side of a sed subst in
 
22919
# config.status.  Protect against being in an unquoted here document
 
22920
# in config.status.
 
22921
rm -f conftest.defines conftest.undefs
 
22922
# Using a here document instead of a string reduces the quoting nightmare.
 
22923
# Putting comments in sed scripts is not portable.
 
22924
#
 
22925
# `end' is used to avoid that the second main sed command (meant for
 
22926
# 0-ary CPP macros) applies to n-ary macro definitions.
 
22927
# See the Autoconf documentation for `clear'.
 
22928
cat >confdef2sed.sed <<\_ACEOF
 
22929
s/[\\&,]/\\&/g
 
22930
s,[\\$`],\\&,g
 
22931
t clear
 
22932
: clear
 
22933
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
22934
t end
 
22935
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
22936
: end
 
22937
_ACEOF
 
22938
# If some macros were called several times there might be several times
 
22939
# the same #defines, which is useless.  Nevertheless, we may not want to
 
22940
# sort them, since we want the *last* AC-DEFINE to be honored.
 
22941
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
22942
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
22943
rm -f confdef2sed.sed
 
22944
 
 
22945
# This sed command replaces #undef with comments.  This is necessary, for
 
22946
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
22947
# on some systems where configure will not decide to define it.
 
22948
cat >>conftest.undefs <<\_ACEOF
 
22949
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
22950
_ACEOF
 
22951
 
 
22952
# Break up conftest.defines because some shells have a limit on the size
 
22953
# of here documents, and old seds have small limits too (100 cmds).
 
22954
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
22955
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
22956
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
22957
echo '  :' >>$CONFIG_STATUS
 
22958
rm -f conftest.tail
 
22959
while grep . conftest.defines >/dev/null
 
22960
do
 
22961
  # Write a limited-size here document to $tmp/defines.sed.
 
22962
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
22963
  # Speed up: don't consider the non `#define' lines.
 
22964
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
22965
  # Work around the forget-to-reset-the-flag bug.
 
22966
  echo 't clr' >>$CONFIG_STATUS
 
22967
  echo ': clr' >>$CONFIG_STATUS
 
22968
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
22969
  echo 'CEOF
 
22970
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
22971
  rm -f $tmp/in
 
22972
  mv $tmp/out $tmp/in
 
22973
' >>$CONFIG_STATUS
 
22974
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
22975
  rm -f conftest.defines
 
22976
  mv conftest.tail conftest.defines
 
22977
done
 
22978
rm -f conftest.defines
 
22979
echo '  fi # grep' >>$CONFIG_STATUS
 
22980
echo >>$CONFIG_STATUS
 
22981
 
 
22982
# Break up conftest.undefs because some shells have a limit on the size
 
22983
# of here documents, and old seds have small limits too (100 cmds).
 
22984
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
22985
rm -f conftest.tail
 
22986
while grep . conftest.undefs >/dev/null
 
22987
do
 
22988
  # Write a limited-size here document to $tmp/undefs.sed.
 
22989
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
22990
  # Speed up: don't consider the non `#undef'
 
22991
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
22992
  # Work around the forget-to-reset-the-flag bug.
 
22993
  echo 't clr' >>$CONFIG_STATUS
 
22994
  echo ': clr' >>$CONFIG_STATUS
 
22995
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
22996
  echo 'CEOF
 
22997
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
22998
  rm -f $tmp/in
 
22999
  mv $tmp/out $tmp/in
 
23000
' >>$CONFIG_STATUS
 
23001
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
23002
  rm -f conftest.undefs
 
23003
  mv conftest.tail conftest.undefs
 
23004
done
 
23005
rm -f conftest.undefs
 
23006
 
 
23007
cat >>$CONFIG_STATUS <<\_ACEOF
 
23008
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23009
  # use $as_me), people would be surprised to read:
 
23010
  #    /* config.h.  Generated by config.status.  */
 
23011
  if test x"$ac_file" = x-; then
 
23012
    echo "/* Generated by configure.  */" >$tmp/config.h
 
23013
  else
 
23014
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
23015
  fi
 
23016
  cat $tmp/in >>$tmp/config.h
 
23017
  rm -f $tmp/in
 
23018
  if test x"$ac_file" != x-; then
 
23019
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
23020
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
23021
echo "$as_me: $ac_file is unchanged" >&6;}
 
23022
    else
 
23023
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23024
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23025
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23026
         X"$ac_file" : 'X\(//\)$' \| \
 
23027
         X"$ac_file" : 'X\(/\)' \| \
 
23028
         .     : '\(.\)' 2>/dev/null ||
 
23029
echo X"$ac_file" |
 
23030
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23031
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23032
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23033
          /^X\(\/\).*/{ s//\1/; q; }
 
23034
          s/.*/./; q'`
 
23035
      { if $as_mkdir_p; then
 
23036
    mkdir -p "$ac_dir"
 
23037
  else
 
23038
    as_dir="$ac_dir"
 
23039
    as_dirs=
 
23040
    while test ! -d "$as_dir"; do
 
23041
      as_dirs="$as_dir $as_dirs"
 
23042
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23043
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23044
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23045
         X"$as_dir" : 'X\(//\)$' \| \
 
23046
         X"$as_dir" : 'X\(/\)' \| \
 
23047
         .     : '\(.\)' 2>/dev/null ||
 
23048
echo X"$as_dir" |
 
23049
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23050
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23051
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23052
          /^X\(\/\).*/{ s//\1/; q; }
 
23053
          s/.*/./; q'`
 
23054
    done
 
23055
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23056
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23057
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23058
   { (exit 1); exit 1; }; }; }
 
23059
 
 
23060
      rm -f $ac_file
 
23061
      mv $tmp/config.h $ac_file
 
23062
    fi
 
23063
  else
 
23064
    cat $tmp/config.h
 
23065
    rm -f $tmp/config.h
 
23066
  fi
 
23067
# Compute $ac_file's index in $config_headers.
 
23068
_am_stamp_count=1
 
23069
for _am_header in $config_headers :; do
 
23070
  case $_am_header in
 
23071
    $ac_file | $ac_file:* )
 
23072
      break ;;
 
23073
    * )
 
23074
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
23075
  esac
 
23076
done
 
23077
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
23078
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23079
         X$ac_file : 'X\(//\)[^/]' \| \
 
23080
         X$ac_file : 'X\(//\)$' \| \
 
23081
         X$ac_file : 'X\(/\)' \| \
 
23082
         .     : '\(.\)' 2>/dev/null ||
 
23083
echo X$ac_file |
 
23084
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23085
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23086
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23087
          /^X\(\/\).*/{ s//\1/; q; }
 
23088
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23089
done
 
23090
_ACEOF
 
23091
cat >>$CONFIG_STATUS <<\_ACEOF
 
23092
 
 
23093
#
 
23094
# CONFIG_COMMANDS section.
 
23095
#
 
23096
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
23097
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
23098
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23099
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
23100
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23101
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
23102
         X"$ac_dest" : 'X\(//\)$' \| \
 
23103
         X"$ac_dest" : 'X\(/\)' \| \
 
23104
         .     : '\(.\)' 2>/dev/null ||
 
23105
echo X"$ac_dest" |
 
23106
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23107
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23108
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23109
          /^X\(\/\).*/{ s//\1/; q; }
 
23110
          s/.*/./; q'`
 
23111
  { if $as_mkdir_p; then
 
23112
    mkdir -p "$ac_dir"
 
23113
  else
 
23114
    as_dir="$ac_dir"
 
23115
    as_dirs=
 
23116
    while test ! -d "$as_dir"; do
 
23117
      as_dirs="$as_dir $as_dirs"
 
23118
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23119
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23120
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23121
         X"$as_dir" : 'X\(//\)$' \| \
 
23122
         X"$as_dir" : 'X\(/\)' \| \
 
23123
         .     : '\(.\)' 2>/dev/null ||
 
23124
echo X"$as_dir" |
 
23125
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23126
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23127
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23128
          /^X\(\/\).*/{ s//\1/; q; }
 
23129
          s/.*/./; q'`
 
23130
    done
 
23131
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23132
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23133
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23134
   { (exit 1); exit 1; }; }; }
 
23135
 
 
23136
  ac_builddir=.
 
23137
 
 
23138
if test "$ac_dir" != .; then
 
23139
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23140
  # A "../" for each directory in $ac_dir_suffix.
 
23141
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23142
else
 
23143
  ac_dir_suffix= ac_top_builddir=
 
23144
fi
 
23145
 
 
23146
case $srcdir in
 
23147
  .)  # No --srcdir option.  We are building in place.
 
23148
    ac_srcdir=.
 
23149
    if test -z "$ac_top_builddir"; then
 
23150
       ac_top_srcdir=.
 
23151
    else
 
23152
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23153
    fi ;;
 
23154
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23155
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23156
    ac_top_srcdir=$srcdir ;;
 
23157
  *) # Relative path.
 
23158
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23159
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23160
esac
 
23161
 
 
23162
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23163
# the directories may not exist.
 
23164
case `pwd` in
 
23165
.) ac_abs_builddir="$ac_dir";;
 
23166
*)
 
23167
  case "$ac_dir" in
 
23168
  .) ac_abs_builddir=`pwd`;;
 
23169
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23170
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23171
  esac;;
 
23172
esac
 
23173
case $ac_abs_builddir in
 
23174
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23175
*)
 
23176
  case ${ac_top_builddir}. in
 
23177
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23178
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23179
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23180
  esac;;
 
23181
esac
 
23182
case $ac_abs_builddir in
 
23183
.) ac_abs_srcdir=$ac_srcdir;;
 
23184
*)
 
23185
  case $ac_srcdir in
 
23186
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23187
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23188
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23189
  esac;;
 
23190
esac
 
23191
case $ac_abs_builddir in
 
23192
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23193
*)
 
23194
  case $ac_top_srcdir in
 
23195
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23196
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23197
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23198
  esac;;
 
23199
esac
 
23200
 
 
23201
 
 
23202
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
23203
echo "$as_me: executing $ac_dest commands" >&6;}
 
23204
  case $ac_dest in
 
23205
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
23206
  # Strip MF so we end up with the name of the file.
 
23207
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23208
  # Check whether this is an Automake generated Makefile or not.
 
23209
  # We used to match only the files named `Makefile.in', but
 
23210
  # some people rename them; so instead we look at the file content.
 
23211
  # Grep'ing the first line is not enough: some people post-process
 
23212
  # each Makefile.in and add a new line on top of each file to say so.
 
23213
  # So let's grep whole file.
 
23214
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
23215
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
23216
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23217
         X"$mf" : 'X\(//\)[^/]' \| \
 
23218
         X"$mf" : 'X\(//\)$' \| \
 
23219
         X"$mf" : 'X\(/\)' \| \
 
23220
         .     : '\(.\)' 2>/dev/null ||
 
23221
echo X"$mf" |
 
23222
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23223
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23224
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23225
          /^X\(\/\).*/{ s//\1/; q; }
 
23226
          s/.*/./; q'`
 
23227
  else
 
23228
    continue
 
23229
  fi
 
23230
  # Extract the definition of DEPDIR, am__include, and am__quote
 
23231
  # from the Makefile without running `make'.
 
23232
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23233
  test -z "$DEPDIR" && continue
 
23234
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23235
  test -z "am__include" && continue
 
23236
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23237
  # When using ansi2knr, U may be empty or an underscore; expand it
 
23238
  U=`sed -n 's/^U = //p' < "$mf"`
 
23239
  # Find all dependency output files, they are included files with
 
23240
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23241
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
23242
  # expansion.
 
23243
  for file in `sed -n "
 
23244
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23245
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23246
    # Make sure the directory exists.
 
23247
    test -f "$dirpart/$file" && continue
 
23248
    fdir=`(dirname "$file") 2>/dev/null ||
 
23249
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23250
         X"$file" : 'X\(//\)[^/]' \| \
 
23251
         X"$file" : 'X\(//\)$' \| \
 
23252
         X"$file" : 'X\(/\)' \| \
 
23253
         .     : '\(.\)' 2>/dev/null ||
 
23254
echo X"$file" |
 
23255
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23256
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23257
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23258
          /^X\(\/\).*/{ s//\1/; q; }
 
23259
          s/.*/./; q'`
 
23260
    { if $as_mkdir_p; then
 
23261
    mkdir -p $dirpart/$fdir
 
23262
  else
 
23263
    as_dir=$dirpart/$fdir
 
23264
    as_dirs=
 
23265
    while test ! -d "$as_dir"; do
 
23266
      as_dirs="$as_dir $as_dirs"
 
23267
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23268
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23269
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23270
         X"$as_dir" : 'X\(//\)$' \| \
 
23271
         X"$as_dir" : 'X\(/\)' \| \
 
23272
         .     : '\(.\)' 2>/dev/null ||
 
23273
echo X"$as_dir" |
 
23274
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23275
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23276
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23277
          /^X\(\/\).*/{ s//\1/; q; }
 
23278
          s/.*/./; q'`
 
23279
    done
 
23280
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23281
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
23282
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
23283
   { (exit 1); exit 1; }; }; }
 
23284
 
 
23285
    # echo "creating $dirpart/$file"
 
23286
    echo '# dummy' > "$dirpart/$file"
 
23287
  done
 
23288
done
 
23289
 ;;
 
23290
  esac
 
23291
done
 
23292
_ACEOF
 
23293
 
 
23294
cat >>$CONFIG_STATUS <<\_ACEOF
 
23295
 
 
23296
{ (exit 0); exit 0; }
 
23297
_ACEOF
 
23298
chmod +x $CONFIG_STATUS
 
23299
ac_clean_files=$ac_clean_files_save
 
23300
 
 
23301
 
 
23302
# configure is writing to config.log, and then calls config.status.
 
23303
# config.status does its own redirection, appending to config.log.
 
23304
# Unfortunately, on DOS this fails, as config.log is still kept open
 
23305
# by configure, so config.status won't be able to write to it; its
 
23306
# output is simply discarded.  So we exec the FD to /dev/null,
 
23307
# effectively closing config.log, so it can be properly (re)opened and
 
23308
# appended to by config.status.  When coming back to configure, we
 
23309
# need to make the FD available again.
 
23310
if test "$no_create" != yes; then
 
23311
  ac_cs_success=:
 
23312
  ac_config_status_args=
 
23313
  test "$silent" = yes &&
 
23314
    ac_config_status_args="$ac_config_status_args --quiet"
 
23315
  exec 5>/dev/null
 
23316
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
23317
  exec 5>>config.log
 
23318
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
23319
  # would make configure fail if this is the last instruction.
 
23320
  $ac_cs_success || { (exit 1); exit 1; }
 
23321
fi
 
23322