~cjwatson/ubiquity/new-partitioner

« back to all changes in this revision

Viewing changes to configure

  • Committer: Colin Watson
  • Date: 2006-02-22 15:22:10 UTC
  • mto: This revision was merged to the branch mainline in revision 783.
  • Revision ID: colin.watson@canonical.com-20060222152210-79c487063e89beba
* Add e-map widget, cut-and-pasted from evolution via gnome-system-tools
  (ugh).
* Basic autoconfiscation for the above.

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 espresso 0.99.16.
 
4
#
 
5
# Report bugs to <https://launchpad.net/distros/ubuntu/+source/espresso/+filebug>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
 
 
247
# Check that we are running under the correct shell.
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
 
 
250
case X$ECHO in
 
251
X*--fallback-echo)
 
252
  # Remove one level of quotation (which was required for Make).
 
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
254
  ;;
 
255
esac
 
256
 
 
257
echo=${ECHO-echo}
 
258
if test "X$1" = X--no-reexec; then
 
259
  # Discard the --no-reexec flag, and continue.
 
260
  shift
 
261
elif test "X$1" = X--fallback-echo; then
 
262
  # Avoid inline document here, it may be left over
 
263
  :
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $echo works!
 
266
  :
 
267
else
 
268
  # Restart under the correct shell.
 
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
270
fi
 
271
 
 
272
if test "X$1" = X--fallback-echo; then
 
273
  # used as fallback echo
 
274
  shift
 
275
  cat <<EOF
 
276
$*
 
277
EOF
 
278
  exit 0
 
279
fi
 
280
 
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
282
# if CDPATH is set.
 
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
284
 
 
285
if test -z "$ECHO"; then
 
286
if test "X${echo_test_string+set}" != Xset; then
 
287
# find a string as large as possible, as long as the shell can cope with it
 
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
290
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
291
       echo_test_string=`eval $cmd` &&
 
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
293
    then
 
294
      break
 
295
    fi
 
296
  done
 
297
fi
 
298
 
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
302
  :
 
303
else
 
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
305
  # backslashes.  This makes it impossible to quote backslashes using
 
306
  #   echo "$something" | sed 's/\\/\\\\/g'
 
307
  #
 
308
  # So, first we look for a working echo in the user's PATH.
 
309
 
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
 
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
317
      echo="$dir/echo"
 
318
      break
 
319
    fi
 
320
  done
 
321
  IFS="$lt_save_ifs"
 
322
 
 
323
  if test "X$echo" = Xecho; then
 
324
    # We didn't find a better echo, so look for alternatives.
 
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      # This shell has a builtin print -r that does the trick.
 
329
      echo='print -r'
 
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
332
      # If we have ksh, try running configure again with it.
 
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
334
      export ORIGINAL_CONFIG_SHELL
 
335
      CONFIG_SHELL=/bin/ksh
 
336
      export CONFIG_SHELL
 
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
338
    else
 
339
      # Try using printf.
 
340
      echo='printf %s\n'
 
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
344
        # Cool, printf works
 
345
        :
 
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = 'X\t' &&
 
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
351
        export CONFIG_SHELL
 
352
        SHELL="$CONFIG_SHELL"
 
353
        export SHELL
 
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
360
      else
 
361
        # maybe with a smaller string...
 
362
        prev=:
 
363
 
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
366
          then
 
367
            break
 
368
          fi
 
369
          prev="$cmd"
 
370
        done
 
371
 
 
372
        if test "$prev" != 'sed 50q "$0"'; then
 
373
          echo_test_string=`eval $prev`
 
374
          export echo_test_string
 
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
376
        else
 
377
          # Oops.  We lost completely, so just stick with echo.
 
378
          echo=echo
 
379
        fi
 
380
      fi
 
381
    fi
 
382
  fi
 
383
fi
 
384
fi
 
385
 
 
386
# Copy echo and quote the copy suitably for passing to libtool from
 
387
# the Makefile, instead of quoting the original, which is used later.
 
388
ECHO=$echo
 
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
391
fi
 
392
 
 
393
 
 
394
 
 
395
 
 
396
tagnames=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
 
400
# Name of the host.
 
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
402
# so uname gets run too.
 
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
404
 
 
405
exec 6>&1
 
406
 
 
407
#
 
408
# Initializations.
 
409
#
 
410
ac_default_prefix=/usr/local
 
411
ac_config_libobj_dir=.
 
412
cross_compiling=no
 
413
subdirs=
 
414
MFLAGS=
 
415
MAKEFLAGS=
 
416
SHELL=${CONFIG_SHELL-/bin/sh}
 
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
 
423
# Identity of this package.
 
424
PACKAGE_NAME='espresso'
 
425
PACKAGE_TARNAME='espresso'
 
426
PACKAGE_VERSION='0.99.16'
 
427
PACKAGE_STRING='espresso 0.99.16'
 
428
PACKAGE_BUGREPORT='https://launchpad.net/distros/ubuntu/+source/espresso/+filebug'
 
429
 
 
430
ac_unique_file="src/cut-and-paste/e-map/e-map.c"
 
431
# Factoring default headers for most tests.
 
432
ac_includes_default="\
 
433
#include <stdio.h>
 
434
#if HAVE_SYS_TYPES_H
 
435
# include <sys/types.h>
 
436
#endif
 
437
#if HAVE_SYS_STAT_H
 
438
# include <sys/stat.h>
 
439
#endif
 
440
#if STDC_HEADERS
 
441
# include <stdlib.h>
 
442
# include <stddef.h>
 
443
#else
 
444
# if HAVE_STDLIB_H
 
445
#  include <stdlib.h>
 
446
# endif
 
447
#endif
 
448
#if HAVE_STRING_H
 
449
# if !STDC_HEADERS && HAVE_MEMORY_H
 
450
#  include <memory.h>
 
451
# endif
 
452
# include <string.h>
 
453
#endif
 
454
#if HAVE_STRINGS_H
 
455
# include <strings.h>
 
456
#endif
 
457
#if HAVE_INTTYPES_H
 
458
# include <inttypes.h>
 
459
#else
 
460
# if HAVE_STDINT_H
 
461
#  include <stdint.h>
 
462
# endif
 
463
#endif
 
464
#if HAVE_UNISTD_H
 
465
# include <unistd.h>
 
466
#endif"
 
467
 
 
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GLIB_GENMARSHAL PKG_CONFIG GTK_CFLAGS GTK_LIBS ac_pt_PKG_CONFIG ESPRESSO_DEPENDS_CFLAGS ESPRESSO_DEPENDS_LIBS scriptsdir pixmapsdir LIBOBJS LTLIBOBJS'
 
469
ac_subst_files=''
 
470
 
 
471
# Initialize some variables set by options.
 
472
ac_init_help=
 
473
ac_init_version=false
 
474
# The variables have the same names as the options, with
 
475
# dashes changed to underlines.
 
476
cache_file=/dev/null
 
477
exec_prefix=NONE
 
478
no_create=
 
479
no_recursion=
 
480
prefix=NONE
 
481
program_prefix=NONE
 
482
program_suffix=NONE
 
483
program_transform_name=s,x,x,
 
484
silent=
 
485
site=
 
486
srcdir=
 
487
verbose=
 
488
x_includes=NONE
 
489
x_libraries=NONE
 
490
 
 
491
# Installation directory options.
 
492
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
493
# and all the variables that are supposed to be based on exec_prefix
 
494
# by default will actually change.
 
495
# Use braces instead of parens because sh, perl, etc. also accept them.
 
496
bindir='${exec_prefix}/bin'
 
497
sbindir='${exec_prefix}/sbin'
 
498
libexecdir='${exec_prefix}/libexec'
 
499
datadir='${prefix}/share'
 
500
sysconfdir='${prefix}/etc'
 
501
sharedstatedir='${prefix}/com'
 
502
localstatedir='${prefix}/var'
 
503
libdir='${exec_prefix}/lib'
 
504
includedir='${prefix}/include'
 
505
oldincludedir='/usr/include'
 
506
infodir='${prefix}/info'
 
507
mandir='${prefix}/man'
 
508
 
 
509
ac_prev=
 
510
for ac_option
 
511
do
 
512
  # If the previous option needs an argument, assign it.
 
513
  if test -n "$ac_prev"; then
 
514
    eval "$ac_prev=\$ac_option"
 
515
    ac_prev=
 
516
    continue
 
517
  fi
 
518
 
 
519
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
520
 
 
521
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
522
 
 
523
  case $ac_option in
 
524
 
 
525
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
526
    ac_prev=bindir ;;
 
527
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
528
    bindir=$ac_optarg ;;
 
529
 
 
530
  -build | --build | --buil | --bui | --bu)
 
531
    ac_prev=build_alias ;;
 
532
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
533
    build_alias=$ac_optarg ;;
 
534
 
 
535
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
536
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
537
    ac_prev=cache_file ;;
 
538
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
539
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
540
    cache_file=$ac_optarg ;;
 
541
 
 
542
  --config-cache | -C)
 
543
    cache_file=config.cache ;;
 
544
 
 
545
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
546
    ac_prev=datadir ;;
 
547
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
548
  | --da=*)
 
549
    datadir=$ac_optarg ;;
 
550
 
 
551
  -disable-* | --disable-*)
 
552
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
553
    # Reject names that are not valid shell variable names.
 
554
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
555
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
556
   { (exit 1); exit 1; }; }
 
557
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
558
    eval "enable_$ac_feature=no" ;;
 
559
 
 
560
  -enable-* | --enable-*)
 
561
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
562
    # Reject names that are not valid shell variable names.
 
563
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
564
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
565
   { (exit 1); exit 1; }; }
 
566
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
567
    case $ac_option in
 
568
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
569
      *) ac_optarg=yes ;;
 
570
    esac
 
571
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
572
 
 
573
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
574
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
575
  | --exec | --exe | --ex)
 
576
    ac_prev=exec_prefix ;;
 
577
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
578
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
579
  | --exec=* | --exe=* | --ex=*)
 
580
    exec_prefix=$ac_optarg ;;
 
581
 
 
582
  -gas | --gas | --ga | --g)
 
583
    # Obsolete; use --with-gas.
 
584
    with_gas=yes ;;
 
585
 
 
586
  -help | --help | --hel | --he | -h)
 
587
    ac_init_help=long ;;
 
588
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
589
    ac_init_help=recursive ;;
 
590
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
591
    ac_init_help=short ;;
 
592
 
 
593
  -host | --host | --hos | --ho)
 
594
    ac_prev=host_alias ;;
 
595
  -host=* | --host=* | --hos=* | --ho=*)
 
596
    host_alias=$ac_optarg ;;
 
597
 
 
598
  -includedir | --includedir | --includedi | --included | --include \
 
599
  | --includ | --inclu | --incl | --inc)
 
600
    ac_prev=includedir ;;
 
601
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
602
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
603
    includedir=$ac_optarg ;;
 
604
 
 
605
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
606
    ac_prev=infodir ;;
 
607
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
608
    infodir=$ac_optarg ;;
 
609
 
 
610
  -libdir | --libdir | --libdi | --libd)
 
611
    ac_prev=libdir ;;
 
612
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
613
    libdir=$ac_optarg ;;
 
614
 
 
615
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
616
  | --libexe | --libex | --libe)
 
617
    ac_prev=libexecdir ;;
 
618
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
619
  | --libexe=* | --libex=* | --libe=*)
 
620
    libexecdir=$ac_optarg ;;
 
621
 
 
622
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
623
  | --localstate | --localstat | --localsta | --localst \
 
624
  | --locals | --local | --loca | --loc | --lo)
 
625
    ac_prev=localstatedir ;;
 
626
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
627
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
628
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
629
    localstatedir=$ac_optarg ;;
 
630
 
 
631
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
632
    ac_prev=mandir ;;
 
633
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
634
    mandir=$ac_optarg ;;
 
635
 
 
636
  -nfp | --nfp | --nf)
 
637
    # Obsolete; use --without-fp.
 
638
    with_fp=no ;;
 
639
 
 
640
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
641
  | --no-cr | --no-c | -n)
 
642
    no_create=yes ;;
 
643
 
 
644
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
645
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
646
    no_recursion=yes ;;
 
647
 
 
648
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
649
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
650
  | --oldin | --oldi | --old | --ol | --o)
 
651
    ac_prev=oldincludedir ;;
 
652
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
653
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
654
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
655
    oldincludedir=$ac_optarg ;;
 
656
 
 
657
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
658
    ac_prev=prefix ;;
 
659
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
660
    prefix=$ac_optarg ;;
 
661
 
 
662
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
663
  | --program-pre | --program-pr | --program-p)
 
664
    ac_prev=program_prefix ;;
 
665
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
666
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
667
    program_prefix=$ac_optarg ;;
 
668
 
 
669
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
670
  | --program-suf | --program-su | --program-s)
 
671
    ac_prev=program_suffix ;;
 
672
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
673
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
674
    program_suffix=$ac_optarg ;;
 
675
 
 
676
  -program-transform-name | --program-transform-name \
 
677
  | --program-transform-nam | --program-transform-na \
 
678
  | --program-transform-n | --program-transform- \
 
679
  | --program-transform | --program-transfor \
 
680
  | --program-transfo | --program-transf \
 
681
  | --program-trans | --program-tran \
 
682
  | --progr-tra | --program-tr | --program-t)
 
683
    ac_prev=program_transform_name ;;
 
684
  -program-transform-name=* | --program-transform-name=* \
 
685
  | --program-transform-nam=* | --program-transform-na=* \
 
686
  | --program-transform-n=* | --program-transform-=* \
 
687
  | --program-transform=* | --program-transfor=* \
 
688
  | --program-transfo=* | --program-transf=* \
 
689
  | --program-trans=* | --program-tran=* \
 
690
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
691
    program_transform_name=$ac_optarg ;;
 
692
 
 
693
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
694
  | -silent | --silent | --silen | --sile | --sil)
 
695
    silent=yes ;;
 
696
 
 
697
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
698
    ac_prev=sbindir ;;
 
699
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
700
  | --sbi=* | --sb=*)
 
701
    sbindir=$ac_optarg ;;
 
702
 
 
703
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
704
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
705
  | --sharedst | --shareds | --shared | --share | --shar \
 
706
  | --sha | --sh)
 
707
    ac_prev=sharedstatedir ;;
 
708
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
709
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
710
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
711
  | --sha=* | --sh=*)
 
712
    sharedstatedir=$ac_optarg ;;
 
713
 
 
714
  -site | --site | --sit)
 
715
    ac_prev=site ;;
 
716
  -site=* | --site=* | --sit=*)
 
717
    site=$ac_optarg ;;
 
718
 
 
719
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
720
    ac_prev=srcdir ;;
 
721
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
722
    srcdir=$ac_optarg ;;
 
723
 
 
724
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
725
  | --syscon | --sysco | --sysc | --sys | --sy)
 
726
    ac_prev=sysconfdir ;;
 
727
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
728
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
729
    sysconfdir=$ac_optarg ;;
 
730
 
 
731
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
732
    ac_prev=target_alias ;;
 
733
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
734
    target_alias=$ac_optarg ;;
 
735
 
 
736
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
737
    verbose=yes ;;
 
738
 
 
739
  -version | --version | --versio | --versi | --vers | -V)
 
740
    ac_init_version=: ;;
 
741
 
 
742
  -with-* | --with-*)
 
743
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
744
    # Reject names that are not valid shell variable names.
 
745
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
746
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
747
   { (exit 1); exit 1; }; }
 
748
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
749
    case $ac_option in
 
750
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
751
      *) ac_optarg=yes ;;
 
752
    esac
 
753
    eval "with_$ac_package='$ac_optarg'" ;;
 
754
 
 
755
  -without-* | --without-*)
 
756
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
757
    # Reject names that are not valid shell variable names.
 
758
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
759
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
760
   { (exit 1); exit 1; }; }
 
761
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
762
    eval "with_$ac_package=no" ;;
 
763
 
 
764
  --x)
 
765
    # Obsolete; use --with-x.
 
766
    with_x=yes ;;
 
767
 
 
768
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
769
  | --x-incl | --x-inc | --x-in | --x-i)
 
770
    ac_prev=x_includes ;;
 
771
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
772
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
773
    x_includes=$ac_optarg ;;
 
774
 
 
775
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
776
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
777
    ac_prev=x_libraries ;;
 
778
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
779
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
780
    x_libraries=$ac_optarg ;;
 
781
 
 
782
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
783
Try \`$0 --help' for more information." >&2
 
784
   { (exit 1); exit 1; }; }
 
785
    ;;
 
786
 
 
787
  *=*)
 
788
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
789
    # Reject names that are not valid shell variable names.
 
790
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
791
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
792
   { (exit 1); exit 1; }; }
 
793
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
794
    eval "$ac_envvar='$ac_optarg'"
 
795
    export $ac_envvar ;;
 
796
 
 
797
  *)
 
798
    # FIXME: should be removed in autoconf 3.0.
 
799
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
800
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
801
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
802
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
803
    ;;
 
804
 
 
805
  esac
 
806
done
 
807
 
 
808
if test -n "$ac_prev"; then
 
809
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
810
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
811
   { (exit 1); exit 1; }; }
 
812
fi
 
813
 
 
814
# Be sure to have absolute paths.
 
815
for ac_var in exec_prefix prefix
 
816
do
 
817
  eval ac_val=$`echo $ac_var`
 
818
  case $ac_val in
 
819
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
820
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
821
   { (exit 1); exit 1; }; };;
 
822
  esac
 
823
done
 
824
 
 
825
# Be sure to have absolute paths.
 
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
827
              localstatedir libdir includedir oldincludedir infodir mandir
 
828
do
 
829
  eval ac_val=$`echo $ac_var`
 
830
  case $ac_val in
 
831
    [\\/$]* | ?:[\\/]* ) ;;
 
832
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
833
   { (exit 1); exit 1; }; };;
 
834
  esac
 
835
done
 
836
 
 
837
# There might be people who depend on the old broken behavior: `$host'
 
838
# used to hold the argument of --host etc.
 
839
# FIXME: To remove some day.
 
840
build=$build_alias
 
841
host=$host_alias
 
842
target=$target_alias
 
843
 
 
844
# FIXME: To remove some day.
 
845
if test "x$host_alias" != x; then
 
846
  if test "x$build_alias" = x; then
 
847
    cross_compiling=maybe
 
848
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
849
    If a cross compiler is detected then cross compile mode will be used." >&2
 
850
  elif test "x$build_alias" != "x$host_alias"; then
 
851
    cross_compiling=yes
 
852
  fi
 
853
fi
 
854
 
 
855
ac_tool_prefix=
 
856
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
857
 
 
858
test "$silent" = yes && exec 6>/dev/null
 
859
 
 
860
 
 
861
# Find the source files, if location was not specified.
 
862
if test -z "$srcdir"; then
 
863
  ac_srcdir_defaulted=yes
 
864
  # Try the directory containing this script, then its parent.
 
865
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
867
         X"$0" : 'X\(//\)[^/]' \| \
 
868
         X"$0" : 'X\(//\)$' \| \
 
869
         X"$0" : 'X\(/\)' \| \
 
870
         .     : '\(.\)' 2>/dev/null ||
 
871
echo X"$0" |
 
872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
874
          /^X\(\/\/\)$/{ s//\1/; q; }
 
875
          /^X\(\/\).*/{ s//\1/; q; }
 
876
          s/.*/./; q'`
 
877
  srcdir=$ac_confdir
 
878
  if test ! -r $srcdir/$ac_unique_file; then
 
879
    srcdir=..
 
880
  fi
 
881
else
 
882
  ac_srcdir_defaulted=no
 
883
fi
 
884
if test ! -r $srcdir/$ac_unique_file; then
 
885
  if test "$ac_srcdir_defaulted" = yes; then
 
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
887
   { (exit 1); exit 1; }; }
 
888
  else
 
889
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
890
   { (exit 1); exit 1; }; }
 
891
  fi
 
892
fi
 
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
894
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
895
   { (exit 1); exit 1; }; }
 
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
897
ac_env_build_alias_set=${build_alias+set}
 
898
ac_env_build_alias_value=$build_alias
 
899
ac_cv_env_build_alias_set=${build_alias+set}
 
900
ac_cv_env_build_alias_value=$build_alias
 
901
ac_env_host_alias_set=${host_alias+set}
 
902
ac_env_host_alias_value=$host_alias
 
903
ac_cv_env_host_alias_set=${host_alias+set}
 
904
ac_cv_env_host_alias_value=$host_alias
 
905
ac_env_target_alias_set=${target_alias+set}
 
906
ac_env_target_alias_value=$target_alias
 
907
ac_cv_env_target_alias_set=${target_alias+set}
 
908
ac_cv_env_target_alias_value=$target_alias
 
909
ac_env_CC_set=${CC+set}
 
910
ac_env_CC_value=$CC
 
911
ac_cv_env_CC_set=${CC+set}
 
912
ac_cv_env_CC_value=$CC
 
913
ac_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_env_CFLAGS_value=$CFLAGS
 
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
916
ac_cv_env_CFLAGS_value=$CFLAGS
 
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_env_LDFLAGS_value=$LDFLAGS
 
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
925
ac_env_CPP_set=${CPP+set}
 
926
ac_env_CPP_value=$CPP
 
927
ac_cv_env_CPP_set=${CPP+set}
 
928
ac_cv_env_CPP_value=$CPP
 
929
ac_env_CXX_set=${CXX+set}
 
930
ac_env_CXX_value=$CXX
 
931
ac_cv_env_CXX_set=${CXX+set}
 
932
ac_cv_env_CXX_value=$CXX
 
933
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
936
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
937
ac_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_env_CXXCPP_value=$CXXCPP
 
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
940
ac_cv_env_CXXCPP_value=$CXXCPP
 
941
ac_env_F77_set=${F77+set}
 
942
ac_env_F77_value=$F77
 
943
ac_cv_env_F77_set=${F77+set}
 
944
ac_cv_env_F77_value=$F77
 
945
ac_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_env_FFLAGS_value=$FFLAGS
 
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
948
ac_cv_env_FFLAGS_value=$FFLAGS
 
949
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
950
ac_env_PKG_CONFIG_value=$PKG_CONFIG
 
951
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
952
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
 
953
ac_env_ESPRESSO_DEPENDS_CFLAGS_set=${ESPRESSO_DEPENDS_CFLAGS+set}
 
954
ac_env_ESPRESSO_DEPENDS_CFLAGS_value=$ESPRESSO_DEPENDS_CFLAGS
 
955
ac_cv_env_ESPRESSO_DEPENDS_CFLAGS_set=${ESPRESSO_DEPENDS_CFLAGS+set}
 
956
ac_cv_env_ESPRESSO_DEPENDS_CFLAGS_value=$ESPRESSO_DEPENDS_CFLAGS
 
957
ac_env_ESPRESSO_DEPENDS_LIBS_set=${ESPRESSO_DEPENDS_LIBS+set}
 
958
ac_env_ESPRESSO_DEPENDS_LIBS_value=$ESPRESSO_DEPENDS_LIBS
 
959
ac_cv_env_ESPRESSO_DEPENDS_LIBS_set=${ESPRESSO_DEPENDS_LIBS+set}
 
960
ac_cv_env_ESPRESSO_DEPENDS_LIBS_value=$ESPRESSO_DEPENDS_LIBS
 
961
 
 
962
#
 
963
# Report the --help message.
 
964
#
 
965
if test "$ac_init_help" = "long"; then
 
966
  # Omit some internal or obsolete options to make the list less imposing.
 
967
  # This message is too long to be a string in the A/UX 3.1 sh.
 
968
  cat <<_ACEOF
 
969
\`configure' configures espresso 0.99.16 to adapt to many kinds of systems.
 
970
 
 
971
Usage: $0 [OPTION]... [VAR=VALUE]...
 
972
 
 
973
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
974
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
975
 
 
976
Defaults for the options are specified in brackets.
 
977
 
 
978
Configuration:
 
979
  -h, --help              display this help and exit
 
980
      --help=short        display options specific to this package
 
981
      --help=recursive    display the short help of all the included packages
 
982
  -V, --version           display version information and exit
 
983
  -q, --quiet, --silent   do not print \`checking...' messages
 
984
      --cache-file=FILE   cache test results in FILE [disabled]
 
985
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
986
  -n, --no-create         do not create output files
 
987
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
988
 
 
989
_ACEOF
 
990
 
 
991
  cat <<_ACEOF
 
992
Installation directories:
 
993
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
994
                          [$ac_default_prefix]
 
995
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
996
                          [PREFIX]
 
997
 
 
998
By default, \`make install' will install all the files in
 
999
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1000
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1001
for instance \`--prefix=\$HOME'.
 
1002
 
 
1003
For better control, use the options below.
 
1004
 
 
1005
Fine tuning of the installation directories:
 
1006
  --bindir=DIR           user executables [EPREFIX/bin]
 
1007
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1008
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1009
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
1010
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1011
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1012
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1013
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1014
  --includedir=DIR       C header files [PREFIX/include]
 
1015
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1016
  --infodir=DIR          info documentation [PREFIX/info]
 
1017
  --mandir=DIR           man documentation [PREFIX/man]
 
1018
_ACEOF
 
1019
 
 
1020
  cat <<\_ACEOF
 
1021
 
 
1022
Program names:
 
1023
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1024
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1025
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1026
 
 
1027
System types:
 
1028
  --build=BUILD     configure for building on BUILD [guessed]
 
1029
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1030
_ACEOF
 
1031
fi
 
1032
 
 
1033
if test -n "$ac_init_help"; then
 
1034
  case $ac_init_help in
 
1035
     short | recursive ) echo "Configuration of espresso 0.99.16:";;
 
1036
   esac
 
1037
  cat <<\_ACEOF
 
1038
 
 
1039
Optional Features:
 
1040
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1041
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1042
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1043
                          (and sometimes confusing) to the casual installer
 
1044
  --enable-shared[=PKGS]
 
1045
                          build shared libraries [default=yes]
 
1046
  --enable-static[=PKGS]
 
1047
                          build static libraries [default=yes]
 
1048
  --enable-fast-install[=PKGS]
 
1049
                          optimize for fast installation [default=yes]
 
1050
  --disable-dependency-tracking  speeds up one-time build
 
1051
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1052
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1053
  --disable-gtktest       do not try to compile and run a test GTK+ program
 
1054
 
 
1055
Optional Packages:
 
1056
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1057
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1058
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1059
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1060
                          both]
 
1061
  --with-tags[=TAGS]
 
1062
                          include additional configurations [automatic]
 
1063
 
 
1064
Some influential environment variables:
 
1065
  CC          C compiler command
 
1066
  CFLAGS      C compiler flags
 
1067
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1068
              nonstandard directory <lib dir>
 
1069
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1070
              headers in a nonstandard directory <include dir>
 
1071
  CPP         C preprocessor
 
1072
  CXX         C++ compiler command
 
1073
  CXXFLAGS    C++ compiler flags
 
1074
  CXXCPP      C++ preprocessor
 
1075
  F77         Fortran 77 compiler command
 
1076
  FFLAGS      Fortran 77 compiler flags
 
1077
  PKG_CONFIG  path to pkg-config utility
 
1078
  ESPRESSO_DEPENDS_CFLAGS
 
1079
              C compiler flags for ESPRESSO_DEPENDS, overriding pkg-config
 
1080
  ESPRESSO_DEPENDS_LIBS
 
1081
              linker flags for ESPRESSO_DEPENDS, overriding pkg-config
 
1082
 
 
1083
Use these variables to override the choices made by `configure' or to help
 
1084
it to find libraries and programs with nonstandard names/locations.
 
1085
 
 
1086
Report bugs to <https://launchpad.net/distros/ubuntu/+source/espresso/+filebug>.
 
1087
_ACEOF
 
1088
fi
 
1089
 
 
1090
if test "$ac_init_help" = "recursive"; then
 
1091
  # If there are subdirs, report their specific --help.
 
1092
  ac_popdir=`pwd`
 
1093
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1094
    test -d $ac_dir || continue
 
1095
    ac_builddir=.
 
1096
 
 
1097
if test "$ac_dir" != .; then
 
1098
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1099
  # A "../" for each directory in $ac_dir_suffix.
 
1100
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1101
else
 
1102
  ac_dir_suffix= ac_top_builddir=
 
1103
fi
 
1104
 
 
1105
case $srcdir in
 
1106
  .)  # No --srcdir option.  We are building in place.
 
1107
    ac_srcdir=.
 
1108
    if test -z "$ac_top_builddir"; then
 
1109
       ac_top_srcdir=.
 
1110
    else
 
1111
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1112
    fi ;;
 
1113
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1114
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1115
    ac_top_srcdir=$srcdir ;;
 
1116
  *) # Relative path.
 
1117
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1118
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1119
esac
 
1120
 
 
1121
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1122
# the directories may not exist.
 
1123
case `pwd` in
 
1124
.) ac_abs_builddir="$ac_dir";;
 
1125
*)
 
1126
  case "$ac_dir" in
 
1127
  .) ac_abs_builddir=`pwd`;;
 
1128
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1129
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1130
  esac;;
 
1131
esac
 
1132
case $ac_abs_builddir in
 
1133
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1134
*)
 
1135
  case ${ac_top_builddir}. in
 
1136
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1137
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1138
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1139
  esac;;
 
1140
esac
 
1141
case $ac_abs_builddir in
 
1142
.) ac_abs_srcdir=$ac_srcdir;;
 
1143
*)
 
1144
  case $ac_srcdir in
 
1145
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1146
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1147
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1148
  esac;;
 
1149
esac
 
1150
case $ac_abs_builddir in
 
1151
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1152
*)
 
1153
  case $ac_top_srcdir in
 
1154
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1155
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1156
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1157
  esac;;
 
1158
esac
 
1159
 
 
1160
    cd $ac_dir
 
1161
    # Check for guested configure; otherwise get Cygnus style configure.
 
1162
    if test -f $ac_srcdir/configure.gnu; then
 
1163
      echo
 
1164
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1165
    elif test -f $ac_srcdir/configure; then
 
1166
      echo
 
1167
      $SHELL $ac_srcdir/configure  --help=recursive
 
1168
    elif test -f $ac_srcdir/configure.ac ||
 
1169
           test -f $ac_srcdir/configure.in; then
 
1170
      echo
 
1171
      $ac_configure --help
 
1172
    else
 
1173
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1174
    fi
 
1175
    cd "$ac_popdir"
 
1176
  done
 
1177
fi
 
1178
 
 
1179
test -n "$ac_init_help" && exit 0
 
1180
if $ac_init_version; then
 
1181
  cat <<\_ACEOF
 
1182
espresso configure 0.99.16
 
1183
generated by GNU Autoconf 2.59
 
1184
 
 
1185
Copyright (C) 2003 Free Software Foundation, Inc.
 
1186
This configure script is free software; the Free Software Foundation
 
1187
gives unlimited permission to copy, distribute and modify it.
 
1188
_ACEOF
 
1189
  exit 0
 
1190
fi
 
1191
exec 5>config.log
 
1192
cat >&5 <<_ACEOF
 
1193
This file contains any messages produced by compilers while
 
1194
running configure, to aid debugging if configure makes a mistake.
 
1195
 
 
1196
It was created by espresso $as_me 0.99.16, which was
 
1197
generated by GNU Autoconf 2.59.  Invocation command line was
 
1198
 
 
1199
  $ $0 $@
 
1200
 
 
1201
_ACEOF
 
1202
{
 
1203
cat <<_ASUNAME
 
1204
## --------- ##
 
1205
## Platform. ##
 
1206
## --------- ##
 
1207
 
 
1208
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1209
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1210
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1211
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1212
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1213
 
 
1214
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1215
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1216
 
 
1217
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1218
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1219
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1220
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1221
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1222
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1223
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1224
 
 
1225
_ASUNAME
 
1226
 
 
1227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1228
for as_dir in $PATH
 
1229
do
 
1230
  IFS=$as_save_IFS
 
1231
  test -z "$as_dir" && as_dir=.
 
1232
  echo "PATH: $as_dir"
 
1233
done
 
1234
 
 
1235
} >&5
 
1236
 
 
1237
cat >&5 <<_ACEOF
 
1238
 
 
1239
 
 
1240
## ----------- ##
 
1241
## Core tests. ##
 
1242
## ----------- ##
 
1243
 
 
1244
_ACEOF
 
1245
 
 
1246
 
 
1247
# Keep a trace of the command line.
 
1248
# Strip out --no-create and --no-recursion so they do not pile up.
 
1249
# Strip out --silent because we don't want to record it for future runs.
 
1250
# Also quote any args containing shell meta-characters.
 
1251
# Make two passes to allow for proper duplicate-argument suppression.
 
1252
ac_configure_args=
 
1253
ac_configure_args0=
 
1254
ac_configure_args1=
 
1255
ac_sep=
 
1256
ac_must_keep_next=false
 
1257
for ac_pass in 1 2
 
1258
do
 
1259
  for ac_arg
 
1260
  do
 
1261
    case $ac_arg in
 
1262
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1263
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1264
    | -silent | --silent | --silen | --sile | --sil)
 
1265
      continue ;;
 
1266
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1267
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1268
    esac
 
1269
    case $ac_pass in
 
1270
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1271
    2)
 
1272
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1273
      if test $ac_must_keep_next = true; then
 
1274
        ac_must_keep_next=false # Got value, back to normal.
 
1275
      else
 
1276
        case $ac_arg in
 
1277
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1278
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1279
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1280
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1281
            case "$ac_configure_args0 " in
 
1282
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1283
            esac
 
1284
            ;;
 
1285
          -* ) ac_must_keep_next=true ;;
 
1286
        esac
 
1287
      fi
 
1288
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1289
      # Get rid of the leading space.
 
1290
      ac_sep=" "
 
1291
      ;;
 
1292
    esac
 
1293
  done
 
1294
done
 
1295
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1296
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1297
 
 
1298
# When interrupted or exit'd, cleanup temporary files, and complete
 
1299
# config.log.  We remove comments because anyway the quotes in there
 
1300
# would cause problems or look ugly.
 
1301
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1302
# such as our DU 5.0 friend, will then `close' the trap.
 
1303
trap 'exit_status=$?
 
1304
  # Save into config.log some information that might help in debugging.
 
1305
  {
 
1306
    echo
 
1307
 
 
1308
    cat <<\_ASBOX
 
1309
## ---------------- ##
 
1310
## Cache variables. ##
 
1311
## ---------------- ##
 
1312
_ASBOX
 
1313
    echo
 
1314
    # The following way of writing the cache mishandles newlines in values,
 
1315
{
 
1316
  (set) 2>&1 |
 
1317
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1318
    *ac_space=\ *)
 
1319
      sed -n \
 
1320
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1321
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1322
      ;;
 
1323
    *)
 
1324
      sed -n \
 
1325
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1326
      ;;
 
1327
    esac;
 
1328
}
 
1329
    echo
 
1330
 
 
1331
    cat <<\_ASBOX
 
1332
## ----------------- ##
 
1333
## Output variables. ##
 
1334
## ----------------- ##
 
1335
_ASBOX
 
1336
    echo
 
1337
    for ac_var in $ac_subst_vars
 
1338
    do
 
1339
      eval ac_val=$`echo $ac_var`
 
1340
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1341
    done | sort
 
1342
    echo
 
1343
 
 
1344
    if test -n "$ac_subst_files"; then
 
1345
      cat <<\_ASBOX
 
1346
## ------------- ##
 
1347
## Output files. ##
 
1348
## ------------- ##
 
1349
_ASBOX
 
1350
      echo
 
1351
      for ac_var in $ac_subst_files
 
1352
      do
 
1353
        eval ac_val=$`echo $ac_var`
 
1354
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1355
      done | sort
 
1356
      echo
 
1357
    fi
 
1358
 
 
1359
    if test -s confdefs.h; then
 
1360
      cat <<\_ASBOX
 
1361
## ----------- ##
 
1362
## confdefs.h. ##
 
1363
## ----------- ##
 
1364
_ASBOX
 
1365
      echo
 
1366
      sed "/^$/d" confdefs.h | sort
 
1367
      echo
 
1368
    fi
 
1369
    test "$ac_signal" != 0 &&
 
1370
      echo "$as_me: caught signal $ac_signal"
 
1371
    echo "$as_me: exit $exit_status"
 
1372
  } >&5
 
1373
  rm -f core *.core &&
 
1374
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1375
    exit $exit_status
 
1376
     ' 0
 
1377
for ac_signal in 1 2 13 15; do
 
1378
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1379
done
 
1380
ac_signal=0
 
1381
 
 
1382
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1383
rm -rf conftest* confdefs.h
 
1384
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1385
echo >confdefs.h
 
1386
 
 
1387
# Predefined preprocessor variables.
 
1388
 
 
1389
cat >>confdefs.h <<_ACEOF
 
1390
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1391
_ACEOF
 
1392
 
 
1393
 
 
1394
cat >>confdefs.h <<_ACEOF
 
1395
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1396
_ACEOF
 
1397
 
 
1398
 
 
1399
cat >>confdefs.h <<_ACEOF
 
1400
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1401
_ACEOF
 
1402
 
 
1403
 
 
1404
cat >>confdefs.h <<_ACEOF
 
1405
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1406
_ACEOF
 
1407
 
 
1408
 
 
1409
cat >>confdefs.h <<_ACEOF
 
1410
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1411
_ACEOF
 
1412
 
 
1413
 
 
1414
# Let the site file select an alternate cache file if it wants to.
 
1415
# Prefer explicitly selected file to automatically selected ones.
 
1416
if test -z "$CONFIG_SITE"; then
 
1417
  if test "x$prefix" != xNONE; then
 
1418
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1419
  else
 
1420
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1421
  fi
 
1422
fi
 
1423
for ac_site_file in $CONFIG_SITE; do
 
1424
  if test -r "$ac_site_file"; then
 
1425
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1426
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1427
    sed 's/^/| /' "$ac_site_file" >&5
 
1428
    . "$ac_site_file"
 
1429
  fi
 
1430
done
 
1431
 
 
1432
if test -r "$cache_file"; then
 
1433
  # Some versions of bash will fail to source /dev/null (special
 
1434
  # files actually), so we avoid doing that.
 
1435
  if test -f "$cache_file"; then
 
1436
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1437
echo "$as_me: loading cache $cache_file" >&6;}
 
1438
    case $cache_file in
 
1439
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1440
      *)                      . ./$cache_file;;
 
1441
    esac
 
1442
  fi
 
1443
else
 
1444
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1445
echo "$as_me: creating cache $cache_file" >&6;}
 
1446
  >$cache_file
 
1447
fi
 
1448
 
 
1449
# Check that the precious variables saved in the cache have kept the same
 
1450
# value.
 
1451
ac_cache_corrupted=false
 
1452
for ac_var in `(set) 2>&1 |
 
1453
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1454
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1455
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1456
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1457
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1458
  case $ac_old_set,$ac_new_set in
 
1459
    set,)
 
1460
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1461
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1462
      ac_cache_corrupted=: ;;
 
1463
    ,set)
 
1464
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1465
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1466
      ac_cache_corrupted=: ;;
 
1467
    ,);;
 
1468
    *)
 
1469
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1470
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1471
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1472
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1473
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1474
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1475
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1476
        ac_cache_corrupted=:
 
1477
      fi;;
 
1478
  esac
 
1479
  # Pass precious variables to config.status.
 
1480
  if test "$ac_new_set" = set; then
 
1481
    case $ac_new_val in
 
1482
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1483
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1484
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1485
    esac
 
1486
    case " $ac_configure_args " in
 
1487
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1488
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1489
    esac
 
1490
  fi
 
1491
done
 
1492
if $ac_cache_corrupted; then
 
1493
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1494
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1495
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1496
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1497
   { (exit 1); exit 1; }; }
 
1498
fi
 
1499
 
 
1500
ac_ext=c
 
1501
ac_cpp='$CPP $CPPFLAGS'
 
1502
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1503
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1504
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
 
 
1529
 
 
1530
 
 
1531
 
 
1532
 
 
1533
am__api_version="1.8"
 
1534
ac_aux_dir=
 
1535
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1536
  if test -f $ac_dir/install-sh; then
 
1537
    ac_aux_dir=$ac_dir
 
1538
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1539
    break
 
1540
  elif test -f $ac_dir/install.sh; then
 
1541
    ac_aux_dir=$ac_dir
 
1542
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1543
    break
 
1544
  elif test -f $ac_dir/shtool; then
 
1545
    ac_aux_dir=$ac_dir
 
1546
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1547
    break
 
1548
  fi
 
1549
done
 
1550
if test -z "$ac_aux_dir"; then
 
1551
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1552
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1553
   { (exit 1); exit 1; }; }
 
1554
fi
 
1555
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1556
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1557
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1558
 
 
1559
# Find a good install program.  We prefer a C program (faster),
 
1560
# so one script is as good as another.  But avoid the broken or
 
1561
# incompatible versions:
 
1562
# SysV /etc/install, /usr/sbin/install
 
1563
# SunOS /usr/etc/install
 
1564
# IRIX /sbin/install
 
1565
# AIX /bin/install
 
1566
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1567
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1568
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1569
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1570
# OS/2's system install, which has a completely different semantic
 
1571
# ./install, which can be erroneously created by make from ./install.sh.
 
1572
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1573
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1574
if test -z "$INSTALL"; then
 
1575
if test "${ac_cv_path_install+set}" = set; then
 
1576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1577
else
 
1578
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1579
for as_dir in $PATH
 
1580
do
 
1581
  IFS=$as_save_IFS
 
1582
  test -z "$as_dir" && as_dir=.
 
1583
  # Account for people who put trailing slashes in PATH elements.
 
1584
case $as_dir/ in
 
1585
  ./ | .// | /cC/* | \
 
1586
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1587
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1588
  /usr/ucb/* ) ;;
 
1589
  *)
 
1590
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1591
    # Don't use installbsd from OSF since it installs stuff as root
 
1592
    # by default.
 
1593
    for ac_prog in ginstall scoinst install; do
 
1594
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1595
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1596
          if test $ac_prog = install &&
 
1597
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1598
            # AIX install.  It has an incompatible calling convention.
 
1599
            :
 
1600
          elif test $ac_prog = install &&
 
1601
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1602
            # program-specific install script used by HP pwplus--don't use.
 
1603
            :
 
1604
          else
 
1605
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1606
            break 3
 
1607
          fi
 
1608
        fi
 
1609
      done
 
1610
    done
 
1611
    ;;
 
1612
esac
 
1613
done
 
1614
 
 
1615
 
 
1616
fi
 
1617
  if test "${ac_cv_path_install+set}" = set; then
 
1618
    INSTALL=$ac_cv_path_install
 
1619
  else
 
1620
    # As a last resort, use the slow shell script.  We don't cache a
 
1621
    # path for INSTALL within a source directory, because that will
 
1622
    # break other packages using the cache if that directory is
 
1623
    # removed, or if the path is relative.
 
1624
    INSTALL=$ac_install_sh
 
1625
  fi
 
1626
fi
 
1627
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1628
echo "${ECHO_T}$INSTALL" >&6
 
1629
 
 
1630
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1631
# It thinks the first close brace ends the variable substitution.
 
1632
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1633
 
 
1634
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1635
 
 
1636
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1637
 
 
1638
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1639
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1640
# Just in case
 
1641
sleep 1
 
1642
echo timestamp > conftest.file
 
1643
# Do `set' in a subshell so we don't clobber the current shell's
 
1644
# arguments.  Must try -L first in case configure is actually a
 
1645
# symlink; some systems play weird games with the mod time of symlinks
 
1646
# (eg FreeBSD returns the mod time of the symlink's containing
 
1647
# directory).
 
1648
if (
 
1649
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1650
   if test "$*" = "X"; then
 
1651
      # -L didn't work.
 
1652
      set X `ls -t $srcdir/configure conftest.file`
 
1653
   fi
 
1654
   rm -f conftest.file
 
1655
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1656
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1657
 
 
1658
      # If neither matched, then we have a broken ls.  This can happen
 
1659
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1660
      # broken ls alias from the environment.  This has actually
 
1661
      # happened.  Such a system could not be considered "sane".
 
1662
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1663
alias in your environment" >&5
 
1664
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1665
alias in your environment" >&2;}
 
1666
   { (exit 1); exit 1; }; }
 
1667
   fi
 
1668
 
 
1669
   test "$2" = conftest.file
 
1670
   )
 
1671
then
 
1672
   # Ok.
 
1673
   :
 
1674
else
 
1675
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1676
Check your system clock" >&5
 
1677
echo "$as_me: error: newly created file is older than distributed files!
 
1678
Check your system clock" >&2;}
 
1679
   { (exit 1); exit 1; }; }
 
1680
fi
 
1681
echo "$as_me:$LINENO: result: yes" >&5
 
1682
echo "${ECHO_T}yes" >&6
 
1683
test "$program_prefix" != NONE &&
 
1684
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1685
# Use a double $ so make ignores it.
 
1686
test "$program_suffix" != NONE &&
 
1687
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1688
# Double any \ or $.  echo might interpret backslashes.
 
1689
# By default was `s,x,x', remove it if useless.
 
1690
cat <<\_ACEOF >conftest.sed
 
1691
s/[\\$]/&&/g;s/;s,x,x,$//
 
1692
_ACEOF
 
1693
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1694
rm conftest.sed
 
1695
 
 
1696
# expand $ac_aux_dir to an absolute path
 
1697
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1698
 
 
1699
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1700
# Use eval to expand $SHELL
 
1701
if eval "$MISSING --run true"; then
 
1702
  am_missing_run="$MISSING --run "
 
1703
else
 
1704
  am_missing_run=
 
1705
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1706
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1707
fi
 
1708
 
 
1709
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1710
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
1711
  # argument.  Indeed, we sometimes output rules like
 
1712
  #   $(mkdir_p) $(somedir)
 
1713
  # where $(somedir) is conditionally defined.
 
1714
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
1715
  # expensive solution, as it forces Make to start a sub-shell.)
 
1716
  mkdir_p='mkdir -p -- .'
 
1717
else
 
1718
  # On NextStep and OpenStep, the `mkdir' command does not
 
1719
  # recognize any option.  It will interpret all options as
 
1720
  # directories to create, and then abort because `.' already
 
1721
  # exists.
 
1722
  for d in ./-p ./--version;
 
1723
  do
 
1724
    test -d $d && rmdir $d
 
1725
  done
 
1726
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1727
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1728
    mkdir_p='$(mkinstalldirs)'
 
1729
  else
 
1730
    mkdir_p='$(install_sh) -d'
 
1731
  fi
 
1732
fi
 
1733
 
 
1734
for ac_prog in gawk mawk nawk awk
 
1735
do
 
1736
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1737
set dummy $ac_prog; ac_word=$2
 
1738
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1739
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1740
if test "${ac_cv_prog_AWK+set}" = set; then
 
1741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1742
else
 
1743
  if test -n "$AWK"; then
 
1744
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1745
else
 
1746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1747
for as_dir in $PATH
 
1748
do
 
1749
  IFS=$as_save_IFS
 
1750
  test -z "$as_dir" && as_dir=.
 
1751
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1752
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1753
    ac_cv_prog_AWK="$ac_prog"
 
1754
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1755
    break 2
 
1756
  fi
 
1757
done
 
1758
done
 
1759
 
 
1760
fi
 
1761
fi
 
1762
AWK=$ac_cv_prog_AWK
 
1763
if test -n "$AWK"; then
 
1764
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1765
echo "${ECHO_T}$AWK" >&6
 
1766
else
 
1767
  echo "$as_me:$LINENO: result: no" >&5
 
1768
echo "${ECHO_T}no" >&6
 
1769
fi
 
1770
 
 
1771
  test -n "$AWK" && break
 
1772
done
 
1773
 
 
1774
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1775
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1776
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1777
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1779
else
 
1780
  cat >conftest.make <<\_ACEOF
 
1781
all:
 
1782
        @echo 'ac_maketemp="$(MAKE)"'
 
1783
_ACEOF
 
1784
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1785
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1786
if test -n "$ac_maketemp"; then
 
1787
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1788
else
 
1789
  eval ac_cv_prog_make_${ac_make}_set=no
 
1790
fi
 
1791
rm -f conftest.make
 
1792
fi
 
1793
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1794
  echo "$as_me:$LINENO: result: yes" >&5
 
1795
echo "${ECHO_T}yes" >&6
 
1796
  SET_MAKE=
 
1797
else
 
1798
  echo "$as_me:$LINENO: result: no" >&5
 
1799
echo "${ECHO_T}no" >&6
 
1800
  SET_MAKE="MAKE=${MAKE-make}"
 
1801
fi
 
1802
 
 
1803
rm -rf .tst 2>/dev/null
 
1804
mkdir .tst 2>/dev/null
 
1805
if test -d .tst; then
 
1806
  am__leading_dot=.
 
1807
else
 
1808
  am__leading_dot=_
 
1809
fi
 
1810
rmdir .tst 2>/dev/null
 
1811
 
 
1812
# test to see if srcdir already configured
 
1813
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1814
   test -f $srcdir/config.status; then
 
1815
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1816
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1817
   { (exit 1); exit 1; }; }
 
1818
fi
 
1819
 
 
1820
# test whether we have cygpath
 
1821
if test -z "$CYGPATH_W"; then
 
1822
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1823
    CYGPATH_W='cygpath -w'
 
1824
  else
 
1825
    CYGPATH_W=echo
 
1826
  fi
 
1827
fi
 
1828
 
 
1829
 
 
1830
# Define the identity of the package.
 
1831
 PACKAGE='espresso'
 
1832
 VERSION='0.99.16'
 
1833
 
 
1834
 
 
1835
cat >>confdefs.h <<_ACEOF
 
1836
#define PACKAGE "$PACKAGE"
 
1837
_ACEOF
 
1838
 
 
1839
 
 
1840
cat >>confdefs.h <<_ACEOF
 
1841
#define VERSION "$VERSION"
 
1842
_ACEOF
 
1843
 
 
1844
# Some tools Automake needs.
 
1845
 
 
1846
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1847
 
 
1848
 
 
1849
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1850
 
 
1851
 
 
1852
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1853
 
 
1854
 
 
1855
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1856
 
 
1857
 
 
1858
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1859
 
 
1860
 
 
1861
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1862
 
 
1863
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1864
 
 
1865
# Installed binaries are usually stripped using `strip' when the user
 
1866
# run `make install-strip'.  However `strip' might not be the right
 
1867
# tool to use in cross-compilation environments, therefore Automake
 
1868
# will honor the `STRIP' environment variable to overrule this program.
 
1869
if test "$cross_compiling" != no; then
 
1870
  if test -n "$ac_tool_prefix"; then
 
1871
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1872
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1873
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1875
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1876
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1877
else
 
1878
  if test -n "$STRIP"; then
 
1879
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1880
else
 
1881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1882
for as_dir in $PATH
 
1883
do
 
1884
  IFS=$as_save_IFS
 
1885
  test -z "$as_dir" && as_dir=.
 
1886
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1887
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1888
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1889
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1890
    break 2
 
1891
  fi
 
1892
done
 
1893
done
 
1894
 
 
1895
fi
 
1896
fi
 
1897
STRIP=$ac_cv_prog_STRIP
 
1898
if test -n "$STRIP"; then
 
1899
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1900
echo "${ECHO_T}$STRIP" >&6
 
1901
else
 
1902
  echo "$as_me:$LINENO: result: no" >&5
 
1903
echo "${ECHO_T}no" >&6
 
1904
fi
 
1905
 
 
1906
fi
 
1907
if test -z "$ac_cv_prog_STRIP"; then
 
1908
  ac_ct_STRIP=$STRIP
 
1909
  # Extract the first word of "strip", so it can be a program name with args.
 
1910
set dummy strip; ac_word=$2
 
1911
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1912
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1913
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1915
else
 
1916
  if test -n "$ac_ct_STRIP"; then
 
1917
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1918
else
 
1919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1920
for as_dir in $PATH
 
1921
do
 
1922
  IFS=$as_save_IFS
 
1923
  test -z "$as_dir" && as_dir=.
 
1924
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1925
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1926
    ac_cv_prog_ac_ct_STRIP="strip"
 
1927
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1928
    break 2
 
1929
  fi
 
1930
done
 
1931
done
 
1932
 
 
1933
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1934
fi
 
1935
fi
 
1936
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1937
if test -n "$ac_ct_STRIP"; then
 
1938
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1939
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1940
else
 
1941
  echo "$as_me:$LINENO: result: no" >&5
 
1942
echo "${ECHO_T}no" >&6
 
1943
fi
 
1944
 
 
1945
  STRIP=$ac_ct_STRIP
 
1946
else
 
1947
  STRIP="$ac_cv_prog_STRIP"
 
1948
fi
 
1949
 
 
1950
fi
 
1951
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1952
 
 
1953
# We need awk for the "check" target.  The system "awk" is bad on
 
1954
# some platforms.
 
1955
 
 
1956
 
 
1957
 
 
1958
 
 
1959
          ac_config_headers="$ac_config_headers config.h"
 
1960
 
 
1961
 
 
1962
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1963
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1964
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1965
if test "${enable_maintainer_mode+set}" = set; then
 
1966
  enableval="$enable_maintainer_mode"
 
1967
  USE_MAINTAINER_MODE=$enableval
 
1968
else
 
1969
  USE_MAINTAINER_MODE=no
 
1970
fi;
 
1971
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1972
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1973
 
 
1974
 
 
1975
if test $USE_MAINTAINER_MODE = yes; then
 
1976
  MAINTAINER_MODE_TRUE=
 
1977
  MAINTAINER_MODE_FALSE='#'
 
1978
else
 
1979
  MAINTAINER_MODE_TRUE='#'
 
1980
  MAINTAINER_MODE_FALSE=
 
1981
fi
 
1982
 
 
1983
  MAINT=$MAINTAINER_MODE_TRUE
 
1984
 
 
1985
 
 
1986
 
 
1987
# Check whether --enable-shared or --disable-shared was given.
 
1988
if test "${enable_shared+set}" = set; then
 
1989
  enableval="$enable_shared"
 
1990
  p=${PACKAGE-default}
 
1991
    case $enableval in
 
1992
    yes) enable_shared=yes ;;
 
1993
    no) enable_shared=no ;;
 
1994
    *)
 
1995
      enable_shared=no
 
1996
      # Look at the argument we got.  We use all the common list separators.
 
1997
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1998
      for pkg in $enableval; do
 
1999
        IFS="$lt_save_ifs"
 
2000
        if test "X$pkg" = "X$p"; then
 
2001
          enable_shared=yes
 
2002
        fi
 
2003
      done
 
2004
      IFS="$lt_save_ifs"
 
2005
      ;;
 
2006
    esac
 
2007
else
 
2008
  enable_shared=yes
 
2009
fi;
 
2010
 
 
2011
# Check whether --enable-static or --disable-static was given.
 
2012
if test "${enable_static+set}" = set; then
 
2013
  enableval="$enable_static"
 
2014
  p=${PACKAGE-default}
 
2015
    case $enableval in
 
2016
    yes) enable_static=yes ;;
 
2017
    no) enable_static=no ;;
 
2018
    *)
 
2019
     enable_static=no
 
2020
      # Look at the argument we got.  We use all the common list separators.
 
2021
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2022
      for pkg in $enableval; do
 
2023
        IFS="$lt_save_ifs"
 
2024
        if test "X$pkg" = "X$p"; then
 
2025
          enable_static=yes
 
2026
        fi
 
2027
      done
 
2028
      IFS="$lt_save_ifs"
 
2029
      ;;
 
2030
    esac
 
2031
else
 
2032
  enable_static=yes
 
2033
fi;
 
2034
 
 
2035
# Check whether --enable-fast-install or --disable-fast-install was given.
 
2036
if test "${enable_fast_install+set}" = set; then
 
2037
  enableval="$enable_fast_install"
 
2038
  p=${PACKAGE-default}
 
2039
    case $enableval in
 
2040
    yes) enable_fast_install=yes ;;
 
2041
    no) enable_fast_install=no ;;
 
2042
    *)
 
2043
      enable_fast_install=no
 
2044
      # Look at the argument we got.  We use all the common list separators.
 
2045
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2046
      for pkg in $enableval; do
 
2047
        IFS="$lt_save_ifs"
 
2048
        if test "X$pkg" = "X$p"; then
 
2049
          enable_fast_install=yes
 
2050
        fi
 
2051
      done
 
2052
      IFS="$lt_save_ifs"
 
2053
      ;;
 
2054
    esac
 
2055
else
 
2056
  enable_fast_install=yes
 
2057
fi;
 
2058
 
 
2059
# Make sure we can run config.sub.
 
2060
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2061
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
2062
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2063
   { (exit 1); exit 1; }; }
 
2064
 
 
2065
echo "$as_me:$LINENO: checking build system type" >&5
 
2066
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2067
if test "${ac_cv_build+set}" = set; then
 
2068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2069
else
 
2070
  ac_cv_build_alias=$build_alias
 
2071
test -z "$ac_cv_build_alias" &&
 
2072
  ac_cv_build_alias=`$ac_config_guess`
 
2073
test -z "$ac_cv_build_alias" &&
 
2074
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2075
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2076
   { (exit 1); exit 1; }; }
 
2077
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2078
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
2079
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2080
   { (exit 1); exit 1; }; }
 
2081
 
 
2082
fi
 
2083
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2084
echo "${ECHO_T}$ac_cv_build" >&6
 
2085
build=$ac_cv_build
 
2086
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2087
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2088
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2089
 
 
2090
 
 
2091
echo "$as_me:$LINENO: checking host system type" >&5
 
2092
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2093
if test "${ac_cv_host+set}" = set; then
 
2094
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2095
else
 
2096
  ac_cv_host_alias=$host_alias
 
2097
test -z "$ac_cv_host_alias" &&
 
2098
  ac_cv_host_alias=$ac_cv_build_alias
 
2099
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2100
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2101
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2102
   { (exit 1); exit 1; }; }
 
2103
 
 
2104
fi
 
2105
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2106
echo "${ECHO_T}$ac_cv_host" >&6
 
2107
host=$ac_cv_host
 
2108
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2109
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2110
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2111
 
 
2112
 
 
2113
DEPDIR="${am__leading_dot}deps"
 
2114
 
 
2115
          ac_config_commands="$ac_config_commands depfiles"
 
2116
 
 
2117
 
 
2118
am_make=${MAKE-make}
 
2119
cat > confinc << 'END'
 
2120
am__doit:
 
2121
        @echo done
 
2122
.PHONY: am__doit
 
2123
END
 
2124
# If we don't find an include directive, just comment out the code.
 
2125
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2126
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2127
am__include="#"
 
2128
am__quote=
 
2129
_am_result=none
 
2130
# First try GNU make style include.
 
2131
echo "include confinc" > confmf
 
2132
# We grep out `Entering directory' and `Leaving directory'
 
2133
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2134
# In particular we don't look at `^make:' because GNU make might
 
2135
# be invoked under some other name (usually "gmake"), in which
 
2136
# case it prints its new name instead of `make'.
 
2137
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2138
   am__include=include
 
2139
   am__quote=
 
2140
   _am_result=GNU
 
2141
fi
 
2142
# Now try BSD make style include.
 
2143
if test "$am__include" = "#"; then
 
2144
   echo '.include "confinc"' > confmf
 
2145
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2146
      am__include=.include
 
2147
      am__quote="\""
 
2148
      _am_result=BSD
 
2149
   fi
 
2150
fi
 
2151
 
 
2152
 
 
2153
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2154
echo "${ECHO_T}$_am_result" >&6
 
2155
rm -f confinc confmf
 
2156
 
 
2157
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2158
if test "${enable_dependency_tracking+set}" = set; then
 
2159
  enableval="$enable_dependency_tracking"
 
2160
 
 
2161
fi;
 
2162
if test "x$enable_dependency_tracking" != xno; then
 
2163
  am_depcomp="$ac_aux_dir/depcomp"
 
2164
  AMDEPBACKSLASH='\'
 
2165
fi
 
2166
 
 
2167
 
 
2168
if test "x$enable_dependency_tracking" != xno; then
 
2169
  AMDEP_TRUE=
 
2170
  AMDEP_FALSE='#'
 
2171
else
 
2172
  AMDEP_TRUE='#'
 
2173
  AMDEP_FALSE=
 
2174
fi
 
2175
 
 
2176
 
 
2177
 
 
2178
ac_ext=c
 
2179
ac_cpp='$CPP $CPPFLAGS'
 
2180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2183
if test -n "$ac_tool_prefix"; then
 
2184
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2185
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2186
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2187
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2188
if test "${ac_cv_prog_CC+set}" = set; then
 
2189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2190
else
 
2191
  if test -n "$CC"; then
 
2192
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2193
else
 
2194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2195
for as_dir in $PATH
 
2196
do
 
2197
  IFS=$as_save_IFS
 
2198
  test -z "$as_dir" && as_dir=.
 
2199
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2200
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2201
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2202
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2203
    break 2
 
2204
  fi
 
2205
done
 
2206
done
 
2207
 
 
2208
fi
 
2209
fi
 
2210
CC=$ac_cv_prog_CC
 
2211
if test -n "$CC"; then
 
2212
  echo "$as_me:$LINENO: result: $CC" >&5
 
2213
echo "${ECHO_T}$CC" >&6
 
2214
else
 
2215
  echo "$as_me:$LINENO: result: no" >&5
 
2216
echo "${ECHO_T}no" >&6
 
2217
fi
 
2218
 
 
2219
fi
 
2220
if test -z "$ac_cv_prog_CC"; then
 
2221
  ac_ct_CC=$CC
 
2222
  # Extract the first word of "gcc", so it can be a program name with args.
 
2223
set dummy gcc; ac_word=$2
 
2224
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2225
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2226
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2227
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2228
else
 
2229
  if test -n "$ac_ct_CC"; then
 
2230
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2231
else
 
2232
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2233
for as_dir in $PATH
 
2234
do
 
2235
  IFS=$as_save_IFS
 
2236
  test -z "$as_dir" && as_dir=.
 
2237
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2238
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2239
    ac_cv_prog_ac_ct_CC="gcc"
 
2240
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2241
    break 2
 
2242
  fi
 
2243
done
 
2244
done
 
2245
 
 
2246
fi
 
2247
fi
 
2248
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2249
if test -n "$ac_ct_CC"; then
 
2250
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2251
echo "${ECHO_T}$ac_ct_CC" >&6
 
2252
else
 
2253
  echo "$as_me:$LINENO: result: no" >&5
 
2254
echo "${ECHO_T}no" >&6
 
2255
fi
 
2256
 
 
2257
  CC=$ac_ct_CC
 
2258
else
 
2259
  CC="$ac_cv_prog_CC"
 
2260
fi
 
2261
 
 
2262
if test -z "$CC"; then
 
2263
  if test -n "$ac_tool_prefix"; then
 
2264
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2265
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2266
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2267
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2268
if test "${ac_cv_prog_CC+set}" = set; then
 
2269
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2270
else
 
2271
  if test -n "$CC"; then
 
2272
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2273
else
 
2274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2275
for as_dir in $PATH
 
2276
do
 
2277
  IFS=$as_save_IFS
 
2278
  test -z "$as_dir" && as_dir=.
 
2279
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2280
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2281
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2282
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2283
    break 2
 
2284
  fi
 
2285
done
 
2286
done
 
2287
 
 
2288
fi
 
2289
fi
 
2290
CC=$ac_cv_prog_CC
 
2291
if test -n "$CC"; then
 
2292
  echo "$as_me:$LINENO: result: $CC" >&5
 
2293
echo "${ECHO_T}$CC" >&6
 
2294
else
 
2295
  echo "$as_me:$LINENO: result: no" >&5
 
2296
echo "${ECHO_T}no" >&6
 
2297
fi
 
2298
 
 
2299
fi
 
2300
if test -z "$ac_cv_prog_CC"; then
 
2301
  ac_ct_CC=$CC
 
2302
  # Extract the first word of "cc", so it can be a program name with args.
 
2303
set dummy cc; 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="cc"
 
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
  CC=$ac_ct_CC
 
2338
else
 
2339
  CC="$ac_cv_prog_CC"
 
2340
fi
 
2341
 
 
2342
fi
 
2343
if test -z "$CC"; then
 
2344
  # Extract the first word of "cc", so it can be a program name with args.
 
2345
set dummy cc; ac_word=$2
 
2346
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2347
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2348
if test "${ac_cv_prog_CC+set}" = set; then
 
2349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2350
else
 
2351
  if test -n "$CC"; then
 
2352
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2353
else
 
2354
  ac_prog_rejected=no
 
2355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2356
for as_dir in $PATH
 
2357
do
 
2358
  IFS=$as_save_IFS
 
2359
  test -z "$as_dir" && as_dir=.
 
2360
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2361
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2362
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2363
       ac_prog_rejected=yes
 
2364
       continue
 
2365
     fi
 
2366
    ac_cv_prog_CC="cc"
 
2367
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2368
    break 2
 
2369
  fi
 
2370
done
 
2371
done
 
2372
 
 
2373
if test $ac_prog_rejected = yes; then
 
2374
  # We found a bogon in the path, so make sure we never use it.
 
2375
  set dummy $ac_cv_prog_CC
 
2376
  shift
 
2377
  if test $# != 0; then
 
2378
    # We chose a different compiler from the bogus one.
 
2379
    # However, it has the same basename, so the bogon will be chosen
 
2380
    # first if we set CC to just the basename; use the full file name.
 
2381
    shift
 
2382
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2383
  fi
 
2384
fi
 
2385
fi
 
2386
fi
 
2387
CC=$ac_cv_prog_CC
 
2388
if test -n "$CC"; then
 
2389
  echo "$as_me:$LINENO: result: $CC" >&5
 
2390
echo "${ECHO_T}$CC" >&6
 
2391
else
 
2392
  echo "$as_me:$LINENO: result: no" >&5
 
2393
echo "${ECHO_T}no" >&6
 
2394
fi
 
2395
 
 
2396
fi
 
2397
if test -z "$CC"; then
 
2398
  if test -n "$ac_tool_prefix"; then
 
2399
  for ac_prog in cl
 
2400
  do
 
2401
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2402
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2403
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2404
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2405
if test "${ac_cv_prog_CC+set}" = set; then
 
2406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2407
else
 
2408
  if test -n "$CC"; then
 
2409
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2410
else
 
2411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2412
for as_dir in $PATH
 
2413
do
 
2414
  IFS=$as_save_IFS
 
2415
  test -z "$as_dir" && as_dir=.
 
2416
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2417
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2418
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2419
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2420
    break 2
 
2421
  fi
 
2422
done
 
2423
done
 
2424
 
 
2425
fi
 
2426
fi
 
2427
CC=$ac_cv_prog_CC
 
2428
if test -n "$CC"; then
 
2429
  echo "$as_me:$LINENO: result: $CC" >&5
 
2430
echo "${ECHO_T}$CC" >&6
 
2431
else
 
2432
  echo "$as_me:$LINENO: result: no" >&5
 
2433
echo "${ECHO_T}no" >&6
 
2434
fi
 
2435
 
 
2436
    test -n "$CC" && break
 
2437
  done
 
2438
fi
 
2439
if test -z "$CC"; then
 
2440
  ac_ct_CC=$CC
 
2441
  for ac_prog in cl
 
2442
do
 
2443
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2444
set dummy $ac_prog; ac_word=$2
 
2445
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2447
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2449
else
 
2450
  if test -n "$ac_ct_CC"; then
 
2451
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2452
else
 
2453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2454
for as_dir in $PATH
 
2455
do
 
2456
  IFS=$as_save_IFS
 
2457
  test -z "$as_dir" && as_dir=.
 
2458
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2459
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2460
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2461
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2462
    break 2
 
2463
  fi
 
2464
done
 
2465
done
 
2466
 
 
2467
fi
 
2468
fi
 
2469
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2470
if test -n "$ac_ct_CC"; then
 
2471
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2472
echo "${ECHO_T}$ac_ct_CC" >&6
 
2473
else
 
2474
  echo "$as_me:$LINENO: result: no" >&5
 
2475
echo "${ECHO_T}no" >&6
 
2476
fi
 
2477
 
 
2478
  test -n "$ac_ct_CC" && break
 
2479
done
 
2480
 
 
2481
  CC=$ac_ct_CC
 
2482
fi
 
2483
 
 
2484
fi
 
2485
 
 
2486
 
 
2487
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2488
See \`config.log' for more details." >&5
 
2489
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2490
See \`config.log' for more details." >&2;}
 
2491
   { (exit 1); exit 1; }; }
 
2492
 
 
2493
# Provide some information about the compiler.
 
2494
echo "$as_me:$LINENO:" \
 
2495
     "checking for C compiler version" >&5
 
2496
ac_compiler=`set X $ac_compile; echo $2`
 
2497
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2498
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2499
  ac_status=$?
 
2500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2501
  (exit $ac_status); }
 
2502
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2503
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2504
  ac_status=$?
 
2505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2506
  (exit $ac_status); }
 
2507
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2508
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2509
  ac_status=$?
 
2510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2511
  (exit $ac_status); }
 
2512
 
 
2513
cat >conftest.$ac_ext <<_ACEOF
 
2514
/* confdefs.h.  */
 
2515
_ACEOF
 
2516
cat confdefs.h >>conftest.$ac_ext
 
2517
cat >>conftest.$ac_ext <<_ACEOF
 
2518
/* end confdefs.h.  */
 
2519
 
 
2520
int
 
2521
main ()
 
2522
{
 
2523
 
 
2524
  ;
 
2525
  return 0;
 
2526
}
 
2527
_ACEOF
 
2528
ac_clean_files_save=$ac_clean_files
 
2529
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2530
# Try to create an executable without -o first, disregard a.out.
 
2531
# It will help us diagnose broken compilers, and finding out an intuition
 
2532
# of exeext.
 
2533
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2534
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2535
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2536
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2537
  (eval $ac_link_default) 2>&5
 
2538
  ac_status=$?
 
2539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2540
  (exit $ac_status); }; then
 
2541
  # Find the output, starting from the most likely.  This scheme is
 
2542
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2543
# resort.
 
2544
 
 
2545
# Be careful to initialize this variable, since it used to be cached.
 
2546
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2547
ac_cv_exeext=
 
2548
# b.out is created by i960 compilers.
 
2549
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2550
do
 
2551
  test -f "$ac_file" || continue
 
2552
  case $ac_file in
 
2553
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2554
        ;;
 
2555
    conftest.$ac_ext )
 
2556
        # This is the source file.
 
2557
        ;;
 
2558
    [ab].out )
 
2559
        # We found the default executable, but exeext='' is most
 
2560
        # certainly right.
 
2561
        break;;
 
2562
    *.* )
 
2563
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2564
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2565
        # but it would be cool to find out if it's true.  Does anybody
 
2566
        # maintain Libtool? --akim.
 
2567
        export ac_cv_exeext
 
2568
        break;;
 
2569
    * )
 
2570
        break;;
 
2571
  esac
 
2572
done
 
2573
else
 
2574
  echo "$as_me: failed program was:" >&5
 
2575
sed 's/^/| /' conftest.$ac_ext >&5
 
2576
 
 
2577
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2578
See \`config.log' for more details." >&5
 
2579
echo "$as_me: error: C compiler cannot create executables
 
2580
See \`config.log' for more details." >&2;}
 
2581
   { (exit 77); exit 77; }; }
 
2582
fi
 
2583
 
 
2584
ac_exeext=$ac_cv_exeext
 
2585
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2586
echo "${ECHO_T}$ac_file" >&6
 
2587
 
 
2588
# Check the compiler produces executables we can run.  If not, either
 
2589
# the compiler is broken, or we cross compile.
 
2590
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2591
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2592
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2593
# If not cross compiling, check that we can run a simple program.
 
2594
if test "$cross_compiling" != yes; then
 
2595
  if { ac_try='./$ac_file'
 
2596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2597
  (eval $ac_try) 2>&5
 
2598
  ac_status=$?
 
2599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2600
  (exit $ac_status); }; }; then
 
2601
    cross_compiling=no
 
2602
  else
 
2603
    if test "$cross_compiling" = maybe; then
 
2604
        cross_compiling=yes
 
2605
    else
 
2606
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2607
If you meant to cross compile, use \`--host'.
 
2608
See \`config.log' for more details." >&5
 
2609
echo "$as_me: error: cannot run C compiled programs.
 
2610
If you meant to cross compile, use \`--host'.
 
2611
See \`config.log' for more details." >&2;}
 
2612
   { (exit 1); exit 1; }; }
 
2613
    fi
 
2614
  fi
 
2615
fi
 
2616
echo "$as_me:$LINENO: result: yes" >&5
 
2617
echo "${ECHO_T}yes" >&6
 
2618
 
 
2619
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2620
ac_clean_files=$ac_clean_files_save
 
2621
# Check the compiler produces executables we can run.  If not, either
 
2622
# the compiler is broken, or we cross compile.
 
2623
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2624
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2625
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2626
echo "${ECHO_T}$cross_compiling" >&6
 
2627
 
 
2628
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2629
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2630
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2631
  (eval $ac_link) 2>&5
 
2632
  ac_status=$?
 
2633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2634
  (exit $ac_status); }; then
 
2635
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2636
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2637
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2638
# `rm'.
 
2639
for ac_file in conftest.exe conftest conftest.*; do
 
2640
  test -f "$ac_file" || continue
 
2641
  case $ac_file in
 
2642
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2643
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2644
          export ac_cv_exeext
 
2645
          break;;
 
2646
    * ) break;;
 
2647
  esac
 
2648
done
 
2649
else
 
2650
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2651
See \`config.log' for more details." >&5
 
2652
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2653
See \`config.log' for more details." >&2;}
 
2654
   { (exit 1); exit 1; }; }
 
2655
fi
 
2656
 
 
2657
rm -f conftest$ac_cv_exeext
 
2658
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2659
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2660
 
 
2661
rm -f conftest.$ac_ext
 
2662
EXEEXT=$ac_cv_exeext
 
2663
ac_exeext=$EXEEXT
 
2664
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2665
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2666
if test "${ac_cv_objext+set}" = set; then
 
2667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2668
else
 
2669
  cat >conftest.$ac_ext <<_ACEOF
 
2670
/* confdefs.h.  */
 
2671
_ACEOF
 
2672
cat confdefs.h >>conftest.$ac_ext
 
2673
cat >>conftest.$ac_ext <<_ACEOF
 
2674
/* end confdefs.h.  */
 
2675
 
 
2676
int
 
2677
main ()
 
2678
{
 
2679
 
 
2680
  ;
 
2681
  return 0;
 
2682
}
 
2683
_ACEOF
 
2684
rm -f conftest.o conftest.obj
 
2685
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2686
  (eval $ac_compile) 2>&5
 
2687
  ac_status=$?
 
2688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2689
  (exit $ac_status); }; then
 
2690
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2691
  case $ac_file in
 
2692
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2693
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2694
       break;;
 
2695
  esac
 
2696
done
 
2697
else
 
2698
  echo "$as_me: failed program was:" >&5
 
2699
sed 's/^/| /' conftest.$ac_ext >&5
 
2700
 
 
2701
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2702
See \`config.log' for more details." >&5
 
2703
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2704
See \`config.log' for more details." >&2;}
 
2705
   { (exit 1); exit 1; }; }
 
2706
fi
 
2707
 
 
2708
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2709
fi
 
2710
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2711
echo "${ECHO_T}$ac_cv_objext" >&6
 
2712
OBJEXT=$ac_cv_objext
 
2713
ac_objext=$OBJEXT
 
2714
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2715
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2716
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2718
else
 
2719
  cat >conftest.$ac_ext <<_ACEOF
 
2720
/* confdefs.h.  */
 
2721
_ACEOF
 
2722
cat confdefs.h >>conftest.$ac_ext
 
2723
cat >>conftest.$ac_ext <<_ACEOF
 
2724
/* end confdefs.h.  */
 
2725
 
 
2726
int
 
2727
main ()
 
2728
{
 
2729
#ifndef __GNUC__
 
2730
       choke me
 
2731
#endif
 
2732
 
 
2733
  ;
 
2734
  return 0;
 
2735
}
 
2736
_ACEOF
 
2737
rm -f conftest.$ac_objext
 
2738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2739
  (eval $ac_compile) 2>conftest.er1
 
2740
  ac_status=$?
 
2741
  grep -v '^ *+' conftest.er1 >conftest.err
 
2742
  rm -f conftest.er1
 
2743
  cat conftest.err >&5
 
2744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2745
  (exit $ac_status); } &&
 
2746
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2748
  (eval $ac_try) 2>&5
 
2749
  ac_status=$?
 
2750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2751
  (exit $ac_status); }; } &&
 
2752
         { ac_try='test -s conftest.$ac_objext'
 
2753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2754
  (eval $ac_try) 2>&5
 
2755
  ac_status=$?
 
2756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2757
  (exit $ac_status); }; }; then
 
2758
  ac_compiler_gnu=yes
 
2759
else
 
2760
  echo "$as_me: failed program was:" >&5
 
2761
sed 's/^/| /' conftest.$ac_ext >&5
 
2762
 
 
2763
ac_compiler_gnu=no
 
2764
fi
 
2765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2766
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2767
 
 
2768
fi
 
2769
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2770
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2771
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2772
ac_test_CFLAGS=${CFLAGS+set}
 
2773
ac_save_CFLAGS=$CFLAGS
 
2774
CFLAGS="-g"
 
2775
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2776
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2777
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2779
else
 
2780
  cat >conftest.$ac_ext <<_ACEOF
 
2781
/* confdefs.h.  */
 
2782
_ACEOF
 
2783
cat confdefs.h >>conftest.$ac_ext
 
2784
cat >>conftest.$ac_ext <<_ACEOF
 
2785
/* end confdefs.h.  */
 
2786
 
 
2787
int
 
2788
main ()
 
2789
{
 
2790
 
 
2791
  ;
 
2792
  return 0;
 
2793
}
 
2794
_ACEOF
 
2795
rm -f conftest.$ac_objext
 
2796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2797
  (eval $ac_compile) 2>conftest.er1
 
2798
  ac_status=$?
 
2799
  grep -v '^ *+' conftest.er1 >conftest.err
 
2800
  rm -f conftest.er1
 
2801
  cat conftest.err >&5
 
2802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2803
  (exit $ac_status); } &&
 
2804
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2806
  (eval $ac_try) 2>&5
 
2807
  ac_status=$?
 
2808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2809
  (exit $ac_status); }; } &&
 
2810
         { ac_try='test -s conftest.$ac_objext'
 
2811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2812
  (eval $ac_try) 2>&5
 
2813
  ac_status=$?
 
2814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2815
  (exit $ac_status); }; }; then
 
2816
  ac_cv_prog_cc_g=yes
 
2817
else
 
2818
  echo "$as_me: failed program was:" >&5
 
2819
sed 's/^/| /' conftest.$ac_ext >&5
 
2820
 
 
2821
ac_cv_prog_cc_g=no
 
2822
fi
 
2823
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2824
fi
 
2825
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2826
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2827
if test "$ac_test_CFLAGS" = set; then
 
2828
  CFLAGS=$ac_save_CFLAGS
 
2829
elif test $ac_cv_prog_cc_g = yes; then
 
2830
  if test "$GCC" = yes; then
 
2831
    CFLAGS="-g -O2"
 
2832
  else
 
2833
    CFLAGS="-g"
 
2834
  fi
 
2835
else
 
2836
  if test "$GCC" = yes; then
 
2837
    CFLAGS="-O2"
 
2838
  else
 
2839
    CFLAGS=
 
2840
  fi
 
2841
fi
 
2842
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2843
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2844
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2846
else
 
2847
  ac_cv_prog_cc_stdc=no
 
2848
ac_save_CC=$CC
 
2849
cat >conftest.$ac_ext <<_ACEOF
 
2850
/* confdefs.h.  */
 
2851
_ACEOF
 
2852
cat confdefs.h >>conftest.$ac_ext
 
2853
cat >>conftest.$ac_ext <<_ACEOF
 
2854
/* end confdefs.h.  */
 
2855
#include <stdarg.h>
 
2856
#include <stdio.h>
 
2857
#include <sys/types.h>
 
2858
#include <sys/stat.h>
 
2859
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2860
struct buf { int x; };
 
2861
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2862
static char *e (p, i)
 
2863
     char **p;
 
2864
     int i;
 
2865
{
 
2866
  return p[i];
 
2867
}
 
2868
static char *f (char * (*g) (char **, int), char **p, ...)
 
2869
{
 
2870
  char *s;
 
2871
  va_list v;
 
2872
  va_start (v,p);
 
2873
  s = g (p, va_arg (v,int));
 
2874
  va_end (v);
 
2875
  return s;
 
2876
}
 
2877
 
 
2878
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2879
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2880
   These don't provoke an error unfortunately, instead are silently treated
 
2881
   as 'x'.  The following induces an error, until -std1 is added to get
 
2882
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2883
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2884
   that's true only with -std1.  */
 
2885
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2886
 
 
2887
int test (int i, double x);
 
2888
struct s1 {int (*f) (int a);};
 
2889
struct s2 {int (*f) (double a);};
 
2890
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2891
int argc;
 
2892
char **argv;
 
2893
int
 
2894
main ()
 
2895
{
 
2896
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2897
  ;
 
2898
  return 0;
 
2899
}
 
2900
_ACEOF
 
2901
# Don't try gcc -ansi; that turns off useful extensions and
 
2902
# breaks some systems' header files.
 
2903
# AIX                   -qlanglvl=ansi
 
2904
# Ultrix and OSF/1      -std1
 
2905
# HP-UX 10.20 and later -Ae
 
2906
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2907
# SVR4                  -Xc -D__EXTENSIONS__
 
2908
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2909
do
 
2910
  CC="$ac_save_CC $ac_arg"
 
2911
  rm -f conftest.$ac_objext
 
2912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2913
  (eval $ac_compile) 2>conftest.er1
 
2914
  ac_status=$?
 
2915
  grep -v '^ *+' conftest.er1 >conftest.err
 
2916
  rm -f conftest.er1
 
2917
  cat conftest.err >&5
 
2918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2919
  (exit $ac_status); } &&
 
2920
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2921
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2922
  (eval $ac_try) 2>&5
 
2923
  ac_status=$?
 
2924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2925
  (exit $ac_status); }; } &&
 
2926
         { ac_try='test -s conftest.$ac_objext'
 
2927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2928
  (eval $ac_try) 2>&5
 
2929
  ac_status=$?
 
2930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2931
  (exit $ac_status); }; }; then
 
2932
  ac_cv_prog_cc_stdc=$ac_arg
 
2933
break
 
2934
else
 
2935
  echo "$as_me: failed program was:" >&5
 
2936
sed 's/^/| /' conftest.$ac_ext >&5
 
2937
 
 
2938
fi
 
2939
rm -f conftest.err conftest.$ac_objext
 
2940
done
 
2941
rm -f conftest.$ac_ext conftest.$ac_objext
 
2942
CC=$ac_save_CC
 
2943
 
 
2944
fi
 
2945
 
 
2946
case "x$ac_cv_prog_cc_stdc" in
 
2947
  x|xno)
 
2948
    echo "$as_me:$LINENO: result: none needed" >&5
 
2949
echo "${ECHO_T}none needed" >&6 ;;
 
2950
  *)
 
2951
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2952
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2953
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2954
esac
 
2955
 
 
2956
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2957
# in C++ we need to declare it.  In case someone uses the same compiler
 
2958
# for both compiling C and C++ we need to have the C++ compiler decide
 
2959
# the declaration of exit, since it's the most demanding environment.
 
2960
cat >conftest.$ac_ext <<_ACEOF
 
2961
#ifndef __cplusplus
 
2962
  choke me
 
2963
#endif
 
2964
_ACEOF
 
2965
rm -f conftest.$ac_objext
 
2966
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2967
  (eval $ac_compile) 2>conftest.er1
 
2968
  ac_status=$?
 
2969
  grep -v '^ *+' conftest.er1 >conftest.err
 
2970
  rm -f conftest.er1
 
2971
  cat conftest.err >&5
 
2972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2973
  (exit $ac_status); } &&
 
2974
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2975
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2976
  (eval $ac_try) 2>&5
 
2977
  ac_status=$?
 
2978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2979
  (exit $ac_status); }; } &&
 
2980
         { ac_try='test -s conftest.$ac_objext'
 
2981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2982
  (eval $ac_try) 2>&5
 
2983
  ac_status=$?
 
2984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2985
  (exit $ac_status); }; }; then
 
2986
  for ac_declaration in \
 
2987
   '' \
 
2988
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2989
   'extern "C" void std::exit (int); using std::exit;' \
 
2990
   'extern "C" void exit (int) throw ();' \
 
2991
   'extern "C" void exit (int);' \
 
2992
   'void exit (int);'
 
2993
do
 
2994
  cat >conftest.$ac_ext <<_ACEOF
 
2995
/* confdefs.h.  */
 
2996
_ACEOF
 
2997
cat confdefs.h >>conftest.$ac_ext
 
2998
cat >>conftest.$ac_ext <<_ACEOF
 
2999
/* end confdefs.h.  */
 
3000
$ac_declaration
 
3001
#include <stdlib.h>
 
3002
int
 
3003
main ()
 
3004
{
 
3005
exit (42);
 
3006
  ;
 
3007
  return 0;
 
3008
}
 
3009
_ACEOF
 
3010
rm -f conftest.$ac_objext
 
3011
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3012
  (eval $ac_compile) 2>conftest.er1
 
3013
  ac_status=$?
 
3014
  grep -v '^ *+' conftest.er1 >conftest.err
 
3015
  rm -f conftest.er1
 
3016
  cat conftest.err >&5
 
3017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3018
  (exit $ac_status); } &&
 
3019
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3021
  (eval $ac_try) 2>&5
 
3022
  ac_status=$?
 
3023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3024
  (exit $ac_status); }; } &&
 
3025
         { ac_try='test -s conftest.$ac_objext'
 
3026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3027
  (eval $ac_try) 2>&5
 
3028
  ac_status=$?
 
3029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3030
  (exit $ac_status); }; }; then
 
3031
  :
 
3032
else
 
3033
  echo "$as_me: failed program was:" >&5
 
3034
sed 's/^/| /' conftest.$ac_ext >&5
 
3035
 
 
3036
continue
 
3037
fi
 
3038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3039
  cat >conftest.$ac_ext <<_ACEOF
 
3040
/* confdefs.h.  */
 
3041
_ACEOF
 
3042
cat confdefs.h >>conftest.$ac_ext
 
3043
cat >>conftest.$ac_ext <<_ACEOF
 
3044
/* end confdefs.h.  */
 
3045
$ac_declaration
 
3046
int
 
3047
main ()
 
3048
{
 
3049
exit (42);
 
3050
  ;
 
3051
  return 0;
 
3052
}
 
3053
_ACEOF
 
3054
rm -f conftest.$ac_objext
 
3055
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3056
  (eval $ac_compile) 2>conftest.er1
 
3057
  ac_status=$?
 
3058
  grep -v '^ *+' conftest.er1 >conftest.err
 
3059
  rm -f conftest.er1
 
3060
  cat conftest.err >&5
 
3061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3062
  (exit $ac_status); } &&
 
3063
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3065
  (eval $ac_try) 2>&5
 
3066
  ac_status=$?
 
3067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3068
  (exit $ac_status); }; } &&
 
3069
         { ac_try='test -s conftest.$ac_objext'
 
3070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3071
  (eval $ac_try) 2>&5
 
3072
  ac_status=$?
 
3073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3074
  (exit $ac_status); }; }; then
 
3075
  break
 
3076
else
 
3077
  echo "$as_me: failed program was:" >&5
 
3078
sed 's/^/| /' conftest.$ac_ext >&5
 
3079
 
 
3080
fi
 
3081
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3082
done
 
3083
rm -f conftest*
 
3084
if test -n "$ac_declaration"; then
 
3085
  echo '#ifdef __cplusplus' >>confdefs.h
 
3086
  echo $ac_declaration      >>confdefs.h
 
3087
  echo '#endif'             >>confdefs.h
 
3088
fi
 
3089
 
 
3090
else
 
3091
  echo "$as_me: failed program was:" >&5
 
3092
sed 's/^/| /' conftest.$ac_ext >&5
 
3093
 
 
3094
fi
 
3095
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3096
ac_ext=c
 
3097
ac_cpp='$CPP $CPPFLAGS'
 
3098
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3099
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3100
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3101
 
 
3102
depcc="$CC"   am_compiler_list=
 
3103
 
 
3104
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3105
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3106
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3107
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3108
else
 
3109
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3110
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3111
  # making bogus files that we don't know about and never remove.  For
 
3112
  # instance it was reported that on HP-UX the gcc test will end up
 
3113
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3114
  # in D'.
 
3115
  mkdir conftest.dir
 
3116
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3117
  # using a relative directory.
 
3118
  cp "$am_depcomp" conftest.dir
 
3119
  cd conftest.dir
 
3120
  # We will build objects and dependencies in a subdirectory because
 
3121
  # it helps to detect inapplicable dependency modes.  For instance
 
3122
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3123
  # side effect of compilation, but ICC will put the dependencies in
 
3124
  # the current directory while Tru64 will put them in the object
 
3125
  # directory.
 
3126
  mkdir sub
 
3127
 
 
3128
  am_cv_CC_dependencies_compiler_type=none
 
3129
  if test "$am_compiler_list" = ""; then
 
3130
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3131
  fi
 
3132
  for depmode in $am_compiler_list; do
 
3133
    # Setup a source with many dependencies, because some compilers
 
3134
    # like to wrap large dependency lists on column 80 (with \), and
 
3135
    # we should not choose a depcomp mode which is confused by this.
 
3136
    #
 
3137
    # We need to recreate these files for each test, as the compiler may
 
3138
    # overwrite some of them when testing with obscure command lines.
 
3139
    # This happens at least with the AIX C compiler.
 
3140
    : > sub/conftest.c
 
3141
    for i in 1 2 3 4 5 6; do
 
3142
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3143
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3144
      # Solaris 8's {/usr,}/bin/sh.
 
3145
      touch sub/conftst$i.h
 
3146
    done
 
3147
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3148
 
 
3149
    case $depmode in
 
3150
    nosideeffect)
 
3151
      # after this tag, mechanisms are not by side-effect, so they'll
 
3152
      # only be used when explicitly requested
 
3153
      if test "x$enable_dependency_tracking" = xyes; then
 
3154
        continue
 
3155
      else
 
3156
        break
 
3157
      fi
 
3158
      ;;
 
3159
    none) break ;;
 
3160
    esac
 
3161
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3162
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3163
    # handle `-M -o', and we need to detect this.
 
3164
    if depmode=$depmode \
 
3165
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3166
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3167
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3168
         >/dev/null 2>conftest.err &&
 
3169
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3170
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3171
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3172
      # icc doesn't choke on unknown options, it will just issue warnings
 
3173
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3174
      # that says an option was ignored or not supported.
 
3175
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3176
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3177
      # The diagnosis changed in icc 8.0:
 
3178
      #   icc: Command line remark: option '-MP' not supported
 
3179
      if (grep 'ignoring option' conftest.err ||
 
3180
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3181
        am_cv_CC_dependencies_compiler_type=$depmode
 
3182
        break
 
3183
      fi
 
3184
    fi
 
3185
  done
 
3186
 
 
3187
  cd ..
 
3188
  rm -rf conftest.dir
 
3189
else
 
3190
  am_cv_CC_dependencies_compiler_type=none
 
3191
fi
 
3192
 
 
3193
fi
 
3194
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3195
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3196
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3197
 
 
3198
 
 
3199
 
 
3200
if
 
3201
  test "x$enable_dependency_tracking" != xno \
 
3202
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3203
  am__fastdepCC_TRUE=
 
3204
  am__fastdepCC_FALSE='#'
 
3205
else
 
3206
  am__fastdepCC_TRUE='#'
 
3207
  am__fastdepCC_FALSE=
 
3208
fi
 
3209
 
 
3210
 
 
3211
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3212
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3213
if test "${lt_cv_path_SED+set}" = set; then
 
3214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3215
else
 
3216
  # Loop through the user's path and test for sed and gsed.
 
3217
# Then use that list of sed's as ones to test for truncation.
 
3218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3219
for as_dir in $PATH
 
3220
do
 
3221
  IFS=$as_save_IFS
 
3222
  test -z "$as_dir" && as_dir=.
 
3223
  for lt_ac_prog in sed gsed; do
 
3224
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3225
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3226
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3227
      fi
 
3228
    done
 
3229
  done
 
3230
done
 
3231
lt_ac_max=0
 
3232
lt_ac_count=0
 
3233
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3234
# along with /bin/sed that truncates output.
 
3235
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3236
  test ! -f $lt_ac_sed && continue
 
3237
  cat /dev/null > conftest.in
 
3238
  lt_ac_count=0
 
3239
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3240
  # Check for GNU sed and select it if it is found.
 
3241
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3242
    lt_cv_path_SED=$lt_ac_sed
 
3243
    break
 
3244
  fi
 
3245
  while true; do
 
3246
    cat conftest.in conftest.in >conftest.tmp
 
3247
    mv conftest.tmp conftest.in
 
3248
    cp conftest.in conftest.nl
 
3249
    echo >>conftest.nl
 
3250
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3251
    cmp -s conftest.out conftest.nl || break
 
3252
    # 10000 chars as input seems more than enough
 
3253
    test $lt_ac_count -gt 10 && break
 
3254
    lt_ac_count=`expr $lt_ac_count + 1`
 
3255
    if test $lt_ac_count -gt $lt_ac_max; then
 
3256
      lt_ac_max=$lt_ac_count
 
3257
      lt_cv_path_SED=$lt_ac_sed
 
3258
    fi
 
3259
  done
 
3260
done
 
3261
 
 
3262
fi
 
3263
 
 
3264
SED=$lt_cv_path_SED
 
3265
echo "$as_me:$LINENO: result: $SED" >&5
 
3266
echo "${ECHO_T}$SED" >&6
 
3267
 
 
3268
echo "$as_me:$LINENO: checking for egrep" >&5
 
3269
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3270
if test "${ac_cv_prog_egrep+set}" = set; then
 
3271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3272
else
 
3273
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3274
    then ac_cv_prog_egrep='grep -E'
 
3275
    else ac_cv_prog_egrep='egrep'
 
3276
    fi
 
3277
fi
 
3278
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3279
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3280
 EGREP=$ac_cv_prog_egrep
 
3281
 
 
3282
 
 
3283
 
 
3284
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3285
if test "${with_gnu_ld+set}" = set; then
 
3286
  withval="$with_gnu_ld"
 
3287
  test "$withval" = no || with_gnu_ld=yes
 
3288
else
 
3289
  with_gnu_ld=no
 
3290
fi;
 
3291
ac_prog=ld
 
3292
if test "$GCC" = yes; then
 
3293
  # Check if gcc -print-prog-name=ld gives a path.
 
3294
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3295
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3296
  case $host in
 
3297
  *-*-mingw*)
 
3298
    # gcc leaves a trailing carriage return which upsets mingw
 
3299
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3300
  *)
 
3301
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3302
  esac
 
3303
  case $ac_prog in
 
3304
    # Accept absolute paths.
 
3305
    [\\/]* | ?:[\\/]*)
 
3306
      re_direlt='/[^/][^/]*/\.\./'
 
3307
      # Canonicalize the pathname of ld
 
3308
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3309
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3310
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3311
      done
 
3312
      test -z "$LD" && LD="$ac_prog"
 
3313
      ;;
 
3314
  "")
 
3315
    # If it fails, then pretend we aren't using GCC.
 
3316
    ac_prog=ld
 
3317
    ;;
 
3318
  *)
 
3319
    # If it is relative, then search for the first ld in PATH.
 
3320
    with_gnu_ld=unknown
 
3321
    ;;
 
3322
  esac
 
3323
elif test "$with_gnu_ld" = yes; then
 
3324
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3325
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3326
else
 
3327
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3328
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3329
fi
 
3330
if test "${lt_cv_path_LD+set}" = set; then
 
3331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3332
else
 
3333
  if test -z "$LD"; then
 
3334
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3335
  for ac_dir in $PATH; do
 
3336
    IFS="$lt_save_ifs"
 
3337
    test -z "$ac_dir" && ac_dir=.
 
3338
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3339
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3340
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3341
      # but apparently some variants of GNU ld only accept -v.
 
3342
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3343
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3344
      *GNU* | *'with BFD'*)
 
3345
        test "$with_gnu_ld" != no && break
 
3346
        ;;
 
3347
      *)
 
3348
        test "$with_gnu_ld" != yes && break
 
3349
        ;;
 
3350
      esac
 
3351
    fi
 
3352
  done
 
3353
  IFS="$lt_save_ifs"
 
3354
else
 
3355
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3356
fi
 
3357
fi
 
3358
 
 
3359
LD="$lt_cv_path_LD"
 
3360
if test -n "$LD"; then
 
3361
  echo "$as_me:$LINENO: result: $LD" >&5
 
3362
echo "${ECHO_T}$LD" >&6
 
3363
else
 
3364
  echo "$as_me:$LINENO: result: no" >&5
 
3365
echo "${ECHO_T}no" >&6
 
3366
fi
 
3367
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3368
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3369
   { (exit 1); exit 1; }; }
 
3370
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3371
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3372
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3374
else
 
3375
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3376
case `$LD -v 2>&1 </dev/null` in
 
3377
*GNU* | *'with BFD'*)
 
3378
  lt_cv_prog_gnu_ld=yes
 
3379
  ;;
 
3380
*)
 
3381
  lt_cv_prog_gnu_ld=no
 
3382
  ;;
 
3383
esac
 
3384
fi
 
3385
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3386
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3387
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3388
 
 
3389
 
 
3390
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3391
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3392
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3394
else
 
3395
  lt_cv_ld_reload_flag='-r'
 
3396
fi
 
3397
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3398
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3399
reload_flag=$lt_cv_ld_reload_flag
 
3400
case $reload_flag in
 
3401
"" | " "*) ;;
 
3402
*) reload_flag=" $reload_flag" ;;
 
3403
esac
 
3404
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3405
case $host_os in
 
3406
  darwin*)
 
3407
    if test "$GCC" = yes; then
 
3408
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3409
    else
 
3410
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3411
    fi
 
3412
    ;;
 
3413
esac
 
3414
 
 
3415
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3416
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3417
if test "${lt_cv_path_NM+set}" = set; then
 
3418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3419
else
 
3420
  if test -n "$NM"; then
 
3421
  # Let the user override the test.
 
3422
  lt_cv_path_NM="$NM"
 
3423
else
 
3424
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3425
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3426
    lt_nm_to_check="$lt_nm_to_check nm"
 
3427
  fi
 
3428
  for lt_tmp_nm in $lt_nm_to_check; do
 
3429
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3430
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3431
      IFS="$lt_save_ifs"
 
3432
      test -z "$ac_dir" && ac_dir=.
 
3433
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3434
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3435
        # Check to see if the nm accepts a BSD-compat flag.
 
3436
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3437
        #   nm: unknown option "B" ignored
 
3438
        # Tru64's nm complains that /dev/null is an invalid object file
 
3439
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3440
        */dev/null* | *'Invalid file or object type'*)
 
3441
          lt_cv_path_NM="$tmp_nm -B"
 
3442
          break
 
3443
          ;;
 
3444
        *)
 
3445
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3446
          */dev/null*)
 
3447
            lt_cv_path_NM="$tmp_nm -p"
 
3448
            break
 
3449
            ;;
 
3450
          *)
 
3451
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3452
            continue # so that we can try to find one that supports BSD flags
 
3453
            ;;
 
3454
          esac
 
3455
          ;;
 
3456
        esac
 
3457
      fi
 
3458
    done
 
3459
    IFS="$lt_save_ifs"
 
3460
  done
 
3461
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3462
fi
 
3463
fi
 
3464
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3465
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3466
NM="$lt_cv_path_NM"
 
3467
 
 
3468
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3469
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3470
LN_S=$as_ln_s
 
3471
if test "$LN_S" = "ln -s"; then
 
3472
  echo "$as_me:$LINENO: result: yes" >&5
 
3473
echo "${ECHO_T}yes" >&6
 
3474
else
 
3475
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3476
echo "${ECHO_T}no, using $LN_S" >&6
 
3477
fi
 
3478
 
 
3479
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3480
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3481
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3483
else
 
3484
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3485
lt_cv_file_magic_test_file=
 
3486
lt_cv_deplibs_check_method='unknown'
 
3487
# Need to set the preceding variable on all platforms that support
 
3488
# interlibrary dependencies.
 
3489
# 'none' -- dependencies not supported.
 
3490
# `unknown' -- same as none, but documents that we really don't know.
 
3491
# 'pass_all' -- all dependencies passed with no checks.
 
3492
# 'test_compile' -- check by making test program.
 
3493
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3494
# which responds to the $file_magic_cmd with a given extended regex.
 
3495
# If you have `file' or equivalent on your system and you're not sure
 
3496
# whether `pass_all' will *always* work, you probably want this one.
 
3497
 
 
3498
case $host_os in
 
3499
aix4* | aix5*)
 
3500
  lt_cv_deplibs_check_method=pass_all
 
3501
  ;;
 
3502
 
 
3503
beos*)
 
3504
  lt_cv_deplibs_check_method=pass_all
 
3505
  ;;
 
3506
 
 
3507
bsdi[45]*)
 
3508
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3509
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3510
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3511
  ;;
 
3512
 
 
3513
cygwin*)
 
3514
  # func_win32_libid is a shell function defined in ltmain.sh
 
3515
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3516
  lt_cv_file_magic_cmd='func_win32_libid'
 
3517
  ;;
 
3518
 
 
3519
mingw* | pw32*)
 
3520
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3521
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3522
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3523
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3524
  ;;
 
3525
 
 
3526
darwin* | rhapsody*)
 
3527
  lt_cv_deplibs_check_method=pass_all
 
3528
  ;;
 
3529
 
 
3530
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3531
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3532
    case $host_cpu in
 
3533
    i*86 )
 
3534
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3535
      # Let's accept both of them until this is cleared up.
 
3536
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
3537
      lt_cv_file_magic_cmd=/usr/bin/file
 
3538
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3539
      ;;
 
3540
    esac
 
3541
  else
 
3542
    lt_cv_deplibs_check_method=pass_all
 
3543
  fi
 
3544
  ;;
 
3545
 
 
3546
gnu*)
 
3547
  lt_cv_deplibs_check_method=pass_all
 
3548
  ;;
 
3549
 
 
3550
hpux10.20* | hpux11*)
 
3551
  lt_cv_file_magic_cmd=/usr/bin/file
 
3552
  case $host_cpu in
 
3553
  ia64*)
 
3554
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3555
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3556
    ;;
 
3557
  hppa*64*)
 
3558
    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]'
 
3559
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3560
    ;;
 
3561
  *)
 
3562
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3563
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3564
    ;;
 
3565
  esac
 
3566
  ;;
 
3567
 
 
3568
interix3*)
 
3569
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3570
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3571
  ;;
 
3572
 
 
3573
irix5* | irix6* | nonstopux*)
 
3574
  case $LD in
 
3575
  *-32|*"-32 ") libmagic=32-bit;;
 
3576
  *-n32|*"-n32 ") libmagic=N32;;
 
3577
  *-64|*"-64 ") libmagic=64-bit;;
 
3578
  *) libmagic=never-match;;
 
3579
  esac
 
3580
  lt_cv_deplibs_check_method=pass_all
 
3581
  ;;
 
3582
 
 
3583
# This must be Linux ELF.
 
3584
linux*)
 
3585
  lt_cv_deplibs_check_method=pass_all
 
3586
  ;;
 
3587
 
 
3588
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3589
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3590
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3591
  else
 
3592
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3593
  fi
 
3594
  ;;
 
3595
 
 
3596
newos6*)
 
3597
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3598
  lt_cv_file_magic_cmd=/usr/bin/file
 
3599
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3600
  ;;
 
3601
 
 
3602
nto-qnx*)
 
3603
  lt_cv_deplibs_check_method=unknown
 
3604
  ;;
 
3605
 
 
3606
openbsd*)
 
3607
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3608
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
3609
  else
 
3610
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3611
  fi
 
3612
  ;;
 
3613
 
 
3614
osf3* | osf4* | osf5*)
 
3615
  lt_cv_deplibs_check_method=pass_all
 
3616
  ;;
 
3617
 
 
3618
solaris*)
 
3619
  lt_cv_deplibs_check_method=pass_all
 
3620
  ;;
 
3621
 
 
3622
sysv4 | sysv4.3*)
 
3623
  case $host_vendor in
 
3624
  motorola)
 
3625
    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]'
 
3626
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3627
    ;;
 
3628
  ncr)
 
3629
    lt_cv_deplibs_check_method=pass_all
 
3630
    ;;
 
3631
  sequent)
 
3632
    lt_cv_file_magic_cmd='/bin/file'
 
3633
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3634
    ;;
 
3635
  sni)
 
3636
    lt_cv_file_magic_cmd='/bin/file'
 
3637
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3638
    lt_cv_file_magic_test_file=/lib/libc.so
 
3639
    ;;
 
3640
  siemens)
 
3641
    lt_cv_deplibs_check_method=pass_all
 
3642
    ;;
 
3643
  pc)
 
3644
    lt_cv_deplibs_check_method=pass_all
 
3645
    ;;
 
3646
  esac
 
3647
  ;;
 
3648
 
 
3649
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3650
  lt_cv_deplibs_check_method=pass_all
 
3651
  ;;
 
3652
esac
 
3653
 
 
3654
fi
 
3655
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3656
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3657
file_magic_cmd=$lt_cv_file_magic_cmd
 
3658
deplibs_check_method=$lt_cv_deplibs_check_method
 
3659
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3660
 
 
3661
 
 
3662
 
 
3663
 
 
3664
# If no C compiler was specified, use CC.
 
3665
LTCC=${LTCC-"$CC"}
 
3666
 
 
3667
# If no C compiler flags were specified, use CFLAGS.
 
3668
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3669
 
 
3670
# Allow CC to be a program name with arguments.
 
3671
compiler=$CC
 
3672
 
 
3673
 
 
3674
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3675
if test "${enable_libtool_lock+set}" = set; then
 
3676
  enableval="$enable_libtool_lock"
 
3677
 
 
3678
fi;
 
3679
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3680
 
 
3681
# Some flags need to be propagated to the compiler or linker for good
 
3682
# libtool support.
 
3683
case $host in
 
3684
ia64-*-hpux*)
 
3685
  # Find out which ABI we are using.
 
3686
  echo 'int i;' > conftest.$ac_ext
 
3687
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3688
  (eval $ac_compile) 2>&5
 
3689
  ac_status=$?
 
3690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3691
  (exit $ac_status); }; then
 
3692
    case `/usr/bin/file conftest.$ac_objext` in
 
3693
    *ELF-32*)
 
3694
      HPUX_IA64_MODE="32"
 
3695
      ;;
 
3696
    *ELF-64*)
 
3697
      HPUX_IA64_MODE="64"
 
3698
      ;;
 
3699
    esac
 
3700
  fi
 
3701
  rm -rf conftest*
 
3702
  ;;
 
3703
*-*-irix6*)
 
3704
  # Find out which ABI we are using.
 
3705
  echo '#line 3705 "configure"' > conftest.$ac_ext
 
3706
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3707
  (eval $ac_compile) 2>&5
 
3708
  ac_status=$?
 
3709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3710
  (exit $ac_status); }; then
 
3711
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3712
    case `/usr/bin/file conftest.$ac_objext` in
 
3713
    *32-bit*)
 
3714
      LD="${LD-ld} -melf32bsmip"
 
3715
      ;;
 
3716
    *N32*)
 
3717
      LD="${LD-ld} -melf32bmipn32"
 
3718
      ;;
 
3719
    *64-bit*)
 
3720
      LD="${LD-ld} -melf64bmip"
 
3721
      ;;
 
3722
    esac
 
3723
   else
 
3724
    case `/usr/bin/file conftest.$ac_objext` in
 
3725
    *32-bit*)
 
3726
      LD="${LD-ld} -32"
 
3727
      ;;
 
3728
    *N32*)
 
3729
      LD="${LD-ld} -n32"
 
3730
      ;;
 
3731
    *64-bit*)
 
3732
      LD="${LD-ld} -64"
 
3733
      ;;
 
3734
    esac
 
3735
   fi
 
3736
  fi
 
3737
  rm -rf conftest*
 
3738
  ;;
 
3739
 
 
3740
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3741
  # Find out which ABI we are using.
 
3742
  echo 'int i;' > conftest.$ac_ext
 
3743
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3744
  (eval $ac_compile) 2>&5
 
3745
  ac_status=$?
 
3746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3747
  (exit $ac_status); }; then
 
3748
    case `/usr/bin/file conftest.o` in
 
3749
    *32-bit*)
 
3750
      case $host in
 
3751
        x86_64-*linux*)
 
3752
          LD="${LD-ld} -m elf_i386"
 
3753
          ;;
 
3754
        ppc64-*linux*|powerpc64-*linux*)
 
3755
          LD="${LD-ld} -m elf32ppclinux"
 
3756
          ;;
 
3757
        s390x-*linux*)
 
3758
          LD="${LD-ld} -m elf_s390"
 
3759
          ;;
 
3760
        sparc64-*linux*)
 
3761
          LD="${LD-ld} -m elf32_sparc"
 
3762
          ;;
 
3763
      esac
 
3764
      ;;
 
3765
    *64-bit*)
 
3766
      case $host in
 
3767
        x86_64-*linux*)
 
3768
          LD="${LD-ld} -m elf_x86_64"
 
3769
          ;;
 
3770
        ppc*-*linux*|powerpc*-*linux*)
 
3771
          LD="${LD-ld} -m elf64ppc"
 
3772
          ;;
 
3773
        s390*-*linux*)
 
3774
          LD="${LD-ld} -m elf64_s390"
 
3775
          ;;
 
3776
        sparc*-*linux*)
 
3777
          LD="${LD-ld} -m elf64_sparc"
 
3778
          ;;
 
3779
      esac
 
3780
      ;;
 
3781
    esac
 
3782
  fi
 
3783
  rm -rf conftest*
 
3784
  ;;
 
3785
 
 
3786
*-*-sco3.2v5*)
 
3787
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3788
  SAVE_CFLAGS="$CFLAGS"
 
3789
  CFLAGS="$CFLAGS -belf"
 
3790
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3791
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3792
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3794
else
 
3795
  ac_ext=c
 
3796
ac_cpp='$CPP $CPPFLAGS'
 
3797
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3798
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3799
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3800
 
 
3801
     cat >conftest.$ac_ext <<_ACEOF
 
3802
/* confdefs.h.  */
 
3803
_ACEOF
 
3804
cat confdefs.h >>conftest.$ac_ext
 
3805
cat >>conftest.$ac_ext <<_ACEOF
 
3806
/* end confdefs.h.  */
 
3807
 
 
3808
int
 
3809
main ()
 
3810
{
 
3811
 
 
3812
  ;
 
3813
  return 0;
 
3814
}
 
3815
_ACEOF
 
3816
rm -f conftest.$ac_objext conftest$ac_exeext
 
3817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3818
  (eval $ac_link) 2>conftest.er1
 
3819
  ac_status=$?
 
3820
  grep -v '^ *+' conftest.er1 >conftest.err
 
3821
  rm -f conftest.er1
 
3822
  cat conftest.err >&5
 
3823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3824
  (exit $ac_status); } &&
 
3825
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3827
  (eval $ac_try) 2>&5
 
3828
  ac_status=$?
 
3829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3830
  (exit $ac_status); }; } &&
 
3831
         { ac_try='test -s conftest$ac_exeext'
 
3832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3833
  (eval $ac_try) 2>&5
 
3834
  ac_status=$?
 
3835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3836
  (exit $ac_status); }; }; then
 
3837
  lt_cv_cc_needs_belf=yes
 
3838
else
 
3839
  echo "$as_me: failed program was:" >&5
 
3840
sed 's/^/| /' conftest.$ac_ext >&5
 
3841
 
 
3842
lt_cv_cc_needs_belf=no
 
3843
fi
 
3844
rm -f conftest.err conftest.$ac_objext \
 
3845
      conftest$ac_exeext conftest.$ac_ext
 
3846
     ac_ext=c
 
3847
ac_cpp='$CPP $CPPFLAGS'
 
3848
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3849
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3850
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3851
 
 
3852
fi
 
3853
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3854
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3855
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3856
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3857
    CFLAGS="$SAVE_CFLAGS"
 
3858
  fi
 
3859
  ;;
 
3860
sparc*-*solaris*)
 
3861
  # Find out which ABI we are using.
 
3862
  echo 'int i;' > conftest.$ac_ext
 
3863
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3864
  (eval $ac_compile) 2>&5
 
3865
  ac_status=$?
 
3866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3867
  (exit $ac_status); }; then
 
3868
    case `/usr/bin/file conftest.o` in
 
3869
    *64-bit*)
 
3870
      case $lt_cv_prog_gnu_ld in
 
3871
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3872
      *)    LD="${LD-ld} -64" ;;
 
3873
      esac
 
3874
      ;;
 
3875
    esac
 
3876
  fi
 
3877
  rm -rf conftest*
 
3878
  ;;
 
3879
 
 
3880
 
 
3881
esac
 
3882
 
 
3883
need_locks="$enable_libtool_lock"
 
3884
 
 
3885
 
 
3886
ac_ext=c
 
3887
ac_cpp='$CPP $CPPFLAGS'
 
3888
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3889
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3890
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3891
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3892
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3893
# On Suns, sometimes $CPP names a directory.
 
3894
if test -n "$CPP" && test -d "$CPP"; then
 
3895
  CPP=
 
3896
fi
 
3897
if test -z "$CPP"; then
 
3898
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3899
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3900
else
 
3901
      # Double quotes because CPP needs to be expanded
 
3902
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3903
    do
 
3904
      ac_preproc_ok=false
 
3905
for ac_c_preproc_warn_flag in '' yes
 
3906
do
 
3907
  # Use a header file that comes with gcc, so configuring glibc
 
3908
  # with a fresh cross-compiler works.
 
3909
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3910
  # <limits.h> exists even on freestanding compilers.
 
3911
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3912
  # not just through cpp. "Syntax error" is here to catch this case.
 
3913
  cat >conftest.$ac_ext <<_ACEOF
 
3914
/* confdefs.h.  */
 
3915
_ACEOF
 
3916
cat confdefs.h >>conftest.$ac_ext
 
3917
cat >>conftest.$ac_ext <<_ACEOF
 
3918
/* end confdefs.h.  */
 
3919
#ifdef __STDC__
 
3920
# include <limits.h>
 
3921
#else
 
3922
# include <assert.h>
 
3923
#endif
 
3924
                     Syntax error
 
3925
_ACEOF
 
3926
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3927
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3928
  ac_status=$?
 
3929
  grep -v '^ *+' conftest.er1 >conftest.err
 
3930
  rm -f conftest.er1
 
3931
  cat conftest.err >&5
 
3932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3933
  (exit $ac_status); } >/dev/null; then
 
3934
  if test -s conftest.err; then
 
3935
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3936
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3937
  else
 
3938
    ac_cpp_err=
 
3939
  fi
 
3940
else
 
3941
  ac_cpp_err=yes
 
3942
fi
 
3943
if test -z "$ac_cpp_err"; then
 
3944
  :
 
3945
else
 
3946
  echo "$as_me: failed program was:" >&5
 
3947
sed 's/^/| /' conftest.$ac_ext >&5
 
3948
 
 
3949
  # Broken: fails on valid input.
 
3950
continue
 
3951
fi
 
3952
rm -f conftest.err conftest.$ac_ext
 
3953
 
 
3954
  # OK, works on sane cases.  Now check whether non-existent headers
 
3955
  # can be detected and how.
 
3956
  cat >conftest.$ac_ext <<_ACEOF
 
3957
/* confdefs.h.  */
 
3958
_ACEOF
 
3959
cat confdefs.h >>conftest.$ac_ext
 
3960
cat >>conftest.$ac_ext <<_ACEOF
 
3961
/* end confdefs.h.  */
 
3962
#include <ac_nonexistent.h>
 
3963
_ACEOF
 
3964
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3965
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3966
  ac_status=$?
 
3967
  grep -v '^ *+' conftest.er1 >conftest.err
 
3968
  rm -f conftest.er1
 
3969
  cat conftest.err >&5
 
3970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3971
  (exit $ac_status); } >/dev/null; then
 
3972
  if test -s conftest.err; then
 
3973
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3974
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3975
  else
 
3976
    ac_cpp_err=
 
3977
  fi
 
3978
else
 
3979
  ac_cpp_err=yes
 
3980
fi
 
3981
if test -z "$ac_cpp_err"; then
 
3982
  # Broken: success on invalid input.
 
3983
continue
 
3984
else
 
3985
  echo "$as_me: failed program was:" >&5
 
3986
sed 's/^/| /' conftest.$ac_ext >&5
 
3987
 
 
3988
  # Passes both tests.
 
3989
ac_preproc_ok=:
 
3990
break
 
3991
fi
 
3992
rm -f conftest.err conftest.$ac_ext
 
3993
 
 
3994
done
 
3995
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3996
rm -f conftest.err conftest.$ac_ext
 
3997
if $ac_preproc_ok; then
 
3998
  break
 
3999
fi
 
4000
 
 
4001
    done
 
4002
    ac_cv_prog_CPP=$CPP
 
4003
 
 
4004
fi
 
4005
  CPP=$ac_cv_prog_CPP
 
4006
else
 
4007
  ac_cv_prog_CPP=$CPP
 
4008
fi
 
4009
echo "$as_me:$LINENO: result: $CPP" >&5
 
4010
echo "${ECHO_T}$CPP" >&6
 
4011
ac_preproc_ok=false
 
4012
for ac_c_preproc_warn_flag in '' yes
 
4013
do
 
4014
  # Use a header file that comes with gcc, so configuring glibc
 
4015
  # with a fresh cross-compiler works.
 
4016
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4017
  # <limits.h> exists even on freestanding compilers.
 
4018
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4019
  # not just through cpp. "Syntax error" is here to catch this case.
 
4020
  cat >conftest.$ac_ext <<_ACEOF
 
4021
/* confdefs.h.  */
 
4022
_ACEOF
 
4023
cat confdefs.h >>conftest.$ac_ext
 
4024
cat >>conftest.$ac_ext <<_ACEOF
 
4025
/* end confdefs.h.  */
 
4026
#ifdef __STDC__
 
4027
# include <limits.h>
 
4028
#else
 
4029
# include <assert.h>
 
4030
#endif
 
4031
                     Syntax error
 
4032
_ACEOF
 
4033
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4034
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4035
  ac_status=$?
 
4036
  grep -v '^ *+' conftest.er1 >conftest.err
 
4037
  rm -f conftest.er1
 
4038
  cat conftest.err >&5
 
4039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4040
  (exit $ac_status); } >/dev/null; then
 
4041
  if test -s conftest.err; then
 
4042
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4043
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4044
  else
 
4045
    ac_cpp_err=
 
4046
  fi
 
4047
else
 
4048
  ac_cpp_err=yes
 
4049
fi
 
4050
if test -z "$ac_cpp_err"; then
 
4051
  :
 
4052
else
 
4053
  echo "$as_me: failed program was:" >&5
 
4054
sed 's/^/| /' conftest.$ac_ext >&5
 
4055
 
 
4056
  # Broken: fails on valid input.
 
4057
continue
 
4058
fi
 
4059
rm -f conftest.err conftest.$ac_ext
 
4060
 
 
4061
  # OK, works on sane cases.  Now check whether non-existent headers
 
4062
  # can be detected and how.
 
4063
  cat >conftest.$ac_ext <<_ACEOF
 
4064
/* confdefs.h.  */
 
4065
_ACEOF
 
4066
cat confdefs.h >>conftest.$ac_ext
 
4067
cat >>conftest.$ac_ext <<_ACEOF
 
4068
/* end confdefs.h.  */
 
4069
#include <ac_nonexistent.h>
 
4070
_ACEOF
 
4071
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4072
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4073
  ac_status=$?
 
4074
  grep -v '^ *+' conftest.er1 >conftest.err
 
4075
  rm -f conftest.er1
 
4076
  cat conftest.err >&5
 
4077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4078
  (exit $ac_status); } >/dev/null; then
 
4079
  if test -s conftest.err; then
 
4080
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4081
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4082
  else
 
4083
    ac_cpp_err=
 
4084
  fi
 
4085
else
 
4086
  ac_cpp_err=yes
 
4087
fi
 
4088
if test -z "$ac_cpp_err"; then
 
4089
  # Broken: success on invalid input.
 
4090
continue
 
4091
else
 
4092
  echo "$as_me: failed program was:" >&5
 
4093
sed 's/^/| /' conftest.$ac_ext >&5
 
4094
 
 
4095
  # Passes both tests.
 
4096
ac_preproc_ok=:
 
4097
break
 
4098
fi
 
4099
rm -f conftest.err conftest.$ac_ext
 
4100
 
 
4101
done
 
4102
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4103
rm -f conftest.err conftest.$ac_ext
 
4104
if $ac_preproc_ok; then
 
4105
  :
 
4106
else
 
4107
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4108
See \`config.log' for more details." >&5
 
4109
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4110
See \`config.log' for more details." >&2;}
 
4111
   { (exit 1); exit 1; }; }
 
4112
fi
 
4113
 
 
4114
ac_ext=c
 
4115
ac_cpp='$CPP $CPPFLAGS'
 
4116
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4117
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4118
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4119
 
 
4120
 
 
4121
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4122
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4123
if test "${ac_cv_header_stdc+set}" = set; then
 
4124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4125
else
 
4126
  cat >conftest.$ac_ext <<_ACEOF
 
4127
/* confdefs.h.  */
 
4128
_ACEOF
 
4129
cat confdefs.h >>conftest.$ac_ext
 
4130
cat >>conftest.$ac_ext <<_ACEOF
 
4131
/* end confdefs.h.  */
 
4132
#include <stdlib.h>
 
4133
#include <stdarg.h>
 
4134
#include <string.h>
 
4135
#include <float.h>
 
4136
 
 
4137
int
 
4138
main ()
 
4139
{
 
4140
 
 
4141
  ;
 
4142
  return 0;
 
4143
}
 
4144
_ACEOF
 
4145
rm -f conftest.$ac_objext
 
4146
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4147
  (eval $ac_compile) 2>conftest.er1
 
4148
  ac_status=$?
 
4149
  grep -v '^ *+' conftest.er1 >conftest.err
 
4150
  rm -f conftest.er1
 
4151
  cat conftest.err >&5
 
4152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4153
  (exit $ac_status); } &&
 
4154
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4156
  (eval $ac_try) 2>&5
 
4157
  ac_status=$?
 
4158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4159
  (exit $ac_status); }; } &&
 
4160
         { ac_try='test -s conftest.$ac_objext'
 
4161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4162
  (eval $ac_try) 2>&5
 
4163
  ac_status=$?
 
4164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4165
  (exit $ac_status); }; }; then
 
4166
  ac_cv_header_stdc=yes
 
4167
else
 
4168
  echo "$as_me: failed program was:" >&5
 
4169
sed 's/^/| /' conftest.$ac_ext >&5
 
4170
 
 
4171
ac_cv_header_stdc=no
 
4172
fi
 
4173
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4174
 
 
4175
if test $ac_cv_header_stdc = yes; then
 
4176
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4177
  cat >conftest.$ac_ext <<_ACEOF
 
4178
/* confdefs.h.  */
 
4179
_ACEOF
 
4180
cat confdefs.h >>conftest.$ac_ext
 
4181
cat >>conftest.$ac_ext <<_ACEOF
 
4182
/* end confdefs.h.  */
 
4183
#include <string.h>
 
4184
 
 
4185
_ACEOF
 
4186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4187
  $EGREP "memchr" >/dev/null 2>&1; then
 
4188
  :
 
4189
else
 
4190
  ac_cv_header_stdc=no
 
4191
fi
 
4192
rm -f conftest*
 
4193
 
 
4194
fi
 
4195
 
 
4196
if test $ac_cv_header_stdc = yes; then
 
4197
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4198
  cat >conftest.$ac_ext <<_ACEOF
 
4199
/* confdefs.h.  */
 
4200
_ACEOF
 
4201
cat confdefs.h >>conftest.$ac_ext
 
4202
cat >>conftest.$ac_ext <<_ACEOF
 
4203
/* end confdefs.h.  */
 
4204
#include <stdlib.h>
 
4205
 
 
4206
_ACEOF
 
4207
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4208
  $EGREP "free" >/dev/null 2>&1; then
 
4209
  :
 
4210
else
 
4211
  ac_cv_header_stdc=no
 
4212
fi
 
4213
rm -f conftest*
 
4214
 
 
4215
fi
 
4216
 
 
4217
if test $ac_cv_header_stdc = yes; then
 
4218
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4219
  if test "$cross_compiling" = yes; then
 
4220
  :
 
4221
else
 
4222
  cat >conftest.$ac_ext <<_ACEOF
 
4223
/* confdefs.h.  */
 
4224
_ACEOF
 
4225
cat confdefs.h >>conftest.$ac_ext
 
4226
cat >>conftest.$ac_ext <<_ACEOF
 
4227
/* end confdefs.h.  */
 
4228
#include <ctype.h>
 
4229
#if ((' ' & 0x0FF) == 0x020)
 
4230
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4231
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4232
#else
 
4233
# define ISLOWER(c) \
 
4234
                   (('a' <= (c) && (c) <= 'i') \
 
4235
                     || ('j' <= (c) && (c) <= 'r') \
 
4236
                     || ('s' <= (c) && (c) <= 'z'))
 
4237
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4238
#endif
 
4239
 
 
4240
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4241
int
 
4242
main ()
 
4243
{
 
4244
  int i;
 
4245
  for (i = 0; i < 256; i++)
 
4246
    if (XOR (islower (i), ISLOWER (i))
 
4247
        || toupper (i) != TOUPPER (i))
 
4248
      exit(2);
 
4249
  exit (0);
 
4250
}
 
4251
_ACEOF
 
4252
rm -f conftest$ac_exeext
 
4253
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4254
  (eval $ac_link) 2>&5
 
4255
  ac_status=$?
 
4256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4257
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4259
  (eval $ac_try) 2>&5
 
4260
  ac_status=$?
 
4261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4262
  (exit $ac_status); }; }; then
 
4263
  :
 
4264
else
 
4265
  echo "$as_me: program exited with status $ac_status" >&5
 
4266
echo "$as_me: failed program was:" >&5
 
4267
sed 's/^/| /' conftest.$ac_ext >&5
 
4268
 
 
4269
( exit $ac_status )
 
4270
ac_cv_header_stdc=no
 
4271
fi
 
4272
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4273
fi
 
4274
fi
 
4275
fi
 
4276
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4277
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4278
if test $ac_cv_header_stdc = yes; then
 
4279
 
 
4280
cat >>confdefs.h <<\_ACEOF
 
4281
#define STDC_HEADERS 1
 
4282
_ACEOF
 
4283
 
 
4284
fi
 
4285
 
 
4286
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4287
 
 
4288
 
 
4289
 
 
4290
 
 
4291
 
 
4292
 
 
4293
 
 
4294
 
 
4295
 
 
4296
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4297
                  inttypes.h stdint.h unistd.h
 
4298
do
 
4299
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4300
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4301
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4302
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4304
else
 
4305
  cat >conftest.$ac_ext <<_ACEOF
 
4306
/* confdefs.h.  */
 
4307
_ACEOF
 
4308
cat confdefs.h >>conftest.$ac_ext
 
4309
cat >>conftest.$ac_ext <<_ACEOF
 
4310
/* end confdefs.h.  */
 
4311
$ac_includes_default
 
4312
 
 
4313
#include <$ac_header>
 
4314
_ACEOF
 
4315
rm -f conftest.$ac_objext
 
4316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4317
  (eval $ac_compile) 2>conftest.er1
 
4318
  ac_status=$?
 
4319
  grep -v '^ *+' conftest.er1 >conftest.err
 
4320
  rm -f conftest.er1
 
4321
  cat conftest.err >&5
 
4322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4323
  (exit $ac_status); } &&
 
4324
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4326
  (eval $ac_try) 2>&5
 
4327
  ac_status=$?
 
4328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4329
  (exit $ac_status); }; } &&
 
4330
         { ac_try='test -s conftest.$ac_objext'
 
4331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4332
  (eval $ac_try) 2>&5
 
4333
  ac_status=$?
 
4334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4335
  (exit $ac_status); }; }; then
 
4336
  eval "$as_ac_Header=yes"
 
4337
else
 
4338
  echo "$as_me: failed program was:" >&5
 
4339
sed 's/^/| /' conftest.$ac_ext >&5
 
4340
 
 
4341
eval "$as_ac_Header=no"
 
4342
fi
 
4343
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4344
fi
 
4345
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4346
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4347
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4348
  cat >>confdefs.h <<_ACEOF
 
4349
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4350
_ACEOF
 
4351
 
 
4352
fi
 
4353
 
 
4354
done
 
4355
 
 
4356
 
 
4357
 
 
4358
for ac_header in dlfcn.h
 
4359
do
 
4360
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4361
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4362
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4363
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4364
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4366
fi
 
4367
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4368
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4369
else
 
4370
  # Is the header compilable?
 
4371
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4372
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4373
cat >conftest.$ac_ext <<_ACEOF
 
4374
/* confdefs.h.  */
 
4375
_ACEOF
 
4376
cat confdefs.h >>conftest.$ac_ext
 
4377
cat >>conftest.$ac_ext <<_ACEOF
 
4378
/* end confdefs.h.  */
 
4379
$ac_includes_default
 
4380
#include <$ac_header>
 
4381
_ACEOF
 
4382
rm -f conftest.$ac_objext
 
4383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4384
  (eval $ac_compile) 2>conftest.er1
 
4385
  ac_status=$?
 
4386
  grep -v '^ *+' conftest.er1 >conftest.err
 
4387
  rm -f conftest.er1
 
4388
  cat conftest.err >&5
 
4389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4390
  (exit $ac_status); } &&
 
4391
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4393
  (eval $ac_try) 2>&5
 
4394
  ac_status=$?
 
4395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4396
  (exit $ac_status); }; } &&
 
4397
         { ac_try='test -s conftest.$ac_objext'
 
4398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4399
  (eval $ac_try) 2>&5
 
4400
  ac_status=$?
 
4401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4402
  (exit $ac_status); }; }; then
 
4403
  ac_header_compiler=yes
 
4404
else
 
4405
  echo "$as_me: failed program was:" >&5
 
4406
sed 's/^/| /' conftest.$ac_ext >&5
 
4407
 
 
4408
ac_header_compiler=no
 
4409
fi
 
4410
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4411
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4412
echo "${ECHO_T}$ac_header_compiler" >&6
 
4413
 
 
4414
# Is the header present?
 
4415
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4416
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4417
cat >conftest.$ac_ext <<_ACEOF
 
4418
/* confdefs.h.  */
 
4419
_ACEOF
 
4420
cat confdefs.h >>conftest.$ac_ext
 
4421
cat >>conftest.$ac_ext <<_ACEOF
 
4422
/* end confdefs.h.  */
 
4423
#include <$ac_header>
 
4424
_ACEOF
 
4425
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4426
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4427
  ac_status=$?
 
4428
  grep -v '^ *+' conftest.er1 >conftest.err
 
4429
  rm -f conftest.er1
 
4430
  cat conftest.err >&5
 
4431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4432
  (exit $ac_status); } >/dev/null; then
 
4433
  if test -s conftest.err; then
 
4434
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4435
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4436
  else
 
4437
    ac_cpp_err=
 
4438
  fi
 
4439
else
 
4440
  ac_cpp_err=yes
 
4441
fi
 
4442
if test -z "$ac_cpp_err"; then
 
4443
  ac_header_preproc=yes
 
4444
else
 
4445
  echo "$as_me: failed program was:" >&5
 
4446
sed 's/^/| /' conftest.$ac_ext >&5
 
4447
 
 
4448
  ac_header_preproc=no
 
4449
fi
 
4450
rm -f conftest.err conftest.$ac_ext
 
4451
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4452
echo "${ECHO_T}$ac_header_preproc" >&6
 
4453
 
 
4454
# So?  What about this header?
 
4455
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4456
  yes:no: )
 
4457
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4458
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4459
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4460
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4461
    ac_header_preproc=yes
 
4462
    ;;
 
4463
  no:yes:* )
 
4464
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4465
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4466
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4467
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4468
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4469
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4470
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4471
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4472
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4473
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4474
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4475
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4476
    (
 
4477
      cat <<\_ASBOX
 
4478
## ----------------------------------------------------------------------------- ##
 
4479
## Report this to https://launchpad.net/distros/ubuntu/+source/espresso/+filebug ##
 
4480
## ----------------------------------------------------------------------------- ##
 
4481
_ASBOX
 
4482
    ) |
 
4483
      sed "s/^/$as_me: WARNING:     /" >&2
 
4484
    ;;
 
4485
esac
 
4486
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4487
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4488
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4489
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4490
else
 
4491
  eval "$as_ac_Header=\$ac_header_preproc"
 
4492
fi
 
4493
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4494
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4495
 
 
4496
fi
 
4497
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4498
  cat >>confdefs.h <<_ACEOF
 
4499
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4500
_ACEOF
 
4501
 
 
4502
fi
 
4503
 
 
4504
done
 
4505
 
 
4506
ac_ext=cc
 
4507
ac_cpp='$CXXCPP $CPPFLAGS'
 
4508
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4509
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4510
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4511
if test -n "$ac_tool_prefix"; then
 
4512
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4513
  do
 
4514
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4515
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4516
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4517
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4518
if test "${ac_cv_prog_CXX+set}" = set; then
 
4519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4520
else
 
4521
  if test -n "$CXX"; then
 
4522
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4523
else
 
4524
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4525
for as_dir in $PATH
 
4526
do
 
4527
  IFS=$as_save_IFS
 
4528
  test -z "$as_dir" && as_dir=.
 
4529
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4530
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4531
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4532
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4533
    break 2
 
4534
  fi
 
4535
done
 
4536
done
 
4537
 
 
4538
fi
 
4539
fi
 
4540
CXX=$ac_cv_prog_CXX
 
4541
if test -n "$CXX"; then
 
4542
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4543
echo "${ECHO_T}$CXX" >&6
 
4544
else
 
4545
  echo "$as_me:$LINENO: result: no" >&5
 
4546
echo "${ECHO_T}no" >&6
 
4547
fi
 
4548
 
 
4549
    test -n "$CXX" && break
 
4550
  done
 
4551
fi
 
4552
if test -z "$CXX"; then
 
4553
  ac_ct_CXX=$CXX
 
4554
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4555
do
 
4556
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4557
set dummy $ac_prog; ac_word=$2
 
4558
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4559
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4560
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4562
else
 
4563
  if test -n "$ac_ct_CXX"; then
 
4564
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4565
else
 
4566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4567
for as_dir in $PATH
 
4568
do
 
4569
  IFS=$as_save_IFS
 
4570
  test -z "$as_dir" && as_dir=.
 
4571
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4572
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4573
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4574
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4575
    break 2
 
4576
  fi
 
4577
done
 
4578
done
 
4579
 
 
4580
fi
 
4581
fi
 
4582
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4583
if test -n "$ac_ct_CXX"; then
 
4584
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4585
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4586
else
 
4587
  echo "$as_me:$LINENO: result: no" >&5
 
4588
echo "${ECHO_T}no" >&6
 
4589
fi
 
4590
 
 
4591
  test -n "$ac_ct_CXX" && break
 
4592
done
 
4593
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4594
 
 
4595
  CXX=$ac_ct_CXX
 
4596
fi
 
4597
 
 
4598
 
 
4599
# Provide some information about the compiler.
 
4600
echo "$as_me:$LINENO:" \
 
4601
     "checking for C++ compiler version" >&5
 
4602
ac_compiler=`set X $ac_compile; echo $2`
 
4603
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4604
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4605
  ac_status=$?
 
4606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4607
  (exit $ac_status); }
 
4608
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4609
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4610
  ac_status=$?
 
4611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4612
  (exit $ac_status); }
 
4613
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4614
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4615
  ac_status=$?
 
4616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4617
  (exit $ac_status); }
 
4618
 
 
4619
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4620
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4621
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4623
else
 
4624
  cat >conftest.$ac_ext <<_ACEOF
 
4625
/* confdefs.h.  */
 
4626
_ACEOF
 
4627
cat confdefs.h >>conftest.$ac_ext
 
4628
cat >>conftest.$ac_ext <<_ACEOF
 
4629
/* end confdefs.h.  */
 
4630
 
 
4631
int
 
4632
main ()
 
4633
{
 
4634
#ifndef __GNUC__
 
4635
       choke me
 
4636
#endif
 
4637
 
 
4638
  ;
 
4639
  return 0;
 
4640
}
 
4641
_ACEOF
 
4642
rm -f conftest.$ac_objext
 
4643
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4644
  (eval $ac_compile) 2>conftest.er1
 
4645
  ac_status=$?
 
4646
  grep -v '^ *+' conftest.er1 >conftest.err
 
4647
  rm -f conftest.er1
 
4648
  cat conftest.err >&5
 
4649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4650
  (exit $ac_status); } &&
 
4651
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4653
  (eval $ac_try) 2>&5
 
4654
  ac_status=$?
 
4655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4656
  (exit $ac_status); }; } &&
 
4657
         { ac_try='test -s conftest.$ac_objext'
 
4658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4659
  (eval $ac_try) 2>&5
 
4660
  ac_status=$?
 
4661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4662
  (exit $ac_status); }; }; then
 
4663
  ac_compiler_gnu=yes
 
4664
else
 
4665
  echo "$as_me: failed program was:" >&5
 
4666
sed 's/^/| /' conftest.$ac_ext >&5
 
4667
 
 
4668
ac_compiler_gnu=no
 
4669
fi
 
4670
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4671
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4672
 
 
4673
fi
 
4674
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4675
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4676
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4677
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4678
ac_save_CXXFLAGS=$CXXFLAGS
 
4679
CXXFLAGS="-g"
 
4680
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4681
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4682
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4684
else
 
4685
  cat >conftest.$ac_ext <<_ACEOF
 
4686
/* confdefs.h.  */
 
4687
_ACEOF
 
4688
cat confdefs.h >>conftest.$ac_ext
 
4689
cat >>conftest.$ac_ext <<_ACEOF
 
4690
/* end confdefs.h.  */
 
4691
 
 
4692
int
 
4693
main ()
 
4694
{
 
4695
 
 
4696
  ;
 
4697
  return 0;
 
4698
}
 
4699
_ACEOF
 
4700
rm -f conftest.$ac_objext
 
4701
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4702
  (eval $ac_compile) 2>conftest.er1
 
4703
  ac_status=$?
 
4704
  grep -v '^ *+' conftest.er1 >conftest.err
 
4705
  rm -f conftest.er1
 
4706
  cat conftest.err >&5
 
4707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4708
  (exit $ac_status); } &&
 
4709
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4711
  (eval $ac_try) 2>&5
 
4712
  ac_status=$?
 
4713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4714
  (exit $ac_status); }; } &&
 
4715
         { ac_try='test -s conftest.$ac_objext'
 
4716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4717
  (eval $ac_try) 2>&5
 
4718
  ac_status=$?
 
4719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4720
  (exit $ac_status); }; }; then
 
4721
  ac_cv_prog_cxx_g=yes
 
4722
else
 
4723
  echo "$as_me: failed program was:" >&5
 
4724
sed 's/^/| /' conftest.$ac_ext >&5
 
4725
 
 
4726
ac_cv_prog_cxx_g=no
 
4727
fi
 
4728
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4729
fi
 
4730
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4731
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4732
if test "$ac_test_CXXFLAGS" = set; then
 
4733
  CXXFLAGS=$ac_save_CXXFLAGS
 
4734
elif test $ac_cv_prog_cxx_g = yes; then
 
4735
  if test "$GXX" = yes; then
 
4736
    CXXFLAGS="-g -O2"
 
4737
  else
 
4738
    CXXFLAGS="-g"
 
4739
  fi
 
4740
else
 
4741
  if test "$GXX" = yes; then
 
4742
    CXXFLAGS="-O2"
 
4743
  else
 
4744
    CXXFLAGS=
 
4745
  fi
 
4746
fi
 
4747
for ac_declaration in \
 
4748
   '' \
 
4749
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4750
   'extern "C" void std::exit (int); using std::exit;' \
 
4751
   'extern "C" void exit (int) throw ();' \
 
4752
   'extern "C" void exit (int);' \
 
4753
   'void exit (int);'
 
4754
do
 
4755
  cat >conftest.$ac_ext <<_ACEOF
 
4756
/* confdefs.h.  */
 
4757
_ACEOF
 
4758
cat confdefs.h >>conftest.$ac_ext
 
4759
cat >>conftest.$ac_ext <<_ACEOF
 
4760
/* end confdefs.h.  */
 
4761
$ac_declaration
 
4762
#include <stdlib.h>
 
4763
int
 
4764
main ()
 
4765
{
 
4766
exit (42);
 
4767
  ;
 
4768
  return 0;
 
4769
}
 
4770
_ACEOF
 
4771
rm -f conftest.$ac_objext
 
4772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4773
  (eval $ac_compile) 2>conftest.er1
 
4774
  ac_status=$?
 
4775
  grep -v '^ *+' conftest.er1 >conftest.err
 
4776
  rm -f conftest.er1
 
4777
  cat conftest.err >&5
 
4778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4779
  (exit $ac_status); } &&
 
4780
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4782
  (eval $ac_try) 2>&5
 
4783
  ac_status=$?
 
4784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4785
  (exit $ac_status); }; } &&
 
4786
         { ac_try='test -s conftest.$ac_objext'
 
4787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4788
  (eval $ac_try) 2>&5
 
4789
  ac_status=$?
 
4790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4791
  (exit $ac_status); }; }; then
 
4792
  :
 
4793
else
 
4794
  echo "$as_me: failed program was:" >&5
 
4795
sed 's/^/| /' conftest.$ac_ext >&5
 
4796
 
 
4797
continue
 
4798
fi
 
4799
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4800
  cat >conftest.$ac_ext <<_ACEOF
 
4801
/* confdefs.h.  */
 
4802
_ACEOF
 
4803
cat confdefs.h >>conftest.$ac_ext
 
4804
cat >>conftest.$ac_ext <<_ACEOF
 
4805
/* end confdefs.h.  */
 
4806
$ac_declaration
 
4807
int
 
4808
main ()
 
4809
{
 
4810
exit (42);
 
4811
  ;
 
4812
  return 0;
 
4813
}
 
4814
_ACEOF
 
4815
rm -f conftest.$ac_objext
 
4816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4817
  (eval $ac_compile) 2>conftest.er1
 
4818
  ac_status=$?
 
4819
  grep -v '^ *+' conftest.er1 >conftest.err
 
4820
  rm -f conftest.er1
 
4821
  cat conftest.err >&5
 
4822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4823
  (exit $ac_status); } &&
 
4824
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4826
  (eval $ac_try) 2>&5
 
4827
  ac_status=$?
 
4828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4829
  (exit $ac_status); }; } &&
 
4830
         { ac_try='test -s conftest.$ac_objext'
 
4831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4832
  (eval $ac_try) 2>&5
 
4833
  ac_status=$?
 
4834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4835
  (exit $ac_status); }; }; then
 
4836
  break
 
4837
else
 
4838
  echo "$as_me: failed program was:" >&5
 
4839
sed 's/^/| /' conftest.$ac_ext >&5
 
4840
 
 
4841
fi
 
4842
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4843
done
 
4844
rm -f conftest*
 
4845
if test -n "$ac_declaration"; then
 
4846
  echo '#ifdef __cplusplus' >>confdefs.h
 
4847
  echo $ac_declaration      >>confdefs.h
 
4848
  echo '#endif'             >>confdefs.h
 
4849
fi
 
4850
 
 
4851
ac_ext=cc
 
4852
ac_cpp='$CXXCPP $CPPFLAGS'
 
4853
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4854
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4855
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4856
 
 
4857
depcc="$CXX"  am_compiler_list=
 
4858
 
 
4859
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4860
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4861
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4863
else
 
4864
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4865
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4866
  # making bogus files that we don't know about and never remove.  For
 
4867
  # instance it was reported that on HP-UX the gcc test will end up
 
4868
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4869
  # in D'.
 
4870
  mkdir conftest.dir
 
4871
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4872
  # using a relative directory.
 
4873
  cp "$am_depcomp" conftest.dir
 
4874
  cd conftest.dir
 
4875
  # We will build objects and dependencies in a subdirectory because
 
4876
  # it helps to detect inapplicable dependency modes.  For instance
 
4877
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4878
  # side effect of compilation, but ICC will put the dependencies in
 
4879
  # the current directory while Tru64 will put them in the object
 
4880
  # directory.
 
4881
  mkdir sub
 
4882
 
 
4883
  am_cv_CXX_dependencies_compiler_type=none
 
4884
  if test "$am_compiler_list" = ""; then
 
4885
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4886
  fi
 
4887
  for depmode in $am_compiler_list; do
 
4888
    # Setup a source with many dependencies, because some compilers
 
4889
    # like to wrap large dependency lists on column 80 (with \), and
 
4890
    # we should not choose a depcomp mode which is confused by this.
 
4891
    #
 
4892
    # We need to recreate these files for each test, as the compiler may
 
4893
    # overwrite some of them when testing with obscure command lines.
 
4894
    # This happens at least with the AIX C compiler.
 
4895
    : > sub/conftest.c
 
4896
    for i in 1 2 3 4 5 6; do
 
4897
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4898
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4899
      # Solaris 8's {/usr,}/bin/sh.
 
4900
      touch sub/conftst$i.h
 
4901
    done
 
4902
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4903
 
 
4904
    case $depmode in
 
4905
    nosideeffect)
 
4906
      # after this tag, mechanisms are not by side-effect, so they'll
 
4907
      # only be used when explicitly requested
 
4908
      if test "x$enable_dependency_tracking" = xyes; then
 
4909
        continue
 
4910
      else
 
4911
        break
 
4912
      fi
 
4913
      ;;
 
4914
    none) break ;;
 
4915
    esac
 
4916
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4917
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4918
    # handle `-M -o', and we need to detect this.
 
4919
    if depmode=$depmode \
 
4920
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4921
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4922
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4923
         >/dev/null 2>conftest.err &&
 
4924
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4925
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4926
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4927
      # icc doesn't choke on unknown options, it will just issue warnings
 
4928
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4929
      # that says an option was ignored or not supported.
 
4930
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4931
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4932
      # The diagnosis changed in icc 8.0:
 
4933
      #   icc: Command line remark: option '-MP' not supported
 
4934
      if (grep 'ignoring option' conftest.err ||
 
4935
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4936
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4937
        break
 
4938
      fi
 
4939
    fi
 
4940
  done
 
4941
 
 
4942
  cd ..
 
4943
  rm -rf conftest.dir
 
4944
else
 
4945
  am_cv_CXX_dependencies_compiler_type=none
 
4946
fi
 
4947
 
 
4948
fi
 
4949
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4950
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4951
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4952
 
 
4953
 
 
4954
 
 
4955
if
 
4956
  test "x$enable_dependency_tracking" != xno \
 
4957
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4958
  am__fastdepCXX_TRUE=
 
4959
  am__fastdepCXX_FALSE='#'
 
4960
else
 
4961
  am__fastdepCXX_TRUE='#'
 
4962
  am__fastdepCXX_FALSE=
 
4963
fi
 
4964
 
 
4965
 
 
4966
 
 
4967
 
 
4968
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4969
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4970
    (test "X$CXX" != "Xg++"))) ; then
 
4971
  ac_ext=cc
 
4972
ac_cpp='$CXXCPP $CPPFLAGS'
 
4973
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4974
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4975
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4976
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4977
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4978
if test -z "$CXXCPP"; then
 
4979
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4981
else
 
4982
      # Double quotes because CXXCPP needs to be expanded
 
4983
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4984
    do
 
4985
      ac_preproc_ok=false
 
4986
for ac_cxx_preproc_warn_flag in '' yes
 
4987
do
 
4988
  # Use a header file that comes with gcc, so configuring glibc
 
4989
  # with a fresh cross-compiler works.
 
4990
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4991
  # <limits.h> exists even on freestanding compilers.
 
4992
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4993
  # not just through cpp. "Syntax error" is here to catch this case.
 
4994
  cat >conftest.$ac_ext <<_ACEOF
 
4995
/* confdefs.h.  */
 
4996
_ACEOF
 
4997
cat confdefs.h >>conftest.$ac_ext
 
4998
cat >>conftest.$ac_ext <<_ACEOF
 
4999
/* end confdefs.h.  */
 
5000
#ifdef __STDC__
 
5001
# include <limits.h>
 
5002
#else
 
5003
# include <assert.h>
 
5004
#endif
 
5005
                     Syntax error
 
5006
_ACEOF
 
5007
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5008
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5009
  ac_status=$?
 
5010
  grep -v '^ *+' conftest.er1 >conftest.err
 
5011
  rm -f conftest.er1
 
5012
  cat conftest.err >&5
 
5013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5014
  (exit $ac_status); } >/dev/null; then
 
5015
  if test -s conftest.err; then
 
5016
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5017
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5018
  else
 
5019
    ac_cpp_err=
 
5020
  fi
 
5021
else
 
5022
  ac_cpp_err=yes
 
5023
fi
 
5024
if test -z "$ac_cpp_err"; then
 
5025
  :
 
5026
else
 
5027
  echo "$as_me: failed program was:" >&5
 
5028
sed 's/^/| /' conftest.$ac_ext >&5
 
5029
 
 
5030
  # Broken: fails on valid input.
 
5031
continue
 
5032
fi
 
5033
rm -f conftest.err conftest.$ac_ext
 
5034
 
 
5035
  # OK, works on sane cases.  Now check whether non-existent headers
 
5036
  # can be detected and how.
 
5037
  cat >conftest.$ac_ext <<_ACEOF
 
5038
/* confdefs.h.  */
 
5039
_ACEOF
 
5040
cat confdefs.h >>conftest.$ac_ext
 
5041
cat >>conftest.$ac_ext <<_ACEOF
 
5042
/* end confdefs.h.  */
 
5043
#include <ac_nonexistent.h>
 
5044
_ACEOF
 
5045
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5046
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5047
  ac_status=$?
 
5048
  grep -v '^ *+' conftest.er1 >conftest.err
 
5049
  rm -f conftest.er1
 
5050
  cat conftest.err >&5
 
5051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5052
  (exit $ac_status); } >/dev/null; then
 
5053
  if test -s conftest.err; then
 
5054
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5055
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5056
  else
 
5057
    ac_cpp_err=
 
5058
  fi
 
5059
else
 
5060
  ac_cpp_err=yes
 
5061
fi
 
5062
if test -z "$ac_cpp_err"; then
 
5063
  # Broken: success on invalid input.
 
5064
continue
 
5065
else
 
5066
  echo "$as_me: failed program was:" >&5
 
5067
sed 's/^/| /' conftest.$ac_ext >&5
 
5068
 
 
5069
  # Passes both tests.
 
5070
ac_preproc_ok=:
 
5071
break
 
5072
fi
 
5073
rm -f conftest.err conftest.$ac_ext
 
5074
 
 
5075
done
 
5076
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5077
rm -f conftest.err conftest.$ac_ext
 
5078
if $ac_preproc_ok; then
 
5079
  break
 
5080
fi
 
5081
 
 
5082
    done
 
5083
    ac_cv_prog_CXXCPP=$CXXCPP
 
5084
 
 
5085
fi
 
5086
  CXXCPP=$ac_cv_prog_CXXCPP
 
5087
else
 
5088
  ac_cv_prog_CXXCPP=$CXXCPP
 
5089
fi
 
5090
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5091
echo "${ECHO_T}$CXXCPP" >&6
 
5092
ac_preproc_ok=false
 
5093
for ac_cxx_preproc_warn_flag in '' yes
 
5094
do
 
5095
  # Use a header file that comes with gcc, so configuring glibc
 
5096
  # with a fresh cross-compiler works.
 
5097
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5098
  # <limits.h> exists even on freestanding compilers.
 
5099
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5100
  # not just through cpp. "Syntax error" is here to catch this case.
 
5101
  cat >conftest.$ac_ext <<_ACEOF
 
5102
/* confdefs.h.  */
 
5103
_ACEOF
 
5104
cat confdefs.h >>conftest.$ac_ext
 
5105
cat >>conftest.$ac_ext <<_ACEOF
 
5106
/* end confdefs.h.  */
 
5107
#ifdef __STDC__
 
5108
# include <limits.h>
 
5109
#else
 
5110
# include <assert.h>
 
5111
#endif
 
5112
                     Syntax error
 
5113
_ACEOF
 
5114
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5115
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5116
  ac_status=$?
 
5117
  grep -v '^ *+' conftest.er1 >conftest.err
 
5118
  rm -f conftest.er1
 
5119
  cat conftest.err >&5
 
5120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5121
  (exit $ac_status); } >/dev/null; then
 
5122
  if test -s conftest.err; then
 
5123
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5124
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5125
  else
 
5126
    ac_cpp_err=
 
5127
  fi
 
5128
else
 
5129
  ac_cpp_err=yes
 
5130
fi
 
5131
if test -z "$ac_cpp_err"; then
 
5132
  :
 
5133
else
 
5134
  echo "$as_me: failed program was:" >&5
 
5135
sed 's/^/| /' conftest.$ac_ext >&5
 
5136
 
 
5137
  # Broken: fails on valid input.
 
5138
continue
 
5139
fi
 
5140
rm -f conftest.err conftest.$ac_ext
 
5141
 
 
5142
  # OK, works on sane cases.  Now check whether non-existent headers
 
5143
  # can be detected and how.
 
5144
  cat >conftest.$ac_ext <<_ACEOF
 
5145
/* confdefs.h.  */
 
5146
_ACEOF
 
5147
cat confdefs.h >>conftest.$ac_ext
 
5148
cat >>conftest.$ac_ext <<_ACEOF
 
5149
/* end confdefs.h.  */
 
5150
#include <ac_nonexistent.h>
 
5151
_ACEOF
 
5152
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5153
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5154
  ac_status=$?
 
5155
  grep -v '^ *+' conftest.er1 >conftest.err
 
5156
  rm -f conftest.er1
 
5157
  cat conftest.err >&5
 
5158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5159
  (exit $ac_status); } >/dev/null; then
 
5160
  if test -s conftest.err; then
 
5161
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5162
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5163
  else
 
5164
    ac_cpp_err=
 
5165
  fi
 
5166
else
 
5167
  ac_cpp_err=yes
 
5168
fi
 
5169
if test -z "$ac_cpp_err"; then
 
5170
  # Broken: success on invalid input.
 
5171
continue
 
5172
else
 
5173
  echo "$as_me: failed program was:" >&5
 
5174
sed 's/^/| /' conftest.$ac_ext >&5
 
5175
 
 
5176
  # Passes both tests.
 
5177
ac_preproc_ok=:
 
5178
break
 
5179
fi
 
5180
rm -f conftest.err conftest.$ac_ext
 
5181
 
 
5182
done
 
5183
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5184
rm -f conftest.err conftest.$ac_ext
 
5185
if $ac_preproc_ok; then
 
5186
  :
 
5187
else
 
5188
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5189
See \`config.log' for more details." >&5
 
5190
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5191
See \`config.log' for more details." >&2;}
 
5192
   { (exit 1); exit 1; }; }
 
5193
fi
 
5194
 
 
5195
ac_ext=cc
 
5196
ac_cpp='$CXXCPP $CPPFLAGS'
 
5197
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5198
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5199
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5200
 
 
5201
fi
 
5202
 
 
5203
 
 
5204
ac_ext=f
 
5205
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5206
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5207
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5208
if test -n "$ac_tool_prefix"; then
 
5209
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5210
  do
 
5211
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5212
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5213
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5214
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5215
if test "${ac_cv_prog_F77+set}" = set; then
 
5216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5217
else
 
5218
  if test -n "$F77"; then
 
5219
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5220
else
 
5221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5222
for as_dir in $PATH
 
5223
do
 
5224
  IFS=$as_save_IFS
 
5225
  test -z "$as_dir" && as_dir=.
 
5226
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5227
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5228
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5229
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5230
    break 2
 
5231
  fi
 
5232
done
 
5233
done
 
5234
 
 
5235
fi
 
5236
fi
 
5237
F77=$ac_cv_prog_F77
 
5238
if test -n "$F77"; then
 
5239
  echo "$as_me:$LINENO: result: $F77" >&5
 
5240
echo "${ECHO_T}$F77" >&6
 
5241
else
 
5242
  echo "$as_me:$LINENO: result: no" >&5
 
5243
echo "${ECHO_T}no" >&6
 
5244
fi
 
5245
 
 
5246
    test -n "$F77" && break
 
5247
  done
 
5248
fi
 
5249
if test -z "$F77"; then
 
5250
  ac_ct_F77=$F77
 
5251
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5252
do
 
5253
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5254
set dummy $ac_prog; ac_word=$2
 
5255
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5256
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5257
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5258
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5259
else
 
5260
  if test -n "$ac_ct_F77"; then
 
5261
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5262
else
 
5263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5264
for as_dir in $PATH
 
5265
do
 
5266
  IFS=$as_save_IFS
 
5267
  test -z "$as_dir" && as_dir=.
 
5268
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5269
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5270
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5271
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5272
    break 2
 
5273
  fi
 
5274
done
 
5275
done
 
5276
 
 
5277
fi
 
5278
fi
 
5279
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5280
if test -n "$ac_ct_F77"; then
 
5281
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5282
echo "${ECHO_T}$ac_ct_F77" >&6
 
5283
else
 
5284
  echo "$as_me:$LINENO: result: no" >&5
 
5285
echo "${ECHO_T}no" >&6
 
5286
fi
 
5287
 
 
5288
  test -n "$ac_ct_F77" && break
 
5289
done
 
5290
 
 
5291
  F77=$ac_ct_F77
 
5292
fi
 
5293
 
 
5294
 
 
5295
# Provide some information about the compiler.
 
5296
echo "$as_me:5296:" \
 
5297
     "checking for Fortran 77 compiler version" >&5
 
5298
ac_compiler=`set X $ac_compile; echo $2`
 
5299
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5300
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5301
  ac_status=$?
 
5302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5303
  (exit $ac_status); }
 
5304
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5305
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5306
  ac_status=$?
 
5307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5308
  (exit $ac_status); }
 
5309
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5310
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5311
  ac_status=$?
 
5312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5313
  (exit $ac_status); }
 
5314
rm -f a.out
 
5315
 
 
5316
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5317
# input file.  (Note that this only needs to work for GNU compilers.)
 
5318
ac_save_ext=$ac_ext
 
5319
ac_ext=F
 
5320
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5321
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5322
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5324
else
 
5325
  cat >conftest.$ac_ext <<_ACEOF
 
5326
      program main
 
5327
#ifndef __GNUC__
 
5328
       choke me
 
5329
#endif
 
5330
 
 
5331
      end
 
5332
_ACEOF
 
5333
rm -f conftest.$ac_objext
 
5334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5335
  (eval $ac_compile) 2>conftest.er1
 
5336
  ac_status=$?
 
5337
  grep -v '^ *+' conftest.er1 >conftest.err
 
5338
  rm -f conftest.er1
 
5339
  cat conftest.err >&5
 
5340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5341
  (exit $ac_status); } &&
 
5342
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5344
  (eval $ac_try) 2>&5
 
5345
  ac_status=$?
 
5346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5347
  (exit $ac_status); }; } &&
 
5348
         { ac_try='test -s conftest.$ac_objext'
 
5349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5350
  (eval $ac_try) 2>&5
 
5351
  ac_status=$?
 
5352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5353
  (exit $ac_status); }; }; then
 
5354
  ac_compiler_gnu=yes
 
5355
else
 
5356
  echo "$as_me: failed program was:" >&5
 
5357
sed 's/^/| /' conftest.$ac_ext >&5
 
5358
 
 
5359
ac_compiler_gnu=no
 
5360
fi
 
5361
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5362
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5363
 
 
5364
fi
 
5365
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5366
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5367
ac_ext=$ac_save_ext
 
5368
ac_test_FFLAGS=${FFLAGS+set}
 
5369
ac_save_FFLAGS=$FFLAGS
 
5370
FFLAGS=
 
5371
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5372
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5373
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5375
else
 
5376
  FFLAGS=-g
 
5377
cat >conftest.$ac_ext <<_ACEOF
 
5378
      program main
 
5379
 
 
5380
      end
 
5381
_ACEOF
 
5382
rm -f conftest.$ac_objext
 
5383
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5384
  (eval $ac_compile) 2>conftest.er1
 
5385
  ac_status=$?
 
5386
  grep -v '^ *+' conftest.er1 >conftest.err
 
5387
  rm -f conftest.er1
 
5388
  cat conftest.err >&5
 
5389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5390
  (exit $ac_status); } &&
 
5391
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5393
  (eval $ac_try) 2>&5
 
5394
  ac_status=$?
 
5395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5396
  (exit $ac_status); }; } &&
 
5397
         { ac_try='test -s conftest.$ac_objext'
 
5398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5399
  (eval $ac_try) 2>&5
 
5400
  ac_status=$?
 
5401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5402
  (exit $ac_status); }; }; then
 
5403
  ac_cv_prog_f77_g=yes
 
5404
else
 
5405
  echo "$as_me: failed program was:" >&5
 
5406
sed 's/^/| /' conftest.$ac_ext >&5
 
5407
 
 
5408
ac_cv_prog_f77_g=no
 
5409
fi
 
5410
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5411
 
 
5412
fi
 
5413
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5414
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5415
if test "$ac_test_FFLAGS" = set; then
 
5416
  FFLAGS=$ac_save_FFLAGS
 
5417
elif test $ac_cv_prog_f77_g = yes; then
 
5418
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5419
    FFLAGS="-g -O2"
 
5420
  else
 
5421
    FFLAGS="-g"
 
5422
  fi
 
5423
else
 
5424
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5425
    FFLAGS="-O2"
 
5426
  else
 
5427
    FFLAGS=
 
5428
  fi
 
5429
fi
 
5430
 
 
5431
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5432
ac_ext=c
 
5433
ac_cpp='$CPP $CPPFLAGS'
 
5434
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5435
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5436
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5437
 
 
5438
 
 
5439
 
 
5440
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5441
 
 
5442
# find the maximum length of command line arguments
 
5443
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5444
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5445
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5447
else
 
5448
    i=0
 
5449
  teststring="ABCD"
 
5450
 
 
5451
  case $build_os in
 
5452
  msdosdjgpp*)
 
5453
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5454
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5455
    # during glob expansion).  Even if it were fixed, the result of this
 
5456
    # check would be larger than it should be.
 
5457
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5458
    ;;
 
5459
 
 
5460
  gnu*)
 
5461
    # Under GNU Hurd, this test is not required because there is
 
5462
    # no limit to the length of command line arguments.
 
5463
    # Libtool will interpret -1 as no limit whatsoever
 
5464
    lt_cv_sys_max_cmd_len=-1;
 
5465
    ;;
 
5466
 
 
5467
  cygwin* | mingw*)
 
5468
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5469
    # about 5 minutes as the teststring grows exponentially.
 
5470
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5471
    # you end up with a "frozen" computer, even though with patience
 
5472
    # the test eventually succeeds (with a max line length of 256k).
 
5473
    # Instead, let's just punt: use the minimum linelength reported by
 
5474
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5475
    lt_cv_sys_max_cmd_len=8192;
 
5476
    ;;
 
5477
 
 
5478
  amigaos*)
 
5479
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5480
    # So we just punt and use a minimum line length of 8192.
 
5481
    lt_cv_sys_max_cmd_len=8192;
 
5482
    ;;
 
5483
 
 
5484
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5485
    # This has been around since 386BSD, at least.  Likely further.
 
5486
    if test -x /sbin/sysctl; then
 
5487
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5488
    elif test -x /usr/sbin/sysctl; then
 
5489
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5490
    else
 
5491
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5492
    fi
 
5493
    # And add a safety zone
 
5494
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5495
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5496
    ;;
 
5497
 
 
5498
  interix*)
 
5499
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5500
    lt_cv_sys_max_cmd_len=196608
 
5501
    ;;
 
5502
 
 
5503
  osf*)
 
5504
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5505
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5506
    # nice to cause kernel panics so lets avoid the loop below.
 
5507
    # First set a reasonable default.
 
5508
    lt_cv_sys_max_cmd_len=16384
 
5509
    #
 
5510
    if test -x /sbin/sysconfig; then
 
5511
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5512
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5513
      esac
 
5514
    fi
 
5515
    ;;
 
5516
  sco3.2v5*)
 
5517
    lt_cv_sys_max_cmd_len=102400
 
5518
    ;;
 
5519
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5520
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5521
    if test -n "$kargmax"; then
 
5522
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5523
    else
 
5524
      lt_cv_sys_max_cmd_len=32768
 
5525
    fi
 
5526
    ;;
 
5527
  *)
 
5528
    # If test is not a shell built-in, we'll probably end up computing a
 
5529
    # maximum length that is only half of the actual maximum length, but
 
5530
    # we can't tell.
 
5531
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5532
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5533
               = "XX$teststring") >/dev/null 2>&1 &&
 
5534
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5535
            lt_cv_sys_max_cmd_len=$new_result &&
 
5536
            test $i != 17 # 1/2 MB should be enough
 
5537
    do
 
5538
      i=`expr $i + 1`
 
5539
      teststring=$teststring$teststring
 
5540
    done
 
5541
    teststring=
 
5542
    # Add a significant safety factor because C++ compilers can tack on massive
 
5543
    # amounts of additional arguments before passing them to the linker.
 
5544
    # It appears as though 1/2 is a usable value.
 
5545
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5546
    ;;
 
5547
  esac
 
5548
 
 
5549
fi
 
5550
 
 
5551
if test -n $lt_cv_sys_max_cmd_len ; then
 
5552
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5553
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5554
else
 
5555
  echo "$as_me:$LINENO: result: none" >&5
 
5556
echo "${ECHO_T}none" >&6
 
5557
fi
 
5558
 
 
5559
 
 
5560
 
 
5561
 
 
5562
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5563
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5564
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5565
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5567
else
 
5568
 
 
5569
# These are sane defaults that work on at least a few old systems.
 
5570
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5571
 
 
5572
# Character class describing NM global symbol codes.
 
5573
symcode='[BCDEGRST]'
 
5574
 
 
5575
# Regexp to match symbols that can be accessed directly from C.
 
5576
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5577
 
 
5578
# Transform an extracted symbol line into a proper C declaration
 
5579
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5580
 
 
5581
# Transform an extracted symbol line into symbol name and symbol address
 
5582
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'"
 
5583
 
 
5584
# Define system-specific variables.
 
5585
case $host_os in
 
5586
aix*)
 
5587
  symcode='[BCDT]'
 
5588
  ;;
 
5589
cygwin* | mingw* | pw32*)
 
5590
  symcode='[ABCDGISTW]'
 
5591
  ;;
 
5592
hpux*) # Its linker distinguishes data from code symbols
 
5593
  if test "$host_cpu" = ia64; then
 
5594
    symcode='[ABCDEGRST]'
 
5595
  fi
 
5596
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5597
  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'"
 
5598
  ;;
 
5599
linux*)
 
5600
  if test "$host_cpu" = ia64; then
 
5601
    symcode='[ABCDGIRSTW]'
 
5602
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5603
    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'"
 
5604
  fi
 
5605
  ;;
 
5606
irix* | nonstopux*)
 
5607
  symcode='[BCDEGRST]'
 
5608
  ;;
 
5609
osf*)
 
5610
  symcode='[BCDEGQRST]'
 
5611
  ;;
 
5612
solaris*)
 
5613
  symcode='[BDRT]'
 
5614
  ;;
 
5615
sco3.2v5*)
 
5616
  symcode='[DT]'
 
5617
  ;;
 
5618
sysv4.2uw2*)
 
5619
  symcode='[DT]'
 
5620
  ;;
 
5621
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5622
  symcode='[ABDT]'
 
5623
  ;;
 
5624
sysv4)
 
5625
  symcode='[DFNSTU]'
 
5626
  ;;
 
5627
esac
 
5628
 
 
5629
# Handle CRLF in mingw tool chain
 
5630
opt_cr=
 
5631
case $build_os in
 
5632
mingw*)
 
5633
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5634
  ;;
 
5635
esac
 
5636
 
 
5637
# If we're using GNU nm, then use its standard symbol codes.
 
5638
case `$NM -V 2>&1` in
 
5639
*GNU* | *'with BFD'*)
 
5640
  symcode='[ABCDGIRSTW]' ;;
 
5641
esac
 
5642
 
 
5643
# Try without a prefix undercore, then with it.
 
5644
for ac_symprfx in "" "_"; do
 
5645
 
 
5646
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5647
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5648
 
 
5649
  # Write the raw and C identifiers.
 
5650
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5651
 
 
5652
  # Check to see that the pipe works correctly.
 
5653
  pipe_works=no
 
5654
 
 
5655
  rm -f conftest*
 
5656
  cat > conftest.$ac_ext <<EOF
 
5657
#ifdef __cplusplus
 
5658
extern "C" {
 
5659
#endif
 
5660
char nm_test_var;
 
5661
void nm_test_func(){}
 
5662
#ifdef __cplusplus
 
5663
}
 
5664
#endif
 
5665
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5666
EOF
 
5667
 
 
5668
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5669
  (eval $ac_compile) 2>&5
 
5670
  ac_status=$?
 
5671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5672
  (exit $ac_status); }; then
 
5673
    # Now try to grab the symbols.
 
5674
    nlist=conftest.nm
 
5675
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5676
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5677
  ac_status=$?
 
5678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5679
  (exit $ac_status); } && test -s "$nlist"; then
 
5680
      # Try sorting and uniquifying the output.
 
5681
      if sort "$nlist" | uniq > "$nlist"T; then
 
5682
        mv -f "$nlist"T "$nlist"
 
5683
      else
 
5684
        rm -f "$nlist"T
 
5685
      fi
 
5686
 
 
5687
      # Make sure that we snagged all the symbols we need.
 
5688
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5689
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5690
          cat <<EOF > conftest.$ac_ext
 
5691
#ifdef __cplusplus
 
5692
extern "C" {
 
5693
#endif
 
5694
 
 
5695
EOF
 
5696
          # Now generate the symbol file.
 
5697
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5698
 
 
5699
          cat <<EOF >> conftest.$ac_ext
 
5700
#if defined (__STDC__) && __STDC__
 
5701
# define lt_ptr_t void *
 
5702
#else
 
5703
# define lt_ptr_t char *
 
5704
# define const
 
5705
#endif
 
5706
 
 
5707
/* The mapping between symbol names and symbols. */
 
5708
const struct {
 
5709
  const char *name;
 
5710
  lt_ptr_t address;
 
5711
}
 
5712
lt_preloaded_symbols[] =
 
5713
{
 
5714
EOF
 
5715
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5716
          cat <<\EOF >> conftest.$ac_ext
 
5717
  {0, (lt_ptr_t) 0}
 
5718
};
 
5719
 
 
5720
#ifdef __cplusplus
 
5721
}
 
5722
#endif
 
5723
EOF
 
5724
          # Now try linking the two files.
 
5725
          mv conftest.$ac_objext conftstm.$ac_objext
 
5726
          lt_save_LIBS="$LIBS"
 
5727
          lt_save_CFLAGS="$CFLAGS"
 
5728
          LIBS="conftstm.$ac_objext"
 
5729
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5730
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5731
  (eval $ac_link) 2>&5
 
5732
  ac_status=$?
 
5733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5734
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5735
            pipe_works=yes
 
5736
          fi
 
5737
          LIBS="$lt_save_LIBS"
 
5738
          CFLAGS="$lt_save_CFLAGS"
 
5739
        else
 
5740
          echo "cannot find nm_test_func in $nlist" >&5
 
5741
        fi
 
5742
      else
 
5743
        echo "cannot find nm_test_var in $nlist" >&5
 
5744
      fi
 
5745
    else
 
5746
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5747
    fi
 
5748
  else
 
5749
    echo "$progname: failed program was:" >&5
 
5750
    cat conftest.$ac_ext >&5
 
5751
  fi
 
5752
  rm -f conftest* conftst*
 
5753
 
 
5754
  # Do not use the global_symbol_pipe unless it works.
 
5755
  if test "$pipe_works" = yes; then
 
5756
    break
 
5757
  else
 
5758
    lt_cv_sys_global_symbol_pipe=
 
5759
  fi
 
5760
done
 
5761
 
 
5762
fi
 
5763
 
 
5764
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5765
  lt_cv_sys_global_symbol_to_cdecl=
 
5766
fi
 
5767
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5768
  echo "$as_me:$LINENO: result: failed" >&5
 
5769
echo "${ECHO_T}failed" >&6
 
5770
else
 
5771
  echo "$as_me:$LINENO: result: ok" >&5
 
5772
echo "${ECHO_T}ok" >&6
 
5773
fi
 
5774
 
 
5775
echo "$as_me:$LINENO: checking for objdir" >&5
 
5776
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5777
if test "${lt_cv_objdir+set}" = set; then
 
5778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5779
else
 
5780
  rm -f .libs 2>/dev/null
 
5781
mkdir .libs 2>/dev/null
 
5782
if test -d .libs; then
 
5783
  lt_cv_objdir=.libs
 
5784
else
 
5785
  # MS-DOS does not allow filenames that begin with a dot.
 
5786
  lt_cv_objdir=_libs
 
5787
fi
 
5788
rmdir .libs 2>/dev/null
 
5789
fi
 
5790
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5791
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5792
objdir=$lt_cv_objdir
 
5793
 
 
5794
 
 
5795
 
 
5796
 
 
5797
 
 
5798
case $host_os in
 
5799
aix3*)
 
5800
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5801
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5802
  # vanish in a puff of smoke.
 
5803
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5804
    COLLECT_NAMES=
 
5805
    export COLLECT_NAMES
 
5806
  fi
 
5807
  ;;
 
5808
esac
 
5809
 
 
5810
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5811
# metacharacters that are still active within double-quoted strings.
 
5812
Xsed='sed -e 1s/^X//'
 
5813
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5814
 
 
5815
# Same as above, but do not quote variable references.
 
5816
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5817
 
 
5818
# Sed substitution to delay expansion of an escaped shell variable in a
 
5819
# double_quote_subst'ed string.
 
5820
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5821
 
 
5822
# Sed substitution to avoid accidental globbing in evaled expressions
 
5823
no_glob_subst='s/\*/\\\*/g'
 
5824
 
 
5825
# Constants:
 
5826
rm="rm -f"
 
5827
 
 
5828
# Global variables:
 
5829
default_ofile=libtool
 
5830
can_build_shared=yes
 
5831
 
 
5832
# All known linkers require a `.a' archive for static linking (except MSVC,
 
5833
# which needs '.lib').
 
5834
libext=a
 
5835
ltmain="$ac_aux_dir/ltmain.sh"
 
5836
ofile="$default_ofile"
 
5837
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5838
 
 
5839
if test -n "$ac_tool_prefix"; then
 
5840
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5841
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5842
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5843
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5844
if test "${ac_cv_prog_AR+set}" = set; then
 
5845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5846
else
 
5847
  if test -n "$AR"; then
 
5848
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5849
else
 
5850
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5851
for as_dir in $PATH
 
5852
do
 
5853
  IFS=$as_save_IFS
 
5854
  test -z "$as_dir" && as_dir=.
 
5855
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5856
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5857
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5858
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5859
    break 2
 
5860
  fi
 
5861
done
 
5862
done
 
5863
 
 
5864
fi
 
5865
fi
 
5866
AR=$ac_cv_prog_AR
 
5867
if test -n "$AR"; then
 
5868
  echo "$as_me:$LINENO: result: $AR" >&5
 
5869
echo "${ECHO_T}$AR" >&6
 
5870
else
 
5871
  echo "$as_me:$LINENO: result: no" >&5
 
5872
echo "${ECHO_T}no" >&6
 
5873
fi
 
5874
 
 
5875
fi
 
5876
if test -z "$ac_cv_prog_AR"; then
 
5877
  ac_ct_AR=$AR
 
5878
  # Extract the first word of "ar", so it can be a program name with args.
 
5879
set dummy ar; ac_word=$2
 
5880
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5881
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5882
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5884
else
 
5885
  if test -n "$ac_ct_AR"; then
 
5886
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5887
else
 
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5889
for as_dir in $PATH
 
5890
do
 
5891
  IFS=$as_save_IFS
 
5892
  test -z "$as_dir" && as_dir=.
 
5893
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5894
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5895
    ac_cv_prog_ac_ct_AR="ar"
 
5896
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5897
    break 2
 
5898
  fi
 
5899
done
 
5900
done
 
5901
 
 
5902
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5903
fi
 
5904
fi
 
5905
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5906
if test -n "$ac_ct_AR"; then
 
5907
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5908
echo "${ECHO_T}$ac_ct_AR" >&6
 
5909
else
 
5910
  echo "$as_me:$LINENO: result: no" >&5
 
5911
echo "${ECHO_T}no" >&6
 
5912
fi
 
5913
 
 
5914
  AR=$ac_ct_AR
 
5915
else
 
5916
  AR="$ac_cv_prog_AR"
 
5917
fi
 
5918
 
 
5919
if test -n "$ac_tool_prefix"; then
 
5920
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5921
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5922
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5924
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5926
else
 
5927
  if test -n "$RANLIB"; then
 
5928
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5929
else
 
5930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5931
for as_dir in $PATH
 
5932
do
 
5933
  IFS=$as_save_IFS
 
5934
  test -z "$as_dir" && as_dir=.
 
5935
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5936
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5937
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5938
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5939
    break 2
 
5940
  fi
 
5941
done
 
5942
done
 
5943
 
 
5944
fi
 
5945
fi
 
5946
RANLIB=$ac_cv_prog_RANLIB
 
5947
if test -n "$RANLIB"; then
 
5948
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5949
echo "${ECHO_T}$RANLIB" >&6
 
5950
else
 
5951
  echo "$as_me:$LINENO: result: no" >&5
 
5952
echo "${ECHO_T}no" >&6
 
5953
fi
 
5954
 
 
5955
fi
 
5956
if test -z "$ac_cv_prog_RANLIB"; then
 
5957
  ac_ct_RANLIB=$RANLIB
 
5958
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5959
set dummy ranlib; ac_word=$2
 
5960
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5961
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5962
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5964
else
 
5965
  if test -n "$ac_ct_RANLIB"; then
 
5966
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5967
else
 
5968
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5969
for as_dir in $PATH
 
5970
do
 
5971
  IFS=$as_save_IFS
 
5972
  test -z "$as_dir" && as_dir=.
 
5973
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5974
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5975
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5976
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5977
    break 2
 
5978
  fi
 
5979
done
 
5980
done
 
5981
 
 
5982
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5983
fi
 
5984
fi
 
5985
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5986
if test -n "$ac_ct_RANLIB"; then
 
5987
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5988
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5989
else
 
5990
  echo "$as_me:$LINENO: result: no" >&5
 
5991
echo "${ECHO_T}no" >&6
 
5992
fi
 
5993
 
 
5994
  RANLIB=$ac_ct_RANLIB
 
5995
else
 
5996
  RANLIB="$ac_cv_prog_RANLIB"
 
5997
fi
 
5998
 
 
5999
if test -n "$ac_tool_prefix"; then
 
6000
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6001
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6002
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6004
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6006
else
 
6007
  if test -n "$STRIP"; then
 
6008
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6009
else
 
6010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6011
for as_dir in $PATH
 
6012
do
 
6013
  IFS=$as_save_IFS
 
6014
  test -z "$as_dir" && as_dir=.
 
6015
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6016
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6017
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6018
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6019
    break 2
 
6020
  fi
 
6021
done
 
6022
done
 
6023
 
 
6024
fi
 
6025
fi
 
6026
STRIP=$ac_cv_prog_STRIP
 
6027
if test -n "$STRIP"; then
 
6028
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6029
echo "${ECHO_T}$STRIP" >&6
 
6030
else
 
6031
  echo "$as_me:$LINENO: result: no" >&5
 
6032
echo "${ECHO_T}no" >&6
 
6033
fi
 
6034
 
 
6035
fi
 
6036
if test -z "$ac_cv_prog_STRIP"; then
 
6037
  ac_ct_STRIP=$STRIP
 
6038
  # Extract the first word of "strip", so it can be a program name with args.
 
6039
set dummy strip; ac_word=$2
 
6040
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6041
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6042
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6044
else
 
6045
  if test -n "$ac_ct_STRIP"; then
 
6046
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6047
else
 
6048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6049
for as_dir in $PATH
 
6050
do
 
6051
  IFS=$as_save_IFS
 
6052
  test -z "$as_dir" && as_dir=.
 
6053
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6054
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6055
    ac_cv_prog_ac_ct_STRIP="strip"
 
6056
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6057
    break 2
 
6058
  fi
 
6059
done
 
6060
done
 
6061
 
 
6062
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6063
fi
 
6064
fi
 
6065
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6066
if test -n "$ac_ct_STRIP"; then
 
6067
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6068
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6069
else
 
6070
  echo "$as_me:$LINENO: result: no" >&5
 
6071
echo "${ECHO_T}no" >&6
 
6072
fi
 
6073
 
 
6074
  STRIP=$ac_ct_STRIP
 
6075
else
 
6076
  STRIP="$ac_cv_prog_STRIP"
 
6077
fi
 
6078
 
 
6079
 
 
6080
old_CC="$CC"
 
6081
old_CFLAGS="$CFLAGS"
 
6082
 
 
6083
# Set sane defaults for various variables
 
6084
test -z "$AR" && AR=ar
 
6085
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6086
test -z "$AS" && AS=as
 
6087
test -z "$CC" && CC=cc
 
6088
test -z "$LTCC" && LTCC=$CC
 
6089
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6090
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6091
test -z "$LD" && LD=ld
 
6092
test -z "$LN_S" && LN_S="ln -s"
 
6093
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6094
test -z "$NM" && NM=nm
 
6095
test -z "$SED" && SED=sed
 
6096
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6097
test -z "$RANLIB" && RANLIB=:
 
6098
test -z "$STRIP" && STRIP=:
 
6099
test -z "$ac_objext" && ac_objext=o
 
6100
 
 
6101
# Determine commands to create old-style static archives.
 
6102
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6103
old_postinstall_cmds='chmod 644 $oldlib'
 
6104
old_postuninstall_cmds=
 
6105
 
 
6106
if test -n "$RANLIB"; then
 
6107
  case $host_os in
 
6108
  openbsd*)
 
6109
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6110
    ;;
 
6111
  *)
 
6112
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6113
    ;;
 
6114
  esac
 
6115
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6116
fi
 
6117
 
 
6118
for cc_temp in $compiler""; do
 
6119
  case $cc_temp in
 
6120
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6121
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6122
    \-*) ;;
 
6123
    *) break;;
 
6124
  esac
 
6125
done
 
6126
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6127
 
 
6128
 
 
6129
# Only perform the check for file, if the check method requires it
 
6130
case $deplibs_check_method in
 
6131
file_magic*)
 
6132
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6133
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6134
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6135
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6137
else
 
6138
  case $MAGIC_CMD in
 
6139
[\\/*] |  ?:[\\/]*)
 
6140
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6141
  ;;
 
6142
*)
 
6143
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6144
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6145
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6146
  for ac_dir in $ac_dummy; do
 
6147
    IFS="$lt_save_ifs"
 
6148
    test -z "$ac_dir" && ac_dir=.
 
6149
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6150
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6151
      if test -n "$file_magic_test_file"; then
 
6152
        case $deplibs_check_method in
 
6153
        "file_magic "*)
 
6154
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6155
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6156
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6157
            $EGREP "$file_magic_regex" > /dev/null; then
 
6158
            :
 
6159
          else
 
6160
            cat <<EOF 1>&2
 
6161
 
 
6162
*** Warning: the command libtool uses to detect shared libraries,
 
6163
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6164
*** The result is that libtool may fail to recognize shared libraries
 
6165
*** as such.  This will affect the creation of libtool libraries that
 
6166
*** depend on shared libraries, but programs linked with such libtool
 
6167
*** libraries will work regardless of this problem.  Nevertheless, you
 
6168
*** may want to report the problem to your system manager and/or to
 
6169
*** bug-libtool@gnu.org
 
6170
 
 
6171
EOF
 
6172
          fi ;;
 
6173
        esac
 
6174
      fi
 
6175
      break
 
6176
    fi
 
6177
  done
 
6178
  IFS="$lt_save_ifs"
 
6179
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6180
  ;;
 
6181
esac
 
6182
fi
 
6183
 
 
6184
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6185
if test -n "$MAGIC_CMD"; then
 
6186
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6187
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6188
else
 
6189
  echo "$as_me:$LINENO: result: no" >&5
 
6190
echo "${ECHO_T}no" >&6
 
6191
fi
 
6192
 
 
6193
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6194
  if test -n "$ac_tool_prefix"; then
 
6195
    echo "$as_me:$LINENO: checking for file" >&5
 
6196
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6197
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6198
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6199
else
 
6200
  case $MAGIC_CMD in
 
6201
[\\/*] |  ?:[\\/]*)
 
6202
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6203
  ;;
 
6204
*)
 
6205
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6206
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6207
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6208
  for ac_dir in $ac_dummy; do
 
6209
    IFS="$lt_save_ifs"
 
6210
    test -z "$ac_dir" && ac_dir=.
 
6211
    if test -f $ac_dir/file; then
 
6212
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6213
      if test -n "$file_magic_test_file"; then
 
6214
        case $deplibs_check_method in
 
6215
        "file_magic "*)
 
6216
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6217
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6218
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6219
            $EGREP "$file_magic_regex" > /dev/null; then
 
6220
            :
 
6221
          else
 
6222
            cat <<EOF 1>&2
 
6223
 
 
6224
*** Warning: the command libtool uses to detect shared libraries,
 
6225
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6226
*** The result is that libtool may fail to recognize shared libraries
 
6227
*** as such.  This will affect the creation of libtool libraries that
 
6228
*** depend on shared libraries, but programs linked with such libtool
 
6229
*** libraries will work regardless of this problem.  Nevertheless, you
 
6230
*** may want to report the problem to your system manager and/or to
 
6231
*** bug-libtool@gnu.org
 
6232
 
 
6233
EOF
 
6234
          fi ;;
 
6235
        esac
 
6236
      fi
 
6237
      break
 
6238
    fi
 
6239
  done
 
6240
  IFS="$lt_save_ifs"
 
6241
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6242
  ;;
 
6243
esac
 
6244
fi
 
6245
 
 
6246
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6247
if test -n "$MAGIC_CMD"; then
 
6248
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6249
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6250
else
 
6251
  echo "$as_me:$LINENO: result: no" >&5
 
6252
echo "${ECHO_T}no" >&6
 
6253
fi
 
6254
 
 
6255
  else
 
6256
    MAGIC_CMD=:
 
6257
  fi
 
6258
fi
 
6259
 
 
6260
  fi
 
6261
  ;;
 
6262
esac
 
6263
 
 
6264
enable_dlopen=no
 
6265
enable_win32_dll=no
 
6266
 
 
6267
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6268
if test "${enable_libtool_lock+set}" = set; then
 
6269
  enableval="$enable_libtool_lock"
 
6270
 
 
6271
fi;
 
6272
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6273
 
 
6274
 
 
6275
# Check whether --with-pic or --without-pic was given.
 
6276
if test "${with_pic+set}" = set; then
 
6277
  withval="$with_pic"
 
6278
  pic_mode="$withval"
 
6279
else
 
6280
  pic_mode=default
 
6281
fi;
 
6282
test -z "$pic_mode" && pic_mode=default
 
6283
 
 
6284
# Use C for the default configuration in the libtool script
 
6285
tagname=
 
6286
lt_save_CC="$CC"
 
6287
ac_ext=c
 
6288
ac_cpp='$CPP $CPPFLAGS'
 
6289
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6290
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6291
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6292
 
 
6293
 
 
6294
# Source file extension for C test sources.
 
6295
ac_ext=c
 
6296
 
 
6297
# Object file extension for compiled C test sources.
 
6298
objext=o
 
6299
objext=$objext
 
6300
 
 
6301
# Code to be used in simple compile tests
 
6302
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6303
 
 
6304
# Code to be used in simple link tests
 
6305
lt_simple_link_test_code='int main(){return(0);}\n'
 
6306
 
 
6307
 
 
6308
# If no C compiler was specified, use CC.
 
6309
LTCC=${LTCC-"$CC"}
 
6310
 
 
6311
# If no C compiler flags were specified, use CFLAGS.
 
6312
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6313
 
 
6314
# Allow CC to be a program name with arguments.
 
6315
compiler=$CC
 
6316
 
 
6317
 
 
6318
# save warnings/boilerplate of simple test code
 
6319
ac_outfile=conftest.$ac_objext
 
6320
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6321
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6322
_lt_compiler_boilerplate=`cat conftest.err`
 
6323
$rm conftest*
 
6324
 
 
6325
ac_outfile=conftest.$ac_objext
 
6326
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6327
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6328
_lt_linker_boilerplate=`cat conftest.err`
 
6329
$rm conftest*
 
6330
 
 
6331
 
 
6332
 
 
6333
lt_prog_compiler_no_builtin_flag=
 
6334
 
 
6335
if test "$GCC" = yes; then
 
6336
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6337
 
 
6338
 
 
6339
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6340
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6341
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6343
else
 
6344
  lt_cv_prog_compiler_rtti_exceptions=no
 
6345
  ac_outfile=conftest.$ac_objext
 
6346
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6347
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6348
   # Insert the option either (1) after the last *FLAGS variable, or
 
6349
   # (2) before a word containing "conftest.", or (3) at the end.
 
6350
   # Note that $ac_compile itself does not contain backslashes and begins
 
6351
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6352
   # The option is referenced via a variable to avoid confusing sed.
 
6353
   lt_compile=`echo "$ac_compile" | $SED \
 
6354
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6355
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6356
   -e 's:$: $lt_compiler_flag:'`
 
6357
   (eval echo "\"\$as_me:6357: $lt_compile\"" >&5)
 
6358
   (eval "$lt_compile" 2>conftest.err)
 
6359
   ac_status=$?
 
6360
   cat conftest.err >&5
 
6361
   echo "$as_me:6361: \$? = $ac_status" >&5
 
6362
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6363
     # The compiler can only warn and ignore the option if not recognized
 
6364
     # So say no if there are warnings other than the usual output.
 
6365
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6366
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6367
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6368
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6369
     fi
 
6370
   fi
 
6371
   $rm conftest*
 
6372
 
 
6373
fi
 
6374
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6375
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6376
 
 
6377
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6378
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6379
else
 
6380
    :
 
6381
fi
 
6382
 
 
6383
fi
 
6384
 
 
6385
lt_prog_compiler_wl=
 
6386
lt_prog_compiler_pic=
 
6387
lt_prog_compiler_static=
 
6388
 
 
6389
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6390
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6391
 
 
6392
  if test "$GCC" = yes; then
 
6393
    lt_prog_compiler_wl='-Wl,'
 
6394
    lt_prog_compiler_static='-static'
 
6395
 
 
6396
    case $host_os in
 
6397
      aix*)
 
6398
      # All AIX code is PIC.
 
6399
      if test "$host_cpu" = ia64; then
 
6400
        # AIX 5 now supports IA64 processor
 
6401
        lt_prog_compiler_static='-Bstatic'
 
6402
      fi
 
6403
      ;;
 
6404
 
 
6405
    amigaos*)
 
6406
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6407
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6408
      # like `-m68040'.
 
6409
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6410
      ;;
 
6411
 
 
6412
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6413
      # PIC is the default for these OSes.
 
6414
      ;;
 
6415
 
 
6416
    mingw* | pw32* | os2*)
 
6417
      # This hack is so that the source file can tell whether it is being
 
6418
      # built for inclusion in a dll (and should export symbols for example).
 
6419
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6420
      ;;
 
6421
 
 
6422
    darwin* | rhapsody*)
 
6423
      # PIC is the default on this platform
 
6424
      # Common symbols not allowed in MH_DYLIB files
 
6425
      lt_prog_compiler_pic='-fno-common'
 
6426
      ;;
 
6427
 
 
6428
    interix3*)
 
6429
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6430
      # Instead, we relocate shared libraries at runtime.
 
6431
      ;;
 
6432
 
 
6433
    msdosdjgpp*)
 
6434
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6435
      # on systems that don't support them.
 
6436
      lt_prog_compiler_can_build_shared=no
 
6437
      enable_shared=no
 
6438
      ;;
 
6439
 
 
6440
    sysv4*MP*)
 
6441
      if test -d /usr/nec; then
 
6442
        lt_prog_compiler_pic=-Kconform_pic
 
6443
      fi
 
6444
      ;;
 
6445
 
 
6446
    hpux*)
 
6447
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6448
      # not for PA HP-UX.
 
6449
      case $host_cpu in
 
6450
      hppa*64*|ia64*)
 
6451
        # +Z the default
 
6452
        ;;
 
6453
      *)
 
6454
        lt_prog_compiler_pic='-fPIC'
 
6455
        ;;
 
6456
      esac
 
6457
      ;;
 
6458
 
 
6459
    *)
 
6460
      lt_prog_compiler_pic='-fPIC'
 
6461
      ;;
 
6462
    esac
 
6463
  else
 
6464
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6465
    case $host_os in
 
6466
    aix*)
 
6467
      lt_prog_compiler_wl='-Wl,'
 
6468
      if test "$host_cpu" = ia64; then
 
6469
        # AIX 5 now supports IA64 processor
 
6470
        lt_prog_compiler_static='-Bstatic'
 
6471
      else
 
6472
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6473
      fi
 
6474
      ;;
 
6475
      darwin*)
 
6476
        # PIC is the default on this platform
 
6477
        # Common symbols not allowed in MH_DYLIB files
 
6478
       case $cc_basename in
 
6479
         xlc*)
 
6480
         lt_prog_compiler_pic='-qnocommon'
 
6481
         lt_prog_compiler_wl='-Wl,'
 
6482
         ;;
 
6483
       esac
 
6484
       ;;
 
6485
 
 
6486
    mingw* | pw32* | os2*)
 
6487
      # This hack is so that the source file can tell whether it is being
 
6488
      # built for inclusion in a dll (and should export symbols for example).
 
6489
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6490
      ;;
 
6491
 
 
6492
    hpux9* | hpux10* | hpux11*)
 
6493
      lt_prog_compiler_wl='-Wl,'
 
6494
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6495
      # not for PA HP-UX.
 
6496
      case $host_cpu in
 
6497
      hppa*64*|ia64*)
 
6498
        # +Z the default
 
6499
        ;;
 
6500
      *)
 
6501
        lt_prog_compiler_pic='+Z'
 
6502
        ;;
 
6503
      esac
 
6504
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6505
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6506
      ;;
 
6507
 
 
6508
    irix5* | irix6* | nonstopux*)
 
6509
      lt_prog_compiler_wl='-Wl,'
 
6510
      # PIC (with -KPIC) is the default.
 
6511
      lt_prog_compiler_static='-non_shared'
 
6512
      ;;
 
6513
 
 
6514
    newsos6)
 
6515
      lt_prog_compiler_pic='-KPIC'
 
6516
      lt_prog_compiler_static='-Bstatic'
 
6517
      ;;
 
6518
 
 
6519
    linux*)
 
6520
      case $cc_basename in
 
6521
      icc* | ecc*)
 
6522
        lt_prog_compiler_wl='-Wl,'
 
6523
        lt_prog_compiler_pic='-KPIC'
 
6524
        lt_prog_compiler_static='-static'
 
6525
        ;;
 
6526
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6527
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6528
        # which looks to be a dead project)
 
6529
        lt_prog_compiler_wl='-Wl,'
 
6530
        lt_prog_compiler_pic='-fpic'
 
6531
        lt_prog_compiler_static='-Bstatic'
 
6532
        ;;
 
6533
      ccc*)
 
6534
        lt_prog_compiler_wl='-Wl,'
 
6535
        # All Alpha code is PIC.
 
6536
        lt_prog_compiler_static='-non_shared'
 
6537
        ;;
 
6538
      esac
 
6539
      ;;
 
6540
 
 
6541
    osf3* | osf4* | osf5*)
 
6542
      lt_prog_compiler_wl='-Wl,'
 
6543
      # All OSF/1 code is PIC.
 
6544
      lt_prog_compiler_static='-non_shared'
 
6545
      ;;
 
6546
 
 
6547
    solaris*)
 
6548
      lt_prog_compiler_pic='-KPIC'
 
6549
      lt_prog_compiler_static='-Bstatic'
 
6550
      case $cc_basename in
 
6551
      f77* | f90* | f95*)
 
6552
        lt_prog_compiler_wl='-Qoption ld ';;
 
6553
      *)
 
6554
        lt_prog_compiler_wl='-Wl,';;
 
6555
      esac
 
6556
      ;;
 
6557
 
 
6558
    sunos4*)
 
6559
      lt_prog_compiler_wl='-Qoption ld '
 
6560
      lt_prog_compiler_pic='-PIC'
 
6561
      lt_prog_compiler_static='-Bstatic'
 
6562
      ;;
 
6563
 
 
6564
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
6565
      lt_prog_compiler_wl='-Wl,'
 
6566
      lt_prog_compiler_pic='-KPIC'
 
6567
      lt_prog_compiler_static='-Bstatic'
 
6568
      ;;
 
6569
 
 
6570
    sysv4*MP*)
 
6571
      if test -d /usr/nec ;then
 
6572
        lt_prog_compiler_pic='-Kconform_pic'
 
6573
        lt_prog_compiler_static='-Bstatic'
 
6574
      fi
 
6575
      ;;
 
6576
 
 
6577
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6578
      lt_prog_compiler_wl='-Wl,'
 
6579
      lt_prog_compiler_pic='-KPIC'
 
6580
      lt_prog_compiler_static='-Bstatic'
 
6581
      ;;
 
6582
 
 
6583
    unicos*)
 
6584
      lt_prog_compiler_wl='-Wl,'
 
6585
      lt_prog_compiler_can_build_shared=no
 
6586
      ;;
 
6587
 
 
6588
    uts4*)
 
6589
      lt_prog_compiler_pic='-pic'
 
6590
      lt_prog_compiler_static='-Bstatic'
 
6591
      ;;
 
6592
 
 
6593
    *)
 
6594
      lt_prog_compiler_can_build_shared=no
 
6595
      ;;
 
6596
    esac
 
6597
  fi
 
6598
 
 
6599
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6600
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6601
 
 
6602
#
 
6603
# Check to make sure the PIC flag actually works.
 
6604
#
 
6605
if test -n "$lt_prog_compiler_pic"; then
 
6606
 
 
6607
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6608
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6609
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6611
else
 
6612
  lt_prog_compiler_pic_works=no
 
6613
  ac_outfile=conftest.$ac_objext
 
6614
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6615
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6616
   # Insert the option either (1) after the last *FLAGS variable, or
 
6617
   # (2) before a word containing "conftest.", or (3) at the end.
 
6618
   # Note that $ac_compile itself does not contain backslashes and begins
 
6619
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6620
   # The option is referenced via a variable to avoid confusing sed.
 
6621
   lt_compile=`echo "$ac_compile" | $SED \
 
6622
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6623
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6624
   -e 's:$: $lt_compiler_flag:'`
 
6625
   (eval echo "\"\$as_me:6625: $lt_compile\"" >&5)
 
6626
   (eval "$lt_compile" 2>conftest.err)
 
6627
   ac_status=$?
 
6628
   cat conftest.err >&5
 
6629
   echo "$as_me:6629: \$? = $ac_status" >&5
 
6630
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6631
     # The compiler can only warn and ignore the option if not recognized
 
6632
     # So say no if there are warnings other than the usual output.
 
6633
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6634
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6635
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6636
       lt_prog_compiler_pic_works=yes
 
6637
     fi
 
6638
   fi
 
6639
   $rm conftest*
 
6640
 
 
6641
fi
 
6642
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6643
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6644
 
 
6645
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6646
    case $lt_prog_compiler_pic in
 
6647
     "" | " "*) ;;
 
6648
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6649
     esac
 
6650
else
 
6651
    lt_prog_compiler_pic=
 
6652
     lt_prog_compiler_can_build_shared=no
 
6653
fi
 
6654
 
 
6655
fi
 
6656
case $host_os in
 
6657
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6658
  *djgpp*)
 
6659
    lt_prog_compiler_pic=
 
6660
    ;;
 
6661
  *)
 
6662
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6663
    ;;
 
6664
esac
 
6665
 
 
6666
#
 
6667
# Check to make sure the static flag actually works.
 
6668
#
 
6669
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
6670
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
6671
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
6672
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6674
else
 
6675
  lt_prog_compiler_static_works=no
 
6676
   save_LDFLAGS="$LDFLAGS"
 
6677
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
6678
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6679
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6680
     # The linker can only warn and ignore the option if not recognized
 
6681
     # So say no if there are warnings
 
6682
     if test -s conftest.err; then
 
6683
       # Append any errors to the config.log.
 
6684
       cat conftest.err 1>&5
 
6685
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
6686
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6687
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6688
         lt_prog_compiler_static_works=yes
 
6689
       fi
 
6690
     else
 
6691
       lt_prog_compiler_static_works=yes
 
6692
     fi
 
6693
   fi
 
6694
   $rm conftest*
 
6695
   LDFLAGS="$save_LDFLAGS"
 
6696
 
 
6697
fi
 
6698
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6699
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6700
 
 
6701
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6702
    :
 
6703
else
 
6704
    lt_prog_compiler_static=
 
6705
fi
 
6706
 
 
6707
 
 
6708
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6709
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6710
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6712
else
 
6713
  lt_cv_prog_compiler_c_o=no
 
6714
   $rm -r conftest 2>/dev/null
 
6715
   mkdir conftest
 
6716
   cd conftest
 
6717
   mkdir out
 
6718
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6719
 
 
6720
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6721
   # Insert the option either (1) after the last *FLAGS variable, or
 
6722
   # (2) before a word containing "conftest.", or (3) at the end.
 
6723
   # Note that $ac_compile itself does not contain backslashes and begins
 
6724
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6725
   lt_compile=`echo "$ac_compile" | $SED \
 
6726
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6727
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6728
   -e 's:$: $lt_compiler_flag:'`
 
6729
   (eval echo "\"\$as_me:6729: $lt_compile\"" >&5)
 
6730
   (eval "$lt_compile" 2>out/conftest.err)
 
6731
   ac_status=$?
 
6732
   cat out/conftest.err >&5
 
6733
   echo "$as_me:6733: \$? = $ac_status" >&5
 
6734
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6735
   then
 
6736
     # The compiler can only warn and ignore the option if not recognized
 
6737
     # So say no if there are warnings
 
6738
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
6739
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
6740
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6741
       lt_cv_prog_compiler_c_o=yes
 
6742
     fi
 
6743
   fi
 
6744
   chmod u+w . 2>&5
 
6745
   $rm conftest*
 
6746
   # SGI C++ compiler will create directory out/ii_files/ for
 
6747
   # template instantiation
 
6748
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6749
   $rm out/* && rmdir out
 
6750
   cd ..
 
6751
   rmdir conftest
 
6752
   $rm conftest*
 
6753
 
 
6754
fi
 
6755
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6756
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6757
 
 
6758
 
 
6759
hard_links="nottested"
 
6760
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6761
  # do not overwrite the value of need_locks provided by the user
 
6762
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6763
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6764
  hard_links=yes
 
6765
  $rm conftest*
 
6766
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6767
  touch conftest.a
 
6768
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6769
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6770
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6771
echo "${ECHO_T}$hard_links" >&6
 
6772
  if test "$hard_links" = no; then
 
6773
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6774
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6775
    need_locks=warn
 
6776
  fi
 
6777
else
 
6778
  need_locks=no
 
6779
fi
 
6780
 
 
6781
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6782
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6783
 
 
6784
  runpath_var=
 
6785
  allow_undefined_flag=
 
6786
  enable_shared_with_static_runtimes=no
 
6787
  archive_cmds=
 
6788
  archive_expsym_cmds=
 
6789
  old_archive_From_new_cmds=
 
6790
  old_archive_from_expsyms_cmds=
 
6791
  export_dynamic_flag_spec=
 
6792
  whole_archive_flag_spec=
 
6793
  thread_safe_flag_spec=
 
6794
  hardcode_libdir_flag_spec=
 
6795
  hardcode_libdir_flag_spec_ld=
 
6796
  hardcode_libdir_separator=
 
6797
  hardcode_direct=no
 
6798
  hardcode_minus_L=no
 
6799
  hardcode_shlibpath_var=unsupported
 
6800
  link_all_deplibs=unknown
 
6801
  hardcode_automatic=no
 
6802
  module_cmds=
 
6803
  module_expsym_cmds=
 
6804
  always_export_symbols=no
 
6805
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6806
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6807
  # included in the symbol list
 
6808
  include_expsyms=
 
6809
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6810
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6811
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6812
  # as well as any symbol that contains `d'.
 
6813
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6814
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6815
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6816
  # the symbol is explicitly referenced.  Since portable code cannot
 
6817
  # rely on this symbol name, it's probably fine to never include it in
 
6818
  # preloaded symbol tables.
 
6819
  extract_expsyms_cmds=
 
6820
  # Just being paranoid about ensuring that cc_basename is set.
 
6821
  for cc_temp in $compiler""; do
 
6822
  case $cc_temp in
 
6823
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6824
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6825
    \-*) ;;
 
6826
    *) break;;
 
6827
  esac
 
6828
done
 
6829
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6830
 
 
6831
  case $host_os in
 
6832
  cygwin* | mingw* | pw32*)
 
6833
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6834
    # When not using gcc, we currently assume that we are using
 
6835
    # Microsoft Visual C++.
 
6836
    if test "$GCC" != yes; then
 
6837
      with_gnu_ld=no
 
6838
    fi
 
6839
    ;;
 
6840
  interix*)
 
6841
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6842
    with_gnu_ld=yes
 
6843
    ;;
 
6844
  openbsd*)
 
6845
    with_gnu_ld=no
 
6846
    ;;
 
6847
  esac
 
6848
 
 
6849
  ld_shlibs=yes
 
6850
  if test "$with_gnu_ld" = yes; then
 
6851
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6852
    wlarc='${wl}'
 
6853
 
 
6854
    # Set some defaults for GNU ld with shared library support. These
 
6855
    # are reset later if shared libraries are not supported. Putting them
 
6856
    # here allows them to be overridden if necessary.
 
6857
    runpath_var=LD_RUN_PATH
 
6858
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6859
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6860
    # ancient GNU ld didn't support --whole-archive et. al.
 
6861
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6862
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6863
      else
 
6864
        whole_archive_flag_spec=
 
6865
    fi
 
6866
    supports_anon_versioning=no
 
6867
    case `$LD -v 2>/dev/null` in
 
6868
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6869
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6870
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6871
      *\ 2.11.*) ;; # other 2.11 versions
 
6872
      *) supports_anon_versioning=yes ;;
 
6873
    esac
 
6874
 
 
6875
    # See if GNU ld supports shared libraries.
 
6876
    case $host_os in
 
6877
    aix3* | aix4* | aix5*)
 
6878
      # On AIX/PPC, the GNU linker is very broken
 
6879
      if test "$host_cpu" != ia64; then
 
6880
        ld_shlibs=no
 
6881
        cat <<EOF 1>&2
 
6882
 
 
6883
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6884
*** to be unable to reliably create shared libraries on AIX.
 
6885
*** Therefore, libtool is disabling shared libraries support.  If you
 
6886
*** really care for shared libraries, you may want to modify your PATH
 
6887
*** so that a non-GNU linker is found, and then restart.
 
6888
 
 
6889
EOF
 
6890
      fi
 
6891
      ;;
 
6892
 
 
6893
    amigaos*)
 
6894
      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)'
 
6895
      hardcode_libdir_flag_spec='-L$libdir'
 
6896
      hardcode_minus_L=yes
 
6897
 
 
6898
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6899
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6900
      # to version 4, is to share data among multiple programs linked
 
6901
      # with the same dynamic library.  Since this doesn't match the
 
6902
      # behavior of shared libraries on other platforms, we can't use
 
6903
      # them.
 
6904
      ld_shlibs=no
 
6905
      ;;
 
6906
 
 
6907
    beos*)
 
6908
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6909
        allow_undefined_flag=unsupported
 
6910
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6911
        # support --undefined.  This deserves some investigation.  FIXME
 
6912
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6913
      else
 
6914
        ld_shlibs=no
 
6915
      fi
 
6916
      ;;
 
6917
 
 
6918
    cygwin* | mingw* | pw32*)
 
6919
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6920
      # as there is no search path for DLLs.
 
6921
      hardcode_libdir_flag_spec='-L$libdir'
 
6922
      allow_undefined_flag=unsupported
 
6923
      always_export_symbols=no
 
6924
      enable_shared_with_static_runtimes=yes
 
6925
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6926
 
 
6927
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6928
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6929
        # If the export-symbols file already is a .def file (1st line
 
6930
        # is EXPORTS), use it as is; otherwise, prepend...
 
6931
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6932
          cp $export_symbols $output_objdir/$soname.def;
 
6933
        else
 
6934
          echo EXPORTS > $output_objdir/$soname.def;
 
6935
          cat $export_symbols >> $output_objdir/$soname.def;
 
6936
        fi~
 
6937
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6938
      else
 
6939
        ld_shlibs=no
 
6940
      fi
 
6941
      ;;
 
6942
 
 
6943
    interix3*)
 
6944
      hardcode_direct=no
 
6945
      hardcode_shlibpath_var=no
 
6946
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6947
      export_dynamic_flag_spec='${wl}-E'
 
6948
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6949
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6950
      # default) and relocated if they conflict, which is a slow very memory
 
6951
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6952
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6953
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6954
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6955
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6956
      ;;
 
6957
 
 
6958
    linux*)
 
6959
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6960
        tmp_addflag=
 
6961
        case $cc_basename,$host_cpu in
 
6962
        pgcc*)                          # Portland Group C compiler
 
6963
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6964
          tmp_addflag=' $pic_flag'
 
6965
          ;;
 
6966
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6967
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6968
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6969
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6970
          tmp_addflag=' -i_dynamic' ;;
 
6971
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6972
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6973
        ifc* | ifort*)                  # Intel Fortran compiler
 
6974
          tmp_addflag=' -nofor_main' ;;
 
6975
        esac
 
6976
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6977
 
 
6978
        if test $supports_anon_versioning = yes; then
 
6979
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6980
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6981
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6982
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6983
        fi
 
6984
        link_all_deplibs=no
 
6985
      else
 
6986
        ld_shlibs=no
 
6987
      fi
 
6988
      ;;
 
6989
 
 
6990
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6991
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6992
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6993
        wlarc=
 
6994
      else
 
6995
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6996
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6997
      fi
 
6998
      ;;
 
6999
 
 
7000
    solaris*)
 
7001
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7002
        ld_shlibs=no
 
7003
        cat <<EOF 1>&2
 
7004
 
 
7005
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7006
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7007
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7008
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7009
*** your PATH or compiler configuration so that the native linker is
 
7010
*** used, and then restart.
 
7011
 
 
7012
EOF
 
7013
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7014
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7015
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7016
      else
 
7017
        ld_shlibs=no
 
7018
      fi
 
7019
      ;;
 
7020
 
 
7021
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7022
      case `$LD -v 2>&1` in
 
7023
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7024
        ld_shlibs=no
 
7025
        cat <<_LT_EOF 1>&2
 
7026
 
 
7027
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7028
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7029
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7030
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7031
*** your PATH or compiler configuration so that the native linker is
 
7032
*** used, and then restart.
 
7033
 
 
7034
_LT_EOF
 
7035
        ;;
 
7036
        *)
 
7037
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7038
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7039
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7040
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7041
          else
 
7042
            ld_shlibs=no
 
7043
          fi
 
7044
        ;;
 
7045
      esac
 
7046
      ;;
 
7047
 
 
7048
    sunos4*)
 
7049
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7050
      wlarc=
 
7051
      hardcode_direct=yes
 
7052
      hardcode_shlibpath_var=no
 
7053
      ;;
 
7054
 
 
7055
    *)
 
7056
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7057
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7058
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7059
      else
 
7060
        ld_shlibs=no
 
7061
      fi
 
7062
      ;;
 
7063
    esac
 
7064
 
 
7065
    if test "$ld_shlibs" = no; then
 
7066
      runpath_var=
 
7067
      hardcode_libdir_flag_spec=
 
7068
      export_dynamic_flag_spec=
 
7069
      whole_archive_flag_spec=
 
7070
    fi
 
7071
  else
 
7072
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7073
    case $host_os in
 
7074
    aix3*)
 
7075
      allow_undefined_flag=unsupported
 
7076
      always_export_symbols=yes
 
7077
      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'
 
7078
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7079
      # are no directories specified by -L.
 
7080
      hardcode_minus_L=yes
 
7081
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7082
        # Neither direct hardcoding nor static linking is supported with a
 
7083
        # broken collect2.
 
7084
        hardcode_direct=unsupported
 
7085
      fi
 
7086
      ;;
 
7087
 
 
7088
    aix4* | aix5*)
 
7089
      if test "$host_cpu" = ia64; then
 
7090
        # On IA64, the linker does run time linking by default, so we don't
 
7091
        # have to do anything special.
 
7092
        aix_use_runtimelinking=no
 
7093
        exp_sym_flag='-Bexport'
 
7094
        no_entry_flag=""
 
7095
      else
 
7096
        # If we're using GNU nm, then we don't want the "-C" option.
 
7097
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7098
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7099
          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'
 
7100
        else
 
7101
          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'
 
7102
        fi
 
7103
        aix_use_runtimelinking=no
 
7104
 
 
7105
        # Test if we are trying to use run time linking or normal
 
7106
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7107
        # need to do runtime linking.
 
7108
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7109
          for ld_flag in $LDFLAGS; do
 
7110
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7111
            aix_use_runtimelinking=yes
 
7112
            break
 
7113
          fi
 
7114
          done
 
7115
          ;;
 
7116
        esac
 
7117
 
 
7118
        exp_sym_flag='-bexport'
 
7119
        no_entry_flag='-bnoentry'
 
7120
      fi
 
7121
 
 
7122
      # When large executables or shared objects are built, AIX ld can
 
7123
      # have problems creating the table of contents.  If linking a library
 
7124
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7125
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7126
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7127
 
 
7128
      archive_cmds=''
 
7129
      hardcode_direct=yes
 
7130
      hardcode_libdir_separator=':'
 
7131
      link_all_deplibs=yes
 
7132
 
 
7133
      if test "$GCC" = yes; then
 
7134
        case $host_os in aix4.[012]|aix4.[012].*)
 
7135
        # We only want to do this on AIX 4.2 and lower, the check
 
7136
        # below for broken collect2 doesn't work under 4.3+
 
7137
          collect2name=`${CC} -print-prog-name=collect2`
 
7138
          if test -f "$collect2name" && \
 
7139
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7140
          then
 
7141
          # We have reworked collect2
 
7142
          hardcode_direct=yes
 
7143
          else
 
7144
          # We have old collect2
 
7145
          hardcode_direct=unsupported
 
7146
          # It fails to find uninstalled libraries when the uninstalled
 
7147
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7148
          # to unsupported forces relinking
 
7149
          hardcode_minus_L=yes
 
7150
          hardcode_libdir_flag_spec='-L$libdir'
 
7151
          hardcode_libdir_separator=
 
7152
          fi
 
7153
          ;;
 
7154
        esac
 
7155
        shared_flag='-shared'
 
7156
        if test "$aix_use_runtimelinking" = yes; then
 
7157
          shared_flag="$shared_flag "'${wl}-G'
 
7158
        fi
 
7159
      else
 
7160
        # not using gcc
 
7161
        if test "$host_cpu" = ia64; then
 
7162
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7163
        # chokes on -Wl,-G. The following line is correct:
 
7164
          shared_flag='-G'
 
7165
        else
 
7166
          if test "$aix_use_runtimelinking" = yes; then
 
7167
            shared_flag='${wl}-G'
 
7168
          else
 
7169
            shared_flag='${wl}-bM:SRE'
 
7170
          fi
 
7171
        fi
 
7172
      fi
 
7173
 
 
7174
      # It seems that -bexpall does not export symbols beginning with
 
7175
      # underscore (_), so it is better to generate a list of symbols to export.
 
7176
      always_export_symbols=yes
 
7177
      if test "$aix_use_runtimelinking" = yes; then
 
7178
        # Warning - without using the other runtime loading flags (-brtl),
 
7179
        # -berok will link without error, but may produce a broken library.
 
7180
        allow_undefined_flag='-berok'
 
7181
       # Determine the default libpath from the value encoded in an empty executable.
 
7182
       cat >conftest.$ac_ext <<_ACEOF
 
7183
/* confdefs.h.  */
 
7184
_ACEOF
 
7185
cat confdefs.h >>conftest.$ac_ext
 
7186
cat >>conftest.$ac_ext <<_ACEOF
 
7187
/* end confdefs.h.  */
 
7188
 
 
7189
int
 
7190
main ()
 
7191
{
 
7192
 
 
7193
  ;
 
7194
  return 0;
 
7195
}
 
7196
_ACEOF
 
7197
rm -f conftest.$ac_objext conftest$ac_exeext
 
7198
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7199
  (eval $ac_link) 2>conftest.er1
 
7200
  ac_status=$?
 
7201
  grep -v '^ *+' conftest.er1 >conftest.err
 
7202
  rm -f conftest.er1
 
7203
  cat conftest.err >&5
 
7204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7205
  (exit $ac_status); } &&
 
7206
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7208
  (eval $ac_try) 2>&5
 
7209
  ac_status=$?
 
7210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7211
  (exit $ac_status); }; } &&
 
7212
         { ac_try='test -s conftest$ac_exeext'
 
7213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7214
  (eval $ac_try) 2>&5
 
7215
  ac_status=$?
 
7216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7217
  (exit $ac_status); }; }; then
 
7218
 
 
7219
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7220
}'`
 
7221
# Check for a 64-bit object if we didn't find anything.
 
7222
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; }
 
7223
}'`; fi
 
7224
else
 
7225
  echo "$as_me: failed program was:" >&5
 
7226
sed 's/^/| /' conftest.$ac_ext >&5
 
7227
 
 
7228
fi
 
7229
rm -f conftest.err conftest.$ac_objext \
 
7230
      conftest$ac_exeext conftest.$ac_ext
 
7231
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7232
 
 
7233
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7234
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7235
       else
 
7236
        if test "$host_cpu" = ia64; then
 
7237
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7238
          allow_undefined_flag="-z nodefs"
 
7239
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
7240
        else
 
7241
         # Determine the default libpath from the value encoded in an empty executable.
 
7242
         cat >conftest.$ac_ext <<_ACEOF
 
7243
/* confdefs.h.  */
 
7244
_ACEOF
 
7245
cat confdefs.h >>conftest.$ac_ext
 
7246
cat >>conftest.$ac_ext <<_ACEOF
 
7247
/* end confdefs.h.  */
 
7248
 
 
7249
int
 
7250
main ()
 
7251
{
 
7252
 
 
7253
  ;
 
7254
  return 0;
 
7255
}
 
7256
_ACEOF
 
7257
rm -f conftest.$ac_objext conftest$ac_exeext
 
7258
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7259
  (eval $ac_link) 2>conftest.er1
 
7260
  ac_status=$?
 
7261
  grep -v '^ *+' conftest.er1 >conftest.err
 
7262
  rm -f conftest.er1
 
7263
  cat conftest.err >&5
 
7264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7265
  (exit $ac_status); } &&
 
7266
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7268
  (eval $ac_try) 2>&5
 
7269
  ac_status=$?
 
7270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7271
  (exit $ac_status); }; } &&
 
7272
         { ac_try='test -s conftest$ac_exeext'
 
7273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7274
  (eval $ac_try) 2>&5
 
7275
  ac_status=$?
 
7276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7277
  (exit $ac_status); }; }; then
 
7278
 
 
7279
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7280
}'`
 
7281
# Check for a 64-bit object if we didn't find anything.
 
7282
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; }
 
7283
}'`; fi
 
7284
else
 
7285
  echo "$as_me: failed program was:" >&5
 
7286
sed 's/^/| /' conftest.$ac_ext >&5
 
7287
 
 
7288
fi
 
7289
rm -f conftest.err conftest.$ac_objext \
 
7290
      conftest$ac_exeext conftest.$ac_ext
 
7291
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7292
 
 
7293
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7294
          # Warning - without using the other run time loading flags,
 
7295
          # -berok will link without error, but may produce a broken library.
 
7296
          no_undefined_flag=' ${wl}-bernotok'
 
7297
          allow_undefined_flag=' ${wl}-berok'
 
7298
          # Exported symbols can be pulled into shared objects from archives
 
7299
          whole_archive_flag_spec='$convenience'
 
7300
          archive_cmds_need_lc=yes
 
7301
          # This is similar to how AIX traditionally builds its shared libraries.
 
7302
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7303
        fi
 
7304
      fi
 
7305
      ;;
 
7306
 
 
7307
    amigaos*)
 
7308
      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)'
 
7309
      hardcode_libdir_flag_spec='-L$libdir'
 
7310
      hardcode_minus_L=yes
 
7311
      # see comment about different semantics on the GNU ld section
 
7312
      ld_shlibs=no
 
7313
      ;;
 
7314
 
 
7315
    bsdi[45]*)
 
7316
      export_dynamic_flag_spec=-rdynamic
 
7317
      ;;
 
7318
 
 
7319
    cygwin* | mingw* | pw32*)
 
7320
      # When not using gcc, we currently assume that we are using
 
7321
      # Microsoft Visual C++.
 
7322
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7323
      # no search path for DLLs.
 
7324
      hardcode_libdir_flag_spec=' '
 
7325
      allow_undefined_flag=unsupported
 
7326
      # Tell ltmain to make .lib files, not .a files.
 
7327
      libext=lib
 
7328
      # Tell ltmain to make .dll files, not .so files.
 
7329
      shrext_cmds=".dll"
 
7330
      # FIXME: Setting linknames here is a bad hack.
 
7331
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7332
      # The linker will automatically build a .lib file if we build a DLL.
 
7333
      old_archive_From_new_cmds='true'
 
7334
      # FIXME: Should let the user specify the lib program.
 
7335
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7336
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7337
      enable_shared_with_static_runtimes=yes
 
7338
      ;;
 
7339
 
 
7340
    darwin* | rhapsody*)
 
7341
      case $host_os in
 
7342
        rhapsody* | darwin1.[012])
 
7343
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7344
         ;;
 
7345
       *) # Darwin 1.3 on
 
7346
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7347
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7348
         else
 
7349
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7350
             10.[012])
 
7351
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7352
               ;;
 
7353
             10.*)
 
7354
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7355
               ;;
 
7356
           esac
 
7357
         fi
 
7358
         ;;
 
7359
      esac
 
7360
      archive_cmds_need_lc=no
 
7361
      hardcode_direct=no
 
7362
      hardcode_automatic=yes
 
7363
      hardcode_shlibpath_var=unsupported
 
7364
      whole_archive_flag_spec=''
 
7365
      link_all_deplibs=yes
 
7366
    if test "$GCC" = yes ; then
 
7367
        output_verbose_link_cmd='echo'
 
7368
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7369
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7370
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7371
      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}'
 
7372
      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}'
 
7373
    else
 
7374
      case $cc_basename in
 
7375
        xlc*)
 
7376
         output_verbose_link_cmd='echo'
 
7377
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7378
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7379
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7380
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7381
          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}'
 
7382
          ;;
 
7383
       *)
 
7384
         ld_shlibs=no
 
7385
          ;;
 
7386
      esac
 
7387
    fi
 
7388
      ;;
 
7389
 
 
7390
    dgux*)
 
7391
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7392
      hardcode_libdir_flag_spec='-L$libdir'
 
7393
      hardcode_shlibpath_var=no
 
7394
      ;;
 
7395
 
 
7396
    freebsd1*)
 
7397
      ld_shlibs=no
 
7398
      ;;
 
7399
 
 
7400
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7401
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7402
    # does not break anything, and helps significantly (at the cost of a little
 
7403
    # extra space).
 
7404
    freebsd2.2*)
 
7405
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7406
      hardcode_libdir_flag_spec='-R$libdir'
 
7407
      hardcode_direct=yes
 
7408
      hardcode_shlibpath_var=no
 
7409
      ;;
 
7410
 
 
7411
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7412
    freebsd2*)
 
7413
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7414
      hardcode_direct=yes
 
7415
      hardcode_minus_L=yes
 
7416
      hardcode_shlibpath_var=no
 
7417
      ;;
 
7418
 
 
7419
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7420
    freebsd* | dragonfly*)
 
7421
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7422
      hardcode_libdir_flag_spec='-R$libdir'
 
7423
      hardcode_direct=yes
 
7424
      hardcode_shlibpath_var=no
 
7425
      ;;
 
7426
 
 
7427
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
7428
    kfreebsd*-gnu)
 
7429
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7430
      hardcode_libdir_flag_spec='-R$libdir'
 
7431
      hardcode_direct=yes
 
7432
      hardcode_shlibpath_var=no
 
7433
      link_all_deplibs=no
 
7434
      ;;
 
7435
 
 
7436
    hpux9*)
 
7437
      if test "$GCC" = yes; then
 
7438
        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'
 
7439
      else
 
7440
        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'
 
7441
      fi
 
7442
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7443
      hardcode_libdir_separator=:
 
7444
      hardcode_direct=yes
 
7445
 
 
7446
      # hardcode_minus_L: Not really in the search PATH,
 
7447
      # but as the default location of the library.
 
7448
      hardcode_minus_L=yes
 
7449
      export_dynamic_flag_spec='${wl}-E'
 
7450
      ;;
 
7451
 
 
7452
    hpux10*)
 
7453
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7454
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7455
      else
 
7456
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7457
      fi
 
7458
      if test "$with_gnu_ld" = no; then
 
7459
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7460
        hardcode_libdir_separator=:
 
7461
 
 
7462
        hardcode_direct=yes
 
7463
        export_dynamic_flag_spec='${wl}-E'
 
7464
 
 
7465
        # hardcode_minus_L: Not really in the search PATH,
 
7466
        # but as the default location of the library.
 
7467
        hardcode_minus_L=yes
 
7468
      fi
 
7469
      ;;
 
7470
 
 
7471
    hpux11*)
 
7472
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7473
        case $host_cpu in
 
7474
        hppa*64*)
 
7475
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7476
          ;;
 
7477
        ia64*)
 
7478
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7479
          ;;
 
7480
        *)
 
7481
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7482
          ;;
 
7483
        esac
 
7484
      else
 
7485
        case $host_cpu in
 
7486
        hppa*64*)
 
7487
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7488
          ;;
 
7489
        ia64*)
 
7490
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7491
          ;;
 
7492
        *)
 
7493
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7494
          ;;
 
7495
        esac
 
7496
      fi
 
7497
      if test "$with_gnu_ld" = no; then
 
7498
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7499
        hardcode_libdir_separator=:
 
7500
 
 
7501
        case $host_cpu in
 
7502
        hppa*64*|ia64*)
 
7503
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7504
          hardcode_direct=no
 
7505
          hardcode_shlibpath_var=no
 
7506
          ;;
 
7507
        *)
 
7508
          hardcode_direct=yes
 
7509
          export_dynamic_flag_spec='${wl}-E'
 
7510
 
 
7511
          # hardcode_minus_L: Not really in the search PATH,
 
7512
          # but as the default location of the library.
 
7513
          hardcode_minus_L=yes
 
7514
          ;;
 
7515
        esac
 
7516
      fi
 
7517
      ;;
 
7518
 
 
7519
    irix5* | irix6* | nonstopux*)
 
7520
      if test "$GCC" = yes; then
 
7521
        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'
 
7522
      else
 
7523
        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'
 
7524
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7525
      fi
 
7526
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7527
      hardcode_libdir_separator=:
 
7528
      link_all_deplibs=yes
 
7529
      ;;
 
7530
 
 
7531
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7532
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7533
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7534
      else
 
7535
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7536
      fi
 
7537
      hardcode_libdir_flag_spec='-R$libdir'
 
7538
      hardcode_direct=yes
 
7539
      hardcode_shlibpath_var=no
 
7540
      ;;
 
7541
 
 
7542
    newsos6)
 
7543
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7544
      hardcode_direct=yes
 
7545
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7546
      hardcode_libdir_separator=:
 
7547
      hardcode_shlibpath_var=no
 
7548
      ;;
 
7549
 
 
7550
    openbsd*)
 
7551
      hardcode_direct=yes
 
7552
      hardcode_shlibpath_var=no
 
7553
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7554
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7555
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7556
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7557
        export_dynamic_flag_spec='${wl}-E'
 
7558
      else
 
7559
       case $host_os in
 
7560
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7561
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7562
           hardcode_libdir_flag_spec='-R$libdir'
 
7563
           ;;
 
7564
         *)
 
7565
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7566
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7567
           ;;
 
7568
       esac
 
7569
      fi
 
7570
      ;;
 
7571
 
 
7572
    os2*)
 
7573
      hardcode_libdir_flag_spec='-L$libdir'
 
7574
      hardcode_minus_L=yes
 
7575
      allow_undefined_flag=unsupported
 
7576
      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'
 
7577
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7578
      ;;
 
7579
 
 
7580
    osf3*)
 
7581
      if test "$GCC" = yes; then
 
7582
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7583
        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'
 
7584
      else
 
7585
        allow_undefined_flag=' -expect_unresolved \*'
 
7586
        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'
 
7587
      fi
 
7588
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7589
      hardcode_libdir_separator=:
 
7590
      ;;
 
7591
 
 
7592
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7593
      if test "$GCC" = yes; then
 
7594
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7595
        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'
 
7596
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7597
      else
 
7598
        allow_undefined_flag=' -expect_unresolved \*'
 
7599
        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'
 
7600
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7601
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
7602
 
 
7603
        # Both c and cxx compiler support -rpath directly
 
7604
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7605
      fi
 
7606
      hardcode_libdir_separator=:
 
7607
      ;;
 
7608
 
 
7609
    solaris*)
 
7610
      no_undefined_flag=' -z text'
 
7611
      if test "$GCC" = yes; then
 
7612
        wlarc='${wl}'
 
7613
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7614
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7615
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7616
      else
 
7617
        wlarc=''
 
7618
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7619
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7620
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7621
      fi
 
7622
      hardcode_libdir_flag_spec='-R$libdir'
 
7623
      hardcode_shlibpath_var=no
 
7624
      case $host_os in
 
7625
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7626
      *)
 
7627
        # The compiler driver will combine linker options so we
 
7628
        # cannot just pass the convience library names through
 
7629
        # without $wl, iff we do not link with $LD.
 
7630
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7631
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7632
        case $wlarc in
 
7633
        '')
 
7634
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7635
        *)
 
7636
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7637
        esac ;;
 
7638
      esac
 
7639
      link_all_deplibs=yes
 
7640
      ;;
 
7641
 
 
7642
    sunos4*)
 
7643
      if test "x$host_vendor" = xsequent; then
 
7644
        # Use $CC to link under sequent, because it throws in some extra .o
 
7645
        # files that make .init and .fini sections work.
 
7646
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7647
      else
 
7648
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7649
      fi
 
7650
      hardcode_libdir_flag_spec='-L$libdir'
 
7651
      hardcode_direct=yes
 
7652
      hardcode_minus_L=yes
 
7653
      hardcode_shlibpath_var=no
 
7654
      ;;
 
7655
 
 
7656
    sysv4)
 
7657
      case $host_vendor in
 
7658
        sni)
 
7659
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7660
          hardcode_direct=yes # is this really true???
 
7661
        ;;
 
7662
        siemens)
 
7663
          ## LD is ld it makes a PLAMLIB
 
7664
          ## CC just makes a GrossModule.
 
7665
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7666
          reload_cmds='$CC -r -o $output$reload_objs'
 
7667
          hardcode_direct=no
 
7668
        ;;
 
7669
        motorola)
 
7670
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7671
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7672
        ;;
 
7673
      esac
 
7674
      runpath_var='LD_RUN_PATH'
 
7675
      hardcode_shlibpath_var=no
 
7676
      ;;
 
7677
 
 
7678
    sysv4.3*)
 
7679
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7680
      hardcode_shlibpath_var=no
 
7681
      export_dynamic_flag_spec='-Bexport'
 
7682
      ;;
 
7683
 
 
7684
    sysv4*MP*)
 
7685
      if test -d /usr/nec; then
 
7686
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7687
        hardcode_shlibpath_var=no
 
7688
        runpath_var=LD_RUN_PATH
 
7689
        hardcode_runpath_var=yes
 
7690
        ld_shlibs=yes
 
7691
      fi
 
7692
      ;;
 
7693
 
 
7694
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
7695
      no_undefined_flag='${wl}-z,text'
 
7696
      archive_cmds_need_lc=no
 
7697
      hardcode_shlibpath_var=no
 
7698
      runpath_var='LD_RUN_PATH'
 
7699
 
 
7700
      if test "$GCC" = yes; then
 
7701
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7702
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7703
      else
 
7704
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7705
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7706
      fi
 
7707
      ;;
 
7708
 
 
7709
    sysv5* | sco3.2v5* | sco5v6*)
 
7710
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7711
      # link with -lc, and that would cause any symbols used from libc to
 
7712
      # always be unresolved, which means just about no library would
 
7713
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7714
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7715
      # as -z defs.
 
7716
      no_undefined_flag='${wl}-z,text'
 
7717
      allow_undefined_flag='${wl}-z,nodefs'
 
7718
      archive_cmds_need_lc=no
 
7719
      hardcode_shlibpath_var=no
 
7720
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7721
      hardcode_libdir_separator=':'
 
7722
      link_all_deplibs=yes
 
7723
      export_dynamic_flag_spec='${wl}-Bexport'
 
7724
      runpath_var='LD_RUN_PATH'
 
7725
 
 
7726
      if test "$GCC" = yes; then
 
7727
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7728
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7729
      else
 
7730
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7731
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7732
      fi
 
7733
      ;;
 
7734
 
 
7735
    uts4*)
 
7736
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7737
      hardcode_libdir_flag_spec='-L$libdir'
 
7738
      hardcode_shlibpath_var=no
 
7739
      ;;
 
7740
 
 
7741
    *)
 
7742
      ld_shlibs=no
 
7743
      ;;
 
7744
    esac
 
7745
  fi
 
7746
 
 
7747
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7748
echo "${ECHO_T}$ld_shlibs" >&6
 
7749
test "$ld_shlibs" = no && can_build_shared=no
 
7750
 
 
7751
#
 
7752
# Do we need to explicitly link libc?
 
7753
#
 
7754
case "x$archive_cmds_need_lc" in
 
7755
x|xyes)
 
7756
  # Assume -lc should be added
 
7757
  archive_cmds_need_lc=yes
 
7758
 
 
7759
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7760
    case $archive_cmds in
 
7761
    *'~'*)
 
7762
      # FIXME: we may have to deal with multi-command sequences.
 
7763
      ;;
 
7764
    '$CC '*)
 
7765
      # Test whether the compiler implicitly links with -lc since on some
 
7766
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7767
      # to ld, don't add -lc before -lgcc.
 
7768
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7769
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7770
      $rm conftest*
 
7771
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7772
 
 
7773
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7774
  (eval $ac_compile) 2>&5
 
7775
  ac_status=$?
 
7776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7777
  (exit $ac_status); } 2>conftest.err; then
 
7778
        soname=conftest
 
7779
        lib=conftest
 
7780
        libobjs=conftest.$ac_objext
 
7781
        deplibs=
 
7782
        wl=$lt_prog_compiler_wl
 
7783
        pic_flag=$lt_prog_compiler_pic
 
7784
        compiler_flags=-v
 
7785
        linker_flags=-v
 
7786
        verstring=
 
7787
        output_objdir=.
 
7788
        libname=conftest
 
7789
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7790
        allow_undefined_flag=
 
7791
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7792
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7793
  ac_status=$?
 
7794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7795
  (exit $ac_status); }
 
7796
        then
 
7797
          archive_cmds_need_lc=no
 
7798
        else
 
7799
          archive_cmds_need_lc=yes
 
7800
        fi
 
7801
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7802
      else
 
7803
        cat conftest.err 1>&5
 
7804
      fi
 
7805
      $rm conftest*
 
7806
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7807
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7808
      ;;
 
7809
    esac
 
7810
  fi
 
7811
  ;;
 
7812
esac
 
7813
 
 
7814
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7815
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7816
library_names_spec=
 
7817
libname_spec='lib$name'
 
7818
soname_spec=
 
7819
shrext_cmds=".so"
 
7820
postinstall_cmds=
 
7821
postuninstall_cmds=
 
7822
finish_cmds=
 
7823
finish_eval=
 
7824
shlibpath_var=
 
7825
shlibpath_overrides_runpath=unknown
 
7826
version_type=none
 
7827
dynamic_linker="$host_os ld.so"
 
7828
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7829
if test "$GCC" = yes; then
 
7830
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7831
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7832
    # if the path contains ";" then we assume it to be the separator
 
7833
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7834
    # assumed that no part of a normal pathname contains ";" but that should
 
7835
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7836
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7837
  else
 
7838
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7839
  fi
 
7840
else
 
7841
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7842
fi
 
7843
need_lib_prefix=unknown
 
7844
hardcode_into_libs=no
 
7845
 
 
7846
# when you set need_version to no, make sure it does not cause -set_version
 
7847
# flags to be left without arguments
 
7848
need_version=unknown
 
7849
 
 
7850
case $host_os in
 
7851
aix3*)
 
7852
  version_type=linux
 
7853
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7854
  shlibpath_var=LIBPATH
 
7855
 
 
7856
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7857
  soname_spec='${libname}${release}${shared_ext}$major'
 
7858
  ;;
 
7859
 
 
7860
aix4* | aix5*)
 
7861
  version_type=linux
 
7862
  need_lib_prefix=no
 
7863
  need_version=no
 
7864
  hardcode_into_libs=yes
 
7865
  if test "$host_cpu" = ia64; then
 
7866
    # AIX 5 supports IA64
 
7867
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7868
    shlibpath_var=LD_LIBRARY_PATH
 
7869
  else
 
7870
    # With GCC up to 2.95.x, collect2 would create an import file
 
7871
    # for dependence libraries.  The import file would start with
 
7872
    # the line `#! .'.  This would cause the generated library to
 
7873
    # depend on `.', always an invalid library.  This was fixed in
 
7874
    # development snapshots of GCC prior to 3.0.
 
7875
    case $host_os in
 
7876
      aix4 | aix4.[01] | aix4.[01].*)
 
7877
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7878
           echo ' yes '
 
7879
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7880
        :
 
7881
      else
 
7882
        can_build_shared=no
 
7883
      fi
 
7884
      ;;
 
7885
    esac
 
7886
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7887
    # soname into executable. Probably we can add versioning support to
 
7888
    # collect2, so additional links can be useful in future.
 
7889
    if test "$aix_use_runtimelinking" = yes; then
 
7890
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7891
      # instead of lib<name>.a to let people know that these are not
 
7892
      # typical AIX shared libraries.
 
7893
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7894
    else
 
7895
      # We preserve .a as extension for shared libraries through AIX4.2
 
7896
      # and later when we are not doing run time linking.
 
7897
      library_names_spec='${libname}${release}.a $libname.a'
 
7898
      soname_spec='${libname}${release}${shared_ext}$major'
 
7899
    fi
 
7900
    shlibpath_var=LIBPATH
 
7901
  fi
 
7902
  ;;
 
7903
 
 
7904
amigaos*)
 
7905
  library_names_spec='$libname.ixlibrary $libname.a'
 
7906
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7907
  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'
 
7908
  ;;
 
7909
 
 
7910
beos*)
 
7911
  library_names_spec='${libname}${shared_ext}'
 
7912
  dynamic_linker="$host_os ld.so"
 
7913
  shlibpath_var=LIBRARY_PATH
 
7914
  ;;
 
7915
 
 
7916
bsdi[45]*)
 
7917
  version_type=linux
 
7918
  need_version=no
 
7919
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7920
  soname_spec='${libname}${release}${shared_ext}$major'
 
7921
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7922
  shlibpath_var=LD_LIBRARY_PATH
 
7923
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7924
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7925
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7926
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7927
  # libtool to hard-code these into programs
 
7928
  ;;
 
7929
 
 
7930
cygwin* | mingw* | pw32*)
 
7931
  version_type=windows
 
7932
  shrext_cmds=".dll"
 
7933
  need_version=no
 
7934
  need_lib_prefix=no
 
7935
 
 
7936
  case $GCC,$host_os in
 
7937
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7938
    library_names_spec='$libname.dll.a'
 
7939
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7940
    postinstall_cmds='base_file=`basename \${file}`~
 
7941
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7942
      dldir=$destdir/`dirname \$dlpath`~
 
7943
      test -d \$dldir || mkdir -p \$dldir~
 
7944
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7945
      chmod a+x \$dldir/$dlname'
 
7946
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7947
      dlpath=$dir/\$dldll~
 
7948
       $rm \$dlpath'
 
7949
    shlibpath_overrides_runpath=yes
 
7950
 
 
7951
    case $host_os in
 
7952
    cygwin*)
 
7953
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7954
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7955
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7956
      ;;
 
7957
    mingw*)
 
7958
      # MinGW DLLs use traditional 'lib' prefix
 
7959
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7960
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7961
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7962
        # It is most probably a Windows format PATH printed by
 
7963
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7964
        # path with ; separators, and with drive letters. We can handle the
 
7965
        # drive letters (cygwin fileutils understands them), so leave them,
 
7966
        # especially as we might pass files found there to a mingw objdump,
 
7967
        # which wouldn't understand a cygwinified path. Ahh.
 
7968
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7969
      else
 
7970
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7971
      fi
 
7972
      ;;
 
7973
    pw32*)
 
7974
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7975
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7976
      ;;
 
7977
    esac
 
7978
    ;;
 
7979
 
 
7980
  *)
 
7981
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7982
    ;;
 
7983
  esac
 
7984
  dynamic_linker='Win32 ld.exe'
 
7985
  # FIXME: first we should search . and the directory the executable is in
 
7986
  shlibpath_var=PATH
 
7987
  ;;
 
7988
 
 
7989
darwin* | rhapsody*)
 
7990
  dynamic_linker="$host_os dyld"
 
7991
  version_type=darwin
 
7992
  need_lib_prefix=no
 
7993
  need_version=no
 
7994
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7995
  soname_spec='${libname}${release}${major}$shared_ext'
 
7996
  shlibpath_overrides_runpath=yes
 
7997
  shlibpath_var=DYLD_LIBRARY_PATH
 
7998
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
7999
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8000
  if test "$GCC" = yes; then
 
8001
    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"`
 
8002
  else
 
8003
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8004
  fi
 
8005
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8006
  ;;
 
8007
 
 
8008
dgux*)
 
8009
  version_type=linux
 
8010
  need_lib_prefix=no
 
8011
  need_version=no
 
8012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8013
  soname_spec='${libname}${release}${shared_ext}$major'
 
8014
  shlibpath_var=LD_LIBRARY_PATH
 
8015
  ;;
 
8016
 
 
8017
freebsd1*)
 
8018
  dynamic_linker=no
 
8019
  ;;
 
8020
 
 
8021
kfreebsd*-gnu)
 
8022
  version_type=linux
 
8023
  need_lib_prefix=no
 
8024
  need_version=no
 
8025
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8026
  soname_spec='${libname}${release}${shared_ext}$major'
 
8027
  shlibpath_var=LD_LIBRARY_PATH
 
8028
  shlibpath_overrides_runpath=no
 
8029
  hardcode_into_libs=yes
 
8030
  dynamic_linker='GNU ld.so'
 
8031
  ;;
 
8032
 
 
8033
freebsd* | dragonfly*)
 
8034
  # DragonFly does not have aout.  When/if they implement a new
 
8035
  # versioning mechanism, adjust this.
 
8036
  if test -x /usr/bin/objformat; then
 
8037
    objformat=`/usr/bin/objformat`
 
8038
  else
 
8039
    case $host_os in
 
8040
    freebsd[123]*) objformat=aout ;;
 
8041
    *) objformat=elf ;;
 
8042
    esac
 
8043
  fi
 
8044
  version_type=freebsd-$objformat
 
8045
  case $version_type in
 
8046
    freebsd-elf*)
 
8047
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8048
      need_version=no
 
8049
      need_lib_prefix=no
 
8050
      ;;
 
8051
    freebsd-*)
 
8052
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8053
      need_version=yes
 
8054
      ;;
 
8055
  esac
 
8056
  shlibpath_var=LD_LIBRARY_PATH
 
8057
  case $host_os in
 
8058
  freebsd2*)
 
8059
    shlibpath_overrides_runpath=yes
 
8060
    ;;
 
8061
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8062
    shlibpath_overrides_runpath=yes
 
8063
    hardcode_into_libs=yes
 
8064
    ;;
 
8065
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8066
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8067
    shlibpath_overrides_runpath=no
 
8068
    hardcode_into_libs=yes
 
8069
    ;;
 
8070
  freebsd*) # from 4.6 on
 
8071
    shlibpath_overrides_runpath=yes
 
8072
    hardcode_into_libs=yes
 
8073
    ;;
 
8074
  esac
 
8075
  ;;
 
8076
 
 
8077
gnu*)
 
8078
  version_type=linux
 
8079
  need_lib_prefix=no
 
8080
  need_version=no
 
8081
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8082
  soname_spec='${libname}${release}${shared_ext}$major'
 
8083
  shlibpath_var=LD_LIBRARY_PATH
 
8084
  hardcode_into_libs=yes
 
8085
  ;;
 
8086
 
 
8087
hpux9* | hpux10* | hpux11*)
 
8088
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8089
  # link against other versions.
 
8090
  version_type=sunos
 
8091
  need_lib_prefix=no
 
8092
  need_version=no
 
8093
  case $host_cpu in
 
8094
  ia64*)
 
8095
    shrext_cmds='.so'
 
8096
    hardcode_into_libs=yes
 
8097
    dynamic_linker="$host_os dld.so"
 
8098
    shlibpath_var=LD_LIBRARY_PATH
 
8099
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8100
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8101
    soname_spec='${libname}${release}${shared_ext}$major'
 
8102
    if test "X$HPUX_IA64_MODE" = X32; then
 
8103
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8104
    else
 
8105
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8106
    fi
 
8107
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8108
    ;;
 
8109
   hppa*64*)
 
8110
     shrext_cmds='.sl'
 
8111
     hardcode_into_libs=yes
 
8112
     dynamic_linker="$host_os dld.sl"
 
8113
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8114
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8115
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8116
     soname_spec='${libname}${release}${shared_ext}$major'
 
8117
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8118
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8119
     ;;
 
8120
   *)
 
8121
    shrext_cmds='.sl'
 
8122
    dynamic_linker="$host_os dld.sl"
 
8123
    shlibpath_var=SHLIB_PATH
 
8124
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8125
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8126
    soname_spec='${libname}${release}${shared_ext}$major'
 
8127
    ;;
 
8128
  esac
 
8129
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8130
  postinstall_cmds='chmod 555 $lib'
 
8131
  ;;
 
8132
 
 
8133
interix3*)
 
8134
  version_type=linux
 
8135
  need_lib_prefix=no
 
8136
  need_version=no
 
8137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8138
  soname_spec='${libname}${release}${shared_ext}$major'
 
8139
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8140
  shlibpath_var=LD_LIBRARY_PATH
 
8141
  shlibpath_overrides_runpath=no
 
8142
  hardcode_into_libs=yes
 
8143
  ;;
 
8144
 
 
8145
irix5* | irix6* | nonstopux*)
 
8146
  case $host_os in
 
8147
    nonstopux*) version_type=nonstopux ;;
 
8148
    *)
 
8149
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8150
                version_type=linux
 
8151
        else
 
8152
                version_type=irix
 
8153
        fi ;;
 
8154
  esac
 
8155
  need_lib_prefix=no
 
8156
  need_version=no
 
8157
  soname_spec='${libname}${release}${shared_ext}$major'
 
8158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8159
  case $host_os in
 
8160
  irix5* | nonstopux*)
 
8161
    libsuff= shlibsuff=
 
8162
    ;;
 
8163
  *)
 
8164
    case $LD in # libtool.m4 will add one of these switches to LD
 
8165
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8166
      libsuff= shlibsuff= libmagic=32-bit;;
 
8167
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8168
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8169
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8170
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8171
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8172
    esac
 
8173
    ;;
 
8174
  esac
 
8175
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8176
  shlibpath_overrides_runpath=no
 
8177
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8178
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8179
  hardcode_into_libs=yes
 
8180
  ;;
 
8181
 
 
8182
# No shared lib support for Linux oldld, aout, or coff.
 
8183
linux*oldld* | linux*aout* | linux*coff*)
 
8184
  dynamic_linker=no
 
8185
  ;;
 
8186
 
 
8187
# This must be Linux ELF.
 
8188
linux*)
 
8189
  version_type=linux
 
8190
  need_lib_prefix=no
 
8191
  need_version=no
 
8192
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8193
  soname_spec='${libname}${release}${shared_ext}$major'
 
8194
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8195
  shlibpath_var=LD_LIBRARY_PATH
 
8196
  shlibpath_overrides_runpath=no
 
8197
  # This implies no fast_install, which is unacceptable.
 
8198
  # Some rework will be needed to allow for fast_install
 
8199
  # before this can be enabled.
 
8200
  hardcode_into_libs=yes
 
8201
 
 
8202
  # Append ld.so.conf contents to the search path
 
8203
  if test -f /etc/ld.so.conf; then
 
8204
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8205
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8206
  fi
 
8207
 
 
8208
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8209
  # powerpc, because MkLinux only supported shared libraries with the
 
8210
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8211
  # most powerpc-linux boxes support dynamic linking these days and
 
8212
  # people can always --disable-shared, the test was removed, and we
 
8213
  # assume the GNU/Linux dynamic linker is in use.
 
8214
  dynamic_linker='GNU/Linux ld.so'
 
8215
  ;;
 
8216
 
 
8217
netbsdelf*-gnu)
 
8218
  version_type=linux
 
8219
  need_lib_prefix=no
 
8220
  need_version=no
 
8221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8222
  soname_spec='${libname}${release}${shared_ext}$major'
 
8223
  shlibpath_var=LD_LIBRARY_PATH
 
8224
  shlibpath_overrides_runpath=no
 
8225
  hardcode_into_libs=yes
 
8226
  dynamic_linker='NetBSD ld.elf_so'
 
8227
  ;;
 
8228
 
 
8229
knetbsd*-gnu)
 
8230
  version_type=linux
 
8231
  need_lib_prefix=no
 
8232
  need_version=no
 
8233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8234
  soname_spec='${libname}${release}${shared_ext}$major'
 
8235
  shlibpath_var=LD_LIBRARY_PATH
 
8236
  shlibpath_overrides_runpath=no
 
8237
  hardcode_into_libs=yes
 
8238
  dynamic_linker='GNU ld.so'
 
8239
  ;;
 
8240
 
 
8241
netbsd*)
 
8242
  version_type=sunos
 
8243
  need_lib_prefix=no
 
8244
  need_version=no
 
8245
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8246
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8247
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8248
    dynamic_linker='NetBSD (a.out) ld.so'
 
8249
  else
 
8250
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8251
    soname_spec='${libname}${release}${shared_ext}$major'
 
8252
    dynamic_linker='NetBSD ld.elf_so'
 
8253
  fi
 
8254
  shlibpath_var=LD_LIBRARY_PATH
 
8255
  shlibpath_overrides_runpath=yes
 
8256
  hardcode_into_libs=yes
 
8257
  ;;
 
8258
 
 
8259
newsos6)
 
8260
  version_type=linux
 
8261
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8262
  shlibpath_var=LD_LIBRARY_PATH
 
8263
  shlibpath_overrides_runpath=yes
 
8264
  ;;
 
8265
 
 
8266
nto-qnx*)
 
8267
  version_type=linux
 
8268
  need_lib_prefix=no
 
8269
  need_version=no
 
8270
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8271
  soname_spec='${libname}${release}${shared_ext}$major'
 
8272
  shlibpath_var=LD_LIBRARY_PATH
 
8273
  shlibpath_overrides_runpath=yes
 
8274
  ;;
 
8275
 
 
8276
openbsd*)
 
8277
  version_type=sunos
 
8278
  sys_lib_dlsearch_path_spec="/usr/lib"
 
8279
  need_lib_prefix=no
 
8280
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8281
  case $host_os in
 
8282
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8283
    *)                         need_version=no  ;;
 
8284
  esac
 
8285
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8286
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8287
  shlibpath_var=LD_LIBRARY_PATH
 
8288
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8289
    case $host_os in
 
8290
      openbsd2.[89] | openbsd2.[89].*)
 
8291
        shlibpath_overrides_runpath=no
 
8292
        ;;
 
8293
      *)
 
8294
        shlibpath_overrides_runpath=yes
 
8295
        ;;
 
8296
      esac
 
8297
  else
 
8298
    shlibpath_overrides_runpath=yes
 
8299
  fi
 
8300
  ;;
 
8301
 
 
8302
os2*)
 
8303
  libname_spec='$name'
 
8304
  shrext_cmds=".dll"
 
8305
  need_lib_prefix=no
 
8306
  library_names_spec='$libname${shared_ext} $libname.a'
 
8307
  dynamic_linker='OS/2 ld.exe'
 
8308
  shlibpath_var=LIBPATH
 
8309
  ;;
 
8310
 
 
8311
osf3* | osf4* | osf5*)
 
8312
  version_type=osf
 
8313
  need_lib_prefix=no
 
8314
  need_version=no
 
8315
  soname_spec='${libname}${release}${shared_ext}$major'
 
8316
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8317
  shlibpath_var=LD_LIBRARY_PATH
 
8318
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8319
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8320
  ;;
 
8321
 
 
8322
solaris*)
 
8323
  version_type=linux
 
8324
  need_lib_prefix=no
 
8325
  need_version=no
 
8326
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8327
  soname_spec='${libname}${release}${shared_ext}$major'
 
8328
  shlibpath_var=LD_LIBRARY_PATH
 
8329
  shlibpath_overrides_runpath=yes
 
8330
  hardcode_into_libs=yes
 
8331
  # ldd complains unless libraries are executable
 
8332
  postinstall_cmds='chmod +x $lib'
 
8333
  ;;
 
8334
 
 
8335
sunos4*)
 
8336
  version_type=sunos
 
8337
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8338
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8339
  shlibpath_var=LD_LIBRARY_PATH
 
8340
  shlibpath_overrides_runpath=yes
 
8341
  if test "$with_gnu_ld" = yes; then
 
8342
    need_lib_prefix=no
 
8343
  fi
 
8344
  need_version=yes
 
8345
  ;;
 
8346
 
 
8347
sysv4 | sysv4.3*)
 
8348
  version_type=linux
 
8349
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8350
  soname_spec='${libname}${release}${shared_ext}$major'
 
8351
  shlibpath_var=LD_LIBRARY_PATH
 
8352
  case $host_vendor in
 
8353
    sni)
 
8354
      shlibpath_overrides_runpath=no
 
8355
      need_lib_prefix=no
 
8356
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8357
      runpath_var=LD_RUN_PATH
 
8358
      ;;
 
8359
    siemens)
 
8360
      need_lib_prefix=no
 
8361
      ;;
 
8362
    motorola)
 
8363
      need_lib_prefix=no
 
8364
      need_version=no
 
8365
      shlibpath_overrides_runpath=no
 
8366
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8367
      ;;
 
8368
  esac
 
8369
  ;;
 
8370
 
 
8371
sysv4*MP*)
 
8372
  if test -d /usr/nec ;then
 
8373
    version_type=linux
 
8374
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8375
    soname_spec='$libname${shared_ext}.$major'
 
8376
    shlibpath_var=LD_LIBRARY_PATH
 
8377
  fi
 
8378
  ;;
 
8379
 
 
8380
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8381
  version_type=freebsd-elf
 
8382
  need_lib_prefix=no
 
8383
  need_version=no
 
8384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8385
  soname_spec='${libname}${release}${shared_ext}$major'
 
8386
  shlibpath_var=LD_LIBRARY_PATH
 
8387
  hardcode_into_libs=yes
 
8388
  if test "$with_gnu_ld" = yes; then
 
8389
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8390
    shlibpath_overrides_runpath=no
 
8391
  else
 
8392
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8393
    shlibpath_overrides_runpath=yes
 
8394
    case $host_os in
 
8395
      sco3.2v5*)
 
8396
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8397
        ;;
 
8398
    esac
 
8399
  fi
 
8400
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8401
  ;;
 
8402
 
 
8403
uts4*)
 
8404
  version_type=linux
 
8405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8406
  soname_spec='${libname}${release}${shared_ext}$major'
 
8407
  shlibpath_var=LD_LIBRARY_PATH
 
8408
  ;;
 
8409
 
 
8410
*)
 
8411
  dynamic_linker=no
 
8412
  ;;
 
8413
esac
 
8414
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8415
echo "${ECHO_T}$dynamic_linker" >&6
 
8416
test "$dynamic_linker" = no && can_build_shared=no
 
8417
 
 
8418
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8419
if test "$GCC" = yes; then
 
8420
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8421
fi
 
8422
 
 
8423
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8424
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8425
hardcode_action=
 
8426
if test -n "$hardcode_libdir_flag_spec" || \
 
8427
   test -n "$runpath_var" || \
 
8428
   test "X$hardcode_automatic" = "Xyes" ; then
 
8429
 
 
8430
  # We can hardcode non-existant directories.
 
8431
  if test "$hardcode_direct" != no &&
 
8432
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8433
     # have to relink, otherwise we might link with an installed library
 
8434
     # when we should be linking with a yet-to-be-installed one
 
8435
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8436
     test "$hardcode_minus_L" != no; then
 
8437
    # Linking always hardcodes the temporary library directory.
 
8438
    hardcode_action=relink
 
8439
  else
 
8440
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8441
    hardcode_action=immediate
 
8442
  fi
 
8443
else
 
8444
  # We cannot hardcode anything, or else we can only hardcode existing
 
8445
  # directories.
 
8446
  hardcode_action=unsupported
 
8447
fi
 
8448
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8449
echo "${ECHO_T}$hardcode_action" >&6
 
8450
 
 
8451
if test "$hardcode_action" = relink; then
 
8452
  # Fast installation is not supported
 
8453
  enable_fast_install=no
 
8454
elif test "$shlibpath_overrides_runpath" = yes ||
 
8455
     test "$enable_shared" = no; then
 
8456
  # Fast installation is not necessary
 
8457
  enable_fast_install=needless
 
8458
fi
 
8459
 
 
8460
striplib=
 
8461
old_striplib=
 
8462
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8463
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8464
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8465
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8466
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8467
  echo "$as_me:$LINENO: result: yes" >&5
 
8468
echo "${ECHO_T}yes" >&6
 
8469
else
 
8470
# FIXME - insert some real tests, host_os isn't really good enough
 
8471
  case $host_os in
 
8472
   darwin*)
 
8473
       if test -n "$STRIP" ; then
 
8474
         striplib="$STRIP -x"
 
8475
         echo "$as_me:$LINENO: result: yes" >&5
 
8476
echo "${ECHO_T}yes" >&6
 
8477
       else
 
8478
  echo "$as_me:$LINENO: result: no" >&5
 
8479
echo "${ECHO_T}no" >&6
 
8480
fi
 
8481
       ;;
 
8482
   *)
 
8483
  echo "$as_me:$LINENO: result: no" >&5
 
8484
echo "${ECHO_T}no" >&6
 
8485
    ;;
 
8486
  esac
 
8487
fi
 
8488
 
 
8489
if test "x$enable_dlopen" != xyes; then
 
8490
  enable_dlopen=unknown
 
8491
  enable_dlopen_self=unknown
 
8492
  enable_dlopen_self_static=unknown
 
8493
else
 
8494
  lt_cv_dlopen=no
 
8495
  lt_cv_dlopen_libs=
 
8496
 
 
8497
  case $host_os in
 
8498
  beos*)
 
8499
    lt_cv_dlopen="load_add_on"
 
8500
    lt_cv_dlopen_libs=
 
8501
    lt_cv_dlopen_self=yes
 
8502
    ;;
 
8503
 
 
8504
  mingw* | pw32*)
 
8505
    lt_cv_dlopen="LoadLibrary"
 
8506
    lt_cv_dlopen_libs=
 
8507
   ;;
 
8508
 
 
8509
  cygwin*)
 
8510
    lt_cv_dlopen="dlopen"
 
8511
    lt_cv_dlopen_libs=
 
8512
   ;;
 
8513
 
 
8514
  darwin*)
 
8515
  # if libdl is installed we need to link against it
 
8516
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8517
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8518
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8520
else
 
8521
  ac_check_lib_save_LIBS=$LIBS
 
8522
LIBS="-ldl  $LIBS"
 
8523
cat >conftest.$ac_ext <<_ACEOF
 
8524
/* confdefs.h.  */
 
8525
_ACEOF
 
8526
cat confdefs.h >>conftest.$ac_ext
 
8527
cat >>conftest.$ac_ext <<_ACEOF
 
8528
/* end confdefs.h.  */
 
8529
 
 
8530
/* Override any gcc2 internal prototype to avoid an error.  */
 
8531
#ifdef __cplusplus
 
8532
extern "C"
 
8533
#endif
 
8534
/* We use char because int might match the return type of a gcc2
 
8535
   builtin and then its argument prototype would still apply.  */
 
8536
char dlopen ();
 
8537
int
 
8538
main ()
 
8539
{
 
8540
dlopen ();
 
8541
  ;
 
8542
  return 0;
 
8543
}
 
8544
_ACEOF
 
8545
rm -f conftest.$ac_objext conftest$ac_exeext
 
8546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8547
  (eval $ac_link) 2>conftest.er1
 
8548
  ac_status=$?
 
8549
  grep -v '^ *+' conftest.er1 >conftest.err
 
8550
  rm -f conftest.er1
 
8551
  cat conftest.err >&5
 
8552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8553
  (exit $ac_status); } &&
 
8554
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8555
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8556
  (eval $ac_try) 2>&5
 
8557
  ac_status=$?
 
8558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8559
  (exit $ac_status); }; } &&
 
8560
         { ac_try='test -s conftest$ac_exeext'
 
8561
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8562
  (eval $ac_try) 2>&5
 
8563
  ac_status=$?
 
8564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8565
  (exit $ac_status); }; }; then
 
8566
  ac_cv_lib_dl_dlopen=yes
 
8567
else
 
8568
  echo "$as_me: failed program was:" >&5
 
8569
sed 's/^/| /' conftest.$ac_ext >&5
 
8570
 
 
8571
ac_cv_lib_dl_dlopen=no
 
8572
fi
 
8573
rm -f conftest.err conftest.$ac_objext \
 
8574
      conftest$ac_exeext conftest.$ac_ext
 
8575
LIBS=$ac_check_lib_save_LIBS
 
8576
fi
 
8577
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8578
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8579
if test $ac_cv_lib_dl_dlopen = yes; then
 
8580
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8581
else
 
8582
 
 
8583
    lt_cv_dlopen="dyld"
 
8584
    lt_cv_dlopen_libs=
 
8585
    lt_cv_dlopen_self=yes
 
8586
 
 
8587
fi
 
8588
 
 
8589
   ;;
 
8590
 
 
8591
  *)
 
8592
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8593
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8594
if test "${ac_cv_func_shl_load+set}" = set; then
 
8595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8596
else
 
8597
  cat >conftest.$ac_ext <<_ACEOF
 
8598
/* confdefs.h.  */
 
8599
_ACEOF
 
8600
cat confdefs.h >>conftest.$ac_ext
 
8601
cat >>conftest.$ac_ext <<_ACEOF
 
8602
/* end confdefs.h.  */
 
8603
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8604
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8605
#define shl_load innocuous_shl_load
 
8606
 
 
8607
/* System header to define __stub macros and hopefully few prototypes,
 
8608
    which can conflict with char shl_load (); below.
 
8609
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8610
    <limits.h> exists even on freestanding compilers.  */
 
8611
 
 
8612
#ifdef __STDC__
 
8613
# include <limits.h>
 
8614
#else
 
8615
# include <assert.h>
 
8616
#endif
 
8617
 
 
8618
#undef shl_load
 
8619
 
 
8620
/* Override any gcc2 internal prototype to avoid an error.  */
 
8621
#ifdef __cplusplus
 
8622
extern "C"
 
8623
{
 
8624
#endif
 
8625
/* We use char because int might match the return type of a gcc2
 
8626
   builtin and then its argument prototype would still apply.  */
 
8627
char shl_load ();
 
8628
/* The GNU C library defines this for functions which it implements
 
8629
    to always fail with ENOSYS.  Some functions are actually named
 
8630
    something starting with __ and the normal name is an alias.  */
 
8631
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8632
choke me
 
8633
#else
 
8634
char (*f) () = shl_load;
 
8635
#endif
 
8636
#ifdef __cplusplus
 
8637
}
 
8638
#endif
 
8639
 
 
8640
int
 
8641
main ()
 
8642
{
 
8643
return f != shl_load;
 
8644
  ;
 
8645
  return 0;
 
8646
}
 
8647
_ACEOF
 
8648
rm -f conftest.$ac_objext conftest$ac_exeext
 
8649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8650
  (eval $ac_link) 2>conftest.er1
 
8651
  ac_status=$?
 
8652
  grep -v '^ *+' conftest.er1 >conftest.err
 
8653
  rm -f conftest.er1
 
8654
  cat conftest.err >&5
 
8655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8656
  (exit $ac_status); } &&
 
8657
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8659
  (eval $ac_try) 2>&5
 
8660
  ac_status=$?
 
8661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8662
  (exit $ac_status); }; } &&
 
8663
         { ac_try='test -s conftest$ac_exeext'
 
8664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8665
  (eval $ac_try) 2>&5
 
8666
  ac_status=$?
 
8667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8668
  (exit $ac_status); }; }; then
 
8669
  ac_cv_func_shl_load=yes
 
8670
else
 
8671
  echo "$as_me: failed program was:" >&5
 
8672
sed 's/^/| /' conftest.$ac_ext >&5
 
8673
 
 
8674
ac_cv_func_shl_load=no
 
8675
fi
 
8676
rm -f conftest.err conftest.$ac_objext \
 
8677
      conftest$ac_exeext conftest.$ac_ext
 
8678
fi
 
8679
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8680
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8681
if test $ac_cv_func_shl_load = yes; then
 
8682
  lt_cv_dlopen="shl_load"
 
8683
else
 
8684
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8685
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8686
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8688
else
 
8689
  ac_check_lib_save_LIBS=$LIBS
 
8690
LIBS="-ldld  $LIBS"
 
8691
cat >conftest.$ac_ext <<_ACEOF
 
8692
/* confdefs.h.  */
 
8693
_ACEOF
 
8694
cat confdefs.h >>conftest.$ac_ext
 
8695
cat >>conftest.$ac_ext <<_ACEOF
 
8696
/* end confdefs.h.  */
 
8697
 
 
8698
/* Override any gcc2 internal prototype to avoid an error.  */
 
8699
#ifdef __cplusplus
 
8700
extern "C"
 
8701
#endif
 
8702
/* We use char because int might match the return type of a gcc2
 
8703
   builtin and then its argument prototype would still apply.  */
 
8704
char shl_load ();
 
8705
int
 
8706
main ()
 
8707
{
 
8708
shl_load ();
 
8709
  ;
 
8710
  return 0;
 
8711
}
 
8712
_ACEOF
 
8713
rm -f conftest.$ac_objext conftest$ac_exeext
 
8714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8715
  (eval $ac_link) 2>conftest.er1
 
8716
  ac_status=$?
 
8717
  grep -v '^ *+' conftest.er1 >conftest.err
 
8718
  rm -f conftest.er1
 
8719
  cat conftest.err >&5
 
8720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8721
  (exit $ac_status); } &&
 
8722
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8724
  (eval $ac_try) 2>&5
 
8725
  ac_status=$?
 
8726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8727
  (exit $ac_status); }; } &&
 
8728
         { ac_try='test -s conftest$ac_exeext'
 
8729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8730
  (eval $ac_try) 2>&5
 
8731
  ac_status=$?
 
8732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8733
  (exit $ac_status); }; }; then
 
8734
  ac_cv_lib_dld_shl_load=yes
 
8735
else
 
8736
  echo "$as_me: failed program was:" >&5
 
8737
sed 's/^/| /' conftest.$ac_ext >&5
 
8738
 
 
8739
ac_cv_lib_dld_shl_load=no
 
8740
fi
 
8741
rm -f conftest.err conftest.$ac_objext \
 
8742
      conftest$ac_exeext conftest.$ac_ext
 
8743
LIBS=$ac_check_lib_save_LIBS
 
8744
fi
 
8745
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8746
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8747
if test $ac_cv_lib_dld_shl_load = yes; then
 
8748
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8749
else
 
8750
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8751
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8752
if test "${ac_cv_func_dlopen+set}" = set; then
 
8753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8754
else
 
8755
  cat >conftest.$ac_ext <<_ACEOF
 
8756
/* confdefs.h.  */
 
8757
_ACEOF
 
8758
cat confdefs.h >>conftest.$ac_ext
 
8759
cat >>conftest.$ac_ext <<_ACEOF
 
8760
/* end confdefs.h.  */
 
8761
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8762
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8763
#define dlopen innocuous_dlopen
 
8764
 
 
8765
/* System header to define __stub macros and hopefully few prototypes,
 
8766
    which can conflict with char dlopen (); below.
 
8767
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8768
    <limits.h> exists even on freestanding compilers.  */
 
8769
 
 
8770
#ifdef __STDC__
 
8771
# include <limits.h>
 
8772
#else
 
8773
# include <assert.h>
 
8774
#endif
 
8775
 
 
8776
#undef dlopen
 
8777
 
 
8778
/* Override any gcc2 internal prototype to avoid an error.  */
 
8779
#ifdef __cplusplus
 
8780
extern "C"
 
8781
{
 
8782
#endif
 
8783
/* We use char because int might match the return type of a gcc2
 
8784
   builtin and then its argument prototype would still apply.  */
 
8785
char dlopen ();
 
8786
/* The GNU C library defines this for functions which it implements
 
8787
    to always fail with ENOSYS.  Some functions are actually named
 
8788
    something starting with __ and the normal name is an alias.  */
 
8789
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8790
choke me
 
8791
#else
 
8792
char (*f) () = dlopen;
 
8793
#endif
 
8794
#ifdef __cplusplus
 
8795
}
 
8796
#endif
 
8797
 
 
8798
int
 
8799
main ()
 
8800
{
 
8801
return f != dlopen;
 
8802
  ;
 
8803
  return 0;
 
8804
}
 
8805
_ACEOF
 
8806
rm -f conftest.$ac_objext conftest$ac_exeext
 
8807
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8808
  (eval $ac_link) 2>conftest.er1
 
8809
  ac_status=$?
 
8810
  grep -v '^ *+' conftest.er1 >conftest.err
 
8811
  rm -f conftest.er1
 
8812
  cat conftest.err >&5
 
8813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8814
  (exit $ac_status); } &&
 
8815
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8817
  (eval $ac_try) 2>&5
 
8818
  ac_status=$?
 
8819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8820
  (exit $ac_status); }; } &&
 
8821
         { ac_try='test -s conftest$ac_exeext'
 
8822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8823
  (eval $ac_try) 2>&5
 
8824
  ac_status=$?
 
8825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8826
  (exit $ac_status); }; }; then
 
8827
  ac_cv_func_dlopen=yes
 
8828
else
 
8829
  echo "$as_me: failed program was:" >&5
 
8830
sed 's/^/| /' conftest.$ac_ext >&5
 
8831
 
 
8832
ac_cv_func_dlopen=no
 
8833
fi
 
8834
rm -f conftest.err conftest.$ac_objext \
 
8835
      conftest$ac_exeext conftest.$ac_ext
 
8836
fi
 
8837
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8838
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8839
if test $ac_cv_func_dlopen = yes; then
 
8840
  lt_cv_dlopen="dlopen"
 
8841
else
 
8842
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8843
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8844
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8846
else
 
8847
  ac_check_lib_save_LIBS=$LIBS
 
8848
LIBS="-ldl  $LIBS"
 
8849
cat >conftest.$ac_ext <<_ACEOF
 
8850
/* confdefs.h.  */
 
8851
_ACEOF
 
8852
cat confdefs.h >>conftest.$ac_ext
 
8853
cat >>conftest.$ac_ext <<_ACEOF
 
8854
/* end confdefs.h.  */
 
8855
 
 
8856
/* Override any gcc2 internal prototype to avoid an error.  */
 
8857
#ifdef __cplusplus
 
8858
extern "C"
 
8859
#endif
 
8860
/* We use char because int might match the return type of a gcc2
 
8861
   builtin and then its argument prototype would still apply.  */
 
8862
char dlopen ();
 
8863
int
 
8864
main ()
 
8865
{
 
8866
dlopen ();
 
8867
  ;
 
8868
  return 0;
 
8869
}
 
8870
_ACEOF
 
8871
rm -f conftest.$ac_objext conftest$ac_exeext
 
8872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8873
  (eval $ac_link) 2>conftest.er1
 
8874
  ac_status=$?
 
8875
  grep -v '^ *+' conftest.er1 >conftest.err
 
8876
  rm -f conftest.er1
 
8877
  cat conftest.err >&5
 
8878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8879
  (exit $ac_status); } &&
 
8880
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8882
  (eval $ac_try) 2>&5
 
8883
  ac_status=$?
 
8884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8885
  (exit $ac_status); }; } &&
 
8886
         { ac_try='test -s conftest$ac_exeext'
 
8887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8888
  (eval $ac_try) 2>&5
 
8889
  ac_status=$?
 
8890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8891
  (exit $ac_status); }; }; then
 
8892
  ac_cv_lib_dl_dlopen=yes
 
8893
else
 
8894
  echo "$as_me: failed program was:" >&5
 
8895
sed 's/^/| /' conftest.$ac_ext >&5
 
8896
 
 
8897
ac_cv_lib_dl_dlopen=no
 
8898
fi
 
8899
rm -f conftest.err conftest.$ac_objext \
 
8900
      conftest$ac_exeext conftest.$ac_ext
 
8901
LIBS=$ac_check_lib_save_LIBS
 
8902
fi
 
8903
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8904
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8905
if test $ac_cv_lib_dl_dlopen = yes; then
 
8906
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8907
else
 
8908
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8909
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8910
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8912
else
 
8913
  ac_check_lib_save_LIBS=$LIBS
 
8914
LIBS="-lsvld  $LIBS"
 
8915
cat >conftest.$ac_ext <<_ACEOF
 
8916
/* confdefs.h.  */
 
8917
_ACEOF
 
8918
cat confdefs.h >>conftest.$ac_ext
 
8919
cat >>conftest.$ac_ext <<_ACEOF
 
8920
/* end confdefs.h.  */
 
8921
 
 
8922
/* Override any gcc2 internal prototype to avoid an error.  */
 
8923
#ifdef __cplusplus
 
8924
extern "C"
 
8925
#endif
 
8926
/* We use char because int might match the return type of a gcc2
 
8927
   builtin and then its argument prototype would still apply.  */
 
8928
char dlopen ();
 
8929
int
 
8930
main ()
 
8931
{
 
8932
dlopen ();
 
8933
  ;
 
8934
  return 0;
 
8935
}
 
8936
_ACEOF
 
8937
rm -f conftest.$ac_objext conftest$ac_exeext
 
8938
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8939
  (eval $ac_link) 2>conftest.er1
 
8940
  ac_status=$?
 
8941
  grep -v '^ *+' conftest.er1 >conftest.err
 
8942
  rm -f conftest.er1
 
8943
  cat conftest.err >&5
 
8944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8945
  (exit $ac_status); } &&
 
8946
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8948
  (eval $ac_try) 2>&5
 
8949
  ac_status=$?
 
8950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8951
  (exit $ac_status); }; } &&
 
8952
         { ac_try='test -s conftest$ac_exeext'
 
8953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8954
  (eval $ac_try) 2>&5
 
8955
  ac_status=$?
 
8956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8957
  (exit $ac_status); }; }; then
 
8958
  ac_cv_lib_svld_dlopen=yes
 
8959
else
 
8960
  echo "$as_me: failed program was:" >&5
 
8961
sed 's/^/| /' conftest.$ac_ext >&5
 
8962
 
 
8963
ac_cv_lib_svld_dlopen=no
 
8964
fi
 
8965
rm -f conftest.err conftest.$ac_objext \
 
8966
      conftest$ac_exeext conftest.$ac_ext
 
8967
LIBS=$ac_check_lib_save_LIBS
 
8968
fi
 
8969
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8970
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8971
if test $ac_cv_lib_svld_dlopen = yes; then
 
8972
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8973
else
 
8974
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8975
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8976
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8978
else
 
8979
  ac_check_lib_save_LIBS=$LIBS
 
8980
LIBS="-ldld  $LIBS"
 
8981
cat >conftest.$ac_ext <<_ACEOF
 
8982
/* confdefs.h.  */
 
8983
_ACEOF
 
8984
cat confdefs.h >>conftest.$ac_ext
 
8985
cat >>conftest.$ac_ext <<_ACEOF
 
8986
/* end confdefs.h.  */
 
8987
 
 
8988
/* Override any gcc2 internal prototype to avoid an error.  */
 
8989
#ifdef __cplusplus
 
8990
extern "C"
 
8991
#endif
 
8992
/* We use char because int might match the return type of a gcc2
 
8993
   builtin and then its argument prototype would still apply.  */
 
8994
char dld_link ();
 
8995
int
 
8996
main ()
 
8997
{
 
8998
dld_link ();
 
8999
  ;
 
9000
  return 0;
 
9001
}
 
9002
_ACEOF
 
9003
rm -f conftest.$ac_objext conftest$ac_exeext
 
9004
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9005
  (eval $ac_link) 2>conftest.er1
 
9006
  ac_status=$?
 
9007
  grep -v '^ *+' conftest.er1 >conftest.err
 
9008
  rm -f conftest.er1
 
9009
  cat conftest.err >&5
 
9010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9011
  (exit $ac_status); } &&
 
9012
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9013
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9014
  (eval $ac_try) 2>&5
 
9015
  ac_status=$?
 
9016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9017
  (exit $ac_status); }; } &&
 
9018
         { ac_try='test -s conftest$ac_exeext'
 
9019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9020
  (eval $ac_try) 2>&5
 
9021
  ac_status=$?
 
9022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9023
  (exit $ac_status); }; }; then
 
9024
  ac_cv_lib_dld_dld_link=yes
 
9025
else
 
9026
  echo "$as_me: failed program was:" >&5
 
9027
sed 's/^/| /' conftest.$ac_ext >&5
 
9028
 
 
9029
ac_cv_lib_dld_dld_link=no
 
9030
fi
 
9031
rm -f conftest.err conftest.$ac_objext \
 
9032
      conftest$ac_exeext conftest.$ac_ext
 
9033
LIBS=$ac_check_lib_save_LIBS
 
9034
fi
 
9035
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9036
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9037
if test $ac_cv_lib_dld_dld_link = yes; then
 
9038
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9039
fi
 
9040
 
 
9041
 
 
9042
fi
 
9043
 
 
9044
 
 
9045
fi
 
9046
 
 
9047
 
 
9048
fi
 
9049
 
 
9050
 
 
9051
fi
 
9052
 
 
9053
 
 
9054
fi
 
9055
 
 
9056
    ;;
 
9057
  esac
 
9058
 
 
9059
  if test "x$lt_cv_dlopen" != xno; then
 
9060
    enable_dlopen=yes
 
9061
  else
 
9062
    enable_dlopen=no
 
9063
  fi
 
9064
 
 
9065
  case $lt_cv_dlopen in
 
9066
  dlopen)
 
9067
    save_CPPFLAGS="$CPPFLAGS"
 
9068
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9069
 
 
9070
    save_LDFLAGS="$LDFLAGS"
 
9071
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9072
 
 
9073
    save_LIBS="$LIBS"
 
9074
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9075
 
 
9076
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9077
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9078
if test "${lt_cv_dlopen_self+set}" = set; then
 
9079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9080
else
 
9081
          if test "$cross_compiling" = yes; then :
 
9082
  lt_cv_dlopen_self=cross
 
9083
else
 
9084
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9085
  lt_status=$lt_dlunknown
 
9086
  cat > conftest.$ac_ext <<EOF
 
9087
#line 9087 "configure"
 
9088
#include "confdefs.h"
 
9089
 
 
9090
#if HAVE_DLFCN_H
 
9091
#include <dlfcn.h>
 
9092
#endif
 
9093
 
 
9094
#include <stdio.h>
 
9095
 
 
9096
#ifdef RTLD_GLOBAL
 
9097
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9098
#else
 
9099
#  ifdef DL_GLOBAL
 
9100
#    define LT_DLGLOBAL         DL_GLOBAL
 
9101
#  else
 
9102
#    define LT_DLGLOBAL         0
 
9103
#  endif
 
9104
#endif
 
9105
 
 
9106
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9107
   find out it does not work in some platform. */
 
9108
#ifndef LT_DLLAZY_OR_NOW
 
9109
#  ifdef RTLD_LAZY
 
9110
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9111
#  else
 
9112
#    ifdef DL_LAZY
 
9113
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9114
#    else
 
9115
#      ifdef RTLD_NOW
 
9116
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9117
#      else
 
9118
#        ifdef DL_NOW
 
9119
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9120
#        else
 
9121
#          define LT_DLLAZY_OR_NOW      0
 
9122
#        endif
 
9123
#      endif
 
9124
#    endif
 
9125
#  endif
 
9126
#endif
 
9127
 
 
9128
#ifdef __cplusplus
 
9129
extern "C" void exit (int);
 
9130
#endif
 
9131
 
 
9132
void fnord() { int i=42;}
 
9133
int main ()
 
9134
{
 
9135
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9136
  int status = $lt_dlunknown;
 
9137
 
 
9138
  if (self)
 
9139
    {
 
9140
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9141
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9142
      /* dlclose (self); */
 
9143
    }
 
9144
  else
 
9145
    puts (dlerror ());
 
9146
 
 
9147
    exit (status);
 
9148
}
 
9149
EOF
 
9150
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9151
  (eval $ac_link) 2>&5
 
9152
  ac_status=$?
 
9153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9154
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9155
    (./conftest; exit; ) >&5 2>/dev/null
 
9156
    lt_status=$?
 
9157
    case x$lt_status in
 
9158
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9159
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9160
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
9161
    esac
 
9162
  else :
 
9163
    # compilation failed
 
9164
    lt_cv_dlopen_self=no
 
9165
  fi
 
9166
fi
 
9167
rm -fr conftest*
 
9168
 
 
9169
 
 
9170
fi
 
9171
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9172
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9173
 
 
9174
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9175
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
9176
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9177
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9178
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9179
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9180
else
 
9181
          if test "$cross_compiling" = yes; then :
 
9182
  lt_cv_dlopen_self_static=cross
 
9183
else
 
9184
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9185
  lt_status=$lt_dlunknown
 
9186
  cat > conftest.$ac_ext <<EOF
 
9187
#line 9187 "configure"
 
9188
#include "confdefs.h"
 
9189
 
 
9190
#if HAVE_DLFCN_H
 
9191
#include <dlfcn.h>
 
9192
#endif
 
9193
 
 
9194
#include <stdio.h>
 
9195
 
 
9196
#ifdef RTLD_GLOBAL
 
9197
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9198
#else
 
9199
#  ifdef DL_GLOBAL
 
9200
#    define LT_DLGLOBAL         DL_GLOBAL
 
9201
#  else
 
9202
#    define LT_DLGLOBAL         0
 
9203
#  endif
 
9204
#endif
 
9205
 
 
9206
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9207
   find out it does not work in some platform. */
 
9208
#ifndef LT_DLLAZY_OR_NOW
 
9209
#  ifdef RTLD_LAZY
 
9210
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9211
#  else
 
9212
#    ifdef DL_LAZY
 
9213
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9214
#    else
 
9215
#      ifdef RTLD_NOW
 
9216
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9217
#      else
 
9218
#        ifdef DL_NOW
 
9219
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9220
#        else
 
9221
#          define LT_DLLAZY_OR_NOW      0
 
9222
#        endif
 
9223
#      endif
 
9224
#    endif
 
9225
#  endif
 
9226
#endif
 
9227
 
 
9228
#ifdef __cplusplus
 
9229
extern "C" void exit (int);
 
9230
#endif
 
9231
 
 
9232
void fnord() { int i=42;}
 
9233
int main ()
 
9234
{
 
9235
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9236
  int status = $lt_dlunknown;
 
9237
 
 
9238
  if (self)
 
9239
    {
 
9240
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9241
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9242
      /* dlclose (self); */
 
9243
    }
 
9244
  else
 
9245
    puts (dlerror ());
 
9246
 
 
9247
    exit (status);
 
9248
}
 
9249
EOF
 
9250
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9251
  (eval $ac_link) 2>&5
 
9252
  ac_status=$?
 
9253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9254
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9255
    (./conftest; exit; ) >&5 2>/dev/null
 
9256
    lt_status=$?
 
9257
    case x$lt_status in
 
9258
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9259
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9260
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
9261
    esac
 
9262
  else :
 
9263
    # compilation failed
 
9264
    lt_cv_dlopen_self_static=no
 
9265
  fi
 
9266
fi
 
9267
rm -fr conftest*
 
9268
 
 
9269
 
 
9270
fi
 
9271
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9272
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9273
    fi
 
9274
 
 
9275
    CPPFLAGS="$save_CPPFLAGS"
 
9276
    LDFLAGS="$save_LDFLAGS"
 
9277
    LIBS="$save_LIBS"
 
9278
    ;;
 
9279
  esac
 
9280
 
 
9281
  case $lt_cv_dlopen_self in
 
9282
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9283
  *) enable_dlopen_self=unknown ;;
 
9284
  esac
 
9285
 
 
9286
  case $lt_cv_dlopen_self_static in
 
9287
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9288
  *) enable_dlopen_self_static=unknown ;;
 
9289
  esac
 
9290
fi
 
9291
 
 
9292
 
 
9293
# Report which library types will actually be built
 
9294
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9295
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9296
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9297
echo "${ECHO_T}$can_build_shared" >&6
 
9298
 
 
9299
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9300
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9301
test "$can_build_shared" = "no" && enable_shared=no
 
9302
 
 
9303
# On AIX, shared libraries and static libraries use the same namespace, and
 
9304
# are all built from PIC.
 
9305
case $host_os in
 
9306
aix3*)
 
9307
  test "$enable_shared" = yes && enable_static=no
 
9308
  if test -n "$RANLIB"; then
 
9309
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9310
    postinstall_cmds='$RANLIB $lib'
 
9311
  fi
 
9312
  ;;
 
9313
 
 
9314
aix4* | aix5*)
 
9315
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9316
    test "$enable_shared" = yes && enable_static=no
 
9317
  fi
 
9318
    ;;
 
9319
esac
 
9320
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9321
echo "${ECHO_T}$enable_shared" >&6
 
9322
 
 
9323
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9324
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9325
# Make sure either enable_shared or enable_static is yes.
 
9326
test "$enable_shared" = yes || enable_static=yes
 
9327
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9328
echo "${ECHO_T}$enable_static" >&6
 
9329
 
 
9330
# The else clause should only fire when bootstrapping the
 
9331
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9332
# with your package, and you will get complaints that there are
 
9333
# no rules to generate ltmain.sh.
 
9334
if test -f "$ltmain"; then
 
9335
  # See if we are running on zsh, and set the options which allow our commands through
 
9336
  # without removal of \ escapes.
 
9337
  if test -n "${ZSH_VERSION+set}" ; then
 
9338
    setopt NO_GLOB_SUBST
 
9339
  fi
 
9340
  # Now quote all the things that may contain metacharacters while being
 
9341
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9342
  # variables and quote the copies for generation of the libtool script.
 
9343
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
9344
    SED SHELL STRIP \
 
9345
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9346
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9347
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9348
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9349
    lt_cv_sys_global_symbol_to_c_name_address \
 
9350
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9351
    old_postinstall_cmds old_postuninstall_cmds \
 
9352
    compiler \
 
9353
    CC \
 
9354
    LD \
 
9355
    lt_prog_compiler_wl \
 
9356
    lt_prog_compiler_pic \
 
9357
    lt_prog_compiler_static \
 
9358
    lt_prog_compiler_no_builtin_flag \
 
9359
    export_dynamic_flag_spec \
 
9360
    thread_safe_flag_spec \
 
9361
    whole_archive_flag_spec \
 
9362
    enable_shared_with_static_runtimes \
 
9363
    old_archive_cmds \
 
9364
    old_archive_from_new_cmds \
 
9365
    predep_objects \
 
9366
    postdep_objects \
 
9367
    predeps \
 
9368
    postdeps \
 
9369
    compiler_lib_search_path \
 
9370
    archive_cmds \
 
9371
    archive_expsym_cmds \
 
9372
    postinstall_cmds \
 
9373
    postuninstall_cmds \
 
9374
    old_archive_from_expsyms_cmds \
 
9375
    allow_undefined_flag \
 
9376
    no_undefined_flag \
 
9377
    export_symbols_cmds \
 
9378
    hardcode_libdir_flag_spec \
 
9379
    hardcode_libdir_flag_spec_ld \
 
9380
    hardcode_libdir_separator \
 
9381
    hardcode_automatic \
 
9382
    module_cmds \
 
9383
    module_expsym_cmds \
 
9384
    lt_cv_prog_compiler_c_o \
 
9385
    exclude_expsyms \
 
9386
    include_expsyms; do
 
9387
 
 
9388
    case $var in
 
9389
    old_archive_cmds | \
 
9390
    old_archive_from_new_cmds | \
 
9391
    archive_cmds | \
 
9392
    archive_expsym_cmds | \
 
9393
    module_cmds | \
 
9394
    module_expsym_cmds | \
 
9395
    old_archive_from_expsyms_cmds | \
 
9396
    export_symbols_cmds | \
 
9397
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9398
    postinstall_cmds | postuninstall_cmds | \
 
9399
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9400
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9401
      # Double-quote double-evaled strings.
 
9402
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9403
      ;;
 
9404
    *)
 
9405
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9406
      ;;
 
9407
    esac
 
9408
  done
 
9409
 
 
9410
  case $lt_echo in
 
9411
  *'\$0 --fallback-echo"')
 
9412
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9413
    ;;
 
9414
  esac
 
9415
 
 
9416
cfgfile="${ofile}T"
 
9417
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9418
  $rm -f "$cfgfile"
 
9419
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9420
echo "$as_me: creating $ofile" >&6;}
 
9421
 
 
9422
  cat <<__EOF__ >> "$cfgfile"
 
9423
#! $SHELL
 
9424
 
 
9425
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9426
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9427
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9428
#
 
9429
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9430
# Free Software Foundation, Inc.
 
9431
#
 
9432
# This file is part of GNU Libtool:
 
9433
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9434
#
 
9435
# This program is free software; you can redistribute it and/or modify
 
9436
# it under the terms of the GNU General Public License as published by
 
9437
# the Free Software Foundation; either version 2 of the License, or
 
9438
# (at your option) any later version.
 
9439
#
 
9440
# This program is distributed in the hope that it will be useful, but
 
9441
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9442
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9443
# General Public License for more details.
 
9444
#
 
9445
# You should have received a copy of the GNU General Public License
 
9446
# along with this program; if not, write to the Free Software
 
9447
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
9448
#
 
9449
# As a special exception to the GNU General Public License, if you
 
9450
# distribute this file as part of a program that contains a
 
9451
# configuration script generated by Autoconf, you may include it under
 
9452
# the same distribution terms that you use for the rest of that program.
 
9453
 
 
9454
# A sed program that does not truncate output.
 
9455
SED=$lt_SED
 
9456
 
 
9457
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9458
Xsed="$SED -e 1s/^X//"
 
9459
 
 
9460
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9461
# if CDPATH is set.
 
9462
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9463
 
 
9464
# The names of the tagged configurations supported by this script.
 
9465
available_tags=
 
9466
 
 
9467
# ### BEGIN LIBTOOL CONFIG
 
9468
 
 
9469
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9470
 
 
9471
# Shell to use when invoking shell scripts.
 
9472
SHELL=$lt_SHELL
 
9473
 
 
9474
# Whether or not to build shared libraries.
 
9475
build_libtool_libs=$enable_shared
 
9476
 
 
9477
# Whether or not to build static libraries.
 
9478
build_old_libs=$enable_static
 
9479
 
 
9480
# Whether or not to add -lc for building shared libraries.
 
9481
build_libtool_need_lc=$archive_cmds_need_lc
 
9482
 
 
9483
# Whether or not to disallow shared libs when runtime libs are static
 
9484
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9485
 
 
9486
# Whether or not to optimize for fast installation.
 
9487
fast_install=$enable_fast_install
 
9488
 
 
9489
# The host system.
 
9490
host_alias=$host_alias
 
9491
host=$host
 
9492
host_os=$host_os
 
9493
 
 
9494
# The build system.
 
9495
build_alias=$build_alias
 
9496
build=$build
 
9497
build_os=$build_os
 
9498
 
 
9499
# An echo program that does not interpret backslashes.
 
9500
echo=$lt_echo
 
9501
 
 
9502
# The archiver.
 
9503
AR=$lt_AR
 
9504
AR_FLAGS=$lt_AR_FLAGS
 
9505
 
 
9506
# A C compiler.
 
9507
LTCC=$lt_LTCC
 
9508
 
 
9509
# LTCC compiler flags.
 
9510
LTCFLAGS=$lt_LTCFLAGS
 
9511
 
 
9512
# A language-specific compiler.
 
9513
CC=$lt_compiler
 
9514
 
 
9515
# Is the compiler the GNU C compiler?
 
9516
with_gcc=$GCC
 
9517
 
 
9518
# An ERE matcher.
 
9519
EGREP=$lt_EGREP
 
9520
 
 
9521
# The linker used to build libraries.
 
9522
LD=$lt_LD
 
9523
 
 
9524
# Whether we need hard or soft links.
 
9525
LN_S=$lt_LN_S
 
9526
 
 
9527
# A BSD-compatible nm program.
 
9528
NM=$lt_NM
 
9529
 
 
9530
# A symbol stripping program
 
9531
STRIP=$lt_STRIP
 
9532
 
 
9533
# Used to examine libraries when file_magic_cmd begins "file"
 
9534
MAGIC_CMD=$MAGIC_CMD
 
9535
 
 
9536
# Used on cygwin: DLL creation program.
 
9537
DLLTOOL="$DLLTOOL"
 
9538
 
 
9539
# Used on cygwin: object dumper.
 
9540
OBJDUMP="$OBJDUMP"
 
9541
 
 
9542
# Used on cygwin: assembler.
 
9543
AS="$AS"
 
9544
 
 
9545
# The name of the directory that contains temporary libtool files.
 
9546
objdir=$objdir
 
9547
 
 
9548
# How to create reloadable object files.
 
9549
reload_flag=$lt_reload_flag
 
9550
reload_cmds=$lt_reload_cmds
 
9551
 
 
9552
# How to pass a linker flag through the compiler.
 
9553
wl=$lt_lt_prog_compiler_wl
 
9554
 
 
9555
# Object file suffix (normally "o").
 
9556
objext="$ac_objext"
 
9557
 
 
9558
# Old archive suffix (normally "a").
 
9559
libext="$libext"
 
9560
 
 
9561
# Shared library suffix (normally ".so").
 
9562
shrext_cmds='$shrext_cmds'
 
9563
 
 
9564
# Executable file suffix (normally "").
 
9565
exeext="$exeext"
 
9566
 
 
9567
# Additional compiler flags for building library objects.
 
9568
pic_flag=$lt_lt_prog_compiler_pic
 
9569
pic_mode=$pic_mode
 
9570
 
 
9571
# What is the maximum length of a command?
 
9572
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9573
 
 
9574
# Does compiler simultaneously support -c and -o options?
 
9575
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9576
 
 
9577
# Must we lock files when doing compilation?
 
9578
need_locks=$lt_need_locks
 
9579
 
 
9580
# Do we need the lib prefix for modules?
 
9581
need_lib_prefix=$need_lib_prefix
 
9582
 
 
9583
# Do we need a version for libraries?
 
9584
need_version=$need_version
 
9585
 
 
9586
# Whether dlopen is supported.
 
9587
dlopen_support=$enable_dlopen
 
9588
 
 
9589
# Whether dlopen of programs is supported.
 
9590
dlopen_self=$enable_dlopen_self
 
9591
 
 
9592
# Whether dlopen of statically linked programs is supported.
 
9593
dlopen_self_static=$enable_dlopen_self_static
 
9594
 
 
9595
# Compiler flag to prevent dynamic linking.
 
9596
link_static_flag=$lt_lt_prog_compiler_static
 
9597
 
 
9598
# Compiler flag to turn off builtin functions.
 
9599
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9600
 
 
9601
# Compiler flag to allow reflexive dlopens.
 
9602
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9603
 
 
9604
# Compiler flag to generate shared objects directly from archives.
 
9605
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9606
 
 
9607
# Compiler flag to generate thread-safe objects.
 
9608
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9609
 
 
9610
# Library versioning type.
 
9611
version_type=$version_type
 
9612
 
 
9613
# Format of library name prefix.
 
9614
libname_spec=$lt_libname_spec
 
9615
 
 
9616
# List of archive names.  First name is the real one, the rest are links.
 
9617
# The last name is the one that the linker finds with -lNAME.
 
9618
library_names_spec=$lt_library_names_spec
 
9619
 
 
9620
# The coded name of the library, if different from the real name.
 
9621
soname_spec=$lt_soname_spec
 
9622
 
 
9623
# Commands used to build and install an old-style archive.
 
9624
RANLIB=$lt_RANLIB
 
9625
old_archive_cmds=$lt_old_archive_cmds
 
9626
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9627
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9628
 
 
9629
# Create an old-style archive from a shared archive.
 
9630
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9631
 
 
9632
# Create a temporary old-style archive to link instead of a shared archive.
 
9633
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9634
 
 
9635
# Commands used to build and install a shared archive.
 
9636
archive_cmds=$lt_archive_cmds
 
9637
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9638
postinstall_cmds=$lt_postinstall_cmds
 
9639
postuninstall_cmds=$lt_postuninstall_cmds
 
9640
 
 
9641
# Commands used to build a loadable module (assumed same as above if empty)
 
9642
module_cmds=$lt_module_cmds
 
9643
module_expsym_cmds=$lt_module_expsym_cmds
 
9644
 
 
9645
# Commands to strip libraries.
 
9646
old_striplib=$lt_old_striplib
 
9647
striplib=$lt_striplib
 
9648
 
 
9649
# Dependencies to place before the objects being linked to create a
 
9650
# shared library.
 
9651
predep_objects=$lt_predep_objects
 
9652
 
 
9653
# Dependencies to place after the objects being linked to create a
 
9654
# shared library.
 
9655
postdep_objects=$lt_postdep_objects
 
9656
 
 
9657
# Dependencies to place before the objects being linked to create a
 
9658
# shared library.
 
9659
predeps=$lt_predeps
 
9660
 
 
9661
# Dependencies to place after the objects being linked to create a
 
9662
# shared library.
 
9663
postdeps=$lt_postdeps
 
9664
 
 
9665
# The library search path used internally by the compiler when linking
 
9666
# a shared library.
 
9667
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9668
 
 
9669
# Method to check whether dependent libraries are shared objects.
 
9670
deplibs_check_method=$lt_deplibs_check_method
 
9671
 
 
9672
# Command to use when deplibs_check_method == file_magic.
 
9673
file_magic_cmd=$lt_file_magic_cmd
 
9674
 
 
9675
# Flag that allows shared libraries with undefined symbols to be built.
 
9676
allow_undefined_flag=$lt_allow_undefined_flag
 
9677
 
 
9678
# Flag that forces no undefined symbols.
 
9679
no_undefined_flag=$lt_no_undefined_flag
 
9680
 
 
9681
# Commands used to finish a libtool library installation in a directory.
 
9682
finish_cmds=$lt_finish_cmds
 
9683
 
 
9684
# Same as above, but a single script fragment to be evaled but not shown.
 
9685
finish_eval=$lt_finish_eval
 
9686
 
 
9687
# Take the output of nm and produce a listing of raw symbols and C names.
 
9688
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9689
 
 
9690
# Transform the output of nm in a proper C declaration
 
9691
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9692
 
 
9693
# Transform the output of nm in a C name address pair
 
9694
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9695
 
 
9696
# This is the shared library runtime path variable.
 
9697
runpath_var=$runpath_var
 
9698
 
 
9699
# This is the shared library path variable.
 
9700
shlibpath_var=$shlibpath_var
 
9701
 
 
9702
# Is shlibpath searched before the hard-coded library search path?
 
9703
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9704
 
 
9705
# How to hardcode a shared library path into an executable.
 
9706
hardcode_action=$hardcode_action
 
9707
 
 
9708
# Whether we should hardcode library paths into libraries.
 
9709
hardcode_into_libs=$hardcode_into_libs
 
9710
 
 
9711
# Flag to hardcode \$libdir into a binary during linking.
 
9712
# This must work even if \$libdir does not exist.
 
9713
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9714
 
 
9715
# If ld is used when linking, flag to hardcode \$libdir into
 
9716
# a binary during linking. This must work even if \$libdir does
 
9717
# not exist.
 
9718
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9719
 
 
9720
# Whether we need a single -rpath flag with a separated argument.
 
9721
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9722
 
 
9723
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9724
# resulting binary.
 
9725
hardcode_direct=$hardcode_direct
 
9726
 
 
9727
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9728
# resulting binary.
 
9729
hardcode_minus_L=$hardcode_minus_L
 
9730
 
 
9731
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9732
# the resulting binary.
 
9733
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9734
 
 
9735
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9736
# and all subsequent libraries and executables linked against it.
 
9737
hardcode_automatic=$hardcode_automatic
 
9738
 
 
9739
# Variables whose values should be saved in libtool wrapper scripts and
 
9740
# restored at relink time.
 
9741
variables_saved_for_relink="$variables_saved_for_relink"
 
9742
 
 
9743
# Whether libtool must link a program against all its dependency libraries.
 
9744
link_all_deplibs=$link_all_deplibs
 
9745
 
 
9746
# Compile-time system search path for libraries
 
9747
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9748
 
 
9749
# Run-time system search path for libraries
 
9750
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9751
 
 
9752
# Fix the shell variable \$srcfile for the compiler.
 
9753
fix_srcfile_path="$fix_srcfile_path"
 
9754
 
 
9755
# Set to yes if exported symbols are required.
 
9756
always_export_symbols=$always_export_symbols
 
9757
 
 
9758
# The commands to list exported symbols.
 
9759
export_symbols_cmds=$lt_export_symbols_cmds
 
9760
 
 
9761
# The commands to extract the exported symbol list from a shared archive.
 
9762
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9763
 
 
9764
# Symbols that should not be listed in the preloaded symbols.
 
9765
exclude_expsyms=$lt_exclude_expsyms
 
9766
 
 
9767
# Symbols that must always be exported.
 
9768
include_expsyms=$lt_include_expsyms
 
9769
 
 
9770
# ### END LIBTOOL CONFIG
 
9771
 
 
9772
__EOF__
 
9773
 
 
9774
 
 
9775
  case $host_os in
 
9776
  aix3*)
 
9777
    cat <<\EOF >> "$cfgfile"
 
9778
 
 
9779
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9780
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9781
# vanish in a puff of smoke.
 
9782
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9783
  COLLECT_NAMES=
 
9784
  export COLLECT_NAMES
 
9785
fi
 
9786
EOF
 
9787
    ;;
 
9788
  esac
 
9789
 
 
9790
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9791
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9792
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9793
  # is reportedly fixed, but why not run on old versions too?
 
9794
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9795
 
 
9796
  mv -f "$cfgfile" "$ofile" || \
 
9797
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9798
  chmod +x "$ofile"
 
9799
 
 
9800
else
 
9801
  # If there is no Makefile yet, we rely on a make rule to execute
 
9802
  # `config.status --recheck' to rerun these tests and create the
 
9803
  # libtool script then.
 
9804
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9805
  if test -f "$ltmain_in"; then
 
9806
    test -f Makefile && make "$ltmain"
 
9807
  fi
 
9808
fi
 
9809
 
 
9810
 
 
9811
ac_ext=c
 
9812
ac_cpp='$CPP $CPPFLAGS'
 
9813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9816
 
 
9817
CC="$lt_save_CC"
 
9818
 
 
9819
 
 
9820
# Check whether --with-tags or --without-tags was given.
 
9821
if test "${with_tags+set}" = set; then
 
9822
  withval="$with_tags"
 
9823
  tagnames="$withval"
 
9824
fi;
 
9825
 
 
9826
if test -f "$ltmain" && test -n "$tagnames"; then
 
9827
  if test ! -f "${ofile}"; then
 
9828
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9829
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9830
  fi
 
9831
 
 
9832
  if test -z "$LTCC"; then
 
9833
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9834
    if test -z "$LTCC"; then
 
9835
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9836
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9837
    else
 
9838
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9839
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9840
    fi
 
9841
  fi
 
9842
  if test -z "$LTCFLAGS"; then
 
9843
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
9844
  fi
 
9845
 
 
9846
  # Extract list of available tagged configurations in $ofile.
 
9847
  # Note that this assumes the entire list is on one line.
 
9848
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9849
 
 
9850
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9851
  for tagname in $tagnames; do
 
9852
    IFS="$lt_save_ifs"
 
9853
    # Check whether tagname contains only valid characters
 
9854
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9855
    "") ;;
 
9856
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9857
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9858
   { (exit 1); exit 1; }; }
 
9859
        ;;
 
9860
    esac
 
9861
 
 
9862
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9863
    then
 
9864
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9865
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9866
   { (exit 1); exit 1; }; }
 
9867
    fi
 
9868
 
 
9869
    # Update the list of available tags.
 
9870
    if test -n "$tagname"; then
 
9871
      echo appending configuration tag \"$tagname\" to $ofile
 
9872
 
 
9873
      case $tagname in
 
9874
      CXX)
 
9875
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9876
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9877
            (test "X$CXX" != "Xg++"))) ; then
 
9878
          ac_ext=cc
 
9879
ac_cpp='$CXXCPP $CPPFLAGS'
 
9880
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9881
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9882
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9883
 
 
9884
 
 
9885
 
 
9886
 
 
9887
archive_cmds_need_lc_CXX=no
 
9888
allow_undefined_flag_CXX=
 
9889
always_export_symbols_CXX=no
 
9890
archive_expsym_cmds_CXX=
 
9891
export_dynamic_flag_spec_CXX=
 
9892
hardcode_direct_CXX=no
 
9893
hardcode_libdir_flag_spec_CXX=
 
9894
hardcode_libdir_flag_spec_ld_CXX=
 
9895
hardcode_libdir_separator_CXX=
 
9896
hardcode_minus_L_CXX=no
 
9897
hardcode_shlibpath_var_CXX=unsupported
 
9898
hardcode_automatic_CXX=no
 
9899
module_cmds_CXX=
 
9900
module_expsym_cmds_CXX=
 
9901
link_all_deplibs_CXX=unknown
 
9902
old_archive_cmds_CXX=$old_archive_cmds
 
9903
no_undefined_flag_CXX=
 
9904
whole_archive_flag_spec_CXX=
 
9905
enable_shared_with_static_runtimes_CXX=no
 
9906
 
 
9907
# Dependencies to place before and after the object being linked:
 
9908
predep_objects_CXX=
 
9909
postdep_objects_CXX=
 
9910
predeps_CXX=
 
9911
postdeps_CXX=
 
9912
compiler_lib_search_path_CXX=
 
9913
 
 
9914
# Source file extension for C++ test sources.
 
9915
ac_ext=cpp
 
9916
 
 
9917
# Object file extension for compiled C++ test sources.
 
9918
objext=o
 
9919
objext_CXX=$objext
 
9920
 
 
9921
# Code to be used in simple compile tests
 
9922
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9923
 
 
9924
# Code to be used in simple link tests
 
9925
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
9926
 
 
9927
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9928
 
 
9929
# If no C compiler was specified, use CC.
 
9930
LTCC=${LTCC-"$CC"}
 
9931
 
 
9932
# If no C compiler flags were specified, use CFLAGS.
 
9933
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9934
 
 
9935
# Allow CC to be a program name with arguments.
 
9936
compiler=$CC
 
9937
 
 
9938
 
 
9939
# save warnings/boilerplate of simple test code
 
9940
ac_outfile=conftest.$ac_objext
 
9941
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9942
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9943
_lt_compiler_boilerplate=`cat conftest.err`
 
9944
$rm conftest*
 
9945
 
 
9946
ac_outfile=conftest.$ac_objext
 
9947
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9948
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9949
_lt_linker_boilerplate=`cat conftest.err`
 
9950
$rm conftest*
 
9951
 
 
9952
 
 
9953
# Allow CC to be a program name with arguments.
 
9954
lt_save_CC=$CC
 
9955
lt_save_LD=$LD
 
9956
lt_save_GCC=$GCC
 
9957
GCC=$GXX
 
9958
lt_save_with_gnu_ld=$with_gnu_ld
 
9959
lt_save_path_LD=$lt_cv_path_LD
 
9960
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9961
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9962
else
 
9963
  $as_unset lt_cv_prog_gnu_ld
 
9964
fi
 
9965
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9966
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9967
else
 
9968
  $as_unset lt_cv_path_LD
 
9969
fi
 
9970
test -z "${LDCXX+set}" || LD=$LDCXX
 
9971
CC=${CXX-"c++"}
 
9972
compiler=$CC
 
9973
compiler_CXX=$CC
 
9974
for cc_temp in $compiler""; do
 
9975
  case $cc_temp in
 
9976
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9977
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9978
    \-*) ;;
 
9979
    *) break;;
 
9980
  esac
 
9981
done
 
9982
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9983
 
 
9984
 
 
9985
# We don't want -fno-exception wen compiling C++ code, so set the
 
9986
# no_builtin_flag separately
 
9987
if test "$GXX" = yes; then
 
9988
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9989
else
 
9990
  lt_prog_compiler_no_builtin_flag_CXX=
 
9991
fi
 
9992
 
 
9993
if test "$GXX" = yes; then
 
9994
  # Set up default GNU C++ configuration
 
9995
 
 
9996
 
 
9997
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9998
if test "${with_gnu_ld+set}" = set; then
 
9999
  withval="$with_gnu_ld"
 
10000
  test "$withval" = no || with_gnu_ld=yes
 
10001
else
 
10002
  with_gnu_ld=no
 
10003
fi;
 
10004
ac_prog=ld
 
10005
if test "$GCC" = yes; then
 
10006
  # Check if gcc -print-prog-name=ld gives a path.
 
10007
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10008
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10009
  case $host in
 
10010
  *-*-mingw*)
 
10011
    # gcc leaves a trailing carriage return which upsets mingw
 
10012
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10013
  *)
 
10014
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10015
  esac
 
10016
  case $ac_prog in
 
10017
    # Accept absolute paths.
 
10018
    [\\/]* | ?:[\\/]*)
 
10019
      re_direlt='/[^/][^/]*/\.\./'
 
10020
      # Canonicalize the pathname of ld
 
10021
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10022
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10023
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10024
      done
 
10025
      test -z "$LD" && LD="$ac_prog"
 
10026
      ;;
 
10027
  "")
 
10028
    # If it fails, then pretend we aren't using GCC.
 
10029
    ac_prog=ld
 
10030
    ;;
 
10031
  *)
 
10032
    # If it is relative, then search for the first ld in PATH.
 
10033
    with_gnu_ld=unknown
 
10034
    ;;
 
10035
  esac
 
10036
elif test "$with_gnu_ld" = yes; then
 
10037
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10038
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10039
else
 
10040
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10041
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10042
fi
 
10043
if test "${lt_cv_path_LD+set}" = set; then
 
10044
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10045
else
 
10046
  if test -z "$LD"; then
 
10047
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10048
  for ac_dir in $PATH; do
 
10049
    IFS="$lt_save_ifs"
 
10050
    test -z "$ac_dir" && ac_dir=.
 
10051
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10052
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10053
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10054
      # but apparently some variants of GNU ld only accept -v.
 
10055
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10056
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10057
      *GNU* | *'with BFD'*)
 
10058
        test "$with_gnu_ld" != no && break
 
10059
        ;;
 
10060
      *)
 
10061
        test "$with_gnu_ld" != yes && break
 
10062
        ;;
 
10063
      esac
 
10064
    fi
 
10065
  done
 
10066
  IFS="$lt_save_ifs"
 
10067
else
 
10068
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10069
fi
 
10070
fi
 
10071
 
 
10072
LD="$lt_cv_path_LD"
 
10073
if test -n "$LD"; then
 
10074
  echo "$as_me:$LINENO: result: $LD" >&5
 
10075
echo "${ECHO_T}$LD" >&6
 
10076
else
 
10077
  echo "$as_me:$LINENO: result: no" >&5
 
10078
echo "${ECHO_T}no" >&6
 
10079
fi
 
10080
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10081
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10082
   { (exit 1); exit 1; }; }
 
10083
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10084
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10085
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10087
else
 
10088
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10089
case `$LD -v 2>&1 </dev/null` in
 
10090
*GNU* | *'with BFD'*)
 
10091
  lt_cv_prog_gnu_ld=yes
 
10092
  ;;
 
10093
*)
 
10094
  lt_cv_prog_gnu_ld=no
 
10095
  ;;
 
10096
esac
 
10097
fi
 
10098
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10099
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10100
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10101
 
 
10102
 
 
10103
 
 
10104
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10105
  # archiving commands below assume that GNU ld is being used.
 
10106
  if test "$with_gnu_ld" = yes; then
 
10107
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10108
    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'
 
10109
 
 
10110
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10111
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10112
 
 
10113
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10114
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10115
    #     investigate it a little bit more. (MM)
 
10116
    wlarc='${wl}'
 
10117
 
 
10118
    # ancient GNU ld didn't support --whole-archive et. al.
 
10119
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10120
        grep 'no-whole-archive' > /dev/null; then
 
10121
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10122
    else
 
10123
      whole_archive_flag_spec_CXX=
 
10124
    fi
 
10125
  else
 
10126
    with_gnu_ld=no
 
10127
    wlarc=
 
10128
 
 
10129
    # A generic and very simple default shared library creation
 
10130
    # command for GNU C++ for the case where it uses the native
 
10131
    # linker, instead of GNU ld.  If possible, this setting should
 
10132
    # overridden to take advantage of the native linker features on
 
10133
    # the platform it is being used on.
 
10134
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10135
  fi
 
10136
 
 
10137
  # Commands to make compiler produce verbose output that lists
 
10138
  # what "hidden" libraries, object files and flags are used when
 
10139
  # linking a shared library.
 
10140
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10141
 
 
10142
else
 
10143
  GXX=no
 
10144
  with_gnu_ld=no
 
10145
  wlarc=
 
10146
fi
 
10147
 
 
10148
# PORTME: fill in a description of your system's C++ link characteristics
 
10149
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10150
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10151
ld_shlibs_CXX=yes
 
10152
case $host_os in
 
10153
  aix3*)
 
10154
    # FIXME: insert proper C++ library support
 
10155
    ld_shlibs_CXX=no
 
10156
    ;;
 
10157
  aix4* | aix5*)
 
10158
    if test "$host_cpu" = ia64; then
 
10159
      # On IA64, the linker does run time linking by default, so we don't
 
10160
      # have to do anything special.
 
10161
      aix_use_runtimelinking=no
 
10162
      exp_sym_flag='-Bexport'
 
10163
      no_entry_flag=""
 
10164
    else
 
10165
      aix_use_runtimelinking=no
 
10166
 
 
10167
      # Test if we are trying to use run time linking or normal
 
10168
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10169
      # need to do runtime linking.
 
10170
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10171
        for ld_flag in $LDFLAGS; do
 
10172
          case $ld_flag in
 
10173
          *-brtl*)
 
10174
            aix_use_runtimelinking=yes
 
10175
            break
 
10176
            ;;
 
10177
          esac
 
10178
        done
 
10179
        ;;
 
10180
      esac
 
10181
 
 
10182
      exp_sym_flag='-bexport'
 
10183
      no_entry_flag='-bnoentry'
 
10184
    fi
 
10185
 
 
10186
    # When large executables or shared objects are built, AIX ld can
 
10187
    # have problems creating the table of contents.  If linking a library
 
10188
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10189
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10190
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10191
 
 
10192
    archive_cmds_CXX=''
 
10193
    hardcode_direct_CXX=yes
 
10194
    hardcode_libdir_separator_CXX=':'
 
10195
    link_all_deplibs_CXX=yes
 
10196
 
 
10197
    if test "$GXX" = yes; then
 
10198
      case $host_os in aix4.[012]|aix4.[012].*)
 
10199
      # We only want to do this on AIX 4.2 and lower, the check
 
10200
      # below for broken collect2 doesn't work under 4.3+
 
10201
        collect2name=`${CC} -print-prog-name=collect2`
 
10202
        if test -f "$collect2name" && \
 
10203
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10204
        then
 
10205
          # We have reworked collect2
 
10206
          hardcode_direct_CXX=yes
 
10207
        else
 
10208
          # We have old collect2
 
10209
          hardcode_direct_CXX=unsupported
 
10210
          # It fails to find uninstalled libraries when the uninstalled
 
10211
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10212
          # to unsupported forces relinking
 
10213
          hardcode_minus_L_CXX=yes
 
10214
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10215
          hardcode_libdir_separator_CXX=
 
10216
        fi
 
10217
        ;;
 
10218
      esac
 
10219
      shared_flag='-shared'
 
10220
      if test "$aix_use_runtimelinking" = yes; then
 
10221
        shared_flag="$shared_flag "'${wl}-G'
 
10222
      fi
 
10223
    else
 
10224
      # not using gcc
 
10225
      if test "$host_cpu" = ia64; then
 
10226
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10227
        # chokes on -Wl,-G. The following line is correct:
 
10228
        shared_flag='-G'
 
10229
      else
 
10230
        if test "$aix_use_runtimelinking" = yes; then
 
10231
          shared_flag='${wl}-G'
 
10232
        else
 
10233
          shared_flag='${wl}-bM:SRE'
 
10234
        fi
 
10235
      fi
 
10236
    fi
 
10237
 
 
10238
    # It seems that -bexpall does not export symbols beginning with
 
10239
    # underscore (_), so it is better to generate a list of symbols to export.
 
10240
    always_export_symbols_CXX=yes
 
10241
    if test "$aix_use_runtimelinking" = yes; then
 
10242
      # Warning - without using the other runtime loading flags (-brtl),
 
10243
      # -berok will link without error, but may produce a broken library.
 
10244
      allow_undefined_flag_CXX='-berok'
 
10245
      # Determine the default libpath from the value encoded in an empty executable.
 
10246
      cat >conftest.$ac_ext <<_ACEOF
 
10247
/* confdefs.h.  */
 
10248
_ACEOF
 
10249
cat confdefs.h >>conftest.$ac_ext
 
10250
cat >>conftest.$ac_ext <<_ACEOF
 
10251
/* end confdefs.h.  */
 
10252
 
 
10253
int
 
10254
main ()
 
10255
{
 
10256
 
 
10257
  ;
 
10258
  return 0;
 
10259
}
 
10260
_ACEOF
 
10261
rm -f conftest.$ac_objext conftest$ac_exeext
 
10262
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10263
  (eval $ac_link) 2>conftest.er1
 
10264
  ac_status=$?
 
10265
  grep -v '^ *+' conftest.er1 >conftest.err
 
10266
  rm -f conftest.er1
 
10267
  cat conftest.err >&5
 
10268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10269
  (exit $ac_status); } &&
 
10270
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10272
  (eval $ac_try) 2>&5
 
10273
  ac_status=$?
 
10274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10275
  (exit $ac_status); }; } &&
 
10276
         { ac_try='test -s conftest$ac_exeext'
 
10277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10278
  (eval $ac_try) 2>&5
 
10279
  ac_status=$?
 
10280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10281
  (exit $ac_status); }; }; then
 
10282
 
 
10283
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10284
}'`
 
10285
# Check for a 64-bit object if we didn't find anything.
 
10286
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; }
 
10287
}'`; fi
 
10288
else
 
10289
  echo "$as_me: failed program was:" >&5
 
10290
sed 's/^/| /' conftest.$ac_ext >&5
 
10291
 
 
10292
fi
 
10293
rm -f conftest.err conftest.$ac_objext \
 
10294
      conftest$ac_exeext conftest.$ac_ext
 
10295
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10296
 
 
10297
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10298
 
 
10299
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10300
     else
 
10301
      if test "$host_cpu" = ia64; then
 
10302
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10303
        allow_undefined_flag_CXX="-z nodefs"
 
10304
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
10305
      else
 
10306
        # Determine the default libpath from the value encoded in an empty executable.
 
10307
        cat >conftest.$ac_ext <<_ACEOF
 
10308
/* confdefs.h.  */
 
10309
_ACEOF
 
10310
cat confdefs.h >>conftest.$ac_ext
 
10311
cat >>conftest.$ac_ext <<_ACEOF
 
10312
/* end confdefs.h.  */
 
10313
 
 
10314
int
 
10315
main ()
 
10316
{
 
10317
 
 
10318
  ;
 
10319
  return 0;
 
10320
}
 
10321
_ACEOF
 
10322
rm -f conftest.$ac_objext conftest$ac_exeext
 
10323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10324
  (eval $ac_link) 2>conftest.er1
 
10325
  ac_status=$?
 
10326
  grep -v '^ *+' conftest.er1 >conftest.err
 
10327
  rm -f conftest.er1
 
10328
  cat conftest.err >&5
 
10329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10330
  (exit $ac_status); } &&
 
10331
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10333
  (eval $ac_try) 2>&5
 
10334
  ac_status=$?
 
10335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10336
  (exit $ac_status); }; } &&
 
10337
         { ac_try='test -s conftest$ac_exeext'
 
10338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10339
  (eval $ac_try) 2>&5
 
10340
  ac_status=$?
 
10341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10342
  (exit $ac_status); }; }; then
 
10343
 
 
10344
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10345
}'`
 
10346
# Check for a 64-bit object if we didn't find anything.
 
10347
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; }
 
10348
}'`; fi
 
10349
else
 
10350
  echo "$as_me: failed program was:" >&5
 
10351
sed 's/^/| /' conftest.$ac_ext >&5
 
10352
 
 
10353
fi
 
10354
rm -f conftest.err conftest.$ac_objext \
 
10355
      conftest$ac_exeext conftest.$ac_ext
 
10356
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10357
 
 
10358
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10359
        # Warning - without using the other run time loading flags,
 
10360
        # -berok will link without error, but may produce a broken library.
 
10361
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10362
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10363
        # Exported symbols can be pulled into shared objects from archives
 
10364
        whole_archive_flag_spec_CXX='$convenience'
 
10365
        archive_cmds_need_lc_CXX=yes
 
10366
        # This is similar to how AIX traditionally builds its shared libraries.
 
10367
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10368
      fi
 
10369
    fi
 
10370
    ;;
 
10371
 
 
10372
  beos*)
 
10373
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10374
      allow_undefined_flag_CXX=unsupported
 
10375
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10376
      # support --undefined.  This deserves some investigation.  FIXME
 
10377
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10378
    else
 
10379
      ld_shlibs_CXX=no
 
10380
    fi
 
10381
    ;;
 
10382
 
 
10383
  chorus*)
 
10384
    case $cc_basename in
 
10385
      *)
 
10386
        # FIXME: insert proper C++ library support
 
10387
        ld_shlibs_CXX=no
 
10388
        ;;
 
10389
    esac
 
10390
    ;;
 
10391
 
 
10392
  cygwin* | mingw* | pw32*)
 
10393
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10394
    # as there is no search path for DLLs.
 
10395
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10396
    allow_undefined_flag_CXX=unsupported
 
10397
    always_export_symbols_CXX=no
 
10398
    enable_shared_with_static_runtimes_CXX=yes
 
10399
 
 
10400
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10401
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10402
      # If the export-symbols file already is a .def file (1st line
 
10403
      # is EXPORTS), use it as is; otherwise, prepend...
 
10404
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10405
        cp $export_symbols $output_objdir/$soname.def;
 
10406
      else
 
10407
        echo EXPORTS > $output_objdir/$soname.def;
 
10408
        cat $export_symbols >> $output_objdir/$soname.def;
 
10409
      fi~
 
10410
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10411
    else
 
10412
      ld_shlibs_CXX=no
 
10413
    fi
 
10414
  ;;
 
10415
      darwin* | rhapsody*)
 
10416
        case $host_os in
 
10417
        rhapsody* | darwin1.[012])
 
10418
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10419
         ;;
 
10420
       *) # Darwin 1.3 on
 
10421
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10422
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10423
         else
 
10424
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10425
             10.[012])
 
10426
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10427
               ;;
 
10428
             10.*)
 
10429
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10430
               ;;
 
10431
           esac
 
10432
         fi
 
10433
         ;;
 
10434
        esac
 
10435
      archive_cmds_need_lc_CXX=no
 
10436
      hardcode_direct_CXX=no
 
10437
      hardcode_automatic_CXX=yes
 
10438
      hardcode_shlibpath_var_CXX=unsupported
 
10439
      whole_archive_flag_spec_CXX=''
 
10440
      link_all_deplibs_CXX=yes
 
10441
 
 
10442
    if test "$GXX" = yes ; then
 
10443
      lt_int_apple_cc_single_mod=no
 
10444
      output_verbose_link_cmd='echo'
 
10445
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10446
       lt_int_apple_cc_single_mod=yes
 
10447
      fi
 
10448
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10449
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10450
      else
 
10451
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10452
        fi
 
10453
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10454
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10455
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10456
            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}'
 
10457
          else
 
10458
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10459
          fi
 
10460
            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}'
 
10461
      else
 
10462
      case $cc_basename in
 
10463
        xlc*)
 
10464
         output_verbose_link_cmd='echo'
 
10465
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
10466
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10467
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10468
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10469
          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}'
 
10470
          ;;
 
10471
       *)
 
10472
         ld_shlibs_CXX=no
 
10473
          ;;
 
10474
      esac
 
10475
      fi
 
10476
        ;;
 
10477
 
 
10478
  dgux*)
 
10479
    case $cc_basename in
 
10480
      ec++*)
 
10481
        # FIXME: insert proper C++ library support
 
10482
        ld_shlibs_CXX=no
 
10483
        ;;
 
10484
      ghcx*)
 
10485
        # Green Hills C++ Compiler
 
10486
        # FIXME: insert proper C++ library support
 
10487
        ld_shlibs_CXX=no
 
10488
        ;;
 
10489
      *)
 
10490
        # FIXME: insert proper C++ library support
 
10491
        ld_shlibs_CXX=no
 
10492
        ;;
 
10493
    esac
 
10494
    ;;
 
10495
  freebsd[12]*)
 
10496
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10497
    ld_shlibs_CXX=no
 
10498
    ;;
 
10499
  freebsd-elf*)
 
10500
    archive_cmds_need_lc_CXX=no
 
10501
    ;;
 
10502
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
10503
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10504
    # conventions
 
10505
    ld_shlibs_CXX=yes
 
10506
    ;;
 
10507
  gnu*)
 
10508
    ;;
 
10509
  hpux9*)
 
10510
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10511
    hardcode_libdir_separator_CXX=:
 
10512
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10513
    hardcode_direct_CXX=yes
 
10514
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10515
                                # but as the default
 
10516
                                # location of the library.
 
10517
 
 
10518
    case $cc_basename in
 
10519
    CC*)
 
10520
      # FIXME: insert proper C++ library support
 
10521
      ld_shlibs_CXX=no
 
10522
      ;;
 
10523
    aCC*)
 
10524
      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'
 
10525
      # Commands to make compiler produce verbose output that lists
 
10526
      # what "hidden" libraries, object files and flags are used when
 
10527
      # linking a shared library.
 
10528
      #
 
10529
      # There doesn't appear to be a way to prevent this compiler from
 
10530
      # explicitly linking system object files so we need to strip them
 
10531
      # from the output so that they don't get included in the library
 
10532
      # dependencies.
 
10533
      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'
 
10534
      ;;
 
10535
    *)
 
10536
      if test "$GXX" = yes; then
 
10537
        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'
 
10538
      else
 
10539
        # FIXME: insert proper C++ library support
 
10540
        ld_shlibs_CXX=no
 
10541
      fi
 
10542
      ;;
 
10543
    esac
 
10544
    ;;
 
10545
  hpux10*|hpux11*)
 
10546
    if test $with_gnu_ld = no; then
 
10547
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10548
      hardcode_libdir_separator_CXX=:
 
10549
 
 
10550
      case $host_cpu in
 
10551
      hppa*64*|ia64*)
 
10552
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10553
        ;;
 
10554
      *)
 
10555
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10556
        ;;
 
10557
      esac
 
10558
    fi
 
10559
    case $host_cpu in
 
10560
    hppa*64*|ia64*)
 
10561
      hardcode_direct_CXX=no
 
10562
      hardcode_shlibpath_var_CXX=no
 
10563
      ;;
 
10564
    *)
 
10565
      hardcode_direct_CXX=yes
 
10566
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10567
                                              # but as the default
 
10568
                                              # location of the library.
 
10569
      ;;
 
10570
    esac
 
10571
 
 
10572
    case $cc_basename in
 
10573
      CC*)
 
10574
        # FIXME: insert proper C++ library support
 
10575
        ld_shlibs_CXX=no
 
10576
        ;;
 
10577
      aCC*)
 
10578
        case $host_cpu in
 
10579
        hppa*64*)
 
10580
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10581
          ;;
 
10582
        ia64*)
 
10583
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10584
          ;;
 
10585
        *)
 
10586
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10587
          ;;
 
10588
        esac
 
10589
        # Commands to make compiler produce verbose output that lists
 
10590
        # what "hidden" libraries, object files and flags are used when
 
10591
        # linking a shared library.
 
10592
        #
 
10593
        # There doesn't appear to be a way to prevent this compiler from
 
10594
        # explicitly linking system object files so we need to strip them
 
10595
        # from the output so that they don't get included in the library
 
10596
        # dependencies.
 
10597
        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'
 
10598
        ;;
 
10599
      *)
 
10600
        if test "$GXX" = yes; then
 
10601
          if test $with_gnu_ld = no; then
 
10602
            case $host_cpu in
 
10603
            hppa*64*)
 
10604
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10605
              ;;
 
10606
            ia64*)
 
10607
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10608
              ;;
 
10609
            *)
 
10610
              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'
 
10611
              ;;
 
10612
            esac
 
10613
          fi
 
10614
        else
 
10615
          # FIXME: insert proper C++ library support
 
10616
          ld_shlibs_CXX=no
 
10617
        fi
 
10618
        ;;
 
10619
    esac
 
10620
    ;;
 
10621
  interix3*)
 
10622
    hardcode_direct_CXX=no
 
10623
    hardcode_shlibpath_var_CXX=no
 
10624
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10625
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10626
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10627
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10628
    # default) and relocated if they conflict, which is a slow very memory
 
10629
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
10630
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10631
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10632
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10633
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10634
    ;;
 
10635
  irix5* | irix6*)
 
10636
    case $cc_basename in
 
10637
      CC*)
 
10638
        # SGI C++
 
10639
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10640
 
 
10641
        # Archives containing C++ object files must be created using
 
10642
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10643
        # necessary to make sure instantiated templates are included
 
10644
        # in the archive.
 
10645
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10646
        ;;
 
10647
      *)
 
10648
        if test "$GXX" = yes; then
 
10649
          if test "$with_gnu_ld" = no; then
 
10650
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10651
          else
 
10652
            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'
 
10653
          fi
 
10654
        fi
 
10655
        link_all_deplibs_CXX=yes
 
10656
        ;;
 
10657
    esac
 
10658
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10659
    hardcode_libdir_separator_CXX=:
 
10660
    ;;
 
10661
  linux*)
 
10662
    case $cc_basename in
 
10663
      KCC*)
 
10664
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10665
 
 
10666
        # KCC will only create a shared library if the output file
 
10667
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10668
        # to its proper name (with version) after linking.
 
10669
        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'
 
10670
        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'
 
10671
        # Commands to make compiler produce verbose output that lists
 
10672
        # what "hidden" libraries, object files and flags are used when
 
10673
        # linking a shared library.
 
10674
        #
 
10675
        # There doesn't appear to be a way to prevent this compiler from
 
10676
        # explicitly linking system object files so we need to strip them
 
10677
        # from the output so that they don't get included in the library
 
10678
        # dependencies.
 
10679
        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'
 
10680
 
 
10681
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10682
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10683
 
 
10684
        # Archives containing C++ object files must be created using
 
10685
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10686
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10687
        ;;
 
10688
      icpc*)
 
10689
        # Intel C++
 
10690
        with_gnu_ld=yes
 
10691
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10692
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10693
        # earlier do not add the objects themselves.
 
10694
        case `$CC -V 2>&1` in
 
10695
        *"Version 7."*)
 
10696
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10697
          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'
 
10698
          ;;
 
10699
        *)  # Version 8.0 or newer
 
10700
          tmp_idyn=
 
10701
          case $host_cpu in
 
10702
            ia64*) tmp_idyn=' -i_dynamic';;
 
10703
          esac
 
10704
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10705
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10706
          ;;
 
10707
        esac
 
10708
        archive_cmds_need_lc_CXX=no
 
10709
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10710
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10711
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10712
        ;;
 
10713
      pgCC*)
 
10714
        # Portland Group C++ compiler
 
10715
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10716
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
10717
 
 
10718
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10719
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10720
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
10721
        ;;
 
10722
      cxx*)
 
10723
        # Compaq C++
 
10724
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10725
        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'
 
10726
 
 
10727
        runpath_var=LD_RUN_PATH
 
10728
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10729
        hardcode_libdir_separator_CXX=:
 
10730
 
 
10731
        # Commands to make compiler produce verbose output that lists
 
10732
        # what "hidden" libraries, object files and flags are used when
 
10733
        # linking a shared library.
 
10734
        #
 
10735
        # There doesn't appear to be a way to prevent this compiler from
 
10736
        # explicitly linking system object files so we need to strip them
 
10737
        # from the output so that they don't get included in the library
 
10738
        # dependencies.
 
10739
        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'
 
10740
        ;;
 
10741
    esac
 
10742
    ;;
 
10743
  lynxos*)
 
10744
    # FIXME: insert proper C++ library support
 
10745
    ld_shlibs_CXX=no
 
10746
    ;;
 
10747
  m88k*)
 
10748
    # FIXME: insert proper C++ library support
 
10749
    ld_shlibs_CXX=no
 
10750
    ;;
 
10751
  mvs*)
 
10752
    case $cc_basename in
 
10753
      cxx*)
 
10754
        # FIXME: insert proper C++ library support
 
10755
        ld_shlibs_CXX=no
 
10756
        ;;
 
10757
      *)
 
10758
        # FIXME: insert proper C++ library support
 
10759
        ld_shlibs_CXX=no
 
10760
        ;;
 
10761
    esac
 
10762
    ;;
 
10763
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10764
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10765
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10766
      wlarc=
 
10767
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10768
      hardcode_direct_CXX=yes
 
10769
      hardcode_shlibpath_var_CXX=no
 
10770
    fi
 
10771
    # Workaround some broken pre-1.5 toolchains
 
10772
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10773
    ;;
 
10774
  openbsd2*)
 
10775
    # C++ shared libraries are fairly broken
 
10776
    ld_shlibs_CXX=no
 
10777
    ;;
 
10778
  openbsd*)
 
10779
    hardcode_direct_CXX=yes
 
10780
    hardcode_shlibpath_var_CXX=no
 
10781
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10782
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10783
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10784
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10785
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10786
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10787
    fi
 
10788
    output_verbose_link_cmd='echo'
 
10789
    ;;
 
10790
  osf3*)
 
10791
    case $cc_basename in
 
10792
      KCC*)
 
10793
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10794
 
 
10795
        # KCC will only create a shared library if the output file
 
10796
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10797
        # to its proper name (with version) after linking.
 
10798
        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'
 
10799
 
 
10800
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10801
        hardcode_libdir_separator_CXX=:
 
10802
 
 
10803
        # Archives containing C++ object files must be created using
 
10804
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10805
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10806
 
 
10807
        ;;
 
10808
      RCC*)
 
10809
        # Rational C++ 2.4.1
 
10810
        # FIXME: insert proper C++ library support
 
10811
        ld_shlibs_CXX=no
 
10812
        ;;
 
10813
      cxx*)
 
10814
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10815
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10816
 
 
10817
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10818
        hardcode_libdir_separator_CXX=:
 
10819
 
 
10820
        # Commands to make compiler produce verbose output that lists
 
10821
        # what "hidden" libraries, object files and flags are used when
 
10822
        # linking a shared library.
 
10823
        #
 
10824
        # There doesn't appear to be a way to prevent this compiler from
 
10825
        # explicitly linking system object files so we need to strip them
 
10826
        # from the output so that they don't get included in the library
 
10827
        # dependencies.
 
10828
        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'
 
10829
        ;;
 
10830
      *)
 
10831
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10832
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10833
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10834
 
 
10835
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10836
          hardcode_libdir_separator_CXX=:
 
10837
 
 
10838
          # Commands to make compiler produce verbose output that lists
 
10839
          # what "hidden" libraries, object files and flags are used when
 
10840
          # linking a shared library.
 
10841
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10842
 
 
10843
        else
 
10844
          # FIXME: insert proper C++ library support
 
10845
          ld_shlibs_CXX=no
 
10846
        fi
 
10847
        ;;
 
10848
    esac
 
10849
    ;;
 
10850
  osf4* | osf5*)
 
10851
    case $cc_basename in
 
10852
      KCC*)
 
10853
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10854
 
 
10855
        # KCC will only create a shared library if the output file
 
10856
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10857
        # to its proper name (with version) after linking.
 
10858
        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'
 
10859
 
 
10860
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10861
        hardcode_libdir_separator_CXX=:
 
10862
 
 
10863
        # Archives containing C++ object files must be created using
 
10864
        # the KAI C++ compiler.
 
10865
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10866
        ;;
 
10867
      RCC*)
 
10868
        # Rational C++ 2.4.1
 
10869
        # FIXME: insert proper C++ library support
 
10870
        ld_shlibs_CXX=no
 
10871
        ;;
 
10872
      cxx*)
 
10873
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10874
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10875
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10876
          echo "-hidden">> $lib.exp~
 
10877
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
10878
          $rm $lib.exp'
 
10879
 
 
10880
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10881
        hardcode_libdir_separator_CXX=:
 
10882
 
 
10883
        # Commands to make compiler produce verbose output that lists
 
10884
        # what "hidden" libraries, object files and flags are used when
 
10885
        # linking a shared library.
 
10886
        #
 
10887
        # There doesn't appear to be a way to prevent this compiler from
 
10888
        # explicitly linking system object files so we need to strip them
 
10889
        # from the output so that they don't get included in the library
 
10890
        # dependencies.
 
10891
        output_verbose_link_cmd='templist=`$CC -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'
 
10892
        ;;
 
10893
      *)
 
10894
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10895
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10896
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10897
 
 
10898
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10899
          hardcode_libdir_separator_CXX=:
 
10900
 
 
10901
          # Commands to make compiler produce verbose output that lists
 
10902
          # what "hidden" libraries, object files and flags are used when
 
10903
          # linking a shared library.
 
10904
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10905
 
 
10906
        else
 
10907
          # FIXME: insert proper C++ library support
 
10908
          ld_shlibs_CXX=no
 
10909
        fi
 
10910
        ;;
 
10911
    esac
 
10912
    ;;
 
10913
  psos*)
 
10914
    # FIXME: insert proper C++ library support
 
10915
    ld_shlibs_CXX=no
 
10916
    ;;
 
10917
  sunos4*)
 
10918
    case $cc_basename in
 
10919
      CC*)
 
10920
        # Sun C++ 4.x
 
10921
        # FIXME: insert proper C++ library support
 
10922
        ld_shlibs_CXX=no
 
10923
        ;;
 
10924
      lcc*)
 
10925
        # Lucid
 
10926
        # FIXME: insert proper C++ library support
 
10927
        ld_shlibs_CXX=no
 
10928
        ;;
 
10929
      *)
 
10930
        # FIXME: insert proper C++ library support
 
10931
        ld_shlibs_CXX=no
 
10932
        ;;
 
10933
    esac
 
10934
    ;;
 
10935
  solaris*)
 
10936
    case $cc_basename in
 
10937
      CC*)
 
10938
        # Sun C++ 4.2, 5.x and Centerline C++
 
10939
        archive_cmds_need_lc_CXX=yes
 
10940
        no_undefined_flag_CXX=' -zdefs'
 
10941
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10942
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10943
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10944
 
 
10945
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10946
        hardcode_shlibpath_var_CXX=no
 
10947
        case $host_os in
 
10948
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10949
          *)
 
10950
            # The C++ compiler is used as linker so we must use $wl
 
10951
            # flag to pass the commands to the underlying system
 
10952
            # linker. We must also pass each convience library through
 
10953
            # to the system linker between allextract/defaultextract.
 
10954
            # The C++ compiler will combine linker options so we
 
10955
            # cannot just pass the convience library names through
 
10956
            # without $wl.
 
10957
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10958
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
10959
            ;;
 
10960
        esac
 
10961
        link_all_deplibs_CXX=yes
 
10962
 
 
10963
        output_verbose_link_cmd='echo'
 
10964
 
 
10965
        # Archives containing C++ object files must be created using
 
10966
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10967
        # necessary to make sure instantiated templates are included
 
10968
        # in the archive.
 
10969
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10970
        ;;
 
10971
      gcx*)
 
10972
        # Green Hills C++ Compiler
 
10973
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10974
 
 
10975
        # The C++ compiler must be used to create the archive.
 
10976
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10977
        ;;
 
10978
      *)
 
10979
        # GNU C++ compiler with Solaris linker
 
10980
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10981
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10982
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10983
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10984
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10985
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10986
 
 
10987
            # Commands to make compiler produce verbose output that lists
 
10988
            # what "hidden" libraries, object files and flags are used when
 
10989
            # linking a shared library.
 
10990
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10991
          else
 
10992
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10993
            # platform.
 
10994
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10995
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10996
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10997
 
 
10998
            # Commands to make compiler produce verbose output that lists
 
10999
            # what "hidden" libraries, object files and flags are used when
 
11000
            # linking a shared library.
 
11001
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11002
          fi
 
11003
 
 
11004
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11005
        fi
 
11006
        ;;
 
11007
    esac
 
11008
    ;;
 
11009
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11010
    no_undefined_flag_CXX='${wl}-z,text'
 
11011
    archive_cmds_need_lc_CXX=no
 
11012
    hardcode_shlibpath_var_CXX=no
 
11013
    runpath_var='LD_RUN_PATH'
 
11014
 
 
11015
    case $cc_basename in
 
11016
      CC*)
 
11017
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11018
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11019
        ;;
 
11020
      *)
 
11021
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11022
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11023
        ;;
 
11024
    esac
 
11025
    ;;
 
11026
  sysv5* | sco3.2v5* | sco5v6*)
 
11027
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11028
    # link with -lc, and that would cause any symbols used from libc to
 
11029
    # always be unresolved, which means just about no library would
 
11030
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11031
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11032
    # as -z defs.
 
11033
    # For security reasons, it is highly recommended that you always
 
11034
    # use absolute paths for naming shared libraries, and exclude the
 
11035
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11036
    # requires that you compile everything twice, which is a pain.
 
11037
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11038
    # non-empty value in the environment.  Most likely only useful for
 
11039
    # creating official distributions of packages.
 
11040
    # This is a hack until libtool officially supports absolute path
 
11041
    # names for shared libraries.
 
11042
    no_undefined_flag_CXX='${wl}-z,text'
 
11043
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11044
    archive_cmds_need_lc_CXX=no
 
11045
    hardcode_shlibpath_var_CXX=no
 
11046
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11047
    hardcode_libdir_separator_CXX=':'
 
11048
    link_all_deplibs_CXX=yes
 
11049
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11050
    runpath_var='LD_RUN_PATH'
 
11051
 
 
11052
    case $cc_basename in
 
11053
      CC*)
 
11054
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11055
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11056
        ;;
 
11057
      *)
 
11058
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11059
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11060
        ;;
 
11061
    esac
 
11062
    ;;
 
11063
  tandem*)
 
11064
    case $cc_basename in
 
11065
      NCC*)
 
11066
        # NonStop-UX NCC 3.20
 
11067
        # FIXME: insert proper C++ library support
 
11068
        ld_shlibs_CXX=no
 
11069
        ;;
 
11070
      *)
 
11071
        # FIXME: insert proper C++ library support
 
11072
        ld_shlibs_CXX=no
 
11073
        ;;
 
11074
    esac
 
11075
    ;;
 
11076
  vxworks*)
 
11077
    # FIXME: insert proper C++ library support
 
11078
    ld_shlibs_CXX=no
 
11079
    ;;
 
11080
  *)
 
11081
    # FIXME: insert proper C++ library support
 
11082
    ld_shlibs_CXX=no
 
11083
    ;;
 
11084
esac
 
11085
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11086
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11087
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11088
 
 
11089
GCC_CXX="$GXX"
 
11090
LD_CXX="$LD"
 
11091
 
 
11092
 
 
11093
cat > conftest.$ac_ext <<EOF
 
11094
class Foo
 
11095
{
 
11096
public:
 
11097
  Foo (void) { a = 0; }
 
11098
private:
 
11099
  int a;
 
11100
};
 
11101
EOF
 
11102
 
 
11103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11104
  (eval $ac_compile) 2>&5
 
11105
  ac_status=$?
 
11106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11107
  (exit $ac_status); }; then
 
11108
  # Parse the compiler output and extract the necessary
 
11109
  # objects, libraries and library flags.
 
11110
 
 
11111
  # Sentinel used to keep track of whether or not we are before
 
11112
  # the conftest object file.
 
11113
  pre_test_object_deps_done=no
 
11114
 
 
11115
  # The `*' in the case matches for architectures that use `case' in
 
11116
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11117
  # eval without this substitution.
 
11118
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11119
 
 
11120
  for p in `eval $output_verbose_link_cmd`; do
 
11121
    case $p in
 
11122
 
 
11123
    -L* | -R* | -l*)
 
11124
       # Some compilers place space between "-{L,R}" and the path.
 
11125
       # Remove the space.
 
11126
       if test $p = "-L" \
 
11127
          || test $p = "-R"; then
 
11128
         prev=$p
 
11129
         continue
 
11130
       else
 
11131
         prev=
 
11132
       fi
 
11133
 
 
11134
       if test "$pre_test_object_deps_done" = no; then
 
11135
         case $p in
 
11136
         -L* | -R*)
 
11137
           # Internal compiler library paths should come after those
 
11138
           # provided the user.  The postdeps already come after the
 
11139
           # user supplied libs so there is no need to process them.
 
11140
           if test -z "$compiler_lib_search_path_CXX"; then
 
11141
             compiler_lib_search_path_CXX="${prev}${p}"
 
11142
           else
 
11143
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11144
           fi
 
11145
           ;;
 
11146
         # The "-l" case would never come before the object being
 
11147
         # linked, so don't bother handling this case.
 
11148
         esac
 
11149
       else
 
11150
         if test -z "$postdeps_CXX"; then
 
11151
           postdeps_CXX="${prev}${p}"
 
11152
         else
 
11153
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11154
         fi
 
11155
       fi
 
11156
       ;;
 
11157
 
 
11158
    *.$objext)
 
11159
       # This assumes that the test object file only shows up
 
11160
       # once in the compiler output.
 
11161
       if test "$p" = "conftest.$objext"; then
 
11162
         pre_test_object_deps_done=yes
 
11163
         continue
 
11164
       fi
 
11165
 
 
11166
       if test "$pre_test_object_deps_done" = no; then
 
11167
         if test -z "$predep_objects_CXX"; then
 
11168
           predep_objects_CXX="$p"
 
11169
         else
 
11170
           predep_objects_CXX="$predep_objects_CXX $p"
 
11171
         fi
 
11172
       else
 
11173
         if test -z "$postdep_objects_CXX"; then
 
11174
           postdep_objects_CXX="$p"
 
11175
         else
 
11176
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11177
         fi
 
11178
       fi
 
11179
       ;;
 
11180
 
 
11181
    *) ;; # Ignore the rest.
 
11182
 
 
11183
    esac
 
11184
  done
 
11185
 
 
11186
  # Clean up.
 
11187
  rm -f a.out a.exe
 
11188
else
 
11189
  echo "libtool.m4: error: problem compiling CXX test program"
 
11190
fi
 
11191
 
 
11192
$rm -f confest.$objext
 
11193
 
 
11194
# PORTME: override above test on systems where it is broken
 
11195
case $host_os in
 
11196
interix3*)
 
11197
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11198
  # hack all around it, let's just trust "g++" to DTRT.
 
11199
  predep_objects_CXX=
 
11200
  postdep_objects_CXX=
 
11201
  postdeps_CXX=
 
11202
  ;;
 
11203
 
 
11204
solaris*)
 
11205
  case $cc_basename in
 
11206
  CC*)
 
11207
    # Adding this requires a known-good setup of shared libraries for
 
11208
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11209
    # archive will be linked into the output, leading to subtle bugs.
 
11210
    postdeps_CXX='-lCstd -lCrun'
 
11211
    ;;
 
11212
  esac
 
11213
  ;;
 
11214
esac
 
11215
 
 
11216
 
 
11217
case " $postdeps_CXX " in
 
11218
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11219
esac
 
11220
 
 
11221
lt_prog_compiler_wl_CXX=
 
11222
lt_prog_compiler_pic_CXX=
 
11223
lt_prog_compiler_static_CXX=
 
11224
 
 
11225
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11226
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11227
 
 
11228
  # C++ specific cases for pic, static, wl, etc.
 
11229
  if test "$GXX" = yes; then
 
11230
    lt_prog_compiler_wl_CXX='-Wl,'
 
11231
    lt_prog_compiler_static_CXX='-static'
 
11232
 
 
11233
    case $host_os in
 
11234
    aix*)
 
11235
      # All AIX code is PIC.
 
11236
      if test "$host_cpu" = ia64; then
 
11237
        # AIX 5 now supports IA64 processor
 
11238
        lt_prog_compiler_static_CXX='-Bstatic'
 
11239
      fi
 
11240
      ;;
 
11241
    amigaos*)
 
11242
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11243
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11244
      # like `-m68040'.
 
11245
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11246
      ;;
 
11247
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11248
      # PIC is the default for these OSes.
 
11249
      ;;
 
11250
    mingw* | os2* | pw32*)
 
11251
      # This hack is so that the source file can tell whether it is being
 
11252
      # built for inclusion in a dll (and should export symbols for example).
 
11253
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11254
      ;;
 
11255
    darwin* | rhapsody*)
 
11256
      # PIC is the default on this platform
 
11257
      # Common symbols not allowed in MH_DYLIB files
 
11258
      lt_prog_compiler_pic_CXX='-fno-common'
 
11259
      ;;
 
11260
    *djgpp*)
 
11261
      # DJGPP does not support shared libraries at all
 
11262
      lt_prog_compiler_pic_CXX=
 
11263
      ;;
 
11264
    interix3*)
 
11265
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11266
      # Instead, we relocate shared libraries at runtime.
 
11267
      ;;
 
11268
    sysv4*MP*)
 
11269
      if test -d /usr/nec; then
 
11270
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11271
      fi
 
11272
      ;;
 
11273
    hpux*)
 
11274
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11275
      # not for PA HP-UX.
 
11276
      case $host_cpu in
 
11277
      hppa*64*|ia64*)
 
11278
        ;;
 
11279
      *)
 
11280
        lt_prog_compiler_pic_CXX='-fPIC'
 
11281
        ;;
 
11282
      esac
 
11283
      ;;
 
11284
    *)
 
11285
      lt_prog_compiler_pic_CXX='-fPIC'
 
11286
      ;;
 
11287
    esac
 
11288
  else
 
11289
    case $host_os in
 
11290
      aix4* | aix5*)
 
11291
        # All AIX code is PIC.
 
11292
        if test "$host_cpu" = ia64; then
 
11293
          # AIX 5 now supports IA64 processor
 
11294
          lt_prog_compiler_static_CXX='-Bstatic'
 
11295
        else
 
11296
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11297
        fi
 
11298
        ;;
 
11299
      chorus*)
 
11300
        case $cc_basename in
 
11301
        cxch68*)
 
11302
          # Green Hills C++ Compiler
 
11303
          # _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"
 
11304
          ;;
 
11305
        esac
 
11306
        ;;
 
11307
       darwin*)
 
11308
         # PIC is the default on this platform
 
11309
         # Common symbols not allowed in MH_DYLIB files
 
11310
         case $cc_basename in
 
11311
           xlc*)
 
11312
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11313
           lt_prog_compiler_wl_CXX='-Wl,'
 
11314
           ;;
 
11315
         esac
 
11316
       ;;
 
11317
      dgux*)
 
11318
        case $cc_basename in
 
11319
          ec++*)
 
11320
            lt_prog_compiler_pic_CXX='-KPIC'
 
11321
            ;;
 
11322
          ghcx*)
 
11323
            # Green Hills C++ Compiler
 
11324
            lt_prog_compiler_pic_CXX='-pic'
 
11325
            ;;
 
11326
          *)
 
11327
            ;;
 
11328
        esac
 
11329
        ;;
 
11330
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
11331
        # FreeBSD uses GNU C++
 
11332
        ;;
 
11333
      hpux9* | hpux10* | hpux11*)
 
11334
        case $cc_basename in
 
11335
          CC*)
 
11336
            lt_prog_compiler_wl_CXX='-Wl,'
 
11337
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11338
            if test "$host_cpu" != ia64; then
 
11339
              lt_prog_compiler_pic_CXX='+Z'
 
11340
            fi
 
11341
            ;;
 
11342
          aCC*)
 
11343
            lt_prog_compiler_wl_CXX='-Wl,'
 
11344
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11345
            case $host_cpu in
 
11346
            hppa*64*|ia64*)
 
11347
              # +Z the default
 
11348
              ;;
 
11349
            *)
 
11350
              lt_prog_compiler_pic_CXX='+Z'
 
11351
              ;;
 
11352
            esac
 
11353
            ;;
 
11354
          *)
 
11355
            ;;
 
11356
        esac
 
11357
        ;;
 
11358
      interix*)
 
11359
        # This is c89, which is MS Visual C++ (no shared libs)
 
11360
        # Anyone wants to do a port?
 
11361
        ;;
 
11362
      irix5* | irix6* | nonstopux*)
 
11363
        case $cc_basename in
 
11364
          CC*)
 
11365
            lt_prog_compiler_wl_CXX='-Wl,'
 
11366
            lt_prog_compiler_static_CXX='-non_shared'
 
11367
            # CC pic flag -KPIC is the default.
 
11368
            ;;
 
11369
          *)
 
11370
            ;;
 
11371
        esac
 
11372
        ;;
 
11373
      linux*)
 
11374
        case $cc_basename in
 
11375
          KCC*)
 
11376
            # KAI C++ Compiler
 
11377
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11378
            lt_prog_compiler_pic_CXX='-fPIC'
 
11379
            ;;
 
11380
          icpc* | ecpc*)
 
11381
            # Intel C++
 
11382
            lt_prog_compiler_wl_CXX='-Wl,'
 
11383
            lt_prog_compiler_pic_CXX='-KPIC'
 
11384
            lt_prog_compiler_static_CXX='-static'
 
11385
            ;;
 
11386
          pgCC*)
 
11387
            # Portland Group C++ compiler.
 
11388
            lt_prog_compiler_wl_CXX='-Wl,'
 
11389
            lt_prog_compiler_pic_CXX='-fpic'
 
11390
            lt_prog_compiler_static_CXX='-Bstatic'
 
11391
            ;;
 
11392
          cxx*)
 
11393
            # Compaq C++
 
11394
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11395
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11396
            lt_prog_compiler_pic_CXX=
 
11397
            lt_prog_compiler_static_CXX='-non_shared'
 
11398
            ;;
 
11399
          *)
 
11400
            ;;
 
11401
        esac
 
11402
        ;;
 
11403
      lynxos*)
 
11404
        ;;
 
11405
      m88k*)
 
11406
        ;;
 
11407
      mvs*)
 
11408
        case $cc_basename in
 
11409
          cxx*)
 
11410
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11411
            ;;
 
11412
          *)
 
11413
            ;;
 
11414
        esac
 
11415
        ;;
 
11416
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
11417
        ;;
 
11418
      osf3* | osf4* | osf5*)
 
11419
        case $cc_basename in
 
11420
          KCC*)
 
11421
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11422
            ;;
 
11423
          RCC*)
 
11424
            # Rational C++ 2.4.1
 
11425
            lt_prog_compiler_pic_CXX='-pic'
 
11426
            ;;
 
11427
          cxx*)
 
11428
            # Digital/Compaq C++
 
11429
            lt_prog_compiler_wl_CXX='-Wl,'
 
11430
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11431
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11432
            lt_prog_compiler_pic_CXX=
 
11433
            lt_prog_compiler_static_CXX='-non_shared'
 
11434
            ;;
 
11435
          *)
 
11436
            ;;
 
11437
        esac
 
11438
        ;;
 
11439
      psos*)
 
11440
        ;;
 
11441
      solaris*)
 
11442
        case $cc_basename in
 
11443
          CC*)
 
11444
            # Sun C++ 4.2, 5.x and Centerline C++
 
11445
            lt_prog_compiler_pic_CXX='-KPIC'
 
11446
            lt_prog_compiler_static_CXX='-Bstatic'
 
11447
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11448
            ;;
 
11449
          gcx*)
 
11450
            # Green Hills C++ Compiler
 
11451
            lt_prog_compiler_pic_CXX='-PIC'
 
11452
            ;;
 
11453
          *)
 
11454
            ;;
 
11455
        esac
 
11456
        ;;
 
11457
      sunos4*)
 
11458
        case $cc_basename in
 
11459
          CC*)
 
11460
            # Sun C++ 4.x
 
11461
            lt_prog_compiler_pic_CXX='-pic'
 
11462
            lt_prog_compiler_static_CXX='-Bstatic'
 
11463
            ;;
 
11464
          lcc*)
 
11465
            # Lucid
 
11466
            lt_prog_compiler_pic_CXX='-pic'
 
11467
            ;;
 
11468
          *)
 
11469
            ;;
 
11470
        esac
 
11471
        ;;
 
11472
      tandem*)
 
11473
        case $cc_basename in
 
11474
          NCC*)
 
11475
            # NonStop-UX NCC 3.20
 
11476
            lt_prog_compiler_pic_CXX='-KPIC'
 
11477
            ;;
 
11478
          *)
 
11479
            ;;
 
11480
        esac
 
11481
        ;;
 
11482
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11483
        case $cc_basename in
 
11484
          CC*)
 
11485
            lt_prog_compiler_wl_CXX='-Wl,'
 
11486
            lt_prog_compiler_pic_CXX='-KPIC'
 
11487
            lt_prog_compiler_static_CXX='-Bstatic'
 
11488
            ;;
 
11489
        esac
 
11490
        ;;
 
11491
      vxworks*)
 
11492
        ;;
 
11493
      *)
 
11494
        lt_prog_compiler_can_build_shared_CXX=no
 
11495
        ;;
 
11496
    esac
 
11497
  fi
 
11498
 
 
11499
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11500
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11501
 
 
11502
#
 
11503
# Check to make sure the PIC flag actually works.
 
11504
#
 
11505
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11506
 
 
11507
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11508
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11509
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11511
else
 
11512
  lt_prog_compiler_pic_works_CXX=no
 
11513
  ac_outfile=conftest.$ac_objext
 
11514
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11515
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11516
   # Insert the option either (1) after the last *FLAGS variable, or
 
11517
   # (2) before a word containing "conftest.", or (3) at the end.
 
11518
   # Note that $ac_compile itself does not contain backslashes and begins
 
11519
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11520
   # The option is referenced via a variable to avoid confusing sed.
 
11521
   lt_compile=`echo "$ac_compile" | $SED \
 
11522
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11523
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11524
   -e 's:$: $lt_compiler_flag:'`
 
11525
   (eval echo "\"\$as_me:11525: $lt_compile\"" >&5)
 
11526
   (eval "$lt_compile" 2>conftest.err)
 
11527
   ac_status=$?
 
11528
   cat conftest.err >&5
 
11529
   echo "$as_me:11529: \$? = $ac_status" >&5
 
11530
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11531
     # The compiler can only warn and ignore the option if not recognized
 
11532
     # So say no if there are warnings other than the usual output.
 
11533
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11534
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11535
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
11536
       lt_prog_compiler_pic_works_CXX=yes
 
11537
     fi
 
11538
   fi
 
11539
   $rm conftest*
 
11540
 
 
11541
fi
 
11542
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11543
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11544
 
 
11545
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11546
    case $lt_prog_compiler_pic_CXX in
 
11547
     "" | " "*) ;;
 
11548
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11549
     esac
 
11550
else
 
11551
    lt_prog_compiler_pic_CXX=
 
11552
     lt_prog_compiler_can_build_shared_CXX=no
 
11553
fi
 
11554
 
 
11555
fi
 
11556
case $host_os in
 
11557
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11558
  *djgpp*)
 
11559
    lt_prog_compiler_pic_CXX=
 
11560
    ;;
 
11561
  *)
 
11562
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11563
    ;;
 
11564
esac
 
11565
 
 
11566
#
 
11567
# Check to make sure the static flag actually works.
 
11568
#
 
11569
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11570
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11571
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
11572
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11573
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11574
else
 
11575
  lt_prog_compiler_static_works_CXX=no
 
11576
   save_LDFLAGS="$LDFLAGS"
 
11577
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
11578
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11579
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
11580
     # The linker can only warn and ignore the option if not recognized
 
11581
     # So say no if there are warnings
 
11582
     if test -s conftest.err; then
 
11583
       # Append any errors to the config.log.
 
11584
       cat conftest.err 1>&5
 
11585
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11586
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11587
       if diff conftest.exp conftest.er2 >/dev/null; then
 
11588
         lt_prog_compiler_static_works_CXX=yes
 
11589
       fi
 
11590
     else
 
11591
       lt_prog_compiler_static_works_CXX=yes
 
11592
     fi
 
11593
   fi
 
11594
   $rm conftest*
 
11595
   LDFLAGS="$save_LDFLAGS"
 
11596
 
 
11597
fi
 
11598
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
11599
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
11600
 
 
11601
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11602
    :
 
11603
else
 
11604
    lt_prog_compiler_static_CXX=
 
11605
fi
 
11606
 
 
11607
 
 
11608
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11609
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11610
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11611
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11612
else
 
11613
  lt_cv_prog_compiler_c_o_CXX=no
 
11614
   $rm -r conftest 2>/dev/null
 
11615
   mkdir conftest
 
11616
   cd conftest
 
11617
   mkdir out
 
11618
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11619
 
 
11620
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11621
   # Insert the option either (1) after the last *FLAGS variable, or
 
11622
   # (2) before a word containing "conftest.", or (3) at the end.
 
11623
   # Note that $ac_compile itself does not contain backslashes and begins
 
11624
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11625
   lt_compile=`echo "$ac_compile" | $SED \
 
11626
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11627
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11628
   -e 's:$: $lt_compiler_flag:'`
 
11629
   (eval echo "\"\$as_me:11629: $lt_compile\"" >&5)
 
11630
   (eval "$lt_compile" 2>out/conftest.err)
 
11631
   ac_status=$?
 
11632
   cat out/conftest.err >&5
 
11633
   echo "$as_me:11633: \$? = $ac_status" >&5
 
11634
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11635
   then
 
11636
     # The compiler can only warn and ignore the option if not recognized
 
11637
     # So say no if there are warnings
 
11638
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
11639
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
11640
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11641
       lt_cv_prog_compiler_c_o_CXX=yes
 
11642
     fi
 
11643
   fi
 
11644
   chmod u+w . 2>&5
 
11645
   $rm conftest*
 
11646
   # SGI C++ compiler will create directory out/ii_files/ for
 
11647
   # template instantiation
 
11648
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11649
   $rm out/* && rmdir out
 
11650
   cd ..
 
11651
   rmdir conftest
 
11652
   $rm conftest*
 
11653
 
 
11654
fi
 
11655
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11656
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11657
 
 
11658
 
 
11659
hard_links="nottested"
 
11660
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11661
  # do not overwrite the value of need_locks provided by the user
 
11662
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11663
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11664
  hard_links=yes
 
11665
  $rm conftest*
 
11666
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11667
  touch conftest.a
 
11668
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11669
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11670
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11671
echo "${ECHO_T}$hard_links" >&6
 
11672
  if test "$hard_links" = no; then
 
11673
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11674
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11675
    need_locks=warn
 
11676
  fi
 
11677
else
 
11678
  need_locks=no
 
11679
fi
 
11680
 
 
11681
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11682
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11683
 
 
11684
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11685
  case $host_os in
 
11686
  aix4* | aix5*)
 
11687
    # If we're using GNU nm, then we don't want the "-C" option.
 
11688
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11689
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11690
      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'
 
11691
    else
 
11692
      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'
 
11693
    fi
 
11694
    ;;
 
11695
  pw32*)
 
11696
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11697
  ;;
 
11698
  cygwin* | mingw*)
 
11699
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11700
  ;;
 
11701
  kfreebsd*-gnu)
 
11702
    link_all_deplibs_CXX=no
 
11703
  ;;
 
11704
  linux*)
 
11705
    link_all_deplibs_CXX=no
 
11706
  ;;
 
11707
  *)
 
11708
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11709
  ;;
 
11710
  esac
 
11711
 
 
11712
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11713
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11714
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11715
 
 
11716
#
 
11717
# Do we need to explicitly link libc?
 
11718
#
 
11719
case "x$archive_cmds_need_lc_CXX" in
 
11720
x|xyes)
 
11721
  # Assume -lc should be added
 
11722
  archive_cmds_need_lc_CXX=yes
 
11723
 
 
11724
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11725
    case $archive_cmds_CXX in
 
11726
    *'~'*)
 
11727
      # FIXME: we may have to deal with multi-command sequences.
 
11728
      ;;
 
11729
    '$CC '*)
 
11730
      # Test whether the compiler implicitly links with -lc since on some
 
11731
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11732
      # to ld, don't add -lc before -lgcc.
 
11733
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11734
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11735
      $rm conftest*
 
11736
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11737
 
 
11738
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11739
  (eval $ac_compile) 2>&5
 
11740
  ac_status=$?
 
11741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11742
  (exit $ac_status); } 2>conftest.err; then
 
11743
        soname=conftest
 
11744
        lib=conftest
 
11745
        libobjs=conftest.$ac_objext
 
11746
        deplibs=
 
11747
        wl=$lt_prog_compiler_wl_CXX
 
11748
        pic_flag=$lt_prog_compiler_pic_CXX
 
11749
        compiler_flags=-v
 
11750
        linker_flags=-v
 
11751
        verstring=
 
11752
        output_objdir=.
 
11753
        libname=conftest
 
11754
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11755
        allow_undefined_flag_CXX=
 
11756
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11757
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11758
  ac_status=$?
 
11759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11760
  (exit $ac_status); }
 
11761
        then
 
11762
          archive_cmds_need_lc_CXX=no
 
11763
        else
 
11764
          archive_cmds_need_lc_CXX=yes
 
11765
        fi
 
11766
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11767
      else
 
11768
        cat conftest.err 1>&5
 
11769
      fi
 
11770
      $rm conftest*
 
11771
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11772
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11773
      ;;
 
11774
    esac
 
11775
  fi
 
11776
  ;;
 
11777
esac
 
11778
 
 
11779
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11780
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11781
library_names_spec=
 
11782
libname_spec='lib$name'
 
11783
soname_spec=
 
11784
shrext_cmds=".so"
 
11785
postinstall_cmds=
 
11786
postuninstall_cmds=
 
11787
finish_cmds=
 
11788
finish_eval=
 
11789
shlibpath_var=
 
11790
shlibpath_overrides_runpath=unknown
 
11791
version_type=none
 
11792
dynamic_linker="$host_os ld.so"
 
11793
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11794
if test "$GCC" = yes; then
 
11795
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11796
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11797
    # if the path contains ";" then we assume it to be the separator
 
11798
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11799
    # assumed that no part of a normal pathname contains ";" but that should
 
11800
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11801
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11802
  else
 
11803
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11804
  fi
 
11805
else
 
11806
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11807
fi
 
11808
need_lib_prefix=unknown
 
11809
hardcode_into_libs=no
 
11810
 
 
11811
# when you set need_version to no, make sure it does not cause -set_version
 
11812
# flags to be left without arguments
 
11813
need_version=unknown
 
11814
 
 
11815
case $host_os in
 
11816
aix3*)
 
11817
  version_type=linux
 
11818
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11819
  shlibpath_var=LIBPATH
 
11820
 
 
11821
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11822
  soname_spec='${libname}${release}${shared_ext}$major'
 
11823
  ;;
 
11824
 
 
11825
aix4* | aix5*)
 
11826
  version_type=linux
 
11827
  need_lib_prefix=no
 
11828
  need_version=no
 
11829
  hardcode_into_libs=yes
 
11830
  if test "$host_cpu" = ia64; then
 
11831
    # AIX 5 supports IA64
 
11832
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11833
    shlibpath_var=LD_LIBRARY_PATH
 
11834
  else
 
11835
    # With GCC up to 2.95.x, collect2 would create an import file
 
11836
    # for dependence libraries.  The import file would start with
 
11837
    # the line `#! .'.  This would cause the generated library to
 
11838
    # depend on `.', always an invalid library.  This was fixed in
 
11839
    # development snapshots of GCC prior to 3.0.
 
11840
    case $host_os in
 
11841
      aix4 | aix4.[01] | aix4.[01].*)
 
11842
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11843
           echo ' yes '
 
11844
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11845
        :
 
11846
      else
 
11847
        can_build_shared=no
 
11848
      fi
 
11849
      ;;
 
11850
    esac
 
11851
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11852
    # soname into executable. Probably we can add versioning support to
 
11853
    # collect2, so additional links can be useful in future.
 
11854
    if test "$aix_use_runtimelinking" = yes; then
 
11855
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11856
      # instead of lib<name>.a to let people know that these are not
 
11857
      # typical AIX shared libraries.
 
11858
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11859
    else
 
11860
      # We preserve .a as extension for shared libraries through AIX4.2
 
11861
      # and later when we are not doing run time linking.
 
11862
      library_names_spec='${libname}${release}.a $libname.a'
 
11863
      soname_spec='${libname}${release}${shared_ext}$major'
 
11864
    fi
 
11865
    shlibpath_var=LIBPATH
 
11866
  fi
 
11867
  ;;
 
11868
 
 
11869
amigaos*)
 
11870
  library_names_spec='$libname.ixlibrary $libname.a'
 
11871
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11872
  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'
 
11873
  ;;
 
11874
 
 
11875
beos*)
 
11876
  library_names_spec='${libname}${shared_ext}'
 
11877
  dynamic_linker="$host_os ld.so"
 
11878
  shlibpath_var=LIBRARY_PATH
 
11879
  ;;
 
11880
 
 
11881
bsdi[45]*)
 
11882
  version_type=linux
 
11883
  need_version=no
 
11884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11885
  soname_spec='${libname}${release}${shared_ext}$major'
 
11886
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11887
  shlibpath_var=LD_LIBRARY_PATH
 
11888
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11889
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11890
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11891
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11892
  # libtool to hard-code these into programs
 
11893
  ;;
 
11894
 
 
11895
cygwin* | mingw* | pw32*)
 
11896
  version_type=windows
 
11897
  shrext_cmds=".dll"
 
11898
  need_version=no
 
11899
  need_lib_prefix=no
 
11900
 
 
11901
  case $GCC,$host_os in
 
11902
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11903
    library_names_spec='$libname.dll.a'
 
11904
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11905
    postinstall_cmds='base_file=`basename \${file}`~
 
11906
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11907
      dldir=$destdir/`dirname \$dlpath`~
 
11908
      test -d \$dldir || mkdir -p \$dldir~
 
11909
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11910
      chmod a+x \$dldir/$dlname'
 
11911
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11912
      dlpath=$dir/\$dldll~
 
11913
       $rm \$dlpath'
 
11914
    shlibpath_overrides_runpath=yes
 
11915
 
 
11916
    case $host_os in
 
11917
    cygwin*)
 
11918
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11919
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11920
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11921
      ;;
 
11922
    mingw*)
 
11923
      # MinGW DLLs use traditional 'lib' prefix
 
11924
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11925
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11926
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11927
        # It is most probably a Windows format PATH printed by
 
11928
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11929
        # path with ; separators, and with drive letters. We can handle the
 
11930
        # drive letters (cygwin fileutils understands them), so leave them,
 
11931
        # especially as we might pass files found there to a mingw objdump,
 
11932
        # which wouldn't understand a cygwinified path. Ahh.
 
11933
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11934
      else
 
11935
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11936
      fi
 
11937
      ;;
 
11938
    pw32*)
 
11939
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11940
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11941
      ;;
 
11942
    esac
 
11943
    ;;
 
11944
 
 
11945
  *)
 
11946
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11947
    ;;
 
11948
  esac
 
11949
  dynamic_linker='Win32 ld.exe'
 
11950
  # FIXME: first we should search . and the directory the executable is in
 
11951
  shlibpath_var=PATH
 
11952
  ;;
 
11953
 
 
11954
darwin* | rhapsody*)
 
11955
  dynamic_linker="$host_os dyld"
 
11956
  version_type=darwin
 
11957
  need_lib_prefix=no
 
11958
  need_version=no
 
11959
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11960
  soname_spec='${libname}${release}${major}$shared_ext'
 
11961
  shlibpath_overrides_runpath=yes
 
11962
  shlibpath_var=DYLD_LIBRARY_PATH
 
11963
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11964
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11965
  if test "$GCC" = yes; then
 
11966
    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"`
 
11967
  else
 
11968
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11969
  fi
 
11970
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11971
  ;;
 
11972
 
 
11973
dgux*)
 
11974
  version_type=linux
 
11975
  need_lib_prefix=no
 
11976
  need_version=no
 
11977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11978
  soname_spec='${libname}${release}${shared_ext}$major'
 
11979
  shlibpath_var=LD_LIBRARY_PATH
 
11980
  ;;
 
11981
 
 
11982
freebsd1*)
 
11983
  dynamic_linker=no
 
11984
  ;;
 
11985
 
 
11986
kfreebsd*-gnu)
 
11987
  version_type=linux
 
11988
  need_lib_prefix=no
 
11989
  need_version=no
 
11990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11991
  soname_spec='${libname}${release}${shared_ext}$major'
 
11992
  shlibpath_var=LD_LIBRARY_PATH
 
11993
  shlibpath_overrides_runpath=no
 
11994
  hardcode_into_libs=yes
 
11995
  dynamic_linker='GNU ld.so'
 
11996
  ;;
 
11997
 
 
11998
freebsd* | dragonfly*)
 
11999
  # DragonFly does not have aout.  When/if they implement a new
 
12000
  # versioning mechanism, adjust this.
 
12001
  if test -x /usr/bin/objformat; then
 
12002
    objformat=`/usr/bin/objformat`
 
12003
  else
 
12004
    case $host_os in
 
12005
    freebsd[123]*) objformat=aout ;;
 
12006
    *) objformat=elf ;;
 
12007
    esac
 
12008
  fi
 
12009
  version_type=freebsd-$objformat
 
12010
  case $version_type in
 
12011
    freebsd-elf*)
 
12012
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12013
      need_version=no
 
12014
      need_lib_prefix=no
 
12015
      ;;
 
12016
    freebsd-*)
 
12017
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12018
      need_version=yes
 
12019
      ;;
 
12020
  esac
 
12021
  shlibpath_var=LD_LIBRARY_PATH
 
12022
  case $host_os in
 
12023
  freebsd2*)
 
12024
    shlibpath_overrides_runpath=yes
 
12025
    ;;
 
12026
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12027
    shlibpath_overrides_runpath=yes
 
12028
    hardcode_into_libs=yes
 
12029
    ;;
 
12030
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12031
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12032
    shlibpath_overrides_runpath=no
 
12033
    hardcode_into_libs=yes
 
12034
    ;;
 
12035
  freebsd*) # from 4.6 on
 
12036
    shlibpath_overrides_runpath=yes
 
12037
    hardcode_into_libs=yes
 
12038
    ;;
 
12039
  esac
 
12040
  ;;
 
12041
 
 
12042
gnu*)
 
12043
  version_type=linux
 
12044
  need_lib_prefix=no
 
12045
  need_version=no
 
12046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12047
  soname_spec='${libname}${release}${shared_ext}$major'
 
12048
  shlibpath_var=LD_LIBRARY_PATH
 
12049
  hardcode_into_libs=yes
 
12050
  ;;
 
12051
 
 
12052
hpux9* | hpux10* | hpux11*)
 
12053
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12054
  # link against other versions.
 
12055
  version_type=sunos
 
12056
  need_lib_prefix=no
 
12057
  need_version=no
 
12058
  case $host_cpu in
 
12059
  ia64*)
 
12060
    shrext_cmds='.so'
 
12061
    hardcode_into_libs=yes
 
12062
    dynamic_linker="$host_os dld.so"
 
12063
    shlibpath_var=LD_LIBRARY_PATH
 
12064
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12065
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12066
    soname_spec='${libname}${release}${shared_ext}$major'
 
12067
    if test "X$HPUX_IA64_MODE" = X32; then
 
12068
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12069
    else
 
12070
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12071
    fi
 
12072
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12073
    ;;
 
12074
   hppa*64*)
 
12075
     shrext_cmds='.sl'
 
12076
     hardcode_into_libs=yes
 
12077
     dynamic_linker="$host_os dld.sl"
 
12078
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12079
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12080
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12081
     soname_spec='${libname}${release}${shared_ext}$major'
 
12082
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12083
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12084
     ;;
 
12085
   *)
 
12086
    shrext_cmds='.sl'
 
12087
    dynamic_linker="$host_os dld.sl"
 
12088
    shlibpath_var=SHLIB_PATH
 
12089
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12090
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12091
    soname_spec='${libname}${release}${shared_ext}$major'
 
12092
    ;;
 
12093
  esac
 
12094
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12095
  postinstall_cmds='chmod 555 $lib'
 
12096
  ;;
 
12097
 
 
12098
interix3*)
 
12099
  version_type=linux
 
12100
  need_lib_prefix=no
 
12101
  need_version=no
 
12102
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12103
  soname_spec='${libname}${release}${shared_ext}$major'
 
12104
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12105
  shlibpath_var=LD_LIBRARY_PATH
 
12106
  shlibpath_overrides_runpath=no
 
12107
  hardcode_into_libs=yes
 
12108
  ;;
 
12109
 
 
12110
irix5* | irix6* | nonstopux*)
 
12111
  case $host_os in
 
12112
    nonstopux*) version_type=nonstopux ;;
 
12113
    *)
 
12114
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12115
                version_type=linux
 
12116
        else
 
12117
                version_type=irix
 
12118
        fi ;;
 
12119
  esac
 
12120
  need_lib_prefix=no
 
12121
  need_version=no
 
12122
  soname_spec='${libname}${release}${shared_ext}$major'
 
12123
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12124
  case $host_os in
 
12125
  irix5* | nonstopux*)
 
12126
    libsuff= shlibsuff=
 
12127
    ;;
 
12128
  *)
 
12129
    case $LD in # libtool.m4 will add one of these switches to LD
 
12130
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12131
      libsuff= shlibsuff= libmagic=32-bit;;
 
12132
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12133
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12134
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12135
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12136
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12137
    esac
 
12138
    ;;
 
12139
  esac
 
12140
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12141
  shlibpath_overrides_runpath=no
 
12142
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12143
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12144
  hardcode_into_libs=yes
 
12145
  ;;
 
12146
 
 
12147
# No shared lib support for Linux oldld, aout, or coff.
 
12148
linux*oldld* | linux*aout* | linux*coff*)
 
12149
  dynamic_linker=no
 
12150
  ;;
 
12151
 
 
12152
# This must be Linux ELF.
 
12153
linux*)
 
12154
  version_type=linux
 
12155
  need_lib_prefix=no
 
12156
  need_version=no
 
12157
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12158
  soname_spec='${libname}${release}${shared_ext}$major'
 
12159
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12160
  shlibpath_var=LD_LIBRARY_PATH
 
12161
  shlibpath_overrides_runpath=no
 
12162
  # This implies no fast_install, which is unacceptable.
 
12163
  # Some rework will be needed to allow for fast_install
 
12164
  # before this can be enabled.
 
12165
  hardcode_into_libs=yes
 
12166
 
 
12167
  # Append ld.so.conf contents to the search path
 
12168
  if test -f /etc/ld.so.conf; then
 
12169
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12170
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12171
  fi
 
12172
 
 
12173
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12174
  # powerpc, because MkLinux only supported shared libraries with the
 
12175
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12176
  # most powerpc-linux boxes support dynamic linking these days and
 
12177
  # people can always --disable-shared, the test was removed, and we
 
12178
  # assume the GNU/Linux dynamic linker is in use.
 
12179
  dynamic_linker='GNU/Linux ld.so'
 
12180
  ;;
 
12181
 
 
12182
netbsdelf*-gnu)
 
12183
  version_type=linux
 
12184
  need_lib_prefix=no
 
12185
  need_version=no
 
12186
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12187
  soname_spec='${libname}${release}${shared_ext}$major'
 
12188
  shlibpath_var=LD_LIBRARY_PATH
 
12189
  shlibpath_overrides_runpath=no
 
12190
  hardcode_into_libs=yes
 
12191
  dynamic_linker='NetBSD ld.elf_so'
 
12192
  ;;
 
12193
 
 
12194
knetbsd*-gnu)
 
12195
  version_type=linux
 
12196
  need_lib_prefix=no
 
12197
  need_version=no
 
12198
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12199
  soname_spec='${libname}${release}${shared_ext}$major'
 
12200
  shlibpath_var=LD_LIBRARY_PATH
 
12201
  shlibpath_overrides_runpath=no
 
12202
  hardcode_into_libs=yes
 
12203
  dynamic_linker='GNU ld.so'
 
12204
  ;;
 
12205
 
 
12206
netbsd*)
 
12207
  version_type=sunos
 
12208
  need_lib_prefix=no
 
12209
  need_version=no
 
12210
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12211
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12212
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12213
    dynamic_linker='NetBSD (a.out) ld.so'
 
12214
  else
 
12215
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12216
    soname_spec='${libname}${release}${shared_ext}$major'
 
12217
    dynamic_linker='NetBSD ld.elf_so'
 
12218
  fi
 
12219
  shlibpath_var=LD_LIBRARY_PATH
 
12220
  shlibpath_overrides_runpath=yes
 
12221
  hardcode_into_libs=yes
 
12222
  ;;
 
12223
 
 
12224
newsos6)
 
12225
  version_type=linux
 
12226
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12227
  shlibpath_var=LD_LIBRARY_PATH
 
12228
  shlibpath_overrides_runpath=yes
 
12229
  ;;
 
12230
 
 
12231
nto-qnx*)
 
12232
  version_type=linux
 
12233
  need_lib_prefix=no
 
12234
  need_version=no
 
12235
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12236
  soname_spec='${libname}${release}${shared_ext}$major'
 
12237
  shlibpath_var=LD_LIBRARY_PATH
 
12238
  shlibpath_overrides_runpath=yes
 
12239
  ;;
 
12240
 
 
12241
openbsd*)
 
12242
  version_type=sunos
 
12243
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12244
  need_lib_prefix=no
 
12245
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12246
  case $host_os in
 
12247
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12248
    *)                         need_version=no  ;;
 
12249
  esac
 
12250
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12251
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12252
  shlibpath_var=LD_LIBRARY_PATH
 
12253
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12254
    case $host_os in
 
12255
      openbsd2.[89] | openbsd2.[89].*)
 
12256
        shlibpath_overrides_runpath=no
 
12257
        ;;
 
12258
      *)
 
12259
        shlibpath_overrides_runpath=yes
 
12260
        ;;
 
12261
      esac
 
12262
  else
 
12263
    shlibpath_overrides_runpath=yes
 
12264
  fi
 
12265
  ;;
 
12266
 
 
12267
os2*)
 
12268
  libname_spec='$name'
 
12269
  shrext_cmds=".dll"
 
12270
  need_lib_prefix=no
 
12271
  library_names_spec='$libname${shared_ext} $libname.a'
 
12272
  dynamic_linker='OS/2 ld.exe'
 
12273
  shlibpath_var=LIBPATH
 
12274
  ;;
 
12275
 
 
12276
osf3* | osf4* | osf5*)
 
12277
  version_type=osf
 
12278
  need_lib_prefix=no
 
12279
  need_version=no
 
12280
  soname_spec='${libname}${release}${shared_ext}$major'
 
12281
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12282
  shlibpath_var=LD_LIBRARY_PATH
 
12283
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12284
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12285
  ;;
 
12286
 
 
12287
solaris*)
 
12288
  version_type=linux
 
12289
  need_lib_prefix=no
 
12290
  need_version=no
 
12291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12292
  soname_spec='${libname}${release}${shared_ext}$major'
 
12293
  shlibpath_var=LD_LIBRARY_PATH
 
12294
  shlibpath_overrides_runpath=yes
 
12295
  hardcode_into_libs=yes
 
12296
  # ldd complains unless libraries are executable
 
12297
  postinstall_cmds='chmod +x $lib'
 
12298
  ;;
 
12299
 
 
12300
sunos4*)
 
12301
  version_type=sunos
 
12302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12303
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12304
  shlibpath_var=LD_LIBRARY_PATH
 
12305
  shlibpath_overrides_runpath=yes
 
12306
  if test "$with_gnu_ld" = yes; then
 
12307
    need_lib_prefix=no
 
12308
  fi
 
12309
  need_version=yes
 
12310
  ;;
 
12311
 
 
12312
sysv4 | sysv4.3*)
 
12313
  version_type=linux
 
12314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12315
  soname_spec='${libname}${release}${shared_ext}$major'
 
12316
  shlibpath_var=LD_LIBRARY_PATH
 
12317
  case $host_vendor in
 
12318
    sni)
 
12319
      shlibpath_overrides_runpath=no
 
12320
      need_lib_prefix=no
 
12321
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12322
      runpath_var=LD_RUN_PATH
 
12323
      ;;
 
12324
    siemens)
 
12325
      need_lib_prefix=no
 
12326
      ;;
 
12327
    motorola)
 
12328
      need_lib_prefix=no
 
12329
      need_version=no
 
12330
      shlibpath_overrides_runpath=no
 
12331
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12332
      ;;
 
12333
  esac
 
12334
  ;;
 
12335
 
 
12336
sysv4*MP*)
 
12337
  if test -d /usr/nec ;then
 
12338
    version_type=linux
 
12339
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12340
    soname_spec='$libname${shared_ext}.$major'
 
12341
    shlibpath_var=LD_LIBRARY_PATH
 
12342
  fi
 
12343
  ;;
 
12344
 
 
12345
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12346
  version_type=freebsd-elf
 
12347
  need_lib_prefix=no
 
12348
  need_version=no
 
12349
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12350
  soname_spec='${libname}${release}${shared_ext}$major'
 
12351
  shlibpath_var=LD_LIBRARY_PATH
 
12352
  hardcode_into_libs=yes
 
12353
  if test "$with_gnu_ld" = yes; then
 
12354
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12355
    shlibpath_overrides_runpath=no
 
12356
  else
 
12357
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12358
    shlibpath_overrides_runpath=yes
 
12359
    case $host_os in
 
12360
      sco3.2v5*)
 
12361
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12362
        ;;
 
12363
    esac
 
12364
  fi
 
12365
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12366
  ;;
 
12367
 
 
12368
uts4*)
 
12369
  version_type=linux
 
12370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12371
  soname_spec='${libname}${release}${shared_ext}$major'
 
12372
  shlibpath_var=LD_LIBRARY_PATH
 
12373
  ;;
 
12374
 
 
12375
*)
 
12376
  dynamic_linker=no
 
12377
  ;;
 
12378
esac
 
12379
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12380
echo "${ECHO_T}$dynamic_linker" >&6
 
12381
test "$dynamic_linker" = no && can_build_shared=no
 
12382
 
 
12383
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12384
if test "$GCC" = yes; then
 
12385
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12386
fi
 
12387
 
 
12388
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12389
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12390
hardcode_action_CXX=
 
12391
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12392
   test -n "$runpath_var_CXX" || \
 
12393
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
12394
 
 
12395
  # We can hardcode non-existant directories.
 
12396
  if test "$hardcode_direct_CXX" != no &&
 
12397
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12398
     # have to relink, otherwise we might link with an installed library
 
12399
     # when we should be linking with a yet-to-be-installed one
 
12400
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12401
     test "$hardcode_minus_L_CXX" != no; then
 
12402
    # Linking always hardcodes the temporary library directory.
 
12403
    hardcode_action_CXX=relink
 
12404
  else
 
12405
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12406
    hardcode_action_CXX=immediate
 
12407
  fi
 
12408
else
 
12409
  # We cannot hardcode anything, or else we can only hardcode existing
 
12410
  # directories.
 
12411
  hardcode_action_CXX=unsupported
 
12412
fi
 
12413
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12414
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12415
 
 
12416
if test "$hardcode_action_CXX" = relink; then
 
12417
  # Fast installation is not supported
 
12418
  enable_fast_install=no
 
12419
elif test "$shlibpath_overrides_runpath" = yes ||
 
12420
     test "$enable_shared" = no; then
 
12421
  # Fast installation is not necessary
 
12422
  enable_fast_install=needless
 
12423
fi
 
12424
 
 
12425
 
 
12426
# The else clause should only fire when bootstrapping the
 
12427
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12428
# with your package, and you will get complaints that there are
 
12429
# no rules to generate ltmain.sh.
 
12430
if test -f "$ltmain"; then
 
12431
  # See if we are running on zsh, and set the options which allow our commands through
 
12432
  # without removal of \ escapes.
 
12433
  if test -n "${ZSH_VERSION+set}" ; then
 
12434
    setopt NO_GLOB_SUBST
 
12435
  fi
 
12436
  # Now quote all the things that may contain metacharacters while being
 
12437
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12438
  # variables and quote the copies for generation of the libtool script.
 
12439
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
12440
    SED SHELL STRIP \
 
12441
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12442
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12443
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12444
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12445
    lt_cv_sys_global_symbol_to_c_name_address \
 
12446
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12447
    old_postinstall_cmds old_postuninstall_cmds \
 
12448
    compiler_CXX \
 
12449
    CC_CXX \
 
12450
    LD_CXX \
 
12451
    lt_prog_compiler_wl_CXX \
 
12452
    lt_prog_compiler_pic_CXX \
 
12453
    lt_prog_compiler_static_CXX \
 
12454
    lt_prog_compiler_no_builtin_flag_CXX \
 
12455
    export_dynamic_flag_spec_CXX \
 
12456
    thread_safe_flag_spec_CXX \
 
12457
    whole_archive_flag_spec_CXX \
 
12458
    enable_shared_with_static_runtimes_CXX \
 
12459
    old_archive_cmds_CXX \
 
12460
    old_archive_from_new_cmds_CXX \
 
12461
    predep_objects_CXX \
 
12462
    postdep_objects_CXX \
 
12463
    predeps_CXX \
 
12464
    postdeps_CXX \
 
12465
    compiler_lib_search_path_CXX \
 
12466
    archive_cmds_CXX \
 
12467
    archive_expsym_cmds_CXX \
 
12468
    postinstall_cmds_CXX \
 
12469
    postuninstall_cmds_CXX \
 
12470
    old_archive_from_expsyms_cmds_CXX \
 
12471
    allow_undefined_flag_CXX \
 
12472
    no_undefined_flag_CXX \
 
12473
    export_symbols_cmds_CXX \
 
12474
    hardcode_libdir_flag_spec_CXX \
 
12475
    hardcode_libdir_flag_spec_ld_CXX \
 
12476
    hardcode_libdir_separator_CXX \
 
12477
    hardcode_automatic_CXX \
 
12478
    module_cmds_CXX \
 
12479
    module_expsym_cmds_CXX \
 
12480
    lt_cv_prog_compiler_c_o_CXX \
 
12481
    exclude_expsyms_CXX \
 
12482
    include_expsyms_CXX; do
 
12483
 
 
12484
    case $var in
 
12485
    old_archive_cmds_CXX | \
 
12486
    old_archive_from_new_cmds_CXX | \
 
12487
    archive_cmds_CXX | \
 
12488
    archive_expsym_cmds_CXX | \
 
12489
    module_cmds_CXX | \
 
12490
    module_expsym_cmds_CXX | \
 
12491
    old_archive_from_expsyms_cmds_CXX | \
 
12492
    export_symbols_cmds_CXX | \
 
12493
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12494
    postinstall_cmds | postuninstall_cmds | \
 
12495
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12496
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12497
      # Double-quote double-evaled strings.
 
12498
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12499
      ;;
 
12500
    *)
 
12501
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12502
      ;;
 
12503
    esac
 
12504
  done
 
12505
 
 
12506
  case $lt_echo in
 
12507
  *'\$0 --fallback-echo"')
 
12508
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12509
    ;;
 
12510
  esac
 
12511
 
 
12512
cfgfile="$ofile"
 
12513
 
 
12514
  cat <<__EOF__ >> "$cfgfile"
 
12515
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12516
 
 
12517
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12518
 
 
12519
# Shell to use when invoking shell scripts.
 
12520
SHELL=$lt_SHELL
 
12521
 
 
12522
# Whether or not to build shared libraries.
 
12523
build_libtool_libs=$enable_shared
 
12524
 
 
12525
# Whether or not to build static libraries.
 
12526
build_old_libs=$enable_static
 
12527
 
 
12528
# Whether or not to add -lc for building shared libraries.
 
12529
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12530
 
 
12531
# Whether or not to disallow shared libs when runtime libs are static
 
12532
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12533
 
 
12534
# Whether or not to optimize for fast installation.
 
12535
fast_install=$enable_fast_install
 
12536
 
 
12537
# The host system.
 
12538
host_alias=$host_alias
 
12539
host=$host
 
12540
host_os=$host_os
 
12541
 
 
12542
# The build system.
 
12543
build_alias=$build_alias
 
12544
build=$build
 
12545
build_os=$build_os
 
12546
 
 
12547
# An echo program that does not interpret backslashes.
 
12548
echo=$lt_echo
 
12549
 
 
12550
# The archiver.
 
12551
AR=$lt_AR
 
12552
AR_FLAGS=$lt_AR_FLAGS
 
12553
 
 
12554
# A C compiler.
 
12555
LTCC=$lt_LTCC
 
12556
 
 
12557
# LTCC compiler flags.
 
12558
LTCFLAGS=$lt_LTCFLAGS
 
12559
 
 
12560
# A language-specific compiler.
 
12561
CC=$lt_compiler_CXX
 
12562
 
 
12563
# Is the compiler the GNU C compiler?
 
12564
with_gcc=$GCC_CXX
 
12565
 
 
12566
# An ERE matcher.
 
12567
EGREP=$lt_EGREP
 
12568
 
 
12569
# The linker used to build libraries.
 
12570
LD=$lt_LD_CXX
 
12571
 
 
12572
# Whether we need hard or soft links.
 
12573
LN_S=$lt_LN_S
 
12574
 
 
12575
# A BSD-compatible nm program.
 
12576
NM=$lt_NM
 
12577
 
 
12578
# A symbol stripping program
 
12579
STRIP=$lt_STRIP
 
12580
 
 
12581
# Used to examine libraries when file_magic_cmd begins "file"
 
12582
MAGIC_CMD=$MAGIC_CMD
 
12583
 
 
12584
# Used on cygwin: DLL creation program.
 
12585
DLLTOOL="$DLLTOOL"
 
12586
 
 
12587
# Used on cygwin: object dumper.
 
12588
OBJDUMP="$OBJDUMP"
 
12589
 
 
12590
# Used on cygwin: assembler.
 
12591
AS="$AS"
 
12592
 
 
12593
# The name of the directory that contains temporary libtool files.
 
12594
objdir=$objdir
 
12595
 
 
12596
# How to create reloadable object files.
 
12597
reload_flag=$lt_reload_flag
 
12598
reload_cmds=$lt_reload_cmds
 
12599
 
 
12600
# How to pass a linker flag through the compiler.
 
12601
wl=$lt_lt_prog_compiler_wl_CXX
 
12602
 
 
12603
# Object file suffix (normally "o").
 
12604
objext="$ac_objext"
 
12605
 
 
12606
# Old archive suffix (normally "a").
 
12607
libext="$libext"
 
12608
 
 
12609
# Shared library suffix (normally ".so").
 
12610
shrext_cmds='$shrext_cmds'
 
12611
 
 
12612
# Executable file suffix (normally "").
 
12613
exeext="$exeext"
 
12614
 
 
12615
# Additional compiler flags for building library objects.
 
12616
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12617
pic_mode=$pic_mode
 
12618
 
 
12619
# What is the maximum length of a command?
 
12620
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12621
 
 
12622
# Does compiler simultaneously support -c and -o options?
 
12623
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12624
 
 
12625
# Must we lock files when doing compilation?
 
12626
need_locks=$lt_need_locks
 
12627
 
 
12628
# Do we need the lib prefix for modules?
 
12629
need_lib_prefix=$need_lib_prefix
 
12630
 
 
12631
# Do we need a version for libraries?
 
12632
need_version=$need_version
 
12633
 
 
12634
# Whether dlopen is supported.
 
12635
dlopen_support=$enable_dlopen
 
12636
 
 
12637
# Whether dlopen of programs is supported.
 
12638
dlopen_self=$enable_dlopen_self
 
12639
 
 
12640
# Whether dlopen of statically linked programs is supported.
 
12641
dlopen_self_static=$enable_dlopen_self_static
 
12642
 
 
12643
# Compiler flag to prevent dynamic linking.
 
12644
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12645
 
 
12646
# Compiler flag to turn off builtin functions.
 
12647
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12648
 
 
12649
# Compiler flag to allow reflexive dlopens.
 
12650
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12651
 
 
12652
# Compiler flag to generate shared objects directly from archives.
 
12653
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12654
 
 
12655
# Compiler flag to generate thread-safe objects.
 
12656
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12657
 
 
12658
# Library versioning type.
 
12659
version_type=$version_type
 
12660
 
 
12661
# Format of library name prefix.
 
12662
libname_spec=$lt_libname_spec
 
12663
 
 
12664
# List of archive names.  First name is the real one, the rest are links.
 
12665
# The last name is the one that the linker finds with -lNAME.
 
12666
library_names_spec=$lt_library_names_spec
 
12667
 
 
12668
# The coded name of the library, if different from the real name.
 
12669
soname_spec=$lt_soname_spec
 
12670
 
 
12671
# Commands used to build and install an old-style archive.
 
12672
RANLIB=$lt_RANLIB
 
12673
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12674
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12675
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12676
 
 
12677
# Create an old-style archive from a shared archive.
 
12678
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12679
 
 
12680
# Create a temporary old-style archive to link instead of a shared archive.
 
12681
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12682
 
 
12683
# Commands used to build and install a shared archive.
 
12684
archive_cmds=$lt_archive_cmds_CXX
 
12685
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12686
postinstall_cmds=$lt_postinstall_cmds
 
12687
postuninstall_cmds=$lt_postuninstall_cmds
 
12688
 
 
12689
# Commands used to build a loadable module (assumed same as above if empty)
 
12690
module_cmds=$lt_module_cmds_CXX
 
12691
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12692
 
 
12693
# Commands to strip libraries.
 
12694
old_striplib=$lt_old_striplib
 
12695
striplib=$lt_striplib
 
12696
 
 
12697
# Dependencies to place before the objects being linked to create a
 
12698
# shared library.
 
12699
predep_objects=$lt_predep_objects_CXX
 
12700
 
 
12701
# Dependencies to place after the objects being linked to create a
 
12702
# shared library.
 
12703
postdep_objects=$lt_postdep_objects_CXX
 
12704
 
 
12705
# Dependencies to place before the objects being linked to create a
 
12706
# shared library.
 
12707
predeps=$lt_predeps_CXX
 
12708
 
 
12709
# Dependencies to place after the objects being linked to create a
 
12710
# shared library.
 
12711
postdeps=$lt_postdeps_CXX
 
12712
 
 
12713
# The library search path used internally by the compiler when linking
 
12714
# a shared library.
 
12715
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12716
 
 
12717
# Method to check whether dependent libraries are shared objects.
 
12718
deplibs_check_method=$lt_deplibs_check_method
 
12719
 
 
12720
# Command to use when deplibs_check_method == file_magic.
 
12721
file_magic_cmd=$lt_file_magic_cmd
 
12722
 
 
12723
# Flag that allows shared libraries with undefined symbols to be built.
 
12724
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12725
 
 
12726
# Flag that forces no undefined symbols.
 
12727
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12728
 
 
12729
# Commands used to finish a libtool library installation in a directory.
 
12730
finish_cmds=$lt_finish_cmds
 
12731
 
 
12732
# Same as above, but a single script fragment to be evaled but not shown.
 
12733
finish_eval=$lt_finish_eval
 
12734
 
 
12735
# Take the output of nm and produce a listing of raw symbols and C names.
 
12736
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12737
 
 
12738
# Transform the output of nm in a proper C declaration
 
12739
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12740
 
 
12741
# Transform the output of nm in a C name address pair
 
12742
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12743
 
 
12744
# This is the shared library runtime path variable.
 
12745
runpath_var=$runpath_var
 
12746
 
 
12747
# This is the shared library path variable.
 
12748
shlibpath_var=$shlibpath_var
 
12749
 
 
12750
# Is shlibpath searched before the hard-coded library search path?
 
12751
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12752
 
 
12753
# How to hardcode a shared library path into an executable.
 
12754
hardcode_action=$hardcode_action_CXX
 
12755
 
 
12756
# Whether we should hardcode library paths into libraries.
 
12757
hardcode_into_libs=$hardcode_into_libs
 
12758
 
 
12759
# Flag to hardcode \$libdir into a binary during linking.
 
12760
# This must work even if \$libdir does not exist.
 
12761
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
12762
 
 
12763
# If ld is used when linking, flag to hardcode \$libdir into
 
12764
# a binary during linking. This must work even if \$libdir does
 
12765
# not exist.
 
12766
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
12767
 
 
12768
# Whether we need a single -rpath flag with a separated argument.
 
12769
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
12770
 
 
12771
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12772
# resulting binary.
 
12773
hardcode_direct=$hardcode_direct_CXX
 
12774
 
 
12775
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12776
# resulting binary.
 
12777
hardcode_minus_L=$hardcode_minus_L_CXX
 
12778
 
 
12779
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12780
# the resulting binary.
 
12781
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
12782
 
 
12783
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12784
# and all subsequent libraries and executables linked against it.
 
12785
hardcode_automatic=$hardcode_automatic_CXX
 
12786
 
 
12787
# Variables whose values should be saved in libtool wrapper scripts and
 
12788
# restored at relink time.
 
12789
variables_saved_for_relink="$variables_saved_for_relink"
 
12790
 
 
12791
# Whether libtool must link a program against all its dependency libraries.
 
12792
link_all_deplibs=$link_all_deplibs_CXX
 
12793
 
 
12794
# Compile-time system search path for libraries
 
12795
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12796
 
 
12797
# Run-time system search path for libraries
 
12798
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12799
 
 
12800
# Fix the shell variable \$srcfile for the compiler.
 
12801
fix_srcfile_path="$fix_srcfile_path_CXX"
 
12802
 
 
12803
# Set to yes if exported symbols are required.
 
12804
always_export_symbols=$always_export_symbols_CXX
 
12805
 
 
12806
# The commands to list exported symbols.
 
12807
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
12808
 
 
12809
# The commands to extract the exported symbol list from a shared archive.
 
12810
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12811
 
 
12812
# Symbols that should not be listed in the preloaded symbols.
 
12813
exclude_expsyms=$lt_exclude_expsyms_CXX
 
12814
 
 
12815
# Symbols that must always be exported.
 
12816
include_expsyms=$lt_include_expsyms_CXX
 
12817
 
 
12818
# ### END LIBTOOL TAG CONFIG: $tagname
 
12819
 
 
12820
__EOF__
 
12821
 
 
12822
 
 
12823
else
 
12824
  # If there is no Makefile yet, we rely on a make rule to execute
 
12825
  # `config.status --recheck' to rerun these tests and create the
 
12826
  # libtool script then.
 
12827
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12828
  if test -f "$ltmain_in"; then
 
12829
    test -f Makefile && make "$ltmain"
 
12830
  fi
 
12831
fi
 
12832
 
 
12833
 
 
12834
ac_ext=c
 
12835
ac_cpp='$CPP $CPPFLAGS'
 
12836
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12837
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12838
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12839
 
 
12840
CC=$lt_save_CC
 
12841
LDCXX=$LD
 
12842
LD=$lt_save_LD
 
12843
GCC=$lt_save_GCC
 
12844
with_gnu_ldcxx=$with_gnu_ld
 
12845
with_gnu_ld=$lt_save_with_gnu_ld
 
12846
lt_cv_path_LDCXX=$lt_cv_path_LD
 
12847
lt_cv_path_LD=$lt_save_path_LD
 
12848
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
12849
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
12850
 
 
12851
        else
 
12852
          tagname=""
 
12853
        fi
 
12854
        ;;
 
12855
 
 
12856
      F77)
 
12857
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
12858
 
 
12859
ac_ext=f
 
12860
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
12861
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12862
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
12863
 
 
12864
 
 
12865
archive_cmds_need_lc_F77=no
 
12866
allow_undefined_flag_F77=
 
12867
always_export_symbols_F77=no
 
12868
archive_expsym_cmds_F77=
 
12869
export_dynamic_flag_spec_F77=
 
12870
hardcode_direct_F77=no
 
12871
hardcode_libdir_flag_spec_F77=
 
12872
hardcode_libdir_flag_spec_ld_F77=
 
12873
hardcode_libdir_separator_F77=
 
12874
hardcode_minus_L_F77=no
 
12875
hardcode_automatic_F77=no
 
12876
module_cmds_F77=
 
12877
module_expsym_cmds_F77=
 
12878
link_all_deplibs_F77=unknown
 
12879
old_archive_cmds_F77=$old_archive_cmds
 
12880
no_undefined_flag_F77=
 
12881
whole_archive_flag_spec_F77=
 
12882
enable_shared_with_static_runtimes_F77=no
 
12883
 
 
12884
# Source file extension for f77 test sources.
 
12885
ac_ext=f
 
12886
 
 
12887
# Object file extension for compiled f77 test sources.
 
12888
objext=o
 
12889
objext_F77=$objext
 
12890
 
 
12891
# Code to be used in simple compile tests
 
12892
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
12893
 
 
12894
# Code to be used in simple link tests
 
12895
lt_simple_link_test_code="      program t\n      end\n"
 
12896
 
 
12897
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12898
 
 
12899
# If no C compiler was specified, use CC.
 
12900
LTCC=${LTCC-"$CC"}
 
12901
 
 
12902
# If no C compiler flags were specified, use CFLAGS.
 
12903
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12904
 
 
12905
# Allow CC to be a program name with arguments.
 
12906
compiler=$CC
 
12907
 
 
12908
 
 
12909
# save warnings/boilerplate of simple test code
 
12910
ac_outfile=conftest.$ac_objext
 
12911
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12912
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12913
_lt_compiler_boilerplate=`cat conftest.err`
 
12914
$rm conftest*
 
12915
 
 
12916
ac_outfile=conftest.$ac_objext
 
12917
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
12918
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12919
_lt_linker_boilerplate=`cat conftest.err`
 
12920
$rm conftest*
 
12921
 
 
12922
 
 
12923
# Allow CC to be a program name with arguments.
 
12924
lt_save_CC="$CC"
 
12925
CC=${F77-"f77"}
 
12926
compiler=$CC
 
12927
compiler_F77=$CC
 
12928
for cc_temp in $compiler""; do
 
12929
  case $cc_temp in
 
12930
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12931
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12932
    \-*) ;;
 
12933
    *) break;;
 
12934
  esac
 
12935
done
 
12936
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12937
 
 
12938
 
 
12939
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12940
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
12941
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12942
echo "${ECHO_T}$can_build_shared" >&6
 
12943
 
 
12944
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12945
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
12946
test "$can_build_shared" = "no" && enable_shared=no
 
12947
 
 
12948
# On AIX, shared libraries and static libraries use the same namespace, and
 
12949
# are all built from PIC.
 
12950
case $host_os in
 
12951
aix3*)
 
12952
  test "$enable_shared" = yes && enable_static=no
 
12953
  if test -n "$RANLIB"; then
 
12954
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12955
    postinstall_cmds='$RANLIB $lib'
 
12956
  fi
 
12957
  ;;
 
12958
aix4* | aix5*)
 
12959
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12960
    test "$enable_shared" = yes && enable_static=no
 
12961
  fi
 
12962
  ;;
 
12963
esac
 
12964
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12965
echo "${ECHO_T}$enable_shared" >&6
 
12966
 
 
12967
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12968
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
12969
# Make sure either enable_shared or enable_static is yes.
 
12970
test "$enable_shared" = yes || enable_static=yes
 
12971
echo "$as_me:$LINENO: result: $enable_static" >&5
 
12972
echo "${ECHO_T}$enable_static" >&6
 
12973
 
 
12974
GCC_F77="$G77"
 
12975
LD_F77="$LD"
 
12976
 
 
12977
lt_prog_compiler_wl_F77=
 
12978
lt_prog_compiler_pic_F77=
 
12979
lt_prog_compiler_static_F77=
 
12980
 
 
12981
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12982
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12983
 
 
12984
  if test "$GCC" = yes; then
 
12985
    lt_prog_compiler_wl_F77='-Wl,'
 
12986
    lt_prog_compiler_static_F77='-static'
 
12987
 
 
12988
    case $host_os in
 
12989
      aix*)
 
12990
      # All AIX code is PIC.
 
12991
      if test "$host_cpu" = ia64; then
 
12992
        # AIX 5 now supports IA64 processor
 
12993
        lt_prog_compiler_static_F77='-Bstatic'
 
12994
      fi
 
12995
      ;;
 
12996
 
 
12997
    amigaos*)
 
12998
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12999
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13000
      # like `-m68040'.
 
13001
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13002
      ;;
 
13003
 
 
13004
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13005
      # PIC is the default for these OSes.
 
13006
      ;;
 
13007
 
 
13008
    mingw* | pw32* | os2*)
 
13009
      # This hack is so that the source file can tell whether it is being
 
13010
      # built for inclusion in a dll (and should export symbols for example).
 
13011
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13012
      ;;
 
13013
 
 
13014
    darwin* | rhapsody*)
 
13015
      # PIC is the default on this platform
 
13016
      # Common symbols not allowed in MH_DYLIB files
 
13017
      lt_prog_compiler_pic_F77='-fno-common'
 
13018
      ;;
 
13019
 
 
13020
    interix3*)
 
13021
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13022
      # Instead, we relocate shared libraries at runtime.
 
13023
      ;;
 
13024
 
 
13025
    msdosdjgpp*)
 
13026
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13027
      # on systems that don't support them.
 
13028
      lt_prog_compiler_can_build_shared_F77=no
 
13029
      enable_shared=no
 
13030
      ;;
 
13031
 
 
13032
    sysv4*MP*)
 
13033
      if test -d /usr/nec; then
 
13034
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13035
      fi
 
13036
      ;;
 
13037
 
 
13038
    hpux*)
 
13039
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13040
      # not for PA HP-UX.
 
13041
      case $host_cpu in
 
13042
      hppa*64*|ia64*)
 
13043
        # +Z the default
 
13044
        ;;
 
13045
      *)
 
13046
        lt_prog_compiler_pic_F77='-fPIC'
 
13047
        ;;
 
13048
      esac
 
13049
      ;;
 
13050
 
 
13051
    *)
 
13052
      lt_prog_compiler_pic_F77='-fPIC'
 
13053
      ;;
 
13054
    esac
 
13055
  else
 
13056
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13057
    case $host_os in
 
13058
    aix*)
 
13059
      lt_prog_compiler_wl_F77='-Wl,'
 
13060
      if test "$host_cpu" = ia64; then
 
13061
        # AIX 5 now supports IA64 processor
 
13062
        lt_prog_compiler_static_F77='-Bstatic'
 
13063
      else
 
13064
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13065
      fi
 
13066
      ;;
 
13067
      darwin*)
 
13068
        # PIC is the default on this platform
 
13069
        # Common symbols not allowed in MH_DYLIB files
 
13070
       case $cc_basename in
 
13071
         xlc*)
 
13072
         lt_prog_compiler_pic_F77='-qnocommon'
 
13073
         lt_prog_compiler_wl_F77='-Wl,'
 
13074
         ;;
 
13075
       esac
 
13076
       ;;
 
13077
 
 
13078
    mingw* | pw32* | os2*)
 
13079
      # This hack is so that the source file can tell whether it is being
 
13080
      # built for inclusion in a dll (and should export symbols for example).
 
13081
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13082
      ;;
 
13083
 
 
13084
    hpux9* | hpux10* | hpux11*)
 
13085
      lt_prog_compiler_wl_F77='-Wl,'
 
13086
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13087
      # not for PA HP-UX.
 
13088
      case $host_cpu in
 
13089
      hppa*64*|ia64*)
 
13090
        # +Z the default
 
13091
        ;;
 
13092
      *)
 
13093
        lt_prog_compiler_pic_F77='+Z'
 
13094
        ;;
 
13095
      esac
 
13096
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13097
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13098
      ;;
 
13099
 
 
13100
    irix5* | irix6* | nonstopux*)
 
13101
      lt_prog_compiler_wl_F77='-Wl,'
 
13102
      # PIC (with -KPIC) is the default.
 
13103
      lt_prog_compiler_static_F77='-non_shared'
 
13104
      ;;
 
13105
 
 
13106
    newsos6)
 
13107
      lt_prog_compiler_pic_F77='-KPIC'
 
13108
      lt_prog_compiler_static_F77='-Bstatic'
 
13109
      ;;
 
13110
 
 
13111
    linux*)
 
13112
      case $cc_basename in
 
13113
      icc* | ecc*)
 
13114
        lt_prog_compiler_wl_F77='-Wl,'
 
13115
        lt_prog_compiler_pic_F77='-KPIC'
 
13116
        lt_prog_compiler_static_F77='-static'
 
13117
        ;;
 
13118
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13119
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13120
        # which looks to be a dead project)
 
13121
        lt_prog_compiler_wl_F77='-Wl,'
 
13122
        lt_prog_compiler_pic_F77='-fpic'
 
13123
        lt_prog_compiler_static_F77='-Bstatic'
 
13124
        ;;
 
13125
      ccc*)
 
13126
        lt_prog_compiler_wl_F77='-Wl,'
 
13127
        # All Alpha code is PIC.
 
13128
        lt_prog_compiler_static_F77='-non_shared'
 
13129
        ;;
 
13130
      esac
 
13131
      ;;
 
13132
 
 
13133
    osf3* | osf4* | osf5*)
 
13134
      lt_prog_compiler_wl_F77='-Wl,'
 
13135
      # All OSF/1 code is PIC.
 
13136
      lt_prog_compiler_static_F77='-non_shared'
 
13137
      ;;
 
13138
 
 
13139
    solaris*)
 
13140
      lt_prog_compiler_pic_F77='-KPIC'
 
13141
      lt_prog_compiler_static_F77='-Bstatic'
 
13142
      case $cc_basename in
 
13143
      f77* | f90* | f95*)
 
13144
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13145
      *)
 
13146
        lt_prog_compiler_wl_F77='-Wl,';;
 
13147
      esac
 
13148
      ;;
 
13149
 
 
13150
    sunos4*)
 
13151
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13152
      lt_prog_compiler_pic_F77='-PIC'
 
13153
      lt_prog_compiler_static_F77='-Bstatic'
 
13154
      ;;
 
13155
 
 
13156
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
13157
      lt_prog_compiler_wl_F77='-Wl,'
 
13158
      lt_prog_compiler_pic_F77='-KPIC'
 
13159
      lt_prog_compiler_static_F77='-Bstatic'
 
13160
      ;;
 
13161
 
 
13162
    sysv4*MP*)
 
13163
      if test -d /usr/nec ;then
 
13164
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13165
        lt_prog_compiler_static_F77='-Bstatic'
 
13166
      fi
 
13167
      ;;
 
13168
 
 
13169
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13170
      lt_prog_compiler_wl_F77='-Wl,'
 
13171
      lt_prog_compiler_pic_F77='-KPIC'
 
13172
      lt_prog_compiler_static_F77='-Bstatic'
 
13173
      ;;
 
13174
 
 
13175
    unicos*)
 
13176
      lt_prog_compiler_wl_F77='-Wl,'
 
13177
      lt_prog_compiler_can_build_shared_F77=no
 
13178
      ;;
 
13179
 
 
13180
    uts4*)
 
13181
      lt_prog_compiler_pic_F77='-pic'
 
13182
      lt_prog_compiler_static_F77='-Bstatic'
 
13183
      ;;
 
13184
 
 
13185
    *)
 
13186
      lt_prog_compiler_can_build_shared_F77=no
 
13187
      ;;
 
13188
    esac
 
13189
  fi
 
13190
 
 
13191
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13192
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13193
 
 
13194
#
 
13195
# Check to make sure the PIC flag actually works.
 
13196
#
 
13197
if test -n "$lt_prog_compiler_pic_F77"; then
 
13198
 
 
13199
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13200
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13201
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13202
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13203
else
 
13204
  lt_prog_compiler_pic_works_F77=no
 
13205
  ac_outfile=conftest.$ac_objext
 
13206
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13207
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13208
   # Insert the option either (1) after the last *FLAGS variable, or
 
13209
   # (2) before a word containing "conftest.", or (3) at the end.
 
13210
   # Note that $ac_compile itself does not contain backslashes and begins
 
13211
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13212
   # The option is referenced via a variable to avoid confusing sed.
 
13213
   lt_compile=`echo "$ac_compile" | $SED \
 
13214
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13215
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13216
   -e 's:$: $lt_compiler_flag:'`
 
13217
   (eval echo "\"\$as_me:13217: $lt_compile\"" >&5)
 
13218
   (eval "$lt_compile" 2>conftest.err)
 
13219
   ac_status=$?
 
13220
   cat conftest.err >&5
 
13221
   echo "$as_me:13221: \$? = $ac_status" >&5
 
13222
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13223
     # The compiler can only warn and ignore the option if not recognized
 
13224
     # So say no if there are warnings other than the usual output.
 
13225
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13226
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13227
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13228
       lt_prog_compiler_pic_works_F77=yes
 
13229
     fi
 
13230
   fi
 
13231
   $rm conftest*
 
13232
 
 
13233
fi
 
13234
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13235
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13236
 
 
13237
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13238
    case $lt_prog_compiler_pic_F77 in
 
13239
     "" | " "*) ;;
 
13240
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13241
     esac
 
13242
else
 
13243
    lt_prog_compiler_pic_F77=
 
13244
     lt_prog_compiler_can_build_shared_F77=no
 
13245
fi
 
13246
 
 
13247
fi
 
13248
case $host_os in
 
13249
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13250
  *djgpp*)
 
13251
    lt_prog_compiler_pic_F77=
 
13252
    ;;
 
13253
  *)
 
13254
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13255
    ;;
 
13256
esac
 
13257
 
 
13258
#
 
13259
# Check to make sure the static flag actually works.
 
13260
#
 
13261
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13262
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13263
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13264
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13266
else
 
13267
  lt_prog_compiler_static_works_F77=no
 
13268
   save_LDFLAGS="$LDFLAGS"
 
13269
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13270
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13271
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13272
     # The linker can only warn and ignore the option if not recognized
 
13273
     # So say no if there are warnings
 
13274
     if test -s conftest.err; then
 
13275
       # Append any errors to the config.log.
 
13276
       cat conftest.err 1>&5
 
13277
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13278
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13279
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13280
         lt_prog_compiler_static_works_F77=yes
 
13281
       fi
 
13282
     else
 
13283
       lt_prog_compiler_static_works_F77=yes
 
13284
     fi
 
13285
   fi
 
13286
   $rm conftest*
 
13287
   LDFLAGS="$save_LDFLAGS"
 
13288
 
 
13289
fi
 
13290
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13291
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13292
 
 
13293
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13294
    :
 
13295
else
 
13296
    lt_prog_compiler_static_F77=
 
13297
fi
 
13298
 
 
13299
 
 
13300
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13301
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13302
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13304
else
 
13305
  lt_cv_prog_compiler_c_o_F77=no
 
13306
   $rm -r conftest 2>/dev/null
 
13307
   mkdir conftest
 
13308
   cd conftest
 
13309
   mkdir out
 
13310
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13311
 
 
13312
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13313
   # Insert the option either (1) after the last *FLAGS variable, or
 
13314
   # (2) before a word containing "conftest.", or (3) at the end.
 
13315
   # Note that $ac_compile itself does not contain backslashes and begins
 
13316
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13317
   lt_compile=`echo "$ac_compile" | $SED \
 
13318
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13319
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13320
   -e 's:$: $lt_compiler_flag:'`
 
13321
   (eval echo "\"\$as_me:13321: $lt_compile\"" >&5)
 
13322
   (eval "$lt_compile" 2>out/conftest.err)
 
13323
   ac_status=$?
 
13324
   cat out/conftest.err >&5
 
13325
   echo "$as_me:13325: \$? = $ac_status" >&5
 
13326
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13327
   then
 
13328
     # The compiler can only warn and ignore the option if not recognized
 
13329
     # So say no if there are warnings
 
13330
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13331
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13332
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13333
       lt_cv_prog_compiler_c_o_F77=yes
 
13334
     fi
 
13335
   fi
 
13336
   chmod u+w . 2>&5
 
13337
   $rm conftest*
 
13338
   # SGI C++ compiler will create directory out/ii_files/ for
 
13339
   # template instantiation
 
13340
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13341
   $rm out/* && rmdir out
 
13342
   cd ..
 
13343
   rmdir conftest
 
13344
   $rm conftest*
 
13345
 
 
13346
fi
 
13347
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13348
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13349
 
 
13350
 
 
13351
hard_links="nottested"
 
13352
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13353
  # do not overwrite the value of need_locks provided by the user
 
13354
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13355
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13356
  hard_links=yes
 
13357
  $rm conftest*
 
13358
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13359
  touch conftest.a
 
13360
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13361
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13362
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13363
echo "${ECHO_T}$hard_links" >&6
 
13364
  if test "$hard_links" = no; then
 
13365
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13366
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13367
    need_locks=warn
 
13368
  fi
 
13369
else
 
13370
  need_locks=no
 
13371
fi
 
13372
 
 
13373
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13374
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13375
 
 
13376
  runpath_var=
 
13377
  allow_undefined_flag_F77=
 
13378
  enable_shared_with_static_runtimes_F77=no
 
13379
  archive_cmds_F77=
 
13380
  archive_expsym_cmds_F77=
 
13381
  old_archive_From_new_cmds_F77=
 
13382
  old_archive_from_expsyms_cmds_F77=
 
13383
  export_dynamic_flag_spec_F77=
 
13384
  whole_archive_flag_spec_F77=
 
13385
  thread_safe_flag_spec_F77=
 
13386
  hardcode_libdir_flag_spec_F77=
 
13387
  hardcode_libdir_flag_spec_ld_F77=
 
13388
  hardcode_libdir_separator_F77=
 
13389
  hardcode_direct_F77=no
 
13390
  hardcode_minus_L_F77=no
 
13391
  hardcode_shlibpath_var_F77=unsupported
 
13392
  link_all_deplibs_F77=unknown
 
13393
  hardcode_automatic_F77=no
 
13394
  module_cmds_F77=
 
13395
  module_expsym_cmds_F77=
 
13396
  always_export_symbols_F77=no
 
13397
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13398
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13399
  # included in the symbol list
 
13400
  include_expsyms_F77=
 
13401
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13402
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13403
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13404
  # as well as any symbol that contains `d'.
 
13405
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13406
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13407
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13408
  # the symbol is explicitly referenced.  Since portable code cannot
 
13409
  # rely on this symbol name, it's probably fine to never include it in
 
13410
  # preloaded symbol tables.
 
13411
  extract_expsyms_cmds=
 
13412
  # Just being paranoid about ensuring that cc_basename is set.
 
13413
  for cc_temp in $compiler""; do
 
13414
  case $cc_temp in
 
13415
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13416
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13417
    \-*) ;;
 
13418
    *) break;;
 
13419
  esac
 
13420
done
 
13421
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13422
 
 
13423
  case $host_os in
 
13424
  cygwin* | mingw* | pw32*)
 
13425
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13426
    # When not using gcc, we currently assume that we are using
 
13427
    # Microsoft Visual C++.
 
13428
    if test "$GCC" != yes; then
 
13429
      with_gnu_ld=no
 
13430
    fi
 
13431
    ;;
 
13432
  interix*)
 
13433
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13434
    with_gnu_ld=yes
 
13435
    ;;
 
13436
  openbsd*)
 
13437
    with_gnu_ld=no
 
13438
    ;;
 
13439
  esac
 
13440
 
 
13441
  ld_shlibs_F77=yes
 
13442
  if test "$with_gnu_ld" = yes; then
 
13443
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13444
    wlarc='${wl}'
 
13445
 
 
13446
    # Set some defaults for GNU ld with shared library support. These
 
13447
    # are reset later if shared libraries are not supported. Putting them
 
13448
    # here allows them to be overridden if necessary.
 
13449
    runpath_var=LD_RUN_PATH
 
13450
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13451
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13452
    # ancient GNU ld didn't support --whole-archive et. al.
 
13453
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13454
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13455
      else
 
13456
        whole_archive_flag_spec_F77=
 
13457
    fi
 
13458
    supports_anon_versioning=no
 
13459
    case `$LD -v 2>/dev/null` in
 
13460
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13461
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13462
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13463
      *\ 2.11.*) ;; # other 2.11 versions
 
13464
      *) supports_anon_versioning=yes ;;
 
13465
    esac
 
13466
 
 
13467
    # See if GNU ld supports shared libraries.
 
13468
    case $host_os in
 
13469
    aix3* | aix4* | aix5*)
 
13470
      # On AIX/PPC, the GNU linker is very broken
 
13471
      if test "$host_cpu" != ia64; then
 
13472
        ld_shlibs_F77=no
 
13473
        cat <<EOF 1>&2
 
13474
 
 
13475
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13476
*** to be unable to reliably create shared libraries on AIX.
 
13477
*** Therefore, libtool is disabling shared libraries support.  If you
 
13478
*** really care for shared libraries, you may want to modify your PATH
 
13479
*** so that a non-GNU linker is found, and then restart.
 
13480
 
 
13481
EOF
 
13482
      fi
 
13483
      ;;
 
13484
 
 
13485
    amigaos*)
 
13486
      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)'
 
13487
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13488
      hardcode_minus_L_F77=yes
 
13489
 
 
13490
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13491
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13492
      # to version 4, is to share data among multiple programs linked
 
13493
      # with the same dynamic library.  Since this doesn't match the
 
13494
      # behavior of shared libraries on other platforms, we can't use
 
13495
      # them.
 
13496
      ld_shlibs_F77=no
 
13497
      ;;
 
13498
 
 
13499
    beos*)
 
13500
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13501
        allow_undefined_flag_F77=unsupported
 
13502
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13503
        # support --undefined.  This deserves some investigation.  FIXME
 
13504
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13505
      else
 
13506
        ld_shlibs_F77=no
 
13507
      fi
 
13508
      ;;
 
13509
 
 
13510
    cygwin* | mingw* | pw32*)
 
13511
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13512
      # as there is no search path for DLLs.
 
13513
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13514
      allow_undefined_flag_F77=unsupported
 
13515
      always_export_symbols_F77=no
 
13516
      enable_shared_with_static_runtimes_F77=yes
 
13517
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13518
 
 
13519
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13520
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13521
        # If the export-symbols file already is a .def file (1st line
 
13522
        # is EXPORTS), use it as is; otherwise, prepend...
 
13523
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13524
          cp $export_symbols $output_objdir/$soname.def;
 
13525
        else
 
13526
          echo EXPORTS > $output_objdir/$soname.def;
 
13527
          cat $export_symbols >> $output_objdir/$soname.def;
 
13528
        fi~
 
13529
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13530
      else
 
13531
        ld_shlibs_F77=no
 
13532
      fi
 
13533
      ;;
 
13534
 
 
13535
    interix3*)
 
13536
      hardcode_direct_F77=no
 
13537
      hardcode_shlibpath_var_F77=no
 
13538
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13539
      export_dynamic_flag_spec_F77='${wl}-E'
 
13540
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13541
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13542
      # default) and relocated if they conflict, which is a slow very memory
 
13543
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13544
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13545
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13546
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13547
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13548
      ;;
 
13549
 
 
13550
    linux*)
 
13551
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13552
        tmp_addflag=
 
13553
        case $cc_basename,$host_cpu in
 
13554
        pgcc*)                          # Portland Group C compiler
 
13555
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13556
          tmp_addflag=' $pic_flag'
 
13557
          ;;
 
13558
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13559
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13560
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13561
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13562
          tmp_addflag=' -i_dynamic' ;;
 
13563
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13564
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13565
        ifc* | ifort*)                  # Intel Fortran compiler
 
13566
          tmp_addflag=' -nofor_main' ;;
 
13567
        esac
 
13568
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13569
 
 
13570
        if test $supports_anon_versioning = yes; then
 
13571
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13572
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13573
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13574
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13575
        fi
 
13576
        link_all_deplibs_F77=no
 
13577
      else
 
13578
        ld_shlibs_F77=no
 
13579
      fi
 
13580
      ;;
 
13581
 
 
13582
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13583
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13584
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13585
        wlarc=
 
13586
      else
 
13587
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13588
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13589
      fi
 
13590
      ;;
 
13591
 
 
13592
    solaris*)
 
13593
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13594
        ld_shlibs_F77=no
 
13595
        cat <<EOF 1>&2
 
13596
 
 
13597
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13598
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13599
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13600
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13601
*** your PATH or compiler configuration so that the native linker is
 
13602
*** used, and then restart.
 
13603
 
 
13604
EOF
 
13605
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13606
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13607
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13608
      else
 
13609
        ld_shlibs_F77=no
 
13610
      fi
 
13611
      ;;
 
13612
 
 
13613
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
13614
      case `$LD -v 2>&1` in
 
13615
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
13616
        ld_shlibs_F77=no
 
13617
        cat <<_LT_EOF 1>&2
 
13618
 
 
13619
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
13620
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
13621
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13622
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
13623
*** your PATH or compiler configuration so that the native linker is
 
13624
*** used, and then restart.
 
13625
 
 
13626
_LT_EOF
 
13627
        ;;
 
13628
        *)
 
13629
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13630
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
13631
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
13632
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
13633
          else
 
13634
            ld_shlibs_F77=no
 
13635
          fi
 
13636
        ;;
 
13637
      esac
 
13638
      ;;
 
13639
 
 
13640
    sunos4*)
 
13641
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13642
      wlarc=
 
13643
      hardcode_direct_F77=yes
 
13644
      hardcode_shlibpath_var_F77=no
 
13645
      ;;
 
13646
 
 
13647
    *)
 
13648
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13649
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13650
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13651
      else
 
13652
        ld_shlibs_F77=no
 
13653
      fi
 
13654
      ;;
 
13655
    esac
 
13656
 
 
13657
    if test "$ld_shlibs_F77" = no; then
 
13658
      runpath_var=
 
13659
      hardcode_libdir_flag_spec_F77=
 
13660
      export_dynamic_flag_spec_F77=
 
13661
      whole_archive_flag_spec_F77=
 
13662
    fi
 
13663
  else
 
13664
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13665
    case $host_os in
 
13666
    aix3*)
 
13667
      allow_undefined_flag_F77=unsupported
 
13668
      always_export_symbols_F77=yes
 
13669
      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'
 
13670
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13671
      # are no directories specified by -L.
 
13672
      hardcode_minus_L_F77=yes
 
13673
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
13674
        # Neither direct hardcoding nor static linking is supported with a
 
13675
        # broken collect2.
 
13676
        hardcode_direct_F77=unsupported
 
13677
      fi
 
13678
      ;;
 
13679
 
 
13680
    aix4* | aix5*)
 
13681
      if test "$host_cpu" = ia64; then
 
13682
        # On IA64, the linker does run time linking by default, so we don't
 
13683
        # have to do anything special.
 
13684
        aix_use_runtimelinking=no
 
13685
        exp_sym_flag='-Bexport'
 
13686
        no_entry_flag=""
 
13687
      else
 
13688
        # If we're using GNU nm, then we don't want the "-C" option.
 
13689
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13690
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13691
          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'
 
13692
        else
 
13693
          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'
 
13694
        fi
 
13695
        aix_use_runtimelinking=no
 
13696
 
 
13697
        # Test if we are trying to use run time linking or normal
 
13698
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13699
        # need to do runtime linking.
 
13700
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13701
          for ld_flag in $LDFLAGS; do
 
13702
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13703
            aix_use_runtimelinking=yes
 
13704
            break
 
13705
          fi
 
13706
          done
 
13707
          ;;
 
13708
        esac
 
13709
 
 
13710
        exp_sym_flag='-bexport'
 
13711
        no_entry_flag='-bnoentry'
 
13712
      fi
 
13713
 
 
13714
      # When large executables or shared objects are built, AIX ld can
 
13715
      # have problems creating the table of contents.  If linking a library
 
13716
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13717
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13718
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13719
 
 
13720
      archive_cmds_F77=''
 
13721
      hardcode_direct_F77=yes
 
13722
      hardcode_libdir_separator_F77=':'
 
13723
      link_all_deplibs_F77=yes
 
13724
 
 
13725
      if test "$GCC" = yes; then
 
13726
        case $host_os in aix4.[012]|aix4.[012].*)
 
13727
        # We only want to do this on AIX 4.2 and lower, the check
 
13728
        # below for broken collect2 doesn't work under 4.3+
 
13729
          collect2name=`${CC} -print-prog-name=collect2`
 
13730
          if test -f "$collect2name" && \
 
13731
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13732
          then
 
13733
          # We have reworked collect2
 
13734
          hardcode_direct_F77=yes
 
13735
          else
 
13736
          # We have old collect2
 
13737
          hardcode_direct_F77=unsupported
 
13738
          # It fails to find uninstalled libraries when the uninstalled
 
13739
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13740
          # to unsupported forces relinking
 
13741
          hardcode_minus_L_F77=yes
 
13742
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13743
          hardcode_libdir_separator_F77=
 
13744
          fi
 
13745
          ;;
 
13746
        esac
 
13747
        shared_flag='-shared'
 
13748
        if test "$aix_use_runtimelinking" = yes; then
 
13749
          shared_flag="$shared_flag "'${wl}-G'
 
13750
        fi
 
13751
      else
 
13752
        # not using gcc
 
13753
        if test "$host_cpu" = ia64; then
 
13754
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13755
        # chokes on -Wl,-G. The following line is correct:
 
13756
          shared_flag='-G'
 
13757
        else
 
13758
          if test "$aix_use_runtimelinking" = yes; then
 
13759
            shared_flag='${wl}-G'
 
13760
          else
 
13761
            shared_flag='${wl}-bM:SRE'
 
13762
          fi
 
13763
        fi
 
13764
      fi
 
13765
 
 
13766
      # It seems that -bexpall does not export symbols beginning with
 
13767
      # underscore (_), so it is better to generate a list of symbols to export.
 
13768
      always_export_symbols_F77=yes
 
13769
      if test "$aix_use_runtimelinking" = yes; then
 
13770
        # Warning - without using the other runtime loading flags (-brtl),
 
13771
        # -berok will link without error, but may produce a broken library.
 
13772
        allow_undefined_flag_F77='-berok'
 
13773
       # Determine the default libpath from the value encoded in an empty executable.
 
13774
       cat >conftest.$ac_ext <<_ACEOF
 
13775
      program main
 
13776
 
 
13777
      end
 
13778
_ACEOF
 
13779
rm -f conftest.$ac_objext conftest$ac_exeext
 
13780
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13781
  (eval $ac_link) 2>conftest.er1
 
13782
  ac_status=$?
 
13783
  grep -v '^ *+' conftest.er1 >conftest.err
 
13784
  rm -f conftest.er1
 
13785
  cat conftest.err >&5
 
13786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13787
  (exit $ac_status); } &&
 
13788
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13790
  (eval $ac_try) 2>&5
 
13791
  ac_status=$?
 
13792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13793
  (exit $ac_status); }; } &&
 
13794
         { ac_try='test -s conftest$ac_exeext'
 
13795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13796
  (eval $ac_try) 2>&5
 
13797
  ac_status=$?
 
13798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13799
  (exit $ac_status); }; }; then
 
13800
 
 
13801
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13802
}'`
 
13803
# Check for a 64-bit object if we didn't find anything.
 
13804
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; }
 
13805
}'`; fi
 
13806
else
 
13807
  echo "$as_me: failed program was:" >&5
 
13808
sed 's/^/| /' conftest.$ac_ext >&5
 
13809
 
 
13810
fi
 
13811
rm -f conftest.err conftest.$ac_objext \
 
13812
      conftest$ac_exeext conftest.$ac_ext
 
13813
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13814
 
 
13815
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13816
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13817
       else
 
13818
        if test "$host_cpu" = ia64; then
 
13819
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13820
          allow_undefined_flag_F77="-z nodefs"
 
13821
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
13822
        else
 
13823
         # Determine the default libpath from the value encoded in an empty executable.
 
13824
         cat >conftest.$ac_ext <<_ACEOF
 
13825
      program main
 
13826
 
 
13827
      end
 
13828
_ACEOF
 
13829
rm -f conftest.$ac_objext conftest$ac_exeext
 
13830
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13831
  (eval $ac_link) 2>conftest.er1
 
13832
  ac_status=$?
 
13833
  grep -v '^ *+' conftest.er1 >conftest.err
 
13834
  rm -f conftest.er1
 
13835
  cat conftest.err >&5
 
13836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13837
  (exit $ac_status); } &&
 
13838
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13840
  (eval $ac_try) 2>&5
 
13841
  ac_status=$?
 
13842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13843
  (exit $ac_status); }; } &&
 
13844
         { ac_try='test -s conftest$ac_exeext'
 
13845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13846
  (eval $ac_try) 2>&5
 
13847
  ac_status=$?
 
13848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13849
  (exit $ac_status); }; }; then
 
13850
 
 
13851
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13852
}'`
 
13853
# Check for a 64-bit object if we didn't find anything.
 
13854
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; }
 
13855
}'`; fi
 
13856
else
 
13857
  echo "$as_me: failed program was:" >&5
 
13858
sed 's/^/| /' conftest.$ac_ext >&5
 
13859
 
 
13860
fi
 
13861
rm -f conftest.err conftest.$ac_objext \
 
13862
      conftest$ac_exeext conftest.$ac_ext
 
13863
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13864
 
 
13865
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13866
          # Warning - without using the other run time loading flags,
 
13867
          # -berok will link without error, but may produce a broken library.
 
13868
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13869
          allow_undefined_flag_F77=' ${wl}-berok'
 
13870
          # Exported symbols can be pulled into shared objects from archives
 
13871
          whole_archive_flag_spec_F77='$convenience'
 
13872
          archive_cmds_need_lc_F77=yes
 
13873
          # This is similar to how AIX traditionally builds its shared libraries.
 
13874
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13875
        fi
 
13876
      fi
 
13877
      ;;
 
13878
 
 
13879
    amigaos*)
 
13880
      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)'
 
13881
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13882
      hardcode_minus_L_F77=yes
 
13883
      # see comment about different semantics on the GNU ld section
 
13884
      ld_shlibs_F77=no
 
13885
      ;;
 
13886
 
 
13887
    bsdi[45]*)
 
13888
      export_dynamic_flag_spec_F77=-rdynamic
 
13889
      ;;
 
13890
 
 
13891
    cygwin* | mingw* | pw32*)
 
13892
      # When not using gcc, we currently assume that we are using
 
13893
      # Microsoft Visual C++.
 
13894
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13895
      # no search path for DLLs.
 
13896
      hardcode_libdir_flag_spec_F77=' '
 
13897
      allow_undefined_flag_F77=unsupported
 
13898
      # Tell ltmain to make .lib files, not .a files.
 
13899
      libext=lib
 
13900
      # Tell ltmain to make .dll files, not .so files.
 
13901
      shrext_cmds=".dll"
 
13902
      # FIXME: Setting linknames here is a bad hack.
 
13903
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13904
      # The linker will automatically build a .lib file if we build a DLL.
 
13905
      old_archive_From_new_cmds_F77='true'
 
13906
      # FIXME: Should let the user specify the lib program.
 
13907
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13908
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
13909
      enable_shared_with_static_runtimes_F77=yes
 
13910
      ;;
 
13911
 
 
13912
    darwin* | rhapsody*)
 
13913
      case $host_os in
 
13914
        rhapsody* | darwin1.[012])
 
13915
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
13916
         ;;
 
13917
       *) # Darwin 1.3 on
 
13918
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13919
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13920
         else
 
13921
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
13922
             10.[012])
 
13923
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13924
               ;;
 
13925
             10.*)
 
13926
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
13927
               ;;
 
13928
           esac
 
13929
         fi
 
13930
         ;;
 
13931
      esac
 
13932
      archive_cmds_need_lc_F77=no
 
13933
      hardcode_direct_F77=no
 
13934
      hardcode_automatic_F77=yes
 
13935
      hardcode_shlibpath_var_F77=unsupported
 
13936
      whole_archive_flag_spec_F77=''
 
13937
      link_all_deplibs_F77=yes
 
13938
    if test "$GCC" = yes ; then
 
13939
        output_verbose_link_cmd='echo'
 
13940
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13941
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13942
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13943
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13944
      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}'
 
13945
    else
 
13946
      case $cc_basename in
 
13947
        xlc*)
 
13948
         output_verbose_link_cmd='echo'
 
13949
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
13950
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13951
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13952
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13953
          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}'
 
13954
          ;;
 
13955
       *)
 
13956
         ld_shlibs_F77=no
 
13957
          ;;
 
13958
      esac
 
13959
    fi
 
13960
      ;;
 
13961
 
 
13962
    dgux*)
 
13963
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13964
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13965
      hardcode_shlibpath_var_F77=no
 
13966
      ;;
 
13967
 
 
13968
    freebsd1*)
 
13969
      ld_shlibs_F77=no
 
13970
      ;;
 
13971
 
 
13972
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
13973
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
13974
    # does not break anything, and helps significantly (at the cost of a little
 
13975
    # extra space).
 
13976
    freebsd2.2*)
 
13977
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
13978
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13979
      hardcode_direct_F77=yes
 
13980
      hardcode_shlibpath_var_F77=no
 
13981
      ;;
 
13982
 
 
13983
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
13984
    freebsd2*)
 
13985
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13986
      hardcode_direct_F77=yes
 
13987
      hardcode_minus_L_F77=yes
 
13988
      hardcode_shlibpath_var_F77=no
 
13989
      ;;
 
13990
 
 
13991
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
13992
    freebsd* | dragonfly*)
 
13993
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
13994
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13995
      hardcode_direct_F77=yes
 
13996
      hardcode_shlibpath_var_F77=no
 
13997
      ;;
 
13998
 
 
13999
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
14000
    kfreebsd*-gnu)
 
14001
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14002
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14003
      hardcode_direct_F77=yes
 
14004
      hardcode_shlibpath_var_F77=no
 
14005
      link_all_deplibs_F77=no
 
14006
      ;;
 
14007
 
 
14008
    hpux9*)
 
14009
      if test "$GCC" = yes; then
 
14010
        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'
 
14011
      else
 
14012
        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'
 
14013
      fi
 
14014
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14015
      hardcode_libdir_separator_F77=:
 
14016
      hardcode_direct_F77=yes
 
14017
 
 
14018
      # hardcode_minus_L: Not really in the search PATH,
 
14019
      # but as the default location of the library.
 
14020
      hardcode_minus_L_F77=yes
 
14021
      export_dynamic_flag_spec_F77='${wl}-E'
 
14022
      ;;
 
14023
 
 
14024
    hpux10*)
 
14025
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14026
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14027
      else
 
14028
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14029
      fi
 
14030
      if test "$with_gnu_ld" = no; then
 
14031
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14032
        hardcode_libdir_separator_F77=:
 
14033
 
 
14034
        hardcode_direct_F77=yes
 
14035
        export_dynamic_flag_spec_F77='${wl}-E'
 
14036
 
 
14037
        # hardcode_minus_L: Not really in the search PATH,
 
14038
        # but as the default location of the library.
 
14039
        hardcode_minus_L_F77=yes
 
14040
      fi
 
14041
      ;;
 
14042
 
 
14043
    hpux11*)
 
14044
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14045
        case $host_cpu in
 
14046
        hppa*64*)
 
14047
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14048
          ;;
 
14049
        ia64*)
 
14050
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14051
          ;;
 
14052
        *)
 
14053
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14054
          ;;
 
14055
        esac
 
14056
      else
 
14057
        case $host_cpu in
 
14058
        hppa*64*)
 
14059
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14060
          ;;
 
14061
        ia64*)
 
14062
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14063
          ;;
 
14064
        *)
 
14065
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14066
          ;;
 
14067
        esac
 
14068
      fi
 
14069
      if test "$with_gnu_ld" = no; then
 
14070
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14071
        hardcode_libdir_separator_F77=:
 
14072
 
 
14073
        case $host_cpu in
 
14074
        hppa*64*|ia64*)
 
14075
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14076
          hardcode_direct_F77=no
 
14077
          hardcode_shlibpath_var_F77=no
 
14078
          ;;
 
14079
        *)
 
14080
          hardcode_direct_F77=yes
 
14081
          export_dynamic_flag_spec_F77='${wl}-E'
 
14082
 
 
14083
          # hardcode_minus_L: Not really in the search PATH,
 
14084
          # but as the default location of the library.
 
14085
          hardcode_minus_L_F77=yes
 
14086
          ;;
 
14087
        esac
 
14088
      fi
 
14089
      ;;
 
14090
 
 
14091
    irix5* | irix6* | nonstopux*)
 
14092
      if test "$GCC" = yes; then
 
14093
        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'
 
14094
      else
 
14095
        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'
 
14096
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14097
      fi
 
14098
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14099
      hardcode_libdir_separator_F77=:
 
14100
      link_all_deplibs_F77=yes
 
14101
      ;;
 
14102
 
 
14103
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14104
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14105
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14106
      else
 
14107
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14108
      fi
 
14109
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14110
      hardcode_direct_F77=yes
 
14111
      hardcode_shlibpath_var_F77=no
 
14112
      ;;
 
14113
 
 
14114
    newsos6)
 
14115
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14116
      hardcode_direct_F77=yes
 
14117
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14118
      hardcode_libdir_separator_F77=:
 
14119
      hardcode_shlibpath_var_F77=no
 
14120
      ;;
 
14121
 
 
14122
    openbsd*)
 
14123
      hardcode_direct_F77=yes
 
14124
      hardcode_shlibpath_var_F77=no
 
14125
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14126
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14127
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14128
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14129
        export_dynamic_flag_spec_F77='${wl}-E'
 
14130
      else
 
14131
       case $host_os in
 
14132
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14133
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14134
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14135
           ;;
 
14136
         *)
 
14137
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14138
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14139
           ;;
 
14140
       esac
 
14141
      fi
 
14142
      ;;
 
14143
 
 
14144
    os2*)
 
14145
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14146
      hardcode_minus_L_F77=yes
 
14147
      allow_undefined_flag_F77=unsupported
 
14148
      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'
 
14149
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14150
      ;;
 
14151
 
 
14152
    osf3*)
 
14153
      if test "$GCC" = yes; then
 
14154
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14155
        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'
 
14156
      else
 
14157
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14158
        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'
 
14159
      fi
 
14160
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14161
      hardcode_libdir_separator_F77=:
 
14162
      ;;
 
14163
 
 
14164
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14165
      if test "$GCC" = yes; then
 
14166
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14167
        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'
 
14168
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14169
      else
 
14170
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14171
        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'
 
14172
        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~
 
14173
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
14174
 
 
14175
        # Both c and cxx compiler support -rpath directly
 
14176
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14177
      fi
 
14178
      hardcode_libdir_separator_F77=:
 
14179
      ;;
 
14180
 
 
14181
    solaris*)
 
14182
      no_undefined_flag_F77=' -z text'
 
14183
      if test "$GCC" = yes; then
 
14184
        wlarc='${wl}'
 
14185
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14186
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14187
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14188
      else
 
14189
        wlarc=''
 
14190
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14191
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14192
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14193
      fi
 
14194
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14195
      hardcode_shlibpath_var_F77=no
 
14196
      case $host_os in
 
14197
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14198
      *)
 
14199
        # The compiler driver will combine linker options so we
 
14200
        # cannot just pass the convience library names through
 
14201
        # without $wl, iff we do not link with $LD.
 
14202
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14203
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14204
        case $wlarc in
 
14205
        '')
 
14206
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14207
        *)
 
14208
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14209
        esac ;;
 
14210
      esac
 
14211
      link_all_deplibs_F77=yes
 
14212
      ;;
 
14213
 
 
14214
    sunos4*)
 
14215
      if test "x$host_vendor" = xsequent; then
 
14216
        # Use $CC to link under sequent, because it throws in some extra .o
 
14217
        # files that make .init and .fini sections work.
 
14218
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14219
      else
 
14220
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14221
      fi
 
14222
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14223
      hardcode_direct_F77=yes
 
14224
      hardcode_minus_L_F77=yes
 
14225
      hardcode_shlibpath_var_F77=no
 
14226
      ;;
 
14227
 
 
14228
    sysv4)
 
14229
      case $host_vendor in
 
14230
        sni)
 
14231
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14232
          hardcode_direct_F77=yes # is this really true???
 
14233
        ;;
 
14234
        siemens)
 
14235
          ## LD is ld it makes a PLAMLIB
 
14236
          ## CC just makes a GrossModule.
 
14237
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14238
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14239
          hardcode_direct_F77=no
 
14240
        ;;
 
14241
        motorola)
 
14242
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14243
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14244
        ;;
 
14245
      esac
 
14246
      runpath_var='LD_RUN_PATH'
 
14247
      hardcode_shlibpath_var_F77=no
 
14248
      ;;
 
14249
 
 
14250
    sysv4.3*)
 
14251
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14252
      hardcode_shlibpath_var_F77=no
 
14253
      export_dynamic_flag_spec_F77='-Bexport'
 
14254
      ;;
 
14255
 
 
14256
    sysv4*MP*)
 
14257
      if test -d /usr/nec; then
 
14258
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14259
        hardcode_shlibpath_var_F77=no
 
14260
        runpath_var=LD_RUN_PATH
 
14261
        hardcode_runpath_var=yes
 
14262
        ld_shlibs_F77=yes
 
14263
      fi
 
14264
      ;;
 
14265
 
 
14266
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14267
      no_undefined_flag_F77='${wl}-z,text'
 
14268
      archive_cmds_need_lc_F77=no
 
14269
      hardcode_shlibpath_var_F77=no
 
14270
      runpath_var='LD_RUN_PATH'
 
14271
 
 
14272
      if test "$GCC" = yes; then
 
14273
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14274
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14275
      else
 
14276
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14277
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14278
      fi
 
14279
      ;;
 
14280
 
 
14281
    sysv5* | sco3.2v5* | sco5v6*)
 
14282
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14283
      # link with -lc, and that would cause any symbols used from libc to
 
14284
      # always be unresolved, which means just about no library would
 
14285
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14286
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14287
      # as -z defs.
 
14288
      no_undefined_flag_F77='${wl}-z,text'
 
14289
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14290
      archive_cmds_need_lc_F77=no
 
14291
      hardcode_shlibpath_var_F77=no
 
14292
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14293
      hardcode_libdir_separator_F77=':'
 
14294
      link_all_deplibs_F77=yes
 
14295
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14296
      runpath_var='LD_RUN_PATH'
 
14297
 
 
14298
      if test "$GCC" = yes; then
 
14299
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14300
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14301
      else
 
14302
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14303
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14304
      fi
 
14305
      ;;
 
14306
 
 
14307
    uts4*)
 
14308
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14309
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14310
      hardcode_shlibpath_var_F77=no
 
14311
      ;;
 
14312
 
 
14313
    *)
 
14314
      ld_shlibs_F77=no
 
14315
      ;;
 
14316
    esac
 
14317
  fi
 
14318
 
 
14319
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14320
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14321
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14322
 
 
14323
#
 
14324
# Do we need to explicitly link libc?
 
14325
#
 
14326
case "x$archive_cmds_need_lc_F77" in
 
14327
x|xyes)
 
14328
  # Assume -lc should be added
 
14329
  archive_cmds_need_lc_F77=yes
 
14330
 
 
14331
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14332
    case $archive_cmds_F77 in
 
14333
    *'~'*)
 
14334
      # FIXME: we may have to deal with multi-command sequences.
 
14335
      ;;
 
14336
    '$CC '*)
 
14337
      # Test whether the compiler implicitly links with -lc since on some
 
14338
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14339
      # to ld, don't add -lc before -lgcc.
 
14340
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14341
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14342
      $rm conftest*
 
14343
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14344
 
 
14345
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14346
  (eval $ac_compile) 2>&5
 
14347
  ac_status=$?
 
14348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14349
  (exit $ac_status); } 2>conftest.err; then
 
14350
        soname=conftest
 
14351
        lib=conftest
 
14352
        libobjs=conftest.$ac_objext
 
14353
        deplibs=
 
14354
        wl=$lt_prog_compiler_wl_F77
 
14355
        pic_flag=$lt_prog_compiler_pic_F77
 
14356
        compiler_flags=-v
 
14357
        linker_flags=-v
 
14358
        verstring=
 
14359
        output_objdir=.
 
14360
        libname=conftest
 
14361
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14362
        allow_undefined_flag_F77=
 
14363
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14364
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14365
  ac_status=$?
 
14366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14367
  (exit $ac_status); }
 
14368
        then
 
14369
          archive_cmds_need_lc_F77=no
 
14370
        else
 
14371
          archive_cmds_need_lc_F77=yes
 
14372
        fi
 
14373
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14374
      else
 
14375
        cat conftest.err 1>&5
 
14376
      fi
 
14377
      $rm conftest*
 
14378
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14379
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14380
      ;;
 
14381
    esac
 
14382
  fi
 
14383
  ;;
 
14384
esac
 
14385
 
 
14386
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14387
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14388
library_names_spec=
 
14389
libname_spec='lib$name'
 
14390
soname_spec=
 
14391
shrext_cmds=".so"
 
14392
postinstall_cmds=
 
14393
postuninstall_cmds=
 
14394
finish_cmds=
 
14395
finish_eval=
 
14396
shlibpath_var=
 
14397
shlibpath_overrides_runpath=unknown
 
14398
version_type=none
 
14399
dynamic_linker="$host_os ld.so"
 
14400
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14401
if test "$GCC" = yes; then
 
14402
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14403
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14404
    # if the path contains ";" then we assume it to be the separator
 
14405
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14406
    # assumed that no part of a normal pathname contains ";" but that should
 
14407
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14408
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14409
  else
 
14410
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14411
  fi
 
14412
else
 
14413
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14414
fi
 
14415
need_lib_prefix=unknown
 
14416
hardcode_into_libs=no
 
14417
 
 
14418
# when you set need_version to no, make sure it does not cause -set_version
 
14419
# flags to be left without arguments
 
14420
need_version=unknown
 
14421
 
 
14422
case $host_os in
 
14423
aix3*)
 
14424
  version_type=linux
 
14425
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14426
  shlibpath_var=LIBPATH
 
14427
 
 
14428
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14429
  soname_spec='${libname}${release}${shared_ext}$major'
 
14430
  ;;
 
14431
 
 
14432
aix4* | aix5*)
 
14433
  version_type=linux
 
14434
  need_lib_prefix=no
 
14435
  need_version=no
 
14436
  hardcode_into_libs=yes
 
14437
  if test "$host_cpu" = ia64; then
 
14438
    # AIX 5 supports IA64
 
14439
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14440
    shlibpath_var=LD_LIBRARY_PATH
 
14441
  else
 
14442
    # With GCC up to 2.95.x, collect2 would create an import file
 
14443
    # for dependence libraries.  The import file would start with
 
14444
    # the line `#! .'.  This would cause the generated library to
 
14445
    # depend on `.', always an invalid library.  This was fixed in
 
14446
    # development snapshots of GCC prior to 3.0.
 
14447
    case $host_os in
 
14448
      aix4 | aix4.[01] | aix4.[01].*)
 
14449
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14450
           echo ' yes '
 
14451
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14452
        :
 
14453
      else
 
14454
        can_build_shared=no
 
14455
      fi
 
14456
      ;;
 
14457
    esac
 
14458
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14459
    # soname into executable. Probably we can add versioning support to
 
14460
    # collect2, so additional links can be useful in future.
 
14461
    if test "$aix_use_runtimelinking" = yes; then
 
14462
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14463
      # instead of lib<name>.a to let people know that these are not
 
14464
      # typical AIX shared libraries.
 
14465
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14466
    else
 
14467
      # We preserve .a as extension for shared libraries through AIX4.2
 
14468
      # and later when we are not doing run time linking.
 
14469
      library_names_spec='${libname}${release}.a $libname.a'
 
14470
      soname_spec='${libname}${release}${shared_ext}$major'
 
14471
    fi
 
14472
    shlibpath_var=LIBPATH
 
14473
  fi
 
14474
  ;;
 
14475
 
 
14476
amigaos*)
 
14477
  library_names_spec='$libname.ixlibrary $libname.a'
 
14478
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14479
  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'
 
14480
  ;;
 
14481
 
 
14482
beos*)
 
14483
  library_names_spec='${libname}${shared_ext}'
 
14484
  dynamic_linker="$host_os ld.so"
 
14485
  shlibpath_var=LIBRARY_PATH
 
14486
  ;;
 
14487
 
 
14488
bsdi[45]*)
 
14489
  version_type=linux
 
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
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14494
  shlibpath_var=LD_LIBRARY_PATH
 
14495
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14496
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14497
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14498
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14499
  # libtool to hard-code these into programs
 
14500
  ;;
 
14501
 
 
14502
cygwin* | mingw* | pw32*)
 
14503
  version_type=windows
 
14504
  shrext_cmds=".dll"
 
14505
  need_version=no
 
14506
  need_lib_prefix=no
 
14507
 
 
14508
  case $GCC,$host_os in
 
14509
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14510
    library_names_spec='$libname.dll.a'
 
14511
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14512
    postinstall_cmds='base_file=`basename \${file}`~
 
14513
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14514
      dldir=$destdir/`dirname \$dlpath`~
 
14515
      test -d \$dldir || mkdir -p \$dldir~
 
14516
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14517
      chmod a+x \$dldir/$dlname'
 
14518
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14519
      dlpath=$dir/\$dldll~
 
14520
       $rm \$dlpath'
 
14521
    shlibpath_overrides_runpath=yes
 
14522
 
 
14523
    case $host_os in
 
14524
    cygwin*)
 
14525
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14526
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14527
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14528
      ;;
 
14529
    mingw*)
 
14530
      # MinGW DLLs use traditional 'lib' prefix
 
14531
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14532
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14533
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14534
        # It is most probably a Windows format PATH printed by
 
14535
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14536
        # path with ; separators, and with drive letters. We can handle the
 
14537
        # drive letters (cygwin fileutils understands them), so leave them,
 
14538
        # especially as we might pass files found there to a mingw objdump,
 
14539
        # which wouldn't understand a cygwinified path. Ahh.
 
14540
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14541
      else
 
14542
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14543
      fi
 
14544
      ;;
 
14545
    pw32*)
 
14546
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14547
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14548
      ;;
 
14549
    esac
 
14550
    ;;
 
14551
 
 
14552
  *)
 
14553
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14554
    ;;
 
14555
  esac
 
14556
  dynamic_linker='Win32 ld.exe'
 
14557
  # FIXME: first we should search . and the directory the executable is in
 
14558
  shlibpath_var=PATH
 
14559
  ;;
 
14560
 
 
14561
darwin* | rhapsody*)
 
14562
  dynamic_linker="$host_os dyld"
 
14563
  version_type=darwin
 
14564
  need_lib_prefix=no
 
14565
  need_version=no
 
14566
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14567
  soname_spec='${libname}${release}${major}$shared_ext'
 
14568
  shlibpath_overrides_runpath=yes
 
14569
  shlibpath_var=DYLD_LIBRARY_PATH
 
14570
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14571
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14572
  if test "$GCC" = yes; then
 
14573
    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"`
 
14574
  else
 
14575
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14576
  fi
 
14577
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14578
  ;;
 
14579
 
 
14580
dgux*)
 
14581
  version_type=linux
 
14582
  need_lib_prefix=no
 
14583
  need_version=no
 
14584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14585
  soname_spec='${libname}${release}${shared_ext}$major'
 
14586
  shlibpath_var=LD_LIBRARY_PATH
 
14587
  ;;
 
14588
 
 
14589
freebsd1*)
 
14590
  dynamic_linker=no
 
14591
  ;;
 
14592
 
 
14593
kfreebsd*-gnu)
 
14594
  version_type=linux
 
14595
  need_lib_prefix=no
 
14596
  need_version=no
 
14597
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14598
  soname_spec='${libname}${release}${shared_ext}$major'
 
14599
  shlibpath_var=LD_LIBRARY_PATH
 
14600
  shlibpath_overrides_runpath=no
 
14601
  hardcode_into_libs=yes
 
14602
  dynamic_linker='GNU ld.so'
 
14603
  ;;
 
14604
 
 
14605
freebsd* | dragonfly*)
 
14606
  # DragonFly does not have aout.  When/if they implement a new
 
14607
  # versioning mechanism, adjust this.
 
14608
  if test -x /usr/bin/objformat; then
 
14609
    objformat=`/usr/bin/objformat`
 
14610
  else
 
14611
    case $host_os in
 
14612
    freebsd[123]*) objformat=aout ;;
 
14613
    *) objformat=elf ;;
 
14614
    esac
 
14615
  fi
 
14616
  version_type=freebsd-$objformat
 
14617
  case $version_type in
 
14618
    freebsd-elf*)
 
14619
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14620
      need_version=no
 
14621
      need_lib_prefix=no
 
14622
      ;;
 
14623
    freebsd-*)
 
14624
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14625
      need_version=yes
 
14626
      ;;
 
14627
  esac
 
14628
  shlibpath_var=LD_LIBRARY_PATH
 
14629
  case $host_os in
 
14630
  freebsd2*)
 
14631
    shlibpath_overrides_runpath=yes
 
14632
    ;;
 
14633
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14634
    shlibpath_overrides_runpath=yes
 
14635
    hardcode_into_libs=yes
 
14636
    ;;
 
14637
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14638
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14639
    shlibpath_overrides_runpath=no
 
14640
    hardcode_into_libs=yes
 
14641
    ;;
 
14642
  freebsd*) # from 4.6 on
 
14643
    shlibpath_overrides_runpath=yes
 
14644
    hardcode_into_libs=yes
 
14645
    ;;
 
14646
  esac
 
14647
  ;;
 
14648
 
 
14649
gnu*)
 
14650
  version_type=linux
 
14651
  need_lib_prefix=no
 
14652
  need_version=no
 
14653
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14654
  soname_spec='${libname}${release}${shared_ext}$major'
 
14655
  shlibpath_var=LD_LIBRARY_PATH
 
14656
  hardcode_into_libs=yes
 
14657
  ;;
 
14658
 
 
14659
hpux9* | hpux10* | hpux11*)
 
14660
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14661
  # link against other versions.
 
14662
  version_type=sunos
 
14663
  need_lib_prefix=no
 
14664
  need_version=no
 
14665
  case $host_cpu in
 
14666
  ia64*)
 
14667
    shrext_cmds='.so'
 
14668
    hardcode_into_libs=yes
 
14669
    dynamic_linker="$host_os dld.so"
 
14670
    shlibpath_var=LD_LIBRARY_PATH
 
14671
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14672
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14673
    soname_spec='${libname}${release}${shared_ext}$major'
 
14674
    if test "X$HPUX_IA64_MODE" = X32; then
 
14675
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14676
    else
 
14677
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14678
    fi
 
14679
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14680
    ;;
 
14681
   hppa*64*)
 
14682
     shrext_cmds='.sl'
 
14683
     hardcode_into_libs=yes
 
14684
     dynamic_linker="$host_os dld.sl"
 
14685
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14686
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14687
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14688
     soname_spec='${libname}${release}${shared_ext}$major'
 
14689
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14690
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14691
     ;;
 
14692
   *)
 
14693
    shrext_cmds='.sl'
 
14694
    dynamic_linker="$host_os dld.sl"
 
14695
    shlibpath_var=SHLIB_PATH
 
14696
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14697
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14698
    soname_spec='${libname}${release}${shared_ext}$major'
 
14699
    ;;
 
14700
  esac
 
14701
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14702
  postinstall_cmds='chmod 555 $lib'
 
14703
  ;;
 
14704
 
 
14705
interix3*)
 
14706
  version_type=linux
 
14707
  need_lib_prefix=no
 
14708
  need_version=no
 
14709
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14710
  soname_spec='${libname}${release}${shared_ext}$major'
 
14711
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14712
  shlibpath_var=LD_LIBRARY_PATH
 
14713
  shlibpath_overrides_runpath=no
 
14714
  hardcode_into_libs=yes
 
14715
  ;;
 
14716
 
 
14717
irix5* | irix6* | nonstopux*)
 
14718
  case $host_os in
 
14719
    nonstopux*) version_type=nonstopux ;;
 
14720
    *)
 
14721
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14722
                version_type=linux
 
14723
        else
 
14724
                version_type=irix
 
14725
        fi ;;
 
14726
  esac
 
14727
  need_lib_prefix=no
 
14728
  need_version=no
 
14729
  soname_spec='${libname}${release}${shared_ext}$major'
 
14730
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14731
  case $host_os in
 
14732
  irix5* | nonstopux*)
 
14733
    libsuff= shlibsuff=
 
14734
    ;;
 
14735
  *)
 
14736
    case $LD in # libtool.m4 will add one of these switches to LD
 
14737
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14738
      libsuff= shlibsuff= libmagic=32-bit;;
 
14739
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14740
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14741
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14742
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14743
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14744
    esac
 
14745
    ;;
 
14746
  esac
 
14747
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14748
  shlibpath_overrides_runpath=no
 
14749
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14750
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14751
  hardcode_into_libs=yes
 
14752
  ;;
 
14753
 
 
14754
# No shared lib support for Linux oldld, aout, or coff.
 
14755
linux*oldld* | linux*aout* | linux*coff*)
 
14756
  dynamic_linker=no
 
14757
  ;;
 
14758
 
 
14759
# This must be Linux ELF.
 
14760
linux*)
 
14761
  version_type=linux
 
14762
  need_lib_prefix=no
 
14763
  need_version=no
 
14764
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14765
  soname_spec='${libname}${release}${shared_ext}$major'
 
14766
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14767
  shlibpath_var=LD_LIBRARY_PATH
 
14768
  shlibpath_overrides_runpath=no
 
14769
  # This implies no fast_install, which is unacceptable.
 
14770
  # Some rework will be needed to allow for fast_install
 
14771
  # before this can be enabled.
 
14772
  hardcode_into_libs=yes
 
14773
 
 
14774
  # Append ld.so.conf contents to the search path
 
14775
  if test -f /etc/ld.so.conf; then
 
14776
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14777
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14778
  fi
 
14779
 
 
14780
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14781
  # powerpc, because MkLinux only supported shared libraries with the
 
14782
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14783
  # most powerpc-linux boxes support dynamic linking these days and
 
14784
  # people can always --disable-shared, the test was removed, and we
 
14785
  # assume the GNU/Linux dynamic linker is in use.
 
14786
  dynamic_linker='GNU/Linux ld.so'
 
14787
  ;;
 
14788
 
 
14789
netbsdelf*-gnu)
 
14790
  version_type=linux
 
14791
  need_lib_prefix=no
 
14792
  need_version=no
 
14793
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14794
  soname_spec='${libname}${release}${shared_ext}$major'
 
14795
  shlibpath_var=LD_LIBRARY_PATH
 
14796
  shlibpath_overrides_runpath=no
 
14797
  hardcode_into_libs=yes
 
14798
  dynamic_linker='NetBSD ld.elf_so'
 
14799
  ;;
 
14800
 
 
14801
knetbsd*-gnu)
 
14802
  version_type=linux
 
14803
  need_lib_prefix=no
 
14804
  need_version=no
 
14805
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14806
  soname_spec='${libname}${release}${shared_ext}$major'
 
14807
  shlibpath_var=LD_LIBRARY_PATH
 
14808
  shlibpath_overrides_runpath=no
 
14809
  hardcode_into_libs=yes
 
14810
  dynamic_linker='GNU ld.so'
 
14811
  ;;
 
14812
 
 
14813
netbsd*)
 
14814
  version_type=sunos
 
14815
  need_lib_prefix=no
 
14816
  need_version=no
 
14817
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14818
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14819
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14820
    dynamic_linker='NetBSD (a.out) ld.so'
 
14821
  else
 
14822
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14823
    soname_spec='${libname}${release}${shared_ext}$major'
 
14824
    dynamic_linker='NetBSD ld.elf_so'
 
14825
  fi
 
14826
  shlibpath_var=LD_LIBRARY_PATH
 
14827
  shlibpath_overrides_runpath=yes
 
14828
  hardcode_into_libs=yes
 
14829
  ;;
 
14830
 
 
14831
newsos6)
 
14832
  version_type=linux
 
14833
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14834
  shlibpath_var=LD_LIBRARY_PATH
 
14835
  shlibpath_overrides_runpath=yes
 
14836
  ;;
 
14837
 
 
14838
nto-qnx*)
 
14839
  version_type=linux
 
14840
  need_lib_prefix=no
 
14841
  need_version=no
 
14842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14843
  soname_spec='${libname}${release}${shared_ext}$major'
 
14844
  shlibpath_var=LD_LIBRARY_PATH
 
14845
  shlibpath_overrides_runpath=yes
 
14846
  ;;
 
14847
 
 
14848
openbsd*)
 
14849
  version_type=sunos
 
14850
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14851
  need_lib_prefix=no
 
14852
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14853
  case $host_os in
 
14854
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14855
    *)                         need_version=no  ;;
 
14856
  esac
 
14857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14858
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14859
  shlibpath_var=LD_LIBRARY_PATH
 
14860
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14861
    case $host_os in
 
14862
      openbsd2.[89] | openbsd2.[89].*)
 
14863
        shlibpath_overrides_runpath=no
 
14864
        ;;
 
14865
      *)
 
14866
        shlibpath_overrides_runpath=yes
 
14867
        ;;
 
14868
      esac
 
14869
  else
 
14870
    shlibpath_overrides_runpath=yes
 
14871
  fi
 
14872
  ;;
 
14873
 
 
14874
os2*)
 
14875
  libname_spec='$name'
 
14876
  shrext_cmds=".dll"
 
14877
  need_lib_prefix=no
 
14878
  library_names_spec='$libname${shared_ext} $libname.a'
 
14879
  dynamic_linker='OS/2 ld.exe'
 
14880
  shlibpath_var=LIBPATH
 
14881
  ;;
 
14882
 
 
14883
osf3* | osf4* | osf5*)
 
14884
  version_type=osf
 
14885
  need_lib_prefix=no
 
14886
  need_version=no
 
14887
  soname_spec='${libname}${release}${shared_ext}$major'
 
14888
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14889
  shlibpath_var=LD_LIBRARY_PATH
 
14890
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14891
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14892
  ;;
 
14893
 
 
14894
solaris*)
 
14895
  version_type=linux
 
14896
  need_lib_prefix=no
 
14897
  need_version=no
 
14898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14899
  soname_spec='${libname}${release}${shared_ext}$major'
 
14900
  shlibpath_var=LD_LIBRARY_PATH
 
14901
  shlibpath_overrides_runpath=yes
 
14902
  hardcode_into_libs=yes
 
14903
  # ldd complains unless libraries are executable
 
14904
  postinstall_cmds='chmod +x $lib'
 
14905
  ;;
 
14906
 
 
14907
sunos4*)
 
14908
  version_type=sunos
 
14909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14910
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14911
  shlibpath_var=LD_LIBRARY_PATH
 
14912
  shlibpath_overrides_runpath=yes
 
14913
  if test "$with_gnu_ld" = yes; then
 
14914
    need_lib_prefix=no
 
14915
  fi
 
14916
  need_version=yes
 
14917
  ;;
 
14918
 
 
14919
sysv4 | sysv4.3*)
 
14920
  version_type=linux
 
14921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14922
  soname_spec='${libname}${release}${shared_ext}$major'
 
14923
  shlibpath_var=LD_LIBRARY_PATH
 
14924
  case $host_vendor in
 
14925
    sni)
 
14926
      shlibpath_overrides_runpath=no
 
14927
      need_lib_prefix=no
 
14928
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14929
      runpath_var=LD_RUN_PATH
 
14930
      ;;
 
14931
    siemens)
 
14932
      need_lib_prefix=no
 
14933
      ;;
 
14934
    motorola)
 
14935
      need_lib_prefix=no
 
14936
      need_version=no
 
14937
      shlibpath_overrides_runpath=no
 
14938
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14939
      ;;
 
14940
  esac
 
14941
  ;;
 
14942
 
 
14943
sysv4*MP*)
 
14944
  if test -d /usr/nec ;then
 
14945
    version_type=linux
 
14946
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14947
    soname_spec='$libname${shared_ext}.$major'
 
14948
    shlibpath_var=LD_LIBRARY_PATH
 
14949
  fi
 
14950
  ;;
 
14951
 
 
14952
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14953
  version_type=freebsd-elf
 
14954
  need_lib_prefix=no
 
14955
  need_version=no
 
14956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14957
  soname_spec='${libname}${release}${shared_ext}$major'
 
14958
  shlibpath_var=LD_LIBRARY_PATH
 
14959
  hardcode_into_libs=yes
 
14960
  if test "$with_gnu_ld" = yes; then
 
14961
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14962
    shlibpath_overrides_runpath=no
 
14963
  else
 
14964
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14965
    shlibpath_overrides_runpath=yes
 
14966
    case $host_os in
 
14967
      sco3.2v5*)
 
14968
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14969
        ;;
 
14970
    esac
 
14971
  fi
 
14972
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14973
  ;;
 
14974
 
 
14975
uts4*)
 
14976
  version_type=linux
 
14977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14978
  soname_spec='${libname}${release}${shared_ext}$major'
 
14979
  shlibpath_var=LD_LIBRARY_PATH
 
14980
  ;;
 
14981
 
 
14982
*)
 
14983
  dynamic_linker=no
 
14984
  ;;
 
14985
esac
 
14986
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14987
echo "${ECHO_T}$dynamic_linker" >&6
 
14988
test "$dynamic_linker" = no && can_build_shared=no
 
14989
 
 
14990
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14991
if test "$GCC" = yes; then
 
14992
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14993
fi
 
14994
 
 
14995
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14996
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14997
hardcode_action_F77=
 
14998
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14999
   test -n "$runpath_var_F77" || \
 
15000
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15001
 
 
15002
  # We can hardcode non-existant directories.
 
15003
  if test "$hardcode_direct_F77" != no &&
 
15004
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15005
     # have to relink, otherwise we might link with an installed library
 
15006
     # when we should be linking with a yet-to-be-installed one
 
15007
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15008
     test "$hardcode_minus_L_F77" != no; then
 
15009
    # Linking always hardcodes the temporary library directory.
 
15010
    hardcode_action_F77=relink
 
15011
  else
 
15012
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15013
    hardcode_action_F77=immediate
 
15014
  fi
 
15015
else
 
15016
  # We cannot hardcode anything, or else we can only hardcode existing
 
15017
  # directories.
 
15018
  hardcode_action_F77=unsupported
 
15019
fi
 
15020
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15021
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15022
 
 
15023
if test "$hardcode_action_F77" = relink; then
 
15024
  # Fast installation is not supported
 
15025
  enable_fast_install=no
 
15026
elif test "$shlibpath_overrides_runpath" = yes ||
 
15027
     test "$enable_shared" = no; then
 
15028
  # Fast installation is not necessary
 
15029
  enable_fast_install=needless
 
15030
fi
 
15031
 
 
15032
 
 
15033
# The else clause should only fire when bootstrapping the
 
15034
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15035
# with your package, and you will get complaints that there are
 
15036
# no rules to generate ltmain.sh.
 
15037
if test -f "$ltmain"; then
 
15038
  # See if we are running on zsh, and set the options which allow our commands through
 
15039
  # without removal of \ escapes.
 
15040
  if test -n "${ZSH_VERSION+set}" ; then
 
15041
    setopt NO_GLOB_SUBST
 
15042
  fi
 
15043
  # Now quote all the things that may contain metacharacters while being
 
15044
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15045
  # variables and quote the copies for generation of the libtool script.
 
15046
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15047
    SED SHELL STRIP \
 
15048
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15049
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15050
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15051
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15052
    lt_cv_sys_global_symbol_to_c_name_address \
 
15053
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15054
    old_postinstall_cmds old_postuninstall_cmds \
 
15055
    compiler_F77 \
 
15056
    CC_F77 \
 
15057
    LD_F77 \
 
15058
    lt_prog_compiler_wl_F77 \
 
15059
    lt_prog_compiler_pic_F77 \
 
15060
    lt_prog_compiler_static_F77 \
 
15061
    lt_prog_compiler_no_builtin_flag_F77 \
 
15062
    export_dynamic_flag_spec_F77 \
 
15063
    thread_safe_flag_spec_F77 \
 
15064
    whole_archive_flag_spec_F77 \
 
15065
    enable_shared_with_static_runtimes_F77 \
 
15066
    old_archive_cmds_F77 \
 
15067
    old_archive_from_new_cmds_F77 \
 
15068
    predep_objects_F77 \
 
15069
    postdep_objects_F77 \
 
15070
    predeps_F77 \
 
15071
    postdeps_F77 \
 
15072
    compiler_lib_search_path_F77 \
 
15073
    archive_cmds_F77 \
 
15074
    archive_expsym_cmds_F77 \
 
15075
    postinstall_cmds_F77 \
 
15076
    postuninstall_cmds_F77 \
 
15077
    old_archive_from_expsyms_cmds_F77 \
 
15078
    allow_undefined_flag_F77 \
 
15079
    no_undefined_flag_F77 \
 
15080
    export_symbols_cmds_F77 \
 
15081
    hardcode_libdir_flag_spec_F77 \
 
15082
    hardcode_libdir_flag_spec_ld_F77 \
 
15083
    hardcode_libdir_separator_F77 \
 
15084
    hardcode_automatic_F77 \
 
15085
    module_cmds_F77 \
 
15086
    module_expsym_cmds_F77 \
 
15087
    lt_cv_prog_compiler_c_o_F77 \
 
15088
    exclude_expsyms_F77 \
 
15089
    include_expsyms_F77; do
 
15090
 
 
15091
    case $var in
 
15092
    old_archive_cmds_F77 | \
 
15093
    old_archive_from_new_cmds_F77 | \
 
15094
    archive_cmds_F77 | \
 
15095
    archive_expsym_cmds_F77 | \
 
15096
    module_cmds_F77 | \
 
15097
    module_expsym_cmds_F77 | \
 
15098
    old_archive_from_expsyms_cmds_F77 | \
 
15099
    export_symbols_cmds_F77 | \
 
15100
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15101
    postinstall_cmds | postuninstall_cmds | \
 
15102
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15103
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15104
      # Double-quote double-evaled strings.
 
15105
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15106
      ;;
 
15107
    *)
 
15108
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15109
      ;;
 
15110
    esac
 
15111
  done
 
15112
 
 
15113
  case $lt_echo in
 
15114
  *'\$0 --fallback-echo"')
 
15115
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15116
    ;;
 
15117
  esac
 
15118
 
 
15119
cfgfile="$ofile"
 
15120
 
 
15121
  cat <<__EOF__ >> "$cfgfile"
 
15122
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15123
 
 
15124
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15125
 
 
15126
# Shell to use when invoking shell scripts.
 
15127
SHELL=$lt_SHELL
 
15128
 
 
15129
# Whether or not to build shared libraries.
 
15130
build_libtool_libs=$enable_shared
 
15131
 
 
15132
# Whether or not to build static libraries.
 
15133
build_old_libs=$enable_static
 
15134
 
 
15135
# Whether or not to add -lc for building shared libraries.
 
15136
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15137
 
 
15138
# Whether or not to disallow shared libs when runtime libs are static
 
15139
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15140
 
 
15141
# Whether or not to optimize for fast installation.
 
15142
fast_install=$enable_fast_install
 
15143
 
 
15144
# The host system.
 
15145
host_alias=$host_alias
 
15146
host=$host
 
15147
host_os=$host_os
 
15148
 
 
15149
# The build system.
 
15150
build_alias=$build_alias
 
15151
build=$build
 
15152
build_os=$build_os
 
15153
 
 
15154
# An echo program that does not interpret backslashes.
 
15155
echo=$lt_echo
 
15156
 
 
15157
# The archiver.
 
15158
AR=$lt_AR
 
15159
AR_FLAGS=$lt_AR_FLAGS
 
15160
 
 
15161
# A C compiler.
 
15162
LTCC=$lt_LTCC
 
15163
 
 
15164
# LTCC compiler flags.
 
15165
LTCFLAGS=$lt_LTCFLAGS
 
15166
 
 
15167
# A language-specific compiler.
 
15168
CC=$lt_compiler_F77
 
15169
 
 
15170
# Is the compiler the GNU C compiler?
 
15171
with_gcc=$GCC_F77
 
15172
 
 
15173
# An ERE matcher.
 
15174
EGREP=$lt_EGREP
 
15175
 
 
15176
# The linker used to build libraries.
 
15177
LD=$lt_LD_F77
 
15178
 
 
15179
# Whether we need hard or soft links.
 
15180
LN_S=$lt_LN_S
 
15181
 
 
15182
# A BSD-compatible nm program.
 
15183
NM=$lt_NM
 
15184
 
 
15185
# A symbol stripping program
 
15186
STRIP=$lt_STRIP
 
15187
 
 
15188
# Used to examine libraries when file_magic_cmd begins "file"
 
15189
MAGIC_CMD=$MAGIC_CMD
 
15190
 
 
15191
# Used on cygwin: DLL creation program.
 
15192
DLLTOOL="$DLLTOOL"
 
15193
 
 
15194
# Used on cygwin: object dumper.
 
15195
OBJDUMP="$OBJDUMP"
 
15196
 
 
15197
# Used on cygwin: assembler.
 
15198
AS="$AS"
 
15199
 
 
15200
# The name of the directory that contains temporary libtool files.
 
15201
objdir=$objdir
 
15202
 
 
15203
# How to create reloadable object files.
 
15204
reload_flag=$lt_reload_flag
 
15205
reload_cmds=$lt_reload_cmds
 
15206
 
 
15207
# How to pass a linker flag through the compiler.
 
15208
wl=$lt_lt_prog_compiler_wl_F77
 
15209
 
 
15210
# Object file suffix (normally "o").
 
15211
objext="$ac_objext"
 
15212
 
 
15213
# Old archive suffix (normally "a").
 
15214
libext="$libext"
 
15215
 
 
15216
# Shared library suffix (normally ".so").
 
15217
shrext_cmds='$shrext_cmds'
 
15218
 
 
15219
# Executable file suffix (normally "").
 
15220
exeext="$exeext"
 
15221
 
 
15222
# Additional compiler flags for building library objects.
 
15223
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15224
pic_mode=$pic_mode
 
15225
 
 
15226
# What is the maximum length of a command?
 
15227
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15228
 
 
15229
# Does compiler simultaneously support -c and -o options?
 
15230
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15231
 
 
15232
# Must we lock files when doing compilation?
 
15233
need_locks=$lt_need_locks
 
15234
 
 
15235
# Do we need the lib prefix for modules?
 
15236
need_lib_prefix=$need_lib_prefix
 
15237
 
 
15238
# Do we need a version for libraries?
 
15239
need_version=$need_version
 
15240
 
 
15241
# Whether dlopen is supported.
 
15242
dlopen_support=$enable_dlopen
 
15243
 
 
15244
# Whether dlopen of programs is supported.
 
15245
dlopen_self=$enable_dlopen_self
 
15246
 
 
15247
# Whether dlopen of statically linked programs is supported.
 
15248
dlopen_self_static=$enable_dlopen_self_static
 
15249
 
 
15250
# Compiler flag to prevent dynamic linking.
 
15251
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15252
 
 
15253
# Compiler flag to turn off builtin functions.
 
15254
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15255
 
 
15256
# Compiler flag to allow reflexive dlopens.
 
15257
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15258
 
 
15259
# Compiler flag to generate shared objects directly from archives.
 
15260
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15261
 
 
15262
# Compiler flag to generate thread-safe objects.
 
15263
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15264
 
 
15265
# Library versioning type.
 
15266
version_type=$version_type
 
15267
 
 
15268
# Format of library name prefix.
 
15269
libname_spec=$lt_libname_spec
 
15270
 
 
15271
# List of archive names.  First name is the real one, the rest are links.
 
15272
# The last name is the one that the linker finds with -lNAME.
 
15273
library_names_spec=$lt_library_names_spec
 
15274
 
 
15275
# The coded name of the library, if different from the real name.
 
15276
soname_spec=$lt_soname_spec
 
15277
 
 
15278
# Commands used to build and install an old-style archive.
 
15279
RANLIB=$lt_RANLIB
 
15280
old_archive_cmds=$lt_old_archive_cmds_F77
 
15281
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15282
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15283
 
 
15284
# Create an old-style archive from a shared archive.
 
15285
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15286
 
 
15287
# Create a temporary old-style archive to link instead of a shared archive.
 
15288
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15289
 
 
15290
# Commands used to build and install a shared archive.
 
15291
archive_cmds=$lt_archive_cmds_F77
 
15292
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15293
postinstall_cmds=$lt_postinstall_cmds
 
15294
postuninstall_cmds=$lt_postuninstall_cmds
 
15295
 
 
15296
# Commands used to build a loadable module (assumed same as above if empty)
 
15297
module_cmds=$lt_module_cmds_F77
 
15298
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15299
 
 
15300
# Commands to strip libraries.
 
15301
old_striplib=$lt_old_striplib
 
15302
striplib=$lt_striplib
 
15303
 
 
15304
# Dependencies to place before the objects being linked to create a
 
15305
# shared library.
 
15306
predep_objects=$lt_predep_objects_F77
 
15307
 
 
15308
# Dependencies to place after the objects being linked to create a
 
15309
# shared library.
 
15310
postdep_objects=$lt_postdep_objects_F77
 
15311
 
 
15312
# Dependencies to place before the objects being linked to create a
 
15313
# shared library.
 
15314
predeps=$lt_predeps_F77
 
15315
 
 
15316
# Dependencies to place after the objects being linked to create a
 
15317
# shared library.
 
15318
postdeps=$lt_postdeps_F77
 
15319
 
 
15320
# The library search path used internally by the compiler when linking
 
15321
# a shared library.
 
15322
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15323
 
 
15324
# Method to check whether dependent libraries are shared objects.
 
15325
deplibs_check_method=$lt_deplibs_check_method
 
15326
 
 
15327
# Command to use when deplibs_check_method == file_magic.
 
15328
file_magic_cmd=$lt_file_magic_cmd
 
15329
 
 
15330
# Flag that allows shared libraries with undefined symbols to be built.
 
15331
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15332
 
 
15333
# Flag that forces no undefined symbols.
 
15334
no_undefined_flag=$lt_no_undefined_flag_F77
 
15335
 
 
15336
# Commands used to finish a libtool library installation in a directory.
 
15337
finish_cmds=$lt_finish_cmds
 
15338
 
 
15339
# Same as above, but a single script fragment to be evaled but not shown.
 
15340
finish_eval=$lt_finish_eval
 
15341
 
 
15342
# Take the output of nm and produce a listing of raw symbols and C names.
 
15343
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15344
 
 
15345
# Transform the output of nm in a proper C declaration
 
15346
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15347
 
 
15348
# Transform the output of nm in a C name address pair
 
15349
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15350
 
 
15351
# This is the shared library runtime path variable.
 
15352
runpath_var=$runpath_var
 
15353
 
 
15354
# This is the shared library path variable.
 
15355
shlibpath_var=$shlibpath_var
 
15356
 
 
15357
# Is shlibpath searched before the hard-coded library search path?
 
15358
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15359
 
 
15360
# How to hardcode a shared library path into an executable.
 
15361
hardcode_action=$hardcode_action_F77
 
15362
 
 
15363
# Whether we should hardcode library paths into libraries.
 
15364
hardcode_into_libs=$hardcode_into_libs
 
15365
 
 
15366
# Flag to hardcode \$libdir into a binary during linking.
 
15367
# This must work even if \$libdir does not exist.
 
15368
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15369
 
 
15370
# If ld is used when linking, flag to hardcode \$libdir into
 
15371
# a binary during linking. This must work even if \$libdir does
 
15372
# not exist.
 
15373
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15374
 
 
15375
# Whether we need a single -rpath flag with a separated argument.
 
15376
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15377
 
 
15378
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15379
# resulting binary.
 
15380
hardcode_direct=$hardcode_direct_F77
 
15381
 
 
15382
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15383
# resulting binary.
 
15384
hardcode_minus_L=$hardcode_minus_L_F77
 
15385
 
 
15386
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15387
# the resulting binary.
 
15388
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15389
 
 
15390
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15391
# and all subsequent libraries and executables linked against it.
 
15392
hardcode_automatic=$hardcode_automatic_F77
 
15393
 
 
15394
# Variables whose values should be saved in libtool wrapper scripts and
 
15395
# restored at relink time.
 
15396
variables_saved_for_relink="$variables_saved_for_relink"
 
15397
 
 
15398
# Whether libtool must link a program against all its dependency libraries.
 
15399
link_all_deplibs=$link_all_deplibs_F77
 
15400
 
 
15401
# Compile-time system search path for libraries
 
15402
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15403
 
 
15404
# Run-time system search path for libraries
 
15405
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15406
 
 
15407
# Fix the shell variable \$srcfile for the compiler.
 
15408
fix_srcfile_path="$fix_srcfile_path_F77"
 
15409
 
 
15410
# Set to yes if exported symbols are required.
 
15411
always_export_symbols=$always_export_symbols_F77
 
15412
 
 
15413
# The commands to list exported symbols.
 
15414
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15415
 
 
15416
# The commands to extract the exported symbol list from a shared archive.
 
15417
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15418
 
 
15419
# Symbols that should not be listed in the preloaded symbols.
 
15420
exclude_expsyms=$lt_exclude_expsyms_F77
 
15421
 
 
15422
# Symbols that must always be exported.
 
15423
include_expsyms=$lt_include_expsyms_F77
 
15424
 
 
15425
# ### END LIBTOOL TAG CONFIG: $tagname
 
15426
 
 
15427
__EOF__
 
15428
 
 
15429
 
 
15430
else
 
15431
  # If there is no Makefile yet, we rely on a make rule to execute
 
15432
  # `config.status --recheck' to rerun these tests and create the
 
15433
  # libtool script then.
 
15434
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15435
  if test -f "$ltmain_in"; then
 
15436
    test -f Makefile && make "$ltmain"
 
15437
  fi
 
15438
fi
 
15439
 
 
15440
 
 
15441
ac_ext=c
 
15442
ac_cpp='$CPP $CPPFLAGS'
 
15443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15446
 
 
15447
CC="$lt_save_CC"
 
15448
 
 
15449
        else
 
15450
          tagname=""
 
15451
        fi
 
15452
        ;;
 
15453
 
 
15454
      GCJ)
 
15455
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15456
 
 
15457
 
 
15458
 
 
15459
# Source file extension for Java test sources.
 
15460
ac_ext=java
 
15461
 
 
15462
# Object file extension for compiled Java test sources.
 
15463
objext=o
 
15464
objext_GCJ=$objext
 
15465
 
 
15466
# Code to be used in simple compile tests
 
15467
lt_simple_compile_test_code="class foo {}\n"
 
15468
 
 
15469
# Code to be used in simple link tests
 
15470
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15471
 
 
15472
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15473
 
 
15474
# If no C compiler was specified, use CC.
 
15475
LTCC=${LTCC-"$CC"}
 
15476
 
 
15477
# If no C compiler flags were specified, use CFLAGS.
 
15478
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15479
 
 
15480
# Allow CC to be a program name with arguments.
 
15481
compiler=$CC
 
15482
 
 
15483
 
 
15484
# save warnings/boilerplate of simple test code
 
15485
ac_outfile=conftest.$ac_objext
 
15486
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15487
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15488
_lt_compiler_boilerplate=`cat conftest.err`
 
15489
$rm conftest*
 
15490
 
 
15491
ac_outfile=conftest.$ac_objext
 
15492
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15493
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15494
_lt_linker_boilerplate=`cat conftest.err`
 
15495
$rm conftest*
 
15496
 
 
15497
 
 
15498
# Allow CC to be a program name with arguments.
 
15499
lt_save_CC="$CC"
 
15500
CC=${GCJ-"gcj"}
 
15501
compiler=$CC
 
15502
compiler_GCJ=$CC
 
15503
for cc_temp in $compiler""; do
 
15504
  case $cc_temp in
 
15505
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15506
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15507
    \-*) ;;
 
15508
    *) break;;
 
15509
  esac
 
15510
done
 
15511
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15512
 
 
15513
 
 
15514
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15515
archive_cmds_need_lc_GCJ=no
 
15516
 
 
15517
old_archive_cmds_GCJ=$old_archive_cmds
 
15518
 
 
15519
 
 
15520
lt_prog_compiler_no_builtin_flag_GCJ=
 
15521
 
 
15522
if test "$GCC" = yes; then
 
15523
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15524
 
 
15525
 
 
15526
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15527
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15528
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15530
else
 
15531
  lt_cv_prog_compiler_rtti_exceptions=no
 
15532
  ac_outfile=conftest.$ac_objext
 
15533
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15534
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15535
   # Insert the option either (1) after the last *FLAGS variable, or
 
15536
   # (2) before a word containing "conftest.", or (3) at the end.
 
15537
   # Note that $ac_compile itself does not contain backslashes and begins
 
15538
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15539
   # The option is referenced via a variable to avoid confusing sed.
 
15540
   lt_compile=`echo "$ac_compile" | $SED \
 
15541
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15542
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15543
   -e 's:$: $lt_compiler_flag:'`
 
15544
   (eval echo "\"\$as_me:15544: $lt_compile\"" >&5)
 
15545
   (eval "$lt_compile" 2>conftest.err)
 
15546
   ac_status=$?
 
15547
   cat conftest.err >&5
 
15548
   echo "$as_me:15548: \$? = $ac_status" >&5
 
15549
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15550
     # The compiler can only warn and ignore the option if not recognized
 
15551
     # So say no if there are warnings other than the usual output.
 
15552
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15553
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15554
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15555
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15556
     fi
 
15557
   fi
 
15558
   $rm conftest*
 
15559
 
 
15560
fi
 
15561
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15562
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15563
 
 
15564
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15565
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15566
else
 
15567
    :
 
15568
fi
 
15569
 
 
15570
fi
 
15571
 
 
15572
lt_prog_compiler_wl_GCJ=
 
15573
lt_prog_compiler_pic_GCJ=
 
15574
lt_prog_compiler_static_GCJ=
 
15575
 
 
15576
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15577
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15578
 
 
15579
  if test "$GCC" = yes; then
 
15580
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15581
    lt_prog_compiler_static_GCJ='-static'
 
15582
 
 
15583
    case $host_os in
 
15584
      aix*)
 
15585
      # All AIX code is PIC.
 
15586
      if test "$host_cpu" = ia64; then
 
15587
        # AIX 5 now supports IA64 processor
 
15588
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15589
      fi
 
15590
      ;;
 
15591
 
 
15592
    amigaos*)
 
15593
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15594
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15595
      # like `-m68040'.
 
15596
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15597
      ;;
 
15598
 
 
15599
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15600
      # PIC is the default for these OSes.
 
15601
      ;;
 
15602
 
 
15603
    mingw* | pw32* | os2*)
 
15604
      # This hack is so that the source file can tell whether it is being
 
15605
      # built for inclusion in a dll (and should export symbols for example).
 
15606
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15607
      ;;
 
15608
 
 
15609
    darwin* | rhapsody*)
 
15610
      # PIC is the default on this platform
 
15611
      # Common symbols not allowed in MH_DYLIB files
 
15612
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15613
      ;;
 
15614
 
 
15615
    interix3*)
 
15616
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
15617
      # Instead, we relocate shared libraries at runtime.
 
15618
      ;;
 
15619
 
 
15620
    msdosdjgpp*)
 
15621
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15622
      # on systems that don't support them.
 
15623
      lt_prog_compiler_can_build_shared_GCJ=no
 
15624
      enable_shared=no
 
15625
      ;;
 
15626
 
 
15627
    sysv4*MP*)
 
15628
      if test -d /usr/nec; then
 
15629
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15630
      fi
 
15631
      ;;
 
15632
 
 
15633
    hpux*)
 
15634
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15635
      # not for PA HP-UX.
 
15636
      case $host_cpu in
 
15637
      hppa*64*|ia64*)
 
15638
        # +Z the default
 
15639
        ;;
 
15640
      *)
 
15641
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15642
        ;;
 
15643
      esac
 
15644
      ;;
 
15645
 
 
15646
    *)
 
15647
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15648
      ;;
 
15649
    esac
 
15650
  else
 
15651
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15652
    case $host_os in
 
15653
    aix*)
 
15654
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15655
      if test "$host_cpu" = ia64; then
 
15656
        # AIX 5 now supports IA64 processor
 
15657
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15658
      else
 
15659
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15660
      fi
 
15661
      ;;
 
15662
      darwin*)
 
15663
        # PIC is the default on this platform
 
15664
        # Common symbols not allowed in MH_DYLIB files
 
15665
       case $cc_basename in
 
15666
         xlc*)
 
15667
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15668
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15669
         ;;
 
15670
       esac
 
15671
       ;;
 
15672
 
 
15673
    mingw* | pw32* | os2*)
 
15674
      # This hack is so that the source file can tell whether it is being
 
15675
      # built for inclusion in a dll (and should export symbols for example).
 
15676
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15677
      ;;
 
15678
 
 
15679
    hpux9* | hpux10* | hpux11*)
 
15680
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15681
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15682
      # not for PA HP-UX.
 
15683
      case $host_cpu in
 
15684
      hppa*64*|ia64*)
 
15685
        # +Z the default
 
15686
        ;;
 
15687
      *)
 
15688
        lt_prog_compiler_pic_GCJ='+Z'
 
15689
        ;;
 
15690
      esac
 
15691
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15692
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15693
      ;;
 
15694
 
 
15695
    irix5* | irix6* | nonstopux*)
 
15696
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15697
      # PIC (with -KPIC) is the default.
 
15698
      lt_prog_compiler_static_GCJ='-non_shared'
 
15699
      ;;
 
15700
 
 
15701
    newsos6)
 
15702
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15703
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15704
      ;;
 
15705
 
 
15706
    linux*)
 
15707
      case $cc_basename in
 
15708
      icc* | ecc*)
 
15709
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15710
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15711
        lt_prog_compiler_static_GCJ='-static'
 
15712
        ;;
 
15713
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15714
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15715
        # which looks to be a dead project)
 
15716
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15717
        lt_prog_compiler_pic_GCJ='-fpic'
 
15718
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15719
        ;;
 
15720
      ccc*)
 
15721
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15722
        # All Alpha code is PIC.
 
15723
        lt_prog_compiler_static_GCJ='-non_shared'
 
15724
        ;;
 
15725
      esac
 
15726
      ;;
 
15727
 
 
15728
    osf3* | osf4* | osf5*)
 
15729
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15730
      # All OSF/1 code is PIC.
 
15731
      lt_prog_compiler_static_GCJ='-non_shared'
 
15732
      ;;
 
15733
 
 
15734
    solaris*)
 
15735
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15736
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15737
      case $cc_basename in
 
15738
      f77* | f90* | f95*)
 
15739
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15740
      *)
 
15741
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15742
      esac
 
15743
      ;;
 
15744
 
 
15745
    sunos4*)
 
15746
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15747
      lt_prog_compiler_pic_GCJ='-PIC'
 
15748
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15749
      ;;
 
15750
 
 
15751
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
15752
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15753
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15754
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15755
      ;;
 
15756
 
 
15757
    sysv4*MP*)
 
15758
      if test -d /usr/nec ;then
 
15759
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15760
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15761
      fi
 
15762
      ;;
 
15763
 
 
15764
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
15765
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15766
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15767
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15768
      ;;
 
15769
 
 
15770
    unicos*)
 
15771
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15772
      lt_prog_compiler_can_build_shared_GCJ=no
 
15773
      ;;
 
15774
 
 
15775
    uts4*)
 
15776
      lt_prog_compiler_pic_GCJ='-pic'
 
15777
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15778
      ;;
 
15779
 
 
15780
    *)
 
15781
      lt_prog_compiler_can_build_shared_GCJ=no
 
15782
      ;;
 
15783
    esac
 
15784
  fi
 
15785
 
 
15786
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15787
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15788
 
 
15789
#
 
15790
# Check to make sure the PIC flag actually works.
 
15791
#
 
15792
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15793
 
 
15794
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15795
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15796
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15798
else
 
15799
  lt_prog_compiler_pic_works_GCJ=no
 
15800
  ac_outfile=conftest.$ac_objext
 
15801
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15802
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15803
   # Insert the option either (1) after the last *FLAGS variable, or
 
15804
   # (2) before a word containing "conftest.", or (3) at the end.
 
15805
   # Note that $ac_compile itself does not contain backslashes and begins
 
15806
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15807
   # The option is referenced via a variable to avoid confusing sed.
 
15808
   lt_compile=`echo "$ac_compile" | $SED \
 
15809
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15810
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15811
   -e 's:$: $lt_compiler_flag:'`
 
15812
   (eval echo "\"\$as_me:15812: $lt_compile\"" >&5)
 
15813
   (eval "$lt_compile" 2>conftest.err)
 
15814
   ac_status=$?
 
15815
   cat conftest.err >&5
 
15816
   echo "$as_me:15816: \$? = $ac_status" >&5
 
15817
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15818
     # The compiler can only warn and ignore the option if not recognized
 
15819
     # So say no if there are warnings other than the usual output.
 
15820
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15821
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15822
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15823
       lt_prog_compiler_pic_works_GCJ=yes
 
15824
     fi
 
15825
   fi
 
15826
   $rm conftest*
 
15827
 
 
15828
fi
 
15829
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15830
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15831
 
 
15832
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15833
    case $lt_prog_compiler_pic_GCJ in
 
15834
     "" | " "*) ;;
 
15835
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15836
     esac
 
15837
else
 
15838
    lt_prog_compiler_pic_GCJ=
 
15839
     lt_prog_compiler_can_build_shared_GCJ=no
 
15840
fi
 
15841
 
 
15842
fi
 
15843
case $host_os in
 
15844
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15845
  *djgpp*)
 
15846
    lt_prog_compiler_pic_GCJ=
 
15847
    ;;
 
15848
  *)
 
15849
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15850
    ;;
 
15851
esac
 
15852
 
 
15853
#
 
15854
# Check to make sure the static flag actually works.
 
15855
#
 
15856
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
15857
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15858
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
15859
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
15860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15861
else
 
15862
  lt_prog_compiler_static_works_GCJ=no
 
15863
   save_LDFLAGS="$LDFLAGS"
 
15864
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
15865
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
15866
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15867
     # The linker can only warn and ignore the option if not recognized
 
15868
     # So say no if there are warnings
 
15869
     if test -s conftest.err; then
 
15870
       # Append any errors to the config.log.
 
15871
       cat conftest.err 1>&5
 
15872
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
15873
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15874
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15875
         lt_prog_compiler_static_works_GCJ=yes
 
15876
       fi
 
15877
     else
 
15878
       lt_prog_compiler_static_works_GCJ=yes
 
15879
     fi
 
15880
   fi
 
15881
   $rm conftest*
 
15882
   LDFLAGS="$save_LDFLAGS"
 
15883
 
 
15884
fi
 
15885
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
15886
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
15887
 
 
15888
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
15889
    :
 
15890
else
 
15891
    lt_prog_compiler_static_GCJ=
 
15892
fi
 
15893
 
 
15894
 
 
15895
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15896
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15897
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15899
else
 
15900
  lt_cv_prog_compiler_c_o_GCJ=no
 
15901
   $rm -r conftest 2>/dev/null
 
15902
   mkdir conftest
 
15903
   cd conftest
 
15904
   mkdir out
 
15905
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15906
 
 
15907
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15908
   # Insert the option either (1) after the last *FLAGS variable, or
 
15909
   # (2) before a word containing "conftest.", or (3) at the end.
 
15910
   # Note that $ac_compile itself does not contain backslashes and begins
 
15911
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15912
   lt_compile=`echo "$ac_compile" | $SED \
 
15913
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15914
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15915
   -e 's:$: $lt_compiler_flag:'`
 
15916
   (eval echo "\"\$as_me:15916: $lt_compile\"" >&5)
 
15917
   (eval "$lt_compile" 2>out/conftest.err)
 
15918
   ac_status=$?
 
15919
   cat out/conftest.err >&5
 
15920
   echo "$as_me:15920: \$? = $ac_status" >&5
 
15921
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15922
   then
 
15923
     # The compiler can only warn and ignore the option if not recognized
 
15924
     # So say no if there are warnings
 
15925
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15926
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15927
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15928
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15929
     fi
 
15930
   fi
 
15931
   chmod u+w . 2>&5
 
15932
   $rm conftest*
 
15933
   # SGI C++ compiler will create directory out/ii_files/ for
 
15934
   # template instantiation
 
15935
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15936
   $rm out/* && rmdir out
 
15937
   cd ..
 
15938
   rmdir conftest
 
15939
   $rm conftest*
 
15940
 
 
15941
fi
 
15942
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15943
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15944
 
 
15945
 
 
15946
hard_links="nottested"
 
15947
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15948
  # do not overwrite the value of need_locks provided by the user
 
15949
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15950
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15951
  hard_links=yes
 
15952
  $rm conftest*
 
15953
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15954
  touch conftest.a
 
15955
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15956
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15957
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15958
echo "${ECHO_T}$hard_links" >&6
 
15959
  if test "$hard_links" = no; then
 
15960
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15961
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15962
    need_locks=warn
 
15963
  fi
 
15964
else
 
15965
  need_locks=no
 
15966
fi
 
15967
 
 
15968
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15969
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15970
 
 
15971
  runpath_var=
 
15972
  allow_undefined_flag_GCJ=
 
15973
  enable_shared_with_static_runtimes_GCJ=no
 
15974
  archive_cmds_GCJ=
 
15975
  archive_expsym_cmds_GCJ=
 
15976
  old_archive_From_new_cmds_GCJ=
 
15977
  old_archive_from_expsyms_cmds_GCJ=
 
15978
  export_dynamic_flag_spec_GCJ=
 
15979
  whole_archive_flag_spec_GCJ=
 
15980
  thread_safe_flag_spec_GCJ=
 
15981
  hardcode_libdir_flag_spec_GCJ=
 
15982
  hardcode_libdir_flag_spec_ld_GCJ=
 
15983
  hardcode_libdir_separator_GCJ=
 
15984
  hardcode_direct_GCJ=no
 
15985
  hardcode_minus_L_GCJ=no
 
15986
  hardcode_shlibpath_var_GCJ=unsupported
 
15987
  link_all_deplibs_GCJ=unknown
 
15988
  hardcode_automatic_GCJ=no
 
15989
  module_cmds_GCJ=
 
15990
  module_expsym_cmds_GCJ=
 
15991
  always_export_symbols_GCJ=no
 
15992
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15993
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15994
  # included in the symbol list
 
15995
  include_expsyms_GCJ=
 
15996
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15997
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15998
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15999
  # as well as any symbol that contains `d'.
 
16000
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16001
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16002
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16003
  # the symbol is explicitly referenced.  Since portable code cannot
 
16004
  # rely on this symbol name, it's probably fine to never include it in
 
16005
  # preloaded symbol tables.
 
16006
  extract_expsyms_cmds=
 
16007
  # Just being paranoid about ensuring that cc_basename is set.
 
16008
  for cc_temp in $compiler""; do
 
16009
  case $cc_temp in
 
16010
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16011
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16012
    \-*) ;;
 
16013
    *) break;;
 
16014
  esac
 
16015
done
 
16016
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16017
 
 
16018
  case $host_os in
 
16019
  cygwin* | mingw* | pw32*)
 
16020
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16021
    # When not using gcc, we currently assume that we are using
 
16022
    # Microsoft Visual C++.
 
16023
    if test "$GCC" != yes; then
 
16024
      with_gnu_ld=no
 
16025
    fi
 
16026
    ;;
 
16027
  interix*)
 
16028
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16029
    with_gnu_ld=yes
 
16030
    ;;
 
16031
  openbsd*)
 
16032
    with_gnu_ld=no
 
16033
    ;;
 
16034
  esac
 
16035
 
 
16036
  ld_shlibs_GCJ=yes
 
16037
  if test "$with_gnu_ld" = yes; then
 
16038
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16039
    wlarc='${wl}'
 
16040
 
 
16041
    # Set some defaults for GNU ld with shared library support. These
 
16042
    # are reset later if shared libraries are not supported. Putting them
 
16043
    # here allows them to be overridden if necessary.
 
16044
    runpath_var=LD_RUN_PATH
 
16045
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16046
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16047
    # ancient GNU ld didn't support --whole-archive et. al.
 
16048
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16049
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16050
      else
 
16051
        whole_archive_flag_spec_GCJ=
 
16052
    fi
 
16053
    supports_anon_versioning=no
 
16054
    case `$LD -v 2>/dev/null` in
 
16055
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16056
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16057
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16058
      *\ 2.11.*) ;; # other 2.11 versions
 
16059
      *) supports_anon_versioning=yes ;;
 
16060
    esac
 
16061
 
 
16062
    # See if GNU ld supports shared libraries.
 
16063
    case $host_os in
 
16064
    aix3* | aix4* | aix5*)
 
16065
      # On AIX/PPC, the GNU linker is very broken
 
16066
      if test "$host_cpu" != ia64; then
 
16067
        ld_shlibs_GCJ=no
 
16068
        cat <<EOF 1>&2
 
16069
 
 
16070
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16071
*** to be unable to reliably create shared libraries on AIX.
 
16072
*** Therefore, libtool is disabling shared libraries support.  If you
 
16073
*** really care for shared libraries, you may want to modify your PATH
 
16074
*** so that a non-GNU linker is found, and then restart.
 
16075
 
 
16076
EOF
 
16077
      fi
 
16078
      ;;
 
16079
 
 
16080
    amigaos*)
 
16081
      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)'
 
16082
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16083
      hardcode_minus_L_GCJ=yes
 
16084
 
 
16085
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16086
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16087
      # to version 4, is to share data among multiple programs linked
 
16088
      # with the same dynamic library.  Since this doesn't match the
 
16089
      # behavior of shared libraries on other platforms, we can't use
 
16090
      # them.
 
16091
      ld_shlibs_GCJ=no
 
16092
      ;;
 
16093
 
 
16094
    beos*)
 
16095
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16096
        allow_undefined_flag_GCJ=unsupported
 
16097
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16098
        # support --undefined.  This deserves some investigation.  FIXME
 
16099
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16100
      else
 
16101
        ld_shlibs_GCJ=no
 
16102
      fi
 
16103
      ;;
 
16104
 
 
16105
    cygwin* | mingw* | pw32*)
 
16106
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16107
      # as there is no search path for DLLs.
 
16108
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16109
      allow_undefined_flag_GCJ=unsupported
 
16110
      always_export_symbols_GCJ=no
 
16111
      enable_shared_with_static_runtimes_GCJ=yes
 
16112
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16113
 
 
16114
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16115
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16116
        # If the export-symbols file already is a .def file (1st line
 
16117
        # is EXPORTS), use it as is; otherwise, prepend...
 
16118
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16119
          cp $export_symbols $output_objdir/$soname.def;
 
16120
        else
 
16121
          echo EXPORTS > $output_objdir/$soname.def;
 
16122
          cat $export_symbols >> $output_objdir/$soname.def;
 
16123
        fi~
 
16124
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16125
      else
 
16126
        ld_shlibs_GCJ=no
 
16127
      fi
 
16128
      ;;
 
16129
 
 
16130
    interix3*)
 
16131
      hardcode_direct_GCJ=no
 
16132
      hardcode_shlibpath_var_GCJ=no
 
16133
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16134
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16135
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16136
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16137
      # default) and relocated if they conflict, which is a slow very memory
 
16138
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16139
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16140
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16141
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16142
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16143
      ;;
 
16144
 
 
16145
    linux*)
 
16146
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16147
        tmp_addflag=
 
16148
        case $cc_basename,$host_cpu in
 
16149
        pgcc*)                          # Portland Group C compiler
 
16150
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16151
          tmp_addflag=' $pic_flag'
 
16152
          ;;
 
16153
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16154
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16155
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16156
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16157
          tmp_addflag=' -i_dynamic' ;;
 
16158
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16159
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16160
        ifc* | ifort*)                  # Intel Fortran compiler
 
16161
          tmp_addflag=' -nofor_main' ;;
 
16162
        esac
 
16163
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16164
 
 
16165
        if test $supports_anon_versioning = yes; then
 
16166
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16167
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16168
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16169
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16170
        fi
 
16171
        link_all_deplibs_GCJ=no
 
16172
      else
 
16173
        ld_shlibs_GCJ=no
 
16174
      fi
 
16175
      ;;
 
16176
 
 
16177
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16178
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16179
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16180
        wlarc=
 
16181
      else
 
16182
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16183
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16184
      fi
 
16185
      ;;
 
16186
 
 
16187
    solaris*)
 
16188
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16189
        ld_shlibs_GCJ=no
 
16190
        cat <<EOF 1>&2
 
16191
 
 
16192
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16193
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16194
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16195
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16196
*** your PATH or compiler configuration so that the native linker is
 
16197
*** used, and then restart.
 
16198
 
 
16199
EOF
 
16200
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16201
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16202
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16203
      else
 
16204
        ld_shlibs_GCJ=no
 
16205
      fi
 
16206
      ;;
 
16207
 
 
16208
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16209
      case `$LD -v 2>&1` in
 
16210
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16211
        ld_shlibs_GCJ=no
 
16212
        cat <<_LT_EOF 1>&2
 
16213
 
 
16214
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16215
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16216
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16217
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16218
*** your PATH or compiler configuration so that the native linker is
 
16219
*** used, and then restart.
 
16220
 
 
16221
_LT_EOF
 
16222
        ;;
 
16223
        *)
 
16224
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16225
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16226
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16227
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16228
          else
 
16229
            ld_shlibs_GCJ=no
 
16230
          fi
 
16231
        ;;
 
16232
      esac
 
16233
      ;;
 
16234
 
 
16235
    sunos4*)
 
16236
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16237
      wlarc=
 
16238
      hardcode_direct_GCJ=yes
 
16239
      hardcode_shlibpath_var_GCJ=no
 
16240
      ;;
 
16241
 
 
16242
    *)
 
16243
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16244
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16245
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16246
      else
 
16247
        ld_shlibs_GCJ=no
 
16248
      fi
 
16249
      ;;
 
16250
    esac
 
16251
 
 
16252
    if test "$ld_shlibs_GCJ" = no; then
 
16253
      runpath_var=
 
16254
      hardcode_libdir_flag_spec_GCJ=
 
16255
      export_dynamic_flag_spec_GCJ=
 
16256
      whole_archive_flag_spec_GCJ=
 
16257
    fi
 
16258
  else
 
16259
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16260
    case $host_os in
 
16261
    aix3*)
 
16262
      allow_undefined_flag_GCJ=unsupported
 
16263
      always_export_symbols_GCJ=yes
 
16264
      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'
 
16265
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16266
      # are no directories specified by -L.
 
16267
      hardcode_minus_L_GCJ=yes
 
16268
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
16269
        # Neither direct hardcoding nor static linking is supported with a
 
16270
        # broken collect2.
 
16271
        hardcode_direct_GCJ=unsupported
 
16272
      fi
 
16273
      ;;
 
16274
 
 
16275
    aix4* | aix5*)
 
16276
      if test "$host_cpu" = ia64; then
 
16277
        # On IA64, the linker does run time linking by default, so we don't
 
16278
        # have to do anything special.
 
16279
        aix_use_runtimelinking=no
 
16280
        exp_sym_flag='-Bexport'
 
16281
        no_entry_flag=""
 
16282
      else
 
16283
        # If we're using GNU nm, then we don't want the "-C" option.
 
16284
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16285
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16286
          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'
 
16287
        else
 
16288
          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'
 
16289
        fi
 
16290
        aix_use_runtimelinking=no
 
16291
 
 
16292
        # Test if we are trying to use run time linking or normal
 
16293
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16294
        # need to do runtime linking.
 
16295
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16296
          for ld_flag in $LDFLAGS; do
 
16297
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16298
            aix_use_runtimelinking=yes
 
16299
            break
 
16300
          fi
 
16301
          done
 
16302
          ;;
 
16303
        esac
 
16304
 
 
16305
        exp_sym_flag='-bexport'
 
16306
        no_entry_flag='-bnoentry'
 
16307
      fi
 
16308
 
 
16309
      # When large executables or shared objects are built, AIX ld can
 
16310
      # have problems creating the table of contents.  If linking a library
 
16311
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16312
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16313
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16314
 
 
16315
      archive_cmds_GCJ=''
 
16316
      hardcode_direct_GCJ=yes
 
16317
      hardcode_libdir_separator_GCJ=':'
 
16318
      link_all_deplibs_GCJ=yes
 
16319
 
 
16320
      if test "$GCC" = yes; then
 
16321
        case $host_os in aix4.[012]|aix4.[012].*)
 
16322
        # We only want to do this on AIX 4.2 and lower, the check
 
16323
        # below for broken collect2 doesn't work under 4.3+
 
16324
          collect2name=`${CC} -print-prog-name=collect2`
 
16325
          if test -f "$collect2name" && \
 
16326
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16327
          then
 
16328
          # We have reworked collect2
 
16329
          hardcode_direct_GCJ=yes
 
16330
          else
 
16331
          # We have old collect2
 
16332
          hardcode_direct_GCJ=unsupported
 
16333
          # It fails to find uninstalled libraries when the uninstalled
 
16334
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16335
          # to unsupported forces relinking
 
16336
          hardcode_minus_L_GCJ=yes
 
16337
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16338
          hardcode_libdir_separator_GCJ=
 
16339
          fi
 
16340
          ;;
 
16341
        esac
 
16342
        shared_flag='-shared'
 
16343
        if test "$aix_use_runtimelinking" = yes; then
 
16344
          shared_flag="$shared_flag "'${wl}-G'
 
16345
        fi
 
16346
      else
 
16347
        # not using gcc
 
16348
        if test "$host_cpu" = ia64; then
 
16349
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16350
        # chokes on -Wl,-G. The following line is correct:
 
16351
          shared_flag='-G'
 
16352
        else
 
16353
          if test "$aix_use_runtimelinking" = yes; then
 
16354
            shared_flag='${wl}-G'
 
16355
          else
 
16356
            shared_flag='${wl}-bM:SRE'
 
16357
          fi
 
16358
        fi
 
16359
      fi
 
16360
 
 
16361
      # It seems that -bexpall does not export symbols beginning with
 
16362
      # underscore (_), so it is better to generate a list of symbols to export.
 
16363
      always_export_symbols_GCJ=yes
 
16364
      if test "$aix_use_runtimelinking" = yes; then
 
16365
        # Warning - without using the other runtime loading flags (-brtl),
 
16366
        # -berok will link without error, but may produce a broken library.
 
16367
        allow_undefined_flag_GCJ='-berok'
 
16368
       # Determine the default libpath from the value encoded in an empty executable.
 
16369
       cat >conftest.$ac_ext <<_ACEOF
 
16370
/* confdefs.h.  */
 
16371
_ACEOF
 
16372
cat confdefs.h >>conftest.$ac_ext
 
16373
cat >>conftest.$ac_ext <<_ACEOF
 
16374
/* end confdefs.h.  */
 
16375
 
 
16376
int
 
16377
main ()
 
16378
{
 
16379
 
 
16380
  ;
 
16381
  return 0;
 
16382
}
 
16383
_ACEOF
 
16384
rm -f conftest.$ac_objext conftest$ac_exeext
 
16385
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16386
  (eval $ac_link) 2>conftest.er1
 
16387
  ac_status=$?
 
16388
  grep -v '^ *+' conftest.er1 >conftest.err
 
16389
  rm -f conftest.er1
 
16390
  cat conftest.err >&5
 
16391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16392
  (exit $ac_status); } &&
 
16393
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16395
  (eval $ac_try) 2>&5
 
16396
  ac_status=$?
 
16397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16398
  (exit $ac_status); }; } &&
 
16399
         { ac_try='test -s conftest$ac_exeext'
 
16400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16401
  (eval $ac_try) 2>&5
 
16402
  ac_status=$?
 
16403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16404
  (exit $ac_status); }; }; then
 
16405
 
 
16406
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16407
}'`
 
16408
# Check for a 64-bit object if we didn't find anything.
 
16409
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; }
 
16410
}'`; fi
 
16411
else
 
16412
  echo "$as_me: failed program was:" >&5
 
16413
sed 's/^/| /' conftest.$ac_ext >&5
 
16414
 
 
16415
fi
 
16416
rm -f conftest.err conftest.$ac_objext \
 
16417
      conftest$ac_exeext conftest.$ac_ext
 
16418
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16419
 
 
16420
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16421
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16422
       else
 
16423
        if test "$host_cpu" = ia64; then
 
16424
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16425
          allow_undefined_flag_GCJ="-z nodefs"
 
16426
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
16427
        else
 
16428
         # Determine the default libpath from the value encoded in an empty executable.
 
16429
         cat >conftest.$ac_ext <<_ACEOF
 
16430
/* confdefs.h.  */
 
16431
_ACEOF
 
16432
cat confdefs.h >>conftest.$ac_ext
 
16433
cat >>conftest.$ac_ext <<_ACEOF
 
16434
/* end confdefs.h.  */
 
16435
 
 
16436
int
 
16437
main ()
 
16438
{
 
16439
 
 
16440
  ;
 
16441
  return 0;
 
16442
}
 
16443
_ACEOF
 
16444
rm -f conftest.$ac_objext conftest$ac_exeext
 
16445
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16446
  (eval $ac_link) 2>conftest.er1
 
16447
  ac_status=$?
 
16448
  grep -v '^ *+' conftest.er1 >conftest.err
 
16449
  rm -f conftest.er1
 
16450
  cat conftest.err >&5
 
16451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16452
  (exit $ac_status); } &&
 
16453
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16455
  (eval $ac_try) 2>&5
 
16456
  ac_status=$?
 
16457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16458
  (exit $ac_status); }; } &&
 
16459
         { ac_try='test -s conftest$ac_exeext'
 
16460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16461
  (eval $ac_try) 2>&5
 
16462
  ac_status=$?
 
16463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16464
  (exit $ac_status); }; }; then
 
16465
 
 
16466
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16467
}'`
 
16468
# Check for a 64-bit object if we didn't find anything.
 
16469
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; }
 
16470
}'`; fi
 
16471
else
 
16472
  echo "$as_me: failed program was:" >&5
 
16473
sed 's/^/| /' conftest.$ac_ext >&5
 
16474
 
 
16475
fi
 
16476
rm -f conftest.err conftest.$ac_objext \
 
16477
      conftest$ac_exeext conftest.$ac_ext
 
16478
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16479
 
 
16480
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16481
          # Warning - without using the other run time loading flags,
 
16482
          # -berok will link without error, but may produce a broken library.
 
16483
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16484
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16485
          # Exported symbols can be pulled into shared objects from archives
 
16486
          whole_archive_flag_spec_GCJ='$convenience'
 
16487
          archive_cmds_need_lc_GCJ=yes
 
16488
          # This is similar to how AIX traditionally builds its shared libraries.
 
16489
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16490
        fi
 
16491
      fi
 
16492
      ;;
 
16493
 
 
16494
    amigaos*)
 
16495
      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)'
 
16496
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16497
      hardcode_minus_L_GCJ=yes
 
16498
      # see comment about different semantics on the GNU ld section
 
16499
      ld_shlibs_GCJ=no
 
16500
      ;;
 
16501
 
 
16502
    bsdi[45]*)
 
16503
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16504
      ;;
 
16505
 
 
16506
    cygwin* | mingw* | pw32*)
 
16507
      # When not using gcc, we currently assume that we are using
 
16508
      # Microsoft Visual C++.
 
16509
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16510
      # no search path for DLLs.
 
16511
      hardcode_libdir_flag_spec_GCJ=' '
 
16512
      allow_undefined_flag_GCJ=unsupported
 
16513
      # Tell ltmain to make .lib files, not .a files.
 
16514
      libext=lib
 
16515
      # Tell ltmain to make .dll files, not .so files.
 
16516
      shrext_cmds=".dll"
 
16517
      # FIXME: Setting linknames here is a bad hack.
 
16518
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16519
      # The linker will automatically build a .lib file if we build a DLL.
 
16520
      old_archive_From_new_cmds_GCJ='true'
 
16521
      # FIXME: Should let the user specify the lib program.
 
16522
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16523
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16524
      enable_shared_with_static_runtimes_GCJ=yes
 
16525
      ;;
 
16526
 
 
16527
    darwin* | rhapsody*)
 
16528
      case $host_os in
 
16529
        rhapsody* | darwin1.[012])
 
16530
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16531
         ;;
 
16532
       *) # Darwin 1.3 on
 
16533
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16534
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16535
         else
 
16536
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16537
             10.[012])
 
16538
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16539
               ;;
 
16540
             10.*)
 
16541
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16542
               ;;
 
16543
           esac
 
16544
         fi
 
16545
         ;;
 
16546
      esac
 
16547
      archive_cmds_need_lc_GCJ=no
 
16548
      hardcode_direct_GCJ=no
 
16549
      hardcode_automatic_GCJ=yes
 
16550
      hardcode_shlibpath_var_GCJ=unsupported
 
16551
      whole_archive_flag_spec_GCJ=''
 
16552
      link_all_deplibs_GCJ=yes
 
16553
    if test "$GCC" = yes ; then
 
16554
        output_verbose_link_cmd='echo'
 
16555
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16556
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16557
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16558
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16559
      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}'
 
16560
    else
 
16561
      case $cc_basename in
 
16562
        xlc*)
 
16563
         output_verbose_link_cmd='echo'
 
16564
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16565
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16566
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16567
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16568
          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}'
 
16569
          ;;
 
16570
       *)
 
16571
         ld_shlibs_GCJ=no
 
16572
          ;;
 
16573
      esac
 
16574
    fi
 
16575
      ;;
 
16576
 
 
16577
    dgux*)
 
16578
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16579
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16580
      hardcode_shlibpath_var_GCJ=no
 
16581
      ;;
 
16582
 
 
16583
    freebsd1*)
 
16584
      ld_shlibs_GCJ=no
 
16585
      ;;
 
16586
 
 
16587
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16588
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16589
    # does not break anything, and helps significantly (at the cost of a little
 
16590
    # extra space).
 
16591
    freebsd2.2*)
 
16592
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16593
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16594
      hardcode_direct_GCJ=yes
 
16595
      hardcode_shlibpath_var_GCJ=no
 
16596
      ;;
 
16597
 
 
16598
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16599
    freebsd2*)
 
16600
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16601
      hardcode_direct_GCJ=yes
 
16602
      hardcode_minus_L_GCJ=yes
 
16603
      hardcode_shlibpath_var_GCJ=no
 
16604
      ;;
 
16605
 
 
16606
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16607
    freebsd* | dragonfly*)
 
16608
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16609
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16610
      hardcode_direct_GCJ=yes
 
16611
      hardcode_shlibpath_var_GCJ=no
 
16612
      ;;
 
16613
 
 
16614
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
16615
    kfreebsd*-gnu)
 
16616
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16617
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16618
      hardcode_direct_GCJ=yes
 
16619
      hardcode_shlibpath_var_GCJ=no
 
16620
      link_all_deplibs_GCJ=no
 
16621
      ;;
 
16622
 
 
16623
    hpux9*)
 
16624
      if test "$GCC" = yes; then
 
16625
        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'
 
16626
      else
 
16627
        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'
 
16628
      fi
 
16629
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16630
      hardcode_libdir_separator_GCJ=:
 
16631
      hardcode_direct_GCJ=yes
 
16632
 
 
16633
      # hardcode_minus_L: Not really in the search PATH,
 
16634
      # but as the default location of the library.
 
16635
      hardcode_minus_L_GCJ=yes
 
16636
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16637
      ;;
 
16638
 
 
16639
    hpux10*)
 
16640
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16641
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16642
      else
 
16643
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16644
      fi
 
16645
      if test "$with_gnu_ld" = no; then
 
16646
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16647
        hardcode_libdir_separator_GCJ=:
 
16648
 
 
16649
        hardcode_direct_GCJ=yes
 
16650
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16651
 
 
16652
        # hardcode_minus_L: Not really in the search PATH,
 
16653
        # but as the default location of the library.
 
16654
        hardcode_minus_L_GCJ=yes
 
16655
      fi
 
16656
      ;;
 
16657
 
 
16658
    hpux11*)
 
16659
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16660
        case $host_cpu in
 
16661
        hppa*64*)
 
16662
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16663
          ;;
 
16664
        ia64*)
 
16665
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16666
          ;;
 
16667
        *)
 
16668
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16669
          ;;
 
16670
        esac
 
16671
      else
 
16672
        case $host_cpu in
 
16673
        hppa*64*)
 
16674
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16675
          ;;
 
16676
        ia64*)
 
16677
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16678
          ;;
 
16679
        *)
 
16680
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16681
          ;;
 
16682
        esac
 
16683
      fi
 
16684
      if test "$with_gnu_ld" = no; then
 
16685
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16686
        hardcode_libdir_separator_GCJ=:
 
16687
 
 
16688
        case $host_cpu in
 
16689
        hppa*64*|ia64*)
 
16690
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16691
          hardcode_direct_GCJ=no
 
16692
          hardcode_shlibpath_var_GCJ=no
 
16693
          ;;
 
16694
        *)
 
16695
          hardcode_direct_GCJ=yes
 
16696
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16697
 
 
16698
          # hardcode_minus_L: Not really in the search PATH,
 
16699
          # but as the default location of the library.
 
16700
          hardcode_minus_L_GCJ=yes
 
16701
          ;;
 
16702
        esac
 
16703
      fi
 
16704
      ;;
 
16705
 
 
16706
    irix5* | irix6* | nonstopux*)
 
16707
      if test "$GCC" = yes; then
 
16708
        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'
 
16709
      else
 
16710
        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'
 
16711
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16712
      fi
 
16713
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16714
      hardcode_libdir_separator_GCJ=:
 
16715
      link_all_deplibs_GCJ=yes
 
16716
      ;;
 
16717
 
 
16718
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16719
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16720
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16721
      else
 
16722
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16723
      fi
 
16724
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16725
      hardcode_direct_GCJ=yes
 
16726
      hardcode_shlibpath_var_GCJ=no
 
16727
      ;;
 
16728
 
 
16729
    newsos6)
 
16730
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16731
      hardcode_direct_GCJ=yes
 
16732
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16733
      hardcode_libdir_separator_GCJ=:
 
16734
      hardcode_shlibpath_var_GCJ=no
 
16735
      ;;
 
16736
 
 
16737
    openbsd*)
 
16738
      hardcode_direct_GCJ=yes
 
16739
      hardcode_shlibpath_var_GCJ=no
 
16740
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16741
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16742
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16743
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16744
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16745
      else
 
16746
       case $host_os in
 
16747
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16748
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16749
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16750
           ;;
 
16751
         *)
 
16752
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16753
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16754
           ;;
 
16755
       esac
 
16756
      fi
 
16757
      ;;
 
16758
 
 
16759
    os2*)
 
16760
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16761
      hardcode_minus_L_GCJ=yes
 
16762
      allow_undefined_flag_GCJ=unsupported
 
16763
      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'
 
16764
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16765
      ;;
 
16766
 
 
16767
    osf3*)
 
16768
      if test "$GCC" = yes; then
 
16769
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16770
        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'
 
16771
      else
 
16772
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16773
        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'
 
16774
      fi
 
16775
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16776
      hardcode_libdir_separator_GCJ=:
 
16777
      ;;
 
16778
 
 
16779
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16780
      if test "$GCC" = yes; then
 
16781
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16782
        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'
 
16783
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16784
      else
 
16785
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16786
        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'
 
16787
        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~
 
16788
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
16789
 
 
16790
        # Both c and cxx compiler support -rpath directly
 
16791
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16792
      fi
 
16793
      hardcode_libdir_separator_GCJ=:
 
16794
      ;;
 
16795
 
 
16796
    solaris*)
 
16797
      no_undefined_flag_GCJ=' -z text'
 
16798
      if test "$GCC" = yes; then
 
16799
        wlarc='${wl}'
 
16800
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16801
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16802
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16803
      else
 
16804
        wlarc=''
 
16805
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16806
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16807
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16808
      fi
 
16809
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16810
      hardcode_shlibpath_var_GCJ=no
 
16811
      case $host_os in
 
16812
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16813
      *)
 
16814
        # The compiler driver will combine linker options so we
 
16815
        # cannot just pass the convience library names through
 
16816
        # without $wl, iff we do not link with $LD.
 
16817
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16818
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16819
        case $wlarc in
 
16820
        '')
 
16821
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16822
        *)
 
16823
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
16824
        esac ;;
 
16825
      esac
 
16826
      link_all_deplibs_GCJ=yes
 
16827
      ;;
 
16828
 
 
16829
    sunos4*)
 
16830
      if test "x$host_vendor" = xsequent; then
 
16831
        # Use $CC to link under sequent, because it throws in some extra .o
 
16832
        # files that make .init and .fini sections work.
 
16833
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16834
      else
 
16835
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16836
      fi
 
16837
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16838
      hardcode_direct_GCJ=yes
 
16839
      hardcode_minus_L_GCJ=yes
 
16840
      hardcode_shlibpath_var_GCJ=no
 
16841
      ;;
 
16842
 
 
16843
    sysv4)
 
16844
      case $host_vendor in
 
16845
        sni)
 
16846
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16847
          hardcode_direct_GCJ=yes # is this really true???
 
16848
        ;;
 
16849
        siemens)
 
16850
          ## LD is ld it makes a PLAMLIB
 
16851
          ## CC just makes a GrossModule.
 
16852
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16853
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16854
          hardcode_direct_GCJ=no
 
16855
        ;;
 
16856
        motorola)
 
16857
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16858
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16859
        ;;
 
16860
      esac
 
16861
      runpath_var='LD_RUN_PATH'
 
16862
      hardcode_shlibpath_var_GCJ=no
 
16863
      ;;
 
16864
 
 
16865
    sysv4.3*)
 
16866
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16867
      hardcode_shlibpath_var_GCJ=no
 
16868
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16869
      ;;
 
16870
 
 
16871
    sysv4*MP*)
 
16872
      if test -d /usr/nec; then
 
16873
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16874
        hardcode_shlibpath_var_GCJ=no
 
16875
        runpath_var=LD_RUN_PATH
 
16876
        hardcode_runpath_var=yes
 
16877
        ld_shlibs_GCJ=yes
 
16878
      fi
 
16879
      ;;
 
16880
 
 
16881
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
16882
      no_undefined_flag_GCJ='${wl}-z,text'
 
16883
      archive_cmds_need_lc_GCJ=no
 
16884
      hardcode_shlibpath_var_GCJ=no
 
16885
      runpath_var='LD_RUN_PATH'
 
16886
 
 
16887
      if test "$GCC" = yes; then
 
16888
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16889
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16890
      else
 
16891
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16892
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16893
      fi
 
16894
      ;;
 
16895
 
 
16896
    sysv5* | sco3.2v5* | sco5v6*)
 
16897
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16898
      # link with -lc, and that would cause any symbols used from libc to
 
16899
      # always be unresolved, which means just about no library would
 
16900
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16901
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16902
      # as -z defs.
 
16903
      no_undefined_flag_GCJ='${wl}-z,text'
 
16904
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
16905
      archive_cmds_need_lc_GCJ=no
 
16906
      hardcode_shlibpath_var_GCJ=no
 
16907
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
16908
      hardcode_libdir_separator_GCJ=':'
 
16909
      link_all_deplibs_GCJ=yes
 
16910
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16911
      runpath_var='LD_RUN_PATH'
 
16912
 
 
16913
      if test "$GCC" = yes; then
 
16914
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16915
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16916
      else
 
16917
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16918
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16919
      fi
 
16920
      ;;
 
16921
 
 
16922
    uts4*)
 
16923
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16924
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16925
      hardcode_shlibpath_var_GCJ=no
 
16926
      ;;
 
16927
 
 
16928
    *)
 
16929
      ld_shlibs_GCJ=no
 
16930
      ;;
 
16931
    esac
 
16932
  fi
 
16933
 
 
16934
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16935
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16936
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16937
 
 
16938
#
 
16939
# Do we need to explicitly link libc?
 
16940
#
 
16941
case "x$archive_cmds_need_lc_GCJ" in
 
16942
x|xyes)
 
16943
  # Assume -lc should be added
 
16944
  archive_cmds_need_lc_GCJ=yes
 
16945
 
 
16946
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16947
    case $archive_cmds_GCJ in
 
16948
    *'~'*)
 
16949
      # FIXME: we may have to deal with multi-command sequences.
 
16950
      ;;
 
16951
    '$CC '*)
 
16952
      # Test whether the compiler implicitly links with -lc since on some
 
16953
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16954
      # to ld, don't add -lc before -lgcc.
 
16955
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16956
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16957
      $rm conftest*
 
16958
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16959
 
 
16960
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16961
  (eval $ac_compile) 2>&5
 
16962
  ac_status=$?
 
16963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16964
  (exit $ac_status); } 2>conftest.err; then
 
16965
        soname=conftest
 
16966
        lib=conftest
 
16967
        libobjs=conftest.$ac_objext
 
16968
        deplibs=
 
16969
        wl=$lt_prog_compiler_wl_GCJ
 
16970
        pic_flag=$lt_prog_compiler_pic_GCJ
 
16971
        compiler_flags=-v
 
16972
        linker_flags=-v
 
16973
        verstring=
 
16974
        output_objdir=.
 
16975
        libname=conftest
 
16976
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16977
        allow_undefined_flag_GCJ=
 
16978
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16979
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16980
  ac_status=$?
 
16981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16982
  (exit $ac_status); }
 
16983
        then
 
16984
          archive_cmds_need_lc_GCJ=no
 
16985
        else
 
16986
          archive_cmds_need_lc_GCJ=yes
 
16987
        fi
 
16988
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16989
      else
 
16990
        cat conftest.err 1>&5
 
16991
      fi
 
16992
      $rm conftest*
 
16993
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16994
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16995
      ;;
 
16996
    esac
 
16997
  fi
 
16998
  ;;
 
16999
esac
 
17000
 
 
17001
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17002
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17003
library_names_spec=
 
17004
libname_spec='lib$name'
 
17005
soname_spec=
 
17006
shrext_cmds=".so"
 
17007
postinstall_cmds=
 
17008
postuninstall_cmds=
 
17009
finish_cmds=
 
17010
finish_eval=
 
17011
shlibpath_var=
 
17012
shlibpath_overrides_runpath=unknown
 
17013
version_type=none
 
17014
dynamic_linker="$host_os ld.so"
 
17015
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17016
if test "$GCC" = yes; then
 
17017
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17018
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17019
    # if the path contains ";" then we assume it to be the separator
 
17020
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17021
    # assumed that no part of a normal pathname contains ";" but that should
 
17022
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17023
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17024
  else
 
17025
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17026
  fi
 
17027
else
 
17028
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17029
fi
 
17030
need_lib_prefix=unknown
 
17031
hardcode_into_libs=no
 
17032
 
 
17033
# when you set need_version to no, make sure it does not cause -set_version
 
17034
# flags to be left without arguments
 
17035
need_version=unknown
 
17036
 
 
17037
case $host_os in
 
17038
aix3*)
 
17039
  version_type=linux
 
17040
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17041
  shlibpath_var=LIBPATH
 
17042
 
 
17043
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17044
  soname_spec='${libname}${release}${shared_ext}$major'
 
17045
  ;;
 
17046
 
 
17047
aix4* | aix5*)
 
17048
  version_type=linux
 
17049
  need_lib_prefix=no
 
17050
  need_version=no
 
17051
  hardcode_into_libs=yes
 
17052
  if test "$host_cpu" = ia64; then
 
17053
    # AIX 5 supports IA64
 
17054
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17055
    shlibpath_var=LD_LIBRARY_PATH
 
17056
  else
 
17057
    # With GCC up to 2.95.x, collect2 would create an import file
 
17058
    # for dependence libraries.  The import file would start with
 
17059
    # the line `#! .'.  This would cause the generated library to
 
17060
    # depend on `.', always an invalid library.  This was fixed in
 
17061
    # development snapshots of GCC prior to 3.0.
 
17062
    case $host_os in
 
17063
      aix4 | aix4.[01] | aix4.[01].*)
 
17064
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17065
           echo ' yes '
 
17066
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17067
        :
 
17068
      else
 
17069
        can_build_shared=no
 
17070
      fi
 
17071
      ;;
 
17072
    esac
 
17073
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17074
    # soname into executable. Probably we can add versioning support to
 
17075
    # collect2, so additional links can be useful in future.
 
17076
    if test "$aix_use_runtimelinking" = yes; then
 
17077
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17078
      # instead of lib<name>.a to let people know that these are not
 
17079
      # typical AIX shared libraries.
 
17080
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17081
    else
 
17082
      # We preserve .a as extension for shared libraries through AIX4.2
 
17083
      # and later when we are not doing run time linking.
 
17084
      library_names_spec='${libname}${release}.a $libname.a'
 
17085
      soname_spec='${libname}${release}${shared_ext}$major'
 
17086
    fi
 
17087
    shlibpath_var=LIBPATH
 
17088
  fi
 
17089
  ;;
 
17090
 
 
17091
amigaos*)
 
17092
  library_names_spec='$libname.ixlibrary $libname.a'
 
17093
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17094
  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'
 
17095
  ;;
 
17096
 
 
17097
beos*)
 
17098
  library_names_spec='${libname}${shared_ext}'
 
17099
  dynamic_linker="$host_os ld.so"
 
17100
  shlibpath_var=LIBRARY_PATH
 
17101
  ;;
 
17102
 
 
17103
bsdi[45]*)
 
17104
  version_type=linux
 
17105
  need_version=no
 
17106
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17107
  soname_spec='${libname}${release}${shared_ext}$major'
 
17108
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17109
  shlibpath_var=LD_LIBRARY_PATH
 
17110
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17111
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17112
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17113
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17114
  # libtool to hard-code these into programs
 
17115
  ;;
 
17116
 
 
17117
cygwin* | mingw* | pw32*)
 
17118
  version_type=windows
 
17119
  shrext_cmds=".dll"
 
17120
  need_version=no
 
17121
  need_lib_prefix=no
 
17122
 
 
17123
  case $GCC,$host_os in
 
17124
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17125
    library_names_spec='$libname.dll.a'
 
17126
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17127
    postinstall_cmds='base_file=`basename \${file}`~
 
17128
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17129
      dldir=$destdir/`dirname \$dlpath`~
 
17130
      test -d \$dldir || mkdir -p \$dldir~
 
17131
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17132
      chmod a+x \$dldir/$dlname'
 
17133
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17134
      dlpath=$dir/\$dldll~
 
17135
       $rm \$dlpath'
 
17136
    shlibpath_overrides_runpath=yes
 
17137
 
 
17138
    case $host_os in
 
17139
    cygwin*)
 
17140
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17141
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17142
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17143
      ;;
 
17144
    mingw*)
 
17145
      # MinGW DLLs use traditional 'lib' prefix
 
17146
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17147
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17148
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17149
        # It is most probably a Windows format PATH printed by
 
17150
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17151
        # path with ; separators, and with drive letters. We can handle the
 
17152
        # drive letters (cygwin fileutils understands them), so leave them,
 
17153
        # especially as we might pass files found there to a mingw objdump,
 
17154
        # which wouldn't understand a cygwinified path. Ahh.
 
17155
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17156
      else
 
17157
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17158
      fi
 
17159
      ;;
 
17160
    pw32*)
 
17161
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17162
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17163
      ;;
 
17164
    esac
 
17165
    ;;
 
17166
 
 
17167
  *)
 
17168
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17169
    ;;
 
17170
  esac
 
17171
  dynamic_linker='Win32 ld.exe'
 
17172
  # FIXME: first we should search . and the directory the executable is in
 
17173
  shlibpath_var=PATH
 
17174
  ;;
 
17175
 
 
17176
darwin* | rhapsody*)
 
17177
  dynamic_linker="$host_os dyld"
 
17178
  version_type=darwin
 
17179
  need_lib_prefix=no
 
17180
  need_version=no
 
17181
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17182
  soname_spec='${libname}${release}${major}$shared_ext'
 
17183
  shlibpath_overrides_runpath=yes
 
17184
  shlibpath_var=DYLD_LIBRARY_PATH
 
17185
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17186
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17187
  if test "$GCC" = yes; then
 
17188
    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"`
 
17189
  else
 
17190
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17191
  fi
 
17192
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17193
  ;;
 
17194
 
 
17195
dgux*)
 
17196
  version_type=linux
 
17197
  need_lib_prefix=no
 
17198
  need_version=no
 
17199
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17200
  soname_spec='${libname}${release}${shared_ext}$major'
 
17201
  shlibpath_var=LD_LIBRARY_PATH
 
17202
  ;;
 
17203
 
 
17204
freebsd1*)
 
17205
  dynamic_linker=no
 
17206
  ;;
 
17207
 
 
17208
kfreebsd*-gnu)
 
17209
  version_type=linux
 
17210
  need_lib_prefix=no
 
17211
  need_version=no
 
17212
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17213
  soname_spec='${libname}${release}${shared_ext}$major'
 
17214
  shlibpath_var=LD_LIBRARY_PATH
 
17215
  shlibpath_overrides_runpath=no
 
17216
  hardcode_into_libs=yes
 
17217
  dynamic_linker='GNU ld.so'
 
17218
  ;;
 
17219
 
 
17220
freebsd* | dragonfly*)
 
17221
  # DragonFly does not have aout.  When/if they implement a new
 
17222
  # versioning mechanism, adjust this.
 
17223
  if test -x /usr/bin/objformat; then
 
17224
    objformat=`/usr/bin/objformat`
 
17225
  else
 
17226
    case $host_os in
 
17227
    freebsd[123]*) objformat=aout ;;
 
17228
    *) objformat=elf ;;
 
17229
    esac
 
17230
  fi
 
17231
  version_type=freebsd-$objformat
 
17232
  case $version_type in
 
17233
    freebsd-elf*)
 
17234
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17235
      need_version=no
 
17236
      need_lib_prefix=no
 
17237
      ;;
 
17238
    freebsd-*)
 
17239
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17240
      need_version=yes
 
17241
      ;;
 
17242
  esac
 
17243
  shlibpath_var=LD_LIBRARY_PATH
 
17244
  case $host_os in
 
17245
  freebsd2*)
 
17246
    shlibpath_overrides_runpath=yes
 
17247
    ;;
 
17248
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17249
    shlibpath_overrides_runpath=yes
 
17250
    hardcode_into_libs=yes
 
17251
    ;;
 
17252
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17253
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17254
    shlibpath_overrides_runpath=no
 
17255
    hardcode_into_libs=yes
 
17256
    ;;
 
17257
  freebsd*) # from 4.6 on
 
17258
    shlibpath_overrides_runpath=yes
 
17259
    hardcode_into_libs=yes
 
17260
    ;;
 
17261
  esac
 
17262
  ;;
 
17263
 
 
17264
gnu*)
 
17265
  version_type=linux
 
17266
  need_lib_prefix=no
 
17267
  need_version=no
 
17268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17269
  soname_spec='${libname}${release}${shared_ext}$major'
 
17270
  shlibpath_var=LD_LIBRARY_PATH
 
17271
  hardcode_into_libs=yes
 
17272
  ;;
 
17273
 
 
17274
hpux9* | hpux10* | hpux11*)
 
17275
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17276
  # link against other versions.
 
17277
  version_type=sunos
 
17278
  need_lib_prefix=no
 
17279
  need_version=no
 
17280
  case $host_cpu in
 
17281
  ia64*)
 
17282
    shrext_cmds='.so'
 
17283
    hardcode_into_libs=yes
 
17284
    dynamic_linker="$host_os dld.so"
 
17285
    shlibpath_var=LD_LIBRARY_PATH
 
17286
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17287
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17288
    soname_spec='${libname}${release}${shared_ext}$major'
 
17289
    if test "X$HPUX_IA64_MODE" = X32; then
 
17290
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17291
    else
 
17292
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17293
    fi
 
17294
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17295
    ;;
 
17296
   hppa*64*)
 
17297
     shrext_cmds='.sl'
 
17298
     hardcode_into_libs=yes
 
17299
     dynamic_linker="$host_os dld.sl"
 
17300
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17301
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17302
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17303
     soname_spec='${libname}${release}${shared_ext}$major'
 
17304
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17305
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17306
     ;;
 
17307
   *)
 
17308
    shrext_cmds='.sl'
 
17309
    dynamic_linker="$host_os dld.sl"
 
17310
    shlibpath_var=SHLIB_PATH
 
17311
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17312
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17313
    soname_spec='${libname}${release}${shared_ext}$major'
 
17314
    ;;
 
17315
  esac
 
17316
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17317
  postinstall_cmds='chmod 555 $lib'
 
17318
  ;;
 
17319
 
 
17320
interix3*)
 
17321
  version_type=linux
 
17322
  need_lib_prefix=no
 
17323
  need_version=no
 
17324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17325
  soname_spec='${libname}${release}${shared_ext}$major'
 
17326
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17327
  shlibpath_var=LD_LIBRARY_PATH
 
17328
  shlibpath_overrides_runpath=no
 
17329
  hardcode_into_libs=yes
 
17330
  ;;
 
17331
 
 
17332
irix5* | irix6* | nonstopux*)
 
17333
  case $host_os in
 
17334
    nonstopux*) version_type=nonstopux ;;
 
17335
    *)
 
17336
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17337
                version_type=linux
 
17338
        else
 
17339
                version_type=irix
 
17340
        fi ;;
 
17341
  esac
 
17342
  need_lib_prefix=no
 
17343
  need_version=no
 
17344
  soname_spec='${libname}${release}${shared_ext}$major'
 
17345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17346
  case $host_os in
 
17347
  irix5* | nonstopux*)
 
17348
    libsuff= shlibsuff=
 
17349
    ;;
 
17350
  *)
 
17351
    case $LD in # libtool.m4 will add one of these switches to LD
 
17352
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17353
      libsuff= shlibsuff= libmagic=32-bit;;
 
17354
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17355
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17356
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17357
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17358
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17359
    esac
 
17360
    ;;
 
17361
  esac
 
17362
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17363
  shlibpath_overrides_runpath=no
 
17364
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17365
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17366
  hardcode_into_libs=yes
 
17367
  ;;
 
17368
 
 
17369
# No shared lib support for Linux oldld, aout, or coff.
 
17370
linux*oldld* | linux*aout* | linux*coff*)
 
17371
  dynamic_linker=no
 
17372
  ;;
 
17373
 
 
17374
# This must be Linux ELF.
 
17375
linux*)
 
17376
  version_type=linux
 
17377
  need_lib_prefix=no
 
17378
  need_version=no
 
17379
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17380
  soname_spec='${libname}${release}${shared_ext}$major'
 
17381
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17382
  shlibpath_var=LD_LIBRARY_PATH
 
17383
  shlibpath_overrides_runpath=no
 
17384
  # This implies no fast_install, which is unacceptable.
 
17385
  # Some rework will be needed to allow for fast_install
 
17386
  # before this can be enabled.
 
17387
  hardcode_into_libs=yes
 
17388
 
 
17389
  # Append ld.so.conf contents to the search path
 
17390
  if test -f /etc/ld.so.conf; then
 
17391
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17392
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17393
  fi
 
17394
 
 
17395
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17396
  # powerpc, because MkLinux only supported shared libraries with the
 
17397
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17398
  # most powerpc-linux boxes support dynamic linking these days and
 
17399
  # people can always --disable-shared, the test was removed, and we
 
17400
  # assume the GNU/Linux dynamic linker is in use.
 
17401
  dynamic_linker='GNU/Linux ld.so'
 
17402
  ;;
 
17403
 
 
17404
netbsdelf*-gnu)
 
17405
  version_type=linux
 
17406
  need_lib_prefix=no
 
17407
  need_version=no
 
17408
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17409
  soname_spec='${libname}${release}${shared_ext}$major'
 
17410
  shlibpath_var=LD_LIBRARY_PATH
 
17411
  shlibpath_overrides_runpath=no
 
17412
  hardcode_into_libs=yes
 
17413
  dynamic_linker='NetBSD ld.elf_so'
 
17414
  ;;
 
17415
 
 
17416
knetbsd*-gnu)
 
17417
  version_type=linux
 
17418
  need_lib_prefix=no
 
17419
  need_version=no
 
17420
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17421
  soname_spec='${libname}${release}${shared_ext}$major'
 
17422
  shlibpath_var=LD_LIBRARY_PATH
 
17423
  shlibpath_overrides_runpath=no
 
17424
  hardcode_into_libs=yes
 
17425
  dynamic_linker='GNU ld.so'
 
17426
  ;;
 
17427
 
 
17428
netbsd*)
 
17429
  version_type=sunos
 
17430
  need_lib_prefix=no
 
17431
  need_version=no
 
17432
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17433
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17434
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17435
    dynamic_linker='NetBSD (a.out) ld.so'
 
17436
  else
 
17437
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17438
    soname_spec='${libname}${release}${shared_ext}$major'
 
17439
    dynamic_linker='NetBSD ld.elf_so'
 
17440
  fi
 
17441
  shlibpath_var=LD_LIBRARY_PATH
 
17442
  shlibpath_overrides_runpath=yes
 
17443
  hardcode_into_libs=yes
 
17444
  ;;
 
17445
 
 
17446
newsos6)
 
17447
  version_type=linux
 
17448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17449
  shlibpath_var=LD_LIBRARY_PATH
 
17450
  shlibpath_overrides_runpath=yes
 
17451
  ;;
 
17452
 
 
17453
nto-qnx*)
 
17454
  version_type=linux
 
17455
  need_lib_prefix=no
 
17456
  need_version=no
 
17457
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17458
  soname_spec='${libname}${release}${shared_ext}$major'
 
17459
  shlibpath_var=LD_LIBRARY_PATH
 
17460
  shlibpath_overrides_runpath=yes
 
17461
  ;;
 
17462
 
 
17463
openbsd*)
 
17464
  version_type=sunos
 
17465
  sys_lib_dlsearch_path_spec="/usr/lib"
 
17466
  need_lib_prefix=no
 
17467
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17468
  case $host_os in
 
17469
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17470
    *)                         need_version=no  ;;
 
17471
  esac
 
17472
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17473
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17474
  shlibpath_var=LD_LIBRARY_PATH
 
17475
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17476
    case $host_os in
 
17477
      openbsd2.[89] | openbsd2.[89].*)
 
17478
        shlibpath_overrides_runpath=no
 
17479
        ;;
 
17480
      *)
 
17481
        shlibpath_overrides_runpath=yes
 
17482
        ;;
 
17483
      esac
 
17484
  else
 
17485
    shlibpath_overrides_runpath=yes
 
17486
  fi
 
17487
  ;;
 
17488
 
 
17489
os2*)
 
17490
  libname_spec='$name'
 
17491
  shrext_cmds=".dll"
 
17492
  need_lib_prefix=no
 
17493
  library_names_spec='$libname${shared_ext} $libname.a'
 
17494
  dynamic_linker='OS/2 ld.exe'
 
17495
  shlibpath_var=LIBPATH
 
17496
  ;;
 
17497
 
 
17498
osf3* | osf4* | osf5*)
 
17499
  version_type=osf
 
17500
  need_lib_prefix=no
 
17501
  need_version=no
 
17502
  soname_spec='${libname}${release}${shared_ext}$major'
 
17503
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17504
  shlibpath_var=LD_LIBRARY_PATH
 
17505
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17506
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17507
  ;;
 
17508
 
 
17509
solaris*)
 
17510
  version_type=linux
 
17511
  need_lib_prefix=no
 
17512
  need_version=no
 
17513
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17514
  soname_spec='${libname}${release}${shared_ext}$major'
 
17515
  shlibpath_var=LD_LIBRARY_PATH
 
17516
  shlibpath_overrides_runpath=yes
 
17517
  hardcode_into_libs=yes
 
17518
  # ldd complains unless libraries are executable
 
17519
  postinstall_cmds='chmod +x $lib'
 
17520
  ;;
 
17521
 
 
17522
sunos4*)
 
17523
  version_type=sunos
 
17524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17525
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17526
  shlibpath_var=LD_LIBRARY_PATH
 
17527
  shlibpath_overrides_runpath=yes
 
17528
  if test "$with_gnu_ld" = yes; then
 
17529
    need_lib_prefix=no
 
17530
  fi
 
17531
  need_version=yes
 
17532
  ;;
 
17533
 
 
17534
sysv4 | sysv4.3*)
 
17535
  version_type=linux
 
17536
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17537
  soname_spec='${libname}${release}${shared_ext}$major'
 
17538
  shlibpath_var=LD_LIBRARY_PATH
 
17539
  case $host_vendor in
 
17540
    sni)
 
17541
      shlibpath_overrides_runpath=no
 
17542
      need_lib_prefix=no
 
17543
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17544
      runpath_var=LD_RUN_PATH
 
17545
      ;;
 
17546
    siemens)
 
17547
      need_lib_prefix=no
 
17548
      ;;
 
17549
    motorola)
 
17550
      need_lib_prefix=no
 
17551
      need_version=no
 
17552
      shlibpath_overrides_runpath=no
 
17553
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17554
      ;;
 
17555
  esac
 
17556
  ;;
 
17557
 
 
17558
sysv4*MP*)
 
17559
  if test -d /usr/nec ;then
 
17560
    version_type=linux
 
17561
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17562
    soname_spec='$libname${shared_ext}.$major'
 
17563
    shlibpath_var=LD_LIBRARY_PATH
 
17564
  fi
 
17565
  ;;
 
17566
 
 
17567
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17568
  version_type=freebsd-elf
 
17569
  need_lib_prefix=no
 
17570
  need_version=no
 
17571
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17572
  soname_spec='${libname}${release}${shared_ext}$major'
 
17573
  shlibpath_var=LD_LIBRARY_PATH
 
17574
  hardcode_into_libs=yes
 
17575
  if test "$with_gnu_ld" = yes; then
 
17576
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17577
    shlibpath_overrides_runpath=no
 
17578
  else
 
17579
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17580
    shlibpath_overrides_runpath=yes
 
17581
    case $host_os in
 
17582
      sco3.2v5*)
 
17583
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17584
        ;;
 
17585
    esac
 
17586
  fi
 
17587
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17588
  ;;
 
17589
 
 
17590
uts4*)
 
17591
  version_type=linux
 
17592
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17593
  soname_spec='${libname}${release}${shared_ext}$major'
 
17594
  shlibpath_var=LD_LIBRARY_PATH
 
17595
  ;;
 
17596
 
 
17597
*)
 
17598
  dynamic_linker=no
 
17599
  ;;
 
17600
esac
 
17601
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17602
echo "${ECHO_T}$dynamic_linker" >&6
 
17603
test "$dynamic_linker" = no && can_build_shared=no
 
17604
 
 
17605
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17606
if test "$GCC" = yes; then
 
17607
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17608
fi
 
17609
 
 
17610
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17611
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17612
hardcode_action_GCJ=
 
17613
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17614
   test -n "$runpath_var_GCJ" || \
 
17615
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17616
 
 
17617
  # We can hardcode non-existant directories.
 
17618
  if test "$hardcode_direct_GCJ" != no &&
 
17619
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17620
     # have to relink, otherwise we might link with an installed library
 
17621
     # when we should be linking with a yet-to-be-installed one
 
17622
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17623
     test "$hardcode_minus_L_GCJ" != no; then
 
17624
    # Linking always hardcodes the temporary library directory.
 
17625
    hardcode_action_GCJ=relink
 
17626
  else
 
17627
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17628
    hardcode_action_GCJ=immediate
 
17629
  fi
 
17630
else
 
17631
  # We cannot hardcode anything, or else we can only hardcode existing
 
17632
  # directories.
 
17633
  hardcode_action_GCJ=unsupported
 
17634
fi
 
17635
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17636
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17637
 
 
17638
if test "$hardcode_action_GCJ" = relink; then
 
17639
  # Fast installation is not supported
 
17640
  enable_fast_install=no
 
17641
elif test "$shlibpath_overrides_runpath" = yes ||
 
17642
     test "$enable_shared" = no; then
 
17643
  # Fast installation is not necessary
 
17644
  enable_fast_install=needless
 
17645
fi
 
17646
 
 
17647
 
 
17648
# The else clause should only fire when bootstrapping the
 
17649
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17650
# with your package, and you will get complaints that there are
 
17651
# no rules to generate ltmain.sh.
 
17652
if test -f "$ltmain"; then
 
17653
  # See if we are running on zsh, and set the options which allow our commands through
 
17654
  # without removal of \ escapes.
 
17655
  if test -n "${ZSH_VERSION+set}" ; then
 
17656
    setopt NO_GLOB_SUBST
 
17657
  fi
 
17658
  # Now quote all the things that may contain metacharacters while being
 
17659
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17660
  # variables and quote the copies for generation of the libtool script.
 
17661
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
17662
    SED SHELL STRIP \
 
17663
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17664
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17665
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17666
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17667
    lt_cv_sys_global_symbol_to_c_name_address \
 
17668
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17669
    old_postinstall_cmds old_postuninstall_cmds \
 
17670
    compiler_GCJ \
 
17671
    CC_GCJ \
 
17672
    LD_GCJ \
 
17673
    lt_prog_compiler_wl_GCJ \
 
17674
    lt_prog_compiler_pic_GCJ \
 
17675
    lt_prog_compiler_static_GCJ \
 
17676
    lt_prog_compiler_no_builtin_flag_GCJ \
 
17677
    export_dynamic_flag_spec_GCJ \
 
17678
    thread_safe_flag_spec_GCJ \
 
17679
    whole_archive_flag_spec_GCJ \
 
17680
    enable_shared_with_static_runtimes_GCJ \
 
17681
    old_archive_cmds_GCJ \
 
17682
    old_archive_from_new_cmds_GCJ \
 
17683
    predep_objects_GCJ \
 
17684
    postdep_objects_GCJ \
 
17685
    predeps_GCJ \
 
17686
    postdeps_GCJ \
 
17687
    compiler_lib_search_path_GCJ \
 
17688
    archive_cmds_GCJ \
 
17689
    archive_expsym_cmds_GCJ \
 
17690
    postinstall_cmds_GCJ \
 
17691
    postuninstall_cmds_GCJ \
 
17692
    old_archive_from_expsyms_cmds_GCJ \
 
17693
    allow_undefined_flag_GCJ \
 
17694
    no_undefined_flag_GCJ \
 
17695
    export_symbols_cmds_GCJ \
 
17696
    hardcode_libdir_flag_spec_GCJ \
 
17697
    hardcode_libdir_flag_spec_ld_GCJ \
 
17698
    hardcode_libdir_separator_GCJ \
 
17699
    hardcode_automatic_GCJ \
 
17700
    module_cmds_GCJ \
 
17701
    module_expsym_cmds_GCJ \
 
17702
    lt_cv_prog_compiler_c_o_GCJ \
 
17703
    exclude_expsyms_GCJ \
 
17704
    include_expsyms_GCJ; do
 
17705
 
 
17706
    case $var in
 
17707
    old_archive_cmds_GCJ | \
 
17708
    old_archive_from_new_cmds_GCJ | \
 
17709
    archive_cmds_GCJ | \
 
17710
    archive_expsym_cmds_GCJ | \
 
17711
    module_cmds_GCJ | \
 
17712
    module_expsym_cmds_GCJ | \
 
17713
    old_archive_from_expsyms_cmds_GCJ | \
 
17714
    export_symbols_cmds_GCJ | \
 
17715
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17716
    postinstall_cmds | postuninstall_cmds | \
 
17717
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17718
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17719
      # Double-quote double-evaled strings.
 
17720
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17721
      ;;
 
17722
    *)
 
17723
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17724
      ;;
 
17725
    esac
 
17726
  done
 
17727
 
 
17728
  case $lt_echo in
 
17729
  *'\$0 --fallback-echo"')
 
17730
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17731
    ;;
 
17732
  esac
 
17733
 
 
17734
cfgfile="$ofile"
 
17735
 
 
17736
  cat <<__EOF__ >> "$cfgfile"
 
17737
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17738
 
 
17739
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17740
 
 
17741
# Shell to use when invoking shell scripts.
 
17742
SHELL=$lt_SHELL
 
17743
 
 
17744
# Whether or not to build shared libraries.
 
17745
build_libtool_libs=$enable_shared
 
17746
 
 
17747
# Whether or not to build static libraries.
 
17748
build_old_libs=$enable_static
 
17749
 
 
17750
# Whether or not to add -lc for building shared libraries.
 
17751
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
17752
 
 
17753
# Whether or not to disallow shared libs when runtime libs are static
 
17754
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
17755
 
 
17756
# Whether or not to optimize for fast installation.
 
17757
fast_install=$enable_fast_install
 
17758
 
 
17759
# The host system.
 
17760
host_alias=$host_alias
 
17761
host=$host
 
17762
host_os=$host_os
 
17763
 
 
17764
# The build system.
 
17765
build_alias=$build_alias
 
17766
build=$build
 
17767
build_os=$build_os
 
17768
 
 
17769
# An echo program that does not interpret backslashes.
 
17770
echo=$lt_echo
 
17771
 
 
17772
# The archiver.
 
17773
AR=$lt_AR
 
17774
AR_FLAGS=$lt_AR_FLAGS
 
17775
 
 
17776
# A C compiler.
 
17777
LTCC=$lt_LTCC
 
17778
 
 
17779
# LTCC compiler flags.
 
17780
LTCFLAGS=$lt_LTCFLAGS
 
17781
 
 
17782
# A language-specific compiler.
 
17783
CC=$lt_compiler_GCJ
 
17784
 
 
17785
# Is the compiler the GNU C compiler?
 
17786
with_gcc=$GCC_GCJ
 
17787
 
 
17788
# An ERE matcher.
 
17789
EGREP=$lt_EGREP
 
17790
 
 
17791
# The linker used to build libraries.
 
17792
LD=$lt_LD_GCJ
 
17793
 
 
17794
# Whether we need hard or soft links.
 
17795
LN_S=$lt_LN_S
 
17796
 
 
17797
# A BSD-compatible nm program.
 
17798
NM=$lt_NM
 
17799
 
 
17800
# A symbol stripping program
 
17801
STRIP=$lt_STRIP
 
17802
 
 
17803
# Used to examine libraries when file_magic_cmd begins "file"
 
17804
MAGIC_CMD=$MAGIC_CMD
 
17805
 
 
17806
# Used on cygwin: DLL creation program.
 
17807
DLLTOOL="$DLLTOOL"
 
17808
 
 
17809
# Used on cygwin: object dumper.
 
17810
OBJDUMP="$OBJDUMP"
 
17811
 
 
17812
# Used on cygwin: assembler.
 
17813
AS="$AS"
 
17814
 
 
17815
# The name of the directory that contains temporary libtool files.
 
17816
objdir=$objdir
 
17817
 
 
17818
# How to create reloadable object files.
 
17819
reload_flag=$lt_reload_flag
 
17820
reload_cmds=$lt_reload_cmds
 
17821
 
 
17822
# How to pass a linker flag through the compiler.
 
17823
wl=$lt_lt_prog_compiler_wl_GCJ
 
17824
 
 
17825
# Object file suffix (normally "o").
 
17826
objext="$ac_objext"
 
17827
 
 
17828
# Old archive suffix (normally "a").
 
17829
libext="$libext"
 
17830
 
 
17831
# Shared library suffix (normally ".so").
 
17832
shrext_cmds='$shrext_cmds'
 
17833
 
 
17834
# Executable file suffix (normally "").
 
17835
exeext="$exeext"
 
17836
 
 
17837
# Additional compiler flags for building library objects.
 
17838
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
17839
pic_mode=$pic_mode
 
17840
 
 
17841
# What is the maximum length of a command?
 
17842
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17843
 
 
17844
# Does compiler simultaneously support -c and -o options?
 
17845
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
17846
 
 
17847
# Must we lock files when doing compilation?
 
17848
need_locks=$lt_need_locks
 
17849
 
 
17850
# Do we need the lib prefix for modules?
 
17851
need_lib_prefix=$need_lib_prefix
 
17852
 
 
17853
# Do we need a version for libraries?
 
17854
need_version=$need_version
 
17855
 
 
17856
# Whether dlopen is supported.
 
17857
dlopen_support=$enable_dlopen
 
17858
 
 
17859
# Whether dlopen of programs is supported.
 
17860
dlopen_self=$enable_dlopen_self
 
17861
 
 
17862
# Whether dlopen of statically linked programs is supported.
 
17863
dlopen_self_static=$enable_dlopen_self_static
 
17864
 
 
17865
# Compiler flag to prevent dynamic linking.
 
17866
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
17867
 
 
17868
# Compiler flag to turn off builtin functions.
 
17869
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
17870
 
 
17871
# Compiler flag to allow reflexive dlopens.
 
17872
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
17873
 
 
17874
# Compiler flag to generate shared objects directly from archives.
 
17875
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
17876
 
 
17877
# Compiler flag to generate thread-safe objects.
 
17878
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
17879
 
 
17880
# Library versioning type.
 
17881
version_type=$version_type
 
17882
 
 
17883
# Format of library name prefix.
 
17884
libname_spec=$lt_libname_spec
 
17885
 
 
17886
# List of archive names.  First name is the real one, the rest are links.
 
17887
# The last name is the one that the linker finds with -lNAME.
 
17888
library_names_spec=$lt_library_names_spec
 
17889
 
 
17890
# The coded name of the library, if different from the real name.
 
17891
soname_spec=$lt_soname_spec
 
17892
 
 
17893
# Commands used to build and install an old-style archive.
 
17894
RANLIB=$lt_RANLIB
 
17895
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
17896
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17897
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17898
 
 
17899
# Create an old-style archive from a shared archive.
 
17900
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
17901
 
 
17902
# Create a temporary old-style archive to link instead of a shared archive.
 
17903
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
17904
 
 
17905
# Commands used to build and install a shared archive.
 
17906
archive_cmds=$lt_archive_cmds_GCJ
 
17907
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
17908
postinstall_cmds=$lt_postinstall_cmds
 
17909
postuninstall_cmds=$lt_postuninstall_cmds
 
17910
 
 
17911
# Commands used to build a loadable module (assumed same as above if empty)
 
17912
module_cmds=$lt_module_cmds_GCJ
 
17913
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
17914
 
 
17915
# Commands to strip libraries.
 
17916
old_striplib=$lt_old_striplib
 
17917
striplib=$lt_striplib
 
17918
 
 
17919
# Dependencies to place before the objects being linked to create a
 
17920
# shared library.
 
17921
predep_objects=$lt_predep_objects_GCJ
 
17922
 
 
17923
# Dependencies to place after the objects being linked to create a
 
17924
# shared library.
 
17925
postdep_objects=$lt_postdep_objects_GCJ
 
17926
 
 
17927
# Dependencies to place before the objects being linked to create a
 
17928
# shared library.
 
17929
predeps=$lt_predeps_GCJ
 
17930
 
 
17931
# Dependencies to place after the objects being linked to create a
 
17932
# shared library.
 
17933
postdeps=$lt_postdeps_GCJ
 
17934
 
 
17935
# The library search path used internally by the compiler when linking
 
17936
# a shared library.
 
17937
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
17938
 
 
17939
# Method to check whether dependent libraries are shared objects.
 
17940
deplibs_check_method=$lt_deplibs_check_method
 
17941
 
 
17942
# Command to use when deplibs_check_method == file_magic.
 
17943
file_magic_cmd=$lt_file_magic_cmd
 
17944
 
 
17945
# Flag that allows shared libraries with undefined symbols to be built.
 
17946
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
17947
 
 
17948
# Flag that forces no undefined symbols.
 
17949
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
17950
 
 
17951
# Commands used to finish a libtool library installation in a directory.
 
17952
finish_cmds=$lt_finish_cmds
 
17953
 
 
17954
# Same as above, but a single script fragment to be evaled but not shown.
 
17955
finish_eval=$lt_finish_eval
 
17956
 
 
17957
# Take the output of nm and produce a listing of raw symbols and C names.
 
17958
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17959
 
 
17960
# Transform the output of nm in a proper C declaration
 
17961
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17962
 
 
17963
# Transform the output of nm in a C name address pair
 
17964
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17965
 
 
17966
# This is the shared library runtime path variable.
 
17967
runpath_var=$runpath_var
 
17968
 
 
17969
# This is the shared library path variable.
 
17970
shlibpath_var=$shlibpath_var
 
17971
 
 
17972
# Is shlibpath searched before the hard-coded library search path?
 
17973
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17974
 
 
17975
# How to hardcode a shared library path into an executable.
 
17976
hardcode_action=$hardcode_action_GCJ
 
17977
 
 
17978
# Whether we should hardcode library paths into libraries.
 
17979
hardcode_into_libs=$hardcode_into_libs
 
17980
 
 
17981
# Flag to hardcode \$libdir into a binary during linking.
 
17982
# This must work even if \$libdir does not exist.
 
17983
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
17984
 
 
17985
# If ld is used when linking, flag to hardcode \$libdir into
 
17986
# a binary during linking. This must work even if \$libdir does
 
17987
# not exist.
 
17988
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
17989
 
 
17990
# Whether we need a single -rpath flag with a separated argument.
 
17991
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
17992
 
 
17993
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17994
# resulting binary.
 
17995
hardcode_direct=$hardcode_direct_GCJ
 
17996
 
 
17997
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17998
# resulting binary.
 
17999
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18000
 
 
18001
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18002
# the resulting binary.
 
18003
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18004
 
 
18005
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18006
# and all subsequent libraries and executables linked against it.
 
18007
hardcode_automatic=$hardcode_automatic_GCJ
 
18008
 
 
18009
# Variables whose values should be saved in libtool wrapper scripts and
 
18010
# restored at relink time.
 
18011
variables_saved_for_relink="$variables_saved_for_relink"
 
18012
 
 
18013
# Whether libtool must link a program against all its dependency libraries.
 
18014
link_all_deplibs=$link_all_deplibs_GCJ
 
18015
 
 
18016
# Compile-time system search path for libraries
 
18017
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18018
 
 
18019
# Run-time system search path for libraries
 
18020
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18021
 
 
18022
# Fix the shell variable \$srcfile for the compiler.
 
18023
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18024
 
 
18025
# Set to yes if exported symbols are required.
 
18026
always_export_symbols=$always_export_symbols_GCJ
 
18027
 
 
18028
# The commands to list exported symbols.
 
18029
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18030
 
 
18031
# The commands to extract the exported symbol list from a shared archive.
 
18032
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18033
 
 
18034
# Symbols that should not be listed in the preloaded symbols.
 
18035
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18036
 
 
18037
# Symbols that must always be exported.
 
18038
include_expsyms=$lt_include_expsyms_GCJ
 
18039
 
 
18040
# ### END LIBTOOL TAG CONFIG: $tagname
 
18041
 
 
18042
__EOF__
 
18043
 
 
18044
 
 
18045
else
 
18046
  # If there is no Makefile yet, we rely on a make rule to execute
 
18047
  # `config.status --recheck' to rerun these tests and create the
 
18048
  # libtool script then.
 
18049
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18050
  if test -f "$ltmain_in"; then
 
18051
    test -f Makefile && make "$ltmain"
 
18052
  fi
 
18053
fi
 
18054
 
 
18055
 
 
18056
ac_ext=c
 
18057
ac_cpp='$CPP $CPPFLAGS'
 
18058
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18059
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18060
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18061
 
 
18062
CC="$lt_save_CC"
 
18063
 
 
18064
        else
 
18065
          tagname=""
 
18066
        fi
 
18067
        ;;
 
18068
 
 
18069
      RC)
 
18070
 
 
18071
 
 
18072
 
 
18073
# Source file extension for RC test sources.
 
18074
ac_ext=rc
 
18075
 
 
18076
# Object file extension for compiled RC test sources.
 
18077
objext=o
 
18078
objext_RC=$objext
 
18079
 
 
18080
# Code to be used in simple compile tests
 
18081
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18082
 
 
18083
# Code to be used in simple link tests
 
18084
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18085
 
 
18086
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18087
 
 
18088
# If no C compiler was specified, use CC.
 
18089
LTCC=${LTCC-"$CC"}
 
18090
 
 
18091
# If no C compiler flags were specified, use CFLAGS.
 
18092
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18093
 
 
18094
# Allow CC to be a program name with arguments.
 
18095
compiler=$CC
 
18096
 
 
18097
 
 
18098
# save warnings/boilerplate of simple test code
 
18099
ac_outfile=conftest.$ac_objext
 
18100
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18101
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18102
_lt_compiler_boilerplate=`cat conftest.err`
 
18103
$rm conftest*
 
18104
 
 
18105
ac_outfile=conftest.$ac_objext
 
18106
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18107
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18108
_lt_linker_boilerplate=`cat conftest.err`
 
18109
$rm conftest*
 
18110
 
 
18111
 
 
18112
# Allow CC to be a program name with arguments.
 
18113
lt_save_CC="$CC"
 
18114
CC=${RC-"windres"}
 
18115
compiler=$CC
 
18116
compiler_RC=$CC
 
18117
for cc_temp in $compiler""; do
 
18118
  case $cc_temp in
 
18119
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18120
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18121
    \-*) ;;
 
18122
    *) break;;
 
18123
  esac
 
18124
done
 
18125
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18126
 
 
18127
lt_cv_prog_compiler_c_o_RC=yes
 
18128
 
 
18129
# The else clause should only fire when bootstrapping the
 
18130
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18131
# with your package, and you will get complaints that there are
 
18132
# no rules to generate ltmain.sh.
 
18133
if test -f "$ltmain"; then
 
18134
  # See if we are running on zsh, and set the options which allow our commands through
 
18135
  # without removal of \ escapes.
 
18136
  if test -n "${ZSH_VERSION+set}" ; then
 
18137
    setopt NO_GLOB_SUBST
 
18138
  fi
 
18139
  # Now quote all the things that may contain metacharacters while being
 
18140
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18141
  # variables and quote the copies for generation of the libtool script.
 
18142
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18143
    SED SHELL STRIP \
 
18144
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18145
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18146
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18147
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18148
    lt_cv_sys_global_symbol_to_c_name_address \
 
18149
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18150
    old_postinstall_cmds old_postuninstall_cmds \
 
18151
    compiler_RC \
 
18152
    CC_RC \
 
18153
    LD_RC \
 
18154
    lt_prog_compiler_wl_RC \
 
18155
    lt_prog_compiler_pic_RC \
 
18156
    lt_prog_compiler_static_RC \
 
18157
    lt_prog_compiler_no_builtin_flag_RC \
 
18158
    export_dynamic_flag_spec_RC \
 
18159
    thread_safe_flag_spec_RC \
 
18160
    whole_archive_flag_spec_RC \
 
18161
    enable_shared_with_static_runtimes_RC \
 
18162
    old_archive_cmds_RC \
 
18163
    old_archive_from_new_cmds_RC \
 
18164
    predep_objects_RC \
 
18165
    postdep_objects_RC \
 
18166
    predeps_RC \
 
18167
    postdeps_RC \
 
18168
    compiler_lib_search_path_RC \
 
18169
    archive_cmds_RC \
 
18170
    archive_expsym_cmds_RC \
 
18171
    postinstall_cmds_RC \
 
18172
    postuninstall_cmds_RC \
 
18173
    old_archive_from_expsyms_cmds_RC \
 
18174
    allow_undefined_flag_RC \
 
18175
    no_undefined_flag_RC \
 
18176
    export_symbols_cmds_RC \
 
18177
    hardcode_libdir_flag_spec_RC \
 
18178
    hardcode_libdir_flag_spec_ld_RC \
 
18179
    hardcode_libdir_separator_RC \
 
18180
    hardcode_automatic_RC \
 
18181
    module_cmds_RC \
 
18182
    module_expsym_cmds_RC \
 
18183
    lt_cv_prog_compiler_c_o_RC \
 
18184
    exclude_expsyms_RC \
 
18185
    include_expsyms_RC; do
 
18186
 
 
18187
    case $var in
 
18188
    old_archive_cmds_RC | \
 
18189
    old_archive_from_new_cmds_RC | \
 
18190
    archive_cmds_RC | \
 
18191
    archive_expsym_cmds_RC | \
 
18192
    module_cmds_RC | \
 
18193
    module_expsym_cmds_RC | \
 
18194
    old_archive_from_expsyms_cmds_RC | \
 
18195
    export_symbols_cmds_RC | \
 
18196
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18197
    postinstall_cmds | postuninstall_cmds | \
 
18198
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18199
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18200
      # Double-quote double-evaled strings.
 
18201
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18202
      ;;
 
18203
    *)
 
18204
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18205
      ;;
 
18206
    esac
 
18207
  done
 
18208
 
 
18209
  case $lt_echo in
 
18210
  *'\$0 --fallback-echo"')
 
18211
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18212
    ;;
 
18213
  esac
 
18214
 
 
18215
cfgfile="$ofile"
 
18216
 
 
18217
  cat <<__EOF__ >> "$cfgfile"
 
18218
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18219
 
 
18220
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18221
 
 
18222
# Shell to use when invoking shell scripts.
 
18223
SHELL=$lt_SHELL
 
18224
 
 
18225
# Whether or not to build shared libraries.
 
18226
build_libtool_libs=$enable_shared
 
18227
 
 
18228
# Whether or not to build static libraries.
 
18229
build_old_libs=$enable_static
 
18230
 
 
18231
# Whether or not to add -lc for building shared libraries.
 
18232
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18233
 
 
18234
# Whether or not to disallow shared libs when runtime libs are static
 
18235
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18236
 
 
18237
# Whether or not to optimize for fast installation.
 
18238
fast_install=$enable_fast_install
 
18239
 
 
18240
# The host system.
 
18241
host_alias=$host_alias
 
18242
host=$host
 
18243
host_os=$host_os
 
18244
 
 
18245
# The build system.
 
18246
build_alias=$build_alias
 
18247
build=$build
 
18248
build_os=$build_os
 
18249
 
 
18250
# An echo program that does not interpret backslashes.
 
18251
echo=$lt_echo
 
18252
 
 
18253
# The archiver.
 
18254
AR=$lt_AR
 
18255
AR_FLAGS=$lt_AR_FLAGS
 
18256
 
 
18257
# A C compiler.
 
18258
LTCC=$lt_LTCC
 
18259
 
 
18260
# LTCC compiler flags.
 
18261
LTCFLAGS=$lt_LTCFLAGS
 
18262
 
 
18263
# A language-specific compiler.
 
18264
CC=$lt_compiler_RC
 
18265
 
 
18266
# Is the compiler the GNU C compiler?
 
18267
with_gcc=$GCC_RC
 
18268
 
 
18269
# An ERE matcher.
 
18270
EGREP=$lt_EGREP
 
18271
 
 
18272
# The linker used to build libraries.
 
18273
LD=$lt_LD_RC
 
18274
 
 
18275
# Whether we need hard or soft links.
 
18276
LN_S=$lt_LN_S
 
18277
 
 
18278
# A BSD-compatible nm program.
 
18279
NM=$lt_NM
 
18280
 
 
18281
# A symbol stripping program
 
18282
STRIP=$lt_STRIP
 
18283
 
 
18284
# Used to examine libraries when file_magic_cmd begins "file"
 
18285
MAGIC_CMD=$MAGIC_CMD
 
18286
 
 
18287
# Used on cygwin: DLL creation program.
 
18288
DLLTOOL="$DLLTOOL"
 
18289
 
 
18290
# Used on cygwin: object dumper.
 
18291
OBJDUMP="$OBJDUMP"
 
18292
 
 
18293
# Used on cygwin: assembler.
 
18294
AS="$AS"
 
18295
 
 
18296
# The name of the directory that contains temporary libtool files.
 
18297
objdir=$objdir
 
18298
 
 
18299
# How to create reloadable object files.
 
18300
reload_flag=$lt_reload_flag
 
18301
reload_cmds=$lt_reload_cmds
 
18302
 
 
18303
# How to pass a linker flag through the compiler.
 
18304
wl=$lt_lt_prog_compiler_wl_RC
 
18305
 
 
18306
# Object file suffix (normally "o").
 
18307
objext="$ac_objext"
 
18308
 
 
18309
# Old archive suffix (normally "a").
 
18310
libext="$libext"
 
18311
 
 
18312
# Shared library suffix (normally ".so").
 
18313
shrext_cmds='$shrext_cmds'
 
18314
 
 
18315
# Executable file suffix (normally "").
 
18316
exeext="$exeext"
 
18317
 
 
18318
# Additional compiler flags for building library objects.
 
18319
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18320
pic_mode=$pic_mode
 
18321
 
 
18322
# What is the maximum length of a command?
 
18323
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18324
 
 
18325
# Does compiler simultaneously support -c and -o options?
 
18326
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18327
 
 
18328
# Must we lock files when doing compilation?
 
18329
need_locks=$lt_need_locks
 
18330
 
 
18331
# Do we need the lib prefix for modules?
 
18332
need_lib_prefix=$need_lib_prefix
 
18333
 
 
18334
# Do we need a version for libraries?
 
18335
need_version=$need_version
 
18336
 
 
18337
# Whether dlopen is supported.
 
18338
dlopen_support=$enable_dlopen
 
18339
 
 
18340
# Whether dlopen of programs is supported.
 
18341
dlopen_self=$enable_dlopen_self
 
18342
 
 
18343
# Whether dlopen of statically linked programs is supported.
 
18344
dlopen_self_static=$enable_dlopen_self_static
 
18345
 
 
18346
# Compiler flag to prevent dynamic linking.
 
18347
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18348
 
 
18349
# Compiler flag to turn off builtin functions.
 
18350
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18351
 
 
18352
# Compiler flag to allow reflexive dlopens.
 
18353
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18354
 
 
18355
# Compiler flag to generate shared objects directly from archives.
 
18356
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18357
 
 
18358
# Compiler flag to generate thread-safe objects.
 
18359
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18360
 
 
18361
# Library versioning type.
 
18362
version_type=$version_type
 
18363
 
 
18364
# Format of library name prefix.
 
18365
libname_spec=$lt_libname_spec
 
18366
 
 
18367
# List of archive names.  First name is the real one, the rest are links.
 
18368
# The last name is the one that the linker finds with -lNAME.
 
18369
library_names_spec=$lt_library_names_spec
 
18370
 
 
18371
# The coded name of the library, if different from the real name.
 
18372
soname_spec=$lt_soname_spec
 
18373
 
 
18374
# Commands used to build and install an old-style archive.
 
18375
RANLIB=$lt_RANLIB
 
18376
old_archive_cmds=$lt_old_archive_cmds_RC
 
18377
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18378
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18379
 
 
18380
# Create an old-style archive from a shared archive.
 
18381
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18382
 
 
18383
# Create a temporary old-style archive to link instead of a shared archive.
 
18384
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18385
 
 
18386
# Commands used to build and install a shared archive.
 
18387
archive_cmds=$lt_archive_cmds_RC
 
18388
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18389
postinstall_cmds=$lt_postinstall_cmds
 
18390
postuninstall_cmds=$lt_postuninstall_cmds
 
18391
 
 
18392
# Commands used to build a loadable module (assumed same as above if empty)
 
18393
module_cmds=$lt_module_cmds_RC
 
18394
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18395
 
 
18396
# Commands to strip libraries.
 
18397
old_striplib=$lt_old_striplib
 
18398
striplib=$lt_striplib
 
18399
 
 
18400
# Dependencies to place before the objects being linked to create a
 
18401
# shared library.
 
18402
predep_objects=$lt_predep_objects_RC
 
18403
 
 
18404
# Dependencies to place after the objects being linked to create a
 
18405
# shared library.
 
18406
postdep_objects=$lt_postdep_objects_RC
 
18407
 
 
18408
# Dependencies to place before the objects being linked to create a
 
18409
# shared library.
 
18410
predeps=$lt_predeps_RC
 
18411
 
 
18412
# Dependencies to place after the objects being linked to create a
 
18413
# shared library.
 
18414
postdeps=$lt_postdeps_RC
 
18415
 
 
18416
# The library search path used internally by the compiler when linking
 
18417
# a shared library.
 
18418
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18419
 
 
18420
# Method to check whether dependent libraries are shared objects.
 
18421
deplibs_check_method=$lt_deplibs_check_method
 
18422
 
 
18423
# Command to use when deplibs_check_method == file_magic.
 
18424
file_magic_cmd=$lt_file_magic_cmd
 
18425
 
 
18426
# Flag that allows shared libraries with undefined symbols to be built.
 
18427
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18428
 
 
18429
# Flag that forces no undefined symbols.
 
18430
no_undefined_flag=$lt_no_undefined_flag_RC
 
18431
 
 
18432
# Commands used to finish a libtool library installation in a directory.
 
18433
finish_cmds=$lt_finish_cmds
 
18434
 
 
18435
# Same as above, but a single script fragment to be evaled but not shown.
 
18436
finish_eval=$lt_finish_eval
 
18437
 
 
18438
# Take the output of nm and produce a listing of raw symbols and C names.
 
18439
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18440
 
 
18441
# Transform the output of nm in a proper C declaration
 
18442
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18443
 
 
18444
# Transform the output of nm in a C name address pair
 
18445
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18446
 
 
18447
# This is the shared library runtime path variable.
 
18448
runpath_var=$runpath_var
 
18449
 
 
18450
# This is the shared library path variable.
 
18451
shlibpath_var=$shlibpath_var
 
18452
 
 
18453
# Is shlibpath searched before the hard-coded library search path?
 
18454
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18455
 
 
18456
# How to hardcode a shared library path into an executable.
 
18457
hardcode_action=$hardcode_action_RC
 
18458
 
 
18459
# Whether we should hardcode library paths into libraries.
 
18460
hardcode_into_libs=$hardcode_into_libs
 
18461
 
 
18462
# Flag to hardcode \$libdir into a binary during linking.
 
18463
# This must work even if \$libdir does not exist.
 
18464
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18465
 
 
18466
# If ld is used when linking, flag to hardcode \$libdir into
 
18467
# a binary during linking. This must work even if \$libdir does
 
18468
# not exist.
 
18469
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18470
 
 
18471
# Whether we need a single -rpath flag with a separated argument.
 
18472
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18473
 
 
18474
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18475
# resulting binary.
 
18476
hardcode_direct=$hardcode_direct_RC
 
18477
 
 
18478
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18479
# resulting binary.
 
18480
hardcode_minus_L=$hardcode_minus_L_RC
 
18481
 
 
18482
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18483
# the resulting binary.
 
18484
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18485
 
 
18486
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18487
# and all subsequent libraries and executables linked against it.
 
18488
hardcode_automatic=$hardcode_automatic_RC
 
18489
 
 
18490
# Variables whose values should be saved in libtool wrapper scripts and
 
18491
# restored at relink time.
 
18492
variables_saved_for_relink="$variables_saved_for_relink"
 
18493
 
 
18494
# Whether libtool must link a program against all its dependency libraries.
 
18495
link_all_deplibs=$link_all_deplibs_RC
 
18496
 
 
18497
# Compile-time system search path for libraries
 
18498
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18499
 
 
18500
# Run-time system search path for libraries
 
18501
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18502
 
 
18503
# Fix the shell variable \$srcfile for the compiler.
 
18504
fix_srcfile_path="$fix_srcfile_path_RC"
 
18505
 
 
18506
# Set to yes if exported symbols are required.
 
18507
always_export_symbols=$always_export_symbols_RC
 
18508
 
 
18509
# The commands to list exported symbols.
 
18510
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
18511
 
 
18512
# The commands to extract the exported symbol list from a shared archive.
 
18513
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18514
 
 
18515
# Symbols that should not be listed in the preloaded symbols.
 
18516
exclude_expsyms=$lt_exclude_expsyms_RC
 
18517
 
 
18518
# Symbols that must always be exported.
 
18519
include_expsyms=$lt_include_expsyms_RC
 
18520
 
 
18521
# ### END LIBTOOL TAG CONFIG: $tagname
 
18522
 
 
18523
__EOF__
 
18524
 
 
18525
 
 
18526
else
 
18527
  # If there is no Makefile yet, we rely on a make rule to execute
 
18528
  # `config.status --recheck' to rerun these tests and create the
 
18529
  # libtool script then.
 
18530
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18531
  if test -f "$ltmain_in"; then
 
18532
    test -f Makefile && make "$ltmain"
 
18533
  fi
 
18534
fi
 
18535
 
 
18536
 
 
18537
ac_ext=c
 
18538
ac_cpp='$CPP $CPPFLAGS'
 
18539
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18540
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18541
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18542
 
 
18543
CC="$lt_save_CC"
 
18544
 
 
18545
        ;;
 
18546
 
 
18547
      *)
 
18548
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
18549
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
18550
   { (exit 1); exit 1; }; }
 
18551
        ;;
 
18552
      esac
 
18553
 
 
18554
      # Append the new tag name to the list of available tags.
 
18555
      if test -n "$tagname" ; then
 
18556
      available_tags="$available_tags $tagname"
 
18557
    fi
 
18558
    fi
 
18559
  done
 
18560
  IFS="$lt_save_ifs"
 
18561
 
 
18562
  # Now substitute the updated list of available tags.
 
18563
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
18564
    mv "${ofile}T" "$ofile"
 
18565
    chmod +x "$ofile"
 
18566
  else
 
18567
    rm -f "${ofile}T"
 
18568
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
18569
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
18570
   { (exit 1); exit 1; }; }
 
18571
  fi
 
18572
fi
 
18573
 
 
18574
 
 
18575
 
 
18576
# This can be used to rebuild libtool when needed
 
18577
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
18578
 
 
18579
# Always use our own libtool.
 
18580
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
18581
 
 
18582
# Prevent multiple expansion
 
18583
 
 
18584
 
 
18585
 
 
18586
 
 
18587
 
 
18588
 
 
18589
 
 
18590
 
 
18591
 
 
18592
 
 
18593
 
 
18594
 
 
18595
 
 
18596
 
 
18597
 
 
18598
 
 
18599
 
 
18600
 
 
18601
 
 
18602
 
 
18603
 
 
18604
echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
18605
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
 
18606
if test "${ac_cv_search_strerror+set}" = set; then
 
18607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18608
else
 
18609
  ac_func_search_save_LIBS=$LIBS
 
18610
ac_cv_search_strerror=no
 
18611
cat >conftest.$ac_ext <<_ACEOF
 
18612
/* confdefs.h.  */
 
18613
_ACEOF
 
18614
cat confdefs.h >>conftest.$ac_ext
 
18615
cat >>conftest.$ac_ext <<_ACEOF
 
18616
/* end confdefs.h.  */
 
18617
 
 
18618
/* Override any gcc2 internal prototype to avoid an error.  */
 
18619
#ifdef __cplusplus
 
18620
extern "C"
 
18621
#endif
 
18622
/* We use char because int might match the return type of a gcc2
 
18623
   builtin and then its argument prototype would still apply.  */
 
18624
char strerror ();
 
18625
int
 
18626
main ()
 
18627
{
 
18628
strerror ();
 
18629
  ;
 
18630
  return 0;
 
18631
}
 
18632
_ACEOF
 
18633
rm -f conftest.$ac_objext conftest$ac_exeext
 
18634
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18635
  (eval $ac_link) 2>conftest.er1
 
18636
  ac_status=$?
 
18637
  grep -v '^ *+' conftest.er1 >conftest.err
 
18638
  rm -f conftest.er1
 
18639
  cat conftest.err >&5
 
18640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18641
  (exit $ac_status); } &&
 
18642
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18644
  (eval $ac_try) 2>&5
 
18645
  ac_status=$?
 
18646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18647
  (exit $ac_status); }; } &&
 
18648
         { ac_try='test -s conftest$ac_exeext'
 
18649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18650
  (eval $ac_try) 2>&5
 
18651
  ac_status=$?
 
18652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18653
  (exit $ac_status); }; }; then
 
18654
  ac_cv_search_strerror="none required"
 
18655
else
 
18656
  echo "$as_me: failed program was:" >&5
 
18657
sed 's/^/| /' conftest.$ac_ext >&5
 
18658
 
 
18659
fi
 
18660
rm -f conftest.err conftest.$ac_objext \
 
18661
      conftest$ac_exeext conftest.$ac_ext
 
18662
if test "$ac_cv_search_strerror" = no; then
 
18663
  for ac_lib in cposix; do
 
18664
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
18665
    cat >conftest.$ac_ext <<_ACEOF
 
18666
/* confdefs.h.  */
 
18667
_ACEOF
 
18668
cat confdefs.h >>conftest.$ac_ext
 
18669
cat >>conftest.$ac_ext <<_ACEOF
 
18670
/* end confdefs.h.  */
 
18671
 
 
18672
/* Override any gcc2 internal prototype to avoid an error.  */
 
18673
#ifdef __cplusplus
 
18674
extern "C"
 
18675
#endif
 
18676
/* We use char because int might match the return type of a gcc2
 
18677
   builtin and then its argument prototype would still apply.  */
 
18678
char strerror ();
 
18679
int
 
18680
main ()
 
18681
{
 
18682
strerror ();
 
18683
  ;
 
18684
  return 0;
 
18685
}
 
18686
_ACEOF
 
18687
rm -f conftest.$ac_objext conftest$ac_exeext
 
18688
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18689
  (eval $ac_link) 2>conftest.er1
 
18690
  ac_status=$?
 
18691
  grep -v '^ *+' conftest.er1 >conftest.err
 
18692
  rm -f conftest.er1
 
18693
  cat conftest.err >&5
 
18694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18695
  (exit $ac_status); } &&
 
18696
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18698
  (eval $ac_try) 2>&5
 
18699
  ac_status=$?
 
18700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18701
  (exit $ac_status); }; } &&
 
18702
         { ac_try='test -s conftest$ac_exeext'
 
18703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18704
  (eval $ac_try) 2>&5
 
18705
  ac_status=$?
 
18706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18707
  (exit $ac_status); }; }; then
 
18708
  ac_cv_search_strerror="-l$ac_lib"
 
18709
break
 
18710
else
 
18711
  echo "$as_me: failed program was:" >&5
 
18712
sed 's/^/| /' conftest.$ac_ext >&5
 
18713
 
 
18714
fi
 
18715
rm -f conftest.err conftest.$ac_objext \
 
18716
      conftest$ac_exeext conftest.$ac_ext
 
18717
  done
 
18718
fi
 
18719
LIBS=$ac_func_search_save_LIBS
 
18720
fi
 
18721
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
18722
echo "${ECHO_T}$ac_cv_search_strerror" >&6
 
18723
if test "$ac_cv_search_strerror" != no; then
 
18724
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
 
18725
 
 
18726
fi
 
18727
 
 
18728
ac_ext=c
 
18729
ac_cpp='$CPP $CPPFLAGS'
 
18730
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18731
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18732
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18733
if test -n "$ac_tool_prefix"; then
 
18734
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
18735
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
18736
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18737
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18738
if test "${ac_cv_prog_CC+set}" = set; then
 
18739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18740
else
 
18741
  if test -n "$CC"; then
 
18742
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
18743
else
 
18744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18745
for as_dir in $PATH
 
18746
do
 
18747
  IFS=$as_save_IFS
 
18748
  test -z "$as_dir" && as_dir=.
 
18749
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18750
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18751
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
18752
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18753
    break 2
 
18754
  fi
 
18755
done
 
18756
done
 
18757
 
 
18758
fi
 
18759
fi
 
18760
CC=$ac_cv_prog_CC
 
18761
if test -n "$CC"; then
 
18762
  echo "$as_me:$LINENO: result: $CC" >&5
 
18763
echo "${ECHO_T}$CC" >&6
 
18764
else
 
18765
  echo "$as_me:$LINENO: result: no" >&5
 
18766
echo "${ECHO_T}no" >&6
 
18767
fi
 
18768
 
 
18769
fi
 
18770
if test -z "$ac_cv_prog_CC"; then
 
18771
  ac_ct_CC=$CC
 
18772
  # Extract the first word of "gcc", so it can be a program name with args.
 
18773
set dummy gcc; ac_word=$2
 
18774
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18775
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18776
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18778
else
 
18779
  if test -n "$ac_ct_CC"; then
 
18780
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
18781
else
 
18782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18783
for as_dir in $PATH
 
18784
do
 
18785
  IFS=$as_save_IFS
 
18786
  test -z "$as_dir" && as_dir=.
 
18787
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18788
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18789
    ac_cv_prog_ac_ct_CC="gcc"
 
18790
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18791
    break 2
 
18792
  fi
 
18793
done
 
18794
done
 
18795
 
 
18796
fi
 
18797
fi
 
18798
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
18799
if test -n "$ac_ct_CC"; then
 
18800
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
18801
echo "${ECHO_T}$ac_ct_CC" >&6
 
18802
else
 
18803
  echo "$as_me:$LINENO: result: no" >&5
 
18804
echo "${ECHO_T}no" >&6
 
18805
fi
 
18806
 
 
18807
  CC=$ac_ct_CC
 
18808
else
 
18809
  CC="$ac_cv_prog_CC"
 
18810
fi
 
18811
 
 
18812
if test -z "$CC"; then
 
18813
  if test -n "$ac_tool_prefix"; then
 
18814
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
18815
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
18816
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18817
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18818
if test "${ac_cv_prog_CC+set}" = set; then
 
18819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18820
else
 
18821
  if test -n "$CC"; then
 
18822
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
18823
else
 
18824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18825
for as_dir in $PATH
 
18826
do
 
18827
  IFS=$as_save_IFS
 
18828
  test -z "$as_dir" && as_dir=.
 
18829
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18830
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18831
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
18832
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18833
    break 2
 
18834
  fi
 
18835
done
 
18836
done
 
18837
 
 
18838
fi
 
18839
fi
 
18840
CC=$ac_cv_prog_CC
 
18841
if test -n "$CC"; then
 
18842
  echo "$as_me:$LINENO: result: $CC" >&5
 
18843
echo "${ECHO_T}$CC" >&6
 
18844
else
 
18845
  echo "$as_me:$LINENO: result: no" >&5
 
18846
echo "${ECHO_T}no" >&6
 
18847
fi
 
18848
 
 
18849
fi
 
18850
if test -z "$ac_cv_prog_CC"; then
 
18851
  ac_ct_CC=$CC
 
18852
  # Extract the first word of "cc", so it can be a program name with args.
 
18853
set dummy cc; ac_word=$2
 
18854
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18855
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18856
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18858
else
 
18859
  if test -n "$ac_ct_CC"; then
 
18860
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
18861
else
 
18862
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18863
for as_dir in $PATH
 
18864
do
 
18865
  IFS=$as_save_IFS
 
18866
  test -z "$as_dir" && as_dir=.
 
18867
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18868
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18869
    ac_cv_prog_ac_ct_CC="cc"
 
18870
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18871
    break 2
 
18872
  fi
 
18873
done
 
18874
done
 
18875
 
 
18876
fi
 
18877
fi
 
18878
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
18879
if test -n "$ac_ct_CC"; then
 
18880
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
18881
echo "${ECHO_T}$ac_ct_CC" >&6
 
18882
else
 
18883
  echo "$as_me:$LINENO: result: no" >&5
 
18884
echo "${ECHO_T}no" >&6
 
18885
fi
 
18886
 
 
18887
  CC=$ac_ct_CC
 
18888
else
 
18889
  CC="$ac_cv_prog_CC"
 
18890
fi
 
18891
 
 
18892
fi
 
18893
if test -z "$CC"; then
 
18894
  # Extract the first word of "cc", so it can be a program name with args.
 
18895
set dummy cc; ac_word=$2
 
18896
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18897
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18898
if test "${ac_cv_prog_CC+set}" = set; then
 
18899
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18900
else
 
18901
  if test -n "$CC"; then
 
18902
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
18903
else
 
18904
  ac_prog_rejected=no
 
18905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18906
for as_dir in $PATH
 
18907
do
 
18908
  IFS=$as_save_IFS
 
18909
  test -z "$as_dir" && as_dir=.
 
18910
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18911
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18912
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
18913
       ac_prog_rejected=yes
 
18914
       continue
 
18915
     fi
 
18916
    ac_cv_prog_CC="cc"
 
18917
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18918
    break 2
 
18919
  fi
 
18920
done
 
18921
done
 
18922
 
 
18923
if test $ac_prog_rejected = yes; then
 
18924
  # We found a bogon in the path, so make sure we never use it.
 
18925
  set dummy $ac_cv_prog_CC
 
18926
  shift
 
18927
  if test $# != 0; then
 
18928
    # We chose a different compiler from the bogus one.
 
18929
    # However, it has the same basename, so the bogon will be chosen
 
18930
    # first if we set CC to just the basename; use the full file name.
 
18931
    shift
 
18932
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
18933
  fi
 
18934
fi
 
18935
fi
 
18936
fi
 
18937
CC=$ac_cv_prog_CC
 
18938
if test -n "$CC"; then
 
18939
  echo "$as_me:$LINENO: result: $CC" >&5
 
18940
echo "${ECHO_T}$CC" >&6
 
18941
else
 
18942
  echo "$as_me:$LINENO: result: no" >&5
 
18943
echo "${ECHO_T}no" >&6
 
18944
fi
 
18945
 
 
18946
fi
 
18947
if test -z "$CC"; then
 
18948
  if test -n "$ac_tool_prefix"; then
 
18949
  for ac_prog in cl
 
18950
  do
 
18951
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
18952
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
18953
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18954
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18955
if test "${ac_cv_prog_CC+set}" = set; then
 
18956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18957
else
 
18958
  if test -n "$CC"; then
 
18959
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
18960
else
 
18961
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18962
for as_dir in $PATH
 
18963
do
 
18964
  IFS=$as_save_IFS
 
18965
  test -z "$as_dir" && as_dir=.
 
18966
  for ac_exec_ext in '' $ac_executable_extensions; do
 
18967
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
18968
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
18969
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
18970
    break 2
 
18971
  fi
 
18972
done
 
18973
done
 
18974
 
 
18975
fi
 
18976
fi
 
18977
CC=$ac_cv_prog_CC
 
18978
if test -n "$CC"; then
 
18979
  echo "$as_me:$LINENO: result: $CC" >&5
 
18980
echo "${ECHO_T}$CC" >&6
 
18981
else
 
18982
  echo "$as_me:$LINENO: result: no" >&5
 
18983
echo "${ECHO_T}no" >&6
 
18984
fi
 
18985
 
 
18986
    test -n "$CC" && break
 
18987
  done
 
18988
fi
 
18989
if test -z "$CC"; then
 
18990
  ac_ct_CC=$CC
 
18991
  for ac_prog in cl
 
18992
do
 
18993
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
18994
set dummy $ac_prog; ac_word=$2
 
18995
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18996
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
18997
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
18998
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18999
else
 
19000
  if test -n "$ac_ct_CC"; then
 
19001
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19002
else
 
19003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19004
for as_dir in $PATH
 
19005
do
 
19006
  IFS=$as_save_IFS
 
19007
  test -z "$as_dir" && as_dir=.
 
19008
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19009
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19010
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
19011
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19012
    break 2
 
19013
  fi
 
19014
done
 
19015
done
 
19016
 
 
19017
fi
 
19018
fi
 
19019
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19020
if test -n "$ac_ct_CC"; then
 
19021
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19022
echo "${ECHO_T}$ac_ct_CC" >&6
 
19023
else
 
19024
  echo "$as_me:$LINENO: result: no" >&5
 
19025
echo "${ECHO_T}no" >&6
 
19026
fi
 
19027
 
 
19028
  test -n "$ac_ct_CC" && break
 
19029
done
 
19030
 
 
19031
  CC=$ac_ct_CC
 
19032
fi
 
19033
 
 
19034
fi
 
19035
 
 
19036
 
 
19037
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
19038
See \`config.log' for more details." >&5
 
19039
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
19040
See \`config.log' for more details." >&2;}
 
19041
   { (exit 1); exit 1; }; }
 
19042
 
 
19043
# Provide some information about the compiler.
 
19044
echo "$as_me:$LINENO:" \
 
19045
     "checking for C compiler version" >&5
 
19046
ac_compiler=`set X $ac_compile; echo $2`
 
19047
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
19048
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
19049
  ac_status=$?
 
19050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19051
  (exit $ac_status); }
 
19052
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
19053
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
19054
  ac_status=$?
 
19055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19056
  (exit $ac_status); }
 
19057
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
19058
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
19059
  ac_status=$?
 
19060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19061
  (exit $ac_status); }
 
19062
 
 
19063
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
19064
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
19065
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
19066
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19067
else
 
19068
  cat >conftest.$ac_ext <<_ACEOF
 
19069
/* confdefs.h.  */
 
19070
_ACEOF
 
19071
cat confdefs.h >>conftest.$ac_ext
 
19072
cat >>conftest.$ac_ext <<_ACEOF
 
19073
/* end confdefs.h.  */
 
19074
 
 
19075
int
 
19076
main ()
 
19077
{
 
19078
#ifndef __GNUC__
 
19079
       choke me
 
19080
#endif
 
19081
 
 
19082
  ;
 
19083
  return 0;
 
19084
}
 
19085
_ACEOF
 
19086
rm -f conftest.$ac_objext
 
19087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19088
  (eval $ac_compile) 2>conftest.er1
 
19089
  ac_status=$?
 
19090
  grep -v '^ *+' conftest.er1 >conftest.err
 
19091
  rm -f conftest.er1
 
19092
  cat conftest.err >&5
 
19093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19094
  (exit $ac_status); } &&
 
19095
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19096
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19097
  (eval $ac_try) 2>&5
 
19098
  ac_status=$?
 
19099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19100
  (exit $ac_status); }; } &&
 
19101
         { ac_try='test -s conftest.$ac_objext'
 
19102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19103
  (eval $ac_try) 2>&5
 
19104
  ac_status=$?
 
19105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19106
  (exit $ac_status); }; }; then
 
19107
  ac_compiler_gnu=yes
 
19108
else
 
19109
  echo "$as_me: failed program was:" >&5
 
19110
sed 's/^/| /' conftest.$ac_ext >&5
 
19111
 
 
19112
ac_compiler_gnu=no
 
19113
fi
 
19114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19115
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
19116
 
 
19117
fi
 
19118
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
19119
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
19120
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
19121
ac_test_CFLAGS=${CFLAGS+set}
 
19122
ac_save_CFLAGS=$CFLAGS
 
19123
CFLAGS="-g"
 
19124
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
19125
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
19126
if test "${ac_cv_prog_cc_g+set}" = set; then
 
19127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19128
else
 
19129
  cat >conftest.$ac_ext <<_ACEOF
 
19130
/* confdefs.h.  */
 
19131
_ACEOF
 
19132
cat confdefs.h >>conftest.$ac_ext
 
19133
cat >>conftest.$ac_ext <<_ACEOF
 
19134
/* end confdefs.h.  */
 
19135
 
 
19136
int
 
19137
main ()
 
19138
{
 
19139
 
 
19140
  ;
 
19141
  return 0;
 
19142
}
 
19143
_ACEOF
 
19144
rm -f conftest.$ac_objext
 
19145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19146
  (eval $ac_compile) 2>conftest.er1
 
19147
  ac_status=$?
 
19148
  grep -v '^ *+' conftest.er1 >conftest.err
 
19149
  rm -f conftest.er1
 
19150
  cat conftest.err >&5
 
19151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19152
  (exit $ac_status); } &&
 
19153
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19155
  (eval $ac_try) 2>&5
 
19156
  ac_status=$?
 
19157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19158
  (exit $ac_status); }; } &&
 
19159
         { ac_try='test -s conftest.$ac_objext'
 
19160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19161
  (eval $ac_try) 2>&5
 
19162
  ac_status=$?
 
19163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19164
  (exit $ac_status); }; }; then
 
19165
  ac_cv_prog_cc_g=yes
 
19166
else
 
19167
  echo "$as_me: failed program was:" >&5
 
19168
sed 's/^/| /' conftest.$ac_ext >&5
 
19169
 
 
19170
ac_cv_prog_cc_g=no
 
19171
fi
 
19172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19173
fi
 
19174
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
19175
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
19176
if test "$ac_test_CFLAGS" = set; then
 
19177
  CFLAGS=$ac_save_CFLAGS
 
19178
elif test $ac_cv_prog_cc_g = yes; then
 
19179
  if test "$GCC" = yes; then
 
19180
    CFLAGS="-g -O2"
 
19181
  else
 
19182
    CFLAGS="-g"
 
19183
  fi
 
19184
else
 
19185
  if test "$GCC" = yes; then
 
19186
    CFLAGS="-O2"
 
19187
  else
 
19188
    CFLAGS=
 
19189
  fi
 
19190
fi
 
19191
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
19192
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
19193
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
19194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19195
else
 
19196
  ac_cv_prog_cc_stdc=no
 
19197
ac_save_CC=$CC
 
19198
cat >conftest.$ac_ext <<_ACEOF
 
19199
/* confdefs.h.  */
 
19200
_ACEOF
 
19201
cat confdefs.h >>conftest.$ac_ext
 
19202
cat >>conftest.$ac_ext <<_ACEOF
 
19203
/* end confdefs.h.  */
 
19204
#include <stdarg.h>
 
19205
#include <stdio.h>
 
19206
#include <sys/types.h>
 
19207
#include <sys/stat.h>
 
19208
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
19209
struct buf { int x; };
 
19210
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
19211
static char *e (p, i)
 
19212
     char **p;
 
19213
     int i;
 
19214
{
 
19215
  return p[i];
 
19216
}
 
19217
static char *f (char * (*g) (char **, int), char **p, ...)
 
19218
{
 
19219
  char *s;
 
19220
  va_list v;
 
19221
  va_start (v,p);
 
19222
  s = g (p, va_arg (v,int));
 
19223
  va_end (v);
 
19224
  return s;
 
19225
}
 
19226
 
 
19227
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
19228
   function prototypes and stuff, but not '\xHH' hex character constants.
 
19229
   These don't provoke an error unfortunately, instead are silently treated
 
19230
   as 'x'.  The following induces an error, until -std1 is added to get
 
19231
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
19232
   array size at least.  It's necessary to write '\x00'==0 to get something
 
19233
   that's true only with -std1.  */
 
19234
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
19235
 
 
19236
int test (int i, double x);
 
19237
struct s1 {int (*f) (int a);};
 
19238
struct s2 {int (*f) (double a);};
 
19239
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
19240
int argc;
 
19241
char **argv;
 
19242
int
 
19243
main ()
 
19244
{
 
19245
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
19246
  ;
 
19247
  return 0;
 
19248
}
 
19249
_ACEOF
 
19250
# Don't try gcc -ansi; that turns off useful extensions and
 
19251
# breaks some systems' header files.
 
19252
# AIX                   -qlanglvl=ansi
 
19253
# Ultrix and OSF/1      -std1
 
19254
# HP-UX 10.20 and later -Ae
 
19255
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
19256
# SVR4                  -Xc -D__EXTENSIONS__
 
19257
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
19258
do
 
19259
  CC="$ac_save_CC $ac_arg"
 
19260
  rm -f conftest.$ac_objext
 
19261
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19262
  (eval $ac_compile) 2>conftest.er1
 
19263
  ac_status=$?
 
19264
  grep -v '^ *+' conftest.er1 >conftest.err
 
19265
  rm -f conftest.er1
 
19266
  cat conftest.err >&5
 
19267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19268
  (exit $ac_status); } &&
 
19269
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19270
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19271
  (eval $ac_try) 2>&5
 
19272
  ac_status=$?
 
19273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19274
  (exit $ac_status); }; } &&
 
19275
         { ac_try='test -s conftest.$ac_objext'
 
19276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19277
  (eval $ac_try) 2>&5
 
19278
  ac_status=$?
 
19279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19280
  (exit $ac_status); }; }; then
 
19281
  ac_cv_prog_cc_stdc=$ac_arg
 
19282
break
 
19283
else
 
19284
  echo "$as_me: failed program was:" >&5
 
19285
sed 's/^/| /' conftest.$ac_ext >&5
 
19286
 
 
19287
fi
 
19288
rm -f conftest.err conftest.$ac_objext
 
19289
done
 
19290
rm -f conftest.$ac_ext conftest.$ac_objext
 
19291
CC=$ac_save_CC
 
19292
 
 
19293
fi
 
19294
 
 
19295
case "x$ac_cv_prog_cc_stdc" in
 
19296
  x|xno)
 
19297
    echo "$as_me:$LINENO: result: none needed" >&5
 
19298
echo "${ECHO_T}none needed" >&6 ;;
 
19299
  *)
 
19300
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
19301
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
19302
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
19303
esac
 
19304
 
 
19305
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
19306
# in C++ we need to declare it.  In case someone uses the same compiler
 
19307
# for both compiling C and C++ we need to have the C++ compiler decide
 
19308
# the declaration of exit, since it's the most demanding environment.
 
19309
cat >conftest.$ac_ext <<_ACEOF
 
19310
#ifndef __cplusplus
 
19311
  choke me
 
19312
#endif
 
19313
_ACEOF
 
19314
rm -f conftest.$ac_objext
 
19315
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19316
  (eval $ac_compile) 2>conftest.er1
 
19317
  ac_status=$?
 
19318
  grep -v '^ *+' conftest.er1 >conftest.err
 
19319
  rm -f conftest.er1
 
19320
  cat conftest.err >&5
 
19321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19322
  (exit $ac_status); } &&
 
19323
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19325
  (eval $ac_try) 2>&5
 
19326
  ac_status=$?
 
19327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19328
  (exit $ac_status); }; } &&
 
19329
         { ac_try='test -s conftest.$ac_objext'
 
19330
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19331
  (eval $ac_try) 2>&5
 
19332
  ac_status=$?
 
19333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19334
  (exit $ac_status); }; }; then
 
19335
  for ac_declaration in \
 
19336
   '' \
 
19337
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
19338
   'extern "C" void std::exit (int); using std::exit;' \
 
19339
   'extern "C" void exit (int) throw ();' \
 
19340
   'extern "C" void exit (int);' \
 
19341
   'void exit (int);'
 
19342
do
 
19343
  cat >conftest.$ac_ext <<_ACEOF
 
19344
/* confdefs.h.  */
 
19345
_ACEOF
 
19346
cat confdefs.h >>conftest.$ac_ext
 
19347
cat >>conftest.$ac_ext <<_ACEOF
 
19348
/* end confdefs.h.  */
 
19349
$ac_declaration
 
19350
#include <stdlib.h>
 
19351
int
 
19352
main ()
 
19353
{
 
19354
exit (42);
 
19355
  ;
 
19356
  return 0;
 
19357
}
 
19358
_ACEOF
 
19359
rm -f conftest.$ac_objext
 
19360
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19361
  (eval $ac_compile) 2>conftest.er1
 
19362
  ac_status=$?
 
19363
  grep -v '^ *+' conftest.er1 >conftest.err
 
19364
  rm -f conftest.er1
 
19365
  cat conftest.err >&5
 
19366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19367
  (exit $ac_status); } &&
 
19368
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19370
  (eval $ac_try) 2>&5
 
19371
  ac_status=$?
 
19372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19373
  (exit $ac_status); }; } &&
 
19374
         { ac_try='test -s conftest.$ac_objext'
 
19375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19376
  (eval $ac_try) 2>&5
 
19377
  ac_status=$?
 
19378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19379
  (exit $ac_status); }; }; then
 
19380
  :
 
19381
else
 
19382
  echo "$as_me: failed program was:" >&5
 
19383
sed 's/^/| /' conftest.$ac_ext >&5
 
19384
 
 
19385
continue
 
19386
fi
 
19387
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19388
  cat >conftest.$ac_ext <<_ACEOF
 
19389
/* confdefs.h.  */
 
19390
_ACEOF
 
19391
cat confdefs.h >>conftest.$ac_ext
 
19392
cat >>conftest.$ac_ext <<_ACEOF
 
19393
/* end confdefs.h.  */
 
19394
$ac_declaration
 
19395
int
 
19396
main ()
 
19397
{
 
19398
exit (42);
 
19399
  ;
 
19400
  return 0;
 
19401
}
 
19402
_ACEOF
 
19403
rm -f conftest.$ac_objext
 
19404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19405
  (eval $ac_compile) 2>conftest.er1
 
19406
  ac_status=$?
 
19407
  grep -v '^ *+' conftest.er1 >conftest.err
 
19408
  rm -f conftest.er1
 
19409
  cat conftest.err >&5
 
19410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19411
  (exit $ac_status); } &&
 
19412
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19414
  (eval $ac_try) 2>&5
 
19415
  ac_status=$?
 
19416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19417
  (exit $ac_status); }; } &&
 
19418
         { ac_try='test -s conftest.$ac_objext'
 
19419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19420
  (eval $ac_try) 2>&5
 
19421
  ac_status=$?
 
19422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19423
  (exit $ac_status); }; }; then
 
19424
  break
 
19425
else
 
19426
  echo "$as_me: failed program was:" >&5
 
19427
sed 's/^/| /' conftest.$ac_ext >&5
 
19428
 
 
19429
fi
 
19430
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19431
done
 
19432
rm -f conftest*
 
19433
if test -n "$ac_declaration"; then
 
19434
  echo '#ifdef __cplusplus' >>confdefs.h
 
19435
  echo $ac_declaration      >>confdefs.h
 
19436
  echo '#endif'             >>confdefs.h
 
19437
fi
 
19438
 
 
19439
else
 
19440
  echo "$as_me: failed program was:" >&5
 
19441
sed 's/^/| /' conftest.$ac_ext >&5
 
19442
 
 
19443
fi
 
19444
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19445
ac_ext=c
 
19446
ac_cpp='$CPP $CPPFLAGS'
 
19447
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19448
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19449
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19450
 
 
19451
depcc="$CC"   am_compiler_list=
 
19452
 
 
19453
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
19454
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
19455
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
19456
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19457
else
 
19458
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
19459
  # We make a subdir and do the tests there.  Otherwise we can end up
 
19460
  # making bogus files that we don't know about and never remove.  For
 
19461
  # instance it was reported that on HP-UX the gcc test will end up
 
19462
  # making a dummy file named `D' -- because `-MD' means `put the output
 
19463
  # in D'.
 
19464
  mkdir conftest.dir
 
19465
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
19466
  # using a relative directory.
 
19467
  cp "$am_depcomp" conftest.dir
 
19468
  cd conftest.dir
 
19469
  # We will build objects and dependencies in a subdirectory because
 
19470
  # it helps to detect inapplicable dependency modes.  For instance
 
19471
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
19472
  # side effect of compilation, but ICC will put the dependencies in
 
19473
  # the current directory while Tru64 will put them in the object
 
19474
  # directory.
 
19475
  mkdir sub
 
19476
 
 
19477
  am_cv_CC_dependencies_compiler_type=none
 
19478
  if test "$am_compiler_list" = ""; then
 
19479
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
19480
  fi
 
19481
  for depmode in $am_compiler_list; do
 
19482
    # Setup a source with many dependencies, because some compilers
 
19483
    # like to wrap large dependency lists on column 80 (with \), and
 
19484
    # we should not choose a depcomp mode which is confused by this.
 
19485
    #
 
19486
    # We need to recreate these files for each test, as the compiler may
 
19487
    # overwrite some of them when testing with obscure command lines.
 
19488
    # This happens at least with the AIX C compiler.
 
19489
    : > sub/conftest.c
 
19490
    for i in 1 2 3 4 5 6; do
 
19491
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
19492
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
19493
      # Solaris 8's {/usr,}/bin/sh.
 
19494
      touch sub/conftst$i.h
 
19495
    done
 
19496
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
19497
 
 
19498
    case $depmode in
 
19499
    nosideeffect)
 
19500
      # after this tag, mechanisms are not by side-effect, so they'll
 
19501
      # only be used when explicitly requested
 
19502
      if test "x$enable_dependency_tracking" = xyes; then
 
19503
        continue
 
19504
      else
 
19505
        break
 
19506
      fi
 
19507
      ;;
 
19508
    none) break ;;
 
19509
    esac
 
19510
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
19511
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
19512
    # handle `-M -o', and we need to detect this.
 
19513
    if depmode=$depmode \
 
19514
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
19515
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
19516
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
19517
         >/dev/null 2>conftest.err &&
 
19518
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
19519
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
19520
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
19521
      # icc doesn't choke on unknown options, it will just issue warnings
 
19522
      # or remarks (even with -Werror).  So we grep stderr for any message
 
19523
      # that says an option was ignored or not supported.
 
19524
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
19525
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
19526
      # The diagnosis changed in icc 8.0:
 
19527
      #   icc: Command line remark: option '-MP' not supported
 
19528
      if (grep 'ignoring option' conftest.err ||
 
19529
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
19530
        am_cv_CC_dependencies_compiler_type=$depmode
 
19531
        break
 
19532
      fi
 
19533
    fi
 
19534
  done
 
19535
 
 
19536
  cd ..
 
19537
  rm -rf conftest.dir
 
19538
else
 
19539
  am_cv_CC_dependencies_compiler_type=none
 
19540
fi
 
19541
 
 
19542
fi
 
19543
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
19544
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
19545
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
19546
 
 
19547
 
 
19548
 
 
19549
if
 
19550
  test "x$enable_dependency_tracking" != xno \
 
19551
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
19552
  am__fastdepCC_TRUE=
 
19553
  am__fastdepCC_FALSE='#'
 
19554
else
 
19555
  am__fastdepCC_TRUE='#'
 
19556
  am__fastdepCC_FALSE=
 
19557
fi
 
19558
 
 
19559
 
 
19560
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
19561
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
19562
if test "${ac_cv_header_stdc+set}" = set; then
 
19563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19564
else
 
19565
  cat >conftest.$ac_ext <<_ACEOF
 
19566
/* confdefs.h.  */
 
19567
_ACEOF
 
19568
cat confdefs.h >>conftest.$ac_ext
 
19569
cat >>conftest.$ac_ext <<_ACEOF
 
19570
/* end confdefs.h.  */
 
19571
#include <stdlib.h>
 
19572
#include <stdarg.h>
 
19573
#include <string.h>
 
19574
#include <float.h>
 
19575
 
 
19576
int
 
19577
main ()
 
19578
{
 
19579
 
 
19580
  ;
 
19581
  return 0;
 
19582
}
 
19583
_ACEOF
 
19584
rm -f conftest.$ac_objext
 
19585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19586
  (eval $ac_compile) 2>conftest.er1
 
19587
  ac_status=$?
 
19588
  grep -v '^ *+' conftest.er1 >conftest.err
 
19589
  rm -f conftest.er1
 
19590
  cat conftest.err >&5
 
19591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19592
  (exit $ac_status); } &&
 
19593
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19595
  (eval $ac_try) 2>&5
 
19596
  ac_status=$?
 
19597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19598
  (exit $ac_status); }; } &&
 
19599
         { ac_try='test -s conftest.$ac_objext'
 
19600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19601
  (eval $ac_try) 2>&5
 
19602
  ac_status=$?
 
19603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19604
  (exit $ac_status); }; }; then
 
19605
  ac_cv_header_stdc=yes
 
19606
else
 
19607
  echo "$as_me: failed program was:" >&5
 
19608
sed 's/^/| /' conftest.$ac_ext >&5
 
19609
 
 
19610
ac_cv_header_stdc=no
 
19611
fi
 
19612
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19613
 
 
19614
if test $ac_cv_header_stdc = yes; then
 
19615
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
19616
  cat >conftest.$ac_ext <<_ACEOF
 
19617
/* confdefs.h.  */
 
19618
_ACEOF
 
19619
cat confdefs.h >>conftest.$ac_ext
 
19620
cat >>conftest.$ac_ext <<_ACEOF
 
19621
/* end confdefs.h.  */
 
19622
#include <string.h>
 
19623
 
 
19624
_ACEOF
 
19625
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19626
  $EGREP "memchr" >/dev/null 2>&1; then
 
19627
  :
 
19628
else
 
19629
  ac_cv_header_stdc=no
 
19630
fi
 
19631
rm -f conftest*
 
19632
 
 
19633
fi
 
19634
 
 
19635
if test $ac_cv_header_stdc = yes; then
 
19636
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
19637
  cat >conftest.$ac_ext <<_ACEOF
 
19638
/* confdefs.h.  */
 
19639
_ACEOF
 
19640
cat confdefs.h >>conftest.$ac_ext
 
19641
cat >>conftest.$ac_ext <<_ACEOF
 
19642
/* end confdefs.h.  */
 
19643
#include <stdlib.h>
 
19644
 
 
19645
_ACEOF
 
19646
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19647
  $EGREP "free" >/dev/null 2>&1; then
 
19648
  :
 
19649
else
 
19650
  ac_cv_header_stdc=no
 
19651
fi
 
19652
rm -f conftest*
 
19653
 
 
19654
fi
 
19655
 
 
19656
if test $ac_cv_header_stdc = yes; then
 
19657
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
19658
  if test "$cross_compiling" = yes; then
 
19659
  :
 
19660
else
 
19661
  cat >conftest.$ac_ext <<_ACEOF
 
19662
/* confdefs.h.  */
 
19663
_ACEOF
 
19664
cat confdefs.h >>conftest.$ac_ext
 
19665
cat >>conftest.$ac_ext <<_ACEOF
 
19666
/* end confdefs.h.  */
 
19667
#include <ctype.h>
 
19668
#if ((' ' & 0x0FF) == 0x020)
 
19669
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
19670
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
19671
#else
 
19672
# define ISLOWER(c) \
 
19673
                   (('a' <= (c) && (c) <= 'i') \
 
19674
                     || ('j' <= (c) && (c) <= 'r') \
 
19675
                     || ('s' <= (c) && (c) <= 'z'))
 
19676
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
19677
#endif
 
19678
 
 
19679
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
19680
int
 
19681
main ()
 
19682
{
 
19683
  int i;
 
19684
  for (i = 0; i < 256; i++)
 
19685
    if (XOR (islower (i), ISLOWER (i))
 
19686
        || toupper (i) != TOUPPER (i))
 
19687
      exit(2);
 
19688
  exit (0);
 
19689
}
 
19690
_ACEOF
 
19691
rm -f conftest$ac_exeext
 
19692
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19693
  (eval $ac_link) 2>&5
 
19694
  ac_status=$?
 
19695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19696
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19698
  (eval $ac_try) 2>&5
 
19699
  ac_status=$?
 
19700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19701
  (exit $ac_status); }; }; then
 
19702
  :
 
19703
else
 
19704
  echo "$as_me: program exited with status $ac_status" >&5
 
19705
echo "$as_me: failed program was:" >&5
 
19706
sed 's/^/| /' conftest.$ac_ext >&5
 
19707
 
 
19708
( exit $ac_status )
 
19709
ac_cv_header_stdc=no
 
19710
fi
 
19711
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19712
fi
 
19713
fi
 
19714
fi
 
19715
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
19716
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
19717
if test $ac_cv_header_stdc = yes; then
 
19718
 
 
19719
cat >>confdefs.h <<\_ACEOF
 
19720
#define STDC_HEADERS 1
 
19721
_ACEOF
 
19722
 
 
19723
fi
 
19724
 
 
19725
# Find a good install program.  We prefer a C program (faster),
 
19726
# so one script is as good as another.  But avoid the broken or
 
19727
# incompatible versions:
 
19728
# SysV /etc/install, /usr/sbin/install
 
19729
# SunOS /usr/etc/install
 
19730
# IRIX /sbin/install
 
19731
# AIX /bin/install
 
19732
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
19733
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
19734
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
19735
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
19736
# OS/2's system install, which has a completely different semantic
 
19737
# ./install, which can be erroneously created by make from ./install.sh.
 
19738
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
19739
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
19740
if test -z "$INSTALL"; then
 
19741
if test "${ac_cv_path_install+set}" = set; then
 
19742
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19743
else
 
19744
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19745
for as_dir in $PATH
 
19746
do
 
19747
  IFS=$as_save_IFS
 
19748
  test -z "$as_dir" && as_dir=.
 
19749
  # Account for people who put trailing slashes in PATH elements.
 
19750
case $as_dir/ in
 
19751
  ./ | .// | /cC/* | \
 
19752
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
19753
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
19754
  /usr/ucb/* ) ;;
 
19755
  *)
 
19756
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
19757
    # Don't use installbsd from OSF since it installs stuff as root
 
19758
    # by default.
 
19759
    for ac_prog in ginstall scoinst install; do
 
19760
      for ac_exec_ext in '' $ac_executable_extensions; do
 
19761
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
19762
          if test $ac_prog = install &&
 
19763
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
19764
            # AIX install.  It has an incompatible calling convention.
 
19765
            :
 
19766
          elif test $ac_prog = install &&
 
19767
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
19768
            # program-specific install script used by HP pwplus--don't use.
 
19769
            :
 
19770
          else
 
19771
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
19772
            break 3
 
19773
          fi
 
19774
        fi
 
19775
      done
 
19776
    done
 
19777
    ;;
 
19778
esac
 
19779
done
 
19780
 
 
19781
 
 
19782
fi
 
19783
  if test "${ac_cv_path_install+set}" = set; then
 
19784
    INSTALL=$ac_cv_path_install
 
19785
  else
 
19786
    # As a last resort, use the slow shell script.  We don't cache a
 
19787
    # path for INSTALL within a source directory, because that will
 
19788
    # break other packages using the cache if that directory is
 
19789
    # removed, or if the path is relative.
 
19790
    INSTALL=$ac_install_sh
 
19791
  fi
 
19792
fi
 
19793
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
19794
echo "${ECHO_T}$INSTALL" >&6
 
19795
 
 
19796
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
19797
# It thinks the first close brace ends the variable substitution.
 
19798
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
19799
 
 
19800
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
19801
 
 
19802
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
19803
 
 
19804
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
19805
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
19806
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
19807
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
19808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19809
else
 
19810
  cat >conftest.make <<\_ACEOF
 
19811
all:
 
19812
        @echo 'ac_maketemp="$(MAKE)"'
 
19813
_ACEOF
 
19814
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
19815
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
19816
if test -n "$ac_maketemp"; then
 
19817
  eval ac_cv_prog_make_${ac_make}_set=yes
 
19818
else
 
19819
  eval ac_cv_prog_make_${ac_make}_set=no
 
19820
fi
 
19821
rm -f conftest.make
 
19822
fi
 
19823
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
19824
  echo "$as_me:$LINENO: result: yes" >&5
 
19825
echo "${ECHO_T}yes" >&6
 
19826
  SET_MAKE=
 
19827
else
 
19828
  echo "$as_me:$LINENO: result: no" >&5
 
19829
echo "${ECHO_T}no" >&6
 
19830
  SET_MAKE="MAKE=${MAKE-make}"
 
19831
fi
 
19832
 
 
19833
 
 
19834
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
 
19835
set dummy glib-genmarshal; ac_word=$2
 
19836
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19837
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19838
if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
 
19839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19840
else
 
19841
  case $GLIB_GENMARSHAL in
 
19842
  [\\/]* | ?:[\\/]*)
 
19843
  ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
 
19844
  ;;
 
19845
  *)
 
19846
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19847
for as_dir in $PATH
 
19848
do
 
19849
  IFS=$as_save_IFS
 
19850
  test -z "$as_dir" && as_dir=.
 
19851
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19852
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19853
    ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
 
19854
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19855
    break 2
 
19856
  fi
 
19857
done
 
19858
done
 
19859
 
 
19860
  ;;
 
19861
esac
 
19862
fi
 
19863
GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
 
19864
 
 
19865
if test -n "$GLIB_GENMARSHAL"; then
 
19866
  echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
 
19867
echo "${ECHO_T}$GLIB_GENMARSHAL" >&6
 
19868
else
 
19869
  echo "$as_me:$LINENO: result: no" >&5
 
19870
echo "${ECHO_T}no" >&6
 
19871
fi
 
19872
 
 
19873
 
 
19874
GTK_REQUIRED=2.6.0
 
19875
 
 
19876
# Check whether --enable-gtktest or --disable-gtktest was given.
 
19877
if test "${enable_gtktest+set}" = set; then
 
19878
  enableval="$enable_gtktest"
 
19879
 
 
19880
else
 
19881
  enable_gtktest=yes
 
19882
fi;
 
19883
 
 
19884
  pkg_config_args=gtk+-2.0
 
19885
  for module in .
 
19886
  do
 
19887
      case "$module" in
 
19888
         gthread)
 
19889
             pkg_config_args="$pkg_config_args gthread-2.0"
 
19890
         ;;
 
19891
      esac
 
19892
  done
 
19893
 
 
19894
  no_gtk=""
 
19895
 
 
19896
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
19897
set dummy pkg-config; ac_word=$2
 
19898
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19899
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19900
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
19901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19902
else
 
19903
  case $PKG_CONFIG in
 
19904
  [\\/]* | ?:[\\/]*)
 
19905
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
19906
  ;;
 
19907
  *)
 
19908
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19909
for as_dir in $PATH
 
19910
do
 
19911
  IFS=$as_save_IFS
 
19912
  test -z "$as_dir" && as_dir=.
 
19913
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19914
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19915
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19916
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19917
    break 2
 
19918
  fi
 
19919
done
 
19920
done
 
19921
 
 
19922
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
19923
  ;;
 
19924
esac
 
19925
fi
 
19926
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
19927
 
 
19928
if test -n "$PKG_CONFIG"; then
 
19929
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
19930
echo "${ECHO_T}$PKG_CONFIG" >&6
 
19931
else
 
19932
  echo "$as_me:$LINENO: result: no" >&5
 
19933
echo "${ECHO_T}no" >&6
 
19934
fi
 
19935
 
 
19936
 
 
19937
  if test x$PKG_CONFIG != xno ; then
 
19938
    if pkg-config --atleast-pkgconfig-version 0.7 ; then
 
19939
      :
 
19940
    else
 
19941
      echo "*** pkg-config too old; version 0.7 or better required."
 
19942
      no_gtk=yes
 
19943
      PKG_CONFIG=no
 
19944
    fi
 
19945
  else
 
19946
    no_gtk=yes
 
19947
  fi
 
19948
 
 
19949
  min_gtk_version=$GTK_REQUIRED
 
19950
  echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
 
19951
echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
 
19952
 
 
19953
  if test x$PKG_CONFIG != xno ; then
 
19954
    ## don't try to run the test against uninstalled libtool libs
 
19955
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
 
19956
          echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
 
19957
          enable_gtktest=no
 
19958
    fi
 
19959
 
 
19960
    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
 
19961
          :
 
19962
    else
 
19963
          no_gtk=yes
 
19964
    fi
 
19965
  fi
 
19966
 
 
19967
  if test x"$no_gtk" = x ; then
 
19968
    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
 
19969
    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
 
19970
    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
19971
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
19972
    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
19973
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
19974
    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
 
19975
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
19976
    if test "x$enable_gtktest" = "xyes" ; then
 
19977
      ac_save_CFLAGS="$CFLAGS"
 
19978
      ac_save_LIBS="$LIBS"
 
19979
      CFLAGS="$CFLAGS $GTK_CFLAGS"
 
19980
      LIBS="$GTK_LIBS $LIBS"
 
19981
      rm -f conf.gtktest
 
19982
      if test "$cross_compiling" = yes; then
 
19983
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
19984
else
 
19985
  cat >conftest.$ac_ext <<_ACEOF
 
19986
/* confdefs.h.  */
 
19987
_ACEOF
 
19988
cat confdefs.h >>conftest.$ac_ext
 
19989
cat >>conftest.$ac_ext <<_ACEOF
 
19990
/* end confdefs.h.  */
 
19991
 
 
19992
#include <gtk/gtk.h>
 
19993
#include <stdio.h>
 
19994
#include <stdlib.h>
 
19995
 
 
19996
int
 
19997
main ()
 
19998
{
 
19999
  int major, minor, micro;
 
20000
  char *tmp_version;
 
20001
 
 
20002
  system ("touch conf.gtktest");
 
20003
 
 
20004
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
20005
  tmp_version = g_strdup("$min_gtk_version");
 
20006
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
20007
     printf("%s, bad version string\n", "$min_gtk_version");
 
20008
     exit(1);
 
20009
   }
 
20010
 
 
20011
  if ((gtk_major_version != $gtk_config_major_version) ||
 
20012
      (gtk_minor_version != $gtk_config_minor_version) ||
 
20013
      (gtk_micro_version != $gtk_config_micro_version))
 
20014
    {
 
20015
      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
 
20016
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
 
20017
             gtk_major_version, gtk_minor_version, gtk_micro_version);
 
20018
      printf ("*** was found! If pkg-config was correct, then it is best\n");
 
20019
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
 
20020
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
20021
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
20022
      printf("*** required on your system.\n");
 
20023
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
 
20024
      printf("*** to point to the correct configuration files\n");
 
20025
    }
 
20026
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
 
20027
           (gtk_minor_version != GTK_MINOR_VERSION) ||
 
20028
           (gtk_micro_version != GTK_MICRO_VERSION))
 
20029
    {
 
20030
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
 
20031
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
 
20032
      printf("*** library (version %d.%d.%d)\n",
 
20033
             gtk_major_version, gtk_minor_version, gtk_micro_version);
 
20034
    }
 
20035
  else
 
20036
    {
 
20037
      if ((gtk_major_version > major) ||
 
20038
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
 
20039
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
 
20040
      {
 
20041
        return 0;
 
20042
       }
 
20043
     else
 
20044
      {
 
20045
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
 
20046
               gtk_major_version, gtk_minor_version, gtk_micro_version);
 
20047
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
 
20048
               major, minor, micro);
 
20049
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
 
20050
        printf("***\n");
 
20051
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
20052
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
 
20053
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
20054
        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
 
20055
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
 
20056
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
20057
        printf("*** so that the correct libraries are found at run-time))\n");
 
20058
      }
 
20059
    }
 
20060
  return 1;
 
20061
}
 
20062
 
 
20063
_ACEOF
 
20064
rm -f conftest$ac_exeext
 
20065
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20066
  (eval $ac_link) 2>&5
 
20067
  ac_status=$?
 
20068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20069
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20071
  (eval $ac_try) 2>&5
 
20072
  ac_status=$?
 
20073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20074
  (exit $ac_status); }; }; then
 
20075
  :
 
20076
else
 
20077
  echo "$as_me: program exited with status $ac_status" >&5
 
20078
echo "$as_me: failed program was:" >&5
 
20079
sed 's/^/| /' conftest.$ac_ext >&5
 
20080
 
 
20081
( exit $ac_status )
 
20082
no_gtk=yes
 
20083
fi
 
20084
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20085
fi
 
20086
       CFLAGS="$ac_save_CFLAGS"
 
20087
       LIBS="$ac_save_LIBS"
 
20088
     fi
 
20089
  fi
 
20090
  if test "x$no_gtk" = x ; then
 
20091
     echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
 
20092
echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
 
20093
     :
 
20094
  else
 
20095
     echo "$as_me:$LINENO: result: no" >&5
 
20096
echo "${ECHO_T}no" >&6
 
20097
     if test "$PKG_CONFIG" = "no" ; then
 
20098
       echo "*** A new enough version of pkg-config was not found."
 
20099
       echo "*** See http://pkgconfig.sourceforge.net"
 
20100
     else
 
20101
       if test -f conf.gtktest ; then
 
20102
        :
 
20103
       else
 
20104
          echo "*** Could not run GTK+ test program, checking why..."
 
20105
          ac_save_CFLAGS="$CFLAGS"
 
20106
          ac_save_LIBS="$LIBS"
 
20107
          CFLAGS="$CFLAGS $GTK_CFLAGS"
 
20108
          LIBS="$LIBS $GTK_LIBS"
 
20109
          cat >conftest.$ac_ext <<_ACEOF
 
20110
/* confdefs.h.  */
 
20111
_ACEOF
 
20112
cat confdefs.h >>conftest.$ac_ext
 
20113
cat >>conftest.$ac_ext <<_ACEOF
 
20114
/* end confdefs.h.  */
 
20115
 
 
20116
#include <gtk/gtk.h>
 
20117
#include <stdio.h>
 
20118
 
 
20119
int
 
20120
main ()
 
20121
{
 
20122
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
 
20123
  ;
 
20124
  return 0;
 
20125
}
 
20126
_ACEOF
 
20127
rm -f conftest.$ac_objext conftest$ac_exeext
 
20128
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20129
  (eval $ac_link) 2>conftest.er1
 
20130
  ac_status=$?
 
20131
  grep -v '^ *+' conftest.er1 >conftest.err
 
20132
  rm -f conftest.er1
 
20133
  cat conftest.err >&5
 
20134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20135
  (exit $ac_status); } &&
 
20136
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20137
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20138
  (eval $ac_try) 2>&5
 
20139
  ac_status=$?
 
20140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20141
  (exit $ac_status); }; } &&
 
20142
         { ac_try='test -s conftest$ac_exeext'
 
20143
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20144
  (eval $ac_try) 2>&5
 
20145
  ac_status=$?
 
20146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20147
  (exit $ac_status); }; }; then
 
20148
   echo "*** The test program compiled, but did not run. This usually means"
 
20149
          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
 
20150
          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
 
20151
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
20152
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
20153
          echo "*** is required on your system"
 
20154
          echo "***"
 
20155
          echo "*** If you have an old version installed, it is best to remove it, although"
 
20156
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
20157
else
 
20158
  echo "$as_me: failed program was:" >&5
 
20159
sed 's/^/| /' conftest.$ac_ext >&5
 
20160
 
 
20161
 echo "*** The test program failed to compile or link. See the file config.log for the"
 
20162
          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
 
20163
fi
 
20164
rm -f conftest.err conftest.$ac_objext \
 
20165
      conftest$ac_exeext conftest.$ac_ext
 
20166
          CFLAGS="$ac_save_CFLAGS"
 
20167
          LIBS="$ac_save_LIBS"
 
20168
       fi
 
20169
     fi
 
20170
     GTK_CFLAGS=""
 
20171
     GTK_LIBS=""
 
20172
     :
 
20173
  fi
 
20174
 
 
20175
 
 
20176
  rm -f conf.gtktest
 
20177
 
 
20178
 
 
20179
 
 
20180
 
 
20181
 
 
20182
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
20183
        if test -n "$ac_tool_prefix"; then
 
20184
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
20185
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
20186
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20187
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20188
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
20189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20190
else
 
20191
  case $PKG_CONFIG in
 
20192
  [\\/]* | ?:[\\/]*)
 
20193
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
20194
  ;;
 
20195
  *)
 
20196
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20197
for as_dir in $PATH
 
20198
do
 
20199
  IFS=$as_save_IFS
 
20200
  test -z "$as_dir" && as_dir=.
 
20201
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20202
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20203
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20204
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20205
    break 2
 
20206
  fi
 
20207
done
 
20208
done
 
20209
 
 
20210
  ;;
 
20211
esac
 
20212
fi
 
20213
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
20214
 
 
20215
if test -n "$PKG_CONFIG"; then
 
20216
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
20217
echo "${ECHO_T}$PKG_CONFIG" >&6
 
20218
else
 
20219
  echo "$as_me:$LINENO: result: no" >&5
 
20220
echo "${ECHO_T}no" >&6
 
20221
fi
 
20222
 
 
20223
fi
 
20224
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
20225
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
20226
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
20227
set dummy pkg-config; ac_word=$2
 
20228
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20229
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20230
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
20231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20232
else
 
20233
  case $ac_pt_PKG_CONFIG in
 
20234
  [\\/]* | ?:[\\/]*)
 
20235
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
20236
  ;;
 
20237
  *)
 
20238
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20239
for as_dir in $PATH
 
20240
do
 
20241
  IFS=$as_save_IFS
 
20242
  test -z "$as_dir" && as_dir=.
 
20243
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20244
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20245
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20246
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20247
    break 2
 
20248
  fi
 
20249
done
 
20250
done
 
20251
 
 
20252
  ;;
 
20253
esac
 
20254
fi
 
20255
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
20256
 
 
20257
if test -n "$ac_pt_PKG_CONFIG"; then
 
20258
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
20259
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
20260
else
 
20261
  echo "$as_me:$LINENO: result: no" >&5
 
20262
echo "${ECHO_T}no" >&6
 
20263
fi
 
20264
 
 
20265
  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
20266
else
 
20267
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
20268
fi
 
20269
 
 
20270
fi
 
20271
if test -n "$PKG_CONFIG"; then
 
20272
        _pkg_min_version=0.9.0
 
20273
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
20274
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
20275
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
20276
                echo "$as_me:$LINENO: result: yes" >&5
 
20277
echo "${ECHO_T}yes" >&6
 
20278
        else
 
20279
                echo "$as_me:$LINENO: result: no" >&5
 
20280
echo "${ECHO_T}no" >&6
 
20281
                PKG_CONFIG=""
 
20282
        fi
 
20283
 
 
20284
fi
 
20285
 
 
20286
pkg_failed=no
 
20287
echo "$as_me:$LINENO: checking for ESPRESSO_DEPENDS" >&5
 
20288
echo $ECHO_N "checking for ESPRESSO_DEPENDS... $ECHO_C" >&6
 
20289
 
 
20290
if test -n "$PKG_CONFIG"; then
 
20291
    if test -n "$ESPRESSO_DEPENDS_CFLAGS"; then
 
20292
        pkg_cv_ESPRESSO_DEPENDS_CFLAGS="$ESPRESSO_DEPENDS_CFLAGS"
 
20293
    else
 
20294
        if test -n "$PKG_CONFIG" && \
 
20295
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
 
20296
                           gtk+-2.0 >= \$GTK_REQUIRED
 
20297
                           libart-2.0
 
20298
                           \"") >&5
 
20299
  ($PKG_CONFIG --exists --print-errors "
 
20300
                           gtk+-2.0 >= $GTK_REQUIRED
 
20301
                           libart-2.0
 
20302
                           ") 2>&5
 
20303
  ac_status=$?
 
20304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20305
  (exit $ac_status); }; then
 
20306
  pkg_cv_ESPRESSO_DEPENDS_CFLAGS=`$PKG_CONFIG --cflags "
 
20307
                           gtk+-2.0 >= $GTK_REQUIRED
 
20308
                           libart-2.0
 
20309
                           " 2>/dev/null`
 
20310
else
 
20311
  pkg_failed=yes
 
20312
fi
 
20313
    fi
 
20314
else
 
20315
        pkg_failed=untried
 
20316
fi
 
20317
if test -n "$PKG_CONFIG"; then
 
20318
    if test -n "$ESPRESSO_DEPENDS_LIBS"; then
 
20319
        pkg_cv_ESPRESSO_DEPENDS_LIBS="$ESPRESSO_DEPENDS_LIBS"
 
20320
    else
 
20321
        if test -n "$PKG_CONFIG" && \
 
20322
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
 
20323
                           gtk+-2.0 >= \$GTK_REQUIRED
 
20324
                           libart-2.0
 
20325
                           \"") >&5
 
20326
  ($PKG_CONFIG --exists --print-errors "
 
20327
                           gtk+-2.0 >= $GTK_REQUIRED
 
20328
                           libart-2.0
 
20329
                           ") 2>&5
 
20330
  ac_status=$?
 
20331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20332
  (exit $ac_status); }; then
 
20333
  pkg_cv_ESPRESSO_DEPENDS_LIBS=`$PKG_CONFIG --libs "
 
20334
                           gtk+-2.0 >= $GTK_REQUIRED
 
20335
                           libart-2.0
 
20336
                           " 2>/dev/null`
 
20337
else
 
20338
  pkg_failed=yes
 
20339
fi
 
20340
    fi
 
20341
else
 
20342
        pkg_failed=untried
 
20343
fi
 
20344
 
 
20345
 
 
20346
 
 
20347
if test $pkg_failed = yes; then
 
20348
 
 
20349
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20350
        _pkg_short_errors_supported=yes
 
20351
else
 
20352
        _pkg_short_errors_supported=no
 
20353
fi
 
20354
        if test $_pkg_short_errors_supported = yes; then
 
20355
                ESPRESSO_DEPENDS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
 
20356
                           gtk+-2.0 >= $GTK_REQUIRED
 
20357
                           libart-2.0
 
20358
                           "`
 
20359
        else
 
20360
                ESPRESSO_DEPENDS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
 
20361
                           gtk+-2.0 >= $GTK_REQUIRED
 
20362
                           libart-2.0
 
20363
                           "`
 
20364
        fi
 
20365
        # Put the nasty error message in config.log where it belongs
 
20366
        echo "$ESPRESSO_DEPENDS_PKG_ERRORS" >&5
 
20367
 
 
20368
        { { echo "$as_me:$LINENO: error: Package requirements (
 
20369
                           gtk+-2.0 >= $GTK_REQUIRED
 
20370
                           libart-2.0
 
20371
                           ) were not met:
 
20372
 
 
20373
$ESPRESSO_DEPENDS_PKG_ERRORS
 
20374
 
 
20375
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20376
installed software in a non-standard prefix.
 
20377
 
 
20378
Alternatively, you may set the environment variables ESPRESSO_DEPENDS_CFLAGS
 
20379
and ESPRESSO_DEPENDS_LIBS to avoid the need to call pkg-config.
 
20380
See the pkg-config man page for more details.
 
20381
" >&5
 
20382
echo "$as_me: error: Package requirements (
 
20383
                           gtk+-2.0 >= $GTK_REQUIRED
 
20384
                           libart-2.0
 
20385
                           ) were not met:
 
20386
 
 
20387
$ESPRESSO_DEPENDS_PKG_ERRORS
 
20388
 
 
20389
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
20390
installed software in a non-standard prefix.
 
20391
 
 
20392
Alternatively, you may set the environment variables ESPRESSO_DEPENDS_CFLAGS
 
20393
and ESPRESSO_DEPENDS_LIBS to avoid the need to call pkg-config.
 
20394
See the pkg-config man page for more details.
 
20395
" >&2;}
 
20396
   { (exit 1); exit 1; }; }
 
20397
elif test $pkg_failed = untried; then
 
20398
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
20399
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20400
path to pkg-config.
 
20401
 
 
20402
Alternatively, you may set the environment variables ESPRESSO_DEPENDS_CFLAGS
 
20403
and ESPRESSO_DEPENDS_LIBS to avoid the need to call pkg-config.
 
20404
See the pkg-config man page for more details.
 
20405
 
 
20406
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20407
See \`config.log' for more details." >&5
 
20408
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
20409
is in your PATH or set the PKG_CONFIG environment variable to the full
 
20410
path to pkg-config.
 
20411
 
 
20412
Alternatively, you may set the environment variables ESPRESSO_DEPENDS_CFLAGS
 
20413
and ESPRESSO_DEPENDS_LIBS to avoid the need to call pkg-config.
 
20414
See the pkg-config man page for more details.
 
20415
 
 
20416
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
20417
See \`config.log' for more details." >&2;}
 
20418
   { (exit 1); exit 1; }; }
 
20419
else
 
20420
        ESPRESSO_DEPENDS_CFLAGS=$pkg_cv_ESPRESSO_DEPENDS_CFLAGS
 
20421
        ESPRESSO_DEPENDS_LIBS=$pkg_cv_ESPRESSO_DEPENDS_LIBS
 
20422
        echo "$as_me:$LINENO: result: yes" >&5
 
20423
echo "${ECHO_T}yes" >&6
 
20424
        :
 
20425
fi
 
20426
 
 
20427
 
 
20428
 
 
20429
if test "x${prefix}" = "xNONE"; then
 
20430
 
 
20431
cat >>confdefs.h <<_ACEOF
 
20432
#define PIXMAPS_DIR "${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
 
20433
_ACEOF
 
20434
 
 
20435
  pixmapsdir="${ac_default_prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
 
20436
else
 
20437
 
 
20438
cat >>confdefs.h <<_ACEOF
 
20439
#define PIXMAPS_DIR "${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
 
20440
_ACEOF
 
20441
 
 
20442
  pixmapsdir="${prefix}/${DATADIRNAME}/${PACKAGE}/pixmaps"
 
20443
fi
 
20444
 
 
20445
 
 
20446
 
 
20447
 
 
20448
 
 
20449
                                        ac_config_files="$ac_config_files Makefile src/Makefile src/cut-and-paste/Makefile src/cut-and-paste/e-map/Makefile"
 
20450
cat >confcache <<\_ACEOF
 
20451
# This file is a shell script that caches the results of configure
 
20452
# tests run on this system so they can be shared between configure
 
20453
# scripts and configure runs, see configure's option --config-cache.
 
20454
# It is not useful on other systems.  If it contains results you don't
 
20455
# want to keep, you may remove or edit it.
 
20456
#
 
20457
# config.status only pays attention to the cache file if you give it
 
20458
# the --recheck option to rerun configure.
 
20459
#
 
20460
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
20461
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
20462
# following values.
 
20463
 
 
20464
_ACEOF
 
20465
 
 
20466
# The following way of writing the cache mishandles newlines in values,
 
20467
# but we know of no workaround that is simple, portable, and efficient.
 
20468
# So, don't put newlines in cache variables' values.
 
20469
# Ultrix sh set writes to stderr and can't be redirected directly,
 
20470
# and sets the high bit in the cache file unless we assign to the vars.
 
20471
{
 
20472
  (set) 2>&1 |
 
20473
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
20474
    *ac_space=\ *)
 
20475
      # `set' does not quote correctly, so add quotes (double-quote
 
20476
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
20477
      sed -n \
 
20478
        "s/'/'\\\\''/g;
 
20479
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
20480
      ;;
 
20481
    *)
 
20482
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
20483
      sed -n \
 
20484
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
20485
      ;;
 
20486
    esac;
 
20487
} |
 
20488
  sed '
 
20489
     t clear
 
20490
     : clear
 
20491
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
20492
     t end
 
20493
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
20494
     : end' >>confcache
 
20495
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
20496
  if test -w $cache_file; then
 
20497
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
20498
    cat confcache >$cache_file
 
20499
  else
 
20500
    echo "not updating unwritable cache $cache_file"
 
20501
  fi
 
20502
fi
 
20503
rm -f confcache
 
20504
 
 
20505
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
20506
# Let make expand exec_prefix.
 
20507
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
20508
 
 
20509
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
20510
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
20511
# trailing colons and then remove the whole line if VPATH becomes empty
 
20512
# (actually we leave an empty line to preserve line numbers).
 
20513
if test "x$srcdir" = x.; then
 
20514
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
20515
s/:*\$(srcdir):*/:/;
 
20516
s/:*\${srcdir}:*/:/;
 
20517
s/:*@srcdir@:*/:/;
 
20518
s/^\([^=]*=[     ]*\):*/\1/;
 
20519
s/:*$//;
 
20520
s/^[^=]*=[       ]*$//;
 
20521
}'
 
20522
fi
 
20523
 
 
20524
DEFS=-DHAVE_CONFIG_H
 
20525
 
 
20526
ac_libobjs=
 
20527
ac_ltlibobjs=
 
20528
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
20529
  # 1. Remove the extension, and $U if already installed.
 
20530
  ac_i=`echo "$ac_i" |
 
20531
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
20532
  # 2. Add them.
 
20533
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
20534
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
20535
done
 
20536
LIBOBJS=$ac_libobjs
 
20537
 
 
20538
LTLIBOBJS=$ac_ltlibobjs
 
20539
 
 
20540
 
 
20541
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
20542
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
20543
Usually this means the macro was only invoked conditionally." >&5
 
20544
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
20545
Usually this means the macro was only invoked conditionally." >&2;}
 
20546
   { (exit 1); exit 1; }; }
 
20547
fi
 
20548
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
20549
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
20550
Usually this means the macro was only invoked conditionally." >&5
 
20551
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
20552
Usually this means the macro was only invoked conditionally." >&2;}
 
20553
   { (exit 1); exit 1; }; }
 
20554
fi
 
20555
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20556
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20557
Usually this means the macro was only invoked conditionally." >&5
 
20558
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20559
Usually this means the macro was only invoked conditionally." >&2;}
 
20560
   { (exit 1); exit 1; }; }
 
20561
fi
 
20562
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
20563
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
20564
Usually this means the macro was only invoked conditionally." >&5
 
20565
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
20566
Usually this means the macro was only invoked conditionally." >&2;}
 
20567
   { (exit 1); exit 1; }; }
 
20568
fi
 
20569
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20570
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20571
Usually this means the macro was only invoked conditionally." >&5
 
20572
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20573
Usually this means the macro was only invoked conditionally." >&2;}
 
20574
   { (exit 1); exit 1; }; }
 
20575
fi
 
20576
 
 
20577
: ${CONFIG_STATUS=./config.status}
 
20578
ac_clean_files_save=$ac_clean_files
 
20579
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
20580
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
20581
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
20582
cat >$CONFIG_STATUS <<_ACEOF
 
20583
#! $SHELL
 
20584
# Generated by $as_me.
 
20585
# Run this file to recreate the current configuration.
 
20586
# Compiler output produced by configure, useful for debugging
 
20587
# configure, is in config.log if it exists.
 
20588
 
 
20589
debug=false
 
20590
ac_cs_recheck=false
 
20591
ac_cs_silent=false
 
20592
SHELL=\${CONFIG_SHELL-$SHELL}
 
20593
_ACEOF
 
20594
 
 
20595
cat >>$CONFIG_STATUS <<\_ACEOF
 
20596
## --------------------- ##
 
20597
## M4sh Initialization.  ##
 
20598
## --------------------- ##
 
20599
 
 
20600
# Be Bourne compatible
 
20601
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20602
  emulate sh
 
20603
  NULLCMD=:
 
20604
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20605
  # is contrary to our usage.  Disable this feature.
 
20606
  alias -g '${1+"$@"}'='"$@"'
 
20607
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20608
  set -o posix
 
20609
fi
 
20610
DUALCASE=1; export DUALCASE # for MKS sh
 
20611
 
 
20612
# Support unset when possible.
 
20613
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
20614
  as_unset=unset
 
20615
else
 
20616
  as_unset=false
 
20617
fi
 
20618
 
 
20619
 
 
20620
# Work around bugs in pre-3.0 UWIN ksh.
 
20621
$as_unset ENV MAIL MAILPATH
 
20622
PS1='$ '
 
20623
PS2='> '
 
20624
PS4='+ '
 
20625
 
 
20626
# NLS nuisances.
 
20627
for as_var in \
 
20628
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
20629
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
20630
  LC_TELEPHONE LC_TIME
 
20631
do
 
20632
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
20633
    eval $as_var=C; export $as_var
 
20634
  else
 
20635
    $as_unset $as_var
 
20636
  fi
 
20637
done
 
20638
 
 
20639
# Required to use basename.
 
20640
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20641
  as_expr=expr
 
20642
else
 
20643
  as_expr=false
 
20644
fi
 
20645
 
 
20646
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
20647
  as_basename=basename
 
20648
else
 
20649
  as_basename=false
 
20650
fi
 
20651
 
 
20652
 
 
20653
# Name of the executable.
 
20654
as_me=`$as_basename "$0" ||
 
20655
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
20656
         X"$0" : 'X\(//\)$' \| \
 
20657
         X"$0" : 'X\(/\)$' \| \
 
20658
         .     : '\(.\)' 2>/dev/null ||
 
20659
echo X/"$0" |
 
20660
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
20661
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
20662
          /^X\/\(\/\).*/{ s//\1/; q; }
 
20663
          s/.*/./; q'`
 
20664
 
 
20665
 
 
20666
# PATH needs CR, and LINENO needs CR and PATH.
 
20667
# Avoid depending upon Character Ranges.
 
20668
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20669
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20670
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20671
as_cr_digits='0123456789'
 
20672
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
20673
 
 
20674
# The user is always right.
 
20675
if test "${PATH_SEPARATOR+set}" != set; then
 
20676
  echo "#! /bin/sh" >conf$$.sh
 
20677
  echo  "exit 0"   >>conf$$.sh
 
20678
  chmod +x conf$$.sh
 
20679
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
20680
    PATH_SEPARATOR=';'
 
20681
  else
 
20682
    PATH_SEPARATOR=:
 
20683
  fi
 
20684
  rm -f conf$$.sh
 
20685
fi
 
20686
 
 
20687
 
 
20688
  as_lineno_1=$LINENO
 
20689
  as_lineno_2=$LINENO
 
20690
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20691
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20692
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
20693
  # Find who we are.  Look in the path if we contain no path at all
 
20694
  # relative or not.
 
20695
  case $0 in
 
20696
    *[\\/]* ) as_myself=$0 ;;
 
20697
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20698
for as_dir in $PATH
 
20699
do
 
20700
  IFS=$as_save_IFS
 
20701
  test -z "$as_dir" && as_dir=.
 
20702
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20703
done
 
20704
 
 
20705
       ;;
 
20706
  esac
 
20707
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
20708
  # in which case we are not to be found in the path.
 
20709
  if test "x$as_myself" = x; then
 
20710
    as_myself=$0
 
20711
  fi
 
20712
  if test ! -f "$as_myself"; then
 
20713
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
20714
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
20715
   { (exit 1); exit 1; }; }
 
20716
  fi
 
20717
  case $CONFIG_SHELL in
 
20718
  '')
 
20719
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20720
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
20721
do
 
20722
  IFS=$as_save_IFS
 
20723
  test -z "$as_dir" && as_dir=.
 
20724
  for as_base in sh bash ksh sh5; do
 
20725
         case $as_dir in
 
20726
         /*)
 
20727
           if ("$as_dir/$as_base" -c '
 
20728
  as_lineno_1=$LINENO
 
20729
  as_lineno_2=$LINENO
 
20730
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20731
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20732
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
20733
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
20734
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
20735
             CONFIG_SHELL=$as_dir/$as_base
 
20736
             export CONFIG_SHELL
 
20737
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
20738
           fi;;
 
20739
         esac
 
20740
       done
 
20741
done
 
20742
;;
 
20743
  esac
 
20744
 
 
20745
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
20746
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
20747
  # line-number line before each line; the second 'sed' does the real
 
20748
  # work.  The second script uses 'N' to pair each line-number line
 
20749
  # with the numbered line, and appends trailing '-' during
 
20750
  # substitution so that $LINENO is not a special case at line end.
 
20751
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20752
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
20753
  sed '=' <$as_myself |
 
20754
    sed '
 
20755
      N
 
20756
      s,$,-,
 
20757
      : loop
 
20758
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
20759
      t loop
 
20760
      s,-$,,
 
20761
      s,^['$as_cr_digits']*\n,,
 
20762
    ' >$as_me.lineno &&
 
20763
  chmod +x $as_me.lineno ||
 
20764
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
20765
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
20766
   { (exit 1); exit 1; }; }
 
20767
 
 
20768
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20769
  # (the dirname of $[0] is not the place where we might find the
 
20770
  # original and so on.  Autoconf is especially sensible to this).
 
20771
  . ./$as_me.lineno
 
20772
  # Exit status is that of the last command.
 
20773
  exit
 
20774
}
 
20775
 
 
20776
 
 
20777
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
20778
  *c*,-n*) ECHO_N= ECHO_C='
 
20779
' ECHO_T='      ' ;;
 
20780
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
20781
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
20782
esac
 
20783
 
 
20784
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20785
  as_expr=expr
 
20786
else
 
20787
  as_expr=false
 
20788
fi
 
20789
 
 
20790
rm -f conf$$ conf$$.exe conf$$.file
 
20791
echo >conf$$.file
 
20792
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20793
  # We could just check for DJGPP; but this test a) works b) is more generic
 
20794
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
20795
  if test -f conf$$.exe; then
 
20796
    # Don't use ln at all; we don't have any links
 
20797
    as_ln_s='cp -p'
 
20798
  else
 
20799
    as_ln_s='ln -s'
 
20800
  fi
 
20801
elif ln conf$$.file conf$$ 2>/dev/null; then
 
20802
  as_ln_s=ln
 
20803
else
 
20804
  as_ln_s='cp -p'
 
20805
fi
 
20806
rm -f conf$$ conf$$.exe conf$$.file
 
20807
 
 
20808
if mkdir -p . 2>/dev/null; then
 
20809
  as_mkdir_p=:
 
20810
else
 
20811
  test -d ./-p && rmdir ./-p
 
20812
  as_mkdir_p=false
 
20813
fi
 
20814
 
 
20815
as_executable_p="test -f"
 
20816
 
 
20817
# Sed expression to map a string onto a valid CPP name.
 
20818
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20819
 
 
20820
# Sed expression to map a string onto a valid variable name.
 
20821
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20822
 
 
20823
 
 
20824
# IFS
 
20825
# We need space, tab and new line, in precisely that order.
 
20826
as_nl='
 
20827
'
 
20828
IFS="   $as_nl"
 
20829
 
 
20830
# CDPATH.
 
20831
$as_unset CDPATH
 
20832
 
 
20833
exec 6>&1
 
20834
 
 
20835
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
20836
# report actual input values of CONFIG_FILES etc. instead of their
 
20837
# values after options handling.  Logging --version etc. is OK.
 
20838
exec 5>>config.log
 
20839
{
 
20840
  echo
 
20841
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
20842
## Running $as_me. ##
 
20843
_ASBOX
 
20844
} >&5
 
20845
cat >&5 <<_CSEOF
 
20846
 
 
20847
This file was extended by espresso $as_me 0.99.16, which was
 
20848
generated by GNU Autoconf 2.59.  Invocation command line was
 
20849
 
 
20850
  CONFIG_FILES    = $CONFIG_FILES
 
20851
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
20852
  CONFIG_LINKS    = $CONFIG_LINKS
 
20853
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
20854
  $ $0 $@
 
20855
 
 
20856
_CSEOF
 
20857
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
20858
echo >&5
 
20859
_ACEOF
 
20860
 
 
20861
# Files that config.status was made for.
 
20862
if test -n "$ac_config_files"; then
 
20863
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
20864
fi
 
20865
 
 
20866
if test -n "$ac_config_headers"; then
 
20867
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
20868
fi
 
20869
 
 
20870
if test -n "$ac_config_links"; then
 
20871
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
20872
fi
 
20873
 
 
20874
if test -n "$ac_config_commands"; then
 
20875
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
20876
fi
 
20877
 
 
20878
cat >>$CONFIG_STATUS <<\_ACEOF
 
20879
 
 
20880
ac_cs_usage="\
 
20881
\`$as_me' instantiates files from templates according to the
 
20882
current configuration.
 
20883
 
 
20884
Usage: $0 [OPTIONS] [FILE]...
 
20885
 
 
20886
  -h, --help       print this help, then exit
 
20887
  -V, --version    print version number, then exit
 
20888
  -q, --quiet      do not print progress messages
 
20889
  -d, --debug      don't remove temporary files
 
20890
      --recheck    update $as_me by reconfiguring in the same conditions
 
20891
  --file=FILE[:TEMPLATE]
 
20892
                   instantiate the configuration file FILE
 
20893
  --header=FILE[:TEMPLATE]
 
20894
                   instantiate the configuration header FILE
 
20895
 
 
20896
Configuration files:
 
20897
$config_files
 
20898
 
 
20899
Configuration headers:
 
20900
$config_headers
 
20901
 
 
20902
Configuration commands:
 
20903
$config_commands
 
20904
 
 
20905
Report bugs to <bug-autoconf@gnu.org>."
 
20906
_ACEOF
 
20907
 
 
20908
cat >>$CONFIG_STATUS <<_ACEOF
 
20909
ac_cs_version="\\
 
20910
espresso config.status 0.99.16
 
20911
configured by $0, generated by GNU Autoconf 2.59,
 
20912
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
20913
 
 
20914
Copyright (C) 2003 Free Software Foundation, Inc.
 
20915
This config.status script is free software; the Free Software Foundation
 
20916
gives unlimited permission to copy, distribute and modify it."
 
20917
srcdir=$srcdir
 
20918
INSTALL="$INSTALL"
 
20919
_ACEOF
 
20920
 
 
20921
cat >>$CONFIG_STATUS <<\_ACEOF
 
20922
# If no file are specified by the user, then we need to provide default
 
20923
# value.  By we need to know if files were specified by the user.
 
20924
ac_need_defaults=:
 
20925
while test $# != 0
 
20926
do
 
20927
  case $1 in
 
20928
  --*=*)
 
20929
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
20930
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
20931
    ac_shift=:
 
20932
    ;;
 
20933
  -*)
 
20934
    ac_option=$1
 
20935
    ac_optarg=$2
 
20936
    ac_shift=shift
 
20937
    ;;
 
20938
  *) # This is not an option, so the user has probably given explicit
 
20939
     # arguments.
 
20940
     ac_option=$1
 
20941
     ac_need_defaults=false;;
 
20942
  esac
 
20943
 
 
20944
  case $ac_option in
 
20945
  # Handling of the options.
 
20946
_ACEOF
 
20947
cat >>$CONFIG_STATUS <<\_ACEOF
 
20948
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
20949
    ac_cs_recheck=: ;;
 
20950
  --version | --vers* | -V )
 
20951
    echo "$ac_cs_version"; exit 0 ;;
 
20952
  --he | --h)
 
20953
    # Conflict between --help and --header
 
20954
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
20955
Try \`$0 --help' for more information." >&5
 
20956
echo "$as_me: error: ambiguous option: $1
 
20957
Try \`$0 --help' for more information." >&2;}
 
20958
   { (exit 1); exit 1; }; };;
 
20959
  --help | --hel | -h )
 
20960
    echo "$ac_cs_usage"; exit 0 ;;
 
20961
  --debug | --d* | -d )
 
20962
    debug=: ;;
 
20963
  --file | --fil | --fi | --f )
 
20964
    $ac_shift
 
20965
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
20966
    ac_need_defaults=false;;
 
20967
  --header | --heade | --head | --hea )
 
20968
    $ac_shift
 
20969
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
20970
    ac_need_defaults=false;;
 
20971
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
20972
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
20973
    ac_cs_silent=: ;;
 
20974
 
 
20975
  # This is an error.
 
20976
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
20977
Try \`$0 --help' for more information." >&5
 
20978
echo "$as_me: error: unrecognized option: $1
 
20979
Try \`$0 --help' for more information." >&2;}
 
20980
   { (exit 1); exit 1; }; } ;;
 
20981
 
 
20982
  *) ac_config_targets="$ac_config_targets $1" ;;
 
20983
 
 
20984
  esac
 
20985
  shift
 
20986
done
 
20987
 
 
20988
ac_configure_extra_args=
 
20989
 
 
20990
if $ac_cs_silent; then
 
20991
  exec 6>/dev/null
 
20992
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
20993
fi
 
20994
 
 
20995
_ACEOF
 
20996
cat >>$CONFIG_STATUS <<_ACEOF
 
20997
if \$ac_cs_recheck; then
 
20998
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
20999
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21000
fi
 
21001
 
 
21002
_ACEOF
 
21003
 
 
21004
cat >>$CONFIG_STATUS <<_ACEOF
 
21005
#
 
21006
# INIT-COMMANDS section.
 
21007
#
 
21008
 
 
21009
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
21010
 
 
21011
_ACEOF
 
21012
 
 
21013
 
 
21014
 
 
21015
cat >>$CONFIG_STATUS <<\_ACEOF
 
21016
for ac_config_target in $ac_config_targets
 
21017
do
 
21018
  case "$ac_config_target" in
 
21019
  # Handling of arguments.
 
21020
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21021
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
21022
  "src/cut-and-paste/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cut-and-paste/Makefile" ;;
 
21023
  "src/cut-and-paste/e-map/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cut-and-paste/e-map/Makefile" ;;
 
21024
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
21025
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21026
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
21027
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
21028
   { (exit 1); exit 1; }; };;
 
21029
  esac
 
21030
done
 
21031
 
 
21032
# If the user did not use the arguments to specify the items to instantiate,
 
21033
# then the envvar interface is used.  Set only those that are not.
 
21034
# We use the long form for the default assignment because of an extremely
 
21035
# bizarre bug on SunOS 4.1.3.
 
21036
if $ac_need_defaults; then
 
21037
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
21038
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
21039
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
21040
fi
 
21041
 
 
21042
# Have a temporary directory for convenience.  Make it in the build tree
 
21043
# simply because there is no reason to put it here, and in addition,
 
21044
# creating and moving files from /tmp can sometimes cause problems.
 
21045
# Create a temporary directory, and hook for its removal unless debugging.
 
21046
$debug ||
 
21047
{
 
21048
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
21049
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
21050
}
 
21051
 
 
21052
# Create a (secure) tmp directory for tmp files.
 
21053
 
 
21054
{
 
21055
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
21056
  test -n "$tmp" && test -d "$tmp"
 
21057
}  ||
 
21058
{
 
21059
  tmp=./confstat$$-$RANDOM
 
21060
  (umask 077 && mkdir $tmp)
 
21061
} ||
 
21062
{
 
21063
   echo "$me: cannot create a temporary directory in ." >&2
 
21064
   { (exit 1); exit 1; }
 
21065
}
 
21066
 
 
21067
_ACEOF
 
21068
 
 
21069
cat >>$CONFIG_STATUS <<_ACEOF
 
21070
 
 
21071
#
 
21072
# CONFIG_FILES section.
 
21073
#
 
21074
 
 
21075
# No need to generate the scripts if there are no CONFIG_FILES.
 
21076
# This happens for instance when ./config.status config.h
 
21077
if test -n "\$CONFIG_FILES"; then
 
21078
  # Protect against being on the right side of a sed subst in config.status.
 
21079
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
21080
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
21081
s,@SHELL@,$SHELL,;t t
 
21082
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
21083
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
21084
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
21085
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
21086
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
21087
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
21088
s,@exec_prefix@,$exec_prefix,;t t
 
21089
s,@prefix@,$prefix,;t t
 
21090
s,@program_transform_name@,$program_transform_name,;t t
 
21091
s,@bindir@,$bindir,;t t
 
21092
s,@sbindir@,$sbindir,;t t
 
21093
s,@libexecdir@,$libexecdir,;t t
 
21094
s,@datadir@,$datadir,;t t
 
21095
s,@sysconfdir@,$sysconfdir,;t t
 
21096
s,@sharedstatedir@,$sharedstatedir,;t t
 
21097
s,@localstatedir@,$localstatedir,;t t
 
21098
s,@libdir@,$libdir,;t t
 
21099
s,@includedir@,$includedir,;t t
 
21100
s,@oldincludedir@,$oldincludedir,;t t
 
21101
s,@infodir@,$infodir,;t t
 
21102
s,@mandir@,$mandir,;t t
 
21103
s,@build_alias@,$build_alias,;t t
 
21104
s,@host_alias@,$host_alias,;t t
 
21105
s,@target_alias@,$target_alias,;t t
 
21106
s,@DEFS@,$DEFS,;t t
 
21107
s,@ECHO_C@,$ECHO_C,;t t
 
21108
s,@ECHO_N@,$ECHO_N,;t t
 
21109
s,@ECHO_T@,$ECHO_T,;t t
 
21110
s,@LIBS@,$LIBS,;t t
 
21111
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
21112
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
21113
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
21114
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
21115
s,@PACKAGE@,$PACKAGE,;t t
 
21116
s,@VERSION@,$VERSION,;t t
 
21117
s,@ACLOCAL@,$ACLOCAL,;t t
 
21118
s,@AUTOCONF@,$AUTOCONF,;t t
 
21119
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
21120
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
21121
s,@MAKEINFO@,$MAKEINFO,;t t
 
21122
s,@AMTAR@,$AMTAR,;t t
 
21123
s,@install_sh@,$install_sh,;t t
 
21124
s,@STRIP@,$STRIP,;t t
 
21125
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
21126
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
21127
s,@mkdir_p@,$mkdir_p,;t t
 
21128
s,@AWK@,$AWK,;t t
 
21129
s,@SET_MAKE@,$SET_MAKE,;t t
 
21130
s,@am__leading_dot@,$am__leading_dot,;t t
 
21131
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
21132
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
21133
s,@MAINT@,$MAINT,;t t
 
21134
s,@build@,$build,;t t
 
21135
s,@build_cpu@,$build_cpu,;t t
 
21136
s,@build_vendor@,$build_vendor,;t t
 
21137
s,@build_os@,$build_os,;t t
 
21138
s,@host@,$host,;t t
 
21139
s,@host_cpu@,$host_cpu,;t t
 
21140
s,@host_vendor@,$host_vendor,;t t
 
21141
s,@host_os@,$host_os,;t t
 
21142
s,@CC@,$CC,;t t
 
21143
s,@CFLAGS@,$CFLAGS,;t t
 
21144
s,@LDFLAGS@,$LDFLAGS,;t t
 
21145
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
21146
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
21147
s,@EXEEXT@,$EXEEXT,;t t
 
21148
s,@OBJEXT@,$OBJEXT,;t t
 
21149
s,@DEPDIR@,$DEPDIR,;t t
 
21150
s,@am__include@,$am__include,;t t
 
21151
s,@am__quote@,$am__quote,;t t
 
21152
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
21153
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
21154
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
21155
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
21156
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
21157
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
21158
s,@EGREP@,$EGREP,;t t
 
21159
s,@LN_S@,$LN_S,;t t
 
21160
s,@ECHO@,$ECHO,;t t
 
21161
s,@AR@,$AR,;t t
 
21162
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
21163
s,@RANLIB@,$RANLIB,;t t
 
21164
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
21165
s,@CPP@,$CPP,;t t
 
21166
s,@CXX@,$CXX,;t t
 
21167
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
21168
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
21169
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
21170
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
21171
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
21172
s,@CXXCPP@,$CXXCPP,;t t
 
21173
s,@F77@,$F77,;t t
 
21174
s,@FFLAGS@,$FFLAGS,;t t
 
21175
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
21176
s,@LIBTOOL@,$LIBTOOL,;t t
 
21177
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
 
21178
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
21179
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
 
21180
s,@GTK_LIBS@,$GTK_LIBS,;t t
 
21181
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
 
21182
s,@ESPRESSO_DEPENDS_CFLAGS@,$ESPRESSO_DEPENDS_CFLAGS,;t t
 
21183
s,@ESPRESSO_DEPENDS_LIBS@,$ESPRESSO_DEPENDS_LIBS,;t t
 
21184
s,@scriptsdir@,$scriptsdir,;t t
 
21185
s,@pixmapsdir@,$pixmapsdir,;t t
 
21186
s,@LIBOBJS@,$LIBOBJS,;t t
 
21187
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
21188
CEOF
 
21189
 
 
21190
_ACEOF
 
21191
 
 
21192
  cat >>$CONFIG_STATUS <<\_ACEOF
 
21193
  # Split the substitutions into bite-sized pieces for seds with
 
21194
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
21195
  ac_max_sed_lines=48
 
21196
  ac_sed_frag=1 # Number of current file.
 
21197
  ac_beg=1 # First line for current file.
 
21198
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
21199
  ac_more_lines=:
 
21200
  ac_sed_cmds=
 
21201
  while $ac_more_lines; do
 
21202
    if test $ac_beg -gt 1; then
 
21203
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21204
    else
 
21205
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21206
    fi
 
21207
    if test ! -s $tmp/subs.frag; then
 
21208
      ac_more_lines=false
 
21209
    else
 
21210
      # The purpose of the label and of the branching condition is to
 
21211
      # speed up the sed processing (if there are no `@' at all, there
 
21212
      # is no need to browse any of the substitutions).
 
21213
      # These are the two extra sed commands mentioned above.
 
21214
      (echo ':t
 
21215
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
21216
      if test -z "$ac_sed_cmds"; then
 
21217
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
21218
      else
 
21219
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
21220
      fi
 
21221
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
21222
      ac_beg=$ac_end
 
21223
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
21224
    fi
 
21225
  done
 
21226
  if test -z "$ac_sed_cmds"; then
 
21227
    ac_sed_cmds=cat
 
21228
  fi
 
21229
fi # test -n "$CONFIG_FILES"
 
21230
 
 
21231
_ACEOF
 
21232
cat >>$CONFIG_STATUS <<\_ACEOF
 
21233
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
21234
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
21235
  case $ac_file in
 
21236
  - | *:- | *:-:* ) # input from stdin
 
21237
        cat >$tmp/stdin
 
21238
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21239
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21240
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21241
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21242
  * )   ac_file_in=$ac_file.in ;;
 
21243
  esac
 
21244
 
 
21245
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
21246
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21247
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21248
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21249
         X"$ac_file" : 'X\(//\)$' \| \
 
21250
         X"$ac_file" : 'X\(/\)' \| \
 
21251
         .     : '\(.\)' 2>/dev/null ||
 
21252
echo X"$ac_file" |
 
21253
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21254
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21255
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21256
          /^X\(\/\).*/{ s//\1/; q; }
 
21257
          s/.*/./; q'`
 
21258
  { if $as_mkdir_p; then
 
21259
    mkdir -p "$ac_dir"
 
21260
  else
 
21261
    as_dir="$ac_dir"
 
21262
    as_dirs=
 
21263
    while test ! -d "$as_dir"; do
 
21264
      as_dirs="$as_dir $as_dirs"
 
21265
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21266
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21267
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21268
         X"$as_dir" : 'X\(//\)$' \| \
 
21269
         X"$as_dir" : 'X\(/\)' \| \
 
21270
         .     : '\(.\)' 2>/dev/null ||
 
21271
echo X"$as_dir" |
 
21272
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21273
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21274
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21275
          /^X\(\/\).*/{ s//\1/; q; }
 
21276
          s/.*/./; q'`
 
21277
    done
 
21278
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21279
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21280
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21281
   { (exit 1); exit 1; }; }; }
 
21282
 
 
21283
  ac_builddir=.
 
21284
 
 
21285
if test "$ac_dir" != .; then
 
21286
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21287
  # A "../" for each directory in $ac_dir_suffix.
 
21288
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21289
else
 
21290
  ac_dir_suffix= ac_top_builddir=
 
21291
fi
 
21292
 
 
21293
case $srcdir in
 
21294
  .)  # No --srcdir option.  We are building in place.
 
21295
    ac_srcdir=.
 
21296
    if test -z "$ac_top_builddir"; then
 
21297
       ac_top_srcdir=.
 
21298
    else
 
21299
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21300
    fi ;;
 
21301
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21302
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21303
    ac_top_srcdir=$srcdir ;;
 
21304
  *) # Relative path.
 
21305
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21306
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21307
esac
 
21308
 
 
21309
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21310
# the directories may not exist.
 
21311
case `pwd` in
 
21312
.) ac_abs_builddir="$ac_dir";;
 
21313
*)
 
21314
  case "$ac_dir" in
 
21315
  .) ac_abs_builddir=`pwd`;;
 
21316
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21317
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21318
  esac;;
 
21319
esac
 
21320
case $ac_abs_builddir in
 
21321
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21322
*)
 
21323
  case ${ac_top_builddir}. in
 
21324
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21325
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21326
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21327
  esac;;
 
21328
esac
 
21329
case $ac_abs_builddir in
 
21330
.) ac_abs_srcdir=$ac_srcdir;;
 
21331
*)
 
21332
  case $ac_srcdir in
 
21333
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21334
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21335
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21336
  esac;;
 
21337
esac
 
21338
case $ac_abs_builddir in
 
21339
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21340
*)
 
21341
  case $ac_top_srcdir in
 
21342
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21343
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21344
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21345
  esac;;
 
21346
esac
 
21347
 
 
21348
 
 
21349
  case $INSTALL in
 
21350
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
21351
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
21352
  esac
 
21353
 
 
21354
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21355
  # use $as_me), people would be surprised to read:
 
21356
  #    /* config.h.  Generated by config.status.  */
 
21357
  if test x"$ac_file" = x-; then
 
21358
    configure_input=
 
21359
  else
 
21360
    configure_input="$ac_file.  "
 
21361
  fi
 
21362
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
21363
                                     sed 's,.*/,,'` by configure."
 
21364
 
 
21365
  # First look for the input files in the build tree, otherwise in the
 
21366
  # src tree.
 
21367
  ac_file_inputs=`IFS=:
 
21368
    for f in $ac_file_in; do
 
21369
      case $f in
 
21370
      -) echo $tmp/stdin ;;
 
21371
      [\\/$]*)
 
21372
         # Absolute (can't be DOS-style, as IFS=:)
 
21373
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21374
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21375
   { (exit 1); exit 1; }; }
 
21376
         echo "$f";;
 
21377
      *) # Relative
 
21378
         if test -f "$f"; then
 
21379
           # Build tree
 
21380
           echo "$f"
 
21381
         elif test -f "$srcdir/$f"; then
 
21382
           # Source tree
 
21383
           echo "$srcdir/$f"
 
21384
         else
 
21385
           # /dev/null tree
 
21386
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21387
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21388
   { (exit 1); exit 1; }; }
 
21389
         fi;;
 
21390
      esac
 
21391
    done` || { (exit 1); exit 1; }
 
21392
 
 
21393
  if test x"$ac_file" != x-; then
 
21394
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21395
echo "$as_me: creating $ac_file" >&6;}
 
21396
    rm -f "$ac_file"
 
21397
  fi
 
21398
_ACEOF
 
21399
cat >>$CONFIG_STATUS <<_ACEOF
 
21400
  sed "$ac_vpsub
 
21401
$extrasub
 
21402
_ACEOF
 
21403
cat >>$CONFIG_STATUS <<\_ACEOF
 
21404
:t
 
21405
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21406
s,@configure_input@,$configure_input,;t t
 
21407
s,@srcdir@,$ac_srcdir,;t t
 
21408
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
21409
s,@top_srcdir@,$ac_top_srcdir,;t t
 
21410
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
21411
s,@builddir@,$ac_builddir,;t t
 
21412
s,@abs_builddir@,$ac_abs_builddir,;t t
 
21413
s,@top_builddir@,$ac_top_builddir,;t t
 
21414
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
21415
s,@INSTALL@,$ac_INSTALL,;t t
 
21416
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
21417
  rm -f $tmp/stdin
 
21418
  if test x"$ac_file" != x-; then
 
21419
    mv $tmp/out $ac_file
 
21420
  else
 
21421
    cat $tmp/out
 
21422
    rm -f $tmp/out
 
21423
  fi
 
21424
 
 
21425
done
 
21426
_ACEOF
 
21427
cat >>$CONFIG_STATUS <<\_ACEOF
 
21428
 
 
21429
#
 
21430
# CONFIG_HEADER section.
 
21431
#
 
21432
 
 
21433
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
21434
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
21435
#
 
21436
# ac_d sets the value in "#define NAME VALUE" lines.
 
21437
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
21438
ac_dB='[         ].*$,\1#\2'
 
21439
ac_dC=' '
 
21440
ac_dD=',;t'
 
21441
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
21442
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
21443
ac_uB='$,\1#\2define\3'
 
21444
ac_uC=' '
 
21445
ac_uD=',;t'
 
21446
 
 
21447
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
21448
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
21449
  case $ac_file in
 
21450
  - | *:- | *:-:* ) # input from stdin
 
21451
        cat >$tmp/stdin
 
21452
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21453
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21454
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21455
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21456
  * )   ac_file_in=$ac_file.in ;;
 
21457
  esac
 
21458
 
 
21459
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21460
echo "$as_me: creating $ac_file" >&6;}
 
21461
 
 
21462
  # First look for the input files in the build tree, otherwise in the
 
21463
  # src tree.
 
21464
  ac_file_inputs=`IFS=:
 
21465
    for f in $ac_file_in; do
 
21466
      case $f in
 
21467
      -) echo $tmp/stdin ;;
 
21468
      [\\/$]*)
 
21469
         # Absolute (can't be DOS-style, as IFS=:)
 
21470
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21471
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21472
   { (exit 1); exit 1; }; }
 
21473
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
21474
         echo "$f";;
 
21475
      *) # Relative
 
21476
         if test -f "$f"; then
 
21477
           # Build tree
 
21478
           echo "$f"
 
21479
         elif test -f "$srcdir/$f"; then
 
21480
           # Source tree
 
21481
           echo "$srcdir/$f"
 
21482
         else
 
21483
           # /dev/null tree
 
21484
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21485
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21486
   { (exit 1); exit 1; }; }
 
21487
         fi;;
 
21488
      esac
 
21489
    done` || { (exit 1); exit 1; }
 
21490
  # Remove the trailing spaces.
 
21491
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
21492
 
 
21493
_ACEOF
 
21494
 
 
21495
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
21496
# `conftest.undefs', that substitutes the proper values into
 
21497
# config.h.in to produce config.h.  The first handles `#define'
 
21498
# templates, and the second `#undef' templates.
 
21499
# And first: Protect against being on the right side of a sed subst in
 
21500
# config.status.  Protect against being in an unquoted here document
 
21501
# in config.status.
 
21502
rm -f conftest.defines conftest.undefs
 
21503
# Using a here document instead of a string reduces the quoting nightmare.
 
21504
# Putting comments in sed scripts is not portable.
 
21505
#
 
21506
# `end' is used to avoid that the second main sed command (meant for
 
21507
# 0-ary CPP macros) applies to n-ary macro definitions.
 
21508
# See the Autoconf documentation for `clear'.
 
21509
cat >confdef2sed.sed <<\_ACEOF
 
21510
s/[\\&,]/\\&/g
 
21511
s,[\\$`],\\&,g
 
21512
t clear
 
21513
: clear
 
21514
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
21515
t end
 
21516
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
21517
: end
 
21518
_ACEOF
 
21519
# If some macros were called several times there might be several times
 
21520
# the same #defines, which is useless.  Nevertheless, we may not want to
 
21521
# sort them, since we want the *last* AC-DEFINE to be honored.
 
21522
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
21523
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
21524
rm -f confdef2sed.sed
 
21525
 
 
21526
# This sed command replaces #undef with comments.  This is necessary, for
 
21527
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
21528
# on some systems where configure will not decide to define it.
 
21529
cat >>conftest.undefs <<\_ACEOF
 
21530
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
21531
_ACEOF
 
21532
 
 
21533
# Break up conftest.defines because some shells have a limit on the size
 
21534
# of here documents, and old seds have small limits too (100 cmds).
 
21535
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
21536
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
21537
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
21538
echo '  :' >>$CONFIG_STATUS
 
21539
rm -f conftest.tail
 
21540
while grep . conftest.defines >/dev/null
 
21541
do
 
21542
  # Write a limited-size here document to $tmp/defines.sed.
 
21543
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
21544
  # Speed up: don't consider the non `#define' lines.
 
21545
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
21546
  # Work around the forget-to-reset-the-flag bug.
 
21547
  echo 't clr' >>$CONFIG_STATUS
 
21548
  echo ': clr' >>$CONFIG_STATUS
 
21549
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
21550
  echo 'CEOF
 
21551
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
21552
  rm -f $tmp/in
 
21553
  mv $tmp/out $tmp/in
 
21554
' >>$CONFIG_STATUS
 
21555
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
21556
  rm -f conftest.defines
 
21557
  mv conftest.tail conftest.defines
 
21558
done
 
21559
rm -f conftest.defines
 
21560
echo '  fi # grep' >>$CONFIG_STATUS
 
21561
echo >>$CONFIG_STATUS
 
21562
 
 
21563
# Break up conftest.undefs because some shells have a limit on the size
 
21564
# of here documents, and old seds have small limits too (100 cmds).
 
21565
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
21566
rm -f conftest.tail
 
21567
while grep . conftest.undefs >/dev/null
 
21568
do
 
21569
  # Write a limited-size here document to $tmp/undefs.sed.
 
21570
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
21571
  # Speed up: don't consider the non `#undef'
 
21572
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
21573
  # Work around the forget-to-reset-the-flag bug.
 
21574
  echo 't clr' >>$CONFIG_STATUS
 
21575
  echo ': clr' >>$CONFIG_STATUS
 
21576
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
21577
  echo 'CEOF
 
21578
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
21579
  rm -f $tmp/in
 
21580
  mv $tmp/out $tmp/in
 
21581
' >>$CONFIG_STATUS
 
21582
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
21583
  rm -f conftest.undefs
 
21584
  mv conftest.tail conftest.undefs
 
21585
done
 
21586
rm -f conftest.undefs
 
21587
 
 
21588
cat >>$CONFIG_STATUS <<\_ACEOF
 
21589
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21590
  # use $as_me), people would be surprised to read:
 
21591
  #    /* config.h.  Generated by config.status.  */
 
21592
  if test x"$ac_file" = x-; then
 
21593
    echo "/* Generated by configure.  */" >$tmp/config.h
 
21594
  else
 
21595
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
21596
  fi
 
21597
  cat $tmp/in >>$tmp/config.h
 
21598
  rm -f $tmp/in
 
21599
  if test x"$ac_file" != x-; then
 
21600
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
21601
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
21602
echo "$as_me: $ac_file is unchanged" >&6;}
 
21603
    else
 
21604
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21605
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21606
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21607
         X"$ac_file" : 'X\(//\)$' \| \
 
21608
         X"$ac_file" : 'X\(/\)' \| \
 
21609
         .     : '\(.\)' 2>/dev/null ||
 
21610
echo X"$ac_file" |
 
21611
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21612
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21613
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21614
          /^X\(\/\).*/{ s//\1/; q; }
 
21615
          s/.*/./; q'`
 
21616
      { if $as_mkdir_p; then
 
21617
    mkdir -p "$ac_dir"
 
21618
  else
 
21619
    as_dir="$ac_dir"
 
21620
    as_dirs=
 
21621
    while test ! -d "$as_dir"; do
 
21622
      as_dirs="$as_dir $as_dirs"
 
21623
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21624
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21625
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21626
         X"$as_dir" : 'X\(//\)$' \| \
 
21627
         X"$as_dir" : 'X\(/\)' \| \
 
21628
         .     : '\(.\)' 2>/dev/null ||
 
21629
echo X"$as_dir" |
 
21630
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21631
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21632
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21633
          /^X\(\/\).*/{ s//\1/; q; }
 
21634
          s/.*/./; q'`
 
21635
    done
 
21636
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21637
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21638
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21639
   { (exit 1); exit 1; }; }; }
 
21640
 
 
21641
      rm -f $ac_file
 
21642
      mv $tmp/config.h $ac_file
 
21643
    fi
 
21644
  else
 
21645
    cat $tmp/config.h
 
21646
    rm -f $tmp/config.h
 
21647
  fi
 
21648
# Compute $ac_file's index in $config_headers.
 
21649
_am_stamp_count=1
 
21650
for _am_header in $config_headers :; do
 
21651
  case $_am_header in
 
21652
    $ac_file | $ac_file:* )
 
21653
      break ;;
 
21654
    * )
 
21655
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
21656
  esac
 
21657
done
 
21658
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
21659
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21660
         X$ac_file : 'X\(//\)[^/]' \| \
 
21661
         X$ac_file : 'X\(//\)$' \| \
 
21662
         X$ac_file : 'X\(/\)' \| \
 
21663
         .     : '\(.\)' 2>/dev/null ||
 
21664
echo X$ac_file |
 
21665
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21666
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21667
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21668
          /^X\(\/\).*/{ s//\1/; q; }
 
21669
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
21670
done
 
21671
_ACEOF
 
21672
cat >>$CONFIG_STATUS <<\_ACEOF
 
21673
 
 
21674
#
 
21675
# CONFIG_COMMANDS section.
 
21676
#
 
21677
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
21678
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
21679
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21680
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
21681
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21682
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
21683
         X"$ac_dest" : 'X\(//\)$' \| \
 
21684
         X"$ac_dest" : 'X\(/\)' \| \
 
21685
         .     : '\(.\)' 2>/dev/null ||
 
21686
echo X"$ac_dest" |
 
21687
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21688
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21689
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21690
          /^X\(\/\).*/{ s//\1/; q; }
 
21691
          s/.*/./; q'`
 
21692
  { if $as_mkdir_p; then
 
21693
    mkdir -p "$ac_dir"
 
21694
  else
 
21695
    as_dir="$ac_dir"
 
21696
    as_dirs=
 
21697
    while test ! -d "$as_dir"; do
 
21698
      as_dirs="$as_dir $as_dirs"
 
21699
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21700
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21701
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21702
         X"$as_dir" : 'X\(//\)$' \| \
 
21703
         X"$as_dir" : 'X\(/\)' \| \
 
21704
         .     : '\(.\)' 2>/dev/null ||
 
21705
echo X"$as_dir" |
 
21706
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21707
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21708
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21709
          /^X\(\/\).*/{ s//\1/; q; }
 
21710
          s/.*/./; q'`
 
21711
    done
 
21712
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21713
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21714
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21715
   { (exit 1); exit 1; }; }; }
 
21716
 
 
21717
  ac_builddir=.
 
21718
 
 
21719
if test "$ac_dir" != .; then
 
21720
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21721
  # A "../" for each directory in $ac_dir_suffix.
 
21722
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21723
else
 
21724
  ac_dir_suffix= ac_top_builddir=
 
21725
fi
 
21726
 
 
21727
case $srcdir in
 
21728
  .)  # No --srcdir option.  We are building in place.
 
21729
    ac_srcdir=.
 
21730
    if test -z "$ac_top_builddir"; then
 
21731
       ac_top_srcdir=.
 
21732
    else
 
21733
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21734
    fi ;;
 
21735
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21736
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21737
    ac_top_srcdir=$srcdir ;;
 
21738
  *) # Relative path.
 
21739
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21740
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21741
esac
 
21742
 
 
21743
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21744
# the directories may not exist.
 
21745
case `pwd` in
 
21746
.) ac_abs_builddir="$ac_dir";;
 
21747
*)
 
21748
  case "$ac_dir" in
 
21749
  .) ac_abs_builddir=`pwd`;;
 
21750
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21751
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21752
  esac;;
 
21753
esac
 
21754
case $ac_abs_builddir in
 
21755
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21756
*)
 
21757
  case ${ac_top_builddir}. in
 
21758
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21759
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21760
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21761
  esac;;
 
21762
esac
 
21763
case $ac_abs_builddir in
 
21764
.) ac_abs_srcdir=$ac_srcdir;;
 
21765
*)
 
21766
  case $ac_srcdir in
 
21767
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21768
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21769
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21770
  esac;;
 
21771
esac
 
21772
case $ac_abs_builddir in
 
21773
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21774
*)
 
21775
  case $ac_top_srcdir in
 
21776
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21777
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21778
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21779
  esac;;
 
21780
esac
 
21781
 
 
21782
 
 
21783
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
21784
echo "$as_me: executing $ac_dest commands" >&6;}
 
21785
  case $ac_dest in
 
21786
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
21787
  # Strip MF so we end up with the name of the file.
 
21788
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21789
  # Check whether this is an Automake generated Makefile or not.
 
21790
  # We used to match only the files named `Makefile.in', but
 
21791
  # some people rename them; so instead we look at the file content.
 
21792
  # Grep'ing the first line is not enough: some people post-process
 
21793
  # each Makefile.in and add a new line on top of each file to say so.
 
21794
  # So let's grep whole file.
 
21795
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
21796
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
21797
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21798
         X"$mf" : 'X\(//\)[^/]' \| \
 
21799
         X"$mf" : 'X\(//\)$' \| \
 
21800
         X"$mf" : 'X\(/\)' \| \
 
21801
         .     : '\(.\)' 2>/dev/null ||
 
21802
echo X"$mf" |
 
21803
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21804
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21805
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21806
          /^X\(\/\).*/{ s//\1/; q; }
 
21807
          s/.*/./; q'`
 
21808
  else
 
21809
    continue
 
21810
  fi
 
21811
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
21812
  # Extract the definition of DEP_FILES from the Makefile without
 
21813
  # running `make'.
 
21814
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21815
  test -z "$DEPDIR" && continue
 
21816
  # When using ansi2knr, U may be empty or an underscore; expand it
 
21817
  U=`sed -n 's/^U = //p' < "$mf"`
 
21818
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
21819
  # We invoke sed twice because it is the simplest approach to
 
21820
  # changing $(DEPDIR) to its actual value in the expansion.
 
21821
  for file in `sed -n '
 
21822
    /^DEP_FILES = .*\\\\$/ {
 
21823
      s/^DEP_FILES = //
 
21824
      :loop
 
21825
        s/\\\\$//
 
21826
        p
 
21827
        n
 
21828
        /\\\\$/ b loop
 
21829
      p
 
21830
    }
 
21831
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
21832
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
21833
    # Make sure the directory exists.
 
21834
    test -f "$dirpart/$file" && continue
 
21835
    fdir=`(dirname "$file") 2>/dev/null ||
 
21836
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21837
         X"$file" : 'X\(//\)[^/]' \| \
 
21838
         X"$file" : 'X\(//\)$' \| \
 
21839
         X"$file" : 'X\(/\)' \| \
 
21840
         .     : '\(.\)' 2>/dev/null ||
 
21841
echo X"$file" |
 
21842
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21843
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21844
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21845
          /^X\(\/\).*/{ s//\1/; q; }
 
21846
          s/.*/./; q'`
 
21847
    { if $as_mkdir_p; then
 
21848
    mkdir -p $dirpart/$fdir
 
21849
  else
 
21850
    as_dir=$dirpart/$fdir
 
21851
    as_dirs=
 
21852
    while test ! -d "$as_dir"; do
 
21853
      as_dirs="$as_dir $as_dirs"
 
21854
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21855
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21856
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21857
         X"$as_dir" : 'X\(//\)$' \| \
 
21858
         X"$as_dir" : 'X\(/\)' \| \
 
21859
         .     : '\(.\)' 2>/dev/null ||
 
21860
echo X"$as_dir" |
 
21861
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21862
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21863
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21864
          /^X\(\/\).*/{ s//\1/; q; }
 
21865
          s/.*/./; q'`
 
21866
    done
 
21867
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21868
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
21869
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
21870
   { (exit 1); exit 1; }; }; }
 
21871
 
 
21872
    # echo "creating $dirpart/$file"
 
21873
    echo '# dummy' > "$dirpart/$file"
 
21874
  done
 
21875
done
 
21876
 ;;
 
21877
  esac
 
21878
done
 
21879
_ACEOF
 
21880
 
 
21881
cat >>$CONFIG_STATUS <<\_ACEOF
 
21882
 
 
21883
{ (exit 0); exit 0; }
 
21884
_ACEOF
 
21885
chmod +x $CONFIG_STATUS
 
21886
ac_clean_files=$ac_clean_files_save
 
21887
 
 
21888
 
 
21889
# configure is writing to config.log, and then calls config.status.
 
21890
# config.status does its own redirection, appending to config.log.
 
21891
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21892
# by configure, so config.status won't be able to write to it; its
 
21893
# output is simply discarded.  So we exec the FD to /dev/null,
 
21894
# effectively closing config.log, so it can be properly (re)opened and
 
21895
# appended to by config.status.  When coming back to configure, we
 
21896
# need to make the FD available again.
 
21897
if test "$no_create" != yes; then
 
21898
  ac_cs_success=:
 
21899
  ac_config_status_args=
 
21900
  test "$silent" = yes &&
 
21901
    ac_config_status_args="$ac_config_status_args --quiet"
 
21902
  exec 5>/dev/null
 
21903
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21904
  exec 5>>config.log
 
21905
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21906
  # would make configure fail if this is the last instruction.
 
21907
  $ac_cs_success || { (exit 1); exit 1; }
 
21908
fi
 
21909