~ubuntu-branches/ubuntu/breezy/libgnomecanvas/breezy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2004-09-13 22:40:39 UTC
  • Revision ID: james.westby@ubuntu.com-20040913224039-giftt9jhvyoorcuv
Tags: upstream-2.8.0
ImportĀ upstreamĀ versionĀ 2.8.0

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 libgnomecanvas 2.8.0.
 
4
#
 
5
# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas>.
 
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='libgnomecanvas'
 
425
PACKAGE_TARNAME='libgnomecanvas'
 
426
PACKAGE_VERSION='2.8.0'
 
427
PACKAGE_STRING='libgnomecanvas 2.8.0'
 
428
PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas'
 
429
 
 
430
ac_unique_file="libgnomecanvas/libgnomecanvas.h"
 
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 LIBGNOMECANVAS_CURRENT LIBGNOMECANVAS_REVISION LIBGNOMECANVAS_AGE 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 AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT ACLOCAL_AMFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WARN_CFLAGS GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS PKG_CONFIG LIBGNOMECANVAS_CFLAGS LIBGNOMECANVAS_LIBS CANVAS_GLADE_CFLAGS CANVAS_GLADE_LIBS OS_WIN32_TRUE OS_WIN32_FALSE PLATFORM_WIN32_TRUE PLATFORM_WIN32_FALSE PERL GLIB_GENMARSHAL HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE REBUILD 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
 
 
950
#
 
951
# Report the --help message.
 
952
#
 
953
if test "$ac_init_help" = "long"; then
 
954
  # Omit some internal or obsolete options to make the list less imposing.
 
955
  # This message is too long to be a string in the A/UX 3.1 sh.
 
956
  cat <<_ACEOF
 
957
\`configure' configures libgnomecanvas 2.8.0 to adapt to many kinds of systems.
 
958
 
 
959
Usage: $0 [OPTION]... [VAR=VALUE]...
 
960
 
 
961
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
962
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
963
 
 
964
Defaults for the options are specified in brackets.
 
965
 
 
966
Configuration:
 
967
  -h, --help              display this help and exit
 
968
      --help=short        display options specific to this package
 
969
      --help=recursive    display the short help of all the included packages
 
970
  -V, --version           display version information and exit
 
971
  -q, --quiet, --silent   do not print \`checking...' messages
 
972
      --cache-file=FILE   cache test results in FILE [disabled]
 
973
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
974
  -n, --no-create         do not create output files
 
975
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
976
 
 
977
_ACEOF
 
978
 
 
979
  cat <<_ACEOF
 
980
Installation directories:
 
981
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
982
                          [$ac_default_prefix]
 
983
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
984
                          [PREFIX]
 
985
 
 
986
By default, \`make install' will install all the files in
 
987
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
988
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
989
for instance \`--prefix=\$HOME'.
 
990
 
 
991
For better control, use the options below.
 
992
 
 
993
Fine tuning of the installation directories:
 
994
  --bindir=DIR           user executables [EPREFIX/bin]
 
995
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
996
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
997
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
998
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
999
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1000
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1001
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1002
  --includedir=DIR       C header files [PREFIX/include]
 
1003
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1004
  --infodir=DIR          info documentation [PREFIX/info]
 
1005
  --mandir=DIR           man documentation [PREFIX/man]
 
1006
_ACEOF
 
1007
 
 
1008
  cat <<\_ACEOF
 
1009
 
 
1010
Program names:
 
1011
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1012
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1013
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1014
 
 
1015
System types:
 
1016
  --build=BUILD     configure for building on BUILD [guessed]
 
1017
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1018
_ACEOF
 
1019
fi
 
1020
 
 
1021
if test -n "$ac_init_help"; then
 
1022
  case $ac_init_help in
 
1023
     short | recursive ) echo "Configuration of libgnomecanvas 2.8.0:";;
 
1024
   esac
 
1025
  cat <<\_ACEOF
 
1026
 
 
1027
Optional Features:
 
1028
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1029
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1030
  --enable-maintainer-mode enable make rules and dependencies not useful
 
1031
                          (and sometimes confusing) to the casual installer
 
1032
  --disable-dependency-tracking Speeds up one-time builds
 
1033
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1034
  --enable-shared[=PKGS]
 
1035
                          build shared libraries [default=yes]
 
1036
  --enable-static[=PKGS]
 
1037
                          build static libraries [default=yes]
 
1038
  --enable-fast-install[=PKGS]
 
1039
                          optimize for fast installation [default=yes]
 
1040
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1041
  --enable-compile-warnings=[no/minimum/yes/maximum/error]
 
1042
                          Turn on compiler warnings
 
1043
  --enable-iso-c          Try to warn if code is not ISO C
 
1044
  --enable-gtk-doc        use gtk-doc to build documentation default=no
 
1045
  --disable-rebuilds      disable all source autogeneration rules
 
1046
 
 
1047
Optional Packages:
 
1048
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1049
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1050
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1051
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1052
                          both]
 
1053
  --with-tags[=TAGS]
 
1054
                          include additional configurations [automatic]
 
1055
  --with-html-dir=PATH    path to installed docs
 
1056
 
 
1057
Some influential environment variables:
 
1058
  CC          C compiler command
 
1059
  CFLAGS      C compiler flags
 
1060
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1061
              nonstandard directory <lib dir>
 
1062
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1063
              headers in a nonstandard directory <include dir>
 
1064
  CPP         C preprocessor
 
1065
  CXX         C++ compiler command
 
1066
  CXXFLAGS    C++ compiler flags
 
1067
  CXXCPP      C++ preprocessor
 
1068
  F77         Fortran 77 compiler command
 
1069
  FFLAGS      Fortran 77 compiler flags
 
1070
 
 
1071
Use these variables to override the choices made by `configure' or to help
 
1072
it to find libraries and programs with nonstandard names/locations.
 
1073
 
 
1074
Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas>.
 
1075
_ACEOF
 
1076
fi
 
1077
 
 
1078
if test "$ac_init_help" = "recursive"; then
 
1079
  # If there are subdirs, report their specific --help.
 
1080
  ac_popdir=`pwd`
 
1081
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1082
    test -d $ac_dir || continue
 
1083
    ac_builddir=.
 
1084
 
 
1085
if test "$ac_dir" != .; then
 
1086
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1087
  # A "../" for each directory in $ac_dir_suffix.
 
1088
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1089
else
 
1090
  ac_dir_suffix= ac_top_builddir=
 
1091
fi
 
1092
 
 
1093
case $srcdir in
 
1094
  .)  # No --srcdir option.  We are building in place.
 
1095
    ac_srcdir=.
 
1096
    if test -z "$ac_top_builddir"; then
 
1097
       ac_top_srcdir=.
 
1098
    else
 
1099
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1100
    fi ;;
 
1101
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1102
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1103
    ac_top_srcdir=$srcdir ;;
 
1104
  *) # Relative path.
 
1105
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1106
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1107
esac
 
1108
 
 
1109
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1110
# the directories may not exist.
 
1111
case `pwd` in
 
1112
.) ac_abs_builddir="$ac_dir";;
 
1113
*)
 
1114
  case "$ac_dir" in
 
1115
  .) ac_abs_builddir=`pwd`;;
 
1116
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1117
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1118
  esac;;
 
1119
esac
 
1120
case $ac_abs_builddir in
 
1121
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1122
*)
 
1123
  case ${ac_top_builddir}. in
 
1124
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1125
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1126
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1127
  esac;;
 
1128
esac
 
1129
case $ac_abs_builddir in
 
1130
.) ac_abs_srcdir=$ac_srcdir;;
 
1131
*)
 
1132
  case $ac_srcdir in
 
1133
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1134
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1135
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1136
  esac;;
 
1137
esac
 
1138
case $ac_abs_builddir in
 
1139
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1140
*)
 
1141
  case $ac_top_srcdir in
 
1142
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1143
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1144
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1145
  esac;;
 
1146
esac
 
1147
 
 
1148
    cd $ac_dir
 
1149
    # Check for guested configure; otherwise get Cygnus style configure.
 
1150
    if test -f $ac_srcdir/configure.gnu; then
 
1151
      echo
 
1152
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1153
    elif test -f $ac_srcdir/configure; then
 
1154
      echo
 
1155
      $SHELL $ac_srcdir/configure  --help=recursive
 
1156
    elif test -f $ac_srcdir/configure.ac ||
 
1157
           test -f $ac_srcdir/configure.in; then
 
1158
      echo
 
1159
      $ac_configure --help
 
1160
    else
 
1161
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1162
    fi
 
1163
    cd $ac_popdir
 
1164
  done
 
1165
fi
 
1166
 
 
1167
test -n "$ac_init_help" && exit 0
 
1168
if $ac_init_version; then
 
1169
  cat <<\_ACEOF
 
1170
libgnomecanvas configure 2.8.0
 
1171
generated by GNU Autoconf 2.59
 
1172
 
 
1173
Copyright (C) 2003 Free Software Foundation, Inc.
 
1174
This configure script is free software; the Free Software Foundation
 
1175
gives unlimited permission to copy, distribute and modify it.
 
1176
_ACEOF
 
1177
  exit 0
 
1178
fi
 
1179
exec 5>config.log
 
1180
cat >&5 <<_ACEOF
 
1181
This file contains any messages produced by compilers while
 
1182
running configure, to aid debugging if configure makes a mistake.
 
1183
 
 
1184
It was created by libgnomecanvas $as_me 2.8.0, which was
 
1185
generated by GNU Autoconf 2.59.  Invocation command line was
 
1186
 
 
1187
  $ $0 $@
 
1188
 
 
1189
_ACEOF
 
1190
{
 
1191
cat <<_ASUNAME
 
1192
## --------- ##
 
1193
## Platform. ##
 
1194
## --------- ##
 
1195
 
 
1196
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1197
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1198
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1199
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1200
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1201
 
 
1202
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1203
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1204
 
 
1205
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1206
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1207
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1208
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1209
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1210
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1211
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1212
 
 
1213
_ASUNAME
 
1214
 
 
1215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1216
for as_dir in $PATH
 
1217
do
 
1218
  IFS=$as_save_IFS
 
1219
  test -z "$as_dir" && as_dir=.
 
1220
  echo "PATH: $as_dir"
 
1221
done
 
1222
 
 
1223
} >&5
 
1224
 
 
1225
cat >&5 <<_ACEOF
 
1226
 
 
1227
 
 
1228
## ----------- ##
 
1229
## Core tests. ##
 
1230
## ----------- ##
 
1231
 
 
1232
_ACEOF
 
1233
 
 
1234
 
 
1235
# Keep a trace of the command line.
 
1236
# Strip out --no-create and --no-recursion so they do not pile up.
 
1237
# Strip out --silent because we don't want to record it for future runs.
 
1238
# Also quote any args containing shell meta-characters.
 
1239
# Make two passes to allow for proper duplicate-argument suppression.
 
1240
ac_configure_args=
 
1241
ac_configure_args0=
 
1242
ac_configure_args1=
 
1243
ac_sep=
 
1244
ac_must_keep_next=false
 
1245
for ac_pass in 1 2
 
1246
do
 
1247
  for ac_arg
 
1248
  do
 
1249
    case $ac_arg in
 
1250
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1251
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1252
    | -silent | --silent | --silen | --sile | --sil)
 
1253
      continue ;;
 
1254
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1255
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1256
    esac
 
1257
    case $ac_pass in
 
1258
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1259
    2)
 
1260
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1261
      if test $ac_must_keep_next = true; then
 
1262
        ac_must_keep_next=false # Got value, back to normal.
 
1263
      else
 
1264
        case $ac_arg in
 
1265
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1266
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1267
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1268
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1269
            case "$ac_configure_args0 " in
 
1270
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1271
            esac
 
1272
            ;;
 
1273
          -* ) ac_must_keep_next=true ;;
 
1274
        esac
 
1275
      fi
 
1276
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1277
      # Get rid of the leading space.
 
1278
      ac_sep=" "
 
1279
      ;;
 
1280
    esac
 
1281
  done
 
1282
done
 
1283
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1284
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1285
 
 
1286
# When interrupted or exit'd, cleanup temporary files, and complete
 
1287
# config.log.  We remove comments because anyway the quotes in there
 
1288
# would cause problems or look ugly.
 
1289
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1290
# such as our DU 5.0 friend, will then `close' the trap.
 
1291
trap 'exit_status=$?
 
1292
  # Save into config.log some information that might help in debugging.
 
1293
  {
 
1294
    echo
 
1295
 
 
1296
    cat <<\_ASBOX
 
1297
## ---------------- ##
 
1298
## Cache variables. ##
 
1299
## ---------------- ##
 
1300
_ASBOX
 
1301
    echo
 
1302
    # The following way of writing the cache mishandles newlines in values,
 
1303
{
 
1304
  (set) 2>&1 |
 
1305
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1306
    *ac_space=\ *)
 
1307
      sed -n \
 
1308
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1309
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1310
      ;;
 
1311
    *)
 
1312
      sed -n \
 
1313
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1314
      ;;
 
1315
    esac;
 
1316
}
 
1317
    echo
 
1318
 
 
1319
    cat <<\_ASBOX
 
1320
## ----------------- ##
 
1321
## Output variables. ##
 
1322
## ----------------- ##
 
1323
_ASBOX
 
1324
    echo
 
1325
    for ac_var in $ac_subst_vars
 
1326
    do
 
1327
      eval ac_val=$`echo $ac_var`
 
1328
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1329
    done | sort
 
1330
    echo
 
1331
 
 
1332
    if test -n "$ac_subst_files"; then
 
1333
      cat <<\_ASBOX
 
1334
## ------------- ##
 
1335
## Output files. ##
 
1336
## ------------- ##
 
1337
_ASBOX
 
1338
      echo
 
1339
      for ac_var in $ac_subst_files
 
1340
      do
 
1341
        eval ac_val=$`echo $ac_var`
 
1342
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1343
      done | sort
 
1344
      echo
 
1345
    fi
 
1346
 
 
1347
    if test -s confdefs.h; then
 
1348
      cat <<\_ASBOX
 
1349
## ----------- ##
 
1350
## confdefs.h. ##
 
1351
## ----------- ##
 
1352
_ASBOX
 
1353
      echo
 
1354
      sed "/^$/d" confdefs.h | sort
 
1355
      echo
 
1356
    fi
 
1357
    test "$ac_signal" != 0 &&
 
1358
      echo "$as_me: caught signal $ac_signal"
 
1359
    echo "$as_me: exit $exit_status"
 
1360
  } >&5
 
1361
  rm -f core *.core &&
 
1362
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1363
    exit $exit_status
 
1364
     ' 0
 
1365
for ac_signal in 1 2 13 15; do
 
1366
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1367
done
 
1368
ac_signal=0
 
1369
 
 
1370
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1371
rm -rf conftest* confdefs.h
 
1372
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1373
echo >confdefs.h
 
1374
 
 
1375
# Predefined preprocessor variables.
 
1376
 
 
1377
cat >>confdefs.h <<_ACEOF
 
1378
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1379
_ACEOF
 
1380
 
 
1381
 
 
1382
cat >>confdefs.h <<_ACEOF
 
1383
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1384
_ACEOF
 
1385
 
 
1386
 
 
1387
cat >>confdefs.h <<_ACEOF
 
1388
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1389
_ACEOF
 
1390
 
 
1391
 
 
1392
cat >>confdefs.h <<_ACEOF
 
1393
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1394
_ACEOF
 
1395
 
 
1396
 
 
1397
cat >>confdefs.h <<_ACEOF
 
1398
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1399
_ACEOF
 
1400
 
 
1401
 
 
1402
# Let the site file select an alternate cache file if it wants to.
 
1403
# Prefer explicitly selected file to automatically selected ones.
 
1404
if test -z "$CONFIG_SITE"; then
 
1405
  if test "x$prefix" != xNONE; then
 
1406
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1407
  else
 
1408
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1409
  fi
 
1410
fi
 
1411
for ac_site_file in $CONFIG_SITE; do
 
1412
  if test -r "$ac_site_file"; then
 
1413
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1414
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1415
    sed 's/^/| /' "$ac_site_file" >&5
 
1416
    . "$ac_site_file"
 
1417
  fi
 
1418
done
 
1419
 
 
1420
if test -r "$cache_file"; then
 
1421
  # Some versions of bash will fail to source /dev/null (special
 
1422
  # files actually), so we avoid doing that.
 
1423
  if test -f "$cache_file"; then
 
1424
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1425
echo "$as_me: loading cache $cache_file" >&6;}
 
1426
    case $cache_file in
 
1427
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1428
      *)                      . ./$cache_file;;
 
1429
    esac
 
1430
  fi
 
1431
else
 
1432
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1433
echo "$as_me: creating cache $cache_file" >&6;}
 
1434
  >$cache_file
 
1435
fi
 
1436
 
 
1437
# Check that the precious variables saved in the cache have kept the same
 
1438
# value.
 
1439
ac_cache_corrupted=false
 
1440
for ac_var in `(set) 2>&1 |
 
1441
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1442
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1443
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1444
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1445
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1446
  case $ac_old_set,$ac_new_set in
 
1447
    set,)
 
1448
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1449
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1450
      ac_cache_corrupted=: ;;
 
1451
    ,set)
 
1452
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1453
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1454
      ac_cache_corrupted=: ;;
 
1455
    ,);;
 
1456
    *)
 
1457
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1458
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1459
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1460
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1461
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1462
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1463
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1464
        ac_cache_corrupted=:
 
1465
      fi;;
 
1466
  esac
 
1467
  # Pass precious variables to config.status.
 
1468
  if test "$ac_new_set" = set; then
 
1469
    case $ac_new_val in
 
1470
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1471
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1472
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1473
    esac
 
1474
    case " $ac_configure_args " in
 
1475
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1476
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1477
    esac
 
1478
  fi
 
1479
done
 
1480
if $ac_cache_corrupted; then
 
1481
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1482
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1483
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1484
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1485
   { (exit 1); exit 1; }; }
 
1486
fi
 
1487
 
 
1488
ac_ext=c
 
1489
ac_cpp='$CPP $CPPFLAGS'
 
1490
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
LIBGNOMECANVAS_MAJOR_VERSION=2
 
1523
LIBGNOMECANVAS_MINOR_VERSION=8
 
1524
LIBGNOMECANVAS_MICRO_VERSION=0
 
1525
LIBGNOMECANVAS_INTERFACE_AGE=0
 
1526
 
 
1527
 
 
1528
LIBGNOMECANVAS_CURRENT=800
 
1529
LIBGNOMECANVAS_REVISION=0
 
1530
LIBGNOMECANVAS_AGE=800
 
1531
 
 
1532
 
 
1533
 
 
1534
 
 
1535
 
 
1536
am__api_version="1.7"
 
1537
ac_aux_dir=
 
1538
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1539
  if test -f $ac_dir/install-sh; then
 
1540
    ac_aux_dir=$ac_dir
 
1541
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1542
    break
 
1543
  elif test -f $ac_dir/install.sh; then
 
1544
    ac_aux_dir=$ac_dir
 
1545
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1546
    break
 
1547
  elif test -f $ac_dir/shtool; then
 
1548
    ac_aux_dir=$ac_dir
 
1549
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1550
    break
 
1551
  fi
 
1552
done
 
1553
if test -z "$ac_aux_dir"; then
 
1554
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1555
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1556
   { (exit 1); exit 1; }; }
 
1557
fi
 
1558
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1559
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1560
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1561
 
 
1562
# Find a good install program.  We prefer a C program (faster),
 
1563
# so one script is as good as another.  But avoid the broken or
 
1564
# incompatible versions:
 
1565
# SysV /etc/install, /usr/sbin/install
 
1566
# SunOS /usr/etc/install
 
1567
# IRIX /sbin/install
 
1568
# AIX /bin/install
 
1569
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1570
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1571
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1572
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1573
# OS/2's system install, which has a completely different semantic
 
1574
# ./install, which can be erroneously created by make from ./install.sh.
 
1575
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1576
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1577
if test -z "$INSTALL"; then
 
1578
if test "${ac_cv_path_install+set}" = set; then
 
1579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1580
else
 
1581
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1582
for as_dir in $PATH
 
1583
do
 
1584
  IFS=$as_save_IFS
 
1585
  test -z "$as_dir" && as_dir=.
 
1586
  # Account for people who put trailing slashes in PATH elements.
 
1587
case $as_dir/ in
 
1588
  ./ | .// | /cC/* | \
 
1589
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1590
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1591
  /usr/ucb/* ) ;;
 
1592
  *)
 
1593
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1594
    # Don't use installbsd from OSF since it installs stuff as root
 
1595
    # by default.
 
1596
    for ac_prog in ginstall scoinst install; do
 
1597
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1598
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1599
          if test $ac_prog = install &&
 
1600
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1601
            # AIX install.  It has an incompatible calling convention.
 
1602
            :
 
1603
          elif test $ac_prog = install &&
 
1604
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1605
            # program-specific install script used by HP pwplus--don't use.
 
1606
            :
 
1607
          else
 
1608
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1609
            break 3
 
1610
          fi
 
1611
        fi
 
1612
      done
 
1613
    done
 
1614
    ;;
 
1615
esac
 
1616
done
 
1617
 
 
1618
 
 
1619
fi
 
1620
  if test "${ac_cv_path_install+set}" = set; then
 
1621
    INSTALL=$ac_cv_path_install
 
1622
  else
 
1623
    # As a last resort, use the slow shell script.  We don't cache a
 
1624
    # path for INSTALL within a source directory, because that will
 
1625
    # break other packages using the cache if that directory is
 
1626
    # removed, or if the path is relative.
 
1627
    INSTALL=$ac_install_sh
 
1628
  fi
 
1629
fi
 
1630
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1631
echo "${ECHO_T}$INSTALL" >&6
 
1632
 
 
1633
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1634
# It thinks the first close brace ends the variable substitution.
 
1635
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1636
 
 
1637
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1638
 
 
1639
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1640
 
 
1641
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1642
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1643
# Just in case
 
1644
sleep 1
 
1645
echo timestamp > conftest.file
 
1646
# Do `set' in a subshell so we don't clobber the current shell's
 
1647
# arguments.  Must try -L first in case configure is actually a
 
1648
# symlink; some systems play weird games with the mod time of symlinks
 
1649
# (eg FreeBSD returns the mod time of the symlink's containing
 
1650
# directory).
 
1651
if (
 
1652
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1653
   if test "$*" = "X"; then
 
1654
      # -L didn't work.
 
1655
      set X `ls -t $srcdir/configure conftest.file`
 
1656
   fi
 
1657
   rm -f conftest.file
 
1658
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1659
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1660
 
 
1661
      # If neither matched, then we have a broken ls.  This can happen
 
1662
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1663
      # broken ls alias from the environment.  This has actually
 
1664
      # happened.  Such a system could not be considered "sane".
 
1665
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1666
alias in your environment" >&5
 
1667
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1668
alias in your environment" >&2;}
 
1669
   { (exit 1); exit 1; }; }
 
1670
   fi
 
1671
 
 
1672
   test "$2" = conftest.file
 
1673
   )
 
1674
then
 
1675
   # Ok.
 
1676
   :
 
1677
else
 
1678
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1679
Check your system clock" >&5
 
1680
echo "$as_me: error: newly created file is older than distributed files!
 
1681
Check your system clock" >&2;}
 
1682
   { (exit 1); exit 1; }; }
 
1683
fi
 
1684
echo "$as_me:$LINENO: result: yes" >&5
 
1685
echo "${ECHO_T}yes" >&6
 
1686
test "$program_prefix" != NONE &&
 
1687
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1688
# Use a double $ so make ignores it.
 
1689
test "$program_suffix" != NONE &&
 
1690
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1691
# Double any \ or $.  echo might interpret backslashes.
 
1692
# By default was `s,x,x', remove it if useless.
 
1693
cat <<\_ACEOF >conftest.sed
 
1694
s/[\\$]/&&/g;s/;s,x,x,$//
 
1695
_ACEOF
 
1696
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1697
rm conftest.sed
 
1698
 
 
1699
 
 
1700
# expand $ac_aux_dir to an absolute path
 
1701
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1702
 
 
1703
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1704
# Use eval to expand $SHELL
 
1705
if eval "$MISSING --run true"; then
 
1706
  am_missing_run="$MISSING --run "
 
1707
else
 
1708
  am_missing_run=
 
1709
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1710
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1711
fi
 
1712
 
 
1713
for ac_prog in gawk mawk nawk awk
 
1714
do
 
1715
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1716
set dummy $ac_prog; ac_word=$2
 
1717
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1719
if test "${ac_cv_prog_AWK+set}" = set; then
 
1720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1721
else
 
1722
  if test -n "$AWK"; then
 
1723
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1724
else
 
1725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1726
for as_dir in $PATH
 
1727
do
 
1728
  IFS=$as_save_IFS
 
1729
  test -z "$as_dir" && as_dir=.
 
1730
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1731
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1732
    ac_cv_prog_AWK="$ac_prog"
 
1733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1734
    break 2
 
1735
  fi
 
1736
done
 
1737
done
 
1738
 
 
1739
fi
 
1740
fi
 
1741
AWK=$ac_cv_prog_AWK
 
1742
if test -n "$AWK"; then
 
1743
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1744
echo "${ECHO_T}$AWK" >&6
 
1745
else
 
1746
  echo "$as_me:$LINENO: result: no" >&5
 
1747
echo "${ECHO_T}no" >&6
 
1748
fi
 
1749
 
 
1750
  test -n "$AWK" && break
 
1751
done
 
1752
 
 
1753
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1754
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1755
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1756
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1758
else
 
1759
  cat >conftest.make <<\_ACEOF
 
1760
all:
 
1761
        @echo 'ac_maketemp="$(MAKE)"'
 
1762
_ACEOF
 
1763
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1764
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1765
if test -n "$ac_maketemp"; then
 
1766
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1767
else
 
1768
  eval ac_cv_prog_make_${ac_make}_set=no
 
1769
fi
 
1770
rm -f conftest.make
 
1771
fi
 
1772
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1773
  echo "$as_me:$LINENO: result: yes" >&5
 
1774
echo "${ECHO_T}yes" >&6
 
1775
  SET_MAKE=
 
1776
else
 
1777
  echo "$as_me:$LINENO: result: no" >&5
 
1778
echo "${ECHO_T}no" >&6
 
1779
  SET_MAKE="MAKE=${MAKE-make}"
 
1780
fi
 
1781
 
 
1782
rm -rf .tst 2>/dev/null
 
1783
mkdir .tst 2>/dev/null
 
1784
if test -d .tst; then
 
1785
  am__leading_dot=.
 
1786
else
 
1787
  am__leading_dot=_
 
1788
fi
 
1789
rmdir .tst 2>/dev/null
 
1790
 
 
1791
 # test to see if srcdir already configured
 
1792
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1793
   test -f $srcdir/config.status; then
 
1794
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1795
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1796
   { (exit 1); exit 1; }; }
 
1797
fi
 
1798
 
 
1799
# test whether we have cygpath
 
1800
if test -z "$CYGPATH_W"; then
 
1801
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1802
    CYGPATH_W='cygpath -w'
 
1803
  else
 
1804
    CYGPATH_W=echo
 
1805
  fi
 
1806
fi
 
1807
 
 
1808
 
 
1809
# Define the identity of the package.
 
1810
 PACKAGE='libgnomecanvas'
 
1811
 VERSION='2.8.0'
 
1812
 
 
1813
 
 
1814
cat >>confdefs.h <<_ACEOF
 
1815
#define PACKAGE "$PACKAGE"
 
1816
_ACEOF
 
1817
 
 
1818
 
 
1819
cat >>confdefs.h <<_ACEOF
 
1820
#define VERSION "$VERSION"
 
1821
_ACEOF
 
1822
 
 
1823
# Some tools Automake needs.
 
1824
 
 
1825
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1826
 
 
1827
 
 
1828
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1829
 
 
1830
 
 
1831
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1832
 
 
1833
 
 
1834
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1835
 
 
1836
 
 
1837
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1838
 
 
1839
 
 
1840
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1841
 
 
1842
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1843
 
 
1844
# Installed binaries are usually stripped using `strip' when the user
 
1845
# run `make install-strip'.  However `strip' might not be the right
 
1846
# tool to use in cross-compilation environments, therefore Automake
 
1847
# will honor the `STRIP' environment variable to overrule this program.
 
1848
if test "$cross_compiling" != no; then
 
1849
  if test -n "$ac_tool_prefix"; then
 
1850
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1851
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1852
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1853
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1854
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1856
else
 
1857
  if test -n "$STRIP"; then
 
1858
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1859
else
 
1860
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1861
for as_dir in $PATH
 
1862
do
 
1863
  IFS=$as_save_IFS
 
1864
  test -z "$as_dir" && as_dir=.
 
1865
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1866
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1867
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1868
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1869
    break 2
 
1870
  fi
 
1871
done
 
1872
done
 
1873
 
 
1874
fi
 
1875
fi
 
1876
STRIP=$ac_cv_prog_STRIP
 
1877
if test -n "$STRIP"; then
 
1878
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1879
echo "${ECHO_T}$STRIP" >&6
 
1880
else
 
1881
  echo "$as_me:$LINENO: result: no" >&5
 
1882
echo "${ECHO_T}no" >&6
 
1883
fi
 
1884
 
 
1885
fi
 
1886
if test -z "$ac_cv_prog_STRIP"; then
 
1887
  ac_ct_STRIP=$STRIP
 
1888
  # Extract the first word of "strip", so it can be a program name with args.
 
1889
set dummy strip; ac_word=$2
 
1890
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1891
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1892
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1893
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1894
else
 
1895
  if test -n "$ac_ct_STRIP"; then
 
1896
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1897
else
 
1898
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1899
for as_dir in $PATH
 
1900
do
 
1901
  IFS=$as_save_IFS
 
1902
  test -z "$as_dir" && as_dir=.
 
1903
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1904
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1905
    ac_cv_prog_ac_ct_STRIP="strip"
 
1906
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1907
    break 2
 
1908
  fi
 
1909
done
 
1910
done
 
1911
 
 
1912
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1913
fi
 
1914
fi
 
1915
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1916
if test -n "$ac_ct_STRIP"; then
 
1917
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1918
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1919
else
 
1920
  echo "$as_me:$LINENO: result: no" >&5
 
1921
echo "${ECHO_T}no" >&6
 
1922
fi
 
1923
 
 
1924
  STRIP=$ac_ct_STRIP
 
1925
else
 
1926
  STRIP="$ac_cv_prog_STRIP"
 
1927
fi
 
1928
 
 
1929
fi
 
1930
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1931
 
 
1932
# We need awk for the "check" target.  The system "awk" is bad on
 
1933
# some platforms.
 
1934
 
 
1935
 
 
1936
 
 
1937
          ac_config_headers="$ac_config_headers config.h"
 
1938
 
 
1939
 
 
1940
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1941
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1942
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1943
if test "${enable_maintainer_mode+set}" = set; then
 
1944
  enableval="$enable_maintainer_mode"
 
1945
  USE_MAINTAINER_MODE=$enableval
 
1946
else
 
1947
  USE_MAINTAINER_MODE=no
 
1948
fi;
 
1949
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1950
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1951
 
 
1952
 
 
1953
if test $USE_MAINTAINER_MODE = yes; then
 
1954
  MAINTAINER_MODE_TRUE=
 
1955
  MAINTAINER_MODE_FALSE='#'
 
1956
else
 
1957
  MAINTAINER_MODE_TRUE='#'
 
1958
  MAINTAINER_MODE_FALSE=
 
1959
fi
 
1960
 
 
1961
  MAINT=$MAINTAINER_MODE_TRUE
 
1962
 
 
1963
 
 
1964
 
 
1965
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
 
1966
 
 
1967
 
 
1968
DEPDIR="${am__leading_dot}deps"
 
1969
 
 
1970
          ac_config_commands="$ac_config_commands depfiles"
 
1971
 
 
1972
 
 
1973
am_make=${MAKE-make}
 
1974
cat > confinc << 'END'
 
1975
am__doit:
 
1976
        @echo done
 
1977
.PHONY: am__doit
 
1978
END
 
1979
# If we don't find an include directive, just comment out the code.
 
1980
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
1981
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
1982
am__include="#"
 
1983
am__quote=
 
1984
_am_result=none
 
1985
# First try GNU make style include.
 
1986
echo "include confinc" > confmf
 
1987
# We grep out `Entering directory' and `Leaving directory'
 
1988
# messages which can occur if `w' ends up in MAKEFLAGS.
 
1989
# In particular we don't look at `^make:' because GNU make might
 
1990
# be invoked under some other name (usually "gmake"), in which
 
1991
# case it prints its new name instead of `make'.
 
1992
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
1993
   am__include=include
 
1994
   am__quote=
 
1995
   _am_result=GNU
 
1996
fi
 
1997
# Now try BSD make style include.
 
1998
if test "$am__include" = "#"; then
 
1999
   echo '.include "confinc"' > confmf
 
2000
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2001
      am__include=.include
 
2002
      am__quote="\""
 
2003
      _am_result=BSD
 
2004
   fi
 
2005
fi
 
2006
 
 
2007
 
 
2008
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2009
echo "${ECHO_T}$_am_result" >&6
 
2010
rm -f confinc confmf
 
2011
 
 
2012
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2013
if test "${enable_dependency_tracking+set}" = set; then
 
2014
  enableval="$enable_dependency_tracking"
 
2015
 
 
2016
fi;
 
2017
if test "x$enable_dependency_tracking" != xno; then
 
2018
  am_depcomp="$ac_aux_dir/depcomp"
 
2019
  AMDEPBACKSLASH='\'
 
2020
fi
 
2021
 
 
2022
 
 
2023
if test "x$enable_dependency_tracking" != xno; then
 
2024
  AMDEP_TRUE=
 
2025
  AMDEP_FALSE='#'
 
2026
else
 
2027
  AMDEP_TRUE='#'
 
2028
  AMDEP_FALSE=
 
2029
fi
 
2030
 
 
2031
 
 
2032
 
 
2033
ac_ext=c
 
2034
ac_cpp='$CPP $CPPFLAGS'
 
2035
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2036
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2037
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2038
if test -n "$ac_tool_prefix"; then
 
2039
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2040
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2041
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2042
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2043
if test "${ac_cv_prog_CC+set}" = set; then
 
2044
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2045
else
 
2046
  if test -n "$CC"; then
 
2047
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2048
else
 
2049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2050
for as_dir in $PATH
 
2051
do
 
2052
  IFS=$as_save_IFS
 
2053
  test -z "$as_dir" && as_dir=.
 
2054
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2055
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2056
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2057
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2058
    break 2
 
2059
  fi
 
2060
done
 
2061
done
 
2062
 
 
2063
fi
 
2064
fi
 
2065
CC=$ac_cv_prog_CC
 
2066
if test -n "$CC"; then
 
2067
  echo "$as_me:$LINENO: result: $CC" >&5
 
2068
echo "${ECHO_T}$CC" >&6
 
2069
else
 
2070
  echo "$as_me:$LINENO: result: no" >&5
 
2071
echo "${ECHO_T}no" >&6
 
2072
fi
 
2073
 
 
2074
fi
 
2075
if test -z "$ac_cv_prog_CC"; then
 
2076
  ac_ct_CC=$CC
 
2077
  # Extract the first word of "gcc", so it can be a program name with args.
 
2078
set dummy gcc; ac_word=$2
 
2079
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2080
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2081
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2082
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2083
else
 
2084
  if test -n "$ac_ct_CC"; then
 
2085
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2086
else
 
2087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2088
for as_dir in $PATH
 
2089
do
 
2090
  IFS=$as_save_IFS
 
2091
  test -z "$as_dir" && as_dir=.
 
2092
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2093
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2094
    ac_cv_prog_ac_ct_CC="gcc"
 
2095
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2096
    break 2
 
2097
  fi
 
2098
done
 
2099
done
 
2100
 
 
2101
fi
 
2102
fi
 
2103
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2104
if test -n "$ac_ct_CC"; then
 
2105
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2106
echo "${ECHO_T}$ac_ct_CC" >&6
 
2107
else
 
2108
  echo "$as_me:$LINENO: result: no" >&5
 
2109
echo "${ECHO_T}no" >&6
 
2110
fi
 
2111
 
 
2112
  CC=$ac_ct_CC
 
2113
else
 
2114
  CC="$ac_cv_prog_CC"
 
2115
fi
 
2116
 
 
2117
if test -z "$CC"; then
 
2118
  if test -n "$ac_tool_prefix"; then
 
2119
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2120
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2121
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2122
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2123
if test "${ac_cv_prog_CC+set}" = set; then
 
2124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2125
else
 
2126
  if test -n "$CC"; then
 
2127
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2128
else
 
2129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2130
for as_dir in $PATH
 
2131
do
 
2132
  IFS=$as_save_IFS
 
2133
  test -z "$as_dir" && as_dir=.
 
2134
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2135
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2136
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2137
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2138
    break 2
 
2139
  fi
 
2140
done
 
2141
done
 
2142
 
 
2143
fi
 
2144
fi
 
2145
CC=$ac_cv_prog_CC
 
2146
if test -n "$CC"; then
 
2147
  echo "$as_me:$LINENO: result: $CC" >&5
 
2148
echo "${ECHO_T}$CC" >&6
 
2149
else
 
2150
  echo "$as_me:$LINENO: result: no" >&5
 
2151
echo "${ECHO_T}no" >&6
 
2152
fi
 
2153
 
 
2154
fi
 
2155
if test -z "$ac_cv_prog_CC"; then
 
2156
  ac_ct_CC=$CC
 
2157
  # Extract the first word of "cc", so it can be a program name with args.
 
2158
set dummy cc; ac_word=$2
 
2159
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2160
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2161
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2162
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2163
else
 
2164
  if test -n "$ac_ct_CC"; then
 
2165
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2166
else
 
2167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2168
for as_dir in $PATH
 
2169
do
 
2170
  IFS=$as_save_IFS
 
2171
  test -z "$as_dir" && as_dir=.
 
2172
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2173
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2174
    ac_cv_prog_ac_ct_CC="cc"
 
2175
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2176
    break 2
 
2177
  fi
 
2178
done
 
2179
done
 
2180
 
 
2181
fi
 
2182
fi
 
2183
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2184
if test -n "$ac_ct_CC"; then
 
2185
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2186
echo "${ECHO_T}$ac_ct_CC" >&6
 
2187
else
 
2188
  echo "$as_me:$LINENO: result: no" >&5
 
2189
echo "${ECHO_T}no" >&6
 
2190
fi
 
2191
 
 
2192
  CC=$ac_ct_CC
 
2193
else
 
2194
  CC="$ac_cv_prog_CC"
 
2195
fi
 
2196
 
 
2197
fi
 
2198
if test -z "$CC"; then
 
2199
  # Extract the first word of "cc", so it can be a program name with args.
 
2200
set dummy cc; ac_word=$2
 
2201
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2202
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2203
if test "${ac_cv_prog_CC+set}" = set; then
 
2204
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2205
else
 
2206
  if test -n "$CC"; then
 
2207
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2208
else
 
2209
  ac_prog_rejected=no
 
2210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2211
for as_dir in $PATH
 
2212
do
 
2213
  IFS=$as_save_IFS
 
2214
  test -z "$as_dir" && as_dir=.
 
2215
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2216
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2217
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2218
       ac_prog_rejected=yes
 
2219
       continue
 
2220
     fi
 
2221
    ac_cv_prog_CC="cc"
 
2222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2223
    break 2
 
2224
  fi
 
2225
done
 
2226
done
 
2227
 
 
2228
if test $ac_prog_rejected = yes; then
 
2229
  # We found a bogon in the path, so make sure we never use it.
 
2230
  set dummy $ac_cv_prog_CC
 
2231
  shift
 
2232
  if test $# != 0; then
 
2233
    # We chose a different compiler from the bogus one.
 
2234
    # However, it has the same basename, so the bogon will be chosen
 
2235
    # first if we set CC to just the basename; use the full file name.
 
2236
    shift
 
2237
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2238
  fi
 
2239
fi
 
2240
fi
 
2241
fi
 
2242
CC=$ac_cv_prog_CC
 
2243
if test -n "$CC"; then
 
2244
  echo "$as_me:$LINENO: result: $CC" >&5
 
2245
echo "${ECHO_T}$CC" >&6
 
2246
else
 
2247
  echo "$as_me:$LINENO: result: no" >&5
 
2248
echo "${ECHO_T}no" >&6
 
2249
fi
 
2250
 
 
2251
fi
 
2252
if test -z "$CC"; then
 
2253
  if test -n "$ac_tool_prefix"; then
 
2254
  for ac_prog in cl
 
2255
  do
 
2256
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2257
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2258
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2260
if test "${ac_cv_prog_CC+set}" = set; then
 
2261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2262
else
 
2263
  if test -n "$CC"; then
 
2264
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2265
else
 
2266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2267
for as_dir in $PATH
 
2268
do
 
2269
  IFS=$as_save_IFS
 
2270
  test -z "$as_dir" && as_dir=.
 
2271
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2272
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2273
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2274
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2275
    break 2
 
2276
  fi
 
2277
done
 
2278
done
 
2279
 
 
2280
fi
 
2281
fi
 
2282
CC=$ac_cv_prog_CC
 
2283
if test -n "$CC"; then
 
2284
  echo "$as_me:$LINENO: result: $CC" >&5
 
2285
echo "${ECHO_T}$CC" >&6
 
2286
else
 
2287
  echo "$as_me:$LINENO: result: no" >&5
 
2288
echo "${ECHO_T}no" >&6
 
2289
fi
 
2290
 
 
2291
    test -n "$CC" && break
 
2292
  done
 
2293
fi
 
2294
if test -z "$CC"; then
 
2295
  ac_ct_CC=$CC
 
2296
  for ac_prog in cl
 
2297
do
 
2298
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2299
set dummy $ac_prog; ac_word=$2
 
2300
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2301
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2302
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2304
else
 
2305
  if test -n "$ac_ct_CC"; then
 
2306
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2307
else
 
2308
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2309
for as_dir in $PATH
 
2310
do
 
2311
  IFS=$as_save_IFS
 
2312
  test -z "$as_dir" && as_dir=.
 
2313
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2314
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2315
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2316
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2317
    break 2
 
2318
  fi
 
2319
done
 
2320
done
 
2321
 
 
2322
fi
 
2323
fi
 
2324
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2325
if test -n "$ac_ct_CC"; then
 
2326
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2327
echo "${ECHO_T}$ac_ct_CC" >&6
 
2328
else
 
2329
  echo "$as_me:$LINENO: result: no" >&5
 
2330
echo "${ECHO_T}no" >&6
 
2331
fi
 
2332
 
 
2333
  test -n "$ac_ct_CC" && break
 
2334
done
 
2335
 
 
2336
  CC=$ac_ct_CC
 
2337
fi
 
2338
 
 
2339
fi
 
2340
 
 
2341
 
 
2342
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2343
See \`config.log' for more details." >&5
 
2344
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2345
See \`config.log' for more details." >&2;}
 
2346
   { (exit 1); exit 1; }; }
 
2347
 
 
2348
# Provide some information about the compiler.
 
2349
echo "$as_me:$LINENO:" \
 
2350
     "checking for C compiler version" >&5
 
2351
ac_compiler=`set X $ac_compile; echo $2`
 
2352
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2353
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2354
  ac_status=$?
 
2355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2356
  (exit $ac_status); }
 
2357
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2358
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2359
  ac_status=$?
 
2360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2361
  (exit $ac_status); }
 
2362
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2363
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2364
  ac_status=$?
 
2365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2366
  (exit $ac_status); }
 
2367
 
 
2368
cat >conftest.$ac_ext <<_ACEOF
 
2369
/* confdefs.h.  */
 
2370
_ACEOF
 
2371
cat confdefs.h >>conftest.$ac_ext
 
2372
cat >>conftest.$ac_ext <<_ACEOF
 
2373
/* end confdefs.h.  */
 
2374
 
 
2375
int
 
2376
main ()
 
2377
{
 
2378
 
 
2379
  ;
 
2380
  return 0;
 
2381
}
 
2382
_ACEOF
 
2383
ac_clean_files_save=$ac_clean_files
 
2384
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2385
# Try to create an executable without -o first, disregard a.out.
 
2386
# It will help us diagnose broken compilers, and finding out an intuition
 
2387
# of exeext.
 
2388
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2389
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2390
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2391
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2392
  (eval $ac_link_default) 2>&5
 
2393
  ac_status=$?
 
2394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2395
  (exit $ac_status); }; then
 
2396
  # Find the output, starting from the most likely.  This scheme is
 
2397
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2398
# resort.
 
2399
 
 
2400
# Be careful to initialize this variable, since it used to be cached.
 
2401
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2402
ac_cv_exeext=
 
2403
# b.out is created by i960 compilers.
 
2404
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2405
do
 
2406
  test -f "$ac_file" || continue
 
2407
  case $ac_file in
 
2408
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2409
        ;;
 
2410
    conftest.$ac_ext )
 
2411
        # This is the source file.
 
2412
        ;;
 
2413
    [ab].out )
 
2414
        # We found the default executable, but exeext='' is most
 
2415
        # certainly right.
 
2416
        break;;
 
2417
    *.* )
 
2418
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2419
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2420
        # but it would be cool to find out if it's true.  Does anybody
 
2421
        # maintain Libtool? --akim.
 
2422
        export ac_cv_exeext
 
2423
        break;;
 
2424
    * )
 
2425
        break;;
 
2426
  esac
 
2427
done
 
2428
else
 
2429
  echo "$as_me: failed program was:" >&5
 
2430
sed 's/^/| /' conftest.$ac_ext >&5
 
2431
 
 
2432
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2433
See \`config.log' for more details." >&5
 
2434
echo "$as_me: error: C compiler cannot create executables
 
2435
See \`config.log' for more details." >&2;}
 
2436
   { (exit 77); exit 77; }; }
 
2437
fi
 
2438
 
 
2439
ac_exeext=$ac_cv_exeext
 
2440
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2441
echo "${ECHO_T}$ac_file" >&6
 
2442
 
 
2443
# Check the compiler produces executables we can run.  If not, either
 
2444
# the compiler is broken, or we cross compile.
 
2445
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2446
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2447
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2448
# If not cross compiling, check that we can run a simple program.
 
2449
if test "$cross_compiling" != yes; then
 
2450
  if { ac_try='./$ac_file'
 
2451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2452
  (eval $ac_try) 2>&5
 
2453
  ac_status=$?
 
2454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2455
  (exit $ac_status); }; }; then
 
2456
    cross_compiling=no
 
2457
  else
 
2458
    if test "$cross_compiling" = maybe; then
 
2459
        cross_compiling=yes
 
2460
    else
 
2461
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2462
If you meant to cross compile, use \`--host'.
 
2463
See \`config.log' for more details." >&5
 
2464
echo "$as_me: error: cannot run C compiled programs.
 
2465
If you meant to cross compile, use \`--host'.
 
2466
See \`config.log' for more details." >&2;}
 
2467
   { (exit 1); exit 1; }; }
 
2468
    fi
 
2469
  fi
 
2470
fi
 
2471
echo "$as_me:$LINENO: result: yes" >&5
 
2472
echo "${ECHO_T}yes" >&6
 
2473
 
 
2474
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2475
ac_clean_files=$ac_clean_files_save
 
2476
# Check the compiler produces executables we can run.  If not, either
 
2477
# the compiler is broken, or we cross compile.
 
2478
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2479
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2480
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2481
echo "${ECHO_T}$cross_compiling" >&6
 
2482
 
 
2483
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2484
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2486
  (eval $ac_link) 2>&5
 
2487
  ac_status=$?
 
2488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2489
  (exit $ac_status); }; then
 
2490
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2491
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2492
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2493
# `rm'.
 
2494
for ac_file in conftest.exe conftest conftest.*; do
 
2495
  test -f "$ac_file" || continue
 
2496
  case $ac_file in
 
2497
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2498
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2499
          export ac_cv_exeext
 
2500
          break;;
 
2501
    * ) break;;
 
2502
  esac
 
2503
done
 
2504
else
 
2505
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2506
See \`config.log' for more details." >&5
 
2507
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2508
See \`config.log' for more details." >&2;}
 
2509
   { (exit 1); exit 1; }; }
 
2510
fi
 
2511
 
 
2512
rm -f conftest$ac_cv_exeext
 
2513
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2514
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2515
 
 
2516
rm -f conftest.$ac_ext
 
2517
EXEEXT=$ac_cv_exeext
 
2518
ac_exeext=$EXEEXT
 
2519
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2520
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2521
if test "${ac_cv_objext+set}" = set; then
 
2522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2523
else
 
2524
  cat >conftest.$ac_ext <<_ACEOF
 
2525
/* confdefs.h.  */
 
2526
_ACEOF
 
2527
cat confdefs.h >>conftest.$ac_ext
 
2528
cat >>conftest.$ac_ext <<_ACEOF
 
2529
/* end confdefs.h.  */
 
2530
 
 
2531
int
 
2532
main ()
 
2533
{
 
2534
 
 
2535
  ;
 
2536
  return 0;
 
2537
}
 
2538
_ACEOF
 
2539
rm -f conftest.o conftest.obj
 
2540
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2541
  (eval $ac_compile) 2>&5
 
2542
  ac_status=$?
 
2543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2544
  (exit $ac_status); }; then
 
2545
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2546
  case $ac_file in
 
2547
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2548
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2549
       break;;
 
2550
  esac
 
2551
done
 
2552
else
 
2553
  echo "$as_me: failed program was:" >&5
 
2554
sed 's/^/| /' conftest.$ac_ext >&5
 
2555
 
 
2556
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2557
See \`config.log' for more details." >&5
 
2558
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2559
See \`config.log' for more details." >&2;}
 
2560
   { (exit 1); exit 1; }; }
 
2561
fi
 
2562
 
 
2563
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2564
fi
 
2565
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2566
echo "${ECHO_T}$ac_cv_objext" >&6
 
2567
OBJEXT=$ac_cv_objext
 
2568
ac_objext=$OBJEXT
 
2569
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2570
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2571
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2573
else
 
2574
  cat >conftest.$ac_ext <<_ACEOF
 
2575
/* confdefs.h.  */
 
2576
_ACEOF
 
2577
cat confdefs.h >>conftest.$ac_ext
 
2578
cat >>conftest.$ac_ext <<_ACEOF
 
2579
/* end confdefs.h.  */
 
2580
 
 
2581
int
 
2582
main ()
 
2583
{
 
2584
#ifndef __GNUC__
 
2585
       choke me
 
2586
#endif
 
2587
 
 
2588
  ;
 
2589
  return 0;
 
2590
}
 
2591
_ACEOF
 
2592
rm -f conftest.$ac_objext
 
2593
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2594
  (eval $ac_compile) 2>conftest.er1
 
2595
  ac_status=$?
 
2596
  grep -v '^ *+' conftest.er1 >conftest.err
 
2597
  rm -f conftest.er1
 
2598
  cat conftest.err >&5
 
2599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2600
  (exit $ac_status); } &&
 
2601
         { ac_try='test -z "$ac_c_werror_flag"
 
2602
                         || test ! -s conftest.err'
 
2603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2604
  (eval $ac_try) 2>&5
 
2605
  ac_status=$?
 
2606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2607
  (exit $ac_status); }; } &&
 
2608
         { ac_try='test -s conftest.$ac_objext'
 
2609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2610
  (eval $ac_try) 2>&5
 
2611
  ac_status=$?
 
2612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2613
  (exit $ac_status); }; }; then
 
2614
  ac_compiler_gnu=yes
 
2615
else
 
2616
  echo "$as_me: failed program was:" >&5
 
2617
sed 's/^/| /' conftest.$ac_ext >&5
 
2618
 
 
2619
ac_compiler_gnu=no
 
2620
fi
 
2621
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2622
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2623
 
 
2624
fi
 
2625
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2626
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2627
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2628
ac_test_CFLAGS=${CFLAGS+set}
 
2629
ac_save_CFLAGS=$CFLAGS
 
2630
CFLAGS="-g"
 
2631
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2632
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2633
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2635
else
 
2636
  cat >conftest.$ac_ext <<_ACEOF
 
2637
/* confdefs.h.  */
 
2638
_ACEOF
 
2639
cat confdefs.h >>conftest.$ac_ext
 
2640
cat >>conftest.$ac_ext <<_ACEOF
 
2641
/* end confdefs.h.  */
 
2642
 
 
2643
int
 
2644
main ()
 
2645
{
 
2646
 
 
2647
  ;
 
2648
  return 0;
 
2649
}
 
2650
_ACEOF
 
2651
rm -f conftest.$ac_objext
 
2652
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2653
  (eval $ac_compile) 2>conftest.er1
 
2654
  ac_status=$?
 
2655
  grep -v '^ *+' conftest.er1 >conftest.err
 
2656
  rm -f conftest.er1
 
2657
  cat conftest.err >&5
 
2658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2659
  (exit $ac_status); } &&
 
2660
         { ac_try='test -z "$ac_c_werror_flag"
 
2661
                         || test ! -s conftest.err'
 
2662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2663
  (eval $ac_try) 2>&5
 
2664
  ac_status=$?
 
2665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2666
  (exit $ac_status); }; } &&
 
2667
         { ac_try='test -s conftest.$ac_objext'
 
2668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2669
  (eval $ac_try) 2>&5
 
2670
  ac_status=$?
 
2671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2672
  (exit $ac_status); }; }; then
 
2673
  ac_cv_prog_cc_g=yes
 
2674
else
 
2675
  echo "$as_me: failed program was:" >&5
 
2676
sed 's/^/| /' conftest.$ac_ext >&5
 
2677
 
 
2678
ac_cv_prog_cc_g=no
 
2679
fi
 
2680
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2681
fi
 
2682
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2683
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2684
if test "$ac_test_CFLAGS" = set; then
 
2685
  CFLAGS=$ac_save_CFLAGS
 
2686
elif test $ac_cv_prog_cc_g = yes; then
 
2687
  if test "$GCC" = yes; then
 
2688
    CFLAGS="-g -O2"
 
2689
  else
 
2690
    CFLAGS="-g"
 
2691
  fi
 
2692
else
 
2693
  if test "$GCC" = yes; then
 
2694
    CFLAGS="-O2"
 
2695
  else
 
2696
    CFLAGS=
 
2697
  fi
 
2698
fi
 
2699
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2700
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2701
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2703
else
 
2704
  ac_cv_prog_cc_stdc=no
 
2705
ac_save_CC=$CC
 
2706
cat >conftest.$ac_ext <<_ACEOF
 
2707
/* confdefs.h.  */
 
2708
_ACEOF
 
2709
cat confdefs.h >>conftest.$ac_ext
 
2710
cat >>conftest.$ac_ext <<_ACEOF
 
2711
/* end confdefs.h.  */
 
2712
#include <stdarg.h>
 
2713
#include <stdio.h>
 
2714
#include <sys/types.h>
 
2715
#include <sys/stat.h>
 
2716
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2717
struct buf { int x; };
 
2718
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2719
static char *e (p, i)
 
2720
     char **p;
 
2721
     int i;
 
2722
{
 
2723
  return p[i];
 
2724
}
 
2725
static char *f (char * (*g) (char **, int), char **p, ...)
 
2726
{
 
2727
  char *s;
 
2728
  va_list v;
 
2729
  va_start (v,p);
 
2730
  s = g (p, va_arg (v,int));
 
2731
  va_end (v);
 
2732
  return s;
 
2733
}
 
2734
 
 
2735
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2736
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2737
   These don't provoke an error unfortunately, instead are silently treated
 
2738
   as 'x'.  The following induces an error, until -std1 is added to get
 
2739
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2740
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2741
   that's true only with -std1.  */
 
2742
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2743
 
 
2744
int test (int i, double x);
 
2745
struct s1 {int (*f) (int a);};
 
2746
struct s2 {int (*f) (double a);};
 
2747
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2748
int argc;
 
2749
char **argv;
 
2750
int
 
2751
main ()
 
2752
{
 
2753
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2754
  ;
 
2755
  return 0;
 
2756
}
 
2757
_ACEOF
 
2758
# Don't try gcc -ansi; that turns off useful extensions and
 
2759
# breaks some systems' header files.
 
2760
# AIX                   -qlanglvl=ansi
 
2761
# Ultrix and OSF/1      -std1
 
2762
# HP-UX 10.20 and later -Ae
 
2763
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2764
# SVR4                  -Xc -D__EXTENSIONS__
 
2765
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2766
do
 
2767
  CC="$ac_save_CC $ac_arg"
 
2768
  rm -f conftest.$ac_objext
 
2769
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2770
  (eval $ac_compile) 2>conftest.er1
 
2771
  ac_status=$?
 
2772
  grep -v '^ *+' conftest.er1 >conftest.err
 
2773
  rm -f conftest.er1
 
2774
  cat conftest.err >&5
 
2775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2776
  (exit $ac_status); } &&
 
2777
         { ac_try='test -z "$ac_c_werror_flag"
 
2778
                         || test ! -s conftest.err'
 
2779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2780
  (eval $ac_try) 2>&5
 
2781
  ac_status=$?
 
2782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2783
  (exit $ac_status); }; } &&
 
2784
         { ac_try='test -s conftest.$ac_objext'
 
2785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2786
  (eval $ac_try) 2>&5
 
2787
  ac_status=$?
 
2788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2789
  (exit $ac_status); }; }; then
 
2790
  ac_cv_prog_cc_stdc=$ac_arg
 
2791
break
 
2792
else
 
2793
  echo "$as_me: failed program was:" >&5
 
2794
sed 's/^/| /' conftest.$ac_ext >&5
 
2795
 
 
2796
fi
 
2797
rm -f conftest.err conftest.$ac_objext
 
2798
done
 
2799
rm -f conftest.$ac_ext conftest.$ac_objext
 
2800
CC=$ac_save_CC
 
2801
 
 
2802
fi
 
2803
 
 
2804
case "x$ac_cv_prog_cc_stdc" in
 
2805
  x|xno)
 
2806
    echo "$as_me:$LINENO: result: none needed" >&5
 
2807
echo "${ECHO_T}none needed" >&6 ;;
 
2808
  *)
 
2809
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2810
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2811
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2812
esac
 
2813
 
 
2814
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2815
# in C++ we need to declare it.  In case someone uses the same compiler
 
2816
# for both compiling C and C++ we need to have the C++ compiler decide
 
2817
# the declaration of exit, since it's the most demanding environment.
 
2818
cat >conftest.$ac_ext <<_ACEOF
 
2819
#ifndef __cplusplus
 
2820
  choke me
 
2821
#endif
 
2822
_ACEOF
 
2823
rm -f conftest.$ac_objext
 
2824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2825
  (eval $ac_compile) 2>conftest.er1
 
2826
  ac_status=$?
 
2827
  grep -v '^ *+' conftest.er1 >conftest.err
 
2828
  rm -f conftest.er1
 
2829
  cat conftest.err >&5
 
2830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2831
  (exit $ac_status); } &&
 
2832
         { ac_try='test -z "$ac_c_werror_flag"
 
2833
                         || test ! -s conftest.err'
 
2834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2835
  (eval $ac_try) 2>&5
 
2836
  ac_status=$?
 
2837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2838
  (exit $ac_status); }; } &&
 
2839
         { ac_try='test -s conftest.$ac_objext'
 
2840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2841
  (eval $ac_try) 2>&5
 
2842
  ac_status=$?
 
2843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2844
  (exit $ac_status); }; }; then
 
2845
  for ac_declaration in \
 
2846
   '' \
 
2847
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2848
   'extern "C" void std::exit (int); using std::exit;' \
 
2849
   'extern "C" void exit (int) throw ();' \
 
2850
   'extern "C" void exit (int);' \
 
2851
   'void exit (int);'
 
2852
do
 
2853
  cat >conftest.$ac_ext <<_ACEOF
 
2854
/* confdefs.h.  */
 
2855
_ACEOF
 
2856
cat confdefs.h >>conftest.$ac_ext
 
2857
cat >>conftest.$ac_ext <<_ACEOF
 
2858
/* end confdefs.h.  */
 
2859
$ac_declaration
 
2860
#include <stdlib.h>
 
2861
int
 
2862
main ()
 
2863
{
 
2864
exit (42);
 
2865
  ;
 
2866
  return 0;
 
2867
}
 
2868
_ACEOF
 
2869
rm -f conftest.$ac_objext
 
2870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2871
  (eval $ac_compile) 2>conftest.er1
 
2872
  ac_status=$?
 
2873
  grep -v '^ *+' conftest.er1 >conftest.err
 
2874
  rm -f conftest.er1
 
2875
  cat conftest.err >&5
 
2876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2877
  (exit $ac_status); } &&
 
2878
         { ac_try='test -z "$ac_c_werror_flag"
 
2879
                         || test ! -s conftest.err'
 
2880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2881
  (eval $ac_try) 2>&5
 
2882
  ac_status=$?
 
2883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2884
  (exit $ac_status); }; } &&
 
2885
         { ac_try='test -s conftest.$ac_objext'
 
2886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2887
  (eval $ac_try) 2>&5
 
2888
  ac_status=$?
 
2889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2890
  (exit $ac_status); }; }; then
 
2891
  :
 
2892
else
 
2893
  echo "$as_me: failed program was:" >&5
 
2894
sed 's/^/| /' conftest.$ac_ext >&5
 
2895
 
 
2896
continue
 
2897
fi
 
2898
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2899
  cat >conftest.$ac_ext <<_ACEOF
 
2900
/* confdefs.h.  */
 
2901
_ACEOF
 
2902
cat confdefs.h >>conftest.$ac_ext
 
2903
cat >>conftest.$ac_ext <<_ACEOF
 
2904
/* end confdefs.h.  */
 
2905
$ac_declaration
 
2906
int
 
2907
main ()
 
2908
{
 
2909
exit (42);
 
2910
  ;
 
2911
  return 0;
 
2912
}
 
2913
_ACEOF
 
2914
rm -f conftest.$ac_objext
 
2915
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2916
  (eval $ac_compile) 2>conftest.er1
 
2917
  ac_status=$?
 
2918
  grep -v '^ *+' conftest.er1 >conftest.err
 
2919
  rm -f conftest.er1
 
2920
  cat conftest.err >&5
 
2921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2922
  (exit $ac_status); } &&
 
2923
         { ac_try='test -z "$ac_c_werror_flag"
 
2924
                         || test ! -s conftest.err'
 
2925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2926
  (eval $ac_try) 2>&5
 
2927
  ac_status=$?
 
2928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2929
  (exit $ac_status); }; } &&
 
2930
         { ac_try='test -s conftest.$ac_objext'
 
2931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2932
  (eval $ac_try) 2>&5
 
2933
  ac_status=$?
 
2934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2935
  (exit $ac_status); }; }; then
 
2936
  break
 
2937
else
 
2938
  echo "$as_me: failed program was:" >&5
 
2939
sed 's/^/| /' conftest.$ac_ext >&5
 
2940
 
 
2941
fi
 
2942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2943
done
 
2944
rm -f conftest*
 
2945
if test -n "$ac_declaration"; then
 
2946
  echo '#ifdef __cplusplus' >>confdefs.h
 
2947
  echo $ac_declaration      >>confdefs.h
 
2948
  echo '#endif'             >>confdefs.h
 
2949
fi
 
2950
 
 
2951
else
 
2952
  echo "$as_me: failed program was:" >&5
 
2953
sed 's/^/| /' conftest.$ac_ext >&5
 
2954
 
 
2955
fi
 
2956
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2957
ac_ext=c
 
2958
ac_cpp='$CPP $CPPFLAGS'
 
2959
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2960
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2961
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2962
 
 
2963
depcc="$CC"   am_compiler_list=
 
2964
 
 
2965
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2966
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2967
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2969
else
 
2970
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2971
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2972
  # making bogus files that we don't know about and never remove.  For
 
2973
  # instance it was reported that on HP-UX the gcc test will end up
 
2974
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2975
  # in D'.
 
2976
  mkdir conftest.dir
 
2977
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2978
  # using a relative directory.
 
2979
  cp "$am_depcomp" conftest.dir
 
2980
  cd conftest.dir
 
2981
  # We will build objects and dependencies in a subdirectory because
 
2982
  # it helps to detect inapplicable dependency modes.  For instance
 
2983
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2984
  # side effect of compilation, but ICC will put the dependencies in
 
2985
  # the current directory while Tru64 will put them in the object
 
2986
  # directory.
 
2987
  mkdir sub
 
2988
 
 
2989
  am_cv_CC_dependencies_compiler_type=none
 
2990
  if test "$am_compiler_list" = ""; then
 
2991
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2992
  fi
 
2993
  for depmode in $am_compiler_list; do
 
2994
    # Setup a source with many dependencies, because some compilers
 
2995
    # like to wrap large dependency lists on column 80 (with \), and
 
2996
    # we should not choose a depcomp mode which is confused by this.
 
2997
    #
 
2998
    # We need to recreate these files for each test, as the compiler may
 
2999
    # overwrite some of them when testing with obscure command lines.
 
3000
    # This happens at least with the AIX C compiler.
 
3001
    : > sub/conftest.c
 
3002
    for i in 1 2 3 4 5 6; do
 
3003
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3004
      : > sub/conftst$i.h
 
3005
    done
 
3006
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3007
 
 
3008
    case $depmode in
 
3009
    nosideeffect)
 
3010
      # after this tag, mechanisms are not by side-effect, so they'll
 
3011
      # only be used when explicitly requested
 
3012
      if test "x$enable_dependency_tracking" = xyes; then
 
3013
        continue
 
3014
      else
 
3015
        break
 
3016
      fi
 
3017
      ;;
 
3018
    none) break ;;
 
3019
    esac
 
3020
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3021
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3022
    # handle `-M -o', and we need to detect this.
 
3023
    if depmode=$depmode \
 
3024
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3025
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3026
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3027
         >/dev/null 2>conftest.err &&
 
3028
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3029
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3030
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3031
      # icc doesn't choke on unknown options, it will just issue warnings
 
3032
      # (even with -Werror).  So we grep stderr for any message
 
3033
      # that says an option was ignored.
 
3034
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3035
        am_cv_CC_dependencies_compiler_type=$depmode
 
3036
        break
 
3037
      fi
 
3038
    fi
 
3039
  done
 
3040
 
 
3041
  cd ..
 
3042
  rm -rf conftest.dir
 
3043
else
 
3044
  am_cv_CC_dependencies_compiler_type=none
 
3045
fi
 
3046
 
 
3047
fi
 
3048
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3049
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3050
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3051
 
 
3052
 
 
3053
 
 
3054
if
 
3055
  test "x$enable_dependency_tracking" != xno \
 
3056
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3057
  am__fastdepCC_TRUE=
 
3058
  am__fastdepCC_FALSE='#'
 
3059
else
 
3060
  am__fastdepCC_TRUE='#'
 
3061
  am__fastdepCC_FALSE=
 
3062
fi
 
3063
 
 
3064
 
 
3065
 
 
3066
 
 
3067
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
3068
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
3069
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
3070
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3071
else
 
3072
  ac_check_lib_save_LIBS=$LIBS
 
3073
LIBS="-lcposix  $LIBS"
 
3074
cat >conftest.$ac_ext <<_ACEOF
 
3075
/* confdefs.h.  */
 
3076
_ACEOF
 
3077
cat confdefs.h >>conftest.$ac_ext
 
3078
cat >>conftest.$ac_ext <<_ACEOF
 
3079
/* end confdefs.h.  */
 
3080
 
 
3081
/* Override any gcc2 internal prototype to avoid an error.  */
 
3082
#ifdef __cplusplus
 
3083
extern "C"
 
3084
#endif
 
3085
/* We use char because int might match the return type of a gcc2
 
3086
   builtin and then its argument prototype would still apply.  */
 
3087
char strerror ();
 
3088
int
 
3089
main ()
 
3090
{
 
3091
strerror ();
 
3092
  ;
 
3093
  return 0;
 
3094
}
 
3095
_ACEOF
 
3096
rm -f conftest.$ac_objext conftest$ac_exeext
 
3097
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3098
  (eval $ac_link) 2>conftest.er1
 
3099
  ac_status=$?
 
3100
  grep -v '^ *+' conftest.er1 >conftest.err
 
3101
  rm -f conftest.er1
 
3102
  cat conftest.err >&5
 
3103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3104
  (exit $ac_status); } &&
 
3105
         { ac_try='test -z "$ac_c_werror_flag"
 
3106
                         || test ! -s conftest.err'
 
3107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3108
  (eval $ac_try) 2>&5
 
3109
  ac_status=$?
 
3110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3111
  (exit $ac_status); }; } &&
 
3112
         { ac_try='test -s conftest$ac_exeext'
 
3113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3114
  (eval $ac_try) 2>&5
 
3115
  ac_status=$?
 
3116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3117
  (exit $ac_status); }; }; then
 
3118
  ac_cv_lib_cposix_strerror=yes
 
3119
else
 
3120
  echo "$as_me: failed program was:" >&5
 
3121
sed 's/^/| /' conftest.$ac_ext >&5
 
3122
 
 
3123
ac_cv_lib_cposix_strerror=no
 
3124
fi
 
3125
rm -f conftest.err conftest.$ac_objext \
 
3126
      conftest$ac_exeext conftest.$ac_ext
 
3127
LIBS=$ac_check_lib_save_LIBS
 
3128
fi
 
3129
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
3130
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
3131
if test $ac_cv_lib_cposix_strerror = yes; then
 
3132
  LIBS="$LIBS -lcposix"
 
3133
fi
 
3134
 
 
3135
 
 
3136
 
 
3137
ac_ext=c
 
3138
ac_cpp='$CPP $CPPFLAGS'
 
3139
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3140
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3141
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3142
if test -n "$ac_tool_prefix"; then
 
3143
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3144
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3145
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3147
if test "${ac_cv_prog_CC+set}" = set; then
 
3148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3149
else
 
3150
  if test -n "$CC"; then
 
3151
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3152
else
 
3153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3154
for as_dir in $PATH
 
3155
do
 
3156
  IFS=$as_save_IFS
 
3157
  test -z "$as_dir" && as_dir=.
 
3158
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3159
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3160
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3161
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3162
    break 2
 
3163
  fi
 
3164
done
 
3165
done
 
3166
 
 
3167
fi
 
3168
fi
 
3169
CC=$ac_cv_prog_CC
 
3170
if test -n "$CC"; then
 
3171
  echo "$as_me:$LINENO: result: $CC" >&5
 
3172
echo "${ECHO_T}$CC" >&6
 
3173
else
 
3174
  echo "$as_me:$LINENO: result: no" >&5
 
3175
echo "${ECHO_T}no" >&6
 
3176
fi
 
3177
 
 
3178
fi
 
3179
if test -z "$ac_cv_prog_CC"; then
 
3180
  ac_ct_CC=$CC
 
3181
  # Extract the first word of "gcc", so it can be a program name with args.
 
3182
set dummy gcc; ac_word=$2
 
3183
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3184
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3185
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3186
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3187
else
 
3188
  if test -n "$ac_ct_CC"; then
 
3189
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3190
else
 
3191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3192
for as_dir in $PATH
 
3193
do
 
3194
  IFS=$as_save_IFS
 
3195
  test -z "$as_dir" && as_dir=.
 
3196
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3197
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3198
    ac_cv_prog_ac_ct_CC="gcc"
 
3199
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3200
    break 2
 
3201
  fi
 
3202
done
 
3203
done
 
3204
 
 
3205
fi
 
3206
fi
 
3207
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3208
if test -n "$ac_ct_CC"; then
 
3209
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3210
echo "${ECHO_T}$ac_ct_CC" >&6
 
3211
else
 
3212
  echo "$as_me:$LINENO: result: no" >&5
 
3213
echo "${ECHO_T}no" >&6
 
3214
fi
 
3215
 
 
3216
  CC=$ac_ct_CC
 
3217
else
 
3218
  CC="$ac_cv_prog_CC"
 
3219
fi
 
3220
 
 
3221
if test -z "$CC"; then
 
3222
  if test -n "$ac_tool_prefix"; then
 
3223
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3224
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3225
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3226
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3227
if test "${ac_cv_prog_CC+set}" = set; then
 
3228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3229
else
 
3230
  if test -n "$CC"; then
 
3231
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3232
else
 
3233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3234
for as_dir in $PATH
 
3235
do
 
3236
  IFS=$as_save_IFS
 
3237
  test -z "$as_dir" && as_dir=.
 
3238
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3239
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3240
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3241
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3242
    break 2
 
3243
  fi
 
3244
done
 
3245
done
 
3246
 
 
3247
fi
 
3248
fi
 
3249
CC=$ac_cv_prog_CC
 
3250
if test -n "$CC"; then
 
3251
  echo "$as_me:$LINENO: result: $CC" >&5
 
3252
echo "${ECHO_T}$CC" >&6
 
3253
else
 
3254
  echo "$as_me:$LINENO: result: no" >&5
 
3255
echo "${ECHO_T}no" >&6
 
3256
fi
 
3257
 
 
3258
fi
 
3259
if test -z "$ac_cv_prog_CC"; then
 
3260
  ac_ct_CC=$CC
 
3261
  # Extract the first word of "cc", so it can be a program name with args.
 
3262
set dummy cc; ac_word=$2
 
3263
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3264
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3265
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3267
else
 
3268
  if test -n "$ac_ct_CC"; then
 
3269
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3270
else
 
3271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3272
for as_dir in $PATH
 
3273
do
 
3274
  IFS=$as_save_IFS
 
3275
  test -z "$as_dir" && as_dir=.
 
3276
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3277
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3278
    ac_cv_prog_ac_ct_CC="cc"
 
3279
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3280
    break 2
 
3281
  fi
 
3282
done
 
3283
done
 
3284
 
 
3285
fi
 
3286
fi
 
3287
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3288
if test -n "$ac_ct_CC"; then
 
3289
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3290
echo "${ECHO_T}$ac_ct_CC" >&6
 
3291
else
 
3292
  echo "$as_me:$LINENO: result: no" >&5
 
3293
echo "${ECHO_T}no" >&6
 
3294
fi
 
3295
 
 
3296
  CC=$ac_ct_CC
 
3297
else
 
3298
  CC="$ac_cv_prog_CC"
 
3299
fi
 
3300
 
 
3301
fi
 
3302
if test -z "$CC"; then
 
3303
  # Extract the first word of "cc", so it can be a program name with args.
 
3304
set dummy cc; ac_word=$2
 
3305
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3307
if test "${ac_cv_prog_CC+set}" = set; then
 
3308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3309
else
 
3310
  if test -n "$CC"; then
 
3311
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3312
else
 
3313
  ac_prog_rejected=no
 
3314
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3315
for as_dir in $PATH
 
3316
do
 
3317
  IFS=$as_save_IFS
 
3318
  test -z "$as_dir" && as_dir=.
 
3319
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3320
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3321
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3322
       ac_prog_rejected=yes
 
3323
       continue
 
3324
     fi
 
3325
    ac_cv_prog_CC="cc"
 
3326
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3327
    break 2
 
3328
  fi
 
3329
done
 
3330
done
 
3331
 
 
3332
if test $ac_prog_rejected = yes; then
 
3333
  # We found a bogon in the path, so make sure we never use it.
 
3334
  set dummy $ac_cv_prog_CC
 
3335
  shift
 
3336
  if test $# != 0; then
 
3337
    # We chose a different compiler from the bogus one.
 
3338
    # However, it has the same basename, so the bogon will be chosen
 
3339
    # first if we set CC to just the basename; use the full file name.
 
3340
    shift
 
3341
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3342
  fi
 
3343
fi
 
3344
fi
 
3345
fi
 
3346
CC=$ac_cv_prog_CC
 
3347
if test -n "$CC"; then
 
3348
  echo "$as_me:$LINENO: result: $CC" >&5
 
3349
echo "${ECHO_T}$CC" >&6
 
3350
else
 
3351
  echo "$as_me:$LINENO: result: no" >&5
 
3352
echo "${ECHO_T}no" >&6
 
3353
fi
 
3354
 
 
3355
fi
 
3356
if test -z "$CC"; then
 
3357
  if test -n "$ac_tool_prefix"; then
 
3358
  for ac_prog in cl
 
3359
  do
 
3360
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3361
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3362
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3363
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3364
if test "${ac_cv_prog_CC+set}" = set; then
 
3365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3366
else
 
3367
  if test -n "$CC"; then
 
3368
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3369
else
 
3370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3371
for as_dir in $PATH
 
3372
do
 
3373
  IFS=$as_save_IFS
 
3374
  test -z "$as_dir" && as_dir=.
 
3375
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3376
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3377
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3378
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3379
    break 2
 
3380
  fi
 
3381
done
 
3382
done
 
3383
 
 
3384
fi
 
3385
fi
 
3386
CC=$ac_cv_prog_CC
 
3387
if test -n "$CC"; then
 
3388
  echo "$as_me:$LINENO: result: $CC" >&5
 
3389
echo "${ECHO_T}$CC" >&6
 
3390
else
 
3391
  echo "$as_me:$LINENO: result: no" >&5
 
3392
echo "${ECHO_T}no" >&6
 
3393
fi
 
3394
 
 
3395
    test -n "$CC" && break
 
3396
  done
 
3397
fi
 
3398
if test -z "$CC"; then
 
3399
  ac_ct_CC=$CC
 
3400
  for ac_prog in cl
 
3401
do
 
3402
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3403
set dummy $ac_prog; ac_word=$2
 
3404
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3405
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3406
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3408
else
 
3409
  if test -n "$ac_ct_CC"; then
 
3410
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3411
else
 
3412
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3413
for as_dir in $PATH
 
3414
do
 
3415
  IFS=$as_save_IFS
 
3416
  test -z "$as_dir" && as_dir=.
 
3417
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3418
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3419
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3420
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3421
    break 2
 
3422
  fi
 
3423
done
 
3424
done
 
3425
 
 
3426
fi
 
3427
fi
 
3428
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3429
if test -n "$ac_ct_CC"; then
 
3430
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3431
echo "${ECHO_T}$ac_ct_CC" >&6
 
3432
else
 
3433
  echo "$as_me:$LINENO: result: no" >&5
 
3434
echo "${ECHO_T}no" >&6
 
3435
fi
 
3436
 
 
3437
  test -n "$ac_ct_CC" && break
 
3438
done
 
3439
 
 
3440
  CC=$ac_ct_CC
 
3441
fi
 
3442
 
 
3443
fi
 
3444
 
 
3445
 
 
3446
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3447
See \`config.log' for more details." >&5
 
3448
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3449
See \`config.log' for more details." >&2;}
 
3450
   { (exit 1); exit 1; }; }
 
3451
 
 
3452
# Provide some information about the compiler.
 
3453
echo "$as_me:$LINENO:" \
 
3454
     "checking for C compiler version" >&5
 
3455
ac_compiler=`set X $ac_compile; echo $2`
 
3456
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3457
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3458
  ac_status=$?
 
3459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3460
  (exit $ac_status); }
 
3461
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3462
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3463
  ac_status=$?
 
3464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3465
  (exit $ac_status); }
 
3466
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3467
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3468
  ac_status=$?
 
3469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3470
  (exit $ac_status); }
 
3471
 
 
3472
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3473
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3474
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3475
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3476
else
 
3477
  cat >conftest.$ac_ext <<_ACEOF
 
3478
/* confdefs.h.  */
 
3479
_ACEOF
 
3480
cat confdefs.h >>conftest.$ac_ext
 
3481
cat >>conftest.$ac_ext <<_ACEOF
 
3482
/* end confdefs.h.  */
 
3483
 
 
3484
int
 
3485
main ()
 
3486
{
 
3487
#ifndef __GNUC__
 
3488
       choke me
 
3489
#endif
 
3490
 
 
3491
  ;
 
3492
  return 0;
 
3493
}
 
3494
_ACEOF
 
3495
rm -f conftest.$ac_objext
 
3496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3497
  (eval $ac_compile) 2>conftest.er1
 
3498
  ac_status=$?
 
3499
  grep -v '^ *+' conftest.er1 >conftest.err
 
3500
  rm -f conftest.er1
 
3501
  cat conftest.err >&5
 
3502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3503
  (exit $ac_status); } &&
 
3504
         { ac_try='test -z "$ac_c_werror_flag"
 
3505
                         || test ! -s conftest.err'
 
3506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3507
  (eval $ac_try) 2>&5
 
3508
  ac_status=$?
 
3509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3510
  (exit $ac_status); }; } &&
 
3511
         { ac_try='test -s conftest.$ac_objext'
 
3512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3513
  (eval $ac_try) 2>&5
 
3514
  ac_status=$?
 
3515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3516
  (exit $ac_status); }; }; then
 
3517
  ac_compiler_gnu=yes
 
3518
else
 
3519
  echo "$as_me: failed program was:" >&5
 
3520
sed 's/^/| /' conftest.$ac_ext >&5
 
3521
 
 
3522
ac_compiler_gnu=no
 
3523
fi
 
3524
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3525
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3526
 
 
3527
fi
 
3528
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3529
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3530
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3531
ac_test_CFLAGS=${CFLAGS+set}
 
3532
ac_save_CFLAGS=$CFLAGS
 
3533
CFLAGS="-g"
 
3534
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3535
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3536
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3538
else
 
3539
  cat >conftest.$ac_ext <<_ACEOF
 
3540
/* confdefs.h.  */
 
3541
_ACEOF
 
3542
cat confdefs.h >>conftest.$ac_ext
 
3543
cat >>conftest.$ac_ext <<_ACEOF
 
3544
/* end confdefs.h.  */
 
3545
 
 
3546
int
 
3547
main ()
 
3548
{
 
3549
 
 
3550
  ;
 
3551
  return 0;
 
3552
}
 
3553
_ACEOF
 
3554
rm -f conftest.$ac_objext
 
3555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3556
  (eval $ac_compile) 2>conftest.er1
 
3557
  ac_status=$?
 
3558
  grep -v '^ *+' conftest.er1 >conftest.err
 
3559
  rm -f conftest.er1
 
3560
  cat conftest.err >&5
 
3561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3562
  (exit $ac_status); } &&
 
3563
         { ac_try='test -z "$ac_c_werror_flag"
 
3564
                         || test ! -s conftest.err'
 
3565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3566
  (eval $ac_try) 2>&5
 
3567
  ac_status=$?
 
3568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3569
  (exit $ac_status); }; } &&
 
3570
         { ac_try='test -s conftest.$ac_objext'
 
3571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3572
  (eval $ac_try) 2>&5
 
3573
  ac_status=$?
 
3574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3575
  (exit $ac_status); }; }; then
 
3576
  ac_cv_prog_cc_g=yes
 
3577
else
 
3578
  echo "$as_me: failed program was:" >&5
 
3579
sed 's/^/| /' conftest.$ac_ext >&5
 
3580
 
 
3581
ac_cv_prog_cc_g=no
 
3582
fi
 
3583
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3584
fi
 
3585
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3586
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3587
if test "$ac_test_CFLAGS" = set; then
 
3588
  CFLAGS=$ac_save_CFLAGS
 
3589
elif test $ac_cv_prog_cc_g = yes; then
 
3590
  if test "$GCC" = yes; then
 
3591
    CFLAGS="-g -O2"
 
3592
  else
 
3593
    CFLAGS="-g"
 
3594
  fi
 
3595
else
 
3596
  if test "$GCC" = yes; then
 
3597
    CFLAGS="-O2"
 
3598
  else
 
3599
    CFLAGS=
 
3600
  fi
 
3601
fi
 
3602
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3603
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3604
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3606
else
 
3607
  ac_cv_prog_cc_stdc=no
 
3608
ac_save_CC=$CC
 
3609
cat >conftest.$ac_ext <<_ACEOF
 
3610
/* confdefs.h.  */
 
3611
_ACEOF
 
3612
cat confdefs.h >>conftest.$ac_ext
 
3613
cat >>conftest.$ac_ext <<_ACEOF
 
3614
/* end confdefs.h.  */
 
3615
#include <stdarg.h>
 
3616
#include <stdio.h>
 
3617
#include <sys/types.h>
 
3618
#include <sys/stat.h>
 
3619
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3620
struct buf { int x; };
 
3621
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3622
static char *e (p, i)
 
3623
     char **p;
 
3624
     int i;
 
3625
{
 
3626
  return p[i];
 
3627
}
 
3628
static char *f (char * (*g) (char **, int), char **p, ...)
 
3629
{
 
3630
  char *s;
 
3631
  va_list v;
 
3632
  va_start (v,p);
 
3633
  s = g (p, va_arg (v,int));
 
3634
  va_end (v);
 
3635
  return s;
 
3636
}
 
3637
 
 
3638
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3639
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3640
   These don't provoke an error unfortunately, instead are silently treated
 
3641
   as 'x'.  The following induces an error, until -std1 is added to get
 
3642
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3643
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3644
   that's true only with -std1.  */
 
3645
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3646
 
 
3647
int test (int i, double x);
 
3648
struct s1 {int (*f) (int a);};
 
3649
struct s2 {int (*f) (double a);};
 
3650
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3651
int argc;
 
3652
char **argv;
 
3653
int
 
3654
main ()
 
3655
{
 
3656
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3657
  ;
 
3658
  return 0;
 
3659
}
 
3660
_ACEOF
 
3661
# Don't try gcc -ansi; that turns off useful extensions and
 
3662
# breaks some systems' header files.
 
3663
# AIX                   -qlanglvl=ansi
 
3664
# Ultrix and OSF/1      -std1
 
3665
# HP-UX 10.20 and later -Ae
 
3666
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3667
# SVR4                  -Xc -D__EXTENSIONS__
 
3668
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3669
do
 
3670
  CC="$ac_save_CC $ac_arg"
 
3671
  rm -f conftest.$ac_objext
 
3672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3673
  (eval $ac_compile) 2>conftest.er1
 
3674
  ac_status=$?
 
3675
  grep -v '^ *+' conftest.er1 >conftest.err
 
3676
  rm -f conftest.er1
 
3677
  cat conftest.err >&5
 
3678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3679
  (exit $ac_status); } &&
 
3680
         { ac_try='test -z "$ac_c_werror_flag"
 
3681
                         || test ! -s conftest.err'
 
3682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3683
  (eval $ac_try) 2>&5
 
3684
  ac_status=$?
 
3685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3686
  (exit $ac_status); }; } &&
 
3687
         { ac_try='test -s conftest.$ac_objext'
 
3688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3689
  (eval $ac_try) 2>&5
 
3690
  ac_status=$?
 
3691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3692
  (exit $ac_status); }; }; then
 
3693
  ac_cv_prog_cc_stdc=$ac_arg
 
3694
break
 
3695
else
 
3696
  echo "$as_me: failed program was:" >&5
 
3697
sed 's/^/| /' conftest.$ac_ext >&5
 
3698
 
 
3699
fi
 
3700
rm -f conftest.err conftest.$ac_objext
 
3701
done
 
3702
rm -f conftest.$ac_ext conftest.$ac_objext
 
3703
CC=$ac_save_CC
 
3704
 
 
3705
fi
 
3706
 
 
3707
case "x$ac_cv_prog_cc_stdc" in
 
3708
  x|xno)
 
3709
    echo "$as_me:$LINENO: result: none needed" >&5
 
3710
echo "${ECHO_T}none needed" >&6 ;;
 
3711
  *)
 
3712
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3713
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3714
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3715
esac
 
3716
 
 
3717
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3718
# in C++ we need to declare it.  In case someone uses the same compiler
 
3719
# for both compiling C and C++ we need to have the C++ compiler decide
 
3720
# the declaration of exit, since it's the most demanding environment.
 
3721
cat >conftest.$ac_ext <<_ACEOF
 
3722
#ifndef __cplusplus
 
3723
  choke me
 
3724
#endif
 
3725
_ACEOF
 
3726
rm -f conftest.$ac_objext
 
3727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3728
  (eval $ac_compile) 2>conftest.er1
 
3729
  ac_status=$?
 
3730
  grep -v '^ *+' conftest.er1 >conftest.err
 
3731
  rm -f conftest.er1
 
3732
  cat conftest.err >&5
 
3733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3734
  (exit $ac_status); } &&
 
3735
         { ac_try='test -z "$ac_c_werror_flag"
 
3736
                         || test ! -s conftest.err'
 
3737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3738
  (eval $ac_try) 2>&5
 
3739
  ac_status=$?
 
3740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3741
  (exit $ac_status); }; } &&
 
3742
         { ac_try='test -s conftest.$ac_objext'
 
3743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3744
  (eval $ac_try) 2>&5
 
3745
  ac_status=$?
 
3746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3747
  (exit $ac_status); }; }; then
 
3748
  for ac_declaration in \
 
3749
   '' \
 
3750
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3751
   'extern "C" void std::exit (int); using std::exit;' \
 
3752
   'extern "C" void exit (int) throw ();' \
 
3753
   'extern "C" void exit (int);' \
 
3754
   'void exit (int);'
 
3755
do
 
3756
  cat >conftest.$ac_ext <<_ACEOF
 
3757
/* confdefs.h.  */
 
3758
_ACEOF
 
3759
cat confdefs.h >>conftest.$ac_ext
 
3760
cat >>conftest.$ac_ext <<_ACEOF
 
3761
/* end confdefs.h.  */
 
3762
$ac_declaration
 
3763
#include <stdlib.h>
 
3764
int
 
3765
main ()
 
3766
{
 
3767
exit (42);
 
3768
  ;
 
3769
  return 0;
 
3770
}
 
3771
_ACEOF
 
3772
rm -f conftest.$ac_objext
 
3773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3774
  (eval $ac_compile) 2>conftest.er1
 
3775
  ac_status=$?
 
3776
  grep -v '^ *+' conftest.er1 >conftest.err
 
3777
  rm -f conftest.er1
 
3778
  cat conftest.err >&5
 
3779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3780
  (exit $ac_status); } &&
 
3781
         { ac_try='test -z "$ac_c_werror_flag"
 
3782
                         || test ! -s conftest.err'
 
3783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3784
  (eval $ac_try) 2>&5
 
3785
  ac_status=$?
 
3786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3787
  (exit $ac_status); }; } &&
 
3788
         { ac_try='test -s conftest.$ac_objext'
 
3789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3790
  (eval $ac_try) 2>&5
 
3791
  ac_status=$?
 
3792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3793
  (exit $ac_status); }; }; then
 
3794
  :
 
3795
else
 
3796
  echo "$as_me: failed program was:" >&5
 
3797
sed 's/^/| /' conftest.$ac_ext >&5
 
3798
 
 
3799
continue
 
3800
fi
 
3801
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3802
  cat >conftest.$ac_ext <<_ACEOF
 
3803
/* confdefs.h.  */
 
3804
_ACEOF
 
3805
cat confdefs.h >>conftest.$ac_ext
 
3806
cat >>conftest.$ac_ext <<_ACEOF
 
3807
/* end confdefs.h.  */
 
3808
$ac_declaration
 
3809
int
 
3810
main ()
 
3811
{
 
3812
exit (42);
 
3813
  ;
 
3814
  return 0;
 
3815
}
 
3816
_ACEOF
 
3817
rm -f conftest.$ac_objext
 
3818
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3819
  (eval $ac_compile) 2>conftest.er1
 
3820
  ac_status=$?
 
3821
  grep -v '^ *+' conftest.er1 >conftest.err
 
3822
  rm -f conftest.er1
 
3823
  cat conftest.err >&5
 
3824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3825
  (exit $ac_status); } &&
 
3826
         { ac_try='test -z "$ac_c_werror_flag"
 
3827
                         || test ! -s conftest.err'
 
3828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3829
  (eval $ac_try) 2>&5
 
3830
  ac_status=$?
 
3831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3832
  (exit $ac_status); }; } &&
 
3833
         { ac_try='test -s conftest.$ac_objext'
 
3834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3835
  (eval $ac_try) 2>&5
 
3836
  ac_status=$?
 
3837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3838
  (exit $ac_status); }; }; then
 
3839
  break
 
3840
else
 
3841
  echo "$as_me: failed program was:" >&5
 
3842
sed 's/^/| /' conftest.$ac_ext >&5
 
3843
 
 
3844
fi
 
3845
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3846
done
 
3847
rm -f conftest*
 
3848
if test -n "$ac_declaration"; then
 
3849
  echo '#ifdef __cplusplus' >>confdefs.h
 
3850
  echo $ac_declaration      >>confdefs.h
 
3851
  echo '#endif'             >>confdefs.h
 
3852
fi
 
3853
 
 
3854
else
 
3855
  echo "$as_me: failed program was:" >&5
 
3856
sed 's/^/| /' conftest.$ac_ext >&5
 
3857
 
 
3858
fi
 
3859
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3860
ac_ext=c
 
3861
ac_cpp='$CPP $CPPFLAGS'
 
3862
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3863
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3864
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3865
 
 
3866
depcc="$CC"   am_compiler_list=
 
3867
 
 
3868
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3869
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3870
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3871
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3872
else
 
3873
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3874
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3875
  # making bogus files that we don't know about and never remove.  For
 
3876
  # instance it was reported that on HP-UX the gcc test will end up
 
3877
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3878
  # in D'.
 
3879
  mkdir conftest.dir
 
3880
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3881
  # using a relative directory.
 
3882
  cp "$am_depcomp" conftest.dir
 
3883
  cd conftest.dir
 
3884
  # We will build objects and dependencies in a subdirectory because
 
3885
  # it helps to detect inapplicable dependency modes.  For instance
 
3886
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3887
  # side effect of compilation, but ICC will put the dependencies in
 
3888
  # the current directory while Tru64 will put them in the object
 
3889
  # directory.
 
3890
  mkdir sub
 
3891
 
 
3892
  am_cv_CC_dependencies_compiler_type=none
 
3893
  if test "$am_compiler_list" = ""; then
 
3894
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3895
  fi
 
3896
  for depmode in $am_compiler_list; do
 
3897
    # Setup a source with many dependencies, because some compilers
 
3898
    # like to wrap large dependency lists on column 80 (with \), and
 
3899
    # we should not choose a depcomp mode which is confused by this.
 
3900
    #
 
3901
    # We need to recreate these files for each test, as the compiler may
 
3902
    # overwrite some of them when testing with obscure command lines.
 
3903
    # This happens at least with the AIX C compiler.
 
3904
    : > sub/conftest.c
 
3905
    for i in 1 2 3 4 5 6; do
 
3906
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3907
      : > sub/conftst$i.h
 
3908
    done
 
3909
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3910
 
 
3911
    case $depmode in
 
3912
    nosideeffect)
 
3913
      # after this tag, mechanisms are not by side-effect, so they'll
 
3914
      # only be used when explicitly requested
 
3915
      if test "x$enable_dependency_tracking" = xyes; then
 
3916
        continue
 
3917
      else
 
3918
        break
 
3919
      fi
 
3920
      ;;
 
3921
    none) break ;;
 
3922
    esac
 
3923
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3924
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3925
    # handle `-M -o', and we need to detect this.
 
3926
    if depmode=$depmode \
 
3927
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3928
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3929
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3930
         >/dev/null 2>conftest.err &&
 
3931
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3932
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3933
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3934
      # icc doesn't choke on unknown options, it will just issue warnings
 
3935
      # (even with -Werror).  So we grep stderr for any message
 
3936
      # that says an option was ignored.
 
3937
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3938
        am_cv_CC_dependencies_compiler_type=$depmode
 
3939
        break
 
3940
      fi
 
3941
    fi
 
3942
  done
 
3943
 
 
3944
  cd ..
 
3945
  rm -rf conftest.dir
 
3946
else
 
3947
  am_cv_CC_dependencies_compiler_type=none
 
3948
fi
 
3949
 
 
3950
fi
 
3951
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3952
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3953
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3954
 
 
3955
 
 
3956
 
 
3957
if
 
3958
  test "x$enable_dependency_tracking" != xno \
 
3959
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3960
  am__fastdepCC_TRUE=
 
3961
  am__fastdepCC_FALSE='#'
 
3962
else
 
3963
  am__fastdepCC_TRUE='#'
 
3964
  am__fastdepCC_FALSE=
 
3965
fi
 
3966
 
 
3967
 
 
3968
ac_ext=c
 
3969
ac_cpp='$CPP $CPPFLAGS'
 
3970
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3971
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3972
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3973
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3974
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3975
# On Suns, sometimes $CPP names a directory.
 
3976
if test -n "$CPP" && test -d "$CPP"; then
 
3977
  CPP=
 
3978
fi
 
3979
if test -z "$CPP"; then
 
3980
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3982
else
 
3983
      # Double quotes because CPP needs to be expanded
 
3984
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3985
    do
 
3986
      ac_preproc_ok=false
 
3987
for ac_c_preproc_warn_flag in '' yes
 
3988
do
 
3989
  # Use a header file that comes with gcc, so configuring glibc
 
3990
  # with a fresh cross-compiler works.
 
3991
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3992
  # <limits.h> exists even on freestanding compilers.
 
3993
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3994
  # not just through cpp. "Syntax error" is here to catch this case.
 
3995
  cat >conftest.$ac_ext <<_ACEOF
 
3996
/* confdefs.h.  */
 
3997
_ACEOF
 
3998
cat confdefs.h >>conftest.$ac_ext
 
3999
cat >>conftest.$ac_ext <<_ACEOF
 
4000
/* end confdefs.h.  */
 
4001
#ifdef __STDC__
 
4002
# include <limits.h>
 
4003
#else
 
4004
# include <assert.h>
 
4005
#endif
 
4006
                     Syntax error
 
4007
_ACEOF
 
4008
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4009
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4010
  ac_status=$?
 
4011
  grep -v '^ *+' conftest.er1 >conftest.err
 
4012
  rm -f conftest.er1
 
4013
  cat conftest.err >&5
 
4014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4015
  (exit $ac_status); } >/dev/null; then
 
4016
  if test -s conftest.err; then
 
4017
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4018
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4019
  else
 
4020
    ac_cpp_err=
 
4021
  fi
 
4022
else
 
4023
  ac_cpp_err=yes
 
4024
fi
 
4025
if test -z "$ac_cpp_err"; then
 
4026
  :
 
4027
else
 
4028
  echo "$as_me: failed program was:" >&5
 
4029
sed 's/^/| /' conftest.$ac_ext >&5
 
4030
 
 
4031
  # Broken: fails on valid input.
 
4032
continue
 
4033
fi
 
4034
rm -f conftest.err conftest.$ac_ext
 
4035
 
 
4036
  # OK, works on sane cases.  Now check whether non-existent headers
 
4037
  # can be detected and how.
 
4038
  cat >conftest.$ac_ext <<_ACEOF
 
4039
/* confdefs.h.  */
 
4040
_ACEOF
 
4041
cat confdefs.h >>conftest.$ac_ext
 
4042
cat >>conftest.$ac_ext <<_ACEOF
 
4043
/* end confdefs.h.  */
 
4044
#include <ac_nonexistent.h>
 
4045
_ACEOF
 
4046
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4047
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4048
  ac_status=$?
 
4049
  grep -v '^ *+' conftest.er1 >conftest.err
 
4050
  rm -f conftest.er1
 
4051
  cat conftest.err >&5
 
4052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4053
  (exit $ac_status); } >/dev/null; then
 
4054
  if test -s conftest.err; then
 
4055
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4056
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4057
  else
 
4058
    ac_cpp_err=
 
4059
  fi
 
4060
else
 
4061
  ac_cpp_err=yes
 
4062
fi
 
4063
if test -z "$ac_cpp_err"; then
 
4064
  # Broken: success on invalid input.
 
4065
continue
 
4066
else
 
4067
  echo "$as_me: failed program was:" >&5
 
4068
sed 's/^/| /' conftest.$ac_ext >&5
 
4069
 
 
4070
  # Passes both tests.
 
4071
ac_preproc_ok=:
 
4072
break
 
4073
fi
 
4074
rm -f conftest.err conftest.$ac_ext
 
4075
 
 
4076
done
 
4077
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4078
rm -f conftest.err conftest.$ac_ext
 
4079
if $ac_preproc_ok; then
 
4080
  break
 
4081
fi
 
4082
 
 
4083
    done
 
4084
    ac_cv_prog_CPP=$CPP
 
4085
 
 
4086
fi
 
4087
  CPP=$ac_cv_prog_CPP
 
4088
else
 
4089
  ac_cv_prog_CPP=$CPP
 
4090
fi
 
4091
echo "$as_me:$LINENO: result: $CPP" >&5
 
4092
echo "${ECHO_T}$CPP" >&6
 
4093
ac_preproc_ok=false
 
4094
for ac_c_preproc_warn_flag in '' yes
 
4095
do
 
4096
  # Use a header file that comes with gcc, so configuring glibc
 
4097
  # with a fresh cross-compiler works.
 
4098
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4099
  # <limits.h> exists even on freestanding compilers.
 
4100
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4101
  # not just through cpp. "Syntax error" is here to catch this case.
 
4102
  cat >conftest.$ac_ext <<_ACEOF
 
4103
/* confdefs.h.  */
 
4104
_ACEOF
 
4105
cat confdefs.h >>conftest.$ac_ext
 
4106
cat >>conftest.$ac_ext <<_ACEOF
 
4107
/* end confdefs.h.  */
 
4108
#ifdef __STDC__
 
4109
# include <limits.h>
 
4110
#else
 
4111
# include <assert.h>
 
4112
#endif
 
4113
                     Syntax error
 
4114
_ACEOF
 
4115
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4116
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4117
  ac_status=$?
 
4118
  grep -v '^ *+' conftest.er1 >conftest.err
 
4119
  rm -f conftest.er1
 
4120
  cat conftest.err >&5
 
4121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4122
  (exit $ac_status); } >/dev/null; then
 
4123
  if test -s conftest.err; then
 
4124
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4125
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4126
  else
 
4127
    ac_cpp_err=
 
4128
  fi
 
4129
else
 
4130
  ac_cpp_err=yes
 
4131
fi
 
4132
if test -z "$ac_cpp_err"; then
 
4133
  :
 
4134
else
 
4135
  echo "$as_me: failed program was:" >&5
 
4136
sed 's/^/| /' conftest.$ac_ext >&5
 
4137
 
 
4138
  # Broken: fails on valid input.
 
4139
continue
 
4140
fi
 
4141
rm -f conftest.err conftest.$ac_ext
 
4142
 
 
4143
  # OK, works on sane cases.  Now check whether non-existent headers
 
4144
  # can be detected and how.
 
4145
  cat >conftest.$ac_ext <<_ACEOF
 
4146
/* confdefs.h.  */
 
4147
_ACEOF
 
4148
cat confdefs.h >>conftest.$ac_ext
 
4149
cat >>conftest.$ac_ext <<_ACEOF
 
4150
/* end confdefs.h.  */
 
4151
#include <ac_nonexistent.h>
 
4152
_ACEOF
 
4153
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4154
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4155
  ac_status=$?
 
4156
  grep -v '^ *+' conftest.er1 >conftest.err
 
4157
  rm -f conftest.er1
 
4158
  cat conftest.err >&5
 
4159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4160
  (exit $ac_status); } >/dev/null; then
 
4161
  if test -s conftest.err; then
 
4162
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4163
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4164
  else
 
4165
    ac_cpp_err=
 
4166
  fi
 
4167
else
 
4168
  ac_cpp_err=yes
 
4169
fi
 
4170
if test -z "$ac_cpp_err"; then
 
4171
  # Broken: success on invalid input.
 
4172
continue
 
4173
else
 
4174
  echo "$as_me: failed program was:" >&5
 
4175
sed 's/^/| /' conftest.$ac_ext >&5
 
4176
 
 
4177
  # Passes both tests.
 
4178
ac_preproc_ok=:
 
4179
break
 
4180
fi
 
4181
rm -f conftest.err conftest.$ac_ext
 
4182
 
 
4183
done
 
4184
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4185
rm -f conftest.err conftest.$ac_ext
 
4186
if $ac_preproc_ok; then
 
4187
  :
 
4188
else
 
4189
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4190
See \`config.log' for more details." >&5
 
4191
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4192
See \`config.log' for more details." >&2;}
 
4193
   { (exit 1); exit 1; }; }
 
4194
fi
 
4195
 
 
4196
ac_ext=c
 
4197
ac_cpp='$CPP $CPPFLAGS'
 
4198
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4199
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4200
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4201
 
 
4202
 
 
4203
echo "$as_me:$LINENO: checking for egrep" >&5
 
4204
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4205
if test "${ac_cv_prog_egrep+set}" = set; then
 
4206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4207
else
 
4208
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4209
    then ac_cv_prog_egrep='grep -E'
 
4210
    else ac_cv_prog_egrep='egrep'
 
4211
    fi
 
4212
fi
 
4213
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4214
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4215
 EGREP=$ac_cv_prog_egrep
 
4216
 
 
4217
 
 
4218
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4219
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4220
if test "${ac_cv_header_stdc+set}" = set; then
 
4221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4222
else
 
4223
  cat >conftest.$ac_ext <<_ACEOF
 
4224
/* confdefs.h.  */
 
4225
_ACEOF
 
4226
cat confdefs.h >>conftest.$ac_ext
 
4227
cat >>conftest.$ac_ext <<_ACEOF
 
4228
/* end confdefs.h.  */
 
4229
#include <stdlib.h>
 
4230
#include <stdarg.h>
 
4231
#include <string.h>
 
4232
#include <float.h>
 
4233
 
 
4234
int
 
4235
main ()
 
4236
{
 
4237
 
 
4238
  ;
 
4239
  return 0;
 
4240
}
 
4241
_ACEOF
 
4242
rm -f conftest.$ac_objext
 
4243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4244
  (eval $ac_compile) 2>conftest.er1
 
4245
  ac_status=$?
 
4246
  grep -v '^ *+' conftest.er1 >conftest.err
 
4247
  rm -f conftest.er1
 
4248
  cat conftest.err >&5
 
4249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4250
  (exit $ac_status); } &&
 
4251
         { ac_try='test -z "$ac_c_werror_flag"
 
4252
                         || test ! -s conftest.err'
 
4253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4254
  (eval $ac_try) 2>&5
 
4255
  ac_status=$?
 
4256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4257
  (exit $ac_status); }; } &&
 
4258
         { ac_try='test -s conftest.$ac_objext'
 
4259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4260
  (eval $ac_try) 2>&5
 
4261
  ac_status=$?
 
4262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4263
  (exit $ac_status); }; }; then
 
4264
  ac_cv_header_stdc=yes
 
4265
else
 
4266
  echo "$as_me: failed program was:" >&5
 
4267
sed 's/^/| /' conftest.$ac_ext >&5
 
4268
 
 
4269
ac_cv_header_stdc=no
 
4270
fi
 
4271
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4272
 
 
4273
if test $ac_cv_header_stdc = yes; then
 
4274
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4275
  cat >conftest.$ac_ext <<_ACEOF
 
4276
/* confdefs.h.  */
 
4277
_ACEOF
 
4278
cat confdefs.h >>conftest.$ac_ext
 
4279
cat >>conftest.$ac_ext <<_ACEOF
 
4280
/* end confdefs.h.  */
 
4281
#include <string.h>
 
4282
 
 
4283
_ACEOF
 
4284
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4285
  $EGREP "memchr" >/dev/null 2>&1; then
 
4286
  :
 
4287
else
 
4288
  ac_cv_header_stdc=no
 
4289
fi
 
4290
rm -f conftest*
 
4291
 
 
4292
fi
 
4293
 
 
4294
if test $ac_cv_header_stdc = yes; then
 
4295
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4296
  cat >conftest.$ac_ext <<_ACEOF
 
4297
/* confdefs.h.  */
 
4298
_ACEOF
 
4299
cat confdefs.h >>conftest.$ac_ext
 
4300
cat >>conftest.$ac_ext <<_ACEOF
 
4301
/* end confdefs.h.  */
 
4302
#include <stdlib.h>
 
4303
 
 
4304
_ACEOF
 
4305
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4306
  $EGREP "free" >/dev/null 2>&1; then
 
4307
  :
 
4308
else
 
4309
  ac_cv_header_stdc=no
 
4310
fi
 
4311
rm -f conftest*
 
4312
 
 
4313
fi
 
4314
 
 
4315
if test $ac_cv_header_stdc = yes; then
 
4316
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4317
  if test "$cross_compiling" = yes; then
 
4318
  :
 
4319
else
 
4320
  cat >conftest.$ac_ext <<_ACEOF
 
4321
/* confdefs.h.  */
 
4322
_ACEOF
 
4323
cat confdefs.h >>conftest.$ac_ext
 
4324
cat >>conftest.$ac_ext <<_ACEOF
 
4325
/* end confdefs.h.  */
 
4326
#include <ctype.h>
 
4327
#if ((' ' & 0x0FF) == 0x020)
 
4328
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4329
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4330
#else
 
4331
# define ISLOWER(c) \
 
4332
                   (('a' <= (c) && (c) <= 'i') \
 
4333
                     || ('j' <= (c) && (c) <= 'r') \
 
4334
                     || ('s' <= (c) && (c) <= 'z'))
 
4335
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4336
#endif
 
4337
 
 
4338
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4339
int
 
4340
main ()
 
4341
{
 
4342
  int i;
 
4343
  for (i = 0; i < 256; i++)
 
4344
    if (XOR (islower (i), ISLOWER (i))
 
4345
        || toupper (i) != TOUPPER (i))
 
4346
      exit(2);
 
4347
  exit (0);
 
4348
}
 
4349
_ACEOF
 
4350
rm -f conftest$ac_exeext
 
4351
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4352
  (eval $ac_link) 2>&5
 
4353
  ac_status=$?
 
4354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4355
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4356
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4357
  (eval $ac_try) 2>&5
 
4358
  ac_status=$?
 
4359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4360
  (exit $ac_status); }; }; then
 
4361
  :
 
4362
else
 
4363
  echo "$as_me: program exited with status $ac_status" >&5
 
4364
echo "$as_me: failed program was:" >&5
 
4365
sed 's/^/| /' conftest.$ac_ext >&5
 
4366
 
 
4367
( exit $ac_status )
 
4368
ac_cv_header_stdc=no
 
4369
fi
 
4370
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4371
fi
 
4372
fi
 
4373
fi
 
4374
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4375
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4376
if test $ac_cv_header_stdc = yes; then
 
4377
 
 
4378
cat >>confdefs.h <<\_ACEOF
 
4379
#define STDC_HEADERS 1
 
4380
_ACEOF
 
4381
 
 
4382
fi
 
4383
 
 
4384
 
 
4385
 
 
4386
# Check whether --enable-shared or --disable-shared was given.
 
4387
if test "${enable_shared+set}" = set; then
 
4388
  enableval="$enable_shared"
 
4389
  p=${PACKAGE-default}
 
4390
    case $enableval in
 
4391
    yes) enable_shared=yes ;;
 
4392
    no) enable_shared=no ;;
 
4393
    *)
 
4394
      enable_shared=no
 
4395
      # Look at the argument we got.  We use all the common list separators.
 
4396
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4397
      for pkg in $enableval; do
 
4398
        IFS="$lt_save_ifs"
 
4399
        if test "X$pkg" = "X$p"; then
 
4400
          enable_shared=yes
 
4401
        fi
 
4402
      done
 
4403
      IFS="$lt_save_ifs"
 
4404
      ;;
 
4405
    esac
 
4406
else
 
4407
  enable_shared=yes
 
4408
fi;
 
4409
 
 
4410
# Check whether --enable-static or --disable-static was given.
 
4411
if test "${enable_static+set}" = set; then
 
4412
  enableval="$enable_static"
 
4413
  p=${PACKAGE-default}
 
4414
    case $enableval in
 
4415
    yes) enable_static=yes ;;
 
4416
    no) enable_static=no ;;
 
4417
    *)
 
4418
     enable_static=no
 
4419
      # Look at the argument we got.  We use all the common list separators.
 
4420
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4421
      for pkg in $enableval; do
 
4422
        IFS="$lt_save_ifs"
 
4423
        if test "X$pkg" = "X$p"; then
 
4424
          enable_static=yes
 
4425
        fi
 
4426
      done
 
4427
      IFS="$lt_save_ifs"
 
4428
      ;;
 
4429
    esac
 
4430
else
 
4431
  enable_static=yes
 
4432
fi;
 
4433
 
 
4434
# Check whether --enable-fast-install or --disable-fast-install was given.
 
4435
if test "${enable_fast_install+set}" = set; then
 
4436
  enableval="$enable_fast_install"
 
4437
  p=${PACKAGE-default}
 
4438
    case $enableval in
 
4439
    yes) enable_fast_install=yes ;;
 
4440
    no) enable_fast_install=no ;;
 
4441
    *)
 
4442
      enable_fast_install=no
 
4443
      # Look at the argument we got.  We use all the common list separators.
 
4444
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4445
      for pkg in $enableval; do
 
4446
        IFS="$lt_save_ifs"
 
4447
        if test "X$pkg" = "X$p"; then
 
4448
          enable_fast_install=yes
 
4449
        fi
 
4450
      done
 
4451
      IFS="$lt_save_ifs"
 
4452
      ;;
 
4453
    esac
 
4454
else
 
4455
  enable_fast_install=yes
 
4456
fi;
 
4457
 
 
4458
# Make sure we can run config.sub.
 
4459
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
4460
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
4461
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
4462
   { (exit 1); exit 1; }; }
 
4463
 
 
4464
echo "$as_me:$LINENO: checking build system type" >&5
 
4465
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
4466
if test "${ac_cv_build+set}" = set; then
 
4467
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4468
else
 
4469
  ac_cv_build_alias=$build_alias
 
4470
test -z "$ac_cv_build_alias" &&
 
4471
  ac_cv_build_alias=`$ac_config_guess`
 
4472
test -z "$ac_cv_build_alias" &&
 
4473
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
4474
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
4475
   { (exit 1); exit 1; }; }
 
4476
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
4477
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
4478
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
4479
   { (exit 1); exit 1; }; }
 
4480
 
 
4481
fi
 
4482
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
4483
echo "${ECHO_T}$ac_cv_build" >&6
 
4484
build=$ac_cv_build
 
4485
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4486
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4487
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4488
 
 
4489
 
 
4490
echo "$as_me:$LINENO: checking host system type" >&5
 
4491
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
4492
if test "${ac_cv_host+set}" = set; then
 
4493
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4494
else
 
4495
  ac_cv_host_alias=$host_alias
 
4496
test -z "$ac_cv_host_alias" &&
 
4497
  ac_cv_host_alias=$ac_cv_build_alias
 
4498
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
4499
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
4500
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
4501
   { (exit 1); exit 1; }; }
 
4502
 
 
4503
fi
 
4504
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
4505
echo "${ECHO_T}$ac_cv_host" >&6
 
4506
host=$ac_cv_host
 
4507
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4508
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4509
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4510
 
 
4511
 
 
4512
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4513
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
4514
if test "${lt_cv_path_SED+set}" = set; then
 
4515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4516
else
 
4517
  # Loop through the user's path and test for sed and gsed.
 
4518
# Then use that list of sed's as ones to test for truncation.
 
4519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4520
for as_dir in $PATH
 
4521
do
 
4522
  IFS=$as_save_IFS
 
4523
  test -z "$as_dir" && as_dir=.
 
4524
  for lt_ac_prog in sed gsed; do
 
4525
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4526
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
4527
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4528
      fi
 
4529
    done
 
4530
  done
 
4531
done
 
4532
lt_ac_max=0
 
4533
lt_ac_count=0
 
4534
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4535
# along with /bin/sed that truncates output.
 
4536
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4537
  test ! -f $lt_ac_sed && break
 
4538
  cat /dev/null > conftest.in
 
4539
  lt_ac_count=0
 
4540
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4541
  # Check for GNU sed and select it if it is found.
 
4542
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4543
    lt_cv_path_SED=$lt_ac_sed
 
4544
    break
 
4545
  fi
 
4546
  while true; do
 
4547
    cat conftest.in conftest.in >conftest.tmp
 
4548
    mv conftest.tmp conftest.in
 
4549
    cp conftest.in conftest.nl
 
4550
    echo >>conftest.nl
 
4551
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4552
    cmp -s conftest.out conftest.nl || break
 
4553
    # 10000 chars as input seems more than enough
 
4554
    test $lt_ac_count -gt 10 && break
 
4555
    lt_ac_count=`expr $lt_ac_count + 1`
 
4556
    if test $lt_ac_count -gt $lt_ac_max; then
 
4557
      lt_ac_max=$lt_ac_count
 
4558
      lt_cv_path_SED=$lt_ac_sed
 
4559
    fi
 
4560
  done
 
4561
done
 
4562
 
 
4563
fi
 
4564
 
 
4565
SED=$lt_cv_path_SED
 
4566
echo "$as_me:$LINENO: result: $SED" >&5
 
4567
echo "${ECHO_T}$SED" >&6
 
4568
 
 
4569
 
 
4570
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
4571
if test "${with_gnu_ld+set}" = set; then
 
4572
  withval="$with_gnu_ld"
 
4573
  test "$withval" = no || with_gnu_ld=yes
 
4574
else
 
4575
  with_gnu_ld=no
 
4576
fi;
 
4577
ac_prog=ld
 
4578
if test "$GCC" = yes; then
 
4579
  # Check if gcc -print-prog-name=ld gives a path.
 
4580
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4581
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
4582
  case $host in
 
4583
  *-*-mingw*)
 
4584
    # gcc leaves a trailing carriage return which upsets mingw
 
4585
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4586
  *)
 
4587
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4588
  esac
 
4589
  case $ac_prog in
 
4590
    # Accept absolute paths.
 
4591
    [\\/]* | ?:[\\/]*)
 
4592
      re_direlt='/[^/][^/]*/\.\./'
 
4593
      # Canonicalize the pathname of ld
 
4594
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4595
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4596
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4597
      done
 
4598
      test -z "$LD" && LD="$ac_prog"
 
4599
      ;;
 
4600
  "")
 
4601
    # If it fails, then pretend we aren't using GCC.
 
4602
    ac_prog=ld
 
4603
    ;;
 
4604
  *)
 
4605
    # If it is relative, then search for the first ld in PATH.
 
4606
    with_gnu_ld=unknown
 
4607
    ;;
 
4608
  esac
 
4609
elif test "$with_gnu_ld" = yes; then
 
4610
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4611
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4612
else
 
4613
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4614
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4615
fi
 
4616
if test "${lt_cv_path_LD+set}" = set; then
 
4617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4618
else
 
4619
  if test -z "$LD"; then
 
4620
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4621
  for ac_dir in $PATH; do
 
4622
    IFS="$lt_save_ifs"
 
4623
    test -z "$ac_dir" && ac_dir=.
 
4624
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4625
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4626
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4627
      # but apparently some GNU ld's only accept -v.
 
4628
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4629
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4630
      *GNU* | *'with BFD'*)
 
4631
        test "$with_gnu_ld" != no && break
 
4632
        ;;
 
4633
      *)
 
4634
        test "$with_gnu_ld" != yes && break
 
4635
        ;;
 
4636
      esac
 
4637
    fi
 
4638
  done
 
4639
  IFS="$lt_save_ifs"
 
4640
else
 
4641
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4642
fi
 
4643
fi
 
4644
 
 
4645
LD="$lt_cv_path_LD"
 
4646
if test -n "$LD"; then
 
4647
  echo "$as_me:$LINENO: result: $LD" >&5
 
4648
echo "${ECHO_T}$LD" >&6
 
4649
else
 
4650
  echo "$as_me:$LINENO: result: no" >&5
 
4651
echo "${ECHO_T}no" >&6
 
4652
fi
 
4653
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4654
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4655
   { (exit 1); exit 1; }; }
 
4656
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4657
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4658
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4660
else
 
4661
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4662
case `$LD -v 2>&1 </dev/null` in
 
4663
*GNU* | *'with BFD'*)
 
4664
  lt_cv_prog_gnu_ld=yes
 
4665
  ;;
 
4666
*)
 
4667
  lt_cv_prog_gnu_ld=no
 
4668
  ;;
 
4669
esac
 
4670
fi
 
4671
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4672
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4673
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4674
 
 
4675
 
 
4676
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4677
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4678
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4680
else
 
4681
  lt_cv_ld_reload_flag='-r'
 
4682
fi
 
4683
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4684
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4685
reload_flag=$lt_cv_ld_reload_flag
 
4686
case $reload_flag in
 
4687
"" | " "*) ;;
 
4688
*) reload_flag=" $reload_flag" ;;
 
4689
esac
 
4690
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4691
case $host_os in
 
4692
  darwin*)
 
4693
    if test "$GCC" = yes; then
 
4694
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
4695
    else
 
4696
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4697
    fi
 
4698
    ;;
 
4699
esac
 
4700
 
 
4701
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4702
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4703
if test "${lt_cv_path_NM+set}" = set; then
 
4704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4705
else
 
4706
  if test -n "$NM"; then
 
4707
  # Let the user override the test.
 
4708
  lt_cv_path_NM="$NM"
 
4709
else
 
4710
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4711
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4712
    IFS="$lt_save_ifs"
 
4713
    test -z "$ac_dir" && ac_dir=.
 
4714
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
4715
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4716
      # Check to see if the nm accepts a BSD-compat flag.
 
4717
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4718
      #   nm: unknown option "B" ignored
 
4719
      # Tru64's nm complains that /dev/null is an invalid object file
 
4720
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4721
      */dev/null* | *'Invalid file or object type'*)
 
4722
        lt_cv_path_NM="$tmp_nm -B"
 
4723
        break
 
4724
        ;;
 
4725
      *)
 
4726
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4727
        */dev/null*)
 
4728
          lt_cv_path_NM="$tmp_nm -p"
 
4729
          break
 
4730
          ;;
 
4731
        *)
 
4732
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4733
          continue # so that we can try to find one that supports BSD flags
 
4734
          ;;
 
4735
        esac
 
4736
      esac
 
4737
    fi
 
4738
  done
 
4739
  IFS="$lt_save_ifs"
 
4740
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4741
fi
 
4742
fi
 
4743
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4744
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
4745
NM="$lt_cv_path_NM"
 
4746
 
 
4747
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4748
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4749
LN_S=$as_ln_s
 
4750
if test "$LN_S" = "ln -s"; then
 
4751
  echo "$as_me:$LINENO: result: yes" >&5
 
4752
echo "${ECHO_T}yes" >&6
 
4753
else
 
4754
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4755
echo "${ECHO_T}no, using $LN_S" >&6
 
4756
fi
 
4757
 
 
4758
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4759
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4760
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4762
else
 
4763
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4764
lt_cv_file_magic_test_file=
 
4765
lt_cv_deplibs_check_method='unknown'
 
4766
# Need to set the preceding variable on all platforms that support
 
4767
# interlibrary dependencies.
 
4768
# 'none' -- dependencies not supported.
 
4769
# `unknown' -- same as none, but documents that we really don't know.
 
4770
# 'pass_all' -- all dependencies passed with no checks.
 
4771
# 'test_compile' -- check by making test program.
 
4772
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4773
# which responds to the $file_magic_cmd with a given extended regex.
 
4774
# If you have `file' or equivalent on your system and you're not sure
 
4775
# whether `pass_all' will *always* work, you probably want this one.
 
4776
 
 
4777
case $host_os in
 
4778
aix4* | aix5*)
 
4779
  lt_cv_deplibs_check_method=pass_all
 
4780
  ;;
 
4781
 
 
4782
beos*)
 
4783
  lt_cv_deplibs_check_method=pass_all
 
4784
  ;;
 
4785
 
 
4786
bsdi[45]*)
 
4787
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4788
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4789
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4790
  ;;
 
4791
 
 
4792
cygwin*)
 
4793
  # func_win32_libid is a shell function defined in ltmain.sh
 
4794
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4795
  lt_cv_file_magic_cmd='func_win32_libid'
 
4796
  ;;
 
4797
 
 
4798
mingw* | pw32*)
 
4799
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4800
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4801
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4802
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4803
  ;;
 
4804
 
 
4805
darwin* | rhapsody*)
 
4806
  lt_cv_deplibs_check_method=pass_all
 
4807
  ;;
 
4808
 
 
4809
freebsd* | kfreebsd*-gnu)
 
4810
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4811
    case $host_cpu in
 
4812
    i*86 )
 
4813
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4814
      # Let's accept both of them until this is cleared up.
 
4815
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4816
      lt_cv_file_magic_cmd=/usr/bin/file
 
4817
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4818
      ;;
 
4819
    esac
 
4820
  else
 
4821
    lt_cv_deplibs_check_method=pass_all
 
4822
  fi
 
4823
  ;;
 
4824
 
 
4825
gnu*)
 
4826
  lt_cv_deplibs_check_method=pass_all
 
4827
  ;;
 
4828
 
 
4829
hpux10.20* | hpux11*)
 
4830
  lt_cv_file_magic_cmd=/usr/bin/file
 
4831
  case "$host_cpu" in
 
4832
  ia64*)
 
4833
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4834
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4835
    ;;
 
4836
  hppa*64*)
 
4837
    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]'
 
4838
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4839
    ;;
 
4840
  *)
 
4841
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4842
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4843
    ;;
 
4844
  esac
 
4845
  ;;
 
4846
 
 
4847
irix5* | irix6* | nonstopux*)
 
4848
  case $LD in
 
4849
  *-32|*"-32 ") libmagic=32-bit;;
 
4850
  *-n32|*"-n32 ") libmagic=N32;;
 
4851
  *-64|*"-64 ") libmagic=64-bit;;
 
4852
  *) libmagic=never-match;;
 
4853
  esac
 
4854
  lt_cv_deplibs_check_method=pass_all
 
4855
  ;;
 
4856
 
 
4857
# This must be Linux ELF.
 
4858
linux*)
 
4859
  case $host_cpu in
 
4860
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
 
4861
    lt_cv_deplibs_check_method=pass_all ;;
 
4862
  *)
 
4863
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
4864
    # this will be overridden with pass_all, but let us keep it just in case
 
4865
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
4866
  esac
 
4867
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
4868
  lt_cv_deplibs_check_method=pass_all
 
4869
  ;;
 
4870
 
 
4871
netbsd*)
 
4872
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4873
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4874
  else
 
4875
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4876
  fi
 
4877
  ;;
 
4878
 
 
4879
newos6*)
 
4880
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4881
  lt_cv_file_magic_cmd=/usr/bin/file
 
4882
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4883
  ;;
 
4884
 
 
4885
nto-qnx*)
 
4886
  lt_cv_deplibs_check_method=unknown
 
4887
  ;;
 
4888
 
 
4889
openbsd*)
 
4890
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4891
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4892
  else
 
4893
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4894
  fi
 
4895
  ;;
 
4896
 
 
4897
osf3* | osf4* | osf5*)
 
4898
  lt_cv_deplibs_check_method=pass_all
 
4899
  ;;
 
4900
 
 
4901
sco3.2v5*)
 
4902
  lt_cv_deplibs_check_method=pass_all
 
4903
  ;;
 
4904
 
 
4905
solaris*)
 
4906
  lt_cv_deplibs_check_method=pass_all
 
4907
  ;;
 
4908
 
 
4909
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4910
  case $host_vendor in
 
4911
  motorola)
 
4912
    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]'
 
4913
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4914
    ;;
 
4915
  ncr)
 
4916
    lt_cv_deplibs_check_method=pass_all
 
4917
    ;;
 
4918
  sequent)
 
4919
    lt_cv_file_magic_cmd='/bin/file'
 
4920
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4921
    ;;
 
4922
  sni)
 
4923
    lt_cv_file_magic_cmd='/bin/file'
 
4924
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4925
    lt_cv_file_magic_test_file=/lib/libc.so
 
4926
    ;;
 
4927
  siemens)
 
4928
    lt_cv_deplibs_check_method=pass_all
 
4929
    ;;
 
4930
  esac
 
4931
  ;;
 
4932
 
 
4933
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
4934
  lt_cv_deplibs_check_method=pass_all
 
4935
  ;;
 
4936
esac
 
4937
 
 
4938
fi
 
4939
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4940
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4941
file_magic_cmd=$lt_cv_file_magic_cmd
 
4942
deplibs_check_method=$lt_cv_deplibs_check_method
 
4943
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4944
 
 
4945
 
 
4946
 
 
4947
 
 
4948
# If no C compiler was specified, use CC.
 
4949
LTCC=${LTCC-"$CC"}
 
4950
 
 
4951
# Allow CC to be a program name with arguments.
 
4952
compiler=$CC
 
4953
 
 
4954
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4955
if test "${enable_libtool_lock+set}" = set; then
 
4956
  enableval="$enable_libtool_lock"
 
4957
 
 
4958
fi;
 
4959
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4960
 
 
4961
# Some flags need to be propagated to the compiler or linker for good
 
4962
# libtool support.
 
4963
case $host in
 
4964
ia64-*-hpux*)
 
4965
  # Find out which ABI we are using.
 
4966
  echo 'int i;' > conftest.$ac_ext
 
4967
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4968
  (eval $ac_compile) 2>&5
 
4969
  ac_status=$?
 
4970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4971
  (exit $ac_status); }; then
 
4972
    case `/usr/bin/file conftest.$ac_objext` in
 
4973
    *ELF-32*)
 
4974
      HPUX_IA64_MODE="32"
 
4975
      ;;
 
4976
    *ELF-64*)
 
4977
      HPUX_IA64_MODE="64"
 
4978
      ;;
 
4979
    esac
 
4980
  fi
 
4981
  rm -rf conftest*
 
4982
  ;;
 
4983
*-*-irix6*)
 
4984
  # Find out which ABI we are using.
 
4985
  echo '#line 4985 "configure"' > conftest.$ac_ext
 
4986
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4987
  (eval $ac_compile) 2>&5
 
4988
  ac_status=$?
 
4989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4990
  (exit $ac_status); }; then
 
4991
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4992
    case `/usr/bin/file conftest.$ac_objext` in
 
4993
    *32-bit*)
 
4994
      LD="${LD-ld} -melf32bsmip"
 
4995
      ;;
 
4996
    *N32*)
 
4997
      LD="${LD-ld} -melf32bmipn32"
 
4998
      ;;
 
4999
    *64-bit*)
 
5000
      LD="${LD-ld} -melf64bmip"
 
5001
      ;;
 
5002
    esac
 
5003
   else
 
5004
    case `/usr/bin/file conftest.$ac_objext` in
 
5005
    *32-bit*)
 
5006
      LD="${LD-ld} -32"
 
5007
      ;;
 
5008
    *N32*)
 
5009
      LD="${LD-ld} -n32"
 
5010
      ;;
 
5011
    *64-bit*)
 
5012
      LD="${LD-ld} -64"
 
5013
      ;;
 
5014
    esac
 
5015
   fi
 
5016
  fi
 
5017
  rm -rf conftest*
 
5018
  ;;
 
5019
 
 
5020
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5021
  # Find out which ABI we are using.
 
5022
  echo 'int i;' > conftest.$ac_ext
 
5023
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5024
  (eval $ac_compile) 2>&5
 
5025
  ac_status=$?
 
5026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5027
  (exit $ac_status); }; then
 
5028
    case "`/usr/bin/file conftest.o`" in
 
5029
    *32-bit*)
 
5030
      case $host in
 
5031
        x86_64-*linux*)
 
5032
          LD="${LD-ld} -m elf_i386"
 
5033
          ;;
 
5034
        ppc64-*linux*|powerpc64-*linux*)
 
5035
          LD="${LD-ld} -m elf32ppclinux"
 
5036
          ;;
 
5037
        s390x-*linux*)
 
5038
          LD="${LD-ld} -m elf_s390"
 
5039
          ;;
 
5040
        sparc64-*linux*)
 
5041
          LD="${LD-ld} -m elf32_sparc"
 
5042
          ;;
 
5043
      esac
 
5044
      ;;
 
5045
    *64-bit*)
 
5046
      case $host in
 
5047
        x86_64-*linux*)
 
5048
          LD="${LD-ld} -m elf_x86_64"
 
5049
          ;;
 
5050
        ppc*-*linux*|powerpc*-*linux*)
 
5051
          LD="${LD-ld} -m elf64ppc"
 
5052
          ;;
 
5053
        s390*-*linux*)
 
5054
          LD="${LD-ld} -m elf64_s390"
 
5055
          ;;
 
5056
        sparc*-*linux*)
 
5057
          LD="${LD-ld} -m elf64_sparc"
 
5058
          ;;
 
5059
      esac
 
5060
      ;;
 
5061
    esac
 
5062
  fi
 
5063
  rm -rf conftest*
 
5064
  ;;
 
5065
 
 
5066
*-*-sco3.2v5*)
 
5067
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5068
  SAVE_CFLAGS="$CFLAGS"
 
5069
  CFLAGS="$CFLAGS -belf"
 
5070
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5071
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5072
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5074
else
 
5075
  ac_ext=c
 
5076
ac_cpp='$CPP $CPPFLAGS'
 
5077
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5078
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5079
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5080
 
 
5081
     cat >conftest.$ac_ext <<_ACEOF
 
5082
/* confdefs.h.  */
 
5083
_ACEOF
 
5084
cat confdefs.h >>conftest.$ac_ext
 
5085
cat >>conftest.$ac_ext <<_ACEOF
 
5086
/* end confdefs.h.  */
 
5087
 
 
5088
int
 
5089
main ()
 
5090
{
 
5091
 
 
5092
  ;
 
5093
  return 0;
 
5094
}
 
5095
_ACEOF
 
5096
rm -f conftest.$ac_objext conftest$ac_exeext
 
5097
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5098
  (eval $ac_link) 2>conftest.er1
 
5099
  ac_status=$?
 
5100
  grep -v '^ *+' conftest.er1 >conftest.err
 
5101
  rm -f conftest.er1
 
5102
  cat conftest.err >&5
 
5103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5104
  (exit $ac_status); } &&
 
5105
         { ac_try='test -z "$ac_c_werror_flag"
 
5106
                         || test ! -s conftest.err'
 
5107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5108
  (eval $ac_try) 2>&5
 
5109
  ac_status=$?
 
5110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5111
  (exit $ac_status); }; } &&
 
5112
         { ac_try='test -s conftest$ac_exeext'
 
5113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5114
  (eval $ac_try) 2>&5
 
5115
  ac_status=$?
 
5116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5117
  (exit $ac_status); }; }; then
 
5118
  lt_cv_cc_needs_belf=yes
 
5119
else
 
5120
  echo "$as_me: failed program was:" >&5
 
5121
sed 's/^/| /' conftest.$ac_ext >&5
 
5122
 
 
5123
lt_cv_cc_needs_belf=no
 
5124
fi
 
5125
rm -f conftest.err conftest.$ac_objext \
 
5126
      conftest$ac_exeext conftest.$ac_ext
 
5127
     ac_ext=c
 
5128
ac_cpp='$CPP $CPPFLAGS'
 
5129
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5130
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5131
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5132
 
 
5133
fi
 
5134
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5135
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5136
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5137
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5138
    CFLAGS="$SAVE_CFLAGS"
 
5139
  fi
 
5140
  ;;
 
5141
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
5142
  if test -n "$ac_tool_prefix"; then
 
5143
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5144
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5145
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5147
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
5148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5149
else
 
5150
  if test -n "$DLLTOOL"; then
 
5151
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5152
else
 
5153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5154
for as_dir in $PATH
 
5155
do
 
5156
  IFS=$as_save_IFS
 
5157
  test -z "$as_dir" && as_dir=.
 
5158
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5159
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5160
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5161
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5162
    break 2
 
5163
  fi
 
5164
done
 
5165
done
 
5166
 
 
5167
fi
 
5168
fi
 
5169
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5170
if test -n "$DLLTOOL"; then
 
5171
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
5172
echo "${ECHO_T}$DLLTOOL" >&6
 
5173
else
 
5174
  echo "$as_me:$LINENO: result: no" >&5
 
5175
echo "${ECHO_T}no" >&6
 
5176
fi
 
5177
 
 
5178
fi
 
5179
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5180
  ac_ct_DLLTOOL=$DLLTOOL
 
5181
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5182
set dummy dlltool; ac_word=$2
 
5183
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5184
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5185
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
5186
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5187
else
 
5188
  if test -n "$ac_ct_DLLTOOL"; then
 
5189
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5190
else
 
5191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5192
for as_dir in $PATH
 
5193
do
 
5194
  IFS=$as_save_IFS
 
5195
  test -z "$as_dir" && as_dir=.
 
5196
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5197
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5198
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5199
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5200
    break 2
 
5201
  fi
 
5202
done
 
5203
done
 
5204
 
 
5205
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
 
5206
fi
 
5207
fi
 
5208
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5209
if test -n "$ac_ct_DLLTOOL"; then
 
5210
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
5211
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
5212
else
 
5213
  echo "$as_me:$LINENO: result: no" >&5
 
5214
echo "${ECHO_T}no" >&6
 
5215
fi
 
5216
 
 
5217
  DLLTOOL=$ac_ct_DLLTOOL
 
5218
else
 
5219
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5220
fi
 
5221
 
 
5222
  if test -n "$ac_tool_prefix"; then
 
5223
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
5224
set dummy ${ac_tool_prefix}as; ac_word=$2
 
5225
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5226
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5227
if test "${ac_cv_prog_AS+set}" = set; then
 
5228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5229
else
 
5230
  if test -n "$AS"; then
 
5231
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
5232
else
 
5233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5234
for as_dir in $PATH
 
5235
do
 
5236
  IFS=$as_save_IFS
 
5237
  test -z "$as_dir" && as_dir=.
 
5238
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5239
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5240
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
5241
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5242
    break 2
 
5243
  fi
 
5244
done
 
5245
done
 
5246
 
 
5247
fi
 
5248
fi
 
5249
AS=$ac_cv_prog_AS
 
5250
if test -n "$AS"; then
 
5251
  echo "$as_me:$LINENO: result: $AS" >&5
 
5252
echo "${ECHO_T}$AS" >&6
 
5253
else
 
5254
  echo "$as_me:$LINENO: result: no" >&5
 
5255
echo "${ECHO_T}no" >&6
 
5256
fi
 
5257
 
 
5258
fi
 
5259
if test -z "$ac_cv_prog_AS"; then
 
5260
  ac_ct_AS=$AS
 
5261
  # Extract the first word of "as", so it can be a program name with args.
 
5262
set dummy as; ac_word=$2
 
5263
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5264
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5265
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
5266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5267
else
 
5268
  if test -n "$ac_ct_AS"; then
 
5269
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
5270
else
 
5271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5272
for as_dir in $PATH
 
5273
do
 
5274
  IFS=$as_save_IFS
 
5275
  test -z "$as_dir" && as_dir=.
 
5276
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5277
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5278
    ac_cv_prog_ac_ct_AS="as"
 
5279
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5280
    break 2
 
5281
  fi
 
5282
done
 
5283
done
 
5284
 
 
5285
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
 
5286
fi
 
5287
fi
 
5288
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
5289
if test -n "$ac_ct_AS"; then
 
5290
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
5291
echo "${ECHO_T}$ac_ct_AS" >&6
 
5292
else
 
5293
  echo "$as_me:$LINENO: result: no" >&5
 
5294
echo "${ECHO_T}no" >&6
 
5295
fi
 
5296
 
 
5297
  AS=$ac_ct_AS
 
5298
else
 
5299
  AS="$ac_cv_prog_AS"
 
5300
fi
 
5301
 
 
5302
  if test -n "$ac_tool_prefix"; then
 
5303
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5304
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5305
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5307
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
5308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5309
else
 
5310
  if test -n "$OBJDUMP"; then
 
5311
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5312
else
 
5313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5314
for as_dir in $PATH
 
5315
do
 
5316
  IFS=$as_save_IFS
 
5317
  test -z "$as_dir" && as_dir=.
 
5318
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5319
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5320
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5321
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5322
    break 2
 
5323
  fi
 
5324
done
 
5325
done
 
5326
 
 
5327
fi
 
5328
fi
 
5329
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5330
if test -n "$OBJDUMP"; then
 
5331
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
5332
echo "${ECHO_T}$OBJDUMP" >&6
 
5333
else
 
5334
  echo "$as_me:$LINENO: result: no" >&5
 
5335
echo "${ECHO_T}no" >&6
 
5336
fi
 
5337
 
 
5338
fi
 
5339
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5340
  ac_ct_OBJDUMP=$OBJDUMP
 
5341
  # Extract the first word of "objdump", so it can be a program name with args.
 
5342
set dummy objdump; ac_word=$2
 
5343
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5345
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
5346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5347
else
 
5348
  if test -n "$ac_ct_OBJDUMP"; then
 
5349
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5350
else
 
5351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5352
for as_dir in $PATH
 
5353
do
 
5354
  IFS=$as_save_IFS
 
5355
  test -z "$as_dir" && as_dir=.
 
5356
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5357
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5358
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5359
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5360
    break 2
 
5361
  fi
 
5362
done
 
5363
done
 
5364
 
 
5365
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
 
5366
fi
 
5367
fi
 
5368
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5369
if test -n "$ac_ct_OBJDUMP"; then
 
5370
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
5371
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
 
5372
else
 
5373
  echo "$as_me:$LINENO: result: no" >&5
 
5374
echo "${ECHO_T}no" >&6
 
5375
fi
 
5376
 
 
5377
  OBJDUMP=$ac_ct_OBJDUMP
 
5378
else
 
5379
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5380
fi
 
5381
 
 
5382
  ;;
 
5383
 
 
5384
esac
 
5385
 
 
5386
need_locks="$enable_libtool_lock"
 
5387
 
 
5388
 
 
5389
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5390
 
 
5391
 
 
5392
 
 
5393
 
 
5394
 
 
5395
 
 
5396
 
 
5397
 
 
5398
 
 
5399
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5400
                  inttypes.h stdint.h unistd.h
 
5401
do
 
5402
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5403
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5404
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5405
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5407
else
 
5408
  cat >conftest.$ac_ext <<_ACEOF
 
5409
/* confdefs.h.  */
 
5410
_ACEOF
 
5411
cat confdefs.h >>conftest.$ac_ext
 
5412
cat >>conftest.$ac_ext <<_ACEOF
 
5413
/* end confdefs.h.  */
 
5414
$ac_includes_default
 
5415
 
 
5416
#include <$ac_header>
 
5417
_ACEOF
 
5418
rm -f conftest.$ac_objext
 
5419
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5420
  (eval $ac_compile) 2>conftest.er1
 
5421
  ac_status=$?
 
5422
  grep -v '^ *+' conftest.er1 >conftest.err
 
5423
  rm -f conftest.er1
 
5424
  cat conftest.err >&5
 
5425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5426
  (exit $ac_status); } &&
 
5427
         { ac_try='test -z "$ac_c_werror_flag"
 
5428
                         || test ! -s conftest.err'
 
5429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5430
  (eval $ac_try) 2>&5
 
5431
  ac_status=$?
 
5432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5433
  (exit $ac_status); }; } &&
 
5434
         { ac_try='test -s conftest.$ac_objext'
 
5435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5436
  (eval $ac_try) 2>&5
 
5437
  ac_status=$?
 
5438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5439
  (exit $ac_status); }; }; then
 
5440
  eval "$as_ac_Header=yes"
 
5441
else
 
5442
  echo "$as_me: failed program was:" >&5
 
5443
sed 's/^/| /' conftest.$ac_ext >&5
 
5444
 
 
5445
eval "$as_ac_Header=no"
 
5446
fi
 
5447
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5448
fi
 
5449
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5450
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5451
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5452
  cat >>confdefs.h <<_ACEOF
 
5453
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5454
_ACEOF
 
5455
 
 
5456
fi
 
5457
 
 
5458
done
 
5459
 
 
5460
 
 
5461
 
 
5462
for ac_header in dlfcn.h
 
5463
do
 
5464
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5465
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5466
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5467
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5468
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5470
fi
 
5471
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5472
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5473
else
 
5474
  # Is the header compilable?
 
5475
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5476
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5477
cat >conftest.$ac_ext <<_ACEOF
 
5478
/* confdefs.h.  */
 
5479
_ACEOF
 
5480
cat confdefs.h >>conftest.$ac_ext
 
5481
cat >>conftest.$ac_ext <<_ACEOF
 
5482
/* end confdefs.h.  */
 
5483
$ac_includes_default
 
5484
#include <$ac_header>
 
5485
_ACEOF
 
5486
rm -f conftest.$ac_objext
 
5487
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5488
  (eval $ac_compile) 2>conftest.er1
 
5489
  ac_status=$?
 
5490
  grep -v '^ *+' conftest.er1 >conftest.err
 
5491
  rm -f conftest.er1
 
5492
  cat conftest.err >&5
 
5493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5494
  (exit $ac_status); } &&
 
5495
         { ac_try='test -z "$ac_c_werror_flag"
 
5496
                         || test ! -s conftest.err'
 
5497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5498
  (eval $ac_try) 2>&5
 
5499
  ac_status=$?
 
5500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5501
  (exit $ac_status); }; } &&
 
5502
         { ac_try='test -s conftest.$ac_objext'
 
5503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5504
  (eval $ac_try) 2>&5
 
5505
  ac_status=$?
 
5506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5507
  (exit $ac_status); }; }; then
 
5508
  ac_header_compiler=yes
 
5509
else
 
5510
  echo "$as_me: failed program was:" >&5
 
5511
sed 's/^/| /' conftest.$ac_ext >&5
 
5512
 
 
5513
ac_header_compiler=no
 
5514
fi
 
5515
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5516
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5517
echo "${ECHO_T}$ac_header_compiler" >&6
 
5518
 
 
5519
# Is the header present?
 
5520
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5521
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5522
cat >conftest.$ac_ext <<_ACEOF
 
5523
/* confdefs.h.  */
 
5524
_ACEOF
 
5525
cat confdefs.h >>conftest.$ac_ext
 
5526
cat >>conftest.$ac_ext <<_ACEOF
 
5527
/* end confdefs.h.  */
 
5528
#include <$ac_header>
 
5529
_ACEOF
 
5530
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5531
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5532
  ac_status=$?
 
5533
  grep -v '^ *+' conftest.er1 >conftest.err
 
5534
  rm -f conftest.er1
 
5535
  cat conftest.err >&5
 
5536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5537
  (exit $ac_status); } >/dev/null; then
 
5538
  if test -s conftest.err; then
 
5539
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5540
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5541
  else
 
5542
    ac_cpp_err=
 
5543
  fi
 
5544
else
 
5545
  ac_cpp_err=yes
 
5546
fi
 
5547
if test -z "$ac_cpp_err"; then
 
5548
  ac_header_preproc=yes
 
5549
else
 
5550
  echo "$as_me: failed program was:" >&5
 
5551
sed 's/^/| /' conftest.$ac_ext >&5
 
5552
 
 
5553
  ac_header_preproc=no
 
5554
fi
 
5555
rm -f conftest.err conftest.$ac_ext
 
5556
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5557
echo "${ECHO_T}$ac_header_preproc" >&6
 
5558
 
 
5559
# So?  What about this header?
 
5560
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5561
  yes:no: )
 
5562
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5563
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5564
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5565
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5566
    ac_header_preproc=yes
 
5567
    ;;
 
5568
  no:yes:* )
 
5569
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5570
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5571
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5572
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5573
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5574
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5575
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5576
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5577
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5578
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5579
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5580
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5581
    (
 
5582
      cat <<\_ASBOX
 
5583
## ----------------------------------------------------------------------------- ##
 
5584
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas ##
 
5585
## ----------------------------------------------------------------------------- ##
 
5586
_ASBOX
 
5587
    ) |
 
5588
      sed "s/^/$as_me: WARNING:     /" >&2
 
5589
    ;;
 
5590
esac
 
5591
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5592
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5593
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5594
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5595
else
 
5596
  eval "$as_ac_Header=\$ac_header_preproc"
 
5597
fi
 
5598
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5599
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5600
 
 
5601
fi
 
5602
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5603
  cat >>confdefs.h <<_ACEOF
 
5604
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5605
_ACEOF
 
5606
 
 
5607
fi
 
5608
 
 
5609
done
 
5610
 
 
5611
ac_ext=cc
 
5612
ac_cpp='$CXXCPP $CPPFLAGS'
 
5613
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5614
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5615
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5616
if test -n "$ac_tool_prefix"; then
 
5617
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5618
  do
 
5619
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5620
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5621
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5623
if test "${ac_cv_prog_CXX+set}" = set; then
 
5624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5625
else
 
5626
  if test -n "$CXX"; then
 
5627
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5628
else
 
5629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5630
for as_dir in $PATH
 
5631
do
 
5632
  IFS=$as_save_IFS
 
5633
  test -z "$as_dir" && as_dir=.
 
5634
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5635
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5636
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5637
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5638
    break 2
 
5639
  fi
 
5640
done
 
5641
done
 
5642
 
 
5643
fi
 
5644
fi
 
5645
CXX=$ac_cv_prog_CXX
 
5646
if test -n "$CXX"; then
 
5647
  echo "$as_me:$LINENO: result: $CXX" >&5
 
5648
echo "${ECHO_T}$CXX" >&6
 
5649
else
 
5650
  echo "$as_me:$LINENO: result: no" >&5
 
5651
echo "${ECHO_T}no" >&6
 
5652
fi
 
5653
 
 
5654
    test -n "$CXX" && break
 
5655
  done
 
5656
fi
 
5657
if test -z "$CXX"; then
 
5658
  ac_ct_CXX=$CXX
 
5659
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5660
do
 
5661
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5662
set dummy $ac_prog; ac_word=$2
 
5663
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5665
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5667
else
 
5668
  if test -n "$ac_ct_CXX"; then
 
5669
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5670
else
 
5671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5672
for as_dir in $PATH
 
5673
do
 
5674
  IFS=$as_save_IFS
 
5675
  test -z "$as_dir" && as_dir=.
 
5676
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5677
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5678
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5679
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5680
    break 2
 
5681
  fi
 
5682
done
 
5683
done
 
5684
 
 
5685
fi
 
5686
fi
 
5687
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5688
if test -n "$ac_ct_CXX"; then
 
5689
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5690
echo "${ECHO_T}$ac_ct_CXX" >&6
 
5691
else
 
5692
  echo "$as_me:$LINENO: result: no" >&5
 
5693
echo "${ECHO_T}no" >&6
 
5694
fi
 
5695
 
 
5696
  test -n "$ac_ct_CXX" && break
 
5697
done
 
5698
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
5699
 
 
5700
  CXX=$ac_ct_CXX
 
5701
fi
 
5702
 
 
5703
 
 
5704
# Provide some information about the compiler.
 
5705
echo "$as_me:$LINENO:" \
 
5706
     "checking for C++ compiler version" >&5
 
5707
ac_compiler=`set X $ac_compile; echo $2`
 
5708
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5709
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5710
  ac_status=$?
 
5711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5712
  (exit $ac_status); }
 
5713
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5714
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5715
  ac_status=$?
 
5716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5717
  (exit $ac_status); }
 
5718
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5719
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5720
  ac_status=$?
 
5721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5722
  (exit $ac_status); }
 
5723
 
 
5724
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5725
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
5726
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5728
else
 
5729
  cat >conftest.$ac_ext <<_ACEOF
 
5730
/* confdefs.h.  */
 
5731
_ACEOF
 
5732
cat confdefs.h >>conftest.$ac_ext
 
5733
cat >>conftest.$ac_ext <<_ACEOF
 
5734
/* end confdefs.h.  */
 
5735
 
 
5736
int
 
5737
main ()
 
5738
{
 
5739
#ifndef __GNUC__
 
5740
       choke me
 
5741
#endif
 
5742
 
 
5743
  ;
 
5744
  return 0;
 
5745
}
 
5746
_ACEOF
 
5747
rm -f conftest.$ac_objext
 
5748
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5749
  (eval $ac_compile) 2>conftest.er1
 
5750
  ac_status=$?
 
5751
  grep -v '^ *+' conftest.er1 >conftest.err
 
5752
  rm -f conftest.er1
 
5753
  cat conftest.err >&5
 
5754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5755
  (exit $ac_status); } &&
 
5756
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5757
                         || test ! -s conftest.err'
 
5758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5759
  (eval $ac_try) 2>&5
 
5760
  ac_status=$?
 
5761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5762
  (exit $ac_status); }; } &&
 
5763
         { ac_try='test -s conftest.$ac_objext'
 
5764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5765
  (eval $ac_try) 2>&5
 
5766
  ac_status=$?
 
5767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5768
  (exit $ac_status); }; }; then
 
5769
  ac_compiler_gnu=yes
 
5770
else
 
5771
  echo "$as_me: failed program was:" >&5
 
5772
sed 's/^/| /' conftest.$ac_ext >&5
 
5773
 
 
5774
ac_compiler_gnu=no
 
5775
fi
 
5776
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5777
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5778
 
 
5779
fi
 
5780
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5781
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5782
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5783
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5784
ac_save_CXXFLAGS=$CXXFLAGS
 
5785
CXXFLAGS="-g"
 
5786
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5787
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5788
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5790
else
 
5791
  cat >conftest.$ac_ext <<_ACEOF
 
5792
/* confdefs.h.  */
 
5793
_ACEOF
 
5794
cat confdefs.h >>conftest.$ac_ext
 
5795
cat >>conftest.$ac_ext <<_ACEOF
 
5796
/* end confdefs.h.  */
 
5797
 
 
5798
int
 
5799
main ()
 
5800
{
 
5801
 
 
5802
  ;
 
5803
  return 0;
 
5804
}
 
5805
_ACEOF
 
5806
rm -f conftest.$ac_objext
 
5807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5808
  (eval $ac_compile) 2>conftest.er1
 
5809
  ac_status=$?
 
5810
  grep -v '^ *+' conftest.er1 >conftest.err
 
5811
  rm -f conftest.er1
 
5812
  cat conftest.err >&5
 
5813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5814
  (exit $ac_status); } &&
 
5815
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5816
                         || test ! -s conftest.err'
 
5817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5818
  (eval $ac_try) 2>&5
 
5819
  ac_status=$?
 
5820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5821
  (exit $ac_status); }; } &&
 
5822
         { ac_try='test -s conftest.$ac_objext'
 
5823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5824
  (eval $ac_try) 2>&5
 
5825
  ac_status=$?
 
5826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5827
  (exit $ac_status); }; }; then
 
5828
  ac_cv_prog_cxx_g=yes
 
5829
else
 
5830
  echo "$as_me: failed program was:" >&5
 
5831
sed 's/^/| /' conftest.$ac_ext >&5
 
5832
 
 
5833
ac_cv_prog_cxx_g=no
 
5834
fi
 
5835
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5836
fi
 
5837
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5838
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5839
if test "$ac_test_CXXFLAGS" = set; then
 
5840
  CXXFLAGS=$ac_save_CXXFLAGS
 
5841
elif test $ac_cv_prog_cxx_g = yes; then
 
5842
  if test "$GXX" = yes; then
 
5843
    CXXFLAGS="-g -O2"
 
5844
  else
 
5845
    CXXFLAGS="-g"
 
5846
  fi
 
5847
else
 
5848
  if test "$GXX" = yes; then
 
5849
    CXXFLAGS="-O2"
 
5850
  else
 
5851
    CXXFLAGS=
 
5852
  fi
 
5853
fi
 
5854
for ac_declaration in \
 
5855
   '' \
 
5856
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
5857
   'extern "C" void std::exit (int); using std::exit;' \
 
5858
   'extern "C" void exit (int) throw ();' \
 
5859
   'extern "C" void exit (int);' \
 
5860
   'void exit (int);'
 
5861
do
 
5862
  cat >conftest.$ac_ext <<_ACEOF
 
5863
/* confdefs.h.  */
 
5864
_ACEOF
 
5865
cat confdefs.h >>conftest.$ac_ext
 
5866
cat >>conftest.$ac_ext <<_ACEOF
 
5867
/* end confdefs.h.  */
 
5868
$ac_declaration
 
5869
#include <stdlib.h>
 
5870
int
 
5871
main ()
 
5872
{
 
5873
exit (42);
 
5874
  ;
 
5875
  return 0;
 
5876
}
 
5877
_ACEOF
 
5878
rm -f conftest.$ac_objext
 
5879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5880
  (eval $ac_compile) 2>conftest.er1
 
5881
  ac_status=$?
 
5882
  grep -v '^ *+' conftest.er1 >conftest.err
 
5883
  rm -f conftest.er1
 
5884
  cat conftest.err >&5
 
5885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5886
  (exit $ac_status); } &&
 
5887
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5888
                         || test ! -s conftest.err'
 
5889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5890
  (eval $ac_try) 2>&5
 
5891
  ac_status=$?
 
5892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5893
  (exit $ac_status); }; } &&
 
5894
         { ac_try='test -s conftest.$ac_objext'
 
5895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5896
  (eval $ac_try) 2>&5
 
5897
  ac_status=$?
 
5898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5899
  (exit $ac_status); }; }; then
 
5900
  :
 
5901
else
 
5902
  echo "$as_me: failed program was:" >&5
 
5903
sed 's/^/| /' conftest.$ac_ext >&5
 
5904
 
 
5905
continue
 
5906
fi
 
5907
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5908
  cat >conftest.$ac_ext <<_ACEOF
 
5909
/* confdefs.h.  */
 
5910
_ACEOF
 
5911
cat confdefs.h >>conftest.$ac_ext
 
5912
cat >>conftest.$ac_ext <<_ACEOF
 
5913
/* end confdefs.h.  */
 
5914
$ac_declaration
 
5915
int
 
5916
main ()
 
5917
{
 
5918
exit (42);
 
5919
  ;
 
5920
  return 0;
 
5921
}
 
5922
_ACEOF
 
5923
rm -f conftest.$ac_objext
 
5924
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5925
  (eval $ac_compile) 2>conftest.er1
 
5926
  ac_status=$?
 
5927
  grep -v '^ *+' conftest.er1 >conftest.err
 
5928
  rm -f conftest.er1
 
5929
  cat conftest.err >&5
 
5930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5931
  (exit $ac_status); } &&
 
5932
         { ac_try='test -z "$ac_cxx_werror_flag"
 
5933
                         || test ! -s conftest.err'
 
5934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5935
  (eval $ac_try) 2>&5
 
5936
  ac_status=$?
 
5937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5938
  (exit $ac_status); }; } &&
 
5939
         { ac_try='test -s conftest.$ac_objext'
 
5940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5941
  (eval $ac_try) 2>&5
 
5942
  ac_status=$?
 
5943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5944
  (exit $ac_status); }; }; then
 
5945
  break
 
5946
else
 
5947
  echo "$as_me: failed program was:" >&5
 
5948
sed 's/^/| /' conftest.$ac_ext >&5
 
5949
 
 
5950
fi
 
5951
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5952
done
 
5953
rm -f conftest*
 
5954
if test -n "$ac_declaration"; then
 
5955
  echo '#ifdef __cplusplus' >>confdefs.h
 
5956
  echo $ac_declaration      >>confdefs.h
 
5957
  echo '#endif'             >>confdefs.h
 
5958
fi
 
5959
 
 
5960
ac_ext=cc
 
5961
ac_cpp='$CXXCPP $CPPFLAGS'
 
5962
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5963
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5964
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5965
 
 
5966
depcc="$CXX"  am_compiler_list=
 
5967
 
 
5968
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5969
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5970
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5972
else
 
5973
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5974
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5975
  # making bogus files that we don't know about and never remove.  For
 
5976
  # instance it was reported that on HP-UX the gcc test will end up
 
5977
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5978
  # in D'.
 
5979
  mkdir conftest.dir
 
5980
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5981
  # using a relative directory.
 
5982
  cp "$am_depcomp" conftest.dir
 
5983
  cd conftest.dir
 
5984
  # We will build objects and dependencies in a subdirectory because
 
5985
  # it helps to detect inapplicable dependency modes.  For instance
 
5986
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5987
  # side effect of compilation, but ICC will put the dependencies in
 
5988
  # the current directory while Tru64 will put them in the object
 
5989
  # directory.
 
5990
  mkdir sub
 
5991
 
 
5992
  am_cv_CXX_dependencies_compiler_type=none
 
5993
  if test "$am_compiler_list" = ""; then
 
5994
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5995
  fi
 
5996
  for depmode in $am_compiler_list; do
 
5997
    # Setup a source with many dependencies, because some compilers
 
5998
    # like to wrap large dependency lists on column 80 (with \), and
 
5999
    # we should not choose a depcomp mode which is confused by this.
 
6000
    #
 
6001
    # We need to recreate these files for each test, as the compiler may
 
6002
    # overwrite some of them when testing with obscure command lines.
 
6003
    # This happens at least with the AIX C compiler.
 
6004
    : > sub/conftest.c
 
6005
    for i in 1 2 3 4 5 6; do
 
6006
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6007
      : > sub/conftst$i.h
 
6008
    done
 
6009
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6010
 
 
6011
    case $depmode in
 
6012
    nosideeffect)
 
6013
      # after this tag, mechanisms are not by side-effect, so they'll
 
6014
      # only be used when explicitly requested
 
6015
      if test "x$enable_dependency_tracking" = xyes; then
 
6016
        continue
 
6017
      else
 
6018
        break
 
6019
      fi
 
6020
      ;;
 
6021
    none) break ;;
 
6022
    esac
 
6023
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6024
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6025
    # handle `-M -o', and we need to detect this.
 
6026
    if depmode=$depmode \
 
6027
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6028
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6029
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6030
         >/dev/null 2>conftest.err &&
 
6031
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6032
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6033
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6034
      # icc doesn't choke on unknown options, it will just issue warnings
 
6035
      # (even with -Werror).  So we grep stderr for any message
 
6036
      # that says an option was ignored.
 
6037
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
6038
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6039
        break
 
6040
      fi
 
6041
    fi
 
6042
  done
 
6043
 
 
6044
  cd ..
 
6045
  rm -rf conftest.dir
 
6046
else
 
6047
  am_cv_CXX_dependencies_compiler_type=none
 
6048
fi
 
6049
 
 
6050
fi
 
6051
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6052
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
6053
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6054
 
 
6055
 
 
6056
 
 
6057
if
 
6058
  test "x$enable_dependency_tracking" != xno \
 
6059
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6060
  am__fastdepCXX_TRUE=
 
6061
  am__fastdepCXX_FALSE='#'
 
6062
else
 
6063
  am__fastdepCXX_TRUE='#'
 
6064
  am__fastdepCXX_FALSE=
 
6065
fi
 
6066
 
 
6067
 
 
6068
ac_ext=cc
 
6069
ac_cpp='$CXXCPP $CPPFLAGS'
 
6070
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6071
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6072
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6073
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6074
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6075
if test -z "$CXXCPP"; then
 
6076
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6078
else
 
6079
      # Double quotes because CXXCPP needs to be expanded
 
6080
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6081
    do
 
6082
      ac_preproc_ok=false
 
6083
for ac_cxx_preproc_warn_flag in '' yes
 
6084
do
 
6085
  # Use a header file that comes with gcc, so configuring glibc
 
6086
  # with a fresh cross-compiler works.
 
6087
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6088
  # <limits.h> exists even on freestanding compilers.
 
6089
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6090
  # not just through cpp. "Syntax error" is here to catch this case.
 
6091
  cat >conftest.$ac_ext <<_ACEOF
 
6092
/* confdefs.h.  */
 
6093
_ACEOF
 
6094
cat confdefs.h >>conftest.$ac_ext
 
6095
cat >>conftest.$ac_ext <<_ACEOF
 
6096
/* end confdefs.h.  */
 
6097
#ifdef __STDC__
 
6098
# include <limits.h>
 
6099
#else
 
6100
# include <assert.h>
 
6101
#endif
 
6102
                     Syntax error
 
6103
_ACEOF
 
6104
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6105
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6106
  ac_status=$?
 
6107
  grep -v '^ *+' conftest.er1 >conftest.err
 
6108
  rm -f conftest.er1
 
6109
  cat conftest.err >&5
 
6110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6111
  (exit $ac_status); } >/dev/null; then
 
6112
  if test -s conftest.err; then
 
6113
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6114
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6115
  else
 
6116
    ac_cpp_err=
 
6117
  fi
 
6118
else
 
6119
  ac_cpp_err=yes
 
6120
fi
 
6121
if test -z "$ac_cpp_err"; then
 
6122
  :
 
6123
else
 
6124
  echo "$as_me: failed program was:" >&5
 
6125
sed 's/^/| /' conftest.$ac_ext >&5
 
6126
 
 
6127
  # Broken: fails on valid input.
 
6128
continue
 
6129
fi
 
6130
rm -f conftest.err conftest.$ac_ext
 
6131
 
 
6132
  # OK, works on sane cases.  Now check whether non-existent headers
 
6133
  # can be detected and how.
 
6134
  cat >conftest.$ac_ext <<_ACEOF
 
6135
/* confdefs.h.  */
 
6136
_ACEOF
 
6137
cat confdefs.h >>conftest.$ac_ext
 
6138
cat >>conftest.$ac_ext <<_ACEOF
 
6139
/* end confdefs.h.  */
 
6140
#include <ac_nonexistent.h>
 
6141
_ACEOF
 
6142
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6143
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6144
  ac_status=$?
 
6145
  grep -v '^ *+' conftest.er1 >conftest.err
 
6146
  rm -f conftest.er1
 
6147
  cat conftest.err >&5
 
6148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6149
  (exit $ac_status); } >/dev/null; then
 
6150
  if test -s conftest.err; then
 
6151
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6152
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6153
  else
 
6154
    ac_cpp_err=
 
6155
  fi
 
6156
else
 
6157
  ac_cpp_err=yes
 
6158
fi
 
6159
if test -z "$ac_cpp_err"; then
 
6160
  # Broken: success on invalid input.
 
6161
continue
 
6162
else
 
6163
  echo "$as_me: failed program was:" >&5
 
6164
sed 's/^/| /' conftest.$ac_ext >&5
 
6165
 
 
6166
  # Passes both tests.
 
6167
ac_preproc_ok=:
 
6168
break
 
6169
fi
 
6170
rm -f conftest.err conftest.$ac_ext
 
6171
 
 
6172
done
 
6173
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6174
rm -f conftest.err conftest.$ac_ext
 
6175
if $ac_preproc_ok; then
 
6176
  break
 
6177
fi
 
6178
 
 
6179
    done
 
6180
    ac_cv_prog_CXXCPP=$CXXCPP
 
6181
 
 
6182
fi
 
6183
  CXXCPP=$ac_cv_prog_CXXCPP
 
6184
else
 
6185
  ac_cv_prog_CXXCPP=$CXXCPP
 
6186
fi
 
6187
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6188
echo "${ECHO_T}$CXXCPP" >&6
 
6189
ac_preproc_ok=false
 
6190
for ac_cxx_preproc_warn_flag in '' yes
 
6191
do
 
6192
  # Use a header file that comes with gcc, so configuring glibc
 
6193
  # with a fresh cross-compiler works.
 
6194
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6195
  # <limits.h> exists even on freestanding compilers.
 
6196
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6197
  # not just through cpp. "Syntax error" is here to catch this case.
 
6198
  cat >conftest.$ac_ext <<_ACEOF
 
6199
/* confdefs.h.  */
 
6200
_ACEOF
 
6201
cat confdefs.h >>conftest.$ac_ext
 
6202
cat >>conftest.$ac_ext <<_ACEOF
 
6203
/* end confdefs.h.  */
 
6204
#ifdef __STDC__
 
6205
# include <limits.h>
 
6206
#else
 
6207
# include <assert.h>
 
6208
#endif
 
6209
                     Syntax error
 
6210
_ACEOF
 
6211
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6212
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6213
  ac_status=$?
 
6214
  grep -v '^ *+' conftest.er1 >conftest.err
 
6215
  rm -f conftest.er1
 
6216
  cat conftest.err >&5
 
6217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6218
  (exit $ac_status); } >/dev/null; then
 
6219
  if test -s conftest.err; then
 
6220
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6221
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6222
  else
 
6223
    ac_cpp_err=
 
6224
  fi
 
6225
else
 
6226
  ac_cpp_err=yes
 
6227
fi
 
6228
if test -z "$ac_cpp_err"; then
 
6229
  :
 
6230
else
 
6231
  echo "$as_me: failed program was:" >&5
 
6232
sed 's/^/| /' conftest.$ac_ext >&5
 
6233
 
 
6234
  # Broken: fails on valid input.
 
6235
continue
 
6236
fi
 
6237
rm -f conftest.err conftest.$ac_ext
 
6238
 
 
6239
  # OK, works on sane cases.  Now check whether non-existent headers
 
6240
  # can be detected and how.
 
6241
  cat >conftest.$ac_ext <<_ACEOF
 
6242
/* confdefs.h.  */
 
6243
_ACEOF
 
6244
cat confdefs.h >>conftest.$ac_ext
 
6245
cat >>conftest.$ac_ext <<_ACEOF
 
6246
/* end confdefs.h.  */
 
6247
#include <ac_nonexistent.h>
 
6248
_ACEOF
 
6249
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6250
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6251
  ac_status=$?
 
6252
  grep -v '^ *+' conftest.er1 >conftest.err
 
6253
  rm -f conftest.er1
 
6254
  cat conftest.err >&5
 
6255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6256
  (exit $ac_status); } >/dev/null; then
 
6257
  if test -s conftest.err; then
 
6258
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6259
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6260
  else
 
6261
    ac_cpp_err=
 
6262
  fi
 
6263
else
 
6264
  ac_cpp_err=yes
 
6265
fi
 
6266
if test -z "$ac_cpp_err"; then
 
6267
  # Broken: success on invalid input.
 
6268
continue
 
6269
else
 
6270
  echo "$as_me: failed program was:" >&5
 
6271
sed 's/^/| /' conftest.$ac_ext >&5
 
6272
 
 
6273
  # Passes both tests.
 
6274
ac_preproc_ok=:
 
6275
break
 
6276
fi
 
6277
rm -f conftest.err conftest.$ac_ext
 
6278
 
 
6279
done
 
6280
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6281
rm -f conftest.err conftest.$ac_ext
 
6282
if $ac_preproc_ok; then
 
6283
  :
 
6284
else
 
6285
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6286
See \`config.log' for more details." >&5
 
6287
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6288
See \`config.log' for more details." >&2;}
 
6289
   { (exit 1); exit 1; }; }
 
6290
fi
 
6291
 
 
6292
ac_ext=cc
 
6293
ac_cpp='$CXXCPP $CPPFLAGS'
 
6294
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6295
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6296
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6297
 
 
6298
 
 
6299
ac_ext=f
 
6300
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6301
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6302
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6303
if test -n "$ac_tool_prefix"; then
 
6304
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6305
  do
 
6306
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6307
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6308
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6309
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6310
if test "${ac_cv_prog_F77+set}" = set; then
 
6311
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6312
else
 
6313
  if test -n "$F77"; then
 
6314
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6315
else
 
6316
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6317
for as_dir in $PATH
 
6318
do
 
6319
  IFS=$as_save_IFS
 
6320
  test -z "$as_dir" && as_dir=.
 
6321
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6322
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6323
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6324
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6325
    break 2
 
6326
  fi
 
6327
done
 
6328
done
 
6329
 
 
6330
fi
 
6331
fi
 
6332
F77=$ac_cv_prog_F77
 
6333
if test -n "$F77"; then
 
6334
  echo "$as_me:$LINENO: result: $F77" >&5
 
6335
echo "${ECHO_T}$F77" >&6
 
6336
else
 
6337
  echo "$as_me:$LINENO: result: no" >&5
 
6338
echo "${ECHO_T}no" >&6
 
6339
fi
 
6340
 
 
6341
    test -n "$F77" && break
 
6342
  done
 
6343
fi
 
6344
if test -z "$F77"; then
 
6345
  ac_ct_F77=$F77
 
6346
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6347
do
 
6348
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6349
set dummy $ac_prog; ac_word=$2
 
6350
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6351
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6352
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6354
else
 
6355
  if test -n "$ac_ct_F77"; then
 
6356
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6357
else
 
6358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6359
for as_dir in $PATH
 
6360
do
 
6361
  IFS=$as_save_IFS
 
6362
  test -z "$as_dir" && as_dir=.
 
6363
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6364
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6365
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6366
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6367
    break 2
 
6368
  fi
 
6369
done
 
6370
done
 
6371
 
 
6372
fi
 
6373
fi
 
6374
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6375
if test -n "$ac_ct_F77"; then
 
6376
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6377
echo "${ECHO_T}$ac_ct_F77" >&6
 
6378
else
 
6379
  echo "$as_me:$LINENO: result: no" >&5
 
6380
echo "${ECHO_T}no" >&6
 
6381
fi
 
6382
 
 
6383
  test -n "$ac_ct_F77" && break
 
6384
done
 
6385
 
 
6386
  F77=$ac_ct_F77
 
6387
fi
 
6388
 
 
6389
 
 
6390
# Provide some information about the compiler.
 
6391
echo "$as_me:6391:" \
 
6392
     "checking for Fortran 77 compiler version" >&5
 
6393
ac_compiler=`set X $ac_compile; echo $2`
 
6394
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6395
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6396
  ac_status=$?
 
6397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6398
  (exit $ac_status); }
 
6399
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6400
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6401
  ac_status=$?
 
6402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6403
  (exit $ac_status); }
 
6404
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6405
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6406
  ac_status=$?
 
6407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6408
  (exit $ac_status); }
 
6409
rm -f a.out
 
6410
 
 
6411
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6412
# input file.  (Note that this only needs to work for GNU compilers.)
 
6413
ac_save_ext=$ac_ext
 
6414
ac_ext=F
 
6415
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6416
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6417
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6419
else
 
6420
  cat >conftest.$ac_ext <<_ACEOF
 
6421
      program main
 
6422
#ifndef __GNUC__
 
6423
       choke me
 
6424
#endif
 
6425
 
 
6426
      end
 
6427
_ACEOF
 
6428
rm -f conftest.$ac_objext
 
6429
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6430
  (eval $ac_compile) 2>conftest.er1
 
6431
  ac_status=$?
 
6432
  grep -v '^ *+' conftest.er1 >conftest.err
 
6433
  rm -f conftest.er1
 
6434
  cat conftest.err >&5
 
6435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6436
  (exit $ac_status); } &&
 
6437
         { ac_try='test -z "$ac_f77_werror_flag"
 
6438
                         || test ! -s conftest.err'
 
6439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6440
  (eval $ac_try) 2>&5
 
6441
  ac_status=$?
 
6442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6443
  (exit $ac_status); }; } &&
 
6444
         { ac_try='test -s conftest.$ac_objext'
 
6445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6446
  (eval $ac_try) 2>&5
 
6447
  ac_status=$?
 
6448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6449
  (exit $ac_status); }; }; then
 
6450
  ac_compiler_gnu=yes
 
6451
else
 
6452
  echo "$as_me: failed program was:" >&5
 
6453
sed 's/^/| /' conftest.$ac_ext >&5
 
6454
 
 
6455
ac_compiler_gnu=no
 
6456
fi
 
6457
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6458
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6459
 
 
6460
fi
 
6461
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6462
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6463
ac_ext=$ac_save_ext
 
6464
ac_test_FFLAGS=${FFLAGS+set}
 
6465
ac_save_FFLAGS=$FFLAGS
 
6466
FFLAGS=
 
6467
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6468
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6469
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6470
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6471
else
 
6472
  FFLAGS=-g
 
6473
cat >conftest.$ac_ext <<_ACEOF
 
6474
      program main
 
6475
 
 
6476
      end
 
6477
_ACEOF
 
6478
rm -f conftest.$ac_objext
 
6479
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6480
  (eval $ac_compile) 2>conftest.er1
 
6481
  ac_status=$?
 
6482
  grep -v '^ *+' conftest.er1 >conftest.err
 
6483
  rm -f conftest.er1
 
6484
  cat conftest.err >&5
 
6485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6486
  (exit $ac_status); } &&
 
6487
         { ac_try='test -z "$ac_f77_werror_flag"
 
6488
                         || test ! -s conftest.err'
 
6489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6490
  (eval $ac_try) 2>&5
 
6491
  ac_status=$?
 
6492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6493
  (exit $ac_status); }; } &&
 
6494
         { ac_try='test -s conftest.$ac_objext'
 
6495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6496
  (eval $ac_try) 2>&5
 
6497
  ac_status=$?
 
6498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6499
  (exit $ac_status); }; }; then
 
6500
  ac_cv_prog_f77_g=yes
 
6501
else
 
6502
  echo "$as_me: failed program was:" >&5
 
6503
sed 's/^/| /' conftest.$ac_ext >&5
 
6504
 
 
6505
ac_cv_prog_f77_g=no
 
6506
fi
 
6507
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6508
 
 
6509
fi
 
6510
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6511
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6512
if test "$ac_test_FFLAGS" = set; then
 
6513
  FFLAGS=$ac_save_FFLAGS
 
6514
elif test $ac_cv_prog_f77_g = yes; then
 
6515
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6516
    FFLAGS="-g -O2"
 
6517
  else
 
6518
    FFLAGS="-g"
 
6519
  fi
 
6520
else
 
6521
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6522
    FFLAGS="-O2"
 
6523
  else
 
6524
    FFLAGS=
 
6525
  fi
 
6526
fi
 
6527
 
 
6528
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6529
ac_ext=c
 
6530
ac_cpp='$CPP $CPPFLAGS'
 
6531
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6532
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6533
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6534
 
 
6535
 
 
6536
 
 
6537
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6538
 
 
6539
# find the maximum length of command line arguments
 
6540
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6541
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6542
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6543
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6544
else
 
6545
    i=0
 
6546
  teststring="ABCD"
 
6547
 
 
6548
  case $build_os in
 
6549
  msdosdjgpp*)
 
6550
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6551
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6552
    # during glob expansion).  Even if it were fixed, the result of this
 
6553
    # check would be larger than it should be.
 
6554
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6555
    ;;
 
6556
 
 
6557
  gnu*)
 
6558
    # Under GNU Hurd, this test is not required because there is
 
6559
    # no limit to the length of command line arguments.
 
6560
    # Libtool will interpret -1 as no limit whatsoever
 
6561
    lt_cv_sys_max_cmd_len=-1;
 
6562
    ;;
 
6563
 
 
6564
  cygwin* | mingw*)
 
6565
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6566
    # about 5 minutes as the teststring grows exponentially.
 
6567
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6568
    # you end up with a "frozen" computer, even though with patience
 
6569
    # the test eventually succeeds (with a max line length of 256k).
 
6570
    # Instead, let's just punt: use the minimum linelength reported by
 
6571
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6572
    lt_cv_sys_max_cmd_len=8192;
 
6573
    ;;
 
6574
 
 
6575
  amigaos*)
 
6576
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6577
    # So we just punt and use a minimum line length of 8192.
 
6578
    lt_cv_sys_max_cmd_len=8192;
 
6579
    ;;
 
6580
 
 
6581
  netbsd* | freebsd* | openbsd* | darwin* )
 
6582
    # This has been around since 386BSD, at least.  Likely further.
 
6583
    if test -x /sbin/sysctl; then
 
6584
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6585
    elif test -x /usr/sbin/sysctl; then
 
6586
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6587
    else
 
6588
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
6589
    fi
 
6590
    # And add a safety zone
 
6591
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6592
    ;;
 
6593
 
 
6594
 *)
 
6595
    # If test is not a shell built-in, we'll probably end up computing a
 
6596
    # maximum length that is only half of the actual maximum length, but
 
6597
    # we can't tell.
 
6598
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6599
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6600
               = "XX$teststring") >/dev/null 2>&1 &&
 
6601
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6602
            lt_cv_sys_max_cmd_len=$new_result &&
 
6603
            test $i != 17 # 1/2 MB should be enough
 
6604
    do
 
6605
      i=`expr $i + 1`
 
6606
      teststring=$teststring$teststring
 
6607
    done
 
6608
    teststring=
 
6609
    # Add a significant safety factor because C++ compilers can tack on massive
 
6610
    # amounts of additional arguments before passing them to the linker.
 
6611
    # It appears as though 1/2 is a usable value.
 
6612
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6613
    ;;
 
6614
  esac
 
6615
 
 
6616
fi
 
6617
 
 
6618
if test -n $lt_cv_sys_max_cmd_len ; then
 
6619
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6620
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6621
else
 
6622
  echo "$as_me:$LINENO: result: none" >&5
 
6623
echo "${ECHO_T}none" >&6
 
6624
fi
 
6625
 
 
6626
 
 
6627
 
 
6628
 
 
6629
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6630
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6631
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6632
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6633
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6634
else
 
6635
 
 
6636
# These are sane defaults that work on at least a few old systems.
 
6637
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6638
 
 
6639
# Character class describing NM global symbol codes.
 
6640
symcode='[BCDEGRST]'
 
6641
 
 
6642
# Regexp to match symbols that can be accessed directly from C.
 
6643
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6644
 
 
6645
# Transform the above into a raw symbol and a C symbol.
 
6646
symxfrm='\1 \2\3 \3'
 
6647
 
 
6648
# Transform an extracted symbol line into a proper C declaration
 
6649
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6650
 
 
6651
# Transform an extracted symbol line into symbol name and symbol address
 
6652
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'"
 
6653
 
 
6654
# Define system-specific variables.
 
6655
case $host_os in
 
6656
aix*)
 
6657
  symcode='[BCDT]'
 
6658
  ;;
 
6659
cygwin* | mingw* | pw32*)
 
6660
  symcode='[ABCDGISTW]'
 
6661
  ;;
 
6662
hpux*) # Its linker distinguishes data from code symbols
 
6663
  if test "$host_cpu" = ia64; then
 
6664
    symcode='[ABCDEGRST]'
 
6665
  fi
 
6666
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6667
  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'"
 
6668
  ;;
 
6669
irix* | nonstopux*)
 
6670
  symcode='[BCDEGRST]'
 
6671
  ;;
 
6672
osf*)
 
6673
  symcode='[BCDEGQRST]'
 
6674
  ;;
 
6675
solaris* | sysv5*)
 
6676
  symcode='[BDRT]'
 
6677
  ;;
 
6678
sysv4)
 
6679
  symcode='[DFNSTU]'
 
6680
  ;;
 
6681
esac
 
6682
 
 
6683
# Handle CRLF in mingw tool chain
 
6684
opt_cr=
 
6685
case $build_os in
 
6686
mingw*)
 
6687
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6688
  ;;
 
6689
esac
 
6690
 
 
6691
# If we're using GNU nm, then use its standard symbol codes.
 
6692
case `$NM -V 2>&1` in
 
6693
*GNU* | *'with BFD'*)
 
6694
  symcode='[ABCDGIRSTW]' ;;
 
6695
esac
 
6696
 
 
6697
# Try without a prefix undercore, then with it.
 
6698
for ac_symprfx in "" "_"; do
 
6699
 
 
6700
  # Write the raw and C identifiers.
 
6701
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6702
 
 
6703
  # Check to see that the pipe works correctly.
 
6704
  pipe_works=no
 
6705
 
 
6706
  rm -f conftest*
 
6707
  cat > conftest.$ac_ext <<EOF
 
6708
#ifdef __cplusplus
 
6709
extern "C" {
 
6710
#endif
 
6711
char nm_test_var;
 
6712
void nm_test_func(){}
 
6713
#ifdef __cplusplus
 
6714
}
 
6715
#endif
 
6716
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6717
EOF
 
6718
 
 
6719
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6720
  (eval $ac_compile) 2>&5
 
6721
  ac_status=$?
 
6722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6723
  (exit $ac_status); }; then
 
6724
    # Now try to grab the symbols.
 
6725
    nlist=conftest.nm
 
6726
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6727
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6728
  ac_status=$?
 
6729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6730
  (exit $ac_status); } && test -s "$nlist"; then
 
6731
      # Try sorting and uniquifying the output.
 
6732
      if sort "$nlist" | uniq > "$nlist"T; then
 
6733
        mv -f "$nlist"T "$nlist"
 
6734
      else
 
6735
        rm -f "$nlist"T
 
6736
      fi
 
6737
 
 
6738
      # Make sure that we snagged all the symbols we need.
 
6739
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6740
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6741
          cat <<EOF > conftest.$ac_ext
 
6742
#ifdef __cplusplus
 
6743
extern "C" {
 
6744
#endif
 
6745
 
 
6746
EOF
 
6747
          # Now generate the symbol file.
 
6748
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6749
 
 
6750
          cat <<EOF >> conftest.$ac_ext
 
6751
#if defined (__STDC__) && __STDC__
 
6752
# define lt_ptr_t void *
 
6753
#else
 
6754
# define lt_ptr_t char *
 
6755
# define const
 
6756
#endif
 
6757
 
 
6758
/* The mapping between symbol names and symbols. */
 
6759
const struct {
 
6760
  const char *name;
 
6761
  lt_ptr_t address;
 
6762
}
 
6763
lt_preloaded_symbols[] =
 
6764
{
 
6765
EOF
 
6766
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6767
          cat <<\EOF >> conftest.$ac_ext
 
6768
  {0, (lt_ptr_t) 0}
 
6769
};
 
6770
 
 
6771
#ifdef __cplusplus
 
6772
}
 
6773
#endif
 
6774
EOF
 
6775
          # Now try linking the two files.
 
6776
          mv conftest.$ac_objext conftstm.$ac_objext
 
6777
          lt_save_LIBS="$LIBS"
 
6778
          lt_save_CFLAGS="$CFLAGS"
 
6779
          LIBS="conftstm.$ac_objext"
 
6780
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6781
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6782
  (eval $ac_link) 2>&5
 
6783
  ac_status=$?
 
6784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6785
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6786
            pipe_works=yes
 
6787
          fi
 
6788
          LIBS="$lt_save_LIBS"
 
6789
          CFLAGS="$lt_save_CFLAGS"
 
6790
        else
 
6791
          echo "cannot find nm_test_func in $nlist" >&5
 
6792
        fi
 
6793
      else
 
6794
        echo "cannot find nm_test_var in $nlist" >&5
 
6795
      fi
 
6796
    else
 
6797
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6798
    fi
 
6799
  else
 
6800
    echo "$progname: failed program was:" >&5
 
6801
    cat conftest.$ac_ext >&5
 
6802
  fi
 
6803
  rm -f conftest* conftst*
 
6804
 
 
6805
  # Do not use the global_symbol_pipe unless it works.
 
6806
  if test "$pipe_works" = yes; then
 
6807
    break
 
6808
  else
 
6809
    lt_cv_sys_global_symbol_pipe=
 
6810
  fi
 
6811
done
 
6812
 
 
6813
fi
 
6814
 
 
6815
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6816
  lt_cv_sys_global_symbol_to_cdecl=
 
6817
fi
 
6818
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6819
  echo "$as_me:$LINENO: result: failed" >&5
 
6820
echo "${ECHO_T}failed" >&6
 
6821
else
 
6822
  echo "$as_me:$LINENO: result: ok" >&5
 
6823
echo "${ECHO_T}ok" >&6
 
6824
fi
 
6825
 
 
6826
echo "$as_me:$LINENO: checking for objdir" >&5
 
6827
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6828
if test "${lt_cv_objdir+set}" = set; then
 
6829
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6830
else
 
6831
  rm -f .libs 2>/dev/null
 
6832
mkdir .libs 2>/dev/null
 
6833
if test -d .libs; then
 
6834
  lt_cv_objdir=.libs
 
6835
else
 
6836
  # MS-DOS does not allow filenames that begin with a dot.
 
6837
  lt_cv_objdir=_libs
 
6838
fi
 
6839
rmdir .libs 2>/dev/null
 
6840
fi
 
6841
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6842
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6843
objdir=$lt_cv_objdir
 
6844
 
 
6845
 
 
6846
 
 
6847
 
 
6848
 
 
6849
case $host_os in
 
6850
aix3*)
 
6851
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6852
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6853
  # vanish in a puff of smoke.
 
6854
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6855
    COLLECT_NAMES=
 
6856
    export COLLECT_NAMES
 
6857
  fi
 
6858
  ;;
 
6859
esac
 
6860
 
 
6861
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6862
# metacharacters that are still active within double-quoted strings.
 
6863
Xsed='sed -e s/^X//'
 
6864
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6865
 
 
6866
# Same as above, but do not quote variable references.
 
6867
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6868
 
 
6869
# Sed substitution to delay expansion of an escaped shell variable in a
 
6870
# double_quote_subst'ed string.
 
6871
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6872
 
 
6873
# Sed substitution to avoid accidental globbing in evaled expressions
 
6874
no_glob_subst='s/\*/\\\*/g'
 
6875
 
 
6876
# Constants:
 
6877
rm="rm -f"
 
6878
 
 
6879
# Global variables:
 
6880
default_ofile=libtool
 
6881
can_build_shared=yes
 
6882
 
 
6883
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6884
# which needs '.lib').
 
6885
libext=a
 
6886
ltmain="$ac_aux_dir/ltmain.sh"
 
6887
ofile="$default_ofile"
 
6888
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6889
 
 
6890
if test -n "$ac_tool_prefix"; then
 
6891
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6892
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6893
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6894
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6895
if test "${ac_cv_prog_AR+set}" = set; then
 
6896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6897
else
 
6898
  if test -n "$AR"; then
 
6899
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6900
else
 
6901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6902
for as_dir in $PATH
 
6903
do
 
6904
  IFS=$as_save_IFS
 
6905
  test -z "$as_dir" && as_dir=.
 
6906
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6907
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6908
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6909
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6910
    break 2
 
6911
  fi
 
6912
done
 
6913
done
 
6914
 
 
6915
fi
 
6916
fi
 
6917
AR=$ac_cv_prog_AR
 
6918
if test -n "$AR"; then
 
6919
  echo "$as_me:$LINENO: result: $AR" >&5
 
6920
echo "${ECHO_T}$AR" >&6
 
6921
else
 
6922
  echo "$as_me:$LINENO: result: no" >&5
 
6923
echo "${ECHO_T}no" >&6
 
6924
fi
 
6925
 
 
6926
fi
 
6927
if test -z "$ac_cv_prog_AR"; then
 
6928
  ac_ct_AR=$AR
 
6929
  # Extract the first word of "ar", so it can be a program name with args.
 
6930
set dummy ar; ac_word=$2
 
6931
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6933
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6935
else
 
6936
  if test -n "$ac_ct_AR"; then
 
6937
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6938
else
 
6939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6940
for as_dir in $PATH
 
6941
do
 
6942
  IFS=$as_save_IFS
 
6943
  test -z "$as_dir" && as_dir=.
 
6944
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6945
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6946
    ac_cv_prog_ac_ct_AR="ar"
 
6947
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6948
    break 2
 
6949
  fi
 
6950
done
 
6951
done
 
6952
 
 
6953
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
6954
fi
 
6955
fi
 
6956
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6957
if test -n "$ac_ct_AR"; then
 
6958
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6959
echo "${ECHO_T}$ac_ct_AR" >&6
 
6960
else
 
6961
  echo "$as_me:$LINENO: result: no" >&5
 
6962
echo "${ECHO_T}no" >&6
 
6963
fi
 
6964
 
 
6965
  AR=$ac_ct_AR
 
6966
else
 
6967
  AR="$ac_cv_prog_AR"
 
6968
fi
 
6969
 
 
6970
if test -n "$ac_tool_prefix"; then
 
6971
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6972
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6973
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6974
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6975
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6976
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6977
else
 
6978
  if test -n "$RANLIB"; then
 
6979
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6980
else
 
6981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6982
for as_dir in $PATH
 
6983
do
 
6984
  IFS=$as_save_IFS
 
6985
  test -z "$as_dir" && as_dir=.
 
6986
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6987
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6988
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6989
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6990
    break 2
 
6991
  fi
 
6992
done
 
6993
done
 
6994
 
 
6995
fi
 
6996
fi
 
6997
RANLIB=$ac_cv_prog_RANLIB
 
6998
if test -n "$RANLIB"; then
 
6999
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7000
echo "${ECHO_T}$RANLIB" >&6
 
7001
else
 
7002
  echo "$as_me:$LINENO: result: no" >&5
 
7003
echo "${ECHO_T}no" >&6
 
7004
fi
 
7005
 
 
7006
fi
 
7007
if test -z "$ac_cv_prog_RANLIB"; then
 
7008
  ac_ct_RANLIB=$RANLIB
 
7009
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7010
set dummy ranlib; ac_word=$2
 
7011
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7012
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7013
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7015
else
 
7016
  if test -n "$ac_ct_RANLIB"; then
 
7017
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7018
else
 
7019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7020
for as_dir in $PATH
 
7021
do
 
7022
  IFS=$as_save_IFS
 
7023
  test -z "$as_dir" && as_dir=.
 
7024
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7025
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7026
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7027
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7028
    break 2
 
7029
  fi
 
7030
done
 
7031
done
 
7032
 
 
7033
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
7034
fi
 
7035
fi
 
7036
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7037
if test -n "$ac_ct_RANLIB"; then
 
7038
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7039
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
7040
else
 
7041
  echo "$as_me:$LINENO: result: no" >&5
 
7042
echo "${ECHO_T}no" >&6
 
7043
fi
 
7044
 
 
7045
  RANLIB=$ac_ct_RANLIB
 
7046
else
 
7047
  RANLIB="$ac_cv_prog_RANLIB"
 
7048
fi
 
7049
 
 
7050
if test -n "$ac_tool_prefix"; then
 
7051
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7052
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7053
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7054
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7055
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7056
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7057
else
 
7058
  if test -n "$STRIP"; then
 
7059
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7060
else
 
7061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7062
for as_dir in $PATH
 
7063
do
 
7064
  IFS=$as_save_IFS
 
7065
  test -z "$as_dir" && as_dir=.
 
7066
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7067
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7068
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7069
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7070
    break 2
 
7071
  fi
 
7072
done
 
7073
done
 
7074
 
 
7075
fi
 
7076
fi
 
7077
STRIP=$ac_cv_prog_STRIP
 
7078
if test -n "$STRIP"; then
 
7079
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
7080
echo "${ECHO_T}$STRIP" >&6
 
7081
else
 
7082
  echo "$as_me:$LINENO: result: no" >&5
 
7083
echo "${ECHO_T}no" >&6
 
7084
fi
 
7085
 
 
7086
fi
 
7087
if test -z "$ac_cv_prog_STRIP"; then
 
7088
  ac_ct_STRIP=$STRIP
 
7089
  # Extract the first word of "strip", so it can be a program name with args.
 
7090
set dummy strip; ac_word=$2
 
7091
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7092
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7093
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7094
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7095
else
 
7096
  if test -n "$ac_ct_STRIP"; then
 
7097
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7098
else
 
7099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7100
for as_dir in $PATH
 
7101
do
 
7102
  IFS=$as_save_IFS
 
7103
  test -z "$as_dir" && as_dir=.
 
7104
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7105
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7106
    ac_cv_prog_ac_ct_STRIP="strip"
 
7107
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7108
    break 2
 
7109
  fi
 
7110
done
 
7111
done
 
7112
 
 
7113
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
7114
fi
 
7115
fi
 
7116
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7117
if test -n "$ac_ct_STRIP"; then
 
7118
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7119
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
7120
else
 
7121
  echo "$as_me:$LINENO: result: no" >&5
 
7122
echo "${ECHO_T}no" >&6
 
7123
fi
 
7124
 
 
7125
  STRIP=$ac_ct_STRIP
 
7126
else
 
7127
  STRIP="$ac_cv_prog_STRIP"
 
7128
fi
 
7129
 
 
7130
 
 
7131
old_CC="$CC"
 
7132
old_CFLAGS="$CFLAGS"
 
7133
 
 
7134
# Set sane defaults for various variables
 
7135
test -z "$AR" && AR=ar
 
7136
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7137
test -z "$AS" && AS=as
 
7138
test -z "$CC" && CC=cc
 
7139
test -z "$LTCC" && LTCC=$CC
 
7140
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7141
test -z "$LD" && LD=ld
 
7142
test -z "$LN_S" && LN_S="ln -s"
 
7143
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7144
test -z "$NM" && NM=nm
 
7145
test -z "$SED" && SED=sed
 
7146
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7147
test -z "$RANLIB" && RANLIB=:
 
7148
test -z "$STRIP" && STRIP=:
 
7149
test -z "$ac_objext" && ac_objext=o
 
7150
 
 
7151
# Determine commands to create old-style static archives.
 
7152
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7153
old_postinstall_cmds='chmod 644 $oldlib'
 
7154
old_postuninstall_cmds=
 
7155
 
 
7156
if test -n "$RANLIB"; then
 
7157
  case $host_os in
 
7158
  openbsd*)
 
7159
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
7160
    ;;
 
7161
  *)
 
7162
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
7163
    ;;
 
7164
  esac
 
7165
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7166
fi
 
7167
 
 
7168
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
7169
 
 
7170
# Only perform the check for file, if the check method requires it
 
7171
case $deplibs_check_method in
 
7172
file_magic*)
 
7173
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7174
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7175
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7176
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7178
else
 
7179
  case $MAGIC_CMD in
 
7180
[\\/*] |  ?:[\\/]*)
 
7181
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7182
  ;;
 
7183
*)
 
7184
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7185
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7186
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7187
  for ac_dir in $ac_dummy; do
 
7188
    IFS="$lt_save_ifs"
 
7189
    test -z "$ac_dir" && ac_dir=.
 
7190
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7191
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7192
      if test -n "$file_magic_test_file"; then
 
7193
        case $deplibs_check_method in
 
7194
        "file_magic "*)
 
7195
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7196
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7197
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7198
            $EGREP "$file_magic_regex" > /dev/null; then
 
7199
            :
 
7200
          else
 
7201
            cat <<EOF 1>&2
 
7202
 
 
7203
*** Warning: the command libtool uses to detect shared libraries,
 
7204
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7205
*** The result is that libtool may fail to recognize shared libraries
 
7206
*** as such.  This will affect the creation of libtool libraries that
 
7207
*** depend on shared libraries, but programs linked with such libtool
 
7208
*** libraries will work regardless of this problem.  Nevertheless, you
 
7209
*** may want to report the problem to your system manager and/or to
 
7210
*** bug-libtool@gnu.org
 
7211
 
 
7212
EOF
 
7213
          fi ;;
 
7214
        esac
 
7215
      fi
 
7216
      break
 
7217
    fi
 
7218
  done
 
7219
  IFS="$lt_save_ifs"
 
7220
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7221
  ;;
 
7222
esac
 
7223
fi
 
7224
 
 
7225
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7226
if test -n "$MAGIC_CMD"; then
 
7227
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7228
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7229
else
 
7230
  echo "$as_me:$LINENO: result: no" >&5
 
7231
echo "${ECHO_T}no" >&6
 
7232
fi
 
7233
 
 
7234
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7235
  if test -n "$ac_tool_prefix"; then
 
7236
    echo "$as_me:$LINENO: checking for file" >&5
 
7237
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
7238
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7240
else
 
7241
  case $MAGIC_CMD in
 
7242
[\\/*] |  ?:[\\/]*)
 
7243
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7244
  ;;
 
7245
*)
 
7246
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7247
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7248
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7249
  for ac_dir in $ac_dummy; do
 
7250
    IFS="$lt_save_ifs"
 
7251
    test -z "$ac_dir" && ac_dir=.
 
7252
    if test -f $ac_dir/file; then
 
7253
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7254
      if test -n "$file_magic_test_file"; then
 
7255
        case $deplibs_check_method in
 
7256
        "file_magic "*)
 
7257
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7258
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7259
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7260
            $EGREP "$file_magic_regex" > /dev/null; then
 
7261
            :
 
7262
          else
 
7263
            cat <<EOF 1>&2
 
7264
 
 
7265
*** Warning: the command libtool uses to detect shared libraries,
 
7266
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7267
*** The result is that libtool may fail to recognize shared libraries
 
7268
*** as such.  This will affect the creation of libtool libraries that
 
7269
*** depend on shared libraries, but programs linked with such libtool
 
7270
*** libraries will work regardless of this problem.  Nevertheless, you
 
7271
*** may want to report the problem to your system manager and/or to
 
7272
*** bug-libtool@gnu.org
 
7273
 
 
7274
EOF
 
7275
          fi ;;
 
7276
        esac
 
7277
      fi
 
7278
      break
 
7279
    fi
 
7280
  done
 
7281
  IFS="$lt_save_ifs"
 
7282
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7283
  ;;
 
7284
esac
 
7285
fi
 
7286
 
 
7287
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7288
if test -n "$MAGIC_CMD"; then
 
7289
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7290
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7291
else
 
7292
  echo "$as_me:$LINENO: result: no" >&5
 
7293
echo "${ECHO_T}no" >&6
 
7294
fi
 
7295
 
 
7296
  else
 
7297
    MAGIC_CMD=:
 
7298
  fi
 
7299
fi
 
7300
 
 
7301
  fi
 
7302
  ;;
 
7303
esac
 
7304
 
 
7305
enable_dlopen=no
 
7306
enable_win32_dll=yes
 
7307
 
 
7308
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7309
if test "${enable_libtool_lock+set}" = set; then
 
7310
  enableval="$enable_libtool_lock"
 
7311
 
 
7312
fi;
 
7313
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7314
 
 
7315
 
 
7316
# Check whether --with-pic or --without-pic was given.
 
7317
if test "${with_pic+set}" = set; then
 
7318
  withval="$with_pic"
 
7319
  pic_mode="$withval"
 
7320
else
 
7321
  pic_mode=default
 
7322
fi;
 
7323
test -z "$pic_mode" && pic_mode=default
 
7324
 
 
7325
# Use C for the default configuration in the libtool script
 
7326
tagname=
 
7327
lt_save_CC="$CC"
 
7328
ac_ext=c
 
7329
ac_cpp='$CPP $CPPFLAGS'
 
7330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7333
 
 
7334
 
 
7335
# Source file extension for C test sources.
 
7336
ac_ext=c
 
7337
 
 
7338
# Object file extension for compiled C test sources.
 
7339
objext=o
 
7340
objext=$objext
 
7341
 
 
7342
# Code to be used in simple compile tests
 
7343
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7344
 
 
7345
# Code to be used in simple link tests
 
7346
lt_simple_link_test_code='int main(){return(0);}\n'
 
7347
 
 
7348
 
 
7349
# If no C compiler was specified, use CC.
 
7350
LTCC=${LTCC-"$CC"}
 
7351
 
 
7352
# Allow CC to be a program name with arguments.
 
7353
compiler=$CC
 
7354
 
 
7355
 
 
7356
#
 
7357
# Check for any special shared library compilation flags.
 
7358
#
 
7359
lt_prog_cc_shlib=
 
7360
if test "$GCC" = no; then
 
7361
  case $host_os in
 
7362
  sco3.2v5*)
 
7363
    lt_prog_cc_shlib='-belf'
 
7364
    ;;
 
7365
  esac
 
7366
fi
 
7367
if test -n "$lt_prog_cc_shlib"; then
 
7368
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
7369
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
7370
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
7371
  else
 
7372
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
7373
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
7374
    lt_cv_prog_cc_can_build_shared=no
 
7375
  fi
 
7376
fi
 
7377
 
 
7378
 
 
7379
#
 
7380
# Check to make sure the static flag actually works.
 
7381
#
 
7382
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
7383
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
7384
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7386
else
 
7387
  lt_prog_compiler_static_works=no
 
7388
   save_LDFLAGS="$LDFLAGS"
 
7389
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
7390
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7391
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7392
     # The compiler can only warn and ignore the option if not recognized
 
7393
     # So say no if there are warnings
 
7394
     if test -s conftest.err; then
 
7395
       # Append any errors to the config.log.
 
7396
       cat conftest.err 1>&5
 
7397
     else
 
7398
       lt_prog_compiler_static_works=yes
 
7399
     fi
 
7400
   fi
 
7401
   $rm conftest*
 
7402
   LDFLAGS="$save_LDFLAGS"
 
7403
 
 
7404
fi
 
7405
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7406
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7407
 
 
7408
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7409
    :
 
7410
else
 
7411
    lt_prog_compiler_static=
 
7412
fi
 
7413
 
 
7414
 
 
7415
 
 
7416
 
 
7417
lt_prog_compiler_no_builtin_flag=
 
7418
 
 
7419
if test "$GCC" = yes; then
 
7420
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7421
 
 
7422
 
 
7423
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7424
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7425
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7427
else
 
7428
  lt_cv_prog_compiler_rtti_exceptions=no
 
7429
  ac_outfile=conftest.$ac_objext
 
7430
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7431
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7432
   # Insert the option either (1) after the last *FLAGS variable, or
 
7433
   # (2) before a word containing "conftest.", or (3) at the end.
 
7434
   # Note that $ac_compile itself does not contain backslashes and begins
 
7435
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7436
   # The option is referenced via a variable to avoid confusing sed.
 
7437
   lt_compile=`echo "$ac_compile" | $SED \
 
7438
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7439
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7440
   -e 's:$: $lt_compiler_flag:'`
 
7441
   (eval echo "\"\$as_me:7441: $lt_compile\"" >&5)
 
7442
   (eval "$lt_compile" 2>conftest.err)
 
7443
   ac_status=$?
 
7444
   cat conftest.err >&5
 
7445
   echo "$as_me:7445: \$? = $ac_status" >&5
 
7446
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7447
     # The compiler can only warn and ignore the option if not recognized
 
7448
     # So say no if there are warnings
 
7449
     if test ! -s conftest.err; then
 
7450
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7451
     fi
 
7452
   fi
 
7453
   $rm conftest*
 
7454
 
 
7455
fi
 
7456
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7457
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7458
 
 
7459
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7460
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7461
else
 
7462
    :
 
7463
fi
 
7464
 
 
7465
fi
 
7466
 
 
7467
lt_prog_compiler_wl=
 
7468
lt_prog_compiler_pic=
 
7469
lt_prog_compiler_static=
 
7470
 
 
7471
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7472
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7473
 
 
7474
  if test "$GCC" = yes; then
 
7475
    lt_prog_compiler_wl='-Wl,'
 
7476
    lt_prog_compiler_static='-static'
 
7477
 
 
7478
    case $host_os in
 
7479
      aix*)
 
7480
      # All AIX code is PIC.
 
7481
      if test "$host_cpu" = ia64; then
 
7482
        # AIX 5 now supports IA64 processor
 
7483
        lt_prog_compiler_static='-Bstatic'
 
7484
      fi
 
7485
      ;;
 
7486
 
 
7487
    amigaos*)
 
7488
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7489
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7490
      # like `-m68040'.
 
7491
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7492
      ;;
 
7493
 
 
7494
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7495
      # PIC is the default for these OSes.
 
7496
      ;;
 
7497
 
 
7498
    mingw* | pw32* | os2*)
 
7499
      # This hack is so that the source file can tell whether it is being
 
7500
      # built for inclusion in a dll (and should export symbols for example).
 
7501
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7502
      ;;
 
7503
 
 
7504
    darwin* | rhapsody*)
 
7505
      # PIC is the default on this platform
 
7506
      # Common symbols not allowed in MH_DYLIB files
 
7507
      lt_prog_compiler_pic='-fno-common'
 
7508
      ;;
 
7509
 
 
7510
    msdosdjgpp*)
 
7511
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7512
      # on systems that don't support them.
 
7513
      lt_prog_compiler_can_build_shared=no
 
7514
      enable_shared=no
 
7515
      ;;
 
7516
 
 
7517
    sysv4*MP*)
 
7518
      if test -d /usr/nec; then
 
7519
        lt_prog_compiler_pic=-Kconform_pic
 
7520
      fi
 
7521
      ;;
 
7522
 
 
7523
    hpux*)
 
7524
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7525
      # not for PA HP-UX.
 
7526
      case "$host_cpu" in
 
7527
      hppa*64*|ia64*)
 
7528
        # +Z the default
 
7529
        ;;
 
7530
      *)
 
7531
        lt_prog_compiler_pic='-fPIC'
 
7532
        ;;
 
7533
      esac
 
7534
      ;;
 
7535
 
 
7536
    *)
 
7537
      lt_prog_compiler_pic='-fPIC'
 
7538
      ;;
 
7539
    esac
 
7540
  else
 
7541
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7542
    case $host_os in
 
7543
    aix*)
 
7544
      lt_prog_compiler_wl='-Wl,'
 
7545
      if test "$host_cpu" = ia64; then
 
7546
        # AIX 5 now supports IA64 processor
 
7547
        lt_prog_compiler_static='-Bstatic'
 
7548
      else
 
7549
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7550
      fi
 
7551
      ;;
 
7552
      darwin*)
 
7553
        # PIC is the default on this platform
 
7554
        # Common symbols not allowed in MH_DYLIB files
 
7555
       case "$cc_basename" in
 
7556
         xlc*)
 
7557
         lt_prog_compiler_pic='-qnocommon'
 
7558
         lt_prog_compiler_wl='-Wl,'
 
7559
         ;;
 
7560
       esac
 
7561
       ;;
 
7562
 
 
7563
    mingw* | pw32* | os2*)
 
7564
      # This hack is so that the source file can tell whether it is being
 
7565
      # built for inclusion in a dll (and should export symbols for example).
 
7566
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7567
      ;;
 
7568
 
 
7569
    hpux9* | hpux10* | hpux11*)
 
7570
      lt_prog_compiler_wl='-Wl,'
 
7571
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7572
      # not for PA HP-UX.
 
7573
      case "$host_cpu" in
 
7574
      hppa*64*|ia64*)
 
7575
        # +Z the default
 
7576
        ;;
 
7577
      *)
 
7578
        lt_prog_compiler_pic='+Z'
 
7579
        ;;
 
7580
      esac
 
7581
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7582
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7583
      ;;
 
7584
 
 
7585
    irix5* | irix6* | nonstopux*)
 
7586
      lt_prog_compiler_wl='-Wl,'
 
7587
      # PIC (with -KPIC) is the default.
 
7588
      lt_prog_compiler_static='-non_shared'
 
7589
      ;;
 
7590
 
 
7591
    newsos6)
 
7592
      lt_prog_compiler_pic='-KPIC'
 
7593
      lt_prog_compiler_static='-Bstatic'
 
7594
      ;;
 
7595
 
 
7596
    linux*)
 
7597
      case $CC in
 
7598
      icc* | ecc*)
 
7599
        lt_prog_compiler_wl='-Wl,'
 
7600
        lt_prog_compiler_pic='-KPIC'
 
7601
        lt_prog_compiler_static='-static'
 
7602
        ;;
 
7603
      ccc*)
 
7604
        lt_prog_compiler_wl='-Wl,'
 
7605
        # All Alpha code is PIC.
 
7606
        lt_prog_compiler_static='-non_shared'
 
7607
        ;;
 
7608
      esac
 
7609
      ;;
 
7610
 
 
7611
    osf3* | osf4* | osf5*)
 
7612
      lt_prog_compiler_wl='-Wl,'
 
7613
      # All OSF/1 code is PIC.
 
7614
      lt_prog_compiler_static='-non_shared'
 
7615
      ;;
 
7616
 
 
7617
    sco3.2v5*)
 
7618
      lt_prog_compiler_pic='-Kpic'
 
7619
      lt_prog_compiler_static='-dn'
 
7620
      ;;
 
7621
 
 
7622
    solaris*)
 
7623
      lt_prog_compiler_wl='-Wl,'
 
7624
      lt_prog_compiler_pic='-KPIC'
 
7625
      lt_prog_compiler_static='-Bstatic'
 
7626
      ;;
 
7627
 
 
7628
    sunos4*)
 
7629
      lt_prog_compiler_wl='-Qoption ld '
 
7630
      lt_prog_compiler_pic='-PIC'
 
7631
      lt_prog_compiler_static='-Bstatic'
 
7632
      ;;
 
7633
 
 
7634
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7635
      lt_prog_compiler_wl='-Wl,'
 
7636
      lt_prog_compiler_pic='-KPIC'
 
7637
      lt_prog_compiler_static='-Bstatic'
 
7638
      ;;
 
7639
 
 
7640
    sysv4*MP*)
 
7641
      if test -d /usr/nec ;then
 
7642
        lt_prog_compiler_pic='-Kconform_pic'
 
7643
        lt_prog_compiler_static='-Bstatic'
 
7644
      fi
 
7645
      ;;
 
7646
 
 
7647
    uts4*)
 
7648
      lt_prog_compiler_pic='-pic'
 
7649
      lt_prog_compiler_static='-Bstatic'
 
7650
      ;;
 
7651
 
 
7652
    *)
 
7653
      lt_prog_compiler_can_build_shared=no
 
7654
      ;;
 
7655
    esac
 
7656
  fi
 
7657
 
 
7658
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7659
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7660
 
 
7661
#
 
7662
# Check to make sure the PIC flag actually works.
 
7663
#
 
7664
if test -n "$lt_prog_compiler_pic"; then
 
7665
 
 
7666
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7667
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
7668
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7669
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7670
else
 
7671
  lt_prog_compiler_pic_works=no
 
7672
  ac_outfile=conftest.$ac_objext
 
7673
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7674
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7675
   # Insert the option either (1) after the last *FLAGS variable, or
 
7676
   # (2) before a word containing "conftest.", or (3) at the end.
 
7677
   # Note that $ac_compile itself does not contain backslashes and begins
 
7678
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7679
   # The option is referenced via a variable to avoid confusing sed.
 
7680
   lt_compile=`echo "$ac_compile" | $SED \
 
7681
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7682
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7683
   -e 's:$: $lt_compiler_flag:'`
 
7684
   (eval echo "\"\$as_me:7684: $lt_compile\"" >&5)
 
7685
   (eval "$lt_compile" 2>conftest.err)
 
7686
   ac_status=$?
 
7687
   cat conftest.err >&5
 
7688
   echo "$as_me:7688: \$? = $ac_status" >&5
 
7689
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7690
     # The compiler can only warn and ignore the option if not recognized
 
7691
     # So say no if there are warnings
 
7692
     if test ! -s conftest.err; then
 
7693
       lt_prog_compiler_pic_works=yes
 
7694
     fi
 
7695
   fi
 
7696
   $rm conftest*
 
7697
 
 
7698
fi
 
7699
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7700
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7701
 
 
7702
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7703
    case $lt_prog_compiler_pic in
 
7704
     "" | " "*) ;;
 
7705
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7706
     esac
 
7707
else
 
7708
    lt_prog_compiler_pic=
 
7709
     lt_prog_compiler_can_build_shared=no
 
7710
fi
 
7711
 
 
7712
fi
 
7713
case "$host_os" in
 
7714
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7715
  *djgpp*)
 
7716
    lt_prog_compiler_pic=
 
7717
    ;;
 
7718
  *)
 
7719
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7720
    ;;
 
7721
esac
 
7722
 
 
7723
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7724
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
7725
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7726
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7727
else
 
7728
  lt_cv_prog_compiler_c_o=no
 
7729
   $rm -r conftest 2>/dev/null
 
7730
   mkdir conftest
 
7731
   cd conftest
 
7732
   mkdir out
 
7733
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7734
 
 
7735
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7736
   # Insert the option either (1) after the last *FLAGS variable, or
 
7737
   # (2) before a word containing "conftest.", or (3) at the end.
 
7738
   # Note that $ac_compile itself does not contain backslashes and begins
 
7739
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7740
   lt_compile=`echo "$ac_compile" | $SED \
 
7741
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7742
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7743
   -e 's:$: $lt_compiler_flag:'`
 
7744
   (eval echo "\"\$as_me:7744: $lt_compile\"" >&5)
 
7745
   (eval "$lt_compile" 2>out/conftest.err)
 
7746
   ac_status=$?
 
7747
   cat out/conftest.err >&5
 
7748
   echo "$as_me:7748: \$? = $ac_status" >&5
 
7749
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7750
   then
 
7751
     # The compiler can only warn and ignore the option if not recognized
 
7752
     # So say no if there are warnings
 
7753
     if test ! -s out/conftest.err; then
 
7754
       lt_cv_prog_compiler_c_o=yes
 
7755
     fi
 
7756
   fi
 
7757
   chmod u+w .
 
7758
   $rm conftest*
 
7759
   # SGI C++ compiler will create directory out/ii_files/ for
 
7760
   # template instantiation
 
7761
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7762
   $rm out/* && rmdir out
 
7763
   cd ..
 
7764
   rmdir conftest
 
7765
   $rm conftest*
 
7766
 
 
7767
fi
 
7768
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7769
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7770
 
 
7771
 
 
7772
hard_links="nottested"
 
7773
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7774
  # do not overwrite the value of need_locks provided by the user
 
7775
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7776
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
7777
  hard_links=yes
 
7778
  $rm conftest*
 
7779
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7780
  touch conftest.a
 
7781
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7782
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7783
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
7784
echo "${ECHO_T}$hard_links" >&6
 
7785
  if test "$hard_links" = no; then
 
7786
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7787
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7788
    need_locks=warn
 
7789
  fi
 
7790
else
 
7791
  need_locks=no
 
7792
fi
 
7793
 
 
7794
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7795
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
7796
 
 
7797
  runpath_var=
 
7798
  allow_undefined_flag=
 
7799
  enable_shared_with_static_runtimes=no
 
7800
  archive_cmds=
 
7801
  archive_expsym_cmds=
 
7802
  old_archive_From_new_cmds=
 
7803
  old_archive_from_expsyms_cmds=
 
7804
  export_dynamic_flag_spec=
 
7805
  whole_archive_flag_spec=
 
7806
  thread_safe_flag_spec=
 
7807
  hardcode_libdir_flag_spec=
 
7808
  hardcode_libdir_flag_spec_ld=
 
7809
  hardcode_libdir_separator=
 
7810
  hardcode_direct=no
 
7811
  hardcode_minus_L=no
 
7812
  hardcode_shlibpath_var=unsupported
 
7813
  link_all_deplibs=unknown
 
7814
  hardcode_automatic=no
 
7815
  module_cmds=
 
7816
  module_expsym_cmds=
 
7817
  always_export_symbols=no
 
7818
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7819
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7820
  # included in the symbol list
 
7821
  include_expsyms=
 
7822
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7823
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7824
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7825
  # as well as any symbol that contains `d'.
 
7826
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7827
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7828
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7829
  # the symbol is explicitly referenced.  Since portable code cannot
 
7830
  # rely on this symbol name, it's probably fine to never include it in
 
7831
  # preloaded symbol tables.
 
7832
  extract_expsyms_cmds=
 
7833
 
 
7834
  case $host_os in
 
7835
  cygwin* | mingw* | pw32*)
 
7836
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7837
    # When not using gcc, we currently assume that we are using
 
7838
    # Microsoft Visual C++.
 
7839
    if test "$GCC" != yes; then
 
7840
      with_gnu_ld=no
 
7841
    fi
 
7842
    ;;
 
7843
  openbsd*)
 
7844
    with_gnu_ld=no
 
7845
    ;;
 
7846
  esac
 
7847
 
 
7848
  ld_shlibs=yes
 
7849
  if test "$with_gnu_ld" = yes; then
 
7850
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7851
    wlarc='${wl}'
 
7852
 
 
7853
    # See if GNU ld supports shared libraries.
 
7854
    case $host_os in
 
7855
    aix3* | aix4* | aix5*)
 
7856
      # On AIX/PPC, the GNU linker is very broken
 
7857
      if test "$host_cpu" != ia64; then
 
7858
        ld_shlibs=no
 
7859
        cat <<EOF 1>&2
 
7860
 
 
7861
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7862
*** to be unable to reliably create shared libraries on AIX.
 
7863
*** Therefore, libtool is disabling shared libraries support.  If you
 
7864
*** really care for shared libraries, you may want to modify your PATH
 
7865
*** so that a non-GNU linker is found, and then restart.
 
7866
 
 
7867
EOF
 
7868
      fi
 
7869
      ;;
 
7870
 
 
7871
    amigaos*)
 
7872
      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)'
 
7873
      hardcode_libdir_flag_spec='-L$libdir'
 
7874
      hardcode_minus_L=yes
 
7875
 
 
7876
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7877
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7878
      # to version 4, is to share data among multiple programs linked
 
7879
      # with the same dynamic library.  Since this doesn't match the
 
7880
      # behavior of shared libraries on other platforms, we can't use
 
7881
      # them.
 
7882
      ld_shlibs=no
 
7883
      ;;
 
7884
 
 
7885
    beos*)
 
7886
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7887
        allow_undefined_flag=unsupported
 
7888
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7889
        # support --undefined.  This deserves some investigation.  FIXME
 
7890
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7891
      else
 
7892
        ld_shlibs=no
 
7893
      fi
 
7894
      ;;
 
7895
 
 
7896
    cygwin* | mingw* | pw32*)
 
7897
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7898
      # as there is no search path for DLLs.
 
7899
      hardcode_libdir_flag_spec='-L$libdir'
 
7900
      allow_undefined_flag=unsupported
 
7901
      always_export_symbols=no
 
7902
      enable_shared_with_static_runtimes=yes
 
7903
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7904
 
 
7905
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7906
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7907
        # If the export-symbols file already is a .def file (1st line
 
7908
        # is EXPORTS), use it as is; otherwise, prepend...
 
7909
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7910
          cp $export_symbols $output_objdir/$soname.def;
 
7911
        else
 
7912
          echo EXPORTS > $output_objdir/$soname.def;
 
7913
          cat $export_symbols >> $output_objdir/$soname.def;
 
7914
        fi~
 
7915
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7916
      else
 
7917
        ld_shlibs=no
 
7918
      fi
 
7919
      ;;
 
7920
 
 
7921
    netbsd*)
 
7922
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7923
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7924
        wlarc=
 
7925
      else
 
7926
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7927
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7928
      fi
 
7929
      ;;
 
7930
 
 
7931
    solaris* | sysv5*)
 
7932
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7933
        ld_shlibs=no
 
7934
        cat <<EOF 1>&2
 
7935
 
 
7936
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7937
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7938
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7939
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7940
*** your PATH or compiler configuration so that the native linker is
 
7941
*** used, and then restart.
 
7942
 
 
7943
EOF
 
7944
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7945
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7946
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7947
      else
 
7948
        ld_shlibs=no
 
7949
      fi
 
7950
      ;;
 
7951
 
 
7952
    sunos4*)
 
7953
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7954
      wlarc=
 
7955
      hardcode_direct=yes
 
7956
      hardcode_shlibpath_var=no
 
7957
      ;;
 
7958
 
 
7959
  linux*)
 
7960
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7961
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7962
        archive_cmds="$tmp_archive_cmds"
 
7963
      supports_anon_versioning=no
 
7964
      case `$LD -v 2>/dev/null` in
 
7965
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7966
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7967
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7968
        *\ 2.11.*) ;; # other 2.11 versions
 
7969
        *) supports_anon_versioning=yes ;;
 
7970
      esac
 
7971
      if test $supports_anon_versioning = yes; then
 
7972
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7973
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7974
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
7975
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7976
      else
 
7977
        archive_expsym_cmds="$tmp_archive_cmds"
 
7978
      fi
 
7979
    else
 
7980
      ld_shlibs=no
 
7981
    fi
 
7982
    ;;
 
7983
 
 
7984
    *)
 
7985
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7986
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7987
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7988
      else
 
7989
        ld_shlibs=no
 
7990
      fi
 
7991
      ;;
 
7992
    esac
 
7993
 
 
7994
    if test "$ld_shlibs" = yes; then
 
7995
      runpath_var=LD_RUN_PATH
 
7996
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7997
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
7998
      # ancient GNU ld didn't support --whole-archive et. al.
 
7999
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8000
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8001
      else
 
8002
        whole_archive_flag_spec=
 
8003
      fi
 
8004
    fi
 
8005
  else
 
8006
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8007
    case $host_os in
 
8008
    aix3*)
 
8009
      allow_undefined_flag=unsupported
 
8010
      always_export_symbols=yes
 
8011
      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'
 
8012
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8013
      # are no directories specified by -L.
 
8014
      hardcode_minus_L=yes
 
8015
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8016
        # Neither direct hardcoding nor static linking is supported with a
 
8017
        # broken collect2.
 
8018
        hardcode_direct=unsupported
 
8019
      fi
 
8020
      ;;
 
8021
 
 
8022
    aix4* | aix5*)
 
8023
      if test "$host_cpu" = ia64; then
 
8024
        # On IA64, the linker does run time linking by default, so we don't
 
8025
        # have to do anything special.
 
8026
        aix_use_runtimelinking=no
 
8027
        exp_sym_flag='-Bexport'
 
8028
        no_entry_flag=""
 
8029
      else
 
8030
        # If we're using GNU nm, then we don't want the "-C" option.
 
8031
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8032
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8033
          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'
 
8034
        else
 
8035
          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'
 
8036
        fi
 
8037
        aix_use_runtimelinking=no
 
8038
 
 
8039
        # Test if we are trying to use run time linking or normal
 
8040
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8041
        # need to do runtime linking.
 
8042
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8043
          for ld_flag in $LDFLAGS; do
 
8044
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8045
            aix_use_runtimelinking=yes
 
8046
            break
 
8047
          fi
 
8048
          done
 
8049
        esac
 
8050
 
 
8051
        exp_sym_flag='-bexport'
 
8052
        no_entry_flag='-bnoentry'
 
8053
      fi
 
8054
 
 
8055
      # When large executables or shared objects are built, AIX ld can
 
8056
      # have problems creating the table of contents.  If linking a library
 
8057
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8058
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8059
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8060
 
 
8061
      archive_cmds=''
 
8062
      hardcode_direct=yes
 
8063
      hardcode_libdir_separator=':'
 
8064
      link_all_deplibs=yes
 
8065
 
 
8066
      if test "$GCC" = yes; then
 
8067
        case $host_os in aix4.012|aix4.012.*)
 
8068
        # We only want to do this on AIX 4.2 and lower, the check
 
8069
        # below for broken collect2 doesn't work under 4.3+
 
8070
          collect2name=`${CC} -print-prog-name=collect2`
 
8071
          if test -f "$collect2name" && \
 
8072
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8073
          then
 
8074
          # We have reworked collect2
 
8075
          hardcode_direct=yes
 
8076
          else
 
8077
          # We have old collect2
 
8078
          hardcode_direct=unsupported
 
8079
          # It fails to find uninstalled libraries when the uninstalled
 
8080
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8081
          # to unsupported forces relinking
 
8082
          hardcode_minus_L=yes
 
8083
          hardcode_libdir_flag_spec='-L$libdir'
 
8084
          hardcode_libdir_separator=
 
8085
          fi
 
8086
        esac
 
8087
        shared_flag='-shared'
 
8088
      else
 
8089
        # not using gcc
 
8090
        if test "$host_cpu" = ia64; then
 
8091
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8092
        # chokes on -Wl,-G. The following line is correct:
 
8093
          shared_flag='-G'
 
8094
        else
 
8095
        if test "$aix_use_runtimelinking" = yes; then
 
8096
            shared_flag='${wl}-G'
 
8097
          else
 
8098
            shared_flag='${wl}-bM:SRE'
 
8099
        fi
 
8100
        fi
 
8101
      fi
 
8102
 
 
8103
      # It seems that -bexpall does not export symbols beginning with
 
8104
      # underscore (_), so it is better to generate a list of symbols to export.
 
8105
      always_export_symbols=yes
 
8106
      if test "$aix_use_runtimelinking" = yes; then
 
8107
        # Warning - without using the other runtime loading flags (-brtl),
 
8108
        # -berok will link without error, but may produce a broken library.
 
8109
        allow_undefined_flag='-berok'
 
8110
       # Determine the default libpath from the value encoded in an empty executable.
 
8111
       cat >conftest.$ac_ext <<_ACEOF
 
8112
/* confdefs.h.  */
 
8113
_ACEOF
 
8114
cat confdefs.h >>conftest.$ac_ext
 
8115
cat >>conftest.$ac_ext <<_ACEOF
 
8116
/* end confdefs.h.  */
 
8117
 
 
8118
int
 
8119
main ()
 
8120
{
 
8121
 
 
8122
  ;
 
8123
  return 0;
 
8124
}
 
8125
_ACEOF
 
8126
rm -f conftest.$ac_objext conftest$ac_exeext
 
8127
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8128
  (eval $ac_link) 2>conftest.er1
 
8129
  ac_status=$?
 
8130
  grep -v '^ *+' conftest.er1 >conftest.err
 
8131
  rm -f conftest.er1
 
8132
  cat conftest.err >&5
 
8133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8134
  (exit $ac_status); } &&
 
8135
         { ac_try='test -z "$ac_c_werror_flag"
 
8136
                         || test ! -s conftest.err'
 
8137
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8138
  (eval $ac_try) 2>&5
 
8139
  ac_status=$?
 
8140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8141
  (exit $ac_status); }; } &&
 
8142
         { ac_try='test -s conftest$ac_exeext'
 
8143
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8144
  (eval $ac_try) 2>&5
 
8145
  ac_status=$?
 
8146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8147
  (exit $ac_status); }; }; then
 
8148
 
 
8149
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8150
}'`
 
8151
# Check for a 64-bit object if we didn't find anything.
 
8152
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; }
 
8153
}'`; fi
 
8154
else
 
8155
  echo "$as_me: failed program was:" >&5
 
8156
sed 's/^/| /' conftest.$ac_ext >&5
 
8157
 
 
8158
fi
 
8159
rm -f conftest.err conftest.$ac_objext \
 
8160
      conftest$ac_exeext conftest.$ac_ext
 
8161
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8162
 
 
8163
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8164
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8165
       else
 
8166
        if test "$host_cpu" = ia64; then
 
8167
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8168
          allow_undefined_flag="-z nodefs"
 
8169
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
8170
        else
 
8171
         # Determine the default libpath from the value encoded in an empty executable.
 
8172
         cat >conftest.$ac_ext <<_ACEOF
 
8173
/* confdefs.h.  */
 
8174
_ACEOF
 
8175
cat confdefs.h >>conftest.$ac_ext
 
8176
cat >>conftest.$ac_ext <<_ACEOF
 
8177
/* end confdefs.h.  */
 
8178
 
 
8179
int
 
8180
main ()
 
8181
{
 
8182
 
 
8183
  ;
 
8184
  return 0;
 
8185
}
 
8186
_ACEOF
 
8187
rm -f conftest.$ac_objext conftest$ac_exeext
 
8188
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8189
  (eval $ac_link) 2>conftest.er1
 
8190
  ac_status=$?
 
8191
  grep -v '^ *+' conftest.er1 >conftest.err
 
8192
  rm -f conftest.er1
 
8193
  cat conftest.err >&5
 
8194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8195
  (exit $ac_status); } &&
 
8196
         { ac_try='test -z "$ac_c_werror_flag"
 
8197
                         || test ! -s conftest.err'
 
8198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8199
  (eval $ac_try) 2>&5
 
8200
  ac_status=$?
 
8201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8202
  (exit $ac_status); }; } &&
 
8203
         { ac_try='test -s conftest$ac_exeext'
 
8204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8205
  (eval $ac_try) 2>&5
 
8206
  ac_status=$?
 
8207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8208
  (exit $ac_status); }; }; then
 
8209
 
 
8210
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8211
}'`
 
8212
# Check for a 64-bit object if we didn't find anything.
 
8213
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; }
 
8214
}'`; fi
 
8215
else
 
8216
  echo "$as_me: failed program was:" >&5
 
8217
sed 's/^/| /' conftest.$ac_ext >&5
 
8218
 
 
8219
fi
 
8220
rm -f conftest.err conftest.$ac_objext \
 
8221
      conftest$ac_exeext conftest.$ac_ext
 
8222
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8223
 
 
8224
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8225
          # Warning - without using the other run time loading flags,
 
8226
          # -berok will link without error, but may produce a broken library.
 
8227
          no_undefined_flag=' ${wl}-bernotok'
 
8228
          allow_undefined_flag=' ${wl}-berok'
 
8229
          # -bexpall does not export symbols beginning with underscore (_)
 
8230
          always_export_symbols=yes
 
8231
          # Exported symbols can be pulled into shared objects from archives
 
8232
          whole_archive_flag_spec=' '
 
8233
          archive_cmds_need_lc=yes
 
8234
          # This is similar to how AIX traditionally builds it's shared libraries.
 
8235
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8236
        fi
 
8237
      fi
 
8238
      ;;
 
8239
 
 
8240
    amigaos*)
 
8241
      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)'
 
8242
      hardcode_libdir_flag_spec='-L$libdir'
 
8243
      hardcode_minus_L=yes
 
8244
      # see comment about different semantics on the GNU ld section
 
8245
      ld_shlibs=no
 
8246
      ;;
 
8247
 
 
8248
    bsdi[45]*)
 
8249
      export_dynamic_flag_spec=-rdynamic
 
8250
      ;;
 
8251
 
 
8252
    cygwin* | mingw* | pw32*)
 
8253
      # When not using gcc, we currently assume that we are using
 
8254
      # Microsoft Visual C++.
 
8255
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8256
      # no search path for DLLs.
 
8257
      hardcode_libdir_flag_spec=' '
 
8258
      allow_undefined_flag=unsupported
 
8259
      # Tell ltmain to make .lib files, not .a files.
 
8260
      libext=lib
 
8261
      # Tell ltmain to make .dll files, not .so files.
 
8262
      shrext_cmds=".dll"
 
8263
      # FIXME: Setting linknames here is a bad hack.
 
8264
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8265
      # The linker will automatically build a .lib file if we build a DLL.
 
8266
      old_archive_From_new_cmds='true'
 
8267
      # FIXME: Should let the user specify the lib program.
 
8268
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8269
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8270
      enable_shared_with_static_runtimes=yes
 
8271
      ;;
 
8272
 
 
8273
    darwin* | rhapsody*)
 
8274
      case "$host_os" in
 
8275
        rhapsody* | darwin1.[012])
 
8276
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8277
         ;;
 
8278
       *) # Darwin 1.3 on
 
8279
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8280
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8281
         else
 
8282
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8283
             10.[012])
 
8284
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8285
               ;;
 
8286
             10.*)
 
8287
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8288
               ;;
 
8289
           esac
 
8290
         fi
 
8291
         ;;
 
8292
      esac
 
8293
      archive_cmds_need_lc=no
 
8294
      hardcode_direct=no
 
8295
      hardcode_automatic=yes
 
8296
      hardcode_shlibpath_var=unsupported
 
8297
      whole_archive_flag_spec=''
 
8298
      link_all_deplibs=yes
 
8299
    if test "$GCC" = yes ; then
 
8300
        output_verbose_link_cmd='echo'
 
8301
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8302
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8303
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8304
      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}'
 
8305
      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}'
 
8306
    else
 
8307
      case "$cc_basename" in
 
8308
        xlc*)
 
8309
         output_verbose_link_cmd='echo'
 
8310
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8311
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8312
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8313
         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}'
 
8314
          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}'
 
8315
          ;;
 
8316
       *)
 
8317
         ld_shlibs=no
 
8318
          ;;
 
8319
      esac
 
8320
    fi
 
8321
      ;;
 
8322
 
 
8323
    dgux*)
 
8324
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8325
      hardcode_libdir_flag_spec='-L$libdir'
 
8326
      hardcode_shlibpath_var=no
 
8327
      ;;
 
8328
 
 
8329
    freebsd1*)
 
8330
      ld_shlibs=no
 
8331
      ;;
 
8332
 
 
8333
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8334
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8335
    # does not break anything, and helps significantly (at the cost of a little
 
8336
    # extra space).
 
8337
    freebsd2.2*)
 
8338
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8339
      hardcode_libdir_flag_spec='-R$libdir'
 
8340
      hardcode_direct=yes
 
8341
      hardcode_shlibpath_var=no
 
8342
      ;;
 
8343
 
 
8344
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8345
    freebsd2*)
 
8346
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8347
      hardcode_direct=yes
 
8348
      hardcode_minus_L=yes
 
8349
      hardcode_shlibpath_var=no
 
8350
      ;;
 
8351
 
 
8352
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8353
    freebsd* | kfreebsd*-gnu)
 
8354
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8355
      hardcode_libdir_flag_spec='-R$libdir'
 
8356
      hardcode_direct=yes
 
8357
      hardcode_shlibpath_var=no
 
8358
      ;;
 
8359
 
 
8360
    hpux9*)
 
8361
      if test "$GCC" = yes; then
 
8362
        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'
 
8363
      else
 
8364
        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'
 
8365
      fi
 
8366
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8367
      hardcode_libdir_separator=:
 
8368
      hardcode_direct=yes
 
8369
 
 
8370
      # hardcode_minus_L: Not really in the search PATH,
 
8371
      # but as the default location of the library.
 
8372
      hardcode_minus_L=yes
 
8373
      export_dynamic_flag_spec='${wl}-E'
 
8374
      ;;
 
8375
 
 
8376
    hpux10* | hpux11*)
 
8377
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8378
        case "$host_cpu" in
 
8379
        hppa*64*|ia64*)
 
8380
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8381
          ;;
 
8382
        *)
 
8383
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8384
          ;;
 
8385
        esac
 
8386
      else
 
8387
        case "$host_cpu" in
 
8388
        hppa*64*|ia64*)
 
8389
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8390
          ;;
 
8391
        *)
 
8392
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8393
          ;;
 
8394
        esac
 
8395
      fi
 
8396
      if test "$with_gnu_ld" = no; then
 
8397
        case "$host_cpu" in
 
8398
        hppa*64*)
 
8399
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8400
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8401
          hardcode_libdir_separator=:
 
8402
          hardcode_direct=no
 
8403
          hardcode_shlibpath_var=no
 
8404
          ;;
 
8405
        ia64*)
 
8406
          hardcode_libdir_flag_spec='-L$libdir'
 
8407
          hardcode_direct=no
 
8408
          hardcode_shlibpath_var=no
 
8409
 
 
8410
          # hardcode_minus_L: Not really in the search PATH,
 
8411
          # but as the default location of the library.
 
8412
          hardcode_minus_L=yes
 
8413
          ;;
 
8414
        *)
 
8415
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8416
          hardcode_libdir_separator=:
 
8417
          hardcode_direct=yes
 
8418
          export_dynamic_flag_spec='${wl}-E'
 
8419
 
 
8420
          # hardcode_minus_L: Not really in the search PATH,
 
8421
          # but as the default location of the library.
 
8422
          hardcode_minus_L=yes
 
8423
          ;;
 
8424
        esac
 
8425
      fi
 
8426
      ;;
 
8427
 
 
8428
    irix5* | irix6* | nonstopux*)
 
8429
      if test "$GCC" = yes; then
 
8430
        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'
 
8431
      else
 
8432
        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'
 
8433
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8434
      fi
 
8435
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8436
      hardcode_libdir_separator=:
 
8437
      link_all_deplibs=yes
 
8438
      ;;
 
8439
 
 
8440
    netbsd*)
 
8441
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8442
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8443
      else
 
8444
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8445
      fi
 
8446
      hardcode_libdir_flag_spec='-R$libdir'
 
8447
      hardcode_direct=yes
 
8448
      hardcode_shlibpath_var=no
 
8449
      ;;
 
8450
 
 
8451
    newsos6)
 
8452
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8453
      hardcode_direct=yes
 
8454
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8455
      hardcode_libdir_separator=:
 
8456
      hardcode_shlibpath_var=no
 
8457
      ;;
 
8458
 
 
8459
    openbsd*)
 
8460
      hardcode_direct=yes
 
8461
      hardcode_shlibpath_var=no
 
8462
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8463
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8464
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8465
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8466
        export_dynamic_flag_spec='${wl}-E'
 
8467
      else
 
8468
       case $host_os in
 
8469
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8470
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8471
           hardcode_libdir_flag_spec='-R$libdir'
 
8472
           ;;
 
8473
         *)
 
8474
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8475
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8476
           ;;
 
8477
       esac
 
8478
      fi
 
8479
      ;;
 
8480
 
 
8481
    os2*)
 
8482
      hardcode_libdir_flag_spec='-L$libdir'
 
8483
      hardcode_minus_L=yes
 
8484
      allow_undefined_flag=unsupported
 
8485
      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'
 
8486
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8487
      ;;
 
8488
 
 
8489
    osf3*)
 
8490
      if test "$GCC" = yes; then
 
8491
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8492
        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'
 
8493
      else
 
8494
        allow_undefined_flag=' -expect_unresolved \*'
 
8495
        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'
 
8496
      fi
 
8497
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8498
      hardcode_libdir_separator=:
 
8499
      ;;
 
8500
 
 
8501
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8502
      if test "$GCC" = yes; then
 
8503
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8504
        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'
 
8505
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8506
      else
 
8507
        allow_undefined_flag=' -expect_unresolved \*'
 
8508
        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'
 
8509
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8510
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
8511
 
 
8512
        # Both c and cxx compiler support -rpath directly
 
8513
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8514
      fi
 
8515
      hardcode_libdir_separator=:
 
8516
      ;;
 
8517
 
 
8518
    sco3.2v5*)
 
8519
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8520
      hardcode_shlibpath_var=no
 
8521
      export_dynamic_flag_spec='${wl}-Bexport'
 
8522
      runpath_var=LD_RUN_PATH
 
8523
      hardcode_runpath_var=yes
 
8524
      ;;
 
8525
 
 
8526
    solaris*)
 
8527
      no_undefined_flag=' -z text'
 
8528
      if test "$GCC" = yes; then
 
8529
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8530
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8531
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8532
      else
 
8533
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8534
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8535
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8536
      fi
 
8537
      hardcode_libdir_flag_spec='-R$libdir'
 
8538
      hardcode_shlibpath_var=no
 
8539
      case $host_os in
 
8540
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8541
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8542
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8543
      esac
 
8544
      link_all_deplibs=yes
 
8545
      ;;
 
8546
 
 
8547
    sunos4*)
 
8548
      if test "x$host_vendor" = xsequent; then
 
8549
        # Use $CC to link under sequent, because it throws in some extra .o
 
8550
        # files that make .init and .fini sections work.
 
8551
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8552
      else
 
8553
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8554
      fi
 
8555
      hardcode_libdir_flag_spec='-L$libdir'
 
8556
      hardcode_direct=yes
 
8557
      hardcode_minus_L=yes
 
8558
      hardcode_shlibpath_var=no
 
8559
      ;;
 
8560
 
 
8561
    sysv4)
 
8562
      case $host_vendor in
 
8563
        sni)
 
8564
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8565
          hardcode_direct=yes # is this really true???
 
8566
        ;;
 
8567
        siemens)
 
8568
          ## LD is ld it makes a PLAMLIB
 
8569
          ## CC just makes a GrossModule.
 
8570
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8571
          reload_cmds='$CC -r -o $output$reload_objs'
 
8572
          hardcode_direct=no
 
8573
        ;;
 
8574
        motorola)
 
8575
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8576
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8577
        ;;
 
8578
      esac
 
8579
      runpath_var='LD_RUN_PATH'
 
8580
      hardcode_shlibpath_var=no
 
8581
      ;;
 
8582
 
 
8583
    sysv4.3*)
 
8584
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8585
      hardcode_shlibpath_var=no
 
8586
      export_dynamic_flag_spec='-Bexport'
 
8587
      ;;
 
8588
 
 
8589
    sysv4*MP*)
 
8590
      if test -d /usr/nec; then
 
8591
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8592
        hardcode_shlibpath_var=no
 
8593
        runpath_var=LD_RUN_PATH
 
8594
        hardcode_runpath_var=yes
 
8595
        ld_shlibs=yes
 
8596
      fi
 
8597
      ;;
 
8598
 
 
8599
    sysv4.2uw2*)
 
8600
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8601
      hardcode_direct=yes
 
8602
      hardcode_minus_L=no
 
8603
      hardcode_shlibpath_var=no
 
8604
      hardcode_runpath_var=yes
 
8605
      runpath_var=LD_RUN_PATH
 
8606
      ;;
 
8607
 
 
8608
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
8609
      no_undefined_flag='${wl}-z ${wl}text'
 
8610
      if test "$GCC" = yes; then
 
8611
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8612
      else
 
8613
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8614
      fi
 
8615
      runpath_var='LD_RUN_PATH'
 
8616
      hardcode_shlibpath_var=no
 
8617
      ;;
 
8618
 
 
8619
    sysv5*)
 
8620
      no_undefined_flag=' -z text'
 
8621
      # $CC -shared without GNU ld will not create a library from C++
 
8622
      # object files and a static libstdc++, better avoid it by now
 
8623
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8624
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8625
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8626
      hardcode_libdir_flag_spec=
 
8627
      hardcode_shlibpath_var=no
 
8628
      runpath_var='LD_RUN_PATH'
 
8629
      ;;
 
8630
 
 
8631
    uts4*)
 
8632
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8633
      hardcode_libdir_flag_spec='-L$libdir'
 
8634
      hardcode_shlibpath_var=no
 
8635
      ;;
 
8636
 
 
8637
    *)
 
8638
      ld_shlibs=no
 
8639
      ;;
 
8640
    esac
 
8641
  fi
 
8642
 
 
8643
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8644
echo "${ECHO_T}$ld_shlibs" >&6
 
8645
test "$ld_shlibs" = no && can_build_shared=no
 
8646
 
 
8647
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8648
if test "$GCC" = yes; then
 
8649
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8650
fi
 
8651
 
 
8652
#
 
8653
# Do we need to explicitly link libc?
 
8654
#
 
8655
case "x$archive_cmds_need_lc" in
 
8656
x|xyes)
 
8657
  # Assume -lc should be added
 
8658
  archive_cmds_need_lc=yes
 
8659
 
 
8660
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8661
    case $archive_cmds in
 
8662
    *'~'*)
 
8663
      # FIXME: we may have to deal with multi-command sequences.
 
8664
      ;;
 
8665
    '$CC '*)
 
8666
      # Test whether the compiler implicitly links with -lc since on some
 
8667
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8668
      # to ld, don't add -lc before -lgcc.
 
8669
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8670
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8671
      $rm conftest*
 
8672
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8673
 
 
8674
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8675
  (eval $ac_compile) 2>&5
 
8676
  ac_status=$?
 
8677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8678
  (exit $ac_status); } 2>conftest.err; then
 
8679
        soname=conftest
 
8680
        lib=conftest
 
8681
        libobjs=conftest.$ac_objext
 
8682
        deplibs=
 
8683
        wl=$lt_prog_compiler_wl
 
8684
        compiler_flags=-v
 
8685
        linker_flags=-v
 
8686
        verstring=
 
8687
        output_objdir=.
 
8688
        libname=conftest
 
8689
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8690
        allow_undefined_flag=
 
8691
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8692
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8693
  ac_status=$?
 
8694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8695
  (exit $ac_status); }
 
8696
        then
 
8697
          archive_cmds_need_lc=no
 
8698
        else
 
8699
          archive_cmds_need_lc=yes
 
8700
        fi
 
8701
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8702
      else
 
8703
        cat conftest.err 1>&5
 
8704
      fi
 
8705
      $rm conftest*
 
8706
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8707
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
8708
      ;;
 
8709
    esac
 
8710
  fi
 
8711
  ;;
 
8712
esac
 
8713
 
 
8714
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8715
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8716
library_names_spec=
 
8717
libname_spec='lib$name'
 
8718
soname_spec=
 
8719
shrext_cmds=".so"
 
8720
postinstall_cmds=
 
8721
postuninstall_cmds=
 
8722
finish_cmds=
 
8723
finish_eval=
 
8724
shlibpath_var=
 
8725
shlibpath_overrides_runpath=unknown
 
8726
version_type=none
 
8727
dynamic_linker="$host_os ld.so"
 
8728
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8729
if test "$GCC" = yes; then
 
8730
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8731
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8732
    # if the path contains ";" then we assume it to be the separator
 
8733
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8734
    # assumed that no part of a normal pathname contains ";" but that should
 
8735
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8736
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8737
  else
 
8738
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8739
  fi
 
8740
else
 
8741
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8742
fi
 
8743
need_lib_prefix=unknown
 
8744
hardcode_into_libs=no
 
8745
 
 
8746
# when you set need_version to no, make sure it does not cause -set_version
 
8747
# flags to be left without arguments
 
8748
need_version=unknown
 
8749
 
 
8750
case $host_os in
 
8751
aix3*)
 
8752
  version_type=linux
 
8753
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8754
  shlibpath_var=LIBPATH
 
8755
 
 
8756
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8757
  soname_spec='${libname}${release}${shared_ext}$major'
 
8758
  ;;
 
8759
 
 
8760
aix4* | aix5*)
 
8761
  version_type=linux
 
8762
  need_lib_prefix=no
 
8763
  need_version=no
 
8764
  hardcode_into_libs=yes
 
8765
  if test "$host_cpu" = ia64; then
 
8766
    # AIX 5 supports IA64
 
8767
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8768
    shlibpath_var=LD_LIBRARY_PATH
 
8769
  else
 
8770
    # With GCC up to 2.95.x, collect2 would create an import file
 
8771
    # for dependence libraries.  The import file would start with
 
8772
    # the line `#! .'.  This would cause the generated library to
 
8773
    # depend on `.', always an invalid library.  This was fixed in
 
8774
    # development snapshots of GCC prior to 3.0.
 
8775
    case $host_os in
 
8776
      aix4 | aix4.[01] | aix4.[01].*)
 
8777
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8778
           echo ' yes '
 
8779
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8780
        :
 
8781
      else
 
8782
        can_build_shared=no
 
8783
      fi
 
8784
      ;;
 
8785
    esac
 
8786
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8787
    # soname into executable. Probably we can add versioning support to
 
8788
    # collect2, so additional links can be useful in future.
 
8789
    if test "$aix_use_runtimelinking" = yes; then
 
8790
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8791
      # instead of lib<name>.a to let people know that these are not
 
8792
      # typical AIX shared libraries.
 
8793
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8794
    else
 
8795
      # We preserve .a as extension for shared libraries through AIX4.2
 
8796
      # and later when we are not doing run time linking.
 
8797
      library_names_spec='${libname}${release}.a $libname.a'
 
8798
      soname_spec='${libname}${release}${shared_ext}$major'
 
8799
    fi
 
8800
    shlibpath_var=LIBPATH
 
8801
  fi
 
8802
  ;;
 
8803
 
 
8804
amigaos*)
 
8805
  library_names_spec='$libname.ixlibrary $libname.a'
 
8806
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8807
  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'
 
8808
  ;;
 
8809
 
 
8810
beos*)
 
8811
  library_names_spec='${libname}${shared_ext}'
 
8812
  dynamic_linker="$host_os ld.so"
 
8813
  shlibpath_var=LIBRARY_PATH
 
8814
  ;;
 
8815
 
 
8816
bsdi[45]*)
 
8817
  version_type=linux
 
8818
  need_version=no
 
8819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8820
  soname_spec='${libname}${release}${shared_ext}$major'
 
8821
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8822
  shlibpath_var=LD_LIBRARY_PATH
 
8823
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8824
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8825
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8826
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8827
  # libtool to hard-code these into programs
 
8828
  ;;
 
8829
 
 
8830
cygwin* | mingw* | pw32*)
 
8831
  version_type=windows
 
8832
  shrext_cmds=".dll"
 
8833
  need_version=no
 
8834
  need_lib_prefix=no
 
8835
 
 
8836
  case $GCC,$host_os in
 
8837
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8838
    library_names_spec='$libname.dll.a'
 
8839
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8840
    postinstall_cmds='base_file=`basename \${file}`~
 
8841
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8842
      dldir=$destdir/`dirname \$dlpath`~
 
8843
      test -d \$dldir || mkdir -p \$dldir~
 
8844
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8845
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8846
      dlpath=$dir/\$dldll~
 
8847
       $rm \$dlpath'
 
8848
    shlibpath_overrides_runpath=yes
 
8849
 
 
8850
    case $host_os in
 
8851
    cygwin*)
 
8852
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8853
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8854
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8855
      ;;
 
8856
    mingw*)
 
8857
      # MinGW DLLs use traditional 'lib' prefix
 
8858
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8859
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8860
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8861
        # It is most probably a Windows format PATH printed by
 
8862
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8863
        # path with ; separators, and with drive letters. We can handle the
 
8864
        # drive letters (cygwin fileutils understands them), so leave them,
 
8865
        # especially as we might pass files found there to a mingw objdump,
 
8866
        # which wouldn't understand a cygwinified path. Ahh.
 
8867
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8868
      else
 
8869
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8870
      fi
 
8871
      ;;
 
8872
    pw32*)
 
8873
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8874
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8875
      ;;
 
8876
    esac
 
8877
    ;;
 
8878
 
 
8879
  *)
 
8880
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8881
    ;;
 
8882
  esac
 
8883
  dynamic_linker='Win32 ld.exe'
 
8884
  # FIXME: first we should search . and the directory the executable is in
 
8885
  shlibpath_var=PATH
 
8886
  ;;
 
8887
 
 
8888
darwin* | rhapsody*)
 
8889
  dynamic_linker="$host_os dyld"
 
8890
  version_type=darwin
 
8891
  need_lib_prefix=no
 
8892
  need_version=no
 
8893
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8894
  soname_spec='${libname}${release}${major}$shared_ext'
 
8895
  shlibpath_overrides_runpath=yes
 
8896
  shlibpath_var=DYLD_LIBRARY_PATH
 
8897
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8898
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8899
  if test "$GCC" = yes; then
 
8900
    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"`
 
8901
  else
 
8902
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8903
  fi
 
8904
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8905
  ;;
 
8906
 
 
8907
dgux*)
 
8908
  version_type=linux
 
8909
  need_lib_prefix=no
 
8910
  need_version=no
 
8911
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8912
  soname_spec='${libname}${release}${shared_ext}$major'
 
8913
  shlibpath_var=LD_LIBRARY_PATH
 
8914
  ;;
 
8915
 
 
8916
freebsd1*)
 
8917
  dynamic_linker=no
 
8918
  ;;
 
8919
 
 
8920
kfreebsd*-gnu)
 
8921
  version_type=linux
 
8922
  need_lib_prefix=no
 
8923
  need_version=no
 
8924
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8925
  soname_spec='${libname}${release}${shared_ext}$major'
 
8926
  shlibpath_var=LD_LIBRARY_PATH
 
8927
  shlibpath_overrides_runpath=no
 
8928
  hardcode_into_libs=yes
 
8929
  dynamic_linker='GNU ld.so'
 
8930
  ;;
 
8931
 
 
8932
freebsd*)
 
8933
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8934
  version_type=freebsd-$objformat
 
8935
  case $version_type in
 
8936
    freebsd-elf*)
 
8937
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8938
      need_version=no
 
8939
      need_lib_prefix=no
 
8940
      ;;
 
8941
    freebsd-*)
 
8942
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8943
      need_version=yes
 
8944
      ;;
 
8945
  esac
 
8946
  shlibpath_var=LD_LIBRARY_PATH
 
8947
  case $host_os in
 
8948
  freebsd2*)
 
8949
    shlibpath_overrides_runpath=yes
 
8950
    ;;
 
8951
  freebsd3.01* | freebsdelf3.01*)
 
8952
    shlibpath_overrides_runpath=yes
 
8953
    hardcode_into_libs=yes
 
8954
    ;;
 
8955
  *) # from 3.2 on
 
8956
    shlibpath_overrides_runpath=no
 
8957
    hardcode_into_libs=yes
 
8958
    ;;
 
8959
  esac
 
8960
  ;;
 
8961
 
 
8962
gnu*)
 
8963
  version_type=linux
 
8964
  need_lib_prefix=no
 
8965
  need_version=no
 
8966
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8967
  soname_spec='${libname}${release}${shared_ext}$major'
 
8968
  shlibpath_var=LD_LIBRARY_PATH
 
8969
  hardcode_into_libs=yes
 
8970
  ;;
 
8971
 
 
8972
hpux9* | hpux10* | hpux11*)
 
8973
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8974
  # link against other versions.
 
8975
  version_type=sunos
 
8976
  need_lib_prefix=no
 
8977
  need_version=no
 
8978
  case "$host_cpu" in
 
8979
  ia64*)
 
8980
    shrext_cmds='.so'
 
8981
    hardcode_into_libs=yes
 
8982
    dynamic_linker="$host_os dld.so"
 
8983
    shlibpath_var=LD_LIBRARY_PATH
 
8984
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8985
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8986
    soname_spec='${libname}${release}${shared_ext}$major'
 
8987
    if test "X$HPUX_IA64_MODE" = X32; then
 
8988
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8989
    else
 
8990
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8991
    fi
 
8992
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8993
    ;;
 
8994
   hppa*64*)
 
8995
     shrext_cmds='.sl'
 
8996
     hardcode_into_libs=yes
 
8997
     dynamic_linker="$host_os dld.sl"
 
8998
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8999
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9000
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9001
     soname_spec='${libname}${release}${shared_ext}$major'
 
9002
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9003
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9004
     ;;
 
9005
   *)
 
9006
    shrext_cmds='.sl'
 
9007
    dynamic_linker="$host_os dld.sl"
 
9008
    shlibpath_var=SHLIB_PATH
 
9009
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9010
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9011
    soname_spec='${libname}${release}${shared_ext}$major'
 
9012
    ;;
 
9013
  esac
 
9014
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9015
  postinstall_cmds='chmod 555 $lib'
 
9016
  ;;
 
9017
 
 
9018
irix5* | irix6* | nonstopux*)
 
9019
  case $host_os in
 
9020
    nonstopux*) version_type=nonstopux ;;
 
9021
    *)
 
9022
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9023
                version_type=linux
 
9024
        else
 
9025
                version_type=irix
 
9026
        fi ;;
 
9027
  esac
 
9028
  need_lib_prefix=no
 
9029
  need_version=no
 
9030
  soname_spec='${libname}${release}${shared_ext}$major'
 
9031
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9032
  case $host_os in
 
9033
  irix5* | nonstopux*)
 
9034
    libsuff= shlibsuff=
 
9035
    ;;
 
9036
  *)
 
9037
    case $LD in # libtool.m4 will add one of these switches to LD
 
9038
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9039
      libsuff= shlibsuff= libmagic=32-bit;;
 
9040
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9041
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9042
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9043
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9044
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9045
    esac
 
9046
    ;;
 
9047
  esac
 
9048
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9049
  shlibpath_overrides_runpath=no
 
9050
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9051
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9052
  hardcode_into_libs=yes
 
9053
  ;;
 
9054
 
 
9055
# No shared lib support for Linux oldld, aout, or coff.
 
9056
linux*oldld* | linux*aout* | linux*coff*)
 
9057
  dynamic_linker=no
 
9058
  ;;
 
9059
 
 
9060
# This must be Linux ELF.
 
9061
linux*)
 
9062
  version_type=linux
 
9063
  need_lib_prefix=no
 
9064
  need_version=no
 
9065
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9066
  soname_spec='${libname}${release}${shared_ext}$major'
 
9067
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9068
  shlibpath_var=LD_LIBRARY_PATH
 
9069
  shlibpath_overrides_runpath=no
 
9070
  # This implies no fast_install, which is unacceptable.
 
9071
  # Some rework will be needed to allow for fast_install
 
9072
  # before this can be enabled.
 
9073
  hardcode_into_libs=yes
 
9074
 
 
9075
  # find out which ABI we are using
 
9076
  libsuff=
 
9077
  case "$host_cpu" in
 
9078
  x86_64*|s390x*|powerpc64*)
 
9079
    echo '#line 9079 "configure"' > conftest.$ac_ext
 
9080
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9081
  (eval $ac_compile) 2>&5
 
9082
  ac_status=$?
 
9083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9084
  (exit $ac_status); }; then
 
9085
      case `/usr/bin/file conftest.$ac_objext` in
 
9086
      *64-bit*)
 
9087
        libsuff=64
 
9088
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
9089
        ;;
 
9090
      esac
 
9091
    fi
 
9092
    rm -rf conftest*
 
9093
    ;;
 
9094
  esac
 
9095
 
 
9096
  # Append ld.so.conf contents to the search path
 
9097
  if test -f /etc/ld.so.conf; then
 
9098
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
9099
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
9100
  fi
 
9101
 
 
9102
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9103
  # powerpc, because MkLinux only supported shared libraries with the
 
9104
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9105
  # most powerpc-linux boxes support dynamic linking these days and
 
9106
  # people can always --disable-shared, the test was removed, and we
 
9107
  # assume the GNU/Linux dynamic linker is in use.
 
9108
  dynamic_linker='GNU/Linux ld.so'
 
9109
  ;;
 
9110
 
 
9111
knetbsd*-gnu)
 
9112
  version_type=linux
 
9113
  need_lib_prefix=no
 
9114
  need_version=no
 
9115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9116
  soname_spec='${libname}${release}${shared_ext}$major'
 
9117
  shlibpath_var=LD_LIBRARY_PATH
 
9118
  shlibpath_overrides_runpath=no
 
9119
  hardcode_into_libs=yes
 
9120
  dynamic_linker='GNU ld.so'
 
9121
  ;;
 
9122
 
 
9123
netbsd*)
 
9124
  version_type=sunos
 
9125
  need_lib_prefix=no
 
9126
  need_version=no
 
9127
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9128
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9129
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9130
    dynamic_linker='NetBSD (a.out) ld.so'
 
9131
  else
 
9132
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9133
    soname_spec='${libname}${release}${shared_ext}$major'
 
9134
    dynamic_linker='NetBSD ld.elf_so'
 
9135
  fi
 
9136
  shlibpath_var=LD_LIBRARY_PATH
 
9137
  shlibpath_overrides_runpath=yes
 
9138
  hardcode_into_libs=yes
 
9139
  ;;
 
9140
 
 
9141
newsos6)
 
9142
  version_type=linux
 
9143
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9144
  shlibpath_var=LD_LIBRARY_PATH
 
9145
  shlibpath_overrides_runpath=yes
 
9146
  ;;
 
9147
 
 
9148
nto-qnx*)
 
9149
  version_type=linux
 
9150
  need_lib_prefix=no
 
9151
  need_version=no
 
9152
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9153
  soname_spec='${libname}${release}${shared_ext}$major'
 
9154
  shlibpath_var=LD_LIBRARY_PATH
 
9155
  shlibpath_overrides_runpath=yes
 
9156
  ;;
 
9157
 
 
9158
openbsd*)
 
9159
  version_type=sunos
 
9160
  need_lib_prefix=no
 
9161
  need_version=no
 
9162
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9163
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9164
  shlibpath_var=LD_LIBRARY_PATH
 
9165
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9166
    case $host_os in
 
9167
      openbsd2.[89] | openbsd2.[89].*)
 
9168
        shlibpath_overrides_runpath=no
 
9169
        ;;
 
9170
      *)
 
9171
        shlibpath_overrides_runpath=yes
 
9172
        ;;
 
9173
      esac
 
9174
  else
 
9175
    shlibpath_overrides_runpath=yes
 
9176
  fi
 
9177
  ;;
 
9178
 
 
9179
os2*)
 
9180
  libname_spec='$name'
 
9181
  shrext_cmds=".dll"
 
9182
  need_lib_prefix=no
 
9183
  library_names_spec='$libname${shared_ext} $libname.a'
 
9184
  dynamic_linker='OS/2 ld.exe'
 
9185
  shlibpath_var=LIBPATH
 
9186
  ;;
 
9187
 
 
9188
osf3* | osf4* | osf5*)
 
9189
  version_type=osf
 
9190
  need_lib_prefix=no
 
9191
  need_version=no
 
9192
  soname_spec='${libname}${release}${shared_ext}$major'
 
9193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9194
  shlibpath_var=LD_LIBRARY_PATH
 
9195
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9196
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9197
  ;;
 
9198
 
 
9199
sco3.2v5*)
 
9200
  version_type=osf
 
9201
  soname_spec='${libname}${release}${shared_ext}$major'
 
9202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9203
  shlibpath_var=LD_LIBRARY_PATH
 
9204
  ;;
 
9205
 
 
9206
solaris*)
 
9207
  version_type=linux
 
9208
  need_lib_prefix=no
 
9209
  need_version=no
 
9210
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9211
  soname_spec='${libname}${release}${shared_ext}$major'
 
9212
  shlibpath_var=LD_LIBRARY_PATH
 
9213
  shlibpath_overrides_runpath=yes
 
9214
  hardcode_into_libs=yes
 
9215
  # ldd complains unless libraries are executable
 
9216
  postinstall_cmds='chmod +x $lib'
 
9217
  ;;
 
9218
 
 
9219
sunos4*)
 
9220
  version_type=sunos
 
9221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9222
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9223
  shlibpath_var=LD_LIBRARY_PATH
 
9224
  shlibpath_overrides_runpath=yes
 
9225
  if test "$with_gnu_ld" = yes; then
 
9226
    need_lib_prefix=no
 
9227
  fi
 
9228
  need_version=yes
 
9229
  ;;
 
9230
 
 
9231
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9232
  version_type=linux
 
9233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9234
  soname_spec='${libname}${release}${shared_ext}$major'
 
9235
  shlibpath_var=LD_LIBRARY_PATH
 
9236
  case $host_vendor in
 
9237
    sni)
 
9238
      shlibpath_overrides_runpath=no
 
9239
      need_lib_prefix=no
 
9240
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9241
      runpath_var=LD_RUN_PATH
 
9242
      ;;
 
9243
    siemens)
 
9244
      need_lib_prefix=no
 
9245
      ;;
 
9246
    motorola)
 
9247
      need_lib_prefix=no
 
9248
      need_version=no
 
9249
      shlibpath_overrides_runpath=no
 
9250
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9251
      ;;
 
9252
  esac
 
9253
  ;;
 
9254
 
 
9255
sysv4*MP*)
 
9256
  if test -d /usr/nec ;then
 
9257
    version_type=linux
 
9258
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9259
    soname_spec='$libname${shared_ext}.$major'
 
9260
    shlibpath_var=LD_LIBRARY_PATH
 
9261
  fi
 
9262
  ;;
 
9263
 
 
9264
uts4*)
 
9265
  version_type=linux
 
9266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9267
  soname_spec='${libname}${release}${shared_ext}$major'
 
9268
  shlibpath_var=LD_LIBRARY_PATH
 
9269
  ;;
 
9270
 
 
9271
*)
 
9272
  dynamic_linker=no
 
9273
  ;;
 
9274
esac
 
9275
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9276
echo "${ECHO_T}$dynamic_linker" >&6
 
9277
test "$dynamic_linker" = no && can_build_shared=no
 
9278
 
 
9279
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9280
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
9281
hardcode_action=
 
9282
if test -n "$hardcode_libdir_flag_spec" || \
 
9283
   test -n "$runpath_var" || \
 
9284
   test "X$hardcode_automatic" = "Xyes" ; then
 
9285
 
 
9286
  # We can hardcode non-existant directories.
 
9287
  if test "$hardcode_direct" != no &&
 
9288
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9289
     # have to relink, otherwise we might link with an installed library
 
9290
     # when we should be linking with a yet-to-be-installed one
 
9291
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9292
     test "$hardcode_minus_L" != no; then
 
9293
    # Linking always hardcodes the temporary library directory.
 
9294
    hardcode_action=relink
 
9295
  else
 
9296
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9297
    hardcode_action=immediate
 
9298
  fi
 
9299
else
 
9300
  # We cannot hardcode anything, or else we can only hardcode existing
 
9301
  # directories.
 
9302
  hardcode_action=unsupported
 
9303
fi
 
9304
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9305
echo "${ECHO_T}$hardcode_action" >&6
 
9306
 
 
9307
if test "$hardcode_action" = relink; then
 
9308
  # Fast installation is not supported
 
9309
  enable_fast_install=no
 
9310
elif test "$shlibpath_overrides_runpath" = yes ||
 
9311
     test "$enable_shared" = no; then
 
9312
  # Fast installation is not necessary
 
9313
  enable_fast_install=needless
 
9314
fi
 
9315
 
 
9316
striplib=
 
9317
old_striplib=
 
9318
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9319
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
9320
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9321
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9322
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9323
  echo "$as_me:$LINENO: result: yes" >&5
 
9324
echo "${ECHO_T}yes" >&6
 
9325
else
 
9326
# FIXME - insert some real tests, host_os isn't really good enough
 
9327
  case $host_os in
 
9328
   darwin*)
 
9329
       if test -n "$STRIP" ; then
 
9330
         striplib="$STRIP -x"
 
9331
         echo "$as_me:$LINENO: result: yes" >&5
 
9332
echo "${ECHO_T}yes" >&6
 
9333
       else
 
9334
  echo "$as_me:$LINENO: result: no" >&5
 
9335
echo "${ECHO_T}no" >&6
 
9336
fi
 
9337
       ;;
 
9338
   *)
 
9339
  echo "$as_me:$LINENO: result: no" >&5
 
9340
echo "${ECHO_T}no" >&6
 
9341
    ;;
 
9342
  esac
 
9343
fi
 
9344
 
 
9345
if test "x$enable_dlopen" != xyes; then
 
9346
  enable_dlopen=unknown
 
9347
  enable_dlopen_self=unknown
 
9348
  enable_dlopen_self_static=unknown
 
9349
else
 
9350
  lt_cv_dlopen=no
 
9351
  lt_cv_dlopen_libs=
 
9352
 
 
9353
  case $host_os in
 
9354
  beos*)
 
9355
    lt_cv_dlopen="load_add_on"
 
9356
    lt_cv_dlopen_libs=
 
9357
    lt_cv_dlopen_self=yes
 
9358
    ;;
 
9359
 
 
9360
  mingw* | pw32*)
 
9361
    lt_cv_dlopen="LoadLibrary"
 
9362
    lt_cv_dlopen_libs=
 
9363
   ;;
 
9364
 
 
9365
  cygwin*)
 
9366
    lt_cv_dlopen="dlopen"
 
9367
    lt_cv_dlopen_libs=
 
9368
   ;;
 
9369
 
 
9370
  darwin*)
 
9371
  # if libdl is installed we need to link against it
 
9372
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9373
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9374
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9375
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9376
else
 
9377
  ac_check_lib_save_LIBS=$LIBS
 
9378
LIBS="-ldl  $LIBS"
 
9379
cat >conftest.$ac_ext <<_ACEOF
 
9380
/* confdefs.h.  */
 
9381
_ACEOF
 
9382
cat confdefs.h >>conftest.$ac_ext
 
9383
cat >>conftest.$ac_ext <<_ACEOF
 
9384
/* end confdefs.h.  */
 
9385
 
 
9386
/* Override any gcc2 internal prototype to avoid an error.  */
 
9387
#ifdef __cplusplus
 
9388
extern "C"
 
9389
#endif
 
9390
/* We use char because int might match the return type of a gcc2
 
9391
   builtin and then its argument prototype would still apply.  */
 
9392
char dlopen ();
 
9393
int
 
9394
main ()
 
9395
{
 
9396
dlopen ();
 
9397
  ;
 
9398
  return 0;
 
9399
}
 
9400
_ACEOF
 
9401
rm -f conftest.$ac_objext conftest$ac_exeext
 
9402
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9403
  (eval $ac_link) 2>conftest.er1
 
9404
  ac_status=$?
 
9405
  grep -v '^ *+' conftest.er1 >conftest.err
 
9406
  rm -f conftest.er1
 
9407
  cat conftest.err >&5
 
9408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9409
  (exit $ac_status); } &&
 
9410
         { ac_try='test -z "$ac_c_werror_flag"
 
9411
                         || test ! -s conftest.err'
 
9412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9413
  (eval $ac_try) 2>&5
 
9414
  ac_status=$?
 
9415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9416
  (exit $ac_status); }; } &&
 
9417
         { ac_try='test -s conftest$ac_exeext'
 
9418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9419
  (eval $ac_try) 2>&5
 
9420
  ac_status=$?
 
9421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9422
  (exit $ac_status); }; }; then
 
9423
  ac_cv_lib_dl_dlopen=yes
 
9424
else
 
9425
  echo "$as_me: failed program was:" >&5
 
9426
sed 's/^/| /' conftest.$ac_ext >&5
 
9427
 
 
9428
ac_cv_lib_dl_dlopen=no
 
9429
fi
 
9430
rm -f conftest.err conftest.$ac_objext \
 
9431
      conftest$ac_exeext conftest.$ac_ext
 
9432
LIBS=$ac_check_lib_save_LIBS
 
9433
fi
 
9434
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9435
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9436
if test $ac_cv_lib_dl_dlopen = yes; then
 
9437
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9438
else
 
9439
 
 
9440
    lt_cv_dlopen="dyld"
 
9441
    lt_cv_dlopen_libs=
 
9442
    lt_cv_dlopen_self=yes
 
9443
 
 
9444
fi
 
9445
 
 
9446
   ;;
 
9447
 
 
9448
  *)
 
9449
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
9450
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
9451
if test "${ac_cv_func_shl_load+set}" = set; then
 
9452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9453
else
 
9454
  cat >conftest.$ac_ext <<_ACEOF
 
9455
/* confdefs.h.  */
 
9456
_ACEOF
 
9457
cat confdefs.h >>conftest.$ac_ext
 
9458
cat >>conftest.$ac_ext <<_ACEOF
 
9459
/* end confdefs.h.  */
 
9460
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9461
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9462
#define shl_load innocuous_shl_load
 
9463
 
 
9464
/* System header to define __stub macros and hopefully few prototypes,
 
9465
    which can conflict with char shl_load (); below.
 
9466
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9467
    <limits.h> exists even on freestanding compilers.  */
 
9468
 
 
9469
#ifdef __STDC__
 
9470
# include <limits.h>
 
9471
#else
 
9472
# include <assert.h>
 
9473
#endif
 
9474
 
 
9475
#undef shl_load
 
9476
 
 
9477
/* Override any gcc2 internal prototype to avoid an error.  */
 
9478
#ifdef __cplusplus
 
9479
extern "C"
 
9480
{
 
9481
#endif
 
9482
/* We use char because int might match the return type of a gcc2
 
9483
   builtin and then its argument prototype would still apply.  */
 
9484
char shl_load ();
 
9485
/* The GNU C library defines this for functions which it implements
 
9486
    to always fail with ENOSYS.  Some functions are actually named
 
9487
    something starting with __ and the normal name is an alias.  */
 
9488
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
9489
choke me
 
9490
#else
 
9491
char (*f) () = shl_load;
 
9492
#endif
 
9493
#ifdef __cplusplus
 
9494
}
 
9495
#endif
 
9496
 
 
9497
int
 
9498
main ()
 
9499
{
 
9500
return f != shl_load;
 
9501
  ;
 
9502
  return 0;
 
9503
}
 
9504
_ACEOF
 
9505
rm -f conftest.$ac_objext conftest$ac_exeext
 
9506
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9507
  (eval $ac_link) 2>conftest.er1
 
9508
  ac_status=$?
 
9509
  grep -v '^ *+' conftest.er1 >conftest.err
 
9510
  rm -f conftest.er1
 
9511
  cat conftest.err >&5
 
9512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9513
  (exit $ac_status); } &&
 
9514
         { ac_try='test -z "$ac_c_werror_flag"
 
9515
                         || test ! -s conftest.err'
 
9516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9517
  (eval $ac_try) 2>&5
 
9518
  ac_status=$?
 
9519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9520
  (exit $ac_status); }; } &&
 
9521
         { ac_try='test -s conftest$ac_exeext'
 
9522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9523
  (eval $ac_try) 2>&5
 
9524
  ac_status=$?
 
9525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9526
  (exit $ac_status); }; }; then
 
9527
  ac_cv_func_shl_load=yes
 
9528
else
 
9529
  echo "$as_me: failed program was:" >&5
 
9530
sed 's/^/| /' conftest.$ac_ext >&5
 
9531
 
 
9532
ac_cv_func_shl_load=no
 
9533
fi
 
9534
rm -f conftest.err conftest.$ac_objext \
 
9535
      conftest$ac_exeext conftest.$ac_ext
 
9536
fi
 
9537
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9538
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
9539
if test $ac_cv_func_shl_load = yes; then
 
9540
  lt_cv_dlopen="shl_load"
 
9541
else
 
9542
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9543
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
9544
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9546
else
 
9547
  ac_check_lib_save_LIBS=$LIBS
 
9548
LIBS="-ldld  $LIBS"
 
9549
cat >conftest.$ac_ext <<_ACEOF
 
9550
/* confdefs.h.  */
 
9551
_ACEOF
 
9552
cat confdefs.h >>conftest.$ac_ext
 
9553
cat >>conftest.$ac_ext <<_ACEOF
 
9554
/* end confdefs.h.  */
 
9555
 
 
9556
/* Override any gcc2 internal prototype to avoid an error.  */
 
9557
#ifdef __cplusplus
 
9558
extern "C"
 
9559
#endif
 
9560
/* We use char because int might match the return type of a gcc2
 
9561
   builtin and then its argument prototype would still apply.  */
 
9562
char shl_load ();
 
9563
int
 
9564
main ()
 
9565
{
 
9566
shl_load ();
 
9567
  ;
 
9568
  return 0;
 
9569
}
 
9570
_ACEOF
 
9571
rm -f conftest.$ac_objext conftest$ac_exeext
 
9572
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9573
  (eval $ac_link) 2>conftest.er1
 
9574
  ac_status=$?
 
9575
  grep -v '^ *+' conftest.er1 >conftest.err
 
9576
  rm -f conftest.er1
 
9577
  cat conftest.err >&5
 
9578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9579
  (exit $ac_status); } &&
 
9580
         { ac_try='test -z "$ac_c_werror_flag"
 
9581
                         || test ! -s conftest.err'
 
9582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9583
  (eval $ac_try) 2>&5
 
9584
  ac_status=$?
 
9585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9586
  (exit $ac_status); }; } &&
 
9587
         { ac_try='test -s conftest$ac_exeext'
 
9588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9589
  (eval $ac_try) 2>&5
 
9590
  ac_status=$?
 
9591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9592
  (exit $ac_status); }; }; then
 
9593
  ac_cv_lib_dld_shl_load=yes
 
9594
else
 
9595
  echo "$as_me: failed program was:" >&5
 
9596
sed 's/^/| /' conftest.$ac_ext >&5
 
9597
 
 
9598
ac_cv_lib_dld_shl_load=no
 
9599
fi
 
9600
rm -f conftest.err conftest.$ac_objext \
 
9601
      conftest$ac_exeext conftest.$ac_ext
 
9602
LIBS=$ac_check_lib_save_LIBS
 
9603
fi
 
9604
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9605
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
9606
if test $ac_cv_lib_dld_shl_load = yes; then
 
9607
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9608
else
 
9609
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
9610
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
9611
if test "${ac_cv_func_dlopen+set}" = set; then
 
9612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9613
else
 
9614
  cat >conftest.$ac_ext <<_ACEOF
 
9615
/* confdefs.h.  */
 
9616
_ACEOF
 
9617
cat confdefs.h >>conftest.$ac_ext
 
9618
cat >>conftest.$ac_ext <<_ACEOF
 
9619
/* end confdefs.h.  */
 
9620
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9621
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9622
#define dlopen innocuous_dlopen
 
9623
 
 
9624
/* System header to define __stub macros and hopefully few prototypes,
 
9625
    which can conflict with char dlopen (); below.
 
9626
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9627
    <limits.h> exists even on freestanding compilers.  */
 
9628
 
 
9629
#ifdef __STDC__
 
9630
# include <limits.h>
 
9631
#else
 
9632
# include <assert.h>
 
9633
#endif
 
9634
 
 
9635
#undef dlopen
 
9636
 
 
9637
/* Override any gcc2 internal prototype to avoid an error.  */
 
9638
#ifdef __cplusplus
 
9639
extern "C"
 
9640
{
 
9641
#endif
 
9642
/* We use char because int might match the return type of a gcc2
 
9643
   builtin and then its argument prototype would still apply.  */
 
9644
char dlopen ();
 
9645
/* The GNU C library defines this for functions which it implements
 
9646
    to always fail with ENOSYS.  Some functions are actually named
 
9647
    something starting with __ and the normal name is an alias.  */
 
9648
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9649
choke me
 
9650
#else
 
9651
char (*f) () = dlopen;
 
9652
#endif
 
9653
#ifdef __cplusplus
 
9654
}
 
9655
#endif
 
9656
 
 
9657
int
 
9658
main ()
 
9659
{
 
9660
return f != dlopen;
 
9661
  ;
 
9662
  return 0;
 
9663
}
 
9664
_ACEOF
 
9665
rm -f conftest.$ac_objext conftest$ac_exeext
 
9666
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9667
  (eval $ac_link) 2>conftest.er1
 
9668
  ac_status=$?
 
9669
  grep -v '^ *+' conftest.er1 >conftest.err
 
9670
  rm -f conftest.er1
 
9671
  cat conftest.err >&5
 
9672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9673
  (exit $ac_status); } &&
 
9674
         { ac_try='test -z "$ac_c_werror_flag"
 
9675
                         || test ! -s conftest.err'
 
9676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9677
  (eval $ac_try) 2>&5
 
9678
  ac_status=$?
 
9679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9680
  (exit $ac_status); }; } &&
 
9681
         { ac_try='test -s conftest$ac_exeext'
 
9682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9683
  (eval $ac_try) 2>&5
 
9684
  ac_status=$?
 
9685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9686
  (exit $ac_status); }; }; then
 
9687
  ac_cv_func_dlopen=yes
 
9688
else
 
9689
  echo "$as_me: failed program was:" >&5
 
9690
sed 's/^/| /' conftest.$ac_ext >&5
 
9691
 
 
9692
ac_cv_func_dlopen=no
 
9693
fi
 
9694
rm -f conftest.err conftest.$ac_objext \
 
9695
      conftest$ac_exeext conftest.$ac_ext
 
9696
fi
 
9697
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9698
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
9699
if test $ac_cv_func_dlopen = yes; then
 
9700
  lt_cv_dlopen="dlopen"
 
9701
else
 
9702
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9703
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9704
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9706
else
 
9707
  ac_check_lib_save_LIBS=$LIBS
 
9708
LIBS="-ldl  $LIBS"
 
9709
cat >conftest.$ac_ext <<_ACEOF
 
9710
/* confdefs.h.  */
 
9711
_ACEOF
 
9712
cat confdefs.h >>conftest.$ac_ext
 
9713
cat >>conftest.$ac_ext <<_ACEOF
 
9714
/* end confdefs.h.  */
 
9715
 
 
9716
/* Override any gcc2 internal prototype to avoid an error.  */
 
9717
#ifdef __cplusplus
 
9718
extern "C"
 
9719
#endif
 
9720
/* We use char because int might match the return type of a gcc2
 
9721
   builtin and then its argument prototype would still apply.  */
 
9722
char dlopen ();
 
9723
int
 
9724
main ()
 
9725
{
 
9726
dlopen ();
 
9727
  ;
 
9728
  return 0;
 
9729
}
 
9730
_ACEOF
 
9731
rm -f conftest.$ac_objext conftest$ac_exeext
 
9732
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9733
  (eval $ac_link) 2>conftest.er1
 
9734
  ac_status=$?
 
9735
  grep -v '^ *+' conftest.er1 >conftest.err
 
9736
  rm -f conftest.er1
 
9737
  cat conftest.err >&5
 
9738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9739
  (exit $ac_status); } &&
 
9740
         { ac_try='test -z "$ac_c_werror_flag"
 
9741
                         || test ! -s conftest.err'
 
9742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9743
  (eval $ac_try) 2>&5
 
9744
  ac_status=$?
 
9745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9746
  (exit $ac_status); }; } &&
 
9747
         { ac_try='test -s conftest$ac_exeext'
 
9748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9749
  (eval $ac_try) 2>&5
 
9750
  ac_status=$?
 
9751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9752
  (exit $ac_status); }; }; then
 
9753
  ac_cv_lib_dl_dlopen=yes
 
9754
else
 
9755
  echo "$as_me: failed program was:" >&5
 
9756
sed 's/^/| /' conftest.$ac_ext >&5
 
9757
 
 
9758
ac_cv_lib_dl_dlopen=no
 
9759
fi
 
9760
rm -f conftest.err conftest.$ac_objext \
 
9761
      conftest$ac_exeext conftest.$ac_ext
 
9762
LIBS=$ac_check_lib_save_LIBS
 
9763
fi
 
9764
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9765
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9766
if test $ac_cv_lib_dl_dlopen = yes; then
 
9767
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9768
else
 
9769
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9770
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
9771
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9773
else
 
9774
  ac_check_lib_save_LIBS=$LIBS
 
9775
LIBS="-lsvld  $LIBS"
 
9776
cat >conftest.$ac_ext <<_ACEOF
 
9777
/* confdefs.h.  */
 
9778
_ACEOF
 
9779
cat confdefs.h >>conftest.$ac_ext
 
9780
cat >>conftest.$ac_ext <<_ACEOF
 
9781
/* end confdefs.h.  */
 
9782
 
 
9783
/* Override any gcc2 internal prototype to avoid an error.  */
 
9784
#ifdef __cplusplus
 
9785
extern "C"
 
9786
#endif
 
9787
/* We use char because int might match the return type of a gcc2
 
9788
   builtin and then its argument prototype would still apply.  */
 
9789
char dlopen ();
 
9790
int
 
9791
main ()
 
9792
{
 
9793
dlopen ();
 
9794
  ;
 
9795
  return 0;
 
9796
}
 
9797
_ACEOF
 
9798
rm -f conftest.$ac_objext conftest$ac_exeext
 
9799
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9800
  (eval $ac_link) 2>conftest.er1
 
9801
  ac_status=$?
 
9802
  grep -v '^ *+' conftest.er1 >conftest.err
 
9803
  rm -f conftest.er1
 
9804
  cat conftest.err >&5
 
9805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9806
  (exit $ac_status); } &&
 
9807
         { ac_try='test -z "$ac_c_werror_flag"
 
9808
                         || test ! -s conftest.err'
 
9809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9810
  (eval $ac_try) 2>&5
 
9811
  ac_status=$?
 
9812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9813
  (exit $ac_status); }; } &&
 
9814
         { ac_try='test -s conftest$ac_exeext'
 
9815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9816
  (eval $ac_try) 2>&5
 
9817
  ac_status=$?
 
9818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9819
  (exit $ac_status); }; }; then
 
9820
  ac_cv_lib_svld_dlopen=yes
 
9821
else
 
9822
  echo "$as_me: failed program was:" >&5
 
9823
sed 's/^/| /' conftest.$ac_ext >&5
 
9824
 
 
9825
ac_cv_lib_svld_dlopen=no
 
9826
fi
 
9827
rm -f conftest.err conftest.$ac_objext \
 
9828
      conftest$ac_exeext conftest.$ac_ext
 
9829
LIBS=$ac_check_lib_save_LIBS
 
9830
fi
 
9831
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9832
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9833
if test $ac_cv_lib_svld_dlopen = yes; then
 
9834
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9835
else
 
9836
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9837
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9838
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9840
else
 
9841
  ac_check_lib_save_LIBS=$LIBS
 
9842
LIBS="-ldld  $LIBS"
 
9843
cat >conftest.$ac_ext <<_ACEOF
 
9844
/* confdefs.h.  */
 
9845
_ACEOF
 
9846
cat confdefs.h >>conftest.$ac_ext
 
9847
cat >>conftest.$ac_ext <<_ACEOF
 
9848
/* end confdefs.h.  */
 
9849
 
 
9850
/* Override any gcc2 internal prototype to avoid an error.  */
 
9851
#ifdef __cplusplus
 
9852
extern "C"
 
9853
#endif
 
9854
/* We use char because int might match the return type of a gcc2
 
9855
   builtin and then its argument prototype would still apply.  */
 
9856
char dld_link ();
 
9857
int
 
9858
main ()
 
9859
{
 
9860
dld_link ();
 
9861
  ;
 
9862
  return 0;
 
9863
}
 
9864
_ACEOF
 
9865
rm -f conftest.$ac_objext conftest$ac_exeext
 
9866
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9867
  (eval $ac_link) 2>conftest.er1
 
9868
  ac_status=$?
 
9869
  grep -v '^ *+' conftest.er1 >conftest.err
 
9870
  rm -f conftest.er1
 
9871
  cat conftest.err >&5
 
9872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9873
  (exit $ac_status); } &&
 
9874
         { ac_try='test -z "$ac_c_werror_flag"
 
9875
                         || test ! -s conftest.err'
 
9876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9877
  (eval $ac_try) 2>&5
 
9878
  ac_status=$?
 
9879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9880
  (exit $ac_status); }; } &&
 
9881
         { ac_try='test -s conftest$ac_exeext'
 
9882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9883
  (eval $ac_try) 2>&5
 
9884
  ac_status=$?
 
9885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9886
  (exit $ac_status); }; }; then
 
9887
  ac_cv_lib_dld_dld_link=yes
 
9888
else
 
9889
  echo "$as_me: failed program was:" >&5
 
9890
sed 's/^/| /' conftest.$ac_ext >&5
 
9891
 
 
9892
ac_cv_lib_dld_dld_link=no
 
9893
fi
 
9894
rm -f conftest.err conftest.$ac_objext \
 
9895
      conftest$ac_exeext conftest.$ac_ext
 
9896
LIBS=$ac_check_lib_save_LIBS
 
9897
fi
 
9898
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9899
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9900
if test $ac_cv_lib_dld_dld_link = yes; then
 
9901
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9902
fi
 
9903
 
 
9904
 
 
9905
fi
 
9906
 
 
9907
 
 
9908
fi
 
9909
 
 
9910
 
 
9911
fi
 
9912
 
 
9913
 
 
9914
fi
 
9915
 
 
9916
 
 
9917
fi
 
9918
 
 
9919
    ;;
 
9920
  esac
 
9921
 
 
9922
  if test "x$lt_cv_dlopen" != xno; then
 
9923
    enable_dlopen=yes
 
9924
  else
 
9925
    enable_dlopen=no
 
9926
  fi
 
9927
 
 
9928
  case $lt_cv_dlopen in
 
9929
  dlopen)
 
9930
    save_CPPFLAGS="$CPPFLAGS"
 
9931
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9932
 
 
9933
    save_LDFLAGS="$LDFLAGS"
 
9934
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9935
 
 
9936
    save_LIBS="$LIBS"
 
9937
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9938
 
 
9939
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9940
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9941
if test "${lt_cv_dlopen_self+set}" = set; then
 
9942
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9943
else
 
9944
          if test "$cross_compiling" = yes; then :
 
9945
  lt_cv_dlopen_self=cross
 
9946
else
 
9947
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9948
  lt_status=$lt_dlunknown
 
9949
  cat > conftest.$ac_ext <<EOF
 
9950
#line 9950 "configure"
 
9951
#include "confdefs.h"
 
9952
 
 
9953
#if HAVE_DLFCN_H
 
9954
#include <dlfcn.h>
 
9955
#endif
 
9956
 
 
9957
#include <stdio.h>
 
9958
 
 
9959
#ifdef RTLD_GLOBAL
 
9960
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9961
#else
 
9962
#  ifdef DL_GLOBAL
 
9963
#    define LT_DLGLOBAL         DL_GLOBAL
 
9964
#  else
 
9965
#    define LT_DLGLOBAL         0
 
9966
#  endif
 
9967
#endif
 
9968
 
 
9969
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9970
   find out it does not work in some platform. */
 
9971
#ifndef LT_DLLAZY_OR_NOW
 
9972
#  ifdef RTLD_LAZY
 
9973
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9974
#  else
 
9975
#    ifdef DL_LAZY
 
9976
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9977
#    else
 
9978
#      ifdef RTLD_NOW
 
9979
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9980
#      else
 
9981
#        ifdef DL_NOW
 
9982
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9983
#        else
 
9984
#          define LT_DLLAZY_OR_NOW      0
 
9985
#        endif
 
9986
#      endif
 
9987
#    endif
 
9988
#  endif
 
9989
#endif
 
9990
 
 
9991
#ifdef __cplusplus
 
9992
extern "C" void exit (int);
 
9993
#endif
 
9994
 
 
9995
void fnord() { int i=42;}
 
9996
int main ()
 
9997
{
 
9998
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9999
  int status = $lt_dlunknown;
 
10000
 
 
10001
  if (self)
 
10002
    {
 
10003
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10004
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10005
      /* dlclose (self); */
 
10006
    }
 
10007
 
 
10008
    exit (status);
 
10009
}
 
10010
EOF
 
10011
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10012
  (eval $ac_link) 2>&5
 
10013
  ac_status=$?
 
10014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10015
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10016
    (./conftest; exit; ) 2>/dev/null
 
10017
    lt_status=$?
 
10018
    case x$lt_status in
 
10019
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10020
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10021
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
10022
    esac
 
10023
  else :
 
10024
    # compilation failed
 
10025
    lt_cv_dlopen_self=no
 
10026
  fi
 
10027
fi
 
10028
rm -fr conftest*
 
10029
 
 
10030
 
 
10031
fi
 
10032
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10033
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
10034
 
 
10035
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10036
      LDFLAGS="$LDFLAGS $link_static_flag"
 
10037
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10038
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
10039
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10041
else
 
10042
          if test "$cross_compiling" = yes; then :
 
10043
  lt_cv_dlopen_self_static=cross
 
10044
else
 
10045
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10046
  lt_status=$lt_dlunknown
 
10047
  cat > conftest.$ac_ext <<EOF
 
10048
#line 10048 "configure"
 
10049
#include "confdefs.h"
 
10050
 
 
10051
#if HAVE_DLFCN_H
 
10052
#include <dlfcn.h>
 
10053
#endif
 
10054
 
 
10055
#include <stdio.h>
 
10056
 
 
10057
#ifdef RTLD_GLOBAL
 
10058
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10059
#else
 
10060
#  ifdef DL_GLOBAL
 
10061
#    define LT_DLGLOBAL         DL_GLOBAL
 
10062
#  else
 
10063
#    define LT_DLGLOBAL         0
 
10064
#  endif
 
10065
#endif
 
10066
 
 
10067
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10068
   find out it does not work in some platform. */
 
10069
#ifndef LT_DLLAZY_OR_NOW
 
10070
#  ifdef RTLD_LAZY
 
10071
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10072
#  else
 
10073
#    ifdef DL_LAZY
 
10074
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10075
#    else
 
10076
#      ifdef RTLD_NOW
 
10077
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10078
#      else
 
10079
#        ifdef DL_NOW
 
10080
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10081
#        else
 
10082
#          define LT_DLLAZY_OR_NOW      0
 
10083
#        endif
 
10084
#      endif
 
10085
#    endif
 
10086
#  endif
 
10087
#endif
 
10088
 
 
10089
#ifdef __cplusplus
 
10090
extern "C" void exit (int);
 
10091
#endif
 
10092
 
 
10093
void fnord() { int i=42;}
 
10094
int main ()
 
10095
{
 
10096
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10097
  int status = $lt_dlunknown;
 
10098
 
 
10099
  if (self)
 
10100
    {
 
10101
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10102
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10103
      /* dlclose (self); */
 
10104
    }
 
10105
 
 
10106
    exit (status);
 
10107
}
 
10108
EOF
 
10109
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10110
  (eval $ac_link) 2>&5
 
10111
  ac_status=$?
 
10112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10113
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10114
    (./conftest; exit; ) 2>/dev/null
 
10115
    lt_status=$?
 
10116
    case x$lt_status in
 
10117
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10118
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10119
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10120
    esac
 
10121
  else :
 
10122
    # compilation failed
 
10123
    lt_cv_dlopen_self_static=no
 
10124
  fi
 
10125
fi
 
10126
rm -fr conftest*
 
10127
 
 
10128
 
 
10129
fi
 
10130
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10131
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
10132
    fi
 
10133
 
 
10134
    CPPFLAGS="$save_CPPFLAGS"
 
10135
    LDFLAGS="$save_LDFLAGS"
 
10136
    LIBS="$save_LIBS"
 
10137
    ;;
 
10138
  esac
 
10139
 
 
10140
  case $lt_cv_dlopen_self in
 
10141
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10142
  *) enable_dlopen_self=unknown ;;
 
10143
  esac
 
10144
 
 
10145
  case $lt_cv_dlopen_self_static in
 
10146
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10147
  *) enable_dlopen_self_static=unknown ;;
 
10148
  esac
 
10149
fi
 
10150
 
 
10151
 
 
10152
# Report which librarie types wil actually be built
 
10153
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10154
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
10155
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10156
echo "${ECHO_T}$can_build_shared" >&6
 
10157
 
 
10158
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10159
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
10160
test "$can_build_shared" = "no" && enable_shared=no
 
10161
 
 
10162
# On AIX, shared libraries and static libraries use the same namespace, and
 
10163
# are all built from PIC.
 
10164
case "$host_os" in
 
10165
aix3*)
 
10166
  test "$enable_shared" = yes && enable_static=no
 
10167
  if test -n "$RANLIB"; then
 
10168
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10169
    postinstall_cmds='$RANLIB $lib'
 
10170
  fi
 
10171
  ;;
 
10172
 
 
10173
aix4* | aix5*)
 
10174
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10175
    test "$enable_shared" = yes && enable_static=no
 
10176
  fi
 
10177
    ;;
 
10178
esac
 
10179
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10180
echo "${ECHO_T}$enable_shared" >&6
 
10181
 
 
10182
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10183
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
10184
# Make sure either enable_shared or enable_static is yes.
 
10185
test "$enable_shared" = yes || enable_static=yes
 
10186
echo "$as_me:$LINENO: result: $enable_static" >&5
 
10187
echo "${ECHO_T}$enable_static" >&6
 
10188
 
 
10189
# The else clause should only fire when bootstrapping the
 
10190
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10191
# with your package, and you will get complaints that there are
 
10192
# no rules to generate ltmain.sh.
 
10193
if test -f "$ltmain"; then
 
10194
  # See if we are running on zsh, and set the options which allow our commands through
 
10195
  # without removal of \ escapes.
 
10196
  if test -n "${ZSH_VERSION+set}" ; then
 
10197
    setopt NO_GLOB_SUBST
 
10198
  fi
 
10199
  # Now quote all the things that may contain metacharacters while being
 
10200
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10201
  # variables and quote the copies for generation of the libtool script.
 
10202
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
10203
    SED SHELL STRIP \
 
10204
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10205
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10206
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10207
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10208
    lt_cv_sys_global_symbol_to_c_name_address \
 
10209
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10210
    old_postinstall_cmds old_postuninstall_cmds \
 
10211
    compiler \
 
10212
    CC \
 
10213
    LD \
 
10214
    lt_prog_compiler_wl \
 
10215
    lt_prog_compiler_pic \
 
10216
    lt_prog_compiler_static \
 
10217
    lt_prog_compiler_no_builtin_flag \
 
10218
    export_dynamic_flag_spec \
 
10219
    thread_safe_flag_spec \
 
10220
    whole_archive_flag_spec \
 
10221
    enable_shared_with_static_runtimes \
 
10222
    old_archive_cmds \
 
10223
    old_archive_from_new_cmds \
 
10224
    predep_objects \
 
10225
    postdep_objects \
 
10226
    predeps \
 
10227
    postdeps \
 
10228
    compiler_lib_search_path \
 
10229
    archive_cmds \
 
10230
    archive_expsym_cmds \
 
10231
    postinstall_cmds \
 
10232
    postuninstall_cmds \
 
10233
    old_archive_from_expsyms_cmds \
 
10234
    allow_undefined_flag \
 
10235
    no_undefined_flag \
 
10236
    export_symbols_cmds \
 
10237
    hardcode_libdir_flag_spec \
 
10238
    hardcode_libdir_flag_spec_ld \
 
10239
    hardcode_libdir_separator \
 
10240
    hardcode_automatic \
 
10241
    module_cmds \
 
10242
    module_expsym_cmds \
 
10243
    lt_cv_prog_compiler_c_o \
 
10244
    exclude_expsyms \
 
10245
    include_expsyms; do
 
10246
 
 
10247
    case $var in
 
10248
    old_archive_cmds | \
 
10249
    old_archive_from_new_cmds | \
 
10250
    archive_cmds | \
 
10251
    archive_expsym_cmds | \
 
10252
    module_cmds | \
 
10253
    module_expsym_cmds | \
 
10254
    old_archive_from_expsyms_cmds | \
 
10255
    export_symbols_cmds | \
 
10256
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10257
    postinstall_cmds | postuninstall_cmds | \
 
10258
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10259
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10260
      # Double-quote double-evaled strings.
 
10261
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10262
      ;;
 
10263
    *)
 
10264
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10265
      ;;
 
10266
    esac
 
10267
  done
 
10268
 
 
10269
  case $lt_echo in
 
10270
  *'\$0 --fallback-echo"')
 
10271
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10272
    ;;
 
10273
  esac
 
10274
 
 
10275
cfgfile="${ofile}T"
 
10276
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10277
  $rm -f "$cfgfile"
 
10278
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10279
echo "$as_me: creating $ofile" >&6;}
 
10280
 
 
10281
  cat <<__EOF__ >> "$cfgfile"
 
10282
#! $SHELL
 
10283
 
 
10284
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10285
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10286
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10287
#
 
10288
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10289
# Free Software Foundation, Inc.
 
10290
#
 
10291
# This file is part of GNU Libtool:
 
10292
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10293
#
 
10294
# This program is free software; you can redistribute it and/or modify
 
10295
# it under the terms of the GNU General Public License as published by
 
10296
# the Free Software Foundation; either version 2 of the License, or
 
10297
# (at your option) any later version.
 
10298
#
 
10299
# This program is distributed in the hope that it will be useful, but
 
10300
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10301
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10302
# General Public License for more details.
 
10303
#
 
10304
# You should have received a copy of the GNU General Public License
 
10305
# along with this program; if not, write to the Free Software
 
10306
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
10307
#
 
10308
# As a special exception to the GNU General Public License, if you
 
10309
# distribute this file as part of a program that contains a
 
10310
# configuration script generated by Autoconf, you may include it under
 
10311
# the same distribution terms that you use for the rest of that program.
 
10312
 
 
10313
# A sed program that does not truncate output.
 
10314
SED=$lt_SED
 
10315
 
 
10316
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10317
Xsed="$SED -e s/^X//"
 
10318
 
 
10319
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10320
# if CDPATH is set.
 
10321
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10322
 
 
10323
# The names of the tagged configurations supported by this script.
 
10324
available_tags=
 
10325
 
 
10326
# ### BEGIN LIBTOOL CONFIG
 
10327
 
 
10328
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10329
 
 
10330
# Shell to use when invoking shell scripts.
 
10331
SHELL=$lt_SHELL
 
10332
 
 
10333
# Whether or not to build shared libraries.
 
10334
build_libtool_libs=$enable_shared
 
10335
 
 
10336
# Whether or not to build static libraries.
 
10337
build_old_libs=$enable_static
 
10338
 
 
10339
# Whether or not to add -lc for building shared libraries.
 
10340
build_libtool_need_lc=$archive_cmds_need_lc
 
10341
 
 
10342
# Whether or not to disallow shared libs when runtime libs are static
 
10343
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10344
 
 
10345
# Whether or not to optimize for fast installation.
 
10346
fast_install=$enable_fast_install
 
10347
 
 
10348
# The host system.
 
10349
host_alias=$host_alias
 
10350
host=$host
 
10351
 
 
10352
# An echo program that does not interpret backslashes.
 
10353
echo=$lt_echo
 
10354
 
 
10355
# The archiver.
 
10356
AR=$lt_AR
 
10357
AR_FLAGS=$lt_AR_FLAGS
 
10358
 
 
10359
# A C compiler.
 
10360
LTCC=$lt_LTCC
 
10361
 
 
10362
# A language-specific compiler.
 
10363
CC=$lt_compiler
 
10364
 
 
10365
# Is the compiler the GNU C compiler?
 
10366
with_gcc=$GCC
 
10367
 
 
10368
# An ERE matcher.
 
10369
EGREP=$lt_EGREP
 
10370
 
 
10371
# The linker used to build libraries.
 
10372
LD=$lt_LD
 
10373
 
 
10374
# Whether we need hard or soft links.
 
10375
LN_S=$lt_LN_S
 
10376
 
 
10377
# A BSD-compatible nm program.
 
10378
NM=$lt_NM
 
10379
 
 
10380
# A symbol stripping program
 
10381
STRIP=$lt_STRIP
 
10382
 
 
10383
# Used to examine libraries when file_magic_cmd begins "file"
 
10384
MAGIC_CMD=$MAGIC_CMD
 
10385
 
 
10386
# Used on cygwin: DLL creation program.
 
10387
DLLTOOL="$DLLTOOL"
 
10388
 
 
10389
# Used on cygwin: object dumper.
 
10390
OBJDUMP="$OBJDUMP"
 
10391
 
 
10392
# Used on cygwin: assembler.
 
10393
AS="$AS"
 
10394
 
 
10395
# The name of the directory that contains temporary libtool files.
 
10396
objdir=$objdir
 
10397
 
 
10398
# How to create reloadable object files.
 
10399
reload_flag=$lt_reload_flag
 
10400
reload_cmds=$lt_reload_cmds
 
10401
 
 
10402
# How to pass a linker flag through the compiler.
 
10403
wl=$lt_lt_prog_compiler_wl
 
10404
 
 
10405
# Object file suffix (normally "o").
 
10406
objext="$ac_objext"
 
10407
 
 
10408
# Old archive suffix (normally "a").
 
10409
libext="$libext"
 
10410
 
 
10411
# Shared library suffix (normally ".so").
 
10412
shrext_cmds='$shrext_cmds'
 
10413
 
 
10414
# Executable file suffix (normally "").
 
10415
exeext="$exeext"
 
10416
 
 
10417
# Additional compiler flags for building library objects.
 
10418
pic_flag=$lt_lt_prog_compiler_pic
 
10419
pic_mode=$pic_mode
 
10420
 
 
10421
# What is the maximum length of a command?
 
10422
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10423
 
 
10424
# Does compiler simultaneously support -c and -o options?
 
10425
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10426
 
 
10427
# Must we lock files when doing compilation ?
 
10428
need_locks=$lt_need_locks
 
10429
 
 
10430
# Do we need the lib prefix for modules?
 
10431
need_lib_prefix=$need_lib_prefix
 
10432
 
 
10433
# Do we need a version for libraries?
 
10434
need_version=$need_version
 
10435
 
 
10436
# Whether dlopen is supported.
 
10437
dlopen_support=$enable_dlopen
 
10438
 
 
10439
# Whether dlopen of programs is supported.
 
10440
dlopen_self=$enable_dlopen_self
 
10441
 
 
10442
# Whether dlopen of statically linked programs is supported.
 
10443
dlopen_self_static=$enable_dlopen_self_static
 
10444
 
 
10445
# Compiler flag to prevent dynamic linking.
 
10446
link_static_flag=$lt_lt_prog_compiler_static
 
10447
 
 
10448
# Compiler flag to turn off builtin functions.
 
10449
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10450
 
 
10451
# Compiler flag to allow reflexive dlopens.
 
10452
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10453
 
 
10454
# Compiler flag to generate shared objects directly from archives.
 
10455
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10456
 
 
10457
# Compiler flag to generate thread-safe objects.
 
10458
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10459
 
 
10460
# Library versioning type.
 
10461
version_type=$version_type
 
10462
 
 
10463
# Format of library name prefix.
 
10464
libname_spec=$lt_libname_spec
 
10465
 
 
10466
# List of archive names.  First name is the real one, the rest are links.
 
10467
# The last name is the one that the linker finds with -lNAME.
 
10468
library_names_spec=$lt_library_names_spec
 
10469
 
 
10470
# The coded name of the library, if different from the real name.
 
10471
soname_spec=$lt_soname_spec
 
10472
 
 
10473
# Commands used to build and install an old-style archive.
 
10474
RANLIB=$lt_RANLIB
 
10475
old_archive_cmds=$lt_old_archive_cmds
 
10476
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10477
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10478
 
 
10479
# Create an old-style archive from a shared archive.
 
10480
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10481
 
 
10482
# Create a temporary old-style archive to link instead of a shared archive.
 
10483
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10484
 
 
10485
# Commands used to build and install a shared archive.
 
10486
archive_cmds=$lt_archive_cmds
 
10487
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10488
postinstall_cmds=$lt_postinstall_cmds
 
10489
postuninstall_cmds=$lt_postuninstall_cmds
 
10490
 
 
10491
# Commands used to build a loadable module (assumed same as above if empty)
 
10492
module_cmds=$lt_module_cmds
 
10493
module_expsym_cmds=$lt_module_expsym_cmds
 
10494
 
 
10495
# Commands to strip libraries.
 
10496
old_striplib=$lt_old_striplib
 
10497
striplib=$lt_striplib
 
10498
 
 
10499
# Dependencies to place before the objects being linked to create a
 
10500
# shared library.
 
10501
predep_objects=$lt_predep_objects
 
10502
 
 
10503
# Dependencies to place after the objects being linked to create a
 
10504
# shared library.
 
10505
postdep_objects=$lt_postdep_objects
 
10506
 
 
10507
# Dependencies to place before the objects being linked to create a
 
10508
# shared library.
 
10509
predeps=$lt_predeps
 
10510
 
 
10511
# Dependencies to place after the objects being linked to create a
 
10512
# shared library.
 
10513
postdeps=$lt_postdeps
 
10514
 
 
10515
# The library search path used internally by the compiler when linking
 
10516
# a shared library.
 
10517
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10518
 
 
10519
# Method to check whether dependent libraries are shared objects.
 
10520
deplibs_check_method=$lt_deplibs_check_method
 
10521
 
 
10522
# Command to use when deplibs_check_method == file_magic.
 
10523
file_magic_cmd=$lt_file_magic_cmd
 
10524
 
 
10525
# Flag that allows shared libraries with undefined symbols to be built.
 
10526
allow_undefined_flag=$lt_allow_undefined_flag
 
10527
 
 
10528
# Flag that forces no undefined symbols.
 
10529
no_undefined_flag=$lt_no_undefined_flag
 
10530
 
 
10531
# Commands used to finish a libtool library installation in a directory.
 
10532
finish_cmds=$lt_finish_cmds
 
10533
 
 
10534
# Same as above, but a single script fragment to be evaled but not shown.
 
10535
finish_eval=$lt_finish_eval
 
10536
 
 
10537
# Take the output of nm and produce a listing of raw symbols and C names.
 
10538
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10539
 
 
10540
# Transform the output of nm in a proper C declaration
 
10541
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10542
 
 
10543
# Transform the output of nm in a C name address pair
 
10544
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10545
 
 
10546
# This is the shared library runtime path variable.
 
10547
runpath_var=$runpath_var
 
10548
 
 
10549
# This is the shared library path variable.
 
10550
shlibpath_var=$shlibpath_var
 
10551
 
 
10552
# Is shlibpath searched before the hard-coded library search path?
 
10553
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10554
 
 
10555
# How to hardcode a shared library path into an executable.
 
10556
hardcode_action=$hardcode_action
 
10557
 
 
10558
# Whether we should hardcode library paths into libraries.
 
10559
hardcode_into_libs=$hardcode_into_libs
 
10560
 
 
10561
# Flag to hardcode \$libdir into a binary during linking.
 
10562
# This must work even if \$libdir does not exist.
 
10563
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10564
 
 
10565
# If ld is used when linking, flag to hardcode \$libdir into
 
10566
# a binary during linking. This must work even if \$libdir does
 
10567
# not exist.
 
10568
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10569
 
 
10570
# Whether we need a single -rpath flag with a separated argument.
 
10571
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10572
 
 
10573
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10574
# resulting binary.
 
10575
hardcode_direct=$hardcode_direct
 
10576
 
 
10577
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10578
# resulting binary.
 
10579
hardcode_minus_L=$hardcode_minus_L
 
10580
 
 
10581
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10582
# the resulting binary.
 
10583
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10584
 
 
10585
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10586
# and all subsequent libraries and executables linked against it.
 
10587
hardcode_automatic=$hardcode_automatic
 
10588
 
 
10589
# Variables whose values should be saved in libtool wrapper scripts and
 
10590
# restored at relink time.
 
10591
variables_saved_for_relink="$variables_saved_for_relink"
 
10592
 
 
10593
# Whether libtool must link a program against all its dependency libraries.
 
10594
link_all_deplibs=$link_all_deplibs
 
10595
 
 
10596
# Compile-time system search path for libraries
 
10597
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10598
 
 
10599
# Run-time system search path for libraries
 
10600
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10601
 
 
10602
# Fix the shell variable \$srcfile for the compiler.
 
10603
fix_srcfile_path="$fix_srcfile_path"
 
10604
 
 
10605
# Set to yes if exported symbols are required.
 
10606
always_export_symbols=$always_export_symbols
 
10607
 
 
10608
# The commands to list exported symbols.
 
10609
export_symbols_cmds=$lt_export_symbols_cmds
 
10610
 
 
10611
# The commands to extract the exported symbol list from a shared archive.
 
10612
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10613
 
 
10614
# Symbols that should not be listed in the preloaded symbols.
 
10615
exclude_expsyms=$lt_exclude_expsyms
 
10616
 
 
10617
# Symbols that must always be exported.
 
10618
include_expsyms=$lt_include_expsyms
 
10619
 
 
10620
# ### END LIBTOOL CONFIG
 
10621
 
 
10622
__EOF__
 
10623
 
 
10624
 
 
10625
  case $host_os in
 
10626
  aix3*)
 
10627
    cat <<\EOF >> "$cfgfile"
 
10628
 
 
10629
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10630
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10631
# vanish in a puff of smoke.
 
10632
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10633
  COLLECT_NAMES=
 
10634
  export COLLECT_NAMES
 
10635
fi
 
10636
EOF
 
10637
    ;;
 
10638
  esac
 
10639
 
 
10640
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10641
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10642
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10643
  # is reportedly fixed, but why not run on old versions too?
 
10644
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10645
 
 
10646
  mv -f "$cfgfile" "$ofile" || \
 
10647
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10648
  chmod +x "$ofile"
 
10649
 
 
10650
else
 
10651
  # If there is no Makefile yet, we rely on a make rule to execute
 
10652
  # `config.status --recheck' to rerun these tests and create the
 
10653
  # libtool script then.
 
10654
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10655
  if test -f "$ltmain_in"; then
 
10656
    test -f Makefile && make "$ltmain"
 
10657
  fi
 
10658
fi
 
10659
 
 
10660
 
 
10661
ac_ext=c
 
10662
ac_cpp='$CPP $CPPFLAGS'
 
10663
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10664
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10665
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10666
 
 
10667
CC="$lt_save_CC"
 
10668
 
 
10669
 
 
10670
# Check whether --with-tags or --without-tags was given.
 
10671
if test "${with_tags+set}" = set; then
 
10672
  withval="$with_tags"
 
10673
  tagnames="$withval"
 
10674
fi;
 
10675
 
 
10676
if test -f "$ltmain" && test -n "$tagnames"; then
 
10677
  if test ! -f "${ofile}"; then
 
10678
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10679
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10680
  fi
 
10681
 
 
10682
  if test -z "$LTCC"; then
 
10683
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10684
    if test -z "$LTCC"; then
 
10685
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10686
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10687
    else
 
10688
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10689
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10690
    fi
 
10691
  fi
 
10692
 
 
10693
  # Extract list of available tagged configurations in $ofile.
 
10694
  # Note that this assumes the entire list is on one line.
 
10695
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10696
 
 
10697
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10698
  for tagname in $tagnames; do
 
10699
    IFS="$lt_save_ifs"
 
10700
    # Check whether tagname contains only valid characters
 
10701
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10702
    "") ;;
 
10703
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10704
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10705
   { (exit 1); exit 1; }; }
 
10706
        ;;
 
10707
    esac
 
10708
 
 
10709
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10710
    then
 
10711
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10712
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10713
   { (exit 1); exit 1; }; }
 
10714
    fi
 
10715
 
 
10716
    # Update the list of available tags.
 
10717
    if test -n "$tagname"; then
 
10718
      echo appending configuration tag \"$tagname\" to $ofile
 
10719
 
 
10720
      case $tagname in
 
10721
      CXX)
 
10722
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
10723
          ac_ext=cc
 
10724
ac_cpp='$CXXCPP $CPPFLAGS'
 
10725
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10726
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10727
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10728
 
 
10729
 
 
10730
 
 
10731
 
 
10732
archive_cmds_need_lc_CXX=no
 
10733
allow_undefined_flag_CXX=
 
10734
always_export_symbols_CXX=no
 
10735
archive_expsym_cmds_CXX=
 
10736
export_dynamic_flag_spec_CXX=
 
10737
hardcode_direct_CXX=no
 
10738
hardcode_libdir_flag_spec_CXX=
 
10739
hardcode_libdir_flag_spec_ld_CXX=
 
10740
hardcode_libdir_separator_CXX=
 
10741
hardcode_minus_L_CXX=no
 
10742
hardcode_automatic_CXX=no
 
10743
module_cmds_CXX=
 
10744
module_expsym_cmds_CXX=
 
10745
link_all_deplibs_CXX=unknown
 
10746
old_archive_cmds_CXX=$old_archive_cmds
 
10747
no_undefined_flag_CXX=
 
10748
whole_archive_flag_spec_CXX=
 
10749
enable_shared_with_static_runtimes_CXX=no
 
10750
 
 
10751
# Dependencies to place before and after the object being linked:
 
10752
predep_objects_CXX=
 
10753
postdep_objects_CXX=
 
10754
predeps_CXX=
 
10755
postdeps_CXX=
 
10756
compiler_lib_search_path_CXX=
 
10757
 
 
10758
# Source file extension for C++ test sources.
 
10759
ac_ext=cc
 
10760
 
 
10761
# Object file extension for compiled C++ test sources.
 
10762
objext=o
 
10763
objext_CXX=$objext
 
10764
 
 
10765
# Code to be used in simple compile tests
 
10766
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10767
 
 
10768
# Code to be used in simple link tests
 
10769
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10770
 
 
10771
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10772
 
 
10773
# If no C compiler was specified, use CC.
 
10774
LTCC=${LTCC-"$CC"}
 
10775
 
 
10776
# Allow CC to be a program name with arguments.
 
10777
compiler=$CC
 
10778
 
 
10779
 
 
10780
# Allow CC to be a program name with arguments.
 
10781
lt_save_CC=$CC
 
10782
lt_save_LD=$LD
 
10783
lt_save_GCC=$GCC
 
10784
GCC=$GXX
 
10785
lt_save_with_gnu_ld=$with_gnu_ld
 
10786
lt_save_path_LD=$lt_cv_path_LD
 
10787
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10788
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10789
else
 
10790
  unset lt_cv_prog_gnu_ld
 
10791
fi
 
10792
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10793
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10794
else
 
10795
  unset lt_cv_path_LD
 
10796
fi
 
10797
test -z "${LDCXX+set}" || LD=$LDCXX
 
10798
CC=${CXX-"c++"}
 
10799
compiler=$CC
 
10800
compiler_CXX=$CC
 
10801
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10802
 
 
10803
# We don't want -fno-exception wen compiling C++ code, so set the
 
10804
# no_builtin_flag separately
 
10805
if test "$GXX" = yes; then
 
10806
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10807
else
 
10808
  lt_prog_compiler_no_builtin_flag_CXX=
 
10809
fi
 
10810
 
 
10811
if test "$GXX" = yes; then
 
10812
  # Set up default GNU C++ configuration
 
10813
 
 
10814
 
 
10815
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10816
if test "${with_gnu_ld+set}" = set; then
 
10817
  withval="$with_gnu_ld"
 
10818
  test "$withval" = no || with_gnu_ld=yes
 
10819
else
 
10820
  with_gnu_ld=no
 
10821
fi;
 
10822
ac_prog=ld
 
10823
if test "$GCC" = yes; then
 
10824
  # Check if gcc -print-prog-name=ld gives a path.
 
10825
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10826
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10827
  case $host in
 
10828
  *-*-mingw*)
 
10829
    # gcc leaves a trailing carriage return which upsets mingw
 
10830
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10831
  *)
 
10832
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10833
  esac
 
10834
  case $ac_prog in
 
10835
    # Accept absolute paths.
 
10836
    [\\/]* | ?:[\\/]*)
 
10837
      re_direlt='/[^/][^/]*/\.\./'
 
10838
      # Canonicalize the pathname of ld
 
10839
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10840
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10841
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10842
      done
 
10843
      test -z "$LD" && LD="$ac_prog"
 
10844
      ;;
 
10845
  "")
 
10846
    # If it fails, then pretend we aren't using GCC.
 
10847
    ac_prog=ld
 
10848
    ;;
 
10849
  *)
 
10850
    # If it is relative, then search for the first ld in PATH.
 
10851
    with_gnu_ld=unknown
 
10852
    ;;
 
10853
  esac
 
10854
elif test "$with_gnu_ld" = yes; then
 
10855
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10856
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10857
else
 
10858
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10859
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10860
fi
 
10861
if test "${lt_cv_path_LD+set}" = set; then
 
10862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10863
else
 
10864
  if test -z "$LD"; then
 
10865
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10866
  for ac_dir in $PATH; do
 
10867
    IFS="$lt_save_ifs"
 
10868
    test -z "$ac_dir" && ac_dir=.
 
10869
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10870
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10871
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10872
      # but apparently some GNU ld's only accept -v.
 
10873
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10874
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10875
      *GNU* | *'with BFD'*)
 
10876
        test "$with_gnu_ld" != no && break
 
10877
        ;;
 
10878
      *)
 
10879
        test "$with_gnu_ld" != yes && break
 
10880
        ;;
 
10881
      esac
 
10882
    fi
 
10883
  done
 
10884
  IFS="$lt_save_ifs"
 
10885
else
 
10886
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10887
fi
 
10888
fi
 
10889
 
 
10890
LD="$lt_cv_path_LD"
 
10891
if test -n "$LD"; then
 
10892
  echo "$as_me:$LINENO: result: $LD" >&5
 
10893
echo "${ECHO_T}$LD" >&6
 
10894
else
 
10895
  echo "$as_me:$LINENO: result: no" >&5
 
10896
echo "${ECHO_T}no" >&6
 
10897
fi
 
10898
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10899
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10900
   { (exit 1); exit 1; }; }
 
10901
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10902
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10903
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10905
else
 
10906
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10907
case `$LD -v 2>&1 </dev/null` in
 
10908
*GNU* | *'with BFD'*)
 
10909
  lt_cv_prog_gnu_ld=yes
 
10910
  ;;
 
10911
*)
 
10912
  lt_cv_prog_gnu_ld=no
 
10913
  ;;
 
10914
esac
 
10915
fi
 
10916
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10917
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10918
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10919
 
 
10920
 
 
10921
 
 
10922
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10923
  # archiving commands below assume that GNU ld is being used.
 
10924
  if test "$with_gnu_ld" = yes; then
 
10925
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10926
    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'
 
10927
 
 
10928
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10929
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10930
 
 
10931
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10932
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10933
    #     investigate it a little bit more. (MM)
 
10934
    wlarc='${wl}'
 
10935
 
 
10936
    # ancient GNU ld didn't support --whole-archive et. al.
 
10937
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10938
        grep 'no-whole-archive' > /dev/null; then
 
10939
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10940
    else
 
10941
      whole_archive_flag_spec_CXX=
 
10942
    fi
 
10943
  else
 
10944
    with_gnu_ld=no
 
10945
    wlarc=
 
10946
 
 
10947
    # A generic and very simple default shared library creation
 
10948
    # command for GNU C++ for the case where it uses the native
 
10949
    # linker, instead of GNU ld.  If possible, this setting should
 
10950
    # overridden to take advantage of the native linker features on
 
10951
    # the platform it is being used on.
 
10952
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10953
  fi
 
10954
 
 
10955
  # Commands to make compiler produce verbose output that lists
 
10956
  # what "hidden" libraries, object files and flags are used when
 
10957
  # linking a shared library.
 
10958
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10959
 
 
10960
else
 
10961
  GXX=no
 
10962
  with_gnu_ld=no
 
10963
  wlarc=
 
10964
fi
 
10965
 
 
10966
# PORTME: fill in a description of your system's C++ link characteristics
 
10967
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10968
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10969
ld_shlibs_CXX=yes
 
10970
case $host_os in
 
10971
  aix3*)
 
10972
    # FIXME: insert proper C++ library support
 
10973
    ld_shlibs_CXX=no
 
10974
    ;;
 
10975
  aix4* | aix5*)
 
10976
    if test "$host_cpu" = ia64; then
 
10977
      # On IA64, the linker does run time linking by default, so we don't
 
10978
      # have to do anything special.
 
10979
      aix_use_runtimelinking=no
 
10980
      exp_sym_flag='-Bexport'
 
10981
      no_entry_flag=""
 
10982
    else
 
10983
      aix_use_runtimelinking=no
 
10984
 
 
10985
      # Test if we are trying to use run time linking or normal
 
10986
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10987
      # need to do runtime linking.
 
10988
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10989
        for ld_flag in $LDFLAGS; do
 
10990
          case $ld_flag in
 
10991
          *-brtl*)
 
10992
            aix_use_runtimelinking=yes
 
10993
            break
 
10994
            ;;
 
10995
          esac
 
10996
        done
 
10997
      esac
 
10998
 
 
10999
      exp_sym_flag='-bexport'
 
11000
      no_entry_flag='-bnoentry'
 
11001
    fi
 
11002
 
 
11003
    # When large executables or shared objects are built, AIX ld can
 
11004
    # have problems creating the table of contents.  If linking a library
 
11005
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11006
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11007
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11008
 
 
11009
    archive_cmds_CXX=''
 
11010
    hardcode_direct_CXX=yes
 
11011
    hardcode_libdir_separator_CXX=':'
 
11012
    link_all_deplibs_CXX=yes
 
11013
 
 
11014
    if test "$GXX" = yes; then
 
11015
      case $host_os in aix4.012|aix4.012.*)
 
11016
      # We only want to do this on AIX 4.2 and lower, the check
 
11017
      # below for broken collect2 doesn't work under 4.3+
 
11018
        collect2name=`${CC} -print-prog-name=collect2`
 
11019
        if test -f "$collect2name" && \
 
11020
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11021
        then
 
11022
          # We have reworked collect2
 
11023
          hardcode_direct_CXX=yes
 
11024
        else
 
11025
          # We have old collect2
 
11026
          hardcode_direct_CXX=unsupported
 
11027
          # It fails to find uninstalled libraries when the uninstalled
 
11028
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11029
          # to unsupported forces relinking
 
11030
          hardcode_minus_L_CXX=yes
 
11031
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11032
          hardcode_libdir_separator_CXX=
 
11033
        fi
 
11034
      esac
 
11035
      shared_flag='-shared'
 
11036
    else
 
11037
      # not using gcc
 
11038
      if test "$host_cpu" = ia64; then
 
11039
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11040
        # chokes on -Wl,-G. The following line is correct:
 
11041
        shared_flag='-G'
 
11042
      else
 
11043
        if test "$aix_use_runtimelinking" = yes; then
 
11044
          shared_flag='${wl}-G'
 
11045
        else
 
11046
          shared_flag='${wl}-bM:SRE'
 
11047
        fi
 
11048
      fi
 
11049
    fi
 
11050
 
 
11051
    # It seems that -bexpall does not export symbols beginning with
 
11052
    # underscore (_), so it is better to generate a list of symbols to export.
 
11053
    always_export_symbols_CXX=yes
 
11054
    if test "$aix_use_runtimelinking" = yes; then
 
11055
      # Warning - without using the other runtime loading flags (-brtl),
 
11056
      # -berok will link without error, but may produce a broken library.
 
11057
      allow_undefined_flag_CXX='-berok'
 
11058
      # Determine the default libpath from the value encoded in an empty executable.
 
11059
      cat >conftest.$ac_ext <<_ACEOF
 
11060
/* confdefs.h.  */
 
11061
_ACEOF
 
11062
cat confdefs.h >>conftest.$ac_ext
 
11063
cat >>conftest.$ac_ext <<_ACEOF
 
11064
/* end confdefs.h.  */
 
11065
 
 
11066
int
 
11067
main ()
 
11068
{
 
11069
 
 
11070
  ;
 
11071
  return 0;
 
11072
}
 
11073
_ACEOF
 
11074
rm -f conftest.$ac_objext conftest$ac_exeext
 
11075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11076
  (eval $ac_link) 2>conftest.er1
 
11077
  ac_status=$?
 
11078
  grep -v '^ *+' conftest.er1 >conftest.err
 
11079
  rm -f conftest.er1
 
11080
  cat conftest.err >&5
 
11081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11082
  (exit $ac_status); } &&
 
11083
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11084
                         || test ! -s conftest.err'
 
11085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11086
  (eval $ac_try) 2>&5
 
11087
  ac_status=$?
 
11088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11089
  (exit $ac_status); }; } &&
 
11090
         { ac_try='test -s conftest$ac_exeext'
 
11091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11092
  (eval $ac_try) 2>&5
 
11093
  ac_status=$?
 
11094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11095
  (exit $ac_status); }; }; then
 
11096
 
 
11097
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11098
}'`
 
11099
# Check for a 64-bit object if we didn't find anything.
 
11100
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; }
 
11101
}'`; fi
 
11102
else
 
11103
  echo "$as_me: failed program was:" >&5
 
11104
sed 's/^/| /' conftest.$ac_ext >&5
 
11105
 
 
11106
fi
 
11107
rm -f conftest.err conftest.$ac_objext \
 
11108
      conftest$ac_exeext conftest.$ac_ext
 
11109
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11110
 
 
11111
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11112
 
 
11113
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11114
     else
 
11115
      if test "$host_cpu" = ia64; then
 
11116
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11117
        allow_undefined_flag_CXX="-z nodefs"
 
11118
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
11119
      else
 
11120
        # Determine the default libpath from the value encoded in an empty executable.
 
11121
        cat >conftest.$ac_ext <<_ACEOF
 
11122
/* confdefs.h.  */
 
11123
_ACEOF
 
11124
cat confdefs.h >>conftest.$ac_ext
 
11125
cat >>conftest.$ac_ext <<_ACEOF
 
11126
/* end confdefs.h.  */
 
11127
 
 
11128
int
 
11129
main ()
 
11130
{
 
11131
 
 
11132
  ;
 
11133
  return 0;
 
11134
}
 
11135
_ACEOF
 
11136
rm -f conftest.$ac_objext conftest$ac_exeext
 
11137
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11138
  (eval $ac_link) 2>conftest.er1
 
11139
  ac_status=$?
 
11140
  grep -v '^ *+' conftest.er1 >conftest.err
 
11141
  rm -f conftest.er1
 
11142
  cat conftest.err >&5
 
11143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11144
  (exit $ac_status); } &&
 
11145
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11146
                         || test ! -s conftest.err'
 
11147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11148
  (eval $ac_try) 2>&5
 
11149
  ac_status=$?
 
11150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11151
  (exit $ac_status); }; } &&
 
11152
         { ac_try='test -s conftest$ac_exeext'
 
11153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11154
  (eval $ac_try) 2>&5
 
11155
  ac_status=$?
 
11156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11157
  (exit $ac_status); }; }; then
 
11158
 
 
11159
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11160
}'`
 
11161
# Check for a 64-bit object if we didn't find anything.
 
11162
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; }
 
11163
}'`; fi
 
11164
else
 
11165
  echo "$as_me: failed program was:" >&5
 
11166
sed 's/^/| /' conftest.$ac_ext >&5
 
11167
 
 
11168
fi
 
11169
rm -f conftest.err conftest.$ac_objext \
 
11170
      conftest$ac_exeext conftest.$ac_ext
 
11171
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11172
 
 
11173
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11174
        # Warning - without using the other run time loading flags,
 
11175
        # -berok will link without error, but may produce a broken library.
 
11176
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11177
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11178
        # -bexpall does not export symbols beginning with underscore (_)
 
11179
        always_export_symbols_CXX=yes
 
11180
        # Exported symbols can be pulled into shared objects from archives
 
11181
        whole_archive_flag_spec_CXX=' '
 
11182
        archive_cmds_need_lc_CXX=yes
 
11183
        # This is similar to how AIX traditionally builds it's shared libraries.
 
11184
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11185
      fi
 
11186
    fi
 
11187
    ;;
 
11188
  chorus*)
 
11189
    case $cc_basename in
 
11190
      *)
 
11191
        # FIXME: insert proper C++ library support
 
11192
        ld_shlibs_CXX=no
 
11193
        ;;
 
11194
    esac
 
11195
    ;;
 
11196
 
 
11197
 
 
11198
  cygwin* | mingw* | pw32*)
 
11199
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11200
    # as there is no search path for DLLs.
 
11201
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11202
    allow_undefined_flag_CXX=unsupported
 
11203
    always_export_symbols_CXX=no
 
11204
    enable_shared_with_static_runtimes_CXX=yes
 
11205
 
 
11206
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11207
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
11208
      # If the export-symbols file already is a .def file (1st line
 
11209
      # is EXPORTS), use it as is; otherwise, prepend...
 
11210
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11211
        cp $export_symbols $output_objdir/$soname.def;
 
11212
      else
 
11213
        echo EXPORTS > $output_objdir/$soname.def;
 
11214
        cat $export_symbols >> $output_objdir/$soname.def;
 
11215
      fi~
 
11216
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
11217
    else
 
11218
      ld_shlibs_CXX=no
 
11219
    fi
 
11220
  ;;
 
11221
      darwin* | rhapsody*)
 
11222
        case "$host_os" in
 
11223
        rhapsody* | darwin1.[012])
 
11224
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11225
         ;;
 
11226
       *) # Darwin 1.3 on
 
11227
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11228
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11229
         else
 
11230
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11231
             10.[012])
 
11232
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11233
               ;;
 
11234
             10.*)
 
11235
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11236
               ;;
 
11237
           esac
 
11238
         fi
 
11239
         ;;
 
11240
        esac
 
11241
      archive_cmds_need_lc_CXX=no
 
11242
      hardcode_direct_CXX=no
 
11243
      hardcode_automatic_CXX=yes
 
11244
      hardcode_shlibpath_var_CXX=unsupported
 
11245
      whole_archive_flag_spec_CXX=''
 
11246
      link_all_deplibs_CXX=yes
 
11247
 
 
11248
    if test "$GXX" = yes ; then
 
11249
      lt_int_apple_cc_single_mod=no
 
11250
      output_verbose_link_cmd='echo'
 
11251
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11252
       lt_int_apple_cc_single_mod=yes
 
11253
      fi
 
11254
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11255
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11256
      else
 
11257
          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'
 
11258
        fi
 
11259
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11260
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11261
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11262
            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}'
 
11263
          else
 
11264
            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}'
 
11265
          fi
 
11266
            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}'
 
11267
      else
 
11268
      case "$cc_basename" in
 
11269
        xlc*)
 
11270
         output_verbose_link_cmd='echo'
 
11271
          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'
 
11272
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11273
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11274
          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}'
 
11275
          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}'
 
11276
          ;;
 
11277
       *)
 
11278
         ld_shlibs_CXX=no
 
11279
          ;;
 
11280
      esac
 
11281
      fi
 
11282
        ;;
 
11283
 
 
11284
  dgux*)
 
11285
    case $cc_basename in
 
11286
      ec++)
 
11287
        # FIXME: insert proper C++ library support
 
11288
        ld_shlibs_CXX=no
 
11289
        ;;
 
11290
      ghcx)
 
11291
        # Green Hills C++ Compiler
 
11292
        # FIXME: insert proper C++ library support
 
11293
        ld_shlibs_CXX=no
 
11294
        ;;
 
11295
      *)
 
11296
        # FIXME: insert proper C++ library support
 
11297
        ld_shlibs_CXX=no
 
11298
        ;;
 
11299
    esac
 
11300
    ;;
 
11301
  freebsd12*)
 
11302
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11303
    ld_shlibs_CXX=no
 
11304
    ;;
 
11305
  freebsd-elf*)
 
11306
    archive_cmds_need_lc_CXX=no
 
11307
    ;;
 
11308
  freebsd* | kfreebsd*-gnu)
 
11309
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11310
    # conventions
 
11311
    ld_shlibs_CXX=yes
 
11312
    ;;
 
11313
  gnu*)
 
11314
    ;;
 
11315
  hpux9*)
 
11316
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11317
    hardcode_libdir_separator_CXX=:
 
11318
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11319
    hardcode_direct_CXX=yes
 
11320
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11321
                                # but as the default
 
11322
                                # location of the library.
 
11323
 
 
11324
    case $cc_basename in
 
11325
    CC)
 
11326
      # FIXME: insert proper C++ library support
 
11327
      ld_shlibs_CXX=no
 
11328
      ;;
 
11329
    aCC)
 
11330
      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'
 
11331
      # Commands to make compiler produce verbose output that lists
 
11332
      # what "hidden" libraries, object files and flags are used when
 
11333
      # linking a shared library.
 
11334
      #
 
11335
      # There doesn't appear to be a way to prevent this compiler from
 
11336
      # explicitly linking system object files so we need to strip them
 
11337
      # from the output so that they don't get included in the library
 
11338
      # dependencies.
 
11339
      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'
 
11340
      ;;
 
11341
    *)
 
11342
      if test "$GXX" = yes; then
 
11343
        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'
 
11344
      else
 
11345
        # FIXME: insert proper C++ library support
 
11346
        ld_shlibs_CXX=no
 
11347
      fi
 
11348
      ;;
 
11349
    esac
 
11350
    ;;
 
11351
  hpux10*|hpux11*)
 
11352
    if test $with_gnu_ld = no; then
 
11353
      case "$host_cpu" in
 
11354
      hppa*64*)
 
11355
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11356
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11357
        hardcode_libdir_separator_CXX=:
 
11358
        ;;
 
11359
      ia64*)
 
11360
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11361
        ;;
 
11362
      *)
 
11363
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11364
        hardcode_libdir_separator_CXX=:
 
11365
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11366
        ;;
 
11367
      esac
 
11368
    fi
 
11369
    case "$host_cpu" in
 
11370
    hppa*64*)
 
11371
      hardcode_direct_CXX=no
 
11372
      hardcode_shlibpath_var_CXX=no
 
11373
      ;;
 
11374
    ia64*)
 
11375
      hardcode_direct_CXX=no
 
11376
      hardcode_shlibpath_var_CXX=no
 
11377
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11378
                                              # but as the default
 
11379
                                              # location of the library.
 
11380
      ;;
 
11381
    *)
 
11382
      hardcode_direct_CXX=yes
 
11383
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11384
                                              # but as the default
 
11385
                                              # location of the library.
 
11386
      ;;
 
11387
    esac
 
11388
 
 
11389
    case $cc_basename in
 
11390
      CC)
 
11391
        # FIXME: insert proper C++ library support
 
11392
        ld_shlibs_CXX=no
 
11393
        ;;
 
11394
      aCC)
 
11395
        case "$host_cpu" in
 
11396
        hppa*64*|ia64*)
 
11397
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11398
          ;;
 
11399
        *)
 
11400
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11401
          ;;
 
11402
        esac
 
11403
        # Commands to make compiler produce verbose output that lists
 
11404
        # what "hidden" libraries, object files and flags are used when
 
11405
        # linking a shared library.
 
11406
        #
 
11407
        # There doesn't appear to be a way to prevent this compiler from
 
11408
        # explicitly linking system object files so we need to strip them
 
11409
        # from the output so that they don't get included in the library
 
11410
        # dependencies.
 
11411
        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'
 
11412
        ;;
 
11413
      *)
 
11414
        if test "$GXX" = yes; then
 
11415
          if test $with_gnu_ld = no; then
 
11416
            case "$host_cpu" in
 
11417
            ia64*|hppa*64*)
 
11418
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11419
              ;;
 
11420
            *)
 
11421
              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'
 
11422
              ;;
 
11423
            esac
 
11424
          fi
 
11425
        else
 
11426
          # FIXME: insert proper C++ library support
 
11427
          ld_shlibs_CXX=no
 
11428
        fi
 
11429
        ;;
 
11430
    esac
 
11431
    ;;
 
11432
  irix5* | irix6*)
 
11433
    case $cc_basename in
 
11434
      CC)
 
11435
        # SGI C++
 
11436
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11437
 
 
11438
        # Archives containing C++ object files must be created using
 
11439
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11440
        # necessary to make sure instantiated templates are included
 
11441
        # in the archive.
 
11442
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11443
        ;;
 
11444
      *)
 
11445
        if test "$GXX" = yes; then
 
11446
          if test "$with_gnu_ld" = no; then
 
11447
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11448
          else
 
11449
            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'
 
11450
          fi
 
11451
        fi
 
11452
        link_all_deplibs_CXX=yes
 
11453
        ;;
 
11454
    esac
 
11455
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11456
    hardcode_libdir_separator_CXX=:
 
11457
    ;;
 
11458
  linux*)
 
11459
    case $cc_basename in
 
11460
      KCC)
 
11461
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11462
 
 
11463
        # KCC will only create a shared library if the output file
 
11464
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11465
        # to its proper name (with version) after linking.
 
11466
        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'
 
11467
        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'
 
11468
        # Commands to make compiler produce verbose output that lists
 
11469
        # what "hidden" libraries, object files and flags are used when
 
11470
        # linking a shared library.
 
11471
        #
 
11472
        # There doesn't appear to be a way to prevent this compiler from
 
11473
        # explicitly linking system object files so we need to strip them
 
11474
        # from the output so that they don't get included in the library
 
11475
        # dependencies.
 
11476
        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'
 
11477
 
 
11478
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11479
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11480
 
 
11481
        # Archives containing C++ object files must be created using
 
11482
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11483
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11484
        ;;
 
11485
      icpc)
 
11486
        # Intel C++
 
11487
        with_gnu_ld=yes
 
11488
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11489
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11490
        # earlier do not add the objects themselves.
 
11491
        case `$CC -V 2>&1` in
 
11492
        *"Version 7."*)
 
11493
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11494
          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'
 
11495
          ;;
 
11496
        *)  # Version 8.0 or newer
 
11497
          archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11498
        archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11499
          ;;
 
11500
        esac
 
11501
        archive_cmds_need_lc_CXX=no
 
11502
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11503
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11504
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11505
        ;;
 
11506
      cxx)
 
11507
        # Compaq C++
 
11508
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11509
        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'
 
11510
 
 
11511
        runpath_var=LD_RUN_PATH
 
11512
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11513
        hardcode_libdir_separator_CXX=:
 
11514
 
 
11515
        # Commands to make compiler produce verbose output that lists
 
11516
        # what "hidden" libraries, object files and flags are used when
 
11517
        # linking a shared library.
 
11518
        #
 
11519
        # There doesn't appear to be a way to prevent this compiler from
 
11520
        # explicitly linking system object files so we need to strip them
 
11521
        # from the output so that they don't get included in the library
 
11522
        # dependencies.
 
11523
        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'
 
11524
        ;;
 
11525
    esac
 
11526
    ;;
 
11527
  lynxos*)
 
11528
    # FIXME: insert proper C++ library support
 
11529
    ld_shlibs_CXX=no
 
11530
    ;;
 
11531
  m88k*)
 
11532
    # FIXME: insert proper C++ library support
 
11533
    ld_shlibs_CXX=no
 
11534
    ;;
 
11535
  mvs*)
 
11536
    case $cc_basename in
 
11537
      cxx)
 
11538
        # FIXME: insert proper C++ library support
 
11539
        ld_shlibs_CXX=no
 
11540
        ;;
 
11541
      *)
 
11542
        # FIXME: insert proper C++ library support
 
11543
        ld_shlibs_CXX=no
 
11544
        ;;
 
11545
    esac
 
11546
    ;;
 
11547
  netbsd*)
 
11548
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11549
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11550
      wlarc=
 
11551
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11552
      hardcode_direct_CXX=yes
 
11553
      hardcode_shlibpath_var_CXX=no
 
11554
    fi
 
11555
    # Workaround some broken pre-1.5 toolchains
 
11556
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11557
    ;;
 
11558
  openbsd2*)
 
11559
    # C++ shared libraries are fairly broken
 
11560
    ld_shlibs_CXX=no
 
11561
    ;;
 
11562
  openbsd*)
 
11563
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11564
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11565
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11566
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11567
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11568
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11569
    fi
 
11570
    output_verbose_link_cmd='echo'
 
11571
    ;;
 
11572
  osf3*)
 
11573
    case $cc_basename in
 
11574
      KCC)
 
11575
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11576
 
 
11577
        # KCC will only create a shared library if the output file
 
11578
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11579
        # to its proper name (with version) after linking.
 
11580
        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'
 
11581
 
 
11582
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11583
        hardcode_libdir_separator_CXX=:
 
11584
 
 
11585
        # Archives containing C++ object files must be created using
 
11586
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11587
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11588
 
 
11589
        ;;
 
11590
      RCC)
 
11591
        # Rational C++ 2.4.1
 
11592
        # FIXME: insert proper C++ library support
 
11593
        ld_shlibs_CXX=no
 
11594
        ;;
 
11595
      cxx)
 
11596
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11597
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11598
 
 
11599
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11600
        hardcode_libdir_separator_CXX=:
 
11601
 
 
11602
        # Commands to make compiler produce verbose output that lists
 
11603
        # what "hidden" libraries, object files and flags are used when
 
11604
        # linking a shared library.
 
11605
        #
 
11606
        # There doesn't appear to be a way to prevent this compiler from
 
11607
        # explicitly linking system object files so we need to strip them
 
11608
        # from the output so that they don't get included in the library
 
11609
        # dependencies.
 
11610
        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'
 
11611
        ;;
 
11612
      *)
 
11613
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11614
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11615
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11616
 
 
11617
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11618
          hardcode_libdir_separator_CXX=:
 
11619
 
 
11620
          # Commands to make compiler produce verbose output that lists
 
11621
          # what "hidden" libraries, object files and flags are used when
 
11622
          # linking a shared library.
 
11623
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11624
 
 
11625
        else
 
11626
          # FIXME: insert proper C++ library support
 
11627
          ld_shlibs_CXX=no
 
11628
        fi
 
11629
        ;;
 
11630
    esac
 
11631
    ;;
 
11632
  osf4* | osf5*)
 
11633
    case $cc_basename in
 
11634
      KCC)
 
11635
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11636
 
 
11637
        # KCC will only create a shared library if the output file
 
11638
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11639
        # to its proper name (with version) after linking.
 
11640
        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'
 
11641
 
 
11642
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11643
        hardcode_libdir_separator_CXX=:
 
11644
 
 
11645
        # Archives containing C++ object files must be created using
 
11646
        # the KAI C++ compiler.
 
11647
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11648
        ;;
 
11649
      RCC)
 
11650
        # Rational C++ 2.4.1
 
11651
        # FIXME: insert proper C++ library support
 
11652
        ld_shlibs_CXX=no
 
11653
        ;;
 
11654
      cxx)
 
11655
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11656
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11657
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11658
          echo "-hidden">> $lib.exp~
 
11659
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
11660
          $rm $lib.exp'
 
11661
 
 
11662
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11663
        hardcode_libdir_separator_CXX=:
 
11664
 
 
11665
        # Commands to make compiler produce verbose output that lists
 
11666
        # what "hidden" libraries, object files and flags are used when
 
11667
        # linking a shared library.
 
11668
        #
 
11669
        # There doesn't appear to be a way to prevent this compiler from
 
11670
        # explicitly linking system object files so we need to strip them
 
11671
        # from the output so that they don't get included in the library
 
11672
        # dependencies.
 
11673
        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'
 
11674
        ;;
 
11675
      *)
 
11676
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11677
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11678
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11679
 
 
11680
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11681
          hardcode_libdir_separator_CXX=:
 
11682
 
 
11683
          # Commands to make compiler produce verbose output that lists
 
11684
          # what "hidden" libraries, object files and flags are used when
 
11685
          # linking a shared library.
 
11686
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11687
 
 
11688
        else
 
11689
          # FIXME: insert proper C++ library support
 
11690
          ld_shlibs_CXX=no
 
11691
        fi
 
11692
        ;;
 
11693
    esac
 
11694
    ;;
 
11695
  psos*)
 
11696
    # FIXME: insert proper C++ library support
 
11697
    ld_shlibs_CXX=no
 
11698
    ;;
 
11699
  sco*)
 
11700
    archive_cmds_need_lc_CXX=no
 
11701
    case $cc_basename in
 
11702
      CC)
 
11703
        # FIXME: insert proper C++ library support
 
11704
        ld_shlibs_CXX=no
 
11705
        ;;
 
11706
      *)
 
11707
        # FIXME: insert proper C++ library support
 
11708
        ld_shlibs_CXX=no
 
11709
        ;;
 
11710
    esac
 
11711
    ;;
 
11712
  sunos4*)
 
11713
    case $cc_basename in
 
11714
      CC)
 
11715
        # Sun C++ 4.x
 
11716
        # FIXME: insert proper C++ library support
 
11717
        ld_shlibs_CXX=no
 
11718
        ;;
 
11719
      lcc)
 
11720
        # Lucid
 
11721
        # FIXME: insert proper C++ library support
 
11722
        ld_shlibs_CXX=no
 
11723
        ;;
 
11724
      *)
 
11725
        # FIXME: insert proper C++ library support
 
11726
        ld_shlibs_CXX=no
 
11727
        ;;
 
11728
    esac
 
11729
    ;;
 
11730
  solaris*)
 
11731
    case $cc_basename in
 
11732
      CC)
 
11733
        # Sun C++ 4.2, 5.x and Centerline C++
 
11734
        no_undefined_flag_CXX=' -zdefs'
 
11735
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11736
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11737
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11738
 
 
11739
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11740
        hardcode_shlibpath_var_CXX=no
 
11741
        case $host_os in
 
11742
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11743
          *)
 
11744
            # The C++ compiler is used as linker so we must use $wl
 
11745
            # flag to pass the commands to the underlying system
 
11746
            # linker.
 
11747
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11748
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11749
            ;;
 
11750
        esac
 
11751
        link_all_deplibs_CXX=yes
 
11752
 
 
11753
        # Commands to make compiler produce verbose output that lists
 
11754
        # what "hidden" libraries, object files and flags are used when
 
11755
        # linking a shared library.
 
11756
        #
 
11757
        # There doesn't appear to be a way to prevent this compiler from
 
11758
        # explicitly linking system object files so we need to strip them
 
11759
        # from the output so that they don't get included in the library
 
11760
        # dependencies.
 
11761
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11762
 
 
11763
        # Archives containing C++ object files must be created using
 
11764
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11765
        # necessary to make sure instantiated templates are included
 
11766
        # in the archive.
 
11767
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11768
        ;;
 
11769
      gcx)
 
11770
        # Green Hills C++ Compiler
 
11771
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11772
 
 
11773
        # The C++ compiler must be used to create the archive.
 
11774
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11775
        ;;
 
11776
      *)
 
11777
        # GNU C++ compiler with Solaris linker
 
11778
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11779
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11780
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11781
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11782
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11783
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11784
 
 
11785
            # Commands to make compiler produce verbose output that lists
 
11786
            # what "hidden" libraries, object files and flags are used when
 
11787
            # linking a shared library.
 
11788
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11789
          else
 
11790
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11791
            # platform.
 
11792
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11793
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11794
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11795
 
 
11796
            # Commands to make compiler produce verbose output that lists
 
11797
            # what "hidden" libraries, object files and flags are used when
 
11798
            # linking a shared library.
 
11799
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11800
          fi
 
11801
 
 
11802
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11803
        fi
 
11804
        ;;
 
11805
    esac
 
11806
    ;;
 
11807
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
11808
    archive_cmds_need_lc_CXX=no
 
11809
    ;;
 
11810
  tandem*)
 
11811
    case $cc_basename in
 
11812
      NCC)
 
11813
        # NonStop-UX NCC 3.20
 
11814
        # FIXME: insert proper C++ library support
 
11815
        ld_shlibs_CXX=no
 
11816
        ;;
 
11817
      *)
 
11818
        # FIXME: insert proper C++ library support
 
11819
        ld_shlibs_CXX=no
 
11820
        ;;
 
11821
    esac
 
11822
    ;;
 
11823
  vxworks*)
 
11824
    # FIXME: insert proper C++ library support
 
11825
    ld_shlibs_CXX=no
 
11826
    ;;
 
11827
  *)
 
11828
    # FIXME: insert proper C++ library support
 
11829
    ld_shlibs_CXX=no
 
11830
    ;;
 
11831
esac
 
11832
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11833
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11834
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11835
 
 
11836
GCC_CXX="$GXX"
 
11837
LD_CXX="$LD"
 
11838
 
 
11839
 
 
11840
cat > conftest.$ac_ext <<EOF
 
11841
class Foo
 
11842
{
 
11843
public:
 
11844
  Foo (void) { a = 0; }
 
11845
private:
 
11846
  int a;
 
11847
};
 
11848
EOF
 
11849
 
 
11850
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11851
  (eval $ac_compile) 2>&5
 
11852
  ac_status=$?
 
11853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11854
  (exit $ac_status); }; then
 
11855
  # Parse the compiler output and extract the necessary
 
11856
  # objects, libraries and library flags.
 
11857
 
 
11858
  # Sentinel used to keep track of whether or not we are before
 
11859
  # the conftest object file.
 
11860
  pre_test_object_deps_done=no
 
11861
 
 
11862
  # The `*' in the case matches for architectures that use `case' in
 
11863
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11864
  # eval without this substitution.
 
11865
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11866
 
 
11867
  for p in `eval $output_verbose_link_cmd`; do
 
11868
    case $p in
 
11869
 
 
11870
    -L* | -R* | -l*)
 
11871
       # Some compilers place space between "-{L,R}" and the path.
 
11872
       # Remove the space.
 
11873
       if test $p = "-L" \
 
11874
          || test $p = "-R"; then
 
11875
         prev=$p
 
11876
         continue
 
11877
       else
 
11878
         prev=
 
11879
       fi
 
11880
 
 
11881
       if test "$pre_test_object_deps_done" = no; then
 
11882
         case $p in
 
11883
         -L* | -R*)
 
11884
           # Internal compiler library paths should come after those
 
11885
           # provided the user.  The postdeps already come after the
 
11886
           # user supplied libs so there is no need to process them.
 
11887
           if test -z "$compiler_lib_search_path_CXX"; then
 
11888
             compiler_lib_search_path_CXX="${prev}${p}"
 
11889
           else
 
11890
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11891
           fi
 
11892
           ;;
 
11893
         # The "-l" case would never come before the object being
 
11894
         # linked, so don't bother handling this case.
 
11895
         esac
 
11896
       else
 
11897
         if test -z "$postdeps_CXX"; then
 
11898
           postdeps_CXX="${prev}${p}"
 
11899
         else
 
11900
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11901
         fi
 
11902
       fi
 
11903
       ;;
 
11904
 
 
11905
    *.$objext)
 
11906
       # This assumes that the test object file only shows up
 
11907
       # once in the compiler output.
 
11908
       if test "$p" = "conftest.$objext"; then
 
11909
         pre_test_object_deps_done=yes
 
11910
         continue
 
11911
       fi
 
11912
 
 
11913
       if test "$pre_test_object_deps_done" = no; then
 
11914
         if test -z "$predep_objects_CXX"; then
 
11915
           predep_objects_CXX="$p"
 
11916
         else
 
11917
           predep_objects_CXX="$predep_objects_CXX $p"
 
11918
         fi
 
11919
       else
 
11920
         if test -z "$postdep_objects_CXX"; then
 
11921
           postdep_objects_CXX="$p"
 
11922
         else
 
11923
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11924
         fi
 
11925
       fi
 
11926
       ;;
 
11927
 
 
11928
    *) ;; # Ignore the rest.
 
11929
 
 
11930
    esac
 
11931
  done
 
11932
 
 
11933
  # Clean up.
 
11934
  rm -f a.out a.exe
 
11935
else
 
11936
  echo "libtool.m4: error: problem compiling CXX test program"
 
11937
fi
 
11938
 
 
11939
$rm -f confest.$objext
 
11940
 
 
11941
case " $postdeps_CXX " in
 
11942
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11943
esac
 
11944
 
 
11945
lt_prog_compiler_wl_CXX=
 
11946
lt_prog_compiler_pic_CXX=
 
11947
lt_prog_compiler_static_CXX=
 
11948
 
 
11949
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11950
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11951
 
 
11952
  # C++ specific cases for pic, static, wl, etc.
 
11953
  if test "$GXX" = yes; then
 
11954
    lt_prog_compiler_wl_CXX='-Wl,'
 
11955
    lt_prog_compiler_static_CXX='-static'
 
11956
 
 
11957
    case $host_os in
 
11958
    aix*)
 
11959
      # All AIX code is PIC.
 
11960
      if test "$host_cpu" = ia64; then
 
11961
        # AIX 5 now supports IA64 processor
 
11962
        lt_prog_compiler_static_CXX='-Bstatic'
 
11963
      fi
 
11964
      ;;
 
11965
    amigaos*)
 
11966
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11967
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11968
      # like `-m68040'.
 
11969
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11970
      ;;
 
11971
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11972
      # PIC is the default for these OSes.
 
11973
      ;;
 
11974
    mingw* | os2* | pw32*)
 
11975
      # This hack is so that the source file can tell whether it is being
 
11976
      # built for inclusion in a dll (and should export symbols for example).
 
11977
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11978
      ;;
 
11979
    darwin* | rhapsody*)
 
11980
      # PIC is the default on this platform
 
11981
      # Common symbols not allowed in MH_DYLIB files
 
11982
      lt_prog_compiler_pic_CXX='-fno-common'
 
11983
      ;;
 
11984
    *djgpp*)
 
11985
      # DJGPP does not support shared libraries at all
 
11986
      lt_prog_compiler_pic_CXX=
 
11987
      ;;
 
11988
    sysv4*MP*)
 
11989
      if test -d /usr/nec; then
 
11990
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11991
      fi
 
11992
      ;;
 
11993
    hpux*)
 
11994
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11995
      # not for PA HP-UX.
 
11996
      case "$host_cpu" in
 
11997
      hppa*64*|ia64*)
 
11998
        ;;
 
11999
      *)
 
12000
        lt_prog_compiler_pic_CXX='-fPIC'
 
12001
        ;;
 
12002
      esac
 
12003
      ;;
 
12004
    *)
 
12005
      lt_prog_compiler_pic_CXX='-fPIC'
 
12006
      ;;
 
12007
    esac
 
12008
  else
 
12009
    case $host_os in
 
12010
      aix4* | aix5*)
 
12011
        # All AIX code is PIC.
 
12012
        if test "$host_cpu" = ia64; then
 
12013
          # AIX 5 now supports IA64 processor
 
12014
          lt_prog_compiler_static_CXX='-Bstatic'
 
12015
        else
 
12016
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12017
        fi
 
12018
        ;;
 
12019
      chorus*)
 
12020
        case $cc_basename in
 
12021
        cxch68)
 
12022
          # Green Hills C++ Compiler
 
12023
          # _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"
 
12024
          ;;
 
12025
        esac
 
12026
        ;;
 
12027
       darwin*)
 
12028
         # PIC is the default on this platform
 
12029
         # Common symbols not allowed in MH_DYLIB files
 
12030
         case "$cc_basename" in
 
12031
           xlc*)
 
12032
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12033
           lt_prog_compiler_wl_CXX='-Wl,'
 
12034
           ;;
 
12035
         esac
 
12036
       ;;
 
12037
      dgux*)
 
12038
        case $cc_basename in
 
12039
          ec++)
 
12040
            lt_prog_compiler_pic_CXX='-KPIC'
 
12041
            ;;
 
12042
          ghcx)
 
12043
            # Green Hills C++ Compiler
 
12044
            lt_prog_compiler_pic_CXX='-pic'
 
12045
            ;;
 
12046
          *)
 
12047
            ;;
 
12048
        esac
 
12049
        ;;
 
12050
      freebsd* | kfreebsd*-gnu)
 
12051
        # FreeBSD uses GNU C++
 
12052
        ;;
 
12053
      hpux9* | hpux10* | hpux11*)
 
12054
        case $cc_basename in
 
12055
          CC)
 
12056
            lt_prog_compiler_wl_CXX='-Wl,'
 
12057
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12058
            if test "$host_cpu" != ia64; then
 
12059
              lt_prog_compiler_pic_CXX='+Z'
 
12060
            fi
 
12061
            ;;
 
12062
          aCC)
 
12063
            lt_prog_compiler_wl_CXX='-Wl,'
 
12064
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12065
            case "$host_cpu" in
 
12066
            hppa*64*|ia64*)
 
12067
              # +Z the default
 
12068
              ;;
 
12069
            *)
 
12070
              lt_prog_compiler_pic_CXX='+Z'
 
12071
              ;;
 
12072
            esac
 
12073
            ;;
 
12074
          *)
 
12075
            ;;
 
12076
        esac
 
12077
        ;;
 
12078
      irix5* | irix6* | nonstopux*)
 
12079
        case $cc_basename in
 
12080
          CC)
 
12081
            lt_prog_compiler_wl_CXX='-Wl,'
 
12082
            lt_prog_compiler_static_CXX='-non_shared'
 
12083
            # CC pic flag -KPIC is the default.
 
12084
            ;;
 
12085
          *)
 
12086
            ;;
 
12087
        esac
 
12088
        ;;
 
12089
      linux*)
 
12090
        case $cc_basename in
 
12091
          KCC)
 
12092
            # KAI C++ Compiler
 
12093
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12094
            lt_prog_compiler_pic_CXX='-fPIC'
 
12095
            ;;
 
12096
          icpc)
 
12097
            # Intel C++
 
12098
            lt_prog_compiler_wl_CXX='-Wl,'
 
12099
            lt_prog_compiler_pic_CXX='-KPIC'
 
12100
            lt_prog_compiler_static_CXX='-static'
 
12101
            ;;
 
12102
          cxx)
 
12103
            # Compaq C++
 
12104
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12105
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12106
            lt_prog_compiler_pic_CXX=
 
12107
            lt_prog_compiler_static_CXX='-non_shared'
 
12108
            ;;
 
12109
          *)
 
12110
            ;;
 
12111
        esac
 
12112
        ;;
 
12113
      lynxos*)
 
12114
        ;;
 
12115
      m88k*)
 
12116
        ;;
 
12117
      mvs*)
 
12118
        case $cc_basename in
 
12119
          cxx)
 
12120
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12121
            ;;
 
12122
          *)
 
12123
            ;;
 
12124
        esac
 
12125
        ;;
 
12126
      netbsd*)
 
12127
        ;;
 
12128
      osf3* | osf4* | osf5*)
 
12129
        case $cc_basename in
 
12130
          KCC)
 
12131
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12132
            ;;
 
12133
          RCC)
 
12134
            # Rational C++ 2.4.1
 
12135
            lt_prog_compiler_pic_CXX='-pic'
 
12136
            ;;
 
12137
          cxx)
 
12138
            # Digital/Compaq C++
 
12139
            lt_prog_compiler_wl_CXX='-Wl,'
 
12140
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12141
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12142
            lt_prog_compiler_pic_CXX=
 
12143
            lt_prog_compiler_static_CXX='-non_shared'
 
12144
            ;;
 
12145
          *)
 
12146
            ;;
 
12147
        esac
 
12148
        ;;
 
12149
      psos*)
 
12150
        ;;
 
12151
      sco*)
 
12152
        case $cc_basename in
 
12153
          CC)
 
12154
            lt_prog_compiler_pic_CXX='-fPIC'
 
12155
            ;;
 
12156
          *)
 
12157
            ;;
 
12158
        esac
 
12159
        ;;
 
12160
      solaris*)
 
12161
        case $cc_basename in
 
12162
          CC)
 
12163
            # Sun C++ 4.2, 5.x and Centerline C++
 
12164
            lt_prog_compiler_pic_CXX='-KPIC'
 
12165
            lt_prog_compiler_static_CXX='-Bstatic'
 
12166
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12167
            ;;
 
12168
          gcx)
 
12169
            # Green Hills C++ Compiler
 
12170
            lt_prog_compiler_pic_CXX='-PIC'
 
12171
            ;;
 
12172
          *)
 
12173
            ;;
 
12174
        esac
 
12175
        ;;
 
12176
      sunos4*)
 
12177
        case $cc_basename in
 
12178
          CC)
 
12179
            # Sun C++ 4.x
 
12180
            lt_prog_compiler_pic_CXX='-pic'
 
12181
            lt_prog_compiler_static_CXX='-Bstatic'
 
12182
            ;;
 
12183
          lcc)
 
12184
            # Lucid
 
12185
            lt_prog_compiler_pic_CXX='-pic'
 
12186
            ;;
 
12187
          *)
 
12188
            ;;
 
12189
        esac
 
12190
        ;;
 
12191
      tandem*)
 
12192
        case $cc_basename in
 
12193
          NCC)
 
12194
            # NonStop-UX NCC 3.20
 
12195
            lt_prog_compiler_pic_CXX='-KPIC'
 
12196
            ;;
 
12197
          *)
 
12198
            ;;
 
12199
        esac
 
12200
        ;;
 
12201
      unixware*)
 
12202
        ;;
 
12203
      vxworks*)
 
12204
        ;;
 
12205
      *)
 
12206
        lt_prog_compiler_can_build_shared_CXX=no
 
12207
        ;;
 
12208
    esac
 
12209
  fi
 
12210
 
 
12211
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12212
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
12213
 
 
12214
#
 
12215
# Check to make sure the PIC flag actually works.
 
12216
#
 
12217
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12218
 
 
12219
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12220
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
12221
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12223
else
 
12224
  lt_prog_compiler_pic_works_CXX=no
 
12225
  ac_outfile=conftest.$ac_objext
 
12226
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12227
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12228
   # Insert the option either (1) after the last *FLAGS variable, or
 
12229
   # (2) before a word containing "conftest.", or (3) at the end.
 
12230
   # Note that $ac_compile itself does not contain backslashes and begins
 
12231
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12232
   # The option is referenced via a variable to avoid confusing sed.
 
12233
   lt_compile=`echo "$ac_compile" | $SED \
 
12234
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12235
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12236
   -e 's:$: $lt_compiler_flag:'`
 
12237
   (eval echo "\"\$as_me:12237: $lt_compile\"" >&5)
 
12238
   (eval "$lt_compile" 2>conftest.err)
 
12239
   ac_status=$?
 
12240
   cat conftest.err >&5
 
12241
   echo "$as_me:12241: \$? = $ac_status" >&5
 
12242
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12243
     # The compiler can only warn and ignore the option if not recognized
 
12244
     # So say no if there are warnings
 
12245
     if test ! -s conftest.err; then
 
12246
       lt_prog_compiler_pic_works_CXX=yes
 
12247
     fi
 
12248
   fi
 
12249
   $rm conftest*
 
12250
 
 
12251
fi
 
12252
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12253
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
12254
 
 
12255
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12256
    case $lt_prog_compiler_pic_CXX in
 
12257
     "" | " "*) ;;
 
12258
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12259
     esac
 
12260
else
 
12261
    lt_prog_compiler_pic_CXX=
 
12262
     lt_prog_compiler_can_build_shared_CXX=no
 
12263
fi
 
12264
 
 
12265
fi
 
12266
case "$host_os" in
 
12267
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12268
  *djgpp*)
 
12269
    lt_prog_compiler_pic_CXX=
 
12270
    ;;
 
12271
  *)
 
12272
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12273
    ;;
 
12274
esac
 
12275
 
 
12276
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12277
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12278
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12280
else
 
12281
  lt_cv_prog_compiler_c_o_CXX=no
 
12282
   $rm -r conftest 2>/dev/null
 
12283
   mkdir conftest
 
12284
   cd conftest
 
12285
   mkdir out
 
12286
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12287
 
 
12288
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12289
   # Insert the option either (1) after the last *FLAGS variable, or
 
12290
   # (2) before a word containing "conftest.", or (3) at the end.
 
12291
   # Note that $ac_compile itself does not contain backslashes and begins
 
12292
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12293
   lt_compile=`echo "$ac_compile" | $SED \
 
12294
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12295
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12296
   -e 's:$: $lt_compiler_flag:'`
 
12297
   (eval echo "\"\$as_me:12297: $lt_compile\"" >&5)
 
12298
   (eval "$lt_compile" 2>out/conftest.err)
 
12299
   ac_status=$?
 
12300
   cat out/conftest.err >&5
 
12301
   echo "$as_me:12301: \$? = $ac_status" >&5
 
12302
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12303
   then
 
12304
     # The compiler can only warn and ignore the option if not recognized
 
12305
     # So say no if there are warnings
 
12306
     if test ! -s out/conftest.err; then
 
12307
       lt_cv_prog_compiler_c_o_CXX=yes
 
12308
     fi
 
12309
   fi
 
12310
   chmod u+w .
 
12311
   $rm conftest*
 
12312
   # SGI C++ compiler will create directory out/ii_files/ for
 
12313
   # template instantiation
 
12314
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12315
   $rm out/* && rmdir out
 
12316
   cd ..
 
12317
   rmdir conftest
 
12318
   $rm conftest*
 
12319
 
 
12320
fi
 
12321
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12322
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
12323
 
 
12324
 
 
12325
hard_links="nottested"
 
12326
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12327
  # do not overwrite the value of need_locks provided by the user
 
12328
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12329
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
12330
  hard_links=yes
 
12331
  $rm conftest*
 
12332
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12333
  touch conftest.a
 
12334
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12335
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12336
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
12337
echo "${ECHO_T}$hard_links" >&6
 
12338
  if test "$hard_links" = no; then
 
12339
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12340
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12341
    need_locks=warn
 
12342
  fi
 
12343
else
 
12344
  need_locks=no
 
12345
fi
 
12346
 
 
12347
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12348
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12349
 
 
12350
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12351
  case $host_os in
 
12352
  aix4* | aix5*)
 
12353
    # If we're using GNU nm, then we don't want the "-C" option.
 
12354
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12355
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12356
      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'
 
12357
    else
 
12358
      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'
 
12359
    fi
 
12360
    ;;
 
12361
  pw32*)
 
12362
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12363
  ;;
 
12364
  cygwin* | mingw*)
 
12365
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12366
  ;;
 
12367
  *)
 
12368
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12369
  ;;
 
12370
  esac
 
12371
 
 
12372
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12373
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12374
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12375
 
 
12376
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12377
if test "$GCC" = yes; then
 
12378
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12379
fi
 
12380
 
 
12381
#
 
12382
# Do we need to explicitly link libc?
 
12383
#
 
12384
case "x$archive_cmds_need_lc_CXX" in
 
12385
x|xyes)
 
12386
  # Assume -lc should be added
 
12387
  archive_cmds_need_lc_CXX=yes
 
12388
 
 
12389
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12390
    case $archive_cmds_CXX in
 
12391
    *'~'*)
 
12392
      # FIXME: we may have to deal with multi-command sequences.
 
12393
      ;;
 
12394
    '$CC '*)
 
12395
      # Test whether the compiler implicitly links with -lc since on some
 
12396
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12397
      # to ld, don't add -lc before -lgcc.
 
12398
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12399
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
12400
      $rm conftest*
 
12401
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12402
 
 
12403
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12404
  (eval $ac_compile) 2>&5
 
12405
  ac_status=$?
 
12406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12407
  (exit $ac_status); } 2>conftest.err; then
 
12408
        soname=conftest
 
12409
        lib=conftest
 
12410
        libobjs=conftest.$ac_objext
 
12411
        deplibs=
 
12412
        wl=$lt_prog_compiler_wl_CXX
 
12413
        compiler_flags=-v
 
12414
        linker_flags=-v
 
12415
        verstring=
 
12416
        output_objdir=.
 
12417
        libname=conftest
 
12418
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12419
        allow_undefined_flag_CXX=
 
12420
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12421
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12422
  ac_status=$?
 
12423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12424
  (exit $ac_status); }
 
12425
        then
 
12426
          archive_cmds_need_lc_CXX=no
 
12427
        else
 
12428
          archive_cmds_need_lc_CXX=yes
 
12429
        fi
 
12430
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12431
      else
 
12432
        cat conftest.err 1>&5
 
12433
      fi
 
12434
      $rm conftest*
 
12435
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12436
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
12437
      ;;
 
12438
    esac
 
12439
  fi
 
12440
  ;;
 
12441
esac
 
12442
 
 
12443
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12444
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12445
library_names_spec=
 
12446
libname_spec='lib$name'
 
12447
soname_spec=
 
12448
shrext_cmds=".so"
 
12449
postinstall_cmds=
 
12450
postuninstall_cmds=
 
12451
finish_cmds=
 
12452
finish_eval=
 
12453
shlibpath_var=
 
12454
shlibpath_overrides_runpath=unknown
 
12455
version_type=none
 
12456
dynamic_linker="$host_os ld.so"
 
12457
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12458
if test "$GCC" = yes; then
 
12459
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12460
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12461
    # if the path contains ";" then we assume it to be the separator
 
12462
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12463
    # assumed that no part of a normal pathname contains ";" but that should
 
12464
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12465
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12466
  else
 
12467
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12468
  fi
 
12469
else
 
12470
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12471
fi
 
12472
need_lib_prefix=unknown
 
12473
hardcode_into_libs=no
 
12474
 
 
12475
# when you set need_version to no, make sure it does not cause -set_version
 
12476
# flags to be left without arguments
 
12477
need_version=unknown
 
12478
 
 
12479
case $host_os in
 
12480
aix3*)
 
12481
  version_type=linux
 
12482
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12483
  shlibpath_var=LIBPATH
 
12484
 
 
12485
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12486
  soname_spec='${libname}${release}${shared_ext}$major'
 
12487
  ;;
 
12488
 
 
12489
aix4* | aix5*)
 
12490
  version_type=linux
 
12491
  need_lib_prefix=no
 
12492
  need_version=no
 
12493
  hardcode_into_libs=yes
 
12494
  if test "$host_cpu" = ia64; then
 
12495
    # AIX 5 supports IA64
 
12496
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12497
    shlibpath_var=LD_LIBRARY_PATH
 
12498
  else
 
12499
    # With GCC up to 2.95.x, collect2 would create an import file
 
12500
    # for dependence libraries.  The import file would start with
 
12501
    # the line `#! .'.  This would cause the generated library to
 
12502
    # depend on `.', always an invalid library.  This was fixed in
 
12503
    # development snapshots of GCC prior to 3.0.
 
12504
    case $host_os in
 
12505
      aix4 | aix4.[01] | aix4.[01].*)
 
12506
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12507
           echo ' yes '
 
12508
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12509
        :
 
12510
      else
 
12511
        can_build_shared=no
 
12512
      fi
 
12513
      ;;
 
12514
    esac
 
12515
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12516
    # soname into executable. Probably we can add versioning support to
 
12517
    # collect2, so additional links can be useful in future.
 
12518
    if test "$aix_use_runtimelinking" = yes; then
 
12519
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12520
      # instead of lib<name>.a to let people know that these are not
 
12521
      # typical AIX shared libraries.
 
12522
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12523
    else
 
12524
      # We preserve .a as extension for shared libraries through AIX4.2
 
12525
      # and later when we are not doing run time linking.
 
12526
      library_names_spec='${libname}${release}.a $libname.a'
 
12527
      soname_spec='${libname}${release}${shared_ext}$major'
 
12528
    fi
 
12529
    shlibpath_var=LIBPATH
 
12530
  fi
 
12531
  ;;
 
12532
 
 
12533
amigaos*)
 
12534
  library_names_spec='$libname.ixlibrary $libname.a'
 
12535
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12536
  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'
 
12537
  ;;
 
12538
 
 
12539
beos*)
 
12540
  library_names_spec='${libname}${shared_ext}'
 
12541
  dynamic_linker="$host_os ld.so"
 
12542
  shlibpath_var=LIBRARY_PATH
 
12543
  ;;
 
12544
 
 
12545
bsdi[45]*)
 
12546
  version_type=linux
 
12547
  need_version=no
 
12548
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12549
  soname_spec='${libname}${release}${shared_ext}$major'
 
12550
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12551
  shlibpath_var=LD_LIBRARY_PATH
 
12552
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12553
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12554
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12555
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12556
  # libtool to hard-code these into programs
 
12557
  ;;
 
12558
 
 
12559
cygwin* | mingw* | pw32*)
 
12560
  version_type=windows
 
12561
  shrext_cmds=".dll"
 
12562
  need_version=no
 
12563
  need_lib_prefix=no
 
12564
 
 
12565
  case $GCC,$host_os in
 
12566
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12567
    library_names_spec='$libname.dll.a'
 
12568
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12569
    postinstall_cmds='base_file=`basename \${file}`~
 
12570
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12571
      dldir=$destdir/`dirname \$dlpath`~
 
12572
      test -d \$dldir || mkdir -p \$dldir~
 
12573
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12574
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12575
      dlpath=$dir/\$dldll~
 
12576
       $rm \$dlpath'
 
12577
    shlibpath_overrides_runpath=yes
 
12578
 
 
12579
    case $host_os in
 
12580
    cygwin*)
 
12581
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12582
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12583
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12584
      ;;
 
12585
    mingw*)
 
12586
      # MinGW DLLs use traditional 'lib' prefix
 
12587
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12588
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12589
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12590
        # It is most probably a Windows format PATH printed by
 
12591
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12592
        # path with ; separators, and with drive letters. We can handle the
 
12593
        # drive letters (cygwin fileutils understands them), so leave them,
 
12594
        # especially as we might pass files found there to a mingw objdump,
 
12595
        # which wouldn't understand a cygwinified path. Ahh.
 
12596
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12597
      else
 
12598
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12599
      fi
 
12600
      ;;
 
12601
    pw32*)
 
12602
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12603
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12604
      ;;
 
12605
    esac
 
12606
    ;;
 
12607
 
 
12608
  *)
 
12609
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12610
    ;;
 
12611
  esac
 
12612
  dynamic_linker='Win32 ld.exe'
 
12613
  # FIXME: first we should search . and the directory the executable is in
 
12614
  shlibpath_var=PATH
 
12615
  ;;
 
12616
 
 
12617
darwin* | rhapsody*)
 
12618
  dynamic_linker="$host_os dyld"
 
12619
  version_type=darwin
 
12620
  need_lib_prefix=no
 
12621
  need_version=no
 
12622
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12623
  soname_spec='${libname}${release}${major}$shared_ext'
 
12624
  shlibpath_overrides_runpath=yes
 
12625
  shlibpath_var=DYLD_LIBRARY_PATH
 
12626
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
12627
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12628
  if test "$GCC" = yes; then
 
12629
    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"`
 
12630
  else
 
12631
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12632
  fi
 
12633
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12634
  ;;
 
12635
 
 
12636
dgux*)
 
12637
  version_type=linux
 
12638
  need_lib_prefix=no
 
12639
  need_version=no
 
12640
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12641
  soname_spec='${libname}${release}${shared_ext}$major'
 
12642
  shlibpath_var=LD_LIBRARY_PATH
 
12643
  ;;
 
12644
 
 
12645
freebsd1*)
 
12646
  dynamic_linker=no
 
12647
  ;;
 
12648
 
 
12649
kfreebsd*-gnu)
 
12650
  version_type=linux
 
12651
  need_lib_prefix=no
 
12652
  need_version=no
 
12653
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12654
  soname_spec='${libname}${release}${shared_ext}$major'
 
12655
  shlibpath_var=LD_LIBRARY_PATH
 
12656
  shlibpath_overrides_runpath=no
 
12657
  hardcode_into_libs=yes
 
12658
  dynamic_linker='GNU ld.so'
 
12659
  ;;
 
12660
 
 
12661
freebsd*)
 
12662
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12663
  version_type=freebsd-$objformat
 
12664
  case $version_type in
 
12665
    freebsd-elf*)
 
12666
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12667
      need_version=no
 
12668
      need_lib_prefix=no
 
12669
      ;;
 
12670
    freebsd-*)
 
12671
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12672
      need_version=yes
 
12673
      ;;
 
12674
  esac
 
12675
  shlibpath_var=LD_LIBRARY_PATH
 
12676
  case $host_os in
 
12677
  freebsd2*)
 
12678
    shlibpath_overrides_runpath=yes
 
12679
    ;;
 
12680
  freebsd3.01* | freebsdelf3.01*)
 
12681
    shlibpath_overrides_runpath=yes
 
12682
    hardcode_into_libs=yes
 
12683
    ;;
 
12684
  *) # from 3.2 on
 
12685
    shlibpath_overrides_runpath=no
 
12686
    hardcode_into_libs=yes
 
12687
    ;;
 
12688
  esac
 
12689
  ;;
 
12690
 
 
12691
gnu*)
 
12692
  version_type=linux
 
12693
  need_lib_prefix=no
 
12694
  need_version=no
 
12695
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12696
  soname_spec='${libname}${release}${shared_ext}$major'
 
12697
  shlibpath_var=LD_LIBRARY_PATH
 
12698
  hardcode_into_libs=yes
 
12699
  ;;
 
12700
 
 
12701
hpux9* | hpux10* | hpux11*)
 
12702
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12703
  # link against other versions.
 
12704
  version_type=sunos
 
12705
  need_lib_prefix=no
 
12706
  need_version=no
 
12707
  case "$host_cpu" in
 
12708
  ia64*)
 
12709
    shrext_cmds='.so'
 
12710
    hardcode_into_libs=yes
 
12711
    dynamic_linker="$host_os dld.so"
 
12712
    shlibpath_var=LD_LIBRARY_PATH
 
12713
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12714
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12715
    soname_spec='${libname}${release}${shared_ext}$major'
 
12716
    if test "X$HPUX_IA64_MODE" = X32; then
 
12717
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12718
    else
 
12719
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12720
    fi
 
12721
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12722
    ;;
 
12723
   hppa*64*)
 
12724
     shrext_cmds='.sl'
 
12725
     hardcode_into_libs=yes
 
12726
     dynamic_linker="$host_os dld.sl"
 
12727
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12728
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12729
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12730
     soname_spec='${libname}${release}${shared_ext}$major'
 
12731
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12732
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12733
     ;;
 
12734
   *)
 
12735
    shrext_cmds='.sl'
 
12736
    dynamic_linker="$host_os dld.sl"
 
12737
    shlibpath_var=SHLIB_PATH
 
12738
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12739
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12740
    soname_spec='${libname}${release}${shared_ext}$major'
 
12741
    ;;
 
12742
  esac
 
12743
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12744
  postinstall_cmds='chmod 555 $lib'
 
12745
  ;;
 
12746
 
 
12747
irix5* | irix6* | nonstopux*)
 
12748
  case $host_os in
 
12749
    nonstopux*) version_type=nonstopux ;;
 
12750
    *)
 
12751
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12752
                version_type=linux
 
12753
        else
 
12754
                version_type=irix
 
12755
        fi ;;
 
12756
  esac
 
12757
  need_lib_prefix=no
 
12758
  need_version=no
 
12759
  soname_spec='${libname}${release}${shared_ext}$major'
 
12760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12761
  case $host_os in
 
12762
  irix5* | nonstopux*)
 
12763
    libsuff= shlibsuff=
 
12764
    ;;
 
12765
  *)
 
12766
    case $LD in # libtool.m4 will add one of these switches to LD
 
12767
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12768
      libsuff= shlibsuff= libmagic=32-bit;;
 
12769
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12770
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12771
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12772
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12773
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12774
    esac
 
12775
    ;;
 
12776
  esac
 
12777
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12778
  shlibpath_overrides_runpath=no
 
12779
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12780
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12781
  hardcode_into_libs=yes
 
12782
  ;;
 
12783
 
 
12784
# No shared lib support for Linux oldld, aout, or coff.
 
12785
linux*oldld* | linux*aout* | linux*coff*)
 
12786
  dynamic_linker=no
 
12787
  ;;
 
12788
 
 
12789
# This must be Linux ELF.
 
12790
linux*)
 
12791
  version_type=linux
 
12792
  need_lib_prefix=no
 
12793
  need_version=no
 
12794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12795
  soname_spec='${libname}${release}${shared_ext}$major'
 
12796
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12797
  shlibpath_var=LD_LIBRARY_PATH
 
12798
  shlibpath_overrides_runpath=no
 
12799
  # This implies no fast_install, which is unacceptable.
 
12800
  # Some rework will be needed to allow for fast_install
 
12801
  # before this can be enabled.
 
12802
  hardcode_into_libs=yes
 
12803
 
 
12804
  # find out which ABI we are using
 
12805
  libsuff=
 
12806
  case "$host_cpu" in
 
12807
  x86_64*|s390x*|powerpc64*)
 
12808
    echo '#line 12808 "configure"' > conftest.$ac_ext
 
12809
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12810
  (eval $ac_compile) 2>&5
 
12811
  ac_status=$?
 
12812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12813
  (exit $ac_status); }; then
 
12814
      case `/usr/bin/file conftest.$ac_objext` in
 
12815
      *64-bit*)
 
12816
        libsuff=64
 
12817
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
12818
        ;;
 
12819
      esac
 
12820
    fi
 
12821
    rm -rf conftest*
 
12822
    ;;
 
12823
  esac
 
12824
 
 
12825
  # Append ld.so.conf contents to the search path
 
12826
  if test -f /etc/ld.so.conf; then
 
12827
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
12828
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
12829
  fi
 
12830
 
 
12831
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12832
  # powerpc, because MkLinux only supported shared libraries with the
 
12833
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12834
  # most powerpc-linux boxes support dynamic linking these days and
 
12835
  # people can always --disable-shared, the test was removed, and we
 
12836
  # assume the GNU/Linux dynamic linker is in use.
 
12837
  dynamic_linker='GNU/Linux ld.so'
 
12838
  ;;
 
12839
 
 
12840
knetbsd*-gnu)
 
12841
  version_type=linux
 
12842
  need_lib_prefix=no
 
12843
  need_version=no
 
12844
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12845
  soname_spec='${libname}${release}${shared_ext}$major'
 
12846
  shlibpath_var=LD_LIBRARY_PATH
 
12847
  shlibpath_overrides_runpath=no
 
12848
  hardcode_into_libs=yes
 
12849
  dynamic_linker='GNU ld.so'
 
12850
  ;;
 
12851
 
 
12852
netbsd*)
 
12853
  version_type=sunos
 
12854
  need_lib_prefix=no
 
12855
  need_version=no
 
12856
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12857
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12858
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12859
    dynamic_linker='NetBSD (a.out) ld.so'
 
12860
  else
 
12861
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12862
    soname_spec='${libname}${release}${shared_ext}$major'
 
12863
    dynamic_linker='NetBSD ld.elf_so'
 
12864
  fi
 
12865
  shlibpath_var=LD_LIBRARY_PATH
 
12866
  shlibpath_overrides_runpath=yes
 
12867
  hardcode_into_libs=yes
 
12868
  ;;
 
12869
 
 
12870
newsos6)
 
12871
  version_type=linux
 
12872
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12873
  shlibpath_var=LD_LIBRARY_PATH
 
12874
  shlibpath_overrides_runpath=yes
 
12875
  ;;
 
12876
 
 
12877
nto-qnx*)
 
12878
  version_type=linux
 
12879
  need_lib_prefix=no
 
12880
  need_version=no
 
12881
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12882
  soname_spec='${libname}${release}${shared_ext}$major'
 
12883
  shlibpath_var=LD_LIBRARY_PATH
 
12884
  shlibpath_overrides_runpath=yes
 
12885
  ;;
 
12886
 
 
12887
openbsd*)
 
12888
  version_type=sunos
 
12889
  need_lib_prefix=no
 
12890
  need_version=no
 
12891
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12892
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12893
  shlibpath_var=LD_LIBRARY_PATH
 
12894
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12895
    case $host_os in
 
12896
      openbsd2.[89] | openbsd2.[89].*)
 
12897
        shlibpath_overrides_runpath=no
 
12898
        ;;
 
12899
      *)
 
12900
        shlibpath_overrides_runpath=yes
 
12901
        ;;
 
12902
      esac
 
12903
  else
 
12904
    shlibpath_overrides_runpath=yes
 
12905
  fi
 
12906
  ;;
 
12907
 
 
12908
os2*)
 
12909
  libname_spec='$name'
 
12910
  shrext_cmds=".dll"
 
12911
  need_lib_prefix=no
 
12912
  library_names_spec='$libname${shared_ext} $libname.a'
 
12913
  dynamic_linker='OS/2 ld.exe'
 
12914
  shlibpath_var=LIBPATH
 
12915
  ;;
 
12916
 
 
12917
osf3* | osf4* | osf5*)
 
12918
  version_type=osf
 
12919
  need_lib_prefix=no
 
12920
  need_version=no
 
12921
  soname_spec='${libname}${release}${shared_ext}$major'
 
12922
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12923
  shlibpath_var=LD_LIBRARY_PATH
 
12924
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12925
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12926
  ;;
 
12927
 
 
12928
sco3.2v5*)
 
12929
  version_type=osf
 
12930
  soname_spec='${libname}${release}${shared_ext}$major'
 
12931
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12932
  shlibpath_var=LD_LIBRARY_PATH
 
12933
  ;;
 
12934
 
 
12935
solaris*)
 
12936
  version_type=linux
 
12937
  need_lib_prefix=no
 
12938
  need_version=no
 
12939
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12940
  soname_spec='${libname}${release}${shared_ext}$major'
 
12941
  shlibpath_var=LD_LIBRARY_PATH
 
12942
  shlibpath_overrides_runpath=yes
 
12943
  hardcode_into_libs=yes
 
12944
  # ldd complains unless libraries are executable
 
12945
  postinstall_cmds='chmod +x $lib'
 
12946
  ;;
 
12947
 
 
12948
sunos4*)
 
12949
  version_type=sunos
 
12950
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12951
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12952
  shlibpath_var=LD_LIBRARY_PATH
 
12953
  shlibpath_overrides_runpath=yes
 
12954
  if test "$with_gnu_ld" = yes; then
 
12955
    need_lib_prefix=no
 
12956
  fi
 
12957
  need_version=yes
 
12958
  ;;
 
12959
 
 
12960
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12961
  version_type=linux
 
12962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12963
  soname_spec='${libname}${release}${shared_ext}$major'
 
12964
  shlibpath_var=LD_LIBRARY_PATH
 
12965
  case $host_vendor in
 
12966
    sni)
 
12967
      shlibpath_overrides_runpath=no
 
12968
      need_lib_prefix=no
 
12969
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12970
      runpath_var=LD_RUN_PATH
 
12971
      ;;
 
12972
    siemens)
 
12973
      need_lib_prefix=no
 
12974
      ;;
 
12975
    motorola)
 
12976
      need_lib_prefix=no
 
12977
      need_version=no
 
12978
      shlibpath_overrides_runpath=no
 
12979
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12980
      ;;
 
12981
  esac
 
12982
  ;;
 
12983
 
 
12984
sysv4*MP*)
 
12985
  if test -d /usr/nec ;then
 
12986
    version_type=linux
 
12987
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12988
    soname_spec='$libname${shared_ext}.$major'
 
12989
    shlibpath_var=LD_LIBRARY_PATH
 
12990
  fi
 
12991
  ;;
 
12992
 
 
12993
uts4*)
 
12994
  version_type=linux
 
12995
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12996
  soname_spec='${libname}${release}${shared_ext}$major'
 
12997
  shlibpath_var=LD_LIBRARY_PATH
 
12998
  ;;
 
12999
 
 
13000
*)
 
13001
  dynamic_linker=no
 
13002
  ;;
 
13003
esac
 
13004
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13005
echo "${ECHO_T}$dynamic_linker" >&6
 
13006
test "$dynamic_linker" = no && can_build_shared=no
 
13007
 
 
13008
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13009
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13010
hardcode_action_CXX=
 
13011
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13012
   test -n "$runpath_var_CXX" || \
 
13013
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13014
 
 
13015
  # We can hardcode non-existant directories.
 
13016
  if test "$hardcode_direct_CXX" != no &&
 
13017
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13018
     # have to relink, otherwise we might link with an installed library
 
13019
     # when we should be linking with a yet-to-be-installed one
 
13020
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13021
     test "$hardcode_minus_L_CXX" != no; then
 
13022
    # Linking always hardcodes the temporary library directory.
 
13023
    hardcode_action_CXX=relink
 
13024
  else
 
13025
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13026
    hardcode_action_CXX=immediate
 
13027
  fi
 
13028
else
 
13029
  # We cannot hardcode anything, or else we can only hardcode existing
 
13030
  # directories.
 
13031
  hardcode_action_CXX=unsupported
 
13032
fi
 
13033
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13034
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
13035
 
 
13036
if test "$hardcode_action_CXX" = relink; then
 
13037
  # Fast installation is not supported
 
13038
  enable_fast_install=no
 
13039
elif test "$shlibpath_overrides_runpath" = yes ||
 
13040
     test "$enable_shared" = no; then
 
13041
  # Fast installation is not necessary
 
13042
  enable_fast_install=needless
 
13043
fi
 
13044
 
 
13045
striplib=
 
13046
old_striplib=
 
13047
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
13048
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
13049
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
13050
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
13051
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
13052
  echo "$as_me:$LINENO: result: yes" >&5
 
13053
echo "${ECHO_T}yes" >&6
 
13054
else
 
13055
# FIXME - insert some real tests, host_os isn't really good enough
 
13056
  case $host_os in
 
13057
   darwin*)
 
13058
       if test -n "$STRIP" ; then
 
13059
         striplib="$STRIP -x"
 
13060
         echo "$as_me:$LINENO: result: yes" >&5
 
13061
echo "${ECHO_T}yes" >&6
 
13062
       else
 
13063
  echo "$as_me:$LINENO: result: no" >&5
 
13064
echo "${ECHO_T}no" >&6
 
13065
fi
 
13066
       ;;
 
13067
   *)
 
13068
  echo "$as_me:$LINENO: result: no" >&5
 
13069
echo "${ECHO_T}no" >&6
 
13070
    ;;
 
13071
  esac
 
13072
fi
 
13073
 
 
13074
if test "x$enable_dlopen" != xyes; then
 
13075
  enable_dlopen=unknown
 
13076
  enable_dlopen_self=unknown
 
13077
  enable_dlopen_self_static=unknown
 
13078
else
 
13079
  lt_cv_dlopen=no
 
13080
  lt_cv_dlopen_libs=
 
13081
 
 
13082
  case $host_os in
 
13083
  beos*)
 
13084
    lt_cv_dlopen="load_add_on"
 
13085
    lt_cv_dlopen_libs=
 
13086
    lt_cv_dlopen_self=yes
 
13087
    ;;
 
13088
 
 
13089
  mingw* | pw32*)
 
13090
    lt_cv_dlopen="LoadLibrary"
 
13091
    lt_cv_dlopen_libs=
 
13092
   ;;
 
13093
 
 
13094
  cygwin*)
 
13095
    lt_cv_dlopen="dlopen"
 
13096
    lt_cv_dlopen_libs=
 
13097
   ;;
 
13098
 
 
13099
  darwin*)
 
13100
  # if libdl is installed we need to link against it
 
13101
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13102
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13103
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13105
else
 
13106
  ac_check_lib_save_LIBS=$LIBS
 
13107
LIBS="-ldl  $LIBS"
 
13108
cat >conftest.$ac_ext <<_ACEOF
 
13109
/* confdefs.h.  */
 
13110
_ACEOF
 
13111
cat confdefs.h >>conftest.$ac_ext
 
13112
cat >>conftest.$ac_ext <<_ACEOF
 
13113
/* end confdefs.h.  */
 
13114
 
 
13115
/* Override any gcc2 internal prototype to avoid an error.  */
 
13116
#ifdef __cplusplus
 
13117
extern "C"
 
13118
#endif
 
13119
/* We use char because int might match the return type of a gcc2
 
13120
   builtin and then its argument prototype would still apply.  */
 
13121
char dlopen ();
 
13122
int
 
13123
main ()
 
13124
{
 
13125
dlopen ();
 
13126
  ;
 
13127
  return 0;
 
13128
}
 
13129
_ACEOF
 
13130
rm -f conftest.$ac_objext conftest$ac_exeext
 
13131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13132
  (eval $ac_link) 2>conftest.er1
 
13133
  ac_status=$?
 
13134
  grep -v '^ *+' conftest.er1 >conftest.err
 
13135
  rm -f conftest.er1
 
13136
  cat conftest.err >&5
 
13137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13138
  (exit $ac_status); } &&
 
13139
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13140
                         || test ! -s conftest.err'
 
13141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13142
  (eval $ac_try) 2>&5
 
13143
  ac_status=$?
 
13144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13145
  (exit $ac_status); }; } &&
 
13146
         { ac_try='test -s conftest$ac_exeext'
 
13147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13148
  (eval $ac_try) 2>&5
 
13149
  ac_status=$?
 
13150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13151
  (exit $ac_status); }; }; then
 
13152
  ac_cv_lib_dl_dlopen=yes
 
13153
else
 
13154
  echo "$as_me: failed program was:" >&5
 
13155
sed 's/^/| /' conftest.$ac_ext >&5
 
13156
 
 
13157
ac_cv_lib_dl_dlopen=no
 
13158
fi
 
13159
rm -f conftest.err conftest.$ac_objext \
 
13160
      conftest$ac_exeext conftest.$ac_ext
 
13161
LIBS=$ac_check_lib_save_LIBS
 
13162
fi
 
13163
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13164
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13165
if test $ac_cv_lib_dl_dlopen = yes; then
 
13166
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13167
else
 
13168
 
 
13169
    lt_cv_dlopen="dyld"
 
13170
    lt_cv_dlopen_libs=
 
13171
    lt_cv_dlopen_self=yes
 
13172
 
 
13173
fi
 
13174
 
 
13175
   ;;
 
13176
 
 
13177
  *)
 
13178
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
13179
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
13180
if test "${ac_cv_func_shl_load+set}" = set; then
 
13181
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13182
else
 
13183
  cat >conftest.$ac_ext <<_ACEOF
 
13184
/* confdefs.h.  */
 
13185
_ACEOF
 
13186
cat confdefs.h >>conftest.$ac_ext
 
13187
cat >>conftest.$ac_ext <<_ACEOF
 
13188
/* end confdefs.h.  */
 
13189
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
13190
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13191
#define shl_load innocuous_shl_load
 
13192
 
 
13193
/* System header to define __stub macros and hopefully few prototypes,
 
13194
    which can conflict with char shl_load (); below.
 
13195
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13196
    <limits.h> exists even on freestanding compilers.  */
 
13197
 
 
13198
#ifdef __STDC__
 
13199
# include <limits.h>
 
13200
#else
 
13201
# include <assert.h>
 
13202
#endif
 
13203
 
 
13204
#undef shl_load
 
13205
 
 
13206
/* Override any gcc2 internal prototype to avoid an error.  */
 
13207
#ifdef __cplusplus
 
13208
extern "C"
 
13209
{
 
13210
#endif
 
13211
/* We use char because int might match the return type of a gcc2
 
13212
   builtin and then its argument prototype would still apply.  */
 
13213
char shl_load ();
 
13214
/* The GNU C library defines this for functions which it implements
 
13215
    to always fail with ENOSYS.  Some functions are actually named
 
13216
    something starting with __ and the normal name is an alias.  */
 
13217
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
13218
choke me
 
13219
#else
 
13220
char (*f) () = shl_load;
 
13221
#endif
 
13222
#ifdef __cplusplus
 
13223
}
 
13224
#endif
 
13225
 
 
13226
int
 
13227
main ()
 
13228
{
 
13229
return f != shl_load;
 
13230
  ;
 
13231
  return 0;
 
13232
}
 
13233
_ACEOF
 
13234
rm -f conftest.$ac_objext conftest$ac_exeext
 
13235
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13236
  (eval $ac_link) 2>conftest.er1
 
13237
  ac_status=$?
 
13238
  grep -v '^ *+' conftest.er1 >conftest.err
 
13239
  rm -f conftest.er1
 
13240
  cat conftest.err >&5
 
13241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13242
  (exit $ac_status); } &&
 
13243
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13244
                         || test ! -s conftest.err'
 
13245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13246
  (eval $ac_try) 2>&5
 
13247
  ac_status=$?
 
13248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13249
  (exit $ac_status); }; } &&
 
13250
         { ac_try='test -s conftest$ac_exeext'
 
13251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13252
  (eval $ac_try) 2>&5
 
13253
  ac_status=$?
 
13254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13255
  (exit $ac_status); }; }; then
 
13256
  ac_cv_func_shl_load=yes
 
13257
else
 
13258
  echo "$as_me: failed program was:" >&5
 
13259
sed 's/^/| /' conftest.$ac_ext >&5
 
13260
 
 
13261
ac_cv_func_shl_load=no
 
13262
fi
 
13263
rm -f conftest.err conftest.$ac_objext \
 
13264
      conftest$ac_exeext conftest.$ac_ext
 
13265
fi
 
13266
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
13267
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
13268
if test $ac_cv_func_shl_load = yes; then
 
13269
  lt_cv_dlopen="shl_load"
 
13270
else
 
13271
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
13272
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
13273
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
13274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13275
else
 
13276
  ac_check_lib_save_LIBS=$LIBS
 
13277
LIBS="-ldld  $LIBS"
 
13278
cat >conftest.$ac_ext <<_ACEOF
 
13279
/* confdefs.h.  */
 
13280
_ACEOF
 
13281
cat confdefs.h >>conftest.$ac_ext
 
13282
cat >>conftest.$ac_ext <<_ACEOF
 
13283
/* end confdefs.h.  */
 
13284
 
 
13285
/* Override any gcc2 internal prototype to avoid an error.  */
 
13286
#ifdef __cplusplus
 
13287
extern "C"
 
13288
#endif
 
13289
/* We use char because int might match the return type of a gcc2
 
13290
   builtin and then its argument prototype would still apply.  */
 
13291
char shl_load ();
 
13292
int
 
13293
main ()
 
13294
{
 
13295
shl_load ();
 
13296
  ;
 
13297
  return 0;
 
13298
}
 
13299
_ACEOF
 
13300
rm -f conftest.$ac_objext conftest$ac_exeext
 
13301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13302
  (eval $ac_link) 2>conftest.er1
 
13303
  ac_status=$?
 
13304
  grep -v '^ *+' conftest.er1 >conftest.err
 
13305
  rm -f conftest.er1
 
13306
  cat conftest.err >&5
 
13307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13308
  (exit $ac_status); } &&
 
13309
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13310
                         || test ! -s conftest.err'
 
13311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13312
  (eval $ac_try) 2>&5
 
13313
  ac_status=$?
 
13314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13315
  (exit $ac_status); }; } &&
 
13316
         { ac_try='test -s conftest$ac_exeext'
 
13317
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13318
  (eval $ac_try) 2>&5
 
13319
  ac_status=$?
 
13320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13321
  (exit $ac_status); }; }; then
 
13322
  ac_cv_lib_dld_shl_load=yes
 
13323
else
 
13324
  echo "$as_me: failed program was:" >&5
 
13325
sed 's/^/| /' conftest.$ac_ext >&5
 
13326
 
 
13327
ac_cv_lib_dld_shl_load=no
 
13328
fi
 
13329
rm -f conftest.err conftest.$ac_objext \
 
13330
      conftest$ac_exeext conftest.$ac_ext
 
13331
LIBS=$ac_check_lib_save_LIBS
 
13332
fi
 
13333
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
13334
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
13335
if test $ac_cv_lib_dld_shl_load = yes; then
 
13336
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
13337
else
 
13338
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
13339
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
13340
if test "${ac_cv_func_dlopen+set}" = set; then
 
13341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13342
else
 
13343
  cat >conftest.$ac_ext <<_ACEOF
 
13344
/* confdefs.h.  */
 
13345
_ACEOF
 
13346
cat confdefs.h >>conftest.$ac_ext
 
13347
cat >>conftest.$ac_ext <<_ACEOF
 
13348
/* end confdefs.h.  */
 
13349
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
13350
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13351
#define dlopen innocuous_dlopen
 
13352
 
 
13353
/* System header to define __stub macros and hopefully few prototypes,
 
13354
    which can conflict with char dlopen (); below.
 
13355
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13356
    <limits.h> exists even on freestanding compilers.  */
 
13357
 
 
13358
#ifdef __STDC__
 
13359
# include <limits.h>
 
13360
#else
 
13361
# include <assert.h>
 
13362
#endif
 
13363
 
 
13364
#undef dlopen
 
13365
 
 
13366
/* Override any gcc2 internal prototype to avoid an error.  */
 
13367
#ifdef __cplusplus
 
13368
extern "C"
 
13369
{
 
13370
#endif
 
13371
/* We use char because int might match the return type of a gcc2
 
13372
   builtin and then its argument prototype would still apply.  */
 
13373
char dlopen ();
 
13374
/* The GNU C library defines this for functions which it implements
 
13375
    to always fail with ENOSYS.  Some functions are actually named
 
13376
    something starting with __ and the normal name is an alias.  */
 
13377
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
13378
choke me
 
13379
#else
 
13380
char (*f) () = dlopen;
 
13381
#endif
 
13382
#ifdef __cplusplus
 
13383
}
 
13384
#endif
 
13385
 
 
13386
int
 
13387
main ()
 
13388
{
 
13389
return f != dlopen;
 
13390
  ;
 
13391
  return 0;
 
13392
}
 
13393
_ACEOF
 
13394
rm -f conftest.$ac_objext conftest$ac_exeext
 
13395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13396
  (eval $ac_link) 2>conftest.er1
 
13397
  ac_status=$?
 
13398
  grep -v '^ *+' conftest.er1 >conftest.err
 
13399
  rm -f conftest.er1
 
13400
  cat conftest.err >&5
 
13401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13402
  (exit $ac_status); } &&
 
13403
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13404
                         || test ! -s conftest.err'
 
13405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13406
  (eval $ac_try) 2>&5
 
13407
  ac_status=$?
 
13408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13409
  (exit $ac_status); }; } &&
 
13410
         { ac_try='test -s conftest$ac_exeext'
 
13411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13412
  (eval $ac_try) 2>&5
 
13413
  ac_status=$?
 
13414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13415
  (exit $ac_status); }; }; then
 
13416
  ac_cv_func_dlopen=yes
 
13417
else
 
13418
  echo "$as_me: failed program was:" >&5
 
13419
sed 's/^/| /' conftest.$ac_ext >&5
 
13420
 
 
13421
ac_cv_func_dlopen=no
 
13422
fi
 
13423
rm -f conftest.err conftest.$ac_objext \
 
13424
      conftest$ac_exeext conftest.$ac_ext
 
13425
fi
 
13426
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
13427
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
13428
if test $ac_cv_func_dlopen = yes; then
 
13429
  lt_cv_dlopen="dlopen"
 
13430
else
 
13431
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13432
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13433
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13434
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13435
else
 
13436
  ac_check_lib_save_LIBS=$LIBS
 
13437
LIBS="-ldl  $LIBS"
 
13438
cat >conftest.$ac_ext <<_ACEOF
 
13439
/* confdefs.h.  */
 
13440
_ACEOF
 
13441
cat confdefs.h >>conftest.$ac_ext
 
13442
cat >>conftest.$ac_ext <<_ACEOF
 
13443
/* end confdefs.h.  */
 
13444
 
 
13445
/* Override any gcc2 internal prototype to avoid an error.  */
 
13446
#ifdef __cplusplus
 
13447
extern "C"
 
13448
#endif
 
13449
/* We use char because int might match the return type of a gcc2
 
13450
   builtin and then its argument prototype would still apply.  */
 
13451
char dlopen ();
 
13452
int
 
13453
main ()
 
13454
{
 
13455
dlopen ();
 
13456
  ;
 
13457
  return 0;
 
13458
}
 
13459
_ACEOF
 
13460
rm -f conftest.$ac_objext conftest$ac_exeext
 
13461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13462
  (eval $ac_link) 2>conftest.er1
 
13463
  ac_status=$?
 
13464
  grep -v '^ *+' conftest.er1 >conftest.err
 
13465
  rm -f conftest.er1
 
13466
  cat conftest.err >&5
 
13467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13468
  (exit $ac_status); } &&
 
13469
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13470
                         || test ! -s conftest.err'
 
13471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13472
  (eval $ac_try) 2>&5
 
13473
  ac_status=$?
 
13474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13475
  (exit $ac_status); }; } &&
 
13476
         { ac_try='test -s conftest$ac_exeext'
 
13477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13478
  (eval $ac_try) 2>&5
 
13479
  ac_status=$?
 
13480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13481
  (exit $ac_status); }; }; then
 
13482
  ac_cv_lib_dl_dlopen=yes
 
13483
else
 
13484
  echo "$as_me: failed program was:" >&5
 
13485
sed 's/^/| /' conftest.$ac_ext >&5
 
13486
 
 
13487
ac_cv_lib_dl_dlopen=no
 
13488
fi
 
13489
rm -f conftest.err conftest.$ac_objext \
 
13490
      conftest$ac_exeext conftest.$ac_ext
 
13491
LIBS=$ac_check_lib_save_LIBS
 
13492
fi
 
13493
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13494
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13495
if test $ac_cv_lib_dl_dlopen = yes; then
 
13496
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13497
else
 
13498
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
13499
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
13500
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
13501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13502
else
 
13503
  ac_check_lib_save_LIBS=$LIBS
 
13504
LIBS="-lsvld  $LIBS"
 
13505
cat >conftest.$ac_ext <<_ACEOF
 
13506
/* confdefs.h.  */
 
13507
_ACEOF
 
13508
cat confdefs.h >>conftest.$ac_ext
 
13509
cat >>conftest.$ac_ext <<_ACEOF
 
13510
/* end confdefs.h.  */
 
13511
 
 
13512
/* Override any gcc2 internal prototype to avoid an error.  */
 
13513
#ifdef __cplusplus
 
13514
extern "C"
 
13515
#endif
 
13516
/* We use char because int might match the return type of a gcc2
 
13517
   builtin and then its argument prototype would still apply.  */
 
13518
char dlopen ();
 
13519
int
 
13520
main ()
 
13521
{
 
13522
dlopen ();
 
13523
  ;
 
13524
  return 0;
 
13525
}
 
13526
_ACEOF
 
13527
rm -f conftest.$ac_objext conftest$ac_exeext
 
13528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13529
  (eval $ac_link) 2>conftest.er1
 
13530
  ac_status=$?
 
13531
  grep -v '^ *+' conftest.er1 >conftest.err
 
13532
  rm -f conftest.er1
 
13533
  cat conftest.err >&5
 
13534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13535
  (exit $ac_status); } &&
 
13536
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13537
                         || test ! -s conftest.err'
 
13538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13539
  (eval $ac_try) 2>&5
 
13540
  ac_status=$?
 
13541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13542
  (exit $ac_status); }; } &&
 
13543
         { ac_try='test -s conftest$ac_exeext'
 
13544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13545
  (eval $ac_try) 2>&5
 
13546
  ac_status=$?
 
13547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13548
  (exit $ac_status); }; }; then
 
13549
  ac_cv_lib_svld_dlopen=yes
 
13550
else
 
13551
  echo "$as_me: failed program was:" >&5
 
13552
sed 's/^/| /' conftest.$ac_ext >&5
 
13553
 
 
13554
ac_cv_lib_svld_dlopen=no
 
13555
fi
 
13556
rm -f conftest.err conftest.$ac_objext \
 
13557
      conftest$ac_exeext conftest.$ac_ext
 
13558
LIBS=$ac_check_lib_save_LIBS
 
13559
fi
 
13560
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
13561
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
13562
if test $ac_cv_lib_svld_dlopen = yes; then
 
13563
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
13564
else
 
13565
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
13566
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
13567
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
13568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13569
else
 
13570
  ac_check_lib_save_LIBS=$LIBS
 
13571
LIBS="-ldld  $LIBS"
 
13572
cat >conftest.$ac_ext <<_ACEOF
 
13573
/* confdefs.h.  */
 
13574
_ACEOF
 
13575
cat confdefs.h >>conftest.$ac_ext
 
13576
cat >>conftest.$ac_ext <<_ACEOF
 
13577
/* end confdefs.h.  */
 
13578
 
 
13579
/* Override any gcc2 internal prototype to avoid an error.  */
 
13580
#ifdef __cplusplus
 
13581
extern "C"
 
13582
#endif
 
13583
/* We use char because int might match the return type of a gcc2
 
13584
   builtin and then its argument prototype would still apply.  */
 
13585
char dld_link ();
 
13586
int
 
13587
main ()
 
13588
{
 
13589
dld_link ();
 
13590
  ;
 
13591
  return 0;
 
13592
}
 
13593
_ACEOF
 
13594
rm -f conftest.$ac_objext conftest$ac_exeext
 
13595
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13596
  (eval $ac_link) 2>conftest.er1
 
13597
  ac_status=$?
 
13598
  grep -v '^ *+' conftest.er1 >conftest.err
 
13599
  rm -f conftest.er1
 
13600
  cat conftest.err >&5
 
13601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13602
  (exit $ac_status); } &&
 
13603
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13604
                         || test ! -s conftest.err'
 
13605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13606
  (eval $ac_try) 2>&5
 
13607
  ac_status=$?
 
13608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13609
  (exit $ac_status); }; } &&
 
13610
         { ac_try='test -s conftest$ac_exeext'
 
13611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13612
  (eval $ac_try) 2>&5
 
13613
  ac_status=$?
 
13614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13615
  (exit $ac_status); }; }; then
 
13616
  ac_cv_lib_dld_dld_link=yes
 
13617
else
 
13618
  echo "$as_me: failed program was:" >&5
 
13619
sed 's/^/| /' conftest.$ac_ext >&5
 
13620
 
 
13621
ac_cv_lib_dld_dld_link=no
 
13622
fi
 
13623
rm -f conftest.err conftest.$ac_objext \
 
13624
      conftest$ac_exeext conftest.$ac_ext
 
13625
LIBS=$ac_check_lib_save_LIBS
 
13626
fi
 
13627
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
13628
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
13629
if test $ac_cv_lib_dld_dld_link = yes; then
 
13630
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
13631
fi
 
13632
 
 
13633
 
 
13634
fi
 
13635
 
 
13636
 
 
13637
fi
 
13638
 
 
13639
 
 
13640
fi
 
13641
 
 
13642
 
 
13643
fi
 
13644
 
 
13645
 
 
13646
fi
 
13647
 
 
13648
    ;;
 
13649
  esac
 
13650
 
 
13651
  if test "x$lt_cv_dlopen" != xno; then
 
13652
    enable_dlopen=yes
 
13653
  else
 
13654
    enable_dlopen=no
 
13655
  fi
 
13656
 
 
13657
  case $lt_cv_dlopen in
 
13658
  dlopen)
 
13659
    save_CPPFLAGS="$CPPFLAGS"
 
13660
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13661
 
 
13662
    save_LDFLAGS="$LDFLAGS"
 
13663
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
13664
 
 
13665
    save_LIBS="$LIBS"
 
13666
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
13667
 
 
13668
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
13669
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
13670
if test "${lt_cv_dlopen_self+set}" = set; then
 
13671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13672
else
 
13673
          if test "$cross_compiling" = yes; then :
 
13674
  lt_cv_dlopen_self=cross
 
13675
else
 
13676
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13677
  lt_status=$lt_dlunknown
 
13678
  cat > conftest.$ac_ext <<EOF
 
13679
#line 13679 "configure"
 
13680
#include "confdefs.h"
 
13681
 
 
13682
#if HAVE_DLFCN_H
 
13683
#include <dlfcn.h>
 
13684
#endif
 
13685
 
 
13686
#include <stdio.h>
 
13687
 
 
13688
#ifdef RTLD_GLOBAL
 
13689
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13690
#else
 
13691
#  ifdef DL_GLOBAL
 
13692
#    define LT_DLGLOBAL         DL_GLOBAL
 
13693
#  else
 
13694
#    define LT_DLGLOBAL         0
 
13695
#  endif
 
13696
#endif
 
13697
 
 
13698
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13699
   find out it does not work in some platform. */
 
13700
#ifndef LT_DLLAZY_OR_NOW
 
13701
#  ifdef RTLD_LAZY
 
13702
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13703
#  else
 
13704
#    ifdef DL_LAZY
 
13705
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13706
#    else
 
13707
#      ifdef RTLD_NOW
 
13708
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13709
#      else
 
13710
#        ifdef DL_NOW
 
13711
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13712
#        else
 
13713
#          define LT_DLLAZY_OR_NOW      0
 
13714
#        endif
 
13715
#      endif
 
13716
#    endif
 
13717
#  endif
 
13718
#endif
 
13719
 
 
13720
#ifdef __cplusplus
 
13721
extern "C" void exit (int);
 
13722
#endif
 
13723
 
 
13724
void fnord() { int i=42;}
 
13725
int main ()
 
13726
{
 
13727
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13728
  int status = $lt_dlunknown;
 
13729
 
 
13730
  if (self)
 
13731
    {
 
13732
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13733
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13734
      /* dlclose (self); */
 
13735
    }
 
13736
 
 
13737
    exit (status);
 
13738
}
 
13739
EOF
 
13740
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13741
  (eval $ac_link) 2>&5
 
13742
  ac_status=$?
 
13743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13744
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13745
    (./conftest; exit; ) 2>/dev/null
 
13746
    lt_status=$?
 
13747
    case x$lt_status in
 
13748
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
13749
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
13750
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
13751
    esac
 
13752
  else :
 
13753
    # compilation failed
 
13754
    lt_cv_dlopen_self=no
 
13755
  fi
 
13756
fi
 
13757
rm -fr conftest*
 
13758
 
 
13759
 
 
13760
fi
 
13761
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
13762
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
13763
 
 
13764
    if test "x$lt_cv_dlopen_self" = xyes; then
 
13765
      LDFLAGS="$LDFLAGS $link_static_flag"
 
13766
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
13767
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
13768
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
13769
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13770
else
 
13771
          if test "$cross_compiling" = yes; then :
 
13772
  lt_cv_dlopen_self_static=cross
 
13773
else
 
13774
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13775
  lt_status=$lt_dlunknown
 
13776
  cat > conftest.$ac_ext <<EOF
 
13777
#line 13777 "configure"
 
13778
#include "confdefs.h"
 
13779
 
 
13780
#if HAVE_DLFCN_H
 
13781
#include <dlfcn.h>
 
13782
#endif
 
13783
 
 
13784
#include <stdio.h>
 
13785
 
 
13786
#ifdef RTLD_GLOBAL
 
13787
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13788
#else
 
13789
#  ifdef DL_GLOBAL
 
13790
#    define LT_DLGLOBAL         DL_GLOBAL
 
13791
#  else
 
13792
#    define LT_DLGLOBAL         0
 
13793
#  endif
 
13794
#endif
 
13795
 
 
13796
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13797
   find out it does not work in some platform. */
 
13798
#ifndef LT_DLLAZY_OR_NOW
 
13799
#  ifdef RTLD_LAZY
 
13800
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13801
#  else
 
13802
#    ifdef DL_LAZY
 
13803
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13804
#    else
 
13805
#      ifdef RTLD_NOW
 
13806
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13807
#      else
 
13808
#        ifdef DL_NOW
 
13809
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13810
#        else
 
13811
#          define LT_DLLAZY_OR_NOW      0
 
13812
#        endif
 
13813
#      endif
 
13814
#    endif
 
13815
#  endif
 
13816
#endif
 
13817
 
 
13818
#ifdef __cplusplus
 
13819
extern "C" void exit (int);
 
13820
#endif
 
13821
 
 
13822
void fnord() { int i=42;}
 
13823
int main ()
 
13824
{
 
13825
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13826
  int status = $lt_dlunknown;
 
13827
 
 
13828
  if (self)
 
13829
    {
 
13830
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13831
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13832
      /* dlclose (self); */
 
13833
    }
 
13834
 
 
13835
    exit (status);
 
13836
}
 
13837
EOF
 
13838
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13839
  (eval $ac_link) 2>&5
 
13840
  ac_status=$?
 
13841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13842
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13843
    (./conftest; exit; ) 2>/dev/null
 
13844
    lt_status=$?
 
13845
    case x$lt_status in
 
13846
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13847
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13848
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13849
    esac
 
13850
  else :
 
13851
    # compilation failed
 
13852
    lt_cv_dlopen_self_static=no
 
13853
  fi
 
13854
fi
 
13855
rm -fr conftest*
 
13856
 
 
13857
 
 
13858
fi
 
13859
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13860
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13861
    fi
 
13862
 
 
13863
    CPPFLAGS="$save_CPPFLAGS"
 
13864
    LDFLAGS="$save_LDFLAGS"
 
13865
    LIBS="$save_LIBS"
 
13866
    ;;
 
13867
  esac
 
13868
 
 
13869
  case $lt_cv_dlopen_self in
 
13870
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13871
  *) enable_dlopen_self=unknown ;;
 
13872
  esac
 
13873
 
 
13874
  case $lt_cv_dlopen_self_static in
 
13875
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13876
  *) enable_dlopen_self_static=unknown ;;
 
13877
  esac
 
13878
fi
 
13879
 
 
13880
 
 
13881
# The else clause should only fire when bootstrapping the
 
13882
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13883
# with your package, and you will get complaints that there are
 
13884
# no rules to generate ltmain.sh.
 
13885
if test -f "$ltmain"; then
 
13886
  # See if we are running on zsh, and set the options which allow our commands through
 
13887
  # without removal of \ escapes.
 
13888
  if test -n "${ZSH_VERSION+set}" ; then
 
13889
    setopt NO_GLOB_SUBST
 
13890
  fi
 
13891
  # Now quote all the things that may contain metacharacters while being
 
13892
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13893
  # variables and quote the copies for generation of the libtool script.
 
13894
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13895
    SED SHELL STRIP \
 
13896
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13897
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13898
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13899
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13900
    lt_cv_sys_global_symbol_to_c_name_address \
 
13901
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13902
    old_postinstall_cmds old_postuninstall_cmds \
 
13903
    compiler_CXX \
 
13904
    CC_CXX \
 
13905
    LD_CXX \
 
13906
    lt_prog_compiler_wl_CXX \
 
13907
    lt_prog_compiler_pic_CXX \
 
13908
    lt_prog_compiler_static_CXX \
 
13909
    lt_prog_compiler_no_builtin_flag_CXX \
 
13910
    export_dynamic_flag_spec_CXX \
 
13911
    thread_safe_flag_spec_CXX \
 
13912
    whole_archive_flag_spec_CXX \
 
13913
    enable_shared_with_static_runtimes_CXX \
 
13914
    old_archive_cmds_CXX \
 
13915
    old_archive_from_new_cmds_CXX \
 
13916
    predep_objects_CXX \
 
13917
    postdep_objects_CXX \
 
13918
    predeps_CXX \
 
13919
    postdeps_CXX \
 
13920
    compiler_lib_search_path_CXX \
 
13921
    archive_cmds_CXX \
 
13922
    archive_expsym_cmds_CXX \
 
13923
    postinstall_cmds_CXX \
 
13924
    postuninstall_cmds_CXX \
 
13925
    old_archive_from_expsyms_cmds_CXX \
 
13926
    allow_undefined_flag_CXX \
 
13927
    no_undefined_flag_CXX \
 
13928
    export_symbols_cmds_CXX \
 
13929
    hardcode_libdir_flag_spec_CXX \
 
13930
    hardcode_libdir_flag_spec_ld_CXX \
 
13931
    hardcode_libdir_separator_CXX \
 
13932
    hardcode_automatic_CXX \
 
13933
    module_cmds_CXX \
 
13934
    module_expsym_cmds_CXX \
 
13935
    lt_cv_prog_compiler_c_o_CXX \
 
13936
    exclude_expsyms_CXX \
 
13937
    include_expsyms_CXX; do
 
13938
 
 
13939
    case $var in
 
13940
    old_archive_cmds_CXX | \
 
13941
    old_archive_from_new_cmds_CXX | \
 
13942
    archive_cmds_CXX | \
 
13943
    archive_expsym_cmds_CXX | \
 
13944
    module_cmds_CXX | \
 
13945
    module_expsym_cmds_CXX | \
 
13946
    old_archive_from_expsyms_cmds_CXX | \
 
13947
    export_symbols_cmds_CXX | \
 
13948
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13949
    postinstall_cmds | postuninstall_cmds | \
 
13950
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13951
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13952
      # Double-quote double-evaled strings.
 
13953
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13954
      ;;
 
13955
    *)
 
13956
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13957
      ;;
 
13958
    esac
 
13959
  done
 
13960
 
 
13961
  case $lt_echo in
 
13962
  *'\$0 --fallback-echo"')
 
13963
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13964
    ;;
 
13965
  esac
 
13966
 
 
13967
cfgfile="$ofile"
 
13968
 
 
13969
  cat <<__EOF__ >> "$cfgfile"
 
13970
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13971
 
 
13972
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13973
 
 
13974
# Shell to use when invoking shell scripts.
 
13975
SHELL=$lt_SHELL
 
13976
 
 
13977
# Whether or not to build shared libraries.
 
13978
build_libtool_libs=$enable_shared
 
13979
 
 
13980
# Whether or not to build static libraries.
 
13981
build_old_libs=$enable_static
 
13982
 
 
13983
# Whether or not to add -lc for building shared libraries.
 
13984
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13985
 
 
13986
# Whether or not to disallow shared libs when runtime libs are static
 
13987
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13988
 
 
13989
# Whether or not to optimize for fast installation.
 
13990
fast_install=$enable_fast_install
 
13991
 
 
13992
# The host system.
 
13993
host_alias=$host_alias
 
13994
host=$host
 
13995
 
 
13996
# An echo program that does not interpret backslashes.
 
13997
echo=$lt_echo
 
13998
 
 
13999
# The archiver.
 
14000
AR=$lt_AR
 
14001
AR_FLAGS=$lt_AR_FLAGS
 
14002
 
 
14003
# A C compiler.
 
14004
LTCC=$lt_LTCC
 
14005
 
 
14006
# A language-specific compiler.
 
14007
CC=$lt_compiler_CXX
 
14008
 
 
14009
# Is the compiler the GNU C compiler?
 
14010
with_gcc=$GCC_CXX
 
14011
 
 
14012
# An ERE matcher.
 
14013
EGREP=$lt_EGREP
 
14014
 
 
14015
# The linker used to build libraries.
 
14016
LD=$lt_LD_CXX
 
14017
 
 
14018
# Whether we need hard or soft links.
 
14019
LN_S=$lt_LN_S
 
14020
 
 
14021
# A BSD-compatible nm program.
 
14022
NM=$lt_NM
 
14023
 
 
14024
# A symbol stripping program
 
14025
STRIP=$lt_STRIP
 
14026
 
 
14027
# Used to examine libraries when file_magic_cmd begins "file"
 
14028
MAGIC_CMD=$MAGIC_CMD
 
14029
 
 
14030
# Used on cygwin: DLL creation program.
 
14031
DLLTOOL="$DLLTOOL"
 
14032
 
 
14033
# Used on cygwin: object dumper.
 
14034
OBJDUMP="$OBJDUMP"
 
14035
 
 
14036
# Used on cygwin: assembler.
 
14037
AS="$AS"
 
14038
 
 
14039
# The name of the directory that contains temporary libtool files.
 
14040
objdir=$objdir
 
14041
 
 
14042
# How to create reloadable object files.
 
14043
reload_flag=$lt_reload_flag
 
14044
reload_cmds=$lt_reload_cmds
 
14045
 
 
14046
# How to pass a linker flag through the compiler.
 
14047
wl=$lt_lt_prog_compiler_wl_CXX
 
14048
 
 
14049
# Object file suffix (normally "o").
 
14050
objext="$ac_objext"
 
14051
 
 
14052
# Old archive suffix (normally "a").
 
14053
libext="$libext"
 
14054
 
 
14055
# Shared library suffix (normally ".so").
 
14056
shrext_cmds='$shrext_cmds'
 
14057
 
 
14058
# Executable file suffix (normally "").
 
14059
exeext="$exeext"
 
14060
 
 
14061
# Additional compiler flags for building library objects.
 
14062
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14063
pic_mode=$pic_mode
 
14064
 
 
14065
# What is the maximum length of a command?
 
14066
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14067
 
 
14068
# Does compiler simultaneously support -c and -o options?
 
14069
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14070
 
 
14071
# Must we lock files when doing compilation ?
 
14072
need_locks=$lt_need_locks
 
14073
 
 
14074
# Do we need the lib prefix for modules?
 
14075
need_lib_prefix=$need_lib_prefix
 
14076
 
 
14077
# Do we need a version for libraries?
 
14078
need_version=$need_version
 
14079
 
 
14080
# Whether dlopen is supported.
 
14081
dlopen_support=$enable_dlopen
 
14082
 
 
14083
# Whether dlopen of programs is supported.
 
14084
dlopen_self=$enable_dlopen_self
 
14085
 
 
14086
# Whether dlopen of statically linked programs is supported.
 
14087
dlopen_self_static=$enable_dlopen_self_static
 
14088
 
 
14089
# Compiler flag to prevent dynamic linking.
 
14090
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14091
 
 
14092
# Compiler flag to turn off builtin functions.
 
14093
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14094
 
 
14095
# Compiler flag to allow reflexive dlopens.
 
14096
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14097
 
 
14098
# Compiler flag to generate shared objects directly from archives.
 
14099
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14100
 
 
14101
# Compiler flag to generate thread-safe objects.
 
14102
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14103
 
 
14104
# Library versioning type.
 
14105
version_type=$version_type
 
14106
 
 
14107
# Format of library name prefix.
 
14108
libname_spec=$lt_libname_spec
 
14109
 
 
14110
# List of archive names.  First name is the real one, the rest are links.
 
14111
# The last name is the one that the linker finds with -lNAME.
 
14112
library_names_spec=$lt_library_names_spec
 
14113
 
 
14114
# The coded name of the library, if different from the real name.
 
14115
soname_spec=$lt_soname_spec
 
14116
 
 
14117
# Commands used to build and install an old-style archive.
 
14118
RANLIB=$lt_RANLIB
 
14119
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14120
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14121
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14122
 
 
14123
# Create an old-style archive from a shared archive.
 
14124
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14125
 
 
14126
# Create a temporary old-style archive to link instead of a shared archive.
 
14127
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14128
 
 
14129
# Commands used to build and install a shared archive.
 
14130
archive_cmds=$lt_archive_cmds_CXX
 
14131
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14132
postinstall_cmds=$lt_postinstall_cmds
 
14133
postuninstall_cmds=$lt_postuninstall_cmds
 
14134
 
 
14135
# Commands used to build a loadable module (assumed same as above if empty)
 
14136
module_cmds=$lt_module_cmds_CXX
 
14137
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14138
 
 
14139
# Commands to strip libraries.
 
14140
old_striplib=$lt_old_striplib
 
14141
striplib=$lt_striplib
 
14142
 
 
14143
# Dependencies to place before the objects being linked to create a
 
14144
# shared library.
 
14145
predep_objects=$lt_predep_objects_CXX
 
14146
 
 
14147
# Dependencies to place after the objects being linked to create a
 
14148
# shared library.
 
14149
postdep_objects=$lt_postdep_objects_CXX
 
14150
 
 
14151
# Dependencies to place before the objects being linked to create a
 
14152
# shared library.
 
14153
predeps=$lt_predeps_CXX
 
14154
 
 
14155
# Dependencies to place after the objects being linked to create a
 
14156
# shared library.
 
14157
postdeps=$lt_postdeps_CXX
 
14158
 
 
14159
# The library search path used internally by the compiler when linking
 
14160
# a shared library.
 
14161
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14162
 
 
14163
# Method to check whether dependent libraries are shared objects.
 
14164
deplibs_check_method=$lt_deplibs_check_method
 
14165
 
 
14166
# Command to use when deplibs_check_method == file_magic.
 
14167
file_magic_cmd=$lt_file_magic_cmd
 
14168
 
 
14169
# Flag that allows shared libraries with undefined symbols to be built.
 
14170
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14171
 
 
14172
# Flag that forces no undefined symbols.
 
14173
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14174
 
 
14175
# Commands used to finish a libtool library installation in a directory.
 
14176
finish_cmds=$lt_finish_cmds
 
14177
 
 
14178
# Same as above, but a single script fragment to be evaled but not shown.
 
14179
finish_eval=$lt_finish_eval
 
14180
 
 
14181
# Take the output of nm and produce a listing of raw symbols and C names.
 
14182
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14183
 
 
14184
# Transform the output of nm in a proper C declaration
 
14185
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14186
 
 
14187
# Transform the output of nm in a C name address pair
 
14188
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14189
 
 
14190
# This is the shared library runtime path variable.
 
14191
runpath_var=$runpath_var
 
14192
 
 
14193
# This is the shared library path variable.
 
14194
shlibpath_var=$shlibpath_var
 
14195
 
 
14196
# Is shlibpath searched before the hard-coded library search path?
 
14197
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14198
 
 
14199
# How to hardcode a shared library path into an executable.
 
14200
hardcode_action=$hardcode_action_CXX
 
14201
 
 
14202
# Whether we should hardcode library paths into libraries.
 
14203
hardcode_into_libs=$hardcode_into_libs
 
14204
 
 
14205
# Flag to hardcode \$libdir into a binary during linking.
 
14206
# This must work even if \$libdir does not exist.
 
14207
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14208
 
 
14209
# If ld is used when linking, flag to hardcode \$libdir into
 
14210
# a binary during linking. This must work even if \$libdir does
 
14211
# not exist.
 
14212
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14213
 
 
14214
# Whether we need a single -rpath flag with a separated argument.
 
14215
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14216
 
 
14217
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14218
# resulting binary.
 
14219
hardcode_direct=$hardcode_direct_CXX
 
14220
 
 
14221
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14222
# resulting binary.
 
14223
hardcode_minus_L=$hardcode_minus_L_CXX
 
14224
 
 
14225
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14226
# the resulting binary.
 
14227
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14228
 
 
14229
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14230
# and all subsequent libraries and executables linked against it.
 
14231
hardcode_automatic=$hardcode_automatic_CXX
 
14232
 
 
14233
# Variables whose values should be saved in libtool wrapper scripts and
 
14234
# restored at relink time.
 
14235
variables_saved_for_relink="$variables_saved_for_relink"
 
14236
 
 
14237
# Whether libtool must link a program against all its dependency libraries.
 
14238
link_all_deplibs=$link_all_deplibs_CXX
 
14239
 
 
14240
# Compile-time system search path for libraries
 
14241
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14242
 
 
14243
# Run-time system search path for libraries
 
14244
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14245
 
 
14246
# Fix the shell variable \$srcfile for the compiler.
 
14247
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14248
 
 
14249
# Set to yes if exported symbols are required.
 
14250
always_export_symbols=$always_export_symbols_CXX
 
14251
 
 
14252
# The commands to list exported symbols.
 
14253
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14254
 
 
14255
# The commands to extract the exported symbol list from a shared archive.
 
14256
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14257
 
 
14258
# Symbols that should not be listed in the preloaded symbols.
 
14259
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14260
 
 
14261
# Symbols that must always be exported.
 
14262
include_expsyms=$lt_include_expsyms_CXX
 
14263
 
 
14264
# ### END LIBTOOL TAG CONFIG: $tagname
 
14265
 
 
14266
__EOF__
 
14267
 
 
14268
 
 
14269
else
 
14270
  # If there is no Makefile yet, we rely on a make rule to execute
 
14271
  # `config.status --recheck' to rerun these tests and create the
 
14272
  # libtool script then.
 
14273
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14274
  if test -f "$ltmain_in"; then
 
14275
    test -f Makefile && make "$ltmain"
 
14276
  fi
 
14277
fi
 
14278
 
 
14279
 
 
14280
ac_ext=c
 
14281
ac_cpp='$CPP $CPPFLAGS'
 
14282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14285
 
 
14286
CC=$lt_save_CC
 
14287
LDCXX=$LD
 
14288
LD=$lt_save_LD
 
14289
GCC=$lt_save_GCC
 
14290
with_gnu_ldcxx=$with_gnu_ld
 
14291
with_gnu_ld=$lt_save_with_gnu_ld
 
14292
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14293
lt_cv_path_LD=$lt_save_path_LD
 
14294
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14295
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14296
 
 
14297
        else
 
14298
          tagname=""
 
14299
        fi
 
14300
        ;;
 
14301
 
 
14302
      F77)
 
14303
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14304
 
 
14305
ac_ext=f
 
14306
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14307
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14308
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14309
 
 
14310
 
 
14311
archive_cmds_need_lc_F77=no
 
14312
allow_undefined_flag_F77=
 
14313
always_export_symbols_F77=no
 
14314
archive_expsym_cmds_F77=
 
14315
export_dynamic_flag_spec_F77=
 
14316
hardcode_direct_F77=no
 
14317
hardcode_libdir_flag_spec_F77=
 
14318
hardcode_libdir_flag_spec_ld_F77=
 
14319
hardcode_libdir_separator_F77=
 
14320
hardcode_minus_L_F77=no
 
14321
hardcode_automatic_F77=no
 
14322
module_cmds_F77=
 
14323
module_expsym_cmds_F77=
 
14324
link_all_deplibs_F77=unknown
 
14325
old_archive_cmds_F77=$old_archive_cmds
 
14326
no_undefined_flag_F77=
 
14327
whole_archive_flag_spec_F77=
 
14328
enable_shared_with_static_runtimes_F77=no
 
14329
 
 
14330
# Source file extension for f77 test sources.
 
14331
ac_ext=f
 
14332
 
 
14333
# Object file extension for compiled f77 test sources.
 
14334
objext=o
 
14335
objext_F77=$objext
 
14336
 
 
14337
# Code to be used in simple compile tests
 
14338
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14339
 
 
14340
# Code to be used in simple link tests
 
14341
lt_simple_link_test_code="      program t\n      end\n"
 
14342
 
 
14343
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14344
 
 
14345
# If no C compiler was specified, use CC.
 
14346
LTCC=${LTCC-"$CC"}
 
14347
 
 
14348
# Allow CC to be a program name with arguments.
 
14349
compiler=$CC
 
14350
 
 
14351
 
 
14352
# Allow CC to be a program name with arguments.
 
14353
lt_save_CC="$CC"
 
14354
CC=${F77-"f77"}
 
14355
compiler=$CC
 
14356
compiler_F77=$CC
 
14357
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
14358
 
 
14359
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14360
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
14361
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14362
echo "${ECHO_T}$can_build_shared" >&6
 
14363
 
 
14364
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14365
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
14366
test "$can_build_shared" = "no" && enable_shared=no
 
14367
 
 
14368
# On AIX, shared libraries and static libraries use the same namespace, and
 
14369
# are all built from PIC.
 
14370
case "$host_os" in
 
14371
aix3*)
 
14372
  test "$enable_shared" = yes && enable_static=no
 
14373
  if test -n "$RANLIB"; then
 
14374
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14375
    postinstall_cmds='$RANLIB $lib'
 
14376
  fi
 
14377
  ;;
 
14378
aix4* | aix5*)
 
14379
  test "$enable_shared" = yes && enable_static=no
 
14380
  ;;
 
14381
esac
 
14382
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14383
echo "${ECHO_T}$enable_shared" >&6
 
14384
 
 
14385
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14386
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
14387
# Make sure either enable_shared or enable_static is yes.
 
14388
test "$enable_shared" = yes || enable_static=yes
 
14389
echo "$as_me:$LINENO: result: $enable_static" >&5
 
14390
echo "${ECHO_T}$enable_static" >&6
 
14391
 
 
14392
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14393
 
 
14394
GCC_F77="$G77"
 
14395
LD_F77="$LD"
 
14396
 
 
14397
lt_prog_compiler_wl_F77=
 
14398
lt_prog_compiler_pic_F77=
 
14399
lt_prog_compiler_static_F77=
 
14400
 
 
14401
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14402
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14403
 
 
14404
  if test "$GCC" = yes; then
 
14405
    lt_prog_compiler_wl_F77='-Wl,'
 
14406
    lt_prog_compiler_static_F77='-static'
 
14407
 
 
14408
    case $host_os in
 
14409
      aix*)
 
14410
      # All AIX code is PIC.
 
14411
      if test "$host_cpu" = ia64; then
 
14412
        # AIX 5 now supports IA64 processor
 
14413
        lt_prog_compiler_static_F77='-Bstatic'
 
14414
      fi
 
14415
      ;;
 
14416
 
 
14417
    amigaos*)
 
14418
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14419
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14420
      # like `-m68040'.
 
14421
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14422
      ;;
 
14423
 
 
14424
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14425
      # PIC is the default for these OSes.
 
14426
      ;;
 
14427
 
 
14428
    mingw* | pw32* | os2*)
 
14429
      # This hack is so that the source file can tell whether it is being
 
14430
      # built for inclusion in a dll (and should export symbols for example).
 
14431
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14432
      ;;
 
14433
 
 
14434
    darwin* | rhapsody*)
 
14435
      # PIC is the default on this platform
 
14436
      # Common symbols not allowed in MH_DYLIB files
 
14437
      lt_prog_compiler_pic_F77='-fno-common'
 
14438
      ;;
 
14439
 
 
14440
    msdosdjgpp*)
 
14441
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14442
      # on systems that don't support them.
 
14443
      lt_prog_compiler_can_build_shared_F77=no
 
14444
      enable_shared=no
 
14445
      ;;
 
14446
 
 
14447
    sysv4*MP*)
 
14448
      if test -d /usr/nec; then
 
14449
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14450
      fi
 
14451
      ;;
 
14452
 
 
14453
    hpux*)
 
14454
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14455
      # not for PA HP-UX.
 
14456
      case "$host_cpu" in
 
14457
      hppa*64*|ia64*)
 
14458
        # +Z the default
 
14459
        ;;
 
14460
      *)
 
14461
        lt_prog_compiler_pic_F77='-fPIC'
 
14462
        ;;
 
14463
      esac
 
14464
      ;;
 
14465
 
 
14466
    *)
 
14467
      lt_prog_compiler_pic_F77='-fPIC'
 
14468
      ;;
 
14469
    esac
 
14470
  else
 
14471
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14472
    case $host_os in
 
14473
    aix*)
 
14474
      lt_prog_compiler_wl_F77='-Wl,'
 
14475
      if test "$host_cpu" = ia64; then
 
14476
        # AIX 5 now supports IA64 processor
 
14477
        lt_prog_compiler_static_F77='-Bstatic'
 
14478
      else
 
14479
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14480
      fi
 
14481
      ;;
 
14482
      darwin*)
 
14483
        # PIC is the default on this platform
 
14484
        # Common symbols not allowed in MH_DYLIB files
 
14485
       case "$cc_basename" in
 
14486
         xlc*)
 
14487
         lt_prog_compiler_pic_F77='-qnocommon'
 
14488
         lt_prog_compiler_wl_F77='-Wl,'
 
14489
         ;;
 
14490
       esac
 
14491
       ;;
 
14492
 
 
14493
    mingw* | pw32* | os2*)
 
14494
      # This hack is so that the source file can tell whether it is being
 
14495
      # built for inclusion in a dll (and should export symbols for example).
 
14496
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14497
      ;;
 
14498
 
 
14499
    hpux9* | hpux10* | hpux11*)
 
14500
      lt_prog_compiler_wl_F77='-Wl,'
 
14501
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14502
      # not for PA HP-UX.
 
14503
      case "$host_cpu" in
 
14504
      hppa*64*|ia64*)
 
14505
        # +Z the default
 
14506
        ;;
 
14507
      *)
 
14508
        lt_prog_compiler_pic_F77='+Z'
 
14509
        ;;
 
14510
      esac
 
14511
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14512
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14513
      ;;
 
14514
 
 
14515
    irix5* | irix6* | nonstopux*)
 
14516
      lt_prog_compiler_wl_F77='-Wl,'
 
14517
      # PIC (with -KPIC) is the default.
 
14518
      lt_prog_compiler_static_F77='-non_shared'
 
14519
      ;;
 
14520
 
 
14521
    newsos6)
 
14522
      lt_prog_compiler_pic_F77='-KPIC'
 
14523
      lt_prog_compiler_static_F77='-Bstatic'
 
14524
      ;;
 
14525
 
 
14526
    linux*)
 
14527
      case $CC in
 
14528
      icc* | ecc*)
 
14529
        lt_prog_compiler_wl_F77='-Wl,'
 
14530
        lt_prog_compiler_pic_F77='-KPIC'
 
14531
        lt_prog_compiler_static_F77='-static'
 
14532
        ;;
 
14533
      ccc*)
 
14534
        lt_prog_compiler_wl_F77='-Wl,'
 
14535
        # All Alpha code is PIC.
 
14536
        lt_prog_compiler_static_F77='-non_shared'
 
14537
        ;;
 
14538
      esac
 
14539
      ;;
 
14540
 
 
14541
    osf3* | osf4* | osf5*)
 
14542
      lt_prog_compiler_wl_F77='-Wl,'
 
14543
      # All OSF/1 code is PIC.
 
14544
      lt_prog_compiler_static_F77='-non_shared'
 
14545
      ;;
 
14546
 
 
14547
    sco3.2v5*)
 
14548
      lt_prog_compiler_pic_F77='-Kpic'
 
14549
      lt_prog_compiler_static_F77='-dn'
 
14550
      ;;
 
14551
 
 
14552
    solaris*)
 
14553
      lt_prog_compiler_wl_F77='-Wl,'
 
14554
      lt_prog_compiler_pic_F77='-KPIC'
 
14555
      lt_prog_compiler_static_F77='-Bstatic'
 
14556
      ;;
 
14557
 
 
14558
    sunos4*)
 
14559
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14560
      lt_prog_compiler_pic_F77='-PIC'
 
14561
      lt_prog_compiler_static_F77='-Bstatic'
 
14562
      ;;
 
14563
 
 
14564
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14565
      lt_prog_compiler_wl_F77='-Wl,'
 
14566
      lt_prog_compiler_pic_F77='-KPIC'
 
14567
      lt_prog_compiler_static_F77='-Bstatic'
 
14568
      ;;
 
14569
 
 
14570
    sysv4*MP*)
 
14571
      if test -d /usr/nec ;then
 
14572
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14573
        lt_prog_compiler_static_F77='-Bstatic'
 
14574
      fi
 
14575
      ;;
 
14576
 
 
14577
    uts4*)
 
14578
      lt_prog_compiler_pic_F77='-pic'
 
14579
      lt_prog_compiler_static_F77='-Bstatic'
 
14580
      ;;
 
14581
 
 
14582
    *)
 
14583
      lt_prog_compiler_can_build_shared_F77=no
 
14584
      ;;
 
14585
    esac
 
14586
  fi
 
14587
 
 
14588
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14589
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14590
 
 
14591
#
 
14592
# Check to make sure the PIC flag actually works.
 
14593
#
 
14594
if test -n "$lt_prog_compiler_pic_F77"; then
 
14595
 
 
14596
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14597
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14598
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14599
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14600
else
 
14601
  lt_prog_compiler_pic_works_F77=no
 
14602
  ac_outfile=conftest.$ac_objext
 
14603
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14604
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14605
   # Insert the option either (1) after the last *FLAGS variable, or
 
14606
   # (2) before a word containing "conftest.", or (3) at the end.
 
14607
   # Note that $ac_compile itself does not contain backslashes and begins
 
14608
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14609
   # The option is referenced via a variable to avoid confusing sed.
 
14610
   lt_compile=`echo "$ac_compile" | $SED \
 
14611
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14612
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14613
   -e 's:$: $lt_compiler_flag:'`
 
14614
   (eval echo "\"\$as_me:14614: $lt_compile\"" >&5)
 
14615
   (eval "$lt_compile" 2>conftest.err)
 
14616
   ac_status=$?
 
14617
   cat conftest.err >&5
 
14618
   echo "$as_me:14618: \$? = $ac_status" >&5
 
14619
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14620
     # The compiler can only warn and ignore the option if not recognized
 
14621
     # So say no if there are warnings
 
14622
     if test ! -s conftest.err; then
 
14623
       lt_prog_compiler_pic_works_F77=yes
 
14624
     fi
 
14625
   fi
 
14626
   $rm conftest*
 
14627
 
 
14628
fi
 
14629
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14630
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14631
 
 
14632
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14633
    case $lt_prog_compiler_pic_F77 in
 
14634
     "" | " "*) ;;
 
14635
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14636
     esac
 
14637
else
 
14638
    lt_prog_compiler_pic_F77=
 
14639
     lt_prog_compiler_can_build_shared_F77=no
 
14640
fi
 
14641
 
 
14642
fi
 
14643
case "$host_os" in
 
14644
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14645
  *djgpp*)
 
14646
    lt_prog_compiler_pic_F77=
 
14647
    ;;
 
14648
  *)
 
14649
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14650
    ;;
 
14651
esac
 
14652
 
 
14653
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14654
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14655
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14656
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14657
else
 
14658
  lt_cv_prog_compiler_c_o_F77=no
 
14659
   $rm -r conftest 2>/dev/null
 
14660
   mkdir conftest
 
14661
   cd conftest
 
14662
   mkdir out
 
14663
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14664
 
 
14665
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14666
   # Insert the option either (1) after the last *FLAGS variable, or
 
14667
   # (2) before a word containing "conftest.", or (3) at the end.
 
14668
   # Note that $ac_compile itself does not contain backslashes and begins
 
14669
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14670
   lt_compile=`echo "$ac_compile" | $SED \
 
14671
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14672
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14673
   -e 's:$: $lt_compiler_flag:'`
 
14674
   (eval echo "\"\$as_me:14674: $lt_compile\"" >&5)
 
14675
   (eval "$lt_compile" 2>out/conftest.err)
 
14676
   ac_status=$?
 
14677
   cat out/conftest.err >&5
 
14678
   echo "$as_me:14678: \$? = $ac_status" >&5
 
14679
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14680
   then
 
14681
     # The compiler can only warn and ignore the option if not recognized
 
14682
     # So say no if there are warnings
 
14683
     if test ! -s out/conftest.err; then
 
14684
       lt_cv_prog_compiler_c_o_F77=yes
 
14685
     fi
 
14686
   fi
 
14687
   chmod u+w .
 
14688
   $rm conftest*
 
14689
   # SGI C++ compiler will create directory out/ii_files/ for
 
14690
   # template instantiation
 
14691
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14692
   $rm out/* && rmdir out
 
14693
   cd ..
 
14694
   rmdir conftest
 
14695
   $rm conftest*
 
14696
 
 
14697
fi
 
14698
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14699
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14700
 
 
14701
 
 
14702
hard_links="nottested"
 
14703
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14704
  # do not overwrite the value of need_locks provided by the user
 
14705
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14706
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14707
  hard_links=yes
 
14708
  $rm conftest*
 
14709
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14710
  touch conftest.a
 
14711
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14712
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14713
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
14714
echo "${ECHO_T}$hard_links" >&6
 
14715
  if test "$hard_links" = no; then
 
14716
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14717
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14718
    need_locks=warn
 
14719
  fi
 
14720
else
 
14721
  need_locks=no
 
14722
fi
 
14723
 
 
14724
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14725
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14726
 
 
14727
  runpath_var=
 
14728
  allow_undefined_flag_F77=
 
14729
  enable_shared_with_static_runtimes_F77=no
 
14730
  archive_cmds_F77=
 
14731
  archive_expsym_cmds_F77=
 
14732
  old_archive_From_new_cmds_F77=
 
14733
  old_archive_from_expsyms_cmds_F77=
 
14734
  export_dynamic_flag_spec_F77=
 
14735
  whole_archive_flag_spec_F77=
 
14736
  thread_safe_flag_spec_F77=
 
14737
  hardcode_libdir_flag_spec_F77=
 
14738
  hardcode_libdir_flag_spec_ld_F77=
 
14739
  hardcode_libdir_separator_F77=
 
14740
  hardcode_direct_F77=no
 
14741
  hardcode_minus_L_F77=no
 
14742
  hardcode_shlibpath_var_F77=unsupported
 
14743
  link_all_deplibs_F77=unknown
 
14744
  hardcode_automatic_F77=no
 
14745
  module_cmds_F77=
 
14746
  module_expsym_cmds_F77=
 
14747
  always_export_symbols_F77=no
 
14748
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14749
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14750
  # included in the symbol list
 
14751
  include_expsyms_F77=
 
14752
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14753
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14754
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14755
  # as well as any symbol that contains `d'.
 
14756
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14757
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14758
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14759
  # the symbol is explicitly referenced.  Since portable code cannot
 
14760
  # rely on this symbol name, it's probably fine to never include it in
 
14761
  # preloaded symbol tables.
 
14762
  extract_expsyms_cmds=
 
14763
 
 
14764
  case $host_os in
 
14765
  cygwin* | mingw* | pw32*)
 
14766
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14767
    # When not using gcc, we currently assume that we are using
 
14768
    # Microsoft Visual C++.
 
14769
    if test "$GCC" != yes; then
 
14770
      with_gnu_ld=no
 
14771
    fi
 
14772
    ;;
 
14773
  openbsd*)
 
14774
    with_gnu_ld=no
 
14775
    ;;
 
14776
  esac
 
14777
 
 
14778
  ld_shlibs_F77=yes
 
14779
  if test "$with_gnu_ld" = yes; then
 
14780
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14781
    wlarc='${wl}'
 
14782
 
 
14783
    # See if GNU ld supports shared libraries.
 
14784
    case $host_os in
 
14785
    aix3* | aix4* | aix5*)
 
14786
      # On AIX/PPC, the GNU linker is very broken
 
14787
      if test "$host_cpu" != ia64; then
 
14788
        ld_shlibs_F77=no
 
14789
        cat <<EOF 1>&2
 
14790
 
 
14791
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14792
*** to be unable to reliably create shared libraries on AIX.
 
14793
*** Therefore, libtool is disabling shared libraries support.  If you
 
14794
*** really care for shared libraries, you may want to modify your PATH
 
14795
*** so that a non-GNU linker is found, and then restart.
 
14796
 
 
14797
EOF
 
14798
      fi
 
14799
      ;;
 
14800
 
 
14801
    amigaos*)
 
14802
      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)'
 
14803
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14804
      hardcode_minus_L_F77=yes
 
14805
 
 
14806
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14807
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14808
      # to version 4, is to share data among multiple programs linked
 
14809
      # with the same dynamic library.  Since this doesn't match the
 
14810
      # behavior of shared libraries on other platforms, we can't use
 
14811
      # them.
 
14812
      ld_shlibs_F77=no
 
14813
      ;;
 
14814
 
 
14815
    beos*)
 
14816
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14817
        allow_undefined_flag_F77=unsupported
 
14818
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14819
        # support --undefined.  This deserves some investigation.  FIXME
 
14820
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14821
      else
 
14822
        ld_shlibs_F77=no
 
14823
      fi
 
14824
      ;;
 
14825
 
 
14826
    cygwin* | mingw* | pw32*)
 
14827
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14828
      # as there is no search path for DLLs.
 
14829
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14830
      allow_undefined_flag_F77=unsupported
 
14831
      always_export_symbols_F77=no
 
14832
      enable_shared_with_static_runtimes_F77=yes
 
14833
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14834
 
 
14835
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14836
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14837
        # If the export-symbols file already is a .def file (1st line
 
14838
        # is EXPORTS), use it as is; otherwise, prepend...
 
14839
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14840
          cp $export_symbols $output_objdir/$soname.def;
 
14841
        else
 
14842
          echo EXPORTS > $output_objdir/$soname.def;
 
14843
          cat $export_symbols >> $output_objdir/$soname.def;
 
14844
        fi~
 
14845
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14846
      else
 
14847
        ld_shlibs=no
 
14848
      fi
 
14849
      ;;
 
14850
 
 
14851
    netbsd*)
 
14852
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14853
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14854
        wlarc=
 
14855
      else
 
14856
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14857
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14858
      fi
 
14859
      ;;
 
14860
 
 
14861
    solaris* | sysv5*)
 
14862
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14863
        ld_shlibs_F77=no
 
14864
        cat <<EOF 1>&2
 
14865
 
 
14866
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14867
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14868
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14869
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14870
*** your PATH or compiler configuration so that the native linker is
 
14871
*** used, and then restart.
 
14872
 
 
14873
EOF
 
14874
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14875
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14876
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14877
      else
 
14878
        ld_shlibs_F77=no
 
14879
      fi
 
14880
      ;;
 
14881
 
 
14882
    sunos4*)
 
14883
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14884
      wlarc=
 
14885
      hardcode_direct_F77=yes
 
14886
      hardcode_shlibpath_var_F77=no
 
14887
      ;;
 
14888
 
 
14889
  linux*)
 
14890
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14891
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14892
        archive_cmds_F77="$tmp_archive_cmds"
 
14893
      supports_anon_versioning=no
 
14894
      case `$LD -v 2>/dev/null` in
 
14895
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14896
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14897
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14898
        *\ 2.11.*) ;; # other 2.11 versions
 
14899
        *) supports_anon_versioning=yes ;;
 
14900
      esac
 
14901
      if test $supports_anon_versioning = yes; then
 
14902
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14903
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14904
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14905
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14906
      else
 
14907
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
14908
      fi
 
14909
    else
 
14910
      ld_shlibs_F77=no
 
14911
    fi
 
14912
    ;;
 
14913
 
 
14914
    *)
 
14915
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14916
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14917
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14918
      else
 
14919
        ld_shlibs_F77=no
 
14920
      fi
 
14921
      ;;
 
14922
    esac
 
14923
 
 
14924
    if test "$ld_shlibs_F77" = yes; then
 
14925
      runpath_var=LD_RUN_PATH
 
14926
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14927
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14928
      # ancient GNU ld didn't support --whole-archive et. al.
 
14929
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14930
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14931
      else
 
14932
        whole_archive_flag_spec_F77=
 
14933
      fi
 
14934
    fi
 
14935
  else
 
14936
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14937
    case $host_os in
 
14938
    aix3*)
 
14939
      allow_undefined_flag_F77=unsupported
 
14940
      always_export_symbols_F77=yes
 
14941
      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'
 
14942
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14943
      # are no directories specified by -L.
 
14944
      hardcode_minus_L_F77=yes
 
14945
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14946
        # Neither direct hardcoding nor static linking is supported with a
 
14947
        # broken collect2.
 
14948
        hardcode_direct_F77=unsupported
 
14949
      fi
 
14950
      ;;
 
14951
 
 
14952
    aix4* | aix5*)
 
14953
      if test "$host_cpu" = ia64; then
 
14954
        # On IA64, the linker does run time linking by default, so we don't
 
14955
        # have to do anything special.
 
14956
        aix_use_runtimelinking=no
 
14957
        exp_sym_flag='-Bexport'
 
14958
        no_entry_flag=""
 
14959
      else
 
14960
        # If we're using GNU nm, then we don't want the "-C" option.
 
14961
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14962
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14963
          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'
 
14964
        else
 
14965
          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'
 
14966
        fi
 
14967
        aix_use_runtimelinking=no
 
14968
 
 
14969
        # Test if we are trying to use run time linking or normal
 
14970
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14971
        # need to do runtime linking.
 
14972
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14973
          for ld_flag in $LDFLAGS; do
 
14974
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14975
            aix_use_runtimelinking=yes
 
14976
            break
 
14977
          fi
 
14978
          done
 
14979
        esac
 
14980
 
 
14981
        exp_sym_flag='-bexport'
 
14982
        no_entry_flag='-bnoentry'
 
14983
      fi
 
14984
 
 
14985
      # When large executables or shared objects are built, AIX ld can
 
14986
      # have problems creating the table of contents.  If linking a library
 
14987
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14988
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14989
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14990
 
 
14991
      archive_cmds_F77=''
 
14992
      hardcode_direct_F77=yes
 
14993
      hardcode_libdir_separator_F77=':'
 
14994
      link_all_deplibs_F77=yes
 
14995
 
 
14996
      if test "$GCC" = yes; then
 
14997
        case $host_os in aix4.012|aix4.012.*)
 
14998
        # We only want to do this on AIX 4.2 and lower, the check
 
14999
        # below for broken collect2 doesn't work under 4.3+
 
15000
          collect2name=`${CC} -print-prog-name=collect2`
 
15001
          if test -f "$collect2name" && \
 
15002
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15003
          then
 
15004
          # We have reworked collect2
 
15005
          hardcode_direct_F77=yes
 
15006
          else
 
15007
          # We have old collect2
 
15008
          hardcode_direct_F77=unsupported
 
15009
          # It fails to find uninstalled libraries when the uninstalled
 
15010
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15011
          # to unsupported forces relinking
 
15012
          hardcode_minus_L_F77=yes
 
15013
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15014
          hardcode_libdir_separator_F77=
 
15015
          fi
 
15016
        esac
 
15017
        shared_flag='-shared'
 
15018
      else
 
15019
        # not using gcc
 
15020
        if test "$host_cpu" = ia64; then
 
15021
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15022
        # chokes on -Wl,-G. The following line is correct:
 
15023
          shared_flag='-G'
 
15024
        else
 
15025
        if test "$aix_use_runtimelinking" = yes; then
 
15026
            shared_flag='${wl}-G'
 
15027
          else
 
15028
            shared_flag='${wl}-bM:SRE'
 
15029
        fi
 
15030
        fi
 
15031
      fi
 
15032
 
 
15033
      # It seems that -bexpall does not export symbols beginning with
 
15034
      # underscore (_), so it is better to generate a list of symbols to export.
 
15035
      always_export_symbols_F77=yes
 
15036
      if test "$aix_use_runtimelinking" = yes; then
 
15037
        # Warning - without using the other runtime loading flags (-brtl),
 
15038
        # -berok will link without error, but may produce a broken library.
 
15039
        allow_undefined_flag_F77='-berok'
 
15040
       # Determine the default libpath from the value encoded in an empty executable.
 
15041
       cat >conftest.$ac_ext <<_ACEOF
 
15042
      program main
 
15043
 
 
15044
      end
 
15045
_ACEOF
 
15046
rm -f conftest.$ac_objext conftest$ac_exeext
 
15047
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15048
  (eval $ac_link) 2>conftest.er1
 
15049
  ac_status=$?
 
15050
  grep -v '^ *+' conftest.er1 >conftest.err
 
15051
  rm -f conftest.er1
 
15052
  cat conftest.err >&5
 
15053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15054
  (exit $ac_status); } &&
 
15055
         { ac_try='test -z "$ac_f77_werror_flag"
 
15056
                         || test ! -s conftest.err'
 
15057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15058
  (eval $ac_try) 2>&5
 
15059
  ac_status=$?
 
15060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15061
  (exit $ac_status); }; } &&
 
15062
         { ac_try='test -s conftest$ac_exeext'
 
15063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15064
  (eval $ac_try) 2>&5
 
15065
  ac_status=$?
 
15066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15067
  (exit $ac_status); }; }; then
 
15068
 
 
15069
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15070
}'`
 
15071
# Check for a 64-bit object if we didn't find anything.
 
15072
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; }
 
15073
}'`; fi
 
15074
else
 
15075
  echo "$as_me: failed program was:" >&5
 
15076
sed 's/^/| /' conftest.$ac_ext >&5
 
15077
 
 
15078
fi
 
15079
rm -f conftest.err conftest.$ac_objext \
 
15080
      conftest$ac_exeext conftest.$ac_ext
 
15081
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15082
 
 
15083
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15084
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
15085
       else
 
15086
        if test "$host_cpu" = ia64; then
 
15087
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15088
          allow_undefined_flag_F77="-z nodefs"
 
15089
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
15090
        else
 
15091
         # Determine the default libpath from the value encoded in an empty executable.
 
15092
         cat >conftest.$ac_ext <<_ACEOF
 
15093
      program main
 
15094
 
 
15095
      end
 
15096
_ACEOF
 
15097
rm -f conftest.$ac_objext conftest$ac_exeext
 
15098
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15099
  (eval $ac_link) 2>conftest.er1
 
15100
  ac_status=$?
 
15101
  grep -v '^ *+' conftest.er1 >conftest.err
 
15102
  rm -f conftest.er1
 
15103
  cat conftest.err >&5
 
15104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15105
  (exit $ac_status); } &&
 
15106
         { ac_try='test -z "$ac_f77_werror_flag"
 
15107
                         || test ! -s conftest.err'
 
15108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15109
  (eval $ac_try) 2>&5
 
15110
  ac_status=$?
 
15111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15112
  (exit $ac_status); }; } &&
 
15113
         { ac_try='test -s conftest$ac_exeext'
 
15114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15115
  (eval $ac_try) 2>&5
 
15116
  ac_status=$?
 
15117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15118
  (exit $ac_status); }; }; then
 
15119
 
 
15120
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15121
}'`
 
15122
# Check for a 64-bit object if we didn't find anything.
 
15123
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; }
 
15124
}'`; fi
 
15125
else
 
15126
  echo "$as_me: failed program was:" >&5
 
15127
sed 's/^/| /' conftest.$ac_ext >&5
 
15128
 
 
15129
fi
 
15130
rm -f conftest.err conftest.$ac_objext \
 
15131
      conftest$ac_exeext conftest.$ac_ext
 
15132
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15133
 
 
15134
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15135
          # Warning - without using the other run time loading flags,
 
15136
          # -berok will link without error, but may produce a broken library.
 
15137
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15138
          allow_undefined_flag_F77=' ${wl}-berok'
 
15139
          # -bexpall does not export symbols beginning with underscore (_)
 
15140
          always_export_symbols_F77=yes
 
15141
          # Exported symbols can be pulled into shared objects from archives
 
15142
          whole_archive_flag_spec_F77=' '
 
15143
          archive_cmds_need_lc_F77=yes
 
15144
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15145
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
15146
        fi
 
15147
      fi
 
15148
      ;;
 
15149
 
 
15150
    amigaos*)
 
15151
      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)'
 
15152
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15153
      hardcode_minus_L_F77=yes
 
15154
      # see comment about different semantics on the GNU ld section
 
15155
      ld_shlibs_F77=no
 
15156
      ;;
 
15157
 
 
15158
    bsdi[45]*)
 
15159
      export_dynamic_flag_spec_F77=-rdynamic
 
15160
      ;;
 
15161
 
 
15162
    cygwin* | mingw* | pw32*)
 
15163
      # When not using gcc, we currently assume that we are using
 
15164
      # Microsoft Visual C++.
 
15165
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15166
      # no search path for DLLs.
 
15167
      hardcode_libdir_flag_spec_F77=' '
 
15168
      allow_undefined_flag_F77=unsupported
 
15169
      # Tell ltmain to make .lib files, not .a files.
 
15170
      libext=lib
 
15171
      # Tell ltmain to make .dll files, not .so files.
 
15172
      shrext_cmds=".dll"
 
15173
      # FIXME: Setting linknames here is a bad hack.
 
15174
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15175
      # The linker will automatically build a .lib file if we build a DLL.
 
15176
      old_archive_From_new_cmds_F77='true'
 
15177
      # FIXME: Should let the user specify the lib program.
 
15178
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15179
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15180
      enable_shared_with_static_runtimes_F77=yes
 
15181
      ;;
 
15182
 
 
15183
    darwin* | rhapsody*)
 
15184
      case "$host_os" in
 
15185
        rhapsody* | darwin1.[012])
 
15186
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15187
         ;;
 
15188
       *) # Darwin 1.3 on
 
15189
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15190
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15191
         else
 
15192
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15193
             10.[012])
 
15194
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15195
               ;;
 
15196
             10.*)
 
15197
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15198
               ;;
 
15199
           esac
 
15200
         fi
 
15201
         ;;
 
15202
      esac
 
15203
      archive_cmds_need_lc_F77=no
 
15204
      hardcode_direct_F77=no
 
15205
      hardcode_automatic_F77=yes
 
15206
      hardcode_shlibpath_var_F77=unsupported
 
15207
      whole_archive_flag_spec_F77=''
 
15208
      link_all_deplibs_F77=yes
 
15209
    if test "$GCC" = yes ; then
 
15210
        output_verbose_link_cmd='echo'
 
15211
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15212
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15213
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15214
      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}'
 
15215
      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}'
 
15216
    else
 
15217
      case "$cc_basename" in
 
15218
        xlc*)
 
15219
         output_verbose_link_cmd='echo'
 
15220
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
15221
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15222
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15223
         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}'
 
15224
          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}'
 
15225
          ;;
 
15226
       *)
 
15227
         ld_shlibs_F77=no
 
15228
          ;;
 
15229
      esac
 
15230
    fi
 
15231
      ;;
 
15232
 
 
15233
    dgux*)
 
15234
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15235
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15236
      hardcode_shlibpath_var_F77=no
 
15237
      ;;
 
15238
 
 
15239
    freebsd1*)
 
15240
      ld_shlibs_F77=no
 
15241
      ;;
 
15242
 
 
15243
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15244
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15245
    # does not break anything, and helps significantly (at the cost of a little
 
15246
    # extra space).
 
15247
    freebsd2.2*)
 
15248
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15249
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15250
      hardcode_direct_F77=yes
 
15251
      hardcode_shlibpath_var_F77=no
 
15252
      ;;
 
15253
 
 
15254
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15255
    freebsd2*)
 
15256
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15257
      hardcode_direct_F77=yes
 
15258
      hardcode_minus_L_F77=yes
 
15259
      hardcode_shlibpath_var_F77=no
 
15260
      ;;
 
15261
 
 
15262
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15263
    freebsd* | kfreebsd*-gnu)
 
15264
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15265
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15266
      hardcode_direct_F77=yes
 
15267
      hardcode_shlibpath_var_F77=no
 
15268
      ;;
 
15269
 
 
15270
    hpux9*)
 
15271
      if test "$GCC" = yes; then
 
15272
        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'
 
15273
      else
 
15274
        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'
 
15275
      fi
 
15276
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15277
      hardcode_libdir_separator_F77=:
 
15278
      hardcode_direct_F77=yes
 
15279
 
 
15280
      # hardcode_minus_L: Not really in the search PATH,
 
15281
      # but as the default location of the library.
 
15282
      hardcode_minus_L_F77=yes
 
15283
      export_dynamic_flag_spec_F77='${wl}-E'
 
15284
      ;;
 
15285
 
 
15286
    hpux10* | hpux11*)
 
15287
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15288
        case "$host_cpu" in
 
15289
        hppa*64*|ia64*)
 
15290
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15291
          ;;
 
15292
        *)
 
15293
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15294
          ;;
 
15295
        esac
 
15296
      else
 
15297
        case "$host_cpu" in
 
15298
        hppa*64*|ia64*)
 
15299
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15300
          ;;
 
15301
        *)
 
15302
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15303
          ;;
 
15304
        esac
 
15305
      fi
 
15306
      if test "$with_gnu_ld" = no; then
 
15307
        case "$host_cpu" in
 
15308
        hppa*64*)
 
15309
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15310
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15311
          hardcode_libdir_separator_F77=:
 
15312
          hardcode_direct_F77=no
 
15313
          hardcode_shlibpath_var_F77=no
 
15314
          ;;
 
15315
        ia64*)
 
15316
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15317
          hardcode_direct_F77=no
 
15318
          hardcode_shlibpath_var_F77=no
 
15319
 
 
15320
          # hardcode_minus_L: Not really in the search PATH,
 
15321
          # but as the default location of the library.
 
15322
          hardcode_minus_L_F77=yes
 
15323
          ;;
 
15324
        *)
 
15325
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15326
          hardcode_libdir_separator_F77=:
 
15327
          hardcode_direct_F77=yes
 
15328
          export_dynamic_flag_spec_F77='${wl}-E'
 
15329
 
 
15330
          # hardcode_minus_L: Not really in the search PATH,
 
15331
          # but as the default location of the library.
 
15332
          hardcode_minus_L_F77=yes
 
15333
          ;;
 
15334
        esac
 
15335
      fi
 
15336
      ;;
 
15337
 
 
15338
    irix5* | irix6* | nonstopux*)
 
15339
      if test "$GCC" = yes; then
 
15340
        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'
 
15341
      else
 
15342
        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'
 
15343
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15344
      fi
 
15345
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15346
      hardcode_libdir_separator_F77=:
 
15347
      link_all_deplibs_F77=yes
 
15348
      ;;
 
15349
 
 
15350
    netbsd*)
 
15351
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15352
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15353
      else
 
15354
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15355
      fi
 
15356
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15357
      hardcode_direct_F77=yes
 
15358
      hardcode_shlibpath_var_F77=no
 
15359
      ;;
 
15360
 
 
15361
    newsos6)
 
15362
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15363
      hardcode_direct_F77=yes
 
15364
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15365
      hardcode_libdir_separator_F77=:
 
15366
      hardcode_shlibpath_var_F77=no
 
15367
      ;;
 
15368
 
 
15369
    openbsd*)
 
15370
      hardcode_direct_F77=yes
 
15371
      hardcode_shlibpath_var_F77=no
 
15372
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15373
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15374
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15375
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15376
        export_dynamic_flag_spec_F77='${wl}-E'
 
15377
      else
 
15378
       case $host_os in
 
15379
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15380
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15381
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
15382
           ;;
 
15383
         *)
 
15384
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15385
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15386
           ;;
 
15387
       esac
 
15388
      fi
 
15389
      ;;
 
15390
 
 
15391
    os2*)
 
15392
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15393
      hardcode_minus_L_F77=yes
 
15394
      allow_undefined_flag_F77=unsupported
 
15395
      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'
 
15396
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15397
      ;;
 
15398
 
 
15399
    osf3*)
 
15400
      if test "$GCC" = yes; then
 
15401
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15402
        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'
 
15403
      else
 
15404
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15405
        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'
 
15406
      fi
 
15407
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15408
      hardcode_libdir_separator_F77=:
 
15409
      ;;
 
15410
 
 
15411
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15412
      if test "$GCC" = yes; then
 
15413
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15414
        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'
 
15415
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15416
      else
 
15417
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15418
        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'
 
15419
        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~
 
15420
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
15421
 
 
15422
        # Both c and cxx compiler support -rpath directly
 
15423
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15424
      fi
 
15425
      hardcode_libdir_separator_F77=:
 
15426
      ;;
 
15427
 
 
15428
    sco3.2v5*)
 
15429
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15430
      hardcode_shlibpath_var_F77=no
 
15431
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15432
      runpath_var=LD_RUN_PATH
 
15433
      hardcode_runpath_var=yes
 
15434
      ;;
 
15435
 
 
15436
    solaris*)
 
15437
      no_undefined_flag_F77=' -z text'
 
15438
      if test "$GCC" = yes; then
 
15439
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15440
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15441
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15442
      else
 
15443
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15444
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15445
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15446
      fi
 
15447
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15448
      hardcode_shlibpath_var_F77=no
 
15449
      case $host_os in
 
15450
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15451
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15452
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15453
      esac
 
15454
      link_all_deplibs_F77=yes
 
15455
      ;;
 
15456
 
 
15457
    sunos4*)
 
15458
      if test "x$host_vendor" = xsequent; then
 
15459
        # Use $CC to link under sequent, because it throws in some extra .o
 
15460
        # files that make .init and .fini sections work.
 
15461
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15462
      else
 
15463
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15464
      fi
 
15465
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15466
      hardcode_direct_F77=yes
 
15467
      hardcode_minus_L_F77=yes
 
15468
      hardcode_shlibpath_var_F77=no
 
15469
      ;;
 
15470
 
 
15471
    sysv4)
 
15472
      case $host_vendor in
 
15473
        sni)
 
15474
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15475
          hardcode_direct_F77=yes # is this really true???
 
15476
        ;;
 
15477
        siemens)
 
15478
          ## LD is ld it makes a PLAMLIB
 
15479
          ## CC just makes a GrossModule.
 
15480
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15481
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15482
          hardcode_direct_F77=no
 
15483
        ;;
 
15484
        motorola)
 
15485
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15486
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15487
        ;;
 
15488
      esac
 
15489
      runpath_var='LD_RUN_PATH'
 
15490
      hardcode_shlibpath_var_F77=no
 
15491
      ;;
 
15492
 
 
15493
    sysv4.3*)
 
15494
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15495
      hardcode_shlibpath_var_F77=no
 
15496
      export_dynamic_flag_spec_F77='-Bexport'
 
15497
      ;;
 
15498
 
 
15499
    sysv4*MP*)
 
15500
      if test -d /usr/nec; then
 
15501
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15502
        hardcode_shlibpath_var_F77=no
 
15503
        runpath_var=LD_RUN_PATH
 
15504
        hardcode_runpath_var=yes
 
15505
        ld_shlibs_F77=yes
 
15506
      fi
 
15507
      ;;
 
15508
 
 
15509
    sysv4.2uw2*)
 
15510
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15511
      hardcode_direct_F77=yes
 
15512
      hardcode_minus_L_F77=no
 
15513
      hardcode_shlibpath_var_F77=no
 
15514
      hardcode_runpath_var=yes
 
15515
      runpath_var=LD_RUN_PATH
 
15516
      ;;
 
15517
 
 
15518
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
15519
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
15520
      if test "$GCC" = yes; then
 
15521
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15522
      else
 
15523
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15524
      fi
 
15525
      runpath_var='LD_RUN_PATH'
 
15526
      hardcode_shlibpath_var_F77=no
 
15527
      ;;
 
15528
 
 
15529
    sysv5*)
 
15530
      no_undefined_flag_F77=' -z text'
 
15531
      # $CC -shared without GNU ld will not create a library from C++
 
15532
      # object files and a static libstdc++, better avoid it by now
 
15533
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15534
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15535
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15536
      hardcode_libdir_flag_spec_F77=
 
15537
      hardcode_shlibpath_var_F77=no
 
15538
      runpath_var='LD_RUN_PATH'
 
15539
      ;;
 
15540
 
 
15541
    uts4*)
 
15542
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15543
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15544
      hardcode_shlibpath_var_F77=no
 
15545
      ;;
 
15546
 
 
15547
    *)
 
15548
      ld_shlibs_F77=no
 
15549
      ;;
 
15550
    esac
 
15551
  fi
 
15552
 
 
15553
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15554
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15555
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15556
 
 
15557
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15558
if test "$GCC" = yes; then
 
15559
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15560
fi
 
15561
 
 
15562
#
 
15563
# Do we need to explicitly link libc?
 
15564
#
 
15565
case "x$archive_cmds_need_lc_F77" in
 
15566
x|xyes)
 
15567
  # Assume -lc should be added
 
15568
  archive_cmds_need_lc_F77=yes
 
15569
 
 
15570
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15571
    case $archive_cmds_F77 in
 
15572
    *'~'*)
 
15573
      # FIXME: we may have to deal with multi-command sequences.
 
15574
      ;;
 
15575
    '$CC '*)
 
15576
      # Test whether the compiler implicitly links with -lc since on some
 
15577
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15578
      # to ld, don't add -lc before -lgcc.
 
15579
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15580
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15581
      $rm conftest*
 
15582
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15583
 
 
15584
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15585
  (eval $ac_compile) 2>&5
 
15586
  ac_status=$?
 
15587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15588
  (exit $ac_status); } 2>conftest.err; then
 
15589
        soname=conftest
 
15590
        lib=conftest
 
15591
        libobjs=conftest.$ac_objext
 
15592
        deplibs=
 
15593
        wl=$lt_prog_compiler_wl_F77
 
15594
        compiler_flags=-v
 
15595
        linker_flags=-v
 
15596
        verstring=
 
15597
        output_objdir=.
 
15598
        libname=conftest
 
15599
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15600
        allow_undefined_flag_F77=
 
15601
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15602
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15603
  ac_status=$?
 
15604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15605
  (exit $ac_status); }
 
15606
        then
 
15607
          archive_cmds_need_lc_F77=no
 
15608
        else
 
15609
          archive_cmds_need_lc_F77=yes
 
15610
        fi
 
15611
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15612
      else
 
15613
        cat conftest.err 1>&5
 
15614
      fi
 
15615
      $rm conftest*
 
15616
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15617
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15618
      ;;
 
15619
    esac
 
15620
  fi
 
15621
  ;;
 
15622
esac
 
15623
 
 
15624
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15625
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15626
library_names_spec=
 
15627
libname_spec='lib$name'
 
15628
soname_spec=
 
15629
shrext_cmds=".so"
 
15630
postinstall_cmds=
 
15631
postuninstall_cmds=
 
15632
finish_cmds=
 
15633
finish_eval=
 
15634
shlibpath_var=
 
15635
shlibpath_overrides_runpath=unknown
 
15636
version_type=none
 
15637
dynamic_linker="$host_os ld.so"
 
15638
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15639
if test "$GCC" = yes; then
 
15640
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15641
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15642
    # if the path contains ";" then we assume it to be the separator
 
15643
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15644
    # assumed that no part of a normal pathname contains ";" but that should
 
15645
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15646
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15647
  else
 
15648
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15649
  fi
 
15650
else
 
15651
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15652
fi
 
15653
need_lib_prefix=unknown
 
15654
hardcode_into_libs=no
 
15655
 
 
15656
# when you set need_version to no, make sure it does not cause -set_version
 
15657
# flags to be left without arguments
 
15658
need_version=unknown
 
15659
 
 
15660
case $host_os in
 
15661
aix3*)
 
15662
  version_type=linux
 
15663
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15664
  shlibpath_var=LIBPATH
 
15665
 
 
15666
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15667
  soname_spec='${libname}${release}${shared_ext}$major'
 
15668
  ;;
 
15669
 
 
15670
aix4* | aix5*)
 
15671
  version_type=linux
 
15672
  need_lib_prefix=no
 
15673
  need_version=no
 
15674
  hardcode_into_libs=yes
 
15675
  if test "$host_cpu" = ia64; then
 
15676
    # AIX 5 supports IA64
 
15677
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15678
    shlibpath_var=LD_LIBRARY_PATH
 
15679
  else
 
15680
    # With GCC up to 2.95.x, collect2 would create an import file
 
15681
    # for dependence libraries.  The import file would start with
 
15682
    # the line `#! .'.  This would cause the generated library to
 
15683
    # depend on `.', always an invalid library.  This was fixed in
 
15684
    # development snapshots of GCC prior to 3.0.
 
15685
    case $host_os in
 
15686
      aix4 | aix4.[01] | aix4.[01].*)
 
15687
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15688
           echo ' yes '
 
15689
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15690
        :
 
15691
      else
 
15692
        can_build_shared=no
 
15693
      fi
 
15694
      ;;
 
15695
    esac
 
15696
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15697
    # soname into executable. Probably we can add versioning support to
 
15698
    # collect2, so additional links can be useful in future.
 
15699
    if test "$aix_use_runtimelinking" = yes; then
 
15700
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15701
      # instead of lib<name>.a to let people know that these are not
 
15702
      # typical AIX shared libraries.
 
15703
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15704
    else
 
15705
      # We preserve .a as extension for shared libraries through AIX4.2
 
15706
      # and later when we are not doing run time linking.
 
15707
      library_names_spec='${libname}${release}.a $libname.a'
 
15708
      soname_spec='${libname}${release}${shared_ext}$major'
 
15709
    fi
 
15710
    shlibpath_var=LIBPATH
 
15711
  fi
 
15712
  ;;
 
15713
 
 
15714
amigaos*)
 
15715
  library_names_spec='$libname.ixlibrary $libname.a'
 
15716
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15717
  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'
 
15718
  ;;
 
15719
 
 
15720
beos*)
 
15721
  library_names_spec='${libname}${shared_ext}'
 
15722
  dynamic_linker="$host_os ld.so"
 
15723
  shlibpath_var=LIBRARY_PATH
 
15724
  ;;
 
15725
 
 
15726
bsdi[45]*)
 
15727
  version_type=linux
 
15728
  need_version=no
 
15729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15730
  soname_spec='${libname}${release}${shared_ext}$major'
 
15731
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15732
  shlibpath_var=LD_LIBRARY_PATH
 
15733
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15734
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15735
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15736
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15737
  # libtool to hard-code these into programs
 
15738
  ;;
 
15739
 
 
15740
cygwin* | mingw* | pw32*)
 
15741
  version_type=windows
 
15742
  shrext_cmds=".dll"
 
15743
  need_version=no
 
15744
  need_lib_prefix=no
 
15745
 
 
15746
  case $GCC,$host_os in
 
15747
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15748
    library_names_spec='$libname.dll.a'
 
15749
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15750
    postinstall_cmds='base_file=`basename \${file}`~
 
15751
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15752
      dldir=$destdir/`dirname \$dlpath`~
 
15753
      test -d \$dldir || mkdir -p \$dldir~
 
15754
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15755
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15756
      dlpath=$dir/\$dldll~
 
15757
       $rm \$dlpath'
 
15758
    shlibpath_overrides_runpath=yes
 
15759
 
 
15760
    case $host_os in
 
15761
    cygwin*)
 
15762
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15763
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15764
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15765
      ;;
 
15766
    mingw*)
 
15767
      # MinGW DLLs use traditional 'lib' prefix
 
15768
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15769
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15770
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15771
        # It is most probably a Windows format PATH printed by
 
15772
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15773
        # path with ; separators, and with drive letters. We can handle the
 
15774
        # drive letters (cygwin fileutils understands them), so leave them,
 
15775
        # especially as we might pass files found there to a mingw objdump,
 
15776
        # which wouldn't understand a cygwinified path. Ahh.
 
15777
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15778
      else
 
15779
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15780
      fi
 
15781
      ;;
 
15782
    pw32*)
 
15783
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15784
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15785
      ;;
 
15786
    esac
 
15787
    ;;
 
15788
 
 
15789
  *)
 
15790
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15791
    ;;
 
15792
  esac
 
15793
  dynamic_linker='Win32 ld.exe'
 
15794
  # FIXME: first we should search . and the directory the executable is in
 
15795
  shlibpath_var=PATH
 
15796
  ;;
 
15797
 
 
15798
darwin* | rhapsody*)
 
15799
  dynamic_linker="$host_os dyld"
 
15800
  version_type=darwin
 
15801
  need_lib_prefix=no
 
15802
  need_version=no
 
15803
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15804
  soname_spec='${libname}${release}${major}$shared_ext'
 
15805
  shlibpath_overrides_runpath=yes
 
15806
  shlibpath_var=DYLD_LIBRARY_PATH
 
15807
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
15808
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15809
  if test "$GCC" = yes; then
 
15810
    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"`
 
15811
  else
 
15812
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15813
  fi
 
15814
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15815
  ;;
 
15816
 
 
15817
dgux*)
 
15818
  version_type=linux
 
15819
  need_lib_prefix=no
 
15820
  need_version=no
 
15821
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15822
  soname_spec='${libname}${release}${shared_ext}$major'
 
15823
  shlibpath_var=LD_LIBRARY_PATH
 
15824
  ;;
 
15825
 
 
15826
freebsd1*)
 
15827
  dynamic_linker=no
 
15828
  ;;
 
15829
 
 
15830
kfreebsd*-gnu)
 
15831
  version_type=linux
 
15832
  need_lib_prefix=no
 
15833
  need_version=no
 
15834
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15835
  soname_spec='${libname}${release}${shared_ext}$major'
 
15836
  shlibpath_var=LD_LIBRARY_PATH
 
15837
  shlibpath_overrides_runpath=no
 
15838
  hardcode_into_libs=yes
 
15839
  dynamic_linker='GNU ld.so'
 
15840
  ;;
 
15841
 
 
15842
freebsd*)
 
15843
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15844
  version_type=freebsd-$objformat
 
15845
  case $version_type in
 
15846
    freebsd-elf*)
 
15847
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15848
      need_version=no
 
15849
      need_lib_prefix=no
 
15850
      ;;
 
15851
    freebsd-*)
 
15852
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15853
      need_version=yes
 
15854
      ;;
 
15855
  esac
 
15856
  shlibpath_var=LD_LIBRARY_PATH
 
15857
  case $host_os in
 
15858
  freebsd2*)
 
15859
    shlibpath_overrides_runpath=yes
 
15860
    ;;
 
15861
  freebsd3.01* | freebsdelf3.01*)
 
15862
    shlibpath_overrides_runpath=yes
 
15863
    hardcode_into_libs=yes
 
15864
    ;;
 
15865
  *) # from 3.2 on
 
15866
    shlibpath_overrides_runpath=no
 
15867
    hardcode_into_libs=yes
 
15868
    ;;
 
15869
  esac
 
15870
  ;;
 
15871
 
 
15872
gnu*)
 
15873
  version_type=linux
 
15874
  need_lib_prefix=no
 
15875
  need_version=no
 
15876
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15877
  soname_spec='${libname}${release}${shared_ext}$major'
 
15878
  shlibpath_var=LD_LIBRARY_PATH
 
15879
  hardcode_into_libs=yes
 
15880
  ;;
 
15881
 
 
15882
hpux9* | hpux10* | hpux11*)
 
15883
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15884
  # link against other versions.
 
15885
  version_type=sunos
 
15886
  need_lib_prefix=no
 
15887
  need_version=no
 
15888
  case "$host_cpu" in
 
15889
  ia64*)
 
15890
    shrext_cmds='.so'
 
15891
    hardcode_into_libs=yes
 
15892
    dynamic_linker="$host_os dld.so"
 
15893
    shlibpath_var=LD_LIBRARY_PATH
 
15894
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15895
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15896
    soname_spec='${libname}${release}${shared_ext}$major'
 
15897
    if test "X$HPUX_IA64_MODE" = X32; then
 
15898
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15899
    else
 
15900
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15901
    fi
 
15902
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15903
    ;;
 
15904
   hppa*64*)
 
15905
     shrext_cmds='.sl'
 
15906
     hardcode_into_libs=yes
 
15907
     dynamic_linker="$host_os dld.sl"
 
15908
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15909
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15910
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15911
     soname_spec='${libname}${release}${shared_ext}$major'
 
15912
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15913
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15914
     ;;
 
15915
   *)
 
15916
    shrext_cmds='.sl'
 
15917
    dynamic_linker="$host_os dld.sl"
 
15918
    shlibpath_var=SHLIB_PATH
 
15919
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15920
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15921
    soname_spec='${libname}${release}${shared_ext}$major'
 
15922
    ;;
 
15923
  esac
 
15924
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15925
  postinstall_cmds='chmod 555 $lib'
 
15926
  ;;
 
15927
 
 
15928
irix5* | irix6* | nonstopux*)
 
15929
  case $host_os in
 
15930
    nonstopux*) version_type=nonstopux ;;
 
15931
    *)
 
15932
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15933
                version_type=linux
 
15934
        else
 
15935
                version_type=irix
 
15936
        fi ;;
 
15937
  esac
 
15938
  need_lib_prefix=no
 
15939
  need_version=no
 
15940
  soname_spec='${libname}${release}${shared_ext}$major'
 
15941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15942
  case $host_os in
 
15943
  irix5* | nonstopux*)
 
15944
    libsuff= shlibsuff=
 
15945
    ;;
 
15946
  *)
 
15947
    case $LD in # libtool.m4 will add one of these switches to LD
 
15948
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15949
      libsuff= shlibsuff= libmagic=32-bit;;
 
15950
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15951
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15952
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15953
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15954
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15955
    esac
 
15956
    ;;
 
15957
  esac
 
15958
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15959
  shlibpath_overrides_runpath=no
 
15960
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15961
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15962
  hardcode_into_libs=yes
 
15963
  ;;
 
15964
 
 
15965
# No shared lib support for Linux oldld, aout, or coff.
 
15966
linux*oldld* | linux*aout* | linux*coff*)
 
15967
  dynamic_linker=no
 
15968
  ;;
 
15969
 
 
15970
# This must be Linux ELF.
 
15971
linux*)
 
15972
  version_type=linux
 
15973
  need_lib_prefix=no
 
15974
  need_version=no
 
15975
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15976
  soname_spec='${libname}${release}${shared_ext}$major'
 
15977
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15978
  shlibpath_var=LD_LIBRARY_PATH
 
15979
  shlibpath_overrides_runpath=no
 
15980
  # This implies no fast_install, which is unacceptable.
 
15981
  # Some rework will be needed to allow for fast_install
 
15982
  # before this can be enabled.
 
15983
  hardcode_into_libs=yes
 
15984
 
 
15985
  # find out which ABI we are using
 
15986
  libsuff=
 
15987
  case "$host_cpu" in
 
15988
  x86_64*|s390x*|powerpc64*)
 
15989
    echo '#line 15989 "configure"' > conftest.$ac_ext
 
15990
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15991
  (eval $ac_compile) 2>&5
 
15992
  ac_status=$?
 
15993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15994
  (exit $ac_status); }; then
 
15995
      case `/usr/bin/file conftest.$ac_objext` in
 
15996
      *64-bit*)
 
15997
        libsuff=64
 
15998
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
15999
        ;;
 
16000
      esac
 
16001
    fi
 
16002
    rm -rf conftest*
 
16003
    ;;
 
16004
  esac
 
16005
 
 
16006
  # Append ld.so.conf contents to the search path
 
16007
  if test -f /etc/ld.so.conf; then
 
16008
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
16009
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
16010
  fi
 
16011
 
 
16012
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16013
  # powerpc, because MkLinux only supported shared libraries with the
 
16014
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16015
  # most powerpc-linux boxes support dynamic linking these days and
 
16016
  # people can always --disable-shared, the test was removed, and we
 
16017
  # assume the GNU/Linux dynamic linker is in use.
 
16018
  dynamic_linker='GNU/Linux ld.so'
 
16019
  ;;
 
16020
 
 
16021
knetbsd*-gnu)
 
16022
  version_type=linux
 
16023
  need_lib_prefix=no
 
16024
  need_version=no
 
16025
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16026
  soname_spec='${libname}${release}${shared_ext}$major'
 
16027
  shlibpath_var=LD_LIBRARY_PATH
 
16028
  shlibpath_overrides_runpath=no
 
16029
  hardcode_into_libs=yes
 
16030
  dynamic_linker='GNU ld.so'
 
16031
  ;;
 
16032
 
 
16033
netbsd*)
 
16034
  version_type=sunos
 
16035
  need_lib_prefix=no
 
16036
  need_version=no
 
16037
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16038
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16039
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16040
    dynamic_linker='NetBSD (a.out) ld.so'
 
16041
  else
 
16042
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16043
    soname_spec='${libname}${release}${shared_ext}$major'
 
16044
    dynamic_linker='NetBSD ld.elf_so'
 
16045
  fi
 
16046
  shlibpath_var=LD_LIBRARY_PATH
 
16047
  shlibpath_overrides_runpath=yes
 
16048
  hardcode_into_libs=yes
 
16049
  ;;
 
16050
 
 
16051
newsos6)
 
16052
  version_type=linux
 
16053
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16054
  shlibpath_var=LD_LIBRARY_PATH
 
16055
  shlibpath_overrides_runpath=yes
 
16056
  ;;
 
16057
 
 
16058
nto-qnx*)
 
16059
  version_type=linux
 
16060
  need_lib_prefix=no
 
16061
  need_version=no
 
16062
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16063
  soname_spec='${libname}${release}${shared_ext}$major'
 
16064
  shlibpath_var=LD_LIBRARY_PATH
 
16065
  shlibpath_overrides_runpath=yes
 
16066
  ;;
 
16067
 
 
16068
openbsd*)
 
16069
  version_type=sunos
 
16070
  need_lib_prefix=no
 
16071
  need_version=no
 
16072
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16073
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16074
  shlibpath_var=LD_LIBRARY_PATH
 
16075
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16076
    case $host_os in
 
16077
      openbsd2.[89] | openbsd2.[89].*)
 
16078
        shlibpath_overrides_runpath=no
 
16079
        ;;
 
16080
      *)
 
16081
        shlibpath_overrides_runpath=yes
 
16082
        ;;
 
16083
      esac
 
16084
  else
 
16085
    shlibpath_overrides_runpath=yes
 
16086
  fi
 
16087
  ;;
 
16088
 
 
16089
os2*)
 
16090
  libname_spec='$name'
 
16091
  shrext_cmds=".dll"
 
16092
  need_lib_prefix=no
 
16093
  library_names_spec='$libname${shared_ext} $libname.a'
 
16094
  dynamic_linker='OS/2 ld.exe'
 
16095
  shlibpath_var=LIBPATH
 
16096
  ;;
 
16097
 
 
16098
osf3* | osf4* | osf5*)
 
16099
  version_type=osf
 
16100
  need_lib_prefix=no
 
16101
  need_version=no
 
16102
  soname_spec='${libname}${release}${shared_ext}$major'
 
16103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16104
  shlibpath_var=LD_LIBRARY_PATH
 
16105
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16106
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16107
  ;;
 
16108
 
 
16109
sco3.2v5*)
 
16110
  version_type=osf
 
16111
  soname_spec='${libname}${release}${shared_ext}$major'
 
16112
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16113
  shlibpath_var=LD_LIBRARY_PATH
 
16114
  ;;
 
16115
 
 
16116
solaris*)
 
16117
  version_type=linux
 
16118
  need_lib_prefix=no
 
16119
  need_version=no
 
16120
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16121
  soname_spec='${libname}${release}${shared_ext}$major'
 
16122
  shlibpath_var=LD_LIBRARY_PATH
 
16123
  shlibpath_overrides_runpath=yes
 
16124
  hardcode_into_libs=yes
 
16125
  # ldd complains unless libraries are executable
 
16126
  postinstall_cmds='chmod +x $lib'
 
16127
  ;;
 
16128
 
 
16129
sunos4*)
 
16130
  version_type=sunos
 
16131
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16132
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16133
  shlibpath_var=LD_LIBRARY_PATH
 
16134
  shlibpath_overrides_runpath=yes
 
16135
  if test "$with_gnu_ld" = yes; then
 
16136
    need_lib_prefix=no
 
16137
  fi
 
16138
  need_version=yes
 
16139
  ;;
 
16140
 
 
16141
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16142
  version_type=linux
 
16143
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16144
  soname_spec='${libname}${release}${shared_ext}$major'
 
16145
  shlibpath_var=LD_LIBRARY_PATH
 
16146
  case $host_vendor in
 
16147
    sni)
 
16148
      shlibpath_overrides_runpath=no
 
16149
      need_lib_prefix=no
 
16150
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16151
      runpath_var=LD_RUN_PATH
 
16152
      ;;
 
16153
    siemens)
 
16154
      need_lib_prefix=no
 
16155
      ;;
 
16156
    motorola)
 
16157
      need_lib_prefix=no
 
16158
      need_version=no
 
16159
      shlibpath_overrides_runpath=no
 
16160
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16161
      ;;
 
16162
  esac
 
16163
  ;;
 
16164
 
 
16165
sysv4*MP*)
 
16166
  if test -d /usr/nec ;then
 
16167
    version_type=linux
 
16168
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16169
    soname_spec='$libname${shared_ext}.$major'
 
16170
    shlibpath_var=LD_LIBRARY_PATH
 
16171
  fi
 
16172
  ;;
 
16173
 
 
16174
uts4*)
 
16175
  version_type=linux
 
16176
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16177
  soname_spec='${libname}${release}${shared_ext}$major'
 
16178
  shlibpath_var=LD_LIBRARY_PATH
 
16179
  ;;
 
16180
 
 
16181
*)
 
16182
  dynamic_linker=no
 
16183
  ;;
 
16184
esac
 
16185
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16186
echo "${ECHO_T}$dynamic_linker" >&6
 
16187
test "$dynamic_linker" = no && can_build_shared=no
 
16188
 
 
16189
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16190
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16191
hardcode_action_F77=
 
16192
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16193
   test -n "$runpath_var_F77" || \
 
16194
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16195
 
 
16196
  # We can hardcode non-existant directories.
 
16197
  if test "$hardcode_direct_F77" != no &&
 
16198
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16199
     # have to relink, otherwise we might link with an installed library
 
16200
     # when we should be linking with a yet-to-be-installed one
 
16201
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16202
     test "$hardcode_minus_L_F77" != no; then
 
16203
    # Linking always hardcodes the temporary library directory.
 
16204
    hardcode_action_F77=relink
 
16205
  else
 
16206
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16207
    hardcode_action_F77=immediate
 
16208
  fi
 
16209
else
 
16210
  # We cannot hardcode anything, or else we can only hardcode existing
 
16211
  # directories.
 
16212
  hardcode_action_F77=unsupported
 
16213
fi
 
16214
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16215
echo "${ECHO_T}$hardcode_action_F77" >&6
 
16216
 
 
16217
if test "$hardcode_action_F77" = relink; then
 
16218
  # Fast installation is not supported
 
16219
  enable_fast_install=no
 
16220
elif test "$shlibpath_overrides_runpath" = yes ||
 
16221
     test "$enable_shared" = no; then
 
16222
  # Fast installation is not necessary
 
16223
  enable_fast_install=needless
 
16224
fi
 
16225
 
 
16226
striplib=
 
16227
old_striplib=
 
16228
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16229
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16230
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16231
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16232
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16233
  echo "$as_me:$LINENO: result: yes" >&5
 
16234
echo "${ECHO_T}yes" >&6
 
16235
else
 
16236
# FIXME - insert some real tests, host_os isn't really good enough
 
16237
  case $host_os in
 
16238
   darwin*)
 
16239
       if test -n "$STRIP" ; then
 
16240
         striplib="$STRIP -x"
 
16241
         echo "$as_me:$LINENO: result: yes" >&5
 
16242
echo "${ECHO_T}yes" >&6
 
16243
       else
 
16244
  echo "$as_me:$LINENO: result: no" >&5
 
16245
echo "${ECHO_T}no" >&6
 
16246
fi
 
16247
       ;;
 
16248
   *)
 
16249
  echo "$as_me:$LINENO: result: no" >&5
 
16250
echo "${ECHO_T}no" >&6
 
16251
    ;;
 
16252
  esac
 
16253
fi
 
16254
 
 
16255
 
 
16256
 
 
16257
# The else clause should only fire when bootstrapping the
 
16258
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16259
# with your package, and you will get complaints that there are
 
16260
# no rules to generate ltmain.sh.
 
16261
if test -f "$ltmain"; then
 
16262
  # See if we are running on zsh, and set the options which allow our commands through
 
16263
  # without removal of \ escapes.
 
16264
  if test -n "${ZSH_VERSION+set}" ; then
 
16265
    setopt NO_GLOB_SUBST
 
16266
  fi
 
16267
  # Now quote all the things that may contain metacharacters while being
 
16268
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16269
  # variables and quote the copies for generation of the libtool script.
 
16270
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
16271
    SED SHELL STRIP \
 
16272
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16273
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16274
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16275
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16276
    lt_cv_sys_global_symbol_to_c_name_address \
 
16277
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16278
    old_postinstall_cmds old_postuninstall_cmds \
 
16279
    compiler_F77 \
 
16280
    CC_F77 \
 
16281
    LD_F77 \
 
16282
    lt_prog_compiler_wl_F77 \
 
16283
    lt_prog_compiler_pic_F77 \
 
16284
    lt_prog_compiler_static_F77 \
 
16285
    lt_prog_compiler_no_builtin_flag_F77 \
 
16286
    export_dynamic_flag_spec_F77 \
 
16287
    thread_safe_flag_spec_F77 \
 
16288
    whole_archive_flag_spec_F77 \
 
16289
    enable_shared_with_static_runtimes_F77 \
 
16290
    old_archive_cmds_F77 \
 
16291
    old_archive_from_new_cmds_F77 \
 
16292
    predep_objects_F77 \
 
16293
    postdep_objects_F77 \
 
16294
    predeps_F77 \
 
16295
    postdeps_F77 \
 
16296
    compiler_lib_search_path_F77 \
 
16297
    archive_cmds_F77 \
 
16298
    archive_expsym_cmds_F77 \
 
16299
    postinstall_cmds_F77 \
 
16300
    postuninstall_cmds_F77 \
 
16301
    old_archive_from_expsyms_cmds_F77 \
 
16302
    allow_undefined_flag_F77 \
 
16303
    no_undefined_flag_F77 \
 
16304
    export_symbols_cmds_F77 \
 
16305
    hardcode_libdir_flag_spec_F77 \
 
16306
    hardcode_libdir_flag_spec_ld_F77 \
 
16307
    hardcode_libdir_separator_F77 \
 
16308
    hardcode_automatic_F77 \
 
16309
    module_cmds_F77 \
 
16310
    module_expsym_cmds_F77 \
 
16311
    lt_cv_prog_compiler_c_o_F77 \
 
16312
    exclude_expsyms_F77 \
 
16313
    include_expsyms_F77; do
 
16314
 
 
16315
    case $var in
 
16316
    old_archive_cmds_F77 | \
 
16317
    old_archive_from_new_cmds_F77 | \
 
16318
    archive_cmds_F77 | \
 
16319
    archive_expsym_cmds_F77 | \
 
16320
    module_cmds_F77 | \
 
16321
    module_expsym_cmds_F77 | \
 
16322
    old_archive_from_expsyms_cmds_F77 | \
 
16323
    export_symbols_cmds_F77 | \
 
16324
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16325
    postinstall_cmds | postuninstall_cmds | \
 
16326
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16327
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16328
      # Double-quote double-evaled strings.
 
16329
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16330
      ;;
 
16331
    *)
 
16332
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16333
      ;;
 
16334
    esac
 
16335
  done
 
16336
 
 
16337
  case $lt_echo in
 
16338
  *'\$0 --fallback-echo"')
 
16339
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16340
    ;;
 
16341
  esac
 
16342
 
 
16343
cfgfile="$ofile"
 
16344
 
 
16345
  cat <<__EOF__ >> "$cfgfile"
 
16346
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16347
 
 
16348
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16349
 
 
16350
# Shell to use when invoking shell scripts.
 
16351
SHELL=$lt_SHELL
 
16352
 
 
16353
# Whether or not to build shared libraries.
 
16354
build_libtool_libs=$enable_shared
 
16355
 
 
16356
# Whether or not to build static libraries.
 
16357
build_old_libs=$enable_static
 
16358
 
 
16359
# Whether or not to add -lc for building shared libraries.
 
16360
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16361
 
 
16362
# Whether or not to disallow shared libs when runtime libs are static
 
16363
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16364
 
 
16365
# Whether or not to optimize for fast installation.
 
16366
fast_install=$enable_fast_install
 
16367
 
 
16368
# The host system.
 
16369
host_alias=$host_alias
 
16370
host=$host
 
16371
 
 
16372
# An echo program that does not interpret backslashes.
 
16373
echo=$lt_echo
 
16374
 
 
16375
# The archiver.
 
16376
AR=$lt_AR
 
16377
AR_FLAGS=$lt_AR_FLAGS
 
16378
 
 
16379
# A C compiler.
 
16380
LTCC=$lt_LTCC
 
16381
 
 
16382
# A language-specific compiler.
 
16383
CC=$lt_compiler_F77
 
16384
 
 
16385
# Is the compiler the GNU C compiler?
 
16386
with_gcc=$GCC_F77
 
16387
 
 
16388
# An ERE matcher.
 
16389
EGREP=$lt_EGREP
 
16390
 
 
16391
# The linker used to build libraries.
 
16392
LD=$lt_LD_F77
 
16393
 
 
16394
# Whether we need hard or soft links.
 
16395
LN_S=$lt_LN_S
 
16396
 
 
16397
# A BSD-compatible nm program.
 
16398
NM=$lt_NM
 
16399
 
 
16400
# A symbol stripping program
 
16401
STRIP=$lt_STRIP
 
16402
 
 
16403
# Used to examine libraries when file_magic_cmd begins "file"
 
16404
MAGIC_CMD=$MAGIC_CMD
 
16405
 
 
16406
# Used on cygwin: DLL creation program.
 
16407
DLLTOOL="$DLLTOOL"
 
16408
 
 
16409
# Used on cygwin: object dumper.
 
16410
OBJDUMP="$OBJDUMP"
 
16411
 
 
16412
# Used on cygwin: assembler.
 
16413
AS="$AS"
 
16414
 
 
16415
# The name of the directory that contains temporary libtool files.
 
16416
objdir=$objdir
 
16417
 
 
16418
# How to create reloadable object files.
 
16419
reload_flag=$lt_reload_flag
 
16420
reload_cmds=$lt_reload_cmds
 
16421
 
 
16422
# How to pass a linker flag through the compiler.
 
16423
wl=$lt_lt_prog_compiler_wl_F77
 
16424
 
 
16425
# Object file suffix (normally "o").
 
16426
objext="$ac_objext"
 
16427
 
 
16428
# Old archive suffix (normally "a").
 
16429
libext="$libext"
 
16430
 
 
16431
# Shared library suffix (normally ".so").
 
16432
shrext_cmds='$shrext_cmds'
 
16433
 
 
16434
# Executable file suffix (normally "").
 
16435
exeext="$exeext"
 
16436
 
 
16437
# Additional compiler flags for building library objects.
 
16438
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16439
pic_mode=$pic_mode
 
16440
 
 
16441
# What is the maximum length of a command?
 
16442
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16443
 
 
16444
# Does compiler simultaneously support -c and -o options?
 
16445
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16446
 
 
16447
# Must we lock files when doing compilation ?
 
16448
need_locks=$lt_need_locks
 
16449
 
 
16450
# Do we need the lib prefix for modules?
 
16451
need_lib_prefix=$need_lib_prefix
 
16452
 
 
16453
# Do we need a version for libraries?
 
16454
need_version=$need_version
 
16455
 
 
16456
# Whether dlopen is supported.
 
16457
dlopen_support=$enable_dlopen
 
16458
 
 
16459
# Whether dlopen of programs is supported.
 
16460
dlopen_self=$enable_dlopen_self
 
16461
 
 
16462
# Whether dlopen of statically linked programs is supported.
 
16463
dlopen_self_static=$enable_dlopen_self_static
 
16464
 
 
16465
# Compiler flag to prevent dynamic linking.
 
16466
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16467
 
 
16468
# Compiler flag to turn off builtin functions.
 
16469
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16470
 
 
16471
# Compiler flag to allow reflexive dlopens.
 
16472
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16473
 
 
16474
# Compiler flag to generate shared objects directly from archives.
 
16475
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16476
 
 
16477
# Compiler flag to generate thread-safe objects.
 
16478
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16479
 
 
16480
# Library versioning type.
 
16481
version_type=$version_type
 
16482
 
 
16483
# Format of library name prefix.
 
16484
libname_spec=$lt_libname_spec
 
16485
 
 
16486
# List of archive names.  First name is the real one, the rest are links.
 
16487
# The last name is the one that the linker finds with -lNAME.
 
16488
library_names_spec=$lt_library_names_spec
 
16489
 
 
16490
# The coded name of the library, if different from the real name.
 
16491
soname_spec=$lt_soname_spec
 
16492
 
 
16493
# Commands used to build and install an old-style archive.
 
16494
RANLIB=$lt_RANLIB
 
16495
old_archive_cmds=$lt_old_archive_cmds_F77
 
16496
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16497
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16498
 
 
16499
# Create an old-style archive from a shared archive.
 
16500
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16501
 
 
16502
# Create a temporary old-style archive to link instead of a shared archive.
 
16503
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16504
 
 
16505
# Commands used to build and install a shared archive.
 
16506
archive_cmds=$lt_archive_cmds_F77
 
16507
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16508
postinstall_cmds=$lt_postinstall_cmds
 
16509
postuninstall_cmds=$lt_postuninstall_cmds
 
16510
 
 
16511
# Commands used to build a loadable module (assumed same as above if empty)
 
16512
module_cmds=$lt_module_cmds_F77
 
16513
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16514
 
 
16515
# Commands to strip libraries.
 
16516
old_striplib=$lt_old_striplib
 
16517
striplib=$lt_striplib
 
16518
 
 
16519
# Dependencies to place before the objects being linked to create a
 
16520
# shared library.
 
16521
predep_objects=$lt_predep_objects_F77
 
16522
 
 
16523
# Dependencies to place after the objects being linked to create a
 
16524
# shared library.
 
16525
postdep_objects=$lt_postdep_objects_F77
 
16526
 
 
16527
# Dependencies to place before the objects being linked to create a
 
16528
# shared library.
 
16529
predeps=$lt_predeps_F77
 
16530
 
 
16531
# Dependencies to place after the objects being linked to create a
 
16532
# shared library.
 
16533
postdeps=$lt_postdeps_F77
 
16534
 
 
16535
# The library search path used internally by the compiler when linking
 
16536
# a shared library.
 
16537
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16538
 
 
16539
# Method to check whether dependent libraries are shared objects.
 
16540
deplibs_check_method=$lt_deplibs_check_method
 
16541
 
 
16542
# Command to use when deplibs_check_method == file_magic.
 
16543
file_magic_cmd=$lt_file_magic_cmd
 
16544
 
 
16545
# Flag that allows shared libraries with undefined symbols to be built.
 
16546
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16547
 
 
16548
# Flag that forces no undefined symbols.
 
16549
no_undefined_flag=$lt_no_undefined_flag_F77
 
16550
 
 
16551
# Commands used to finish a libtool library installation in a directory.
 
16552
finish_cmds=$lt_finish_cmds
 
16553
 
 
16554
# Same as above, but a single script fragment to be evaled but not shown.
 
16555
finish_eval=$lt_finish_eval
 
16556
 
 
16557
# Take the output of nm and produce a listing of raw symbols and C names.
 
16558
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16559
 
 
16560
# Transform the output of nm in a proper C declaration
 
16561
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16562
 
 
16563
# Transform the output of nm in a C name address pair
 
16564
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16565
 
 
16566
# This is the shared library runtime path variable.
 
16567
runpath_var=$runpath_var
 
16568
 
 
16569
# This is the shared library path variable.
 
16570
shlibpath_var=$shlibpath_var
 
16571
 
 
16572
# Is shlibpath searched before the hard-coded library search path?
 
16573
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16574
 
 
16575
# How to hardcode a shared library path into an executable.
 
16576
hardcode_action=$hardcode_action_F77
 
16577
 
 
16578
# Whether we should hardcode library paths into libraries.
 
16579
hardcode_into_libs=$hardcode_into_libs
 
16580
 
 
16581
# Flag to hardcode \$libdir into a binary during linking.
 
16582
# This must work even if \$libdir does not exist.
 
16583
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16584
 
 
16585
# If ld is used when linking, flag to hardcode \$libdir into
 
16586
# a binary during linking. This must work even if \$libdir does
 
16587
# not exist.
 
16588
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16589
 
 
16590
# Whether we need a single -rpath flag with a separated argument.
 
16591
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16592
 
 
16593
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16594
# resulting binary.
 
16595
hardcode_direct=$hardcode_direct_F77
 
16596
 
 
16597
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16598
# resulting binary.
 
16599
hardcode_minus_L=$hardcode_minus_L_F77
 
16600
 
 
16601
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16602
# the resulting binary.
 
16603
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16604
 
 
16605
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16606
# and all subsequent libraries and executables linked against it.
 
16607
hardcode_automatic=$hardcode_automatic_F77
 
16608
 
 
16609
# Variables whose values should be saved in libtool wrapper scripts and
 
16610
# restored at relink time.
 
16611
variables_saved_for_relink="$variables_saved_for_relink"
 
16612
 
 
16613
# Whether libtool must link a program against all its dependency libraries.
 
16614
link_all_deplibs=$link_all_deplibs_F77
 
16615
 
 
16616
# Compile-time system search path for libraries
 
16617
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16618
 
 
16619
# Run-time system search path for libraries
 
16620
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16621
 
 
16622
# Fix the shell variable \$srcfile for the compiler.
 
16623
fix_srcfile_path="$fix_srcfile_path_F77"
 
16624
 
 
16625
# Set to yes if exported symbols are required.
 
16626
always_export_symbols=$always_export_symbols_F77
 
16627
 
 
16628
# The commands to list exported symbols.
 
16629
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16630
 
 
16631
# The commands to extract the exported symbol list from a shared archive.
 
16632
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16633
 
 
16634
# Symbols that should not be listed in the preloaded symbols.
 
16635
exclude_expsyms=$lt_exclude_expsyms_F77
 
16636
 
 
16637
# Symbols that must always be exported.
 
16638
include_expsyms=$lt_include_expsyms_F77
 
16639
 
 
16640
# ### END LIBTOOL TAG CONFIG: $tagname
 
16641
 
 
16642
__EOF__
 
16643
 
 
16644
 
 
16645
else
 
16646
  # If there is no Makefile yet, we rely on a make rule to execute
 
16647
  # `config.status --recheck' to rerun these tests and create the
 
16648
  # libtool script then.
 
16649
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16650
  if test -f "$ltmain_in"; then
 
16651
    test -f Makefile && make "$ltmain"
 
16652
  fi
 
16653
fi
 
16654
 
 
16655
 
 
16656
ac_ext=c
 
16657
ac_cpp='$CPP $CPPFLAGS'
 
16658
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16659
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16660
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16661
 
 
16662
CC="$lt_save_CC"
 
16663
 
 
16664
        else
 
16665
          tagname=""
 
16666
        fi
 
16667
        ;;
 
16668
 
 
16669
      GCJ)
 
16670
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16671
 
 
16672
 
 
16673
 
 
16674
# Source file extension for Java test sources.
 
16675
ac_ext=java
 
16676
 
 
16677
# Object file extension for compiled Java test sources.
 
16678
objext=o
 
16679
objext_GCJ=$objext
 
16680
 
 
16681
# Code to be used in simple compile tests
 
16682
lt_simple_compile_test_code="class foo {}\n"
 
16683
 
 
16684
# Code to be used in simple link tests
 
16685
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16686
 
 
16687
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16688
 
 
16689
# If no C compiler was specified, use CC.
 
16690
LTCC=${LTCC-"$CC"}
 
16691
 
 
16692
# Allow CC to be a program name with arguments.
 
16693
compiler=$CC
 
16694
 
 
16695
 
 
16696
# Allow CC to be a program name with arguments.
 
16697
lt_save_CC="$CC"
 
16698
CC=${GCJ-"gcj"}
 
16699
compiler=$CC
 
16700
compiler_GCJ=$CC
 
16701
 
 
16702
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16703
archive_cmds_need_lc_GCJ=no
 
16704
 
 
16705
 
 
16706
lt_prog_compiler_no_builtin_flag_GCJ=
 
16707
 
 
16708
if test "$GCC" = yes; then
 
16709
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16710
 
 
16711
 
 
16712
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16713
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16714
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16715
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16716
else
 
16717
  lt_cv_prog_compiler_rtti_exceptions=no
 
16718
  ac_outfile=conftest.$ac_objext
 
16719
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16720
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16721
   # Insert the option either (1) after the last *FLAGS variable, or
 
16722
   # (2) before a word containing "conftest.", or (3) at the end.
 
16723
   # Note that $ac_compile itself does not contain backslashes and begins
 
16724
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16725
   # The option is referenced via a variable to avoid confusing sed.
 
16726
   lt_compile=`echo "$ac_compile" | $SED \
 
16727
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16728
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16729
   -e 's:$: $lt_compiler_flag:'`
 
16730
   (eval echo "\"\$as_me:16730: $lt_compile\"" >&5)
 
16731
   (eval "$lt_compile" 2>conftest.err)
 
16732
   ac_status=$?
 
16733
   cat conftest.err >&5
 
16734
   echo "$as_me:16734: \$? = $ac_status" >&5
 
16735
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16736
     # The compiler can only warn and ignore the option if not recognized
 
16737
     # So say no if there are warnings
 
16738
     if test ! -s conftest.err; then
 
16739
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16740
     fi
 
16741
   fi
 
16742
   $rm conftest*
 
16743
 
 
16744
fi
 
16745
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16746
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16747
 
 
16748
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16749
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16750
else
 
16751
    :
 
16752
fi
 
16753
 
 
16754
fi
 
16755
 
 
16756
lt_prog_compiler_wl_GCJ=
 
16757
lt_prog_compiler_pic_GCJ=
 
16758
lt_prog_compiler_static_GCJ=
 
16759
 
 
16760
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16761
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16762
 
 
16763
  if test "$GCC" = yes; then
 
16764
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16765
    lt_prog_compiler_static_GCJ='-static'
 
16766
 
 
16767
    case $host_os in
 
16768
      aix*)
 
16769
      # All AIX code is PIC.
 
16770
      if test "$host_cpu" = ia64; then
 
16771
        # AIX 5 now supports IA64 processor
 
16772
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16773
      fi
 
16774
      ;;
 
16775
 
 
16776
    amigaos*)
 
16777
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16778
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16779
      # like `-m68040'.
 
16780
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16781
      ;;
 
16782
 
 
16783
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16784
      # PIC is the default for these OSes.
 
16785
      ;;
 
16786
 
 
16787
    mingw* | pw32* | os2*)
 
16788
      # This hack is so that the source file can tell whether it is being
 
16789
      # built for inclusion in a dll (and should export symbols for example).
 
16790
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16791
      ;;
 
16792
 
 
16793
    darwin* | rhapsody*)
 
16794
      # PIC is the default on this platform
 
16795
      # Common symbols not allowed in MH_DYLIB files
 
16796
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16797
      ;;
 
16798
 
 
16799
    msdosdjgpp*)
 
16800
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16801
      # on systems that don't support them.
 
16802
      lt_prog_compiler_can_build_shared_GCJ=no
 
16803
      enable_shared=no
 
16804
      ;;
 
16805
 
 
16806
    sysv4*MP*)
 
16807
      if test -d /usr/nec; then
 
16808
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16809
      fi
 
16810
      ;;
 
16811
 
 
16812
    hpux*)
 
16813
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16814
      # not for PA HP-UX.
 
16815
      case "$host_cpu" in
 
16816
      hppa*64*|ia64*)
 
16817
        # +Z the default
 
16818
        ;;
 
16819
      *)
 
16820
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16821
        ;;
 
16822
      esac
 
16823
      ;;
 
16824
 
 
16825
    *)
 
16826
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16827
      ;;
 
16828
    esac
 
16829
  else
 
16830
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16831
    case $host_os in
 
16832
    aix*)
 
16833
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16834
      if test "$host_cpu" = ia64; then
 
16835
        # AIX 5 now supports IA64 processor
 
16836
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16837
      else
 
16838
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16839
      fi
 
16840
      ;;
 
16841
      darwin*)
 
16842
        # PIC is the default on this platform
 
16843
        # Common symbols not allowed in MH_DYLIB files
 
16844
       case "$cc_basename" in
 
16845
         xlc*)
 
16846
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16847
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16848
         ;;
 
16849
       esac
 
16850
       ;;
 
16851
 
 
16852
    mingw* | pw32* | os2*)
 
16853
      # This hack is so that the source file can tell whether it is being
 
16854
      # built for inclusion in a dll (and should export symbols for example).
 
16855
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16856
      ;;
 
16857
 
 
16858
    hpux9* | hpux10* | hpux11*)
 
16859
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16860
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16861
      # not for PA HP-UX.
 
16862
      case "$host_cpu" in
 
16863
      hppa*64*|ia64*)
 
16864
        # +Z the default
 
16865
        ;;
 
16866
      *)
 
16867
        lt_prog_compiler_pic_GCJ='+Z'
 
16868
        ;;
 
16869
      esac
 
16870
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16871
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16872
      ;;
 
16873
 
 
16874
    irix5* | irix6* | nonstopux*)
 
16875
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16876
      # PIC (with -KPIC) is the default.
 
16877
      lt_prog_compiler_static_GCJ='-non_shared'
 
16878
      ;;
 
16879
 
 
16880
    newsos6)
 
16881
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16882
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16883
      ;;
 
16884
 
 
16885
    linux*)
 
16886
      case $CC in
 
16887
      icc* | ecc*)
 
16888
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16889
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16890
        lt_prog_compiler_static_GCJ='-static'
 
16891
        ;;
 
16892
      ccc*)
 
16893
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16894
        # All Alpha code is PIC.
 
16895
        lt_prog_compiler_static_GCJ='-non_shared'
 
16896
        ;;
 
16897
      esac
 
16898
      ;;
 
16899
 
 
16900
    osf3* | osf4* | osf5*)
 
16901
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16902
      # All OSF/1 code is PIC.
 
16903
      lt_prog_compiler_static_GCJ='-non_shared'
 
16904
      ;;
 
16905
 
 
16906
    sco3.2v5*)
 
16907
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16908
      lt_prog_compiler_static_GCJ='-dn'
 
16909
      ;;
 
16910
 
 
16911
    solaris*)
 
16912
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16913
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16914
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16915
      ;;
 
16916
 
 
16917
    sunos4*)
 
16918
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16919
      lt_prog_compiler_pic_GCJ='-PIC'
 
16920
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16921
      ;;
 
16922
 
 
16923
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16924
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16925
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16926
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16927
      ;;
 
16928
 
 
16929
    sysv4*MP*)
 
16930
      if test -d /usr/nec ;then
 
16931
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16932
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16933
      fi
 
16934
      ;;
 
16935
 
 
16936
    uts4*)
 
16937
      lt_prog_compiler_pic_GCJ='-pic'
 
16938
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16939
      ;;
 
16940
 
 
16941
    *)
 
16942
      lt_prog_compiler_can_build_shared_GCJ=no
 
16943
      ;;
 
16944
    esac
 
16945
  fi
 
16946
 
 
16947
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16948
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16949
 
 
16950
#
 
16951
# Check to make sure the PIC flag actually works.
 
16952
#
 
16953
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16954
 
 
16955
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16956
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16957
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16958
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16959
else
 
16960
  lt_prog_compiler_pic_works_GCJ=no
 
16961
  ac_outfile=conftest.$ac_objext
 
16962
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16963
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16964
   # Insert the option either (1) after the last *FLAGS variable, or
 
16965
   # (2) before a word containing "conftest.", or (3) at the end.
 
16966
   # Note that $ac_compile itself does not contain backslashes and begins
 
16967
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16968
   # The option is referenced via a variable to avoid confusing sed.
 
16969
   lt_compile=`echo "$ac_compile" | $SED \
 
16970
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16971
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16972
   -e 's:$: $lt_compiler_flag:'`
 
16973
   (eval echo "\"\$as_me:16973: $lt_compile\"" >&5)
 
16974
   (eval "$lt_compile" 2>conftest.err)
 
16975
   ac_status=$?
 
16976
   cat conftest.err >&5
 
16977
   echo "$as_me:16977: \$? = $ac_status" >&5
 
16978
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16979
     # The compiler can only warn and ignore the option if not recognized
 
16980
     # So say no if there are warnings
 
16981
     if test ! -s conftest.err; then
 
16982
       lt_prog_compiler_pic_works_GCJ=yes
 
16983
     fi
 
16984
   fi
 
16985
   $rm conftest*
 
16986
 
 
16987
fi
 
16988
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16989
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16990
 
 
16991
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16992
    case $lt_prog_compiler_pic_GCJ in
 
16993
     "" | " "*) ;;
 
16994
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16995
     esac
 
16996
else
 
16997
    lt_prog_compiler_pic_GCJ=
 
16998
     lt_prog_compiler_can_build_shared_GCJ=no
 
16999
fi
 
17000
 
 
17001
fi
 
17002
case "$host_os" in
 
17003
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17004
  *djgpp*)
 
17005
    lt_prog_compiler_pic_GCJ=
 
17006
    ;;
 
17007
  *)
 
17008
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17009
    ;;
 
17010
esac
 
17011
 
 
17012
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17013
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
17014
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17016
else
 
17017
  lt_cv_prog_compiler_c_o_GCJ=no
 
17018
   $rm -r conftest 2>/dev/null
 
17019
   mkdir conftest
 
17020
   cd conftest
 
17021
   mkdir out
 
17022
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17023
 
 
17024
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17025
   # Insert the option either (1) after the last *FLAGS variable, or
 
17026
   # (2) before a word containing "conftest.", or (3) at the end.
 
17027
   # Note that $ac_compile itself does not contain backslashes and begins
 
17028
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17029
   lt_compile=`echo "$ac_compile" | $SED \
 
17030
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17031
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17032
   -e 's:$: $lt_compiler_flag:'`
 
17033
   (eval echo "\"\$as_me:17033: $lt_compile\"" >&5)
 
17034
   (eval "$lt_compile" 2>out/conftest.err)
 
17035
   ac_status=$?
 
17036
   cat out/conftest.err >&5
 
17037
   echo "$as_me:17037: \$? = $ac_status" >&5
 
17038
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17039
   then
 
17040
     # The compiler can only warn and ignore the option if not recognized
 
17041
     # So say no if there are warnings
 
17042
     if test ! -s out/conftest.err; then
 
17043
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17044
     fi
 
17045
   fi
 
17046
   chmod u+w .
 
17047
   $rm conftest*
 
17048
   # SGI C++ compiler will create directory out/ii_files/ for
 
17049
   # template instantiation
 
17050
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17051
   $rm out/* && rmdir out
 
17052
   cd ..
 
17053
   rmdir conftest
 
17054
   $rm conftest*
 
17055
 
 
17056
fi
 
17057
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17058
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
17059
 
 
17060
 
 
17061
hard_links="nottested"
 
17062
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17063
  # do not overwrite the value of need_locks provided by the user
 
17064
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17065
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
17066
  hard_links=yes
 
17067
  $rm conftest*
 
17068
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17069
  touch conftest.a
 
17070
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17071
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17072
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
17073
echo "${ECHO_T}$hard_links" >&6
 
17074
  if test "$hard_links" = no; then
 
17075
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17076
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17077
    need_locks=warn
 
17078
  fi
 
17079
else
 
17080
  need_locks=no
 
17081
fi
 
17082
 
 
17083
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17084
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
17085
 
 
17086
  runpath_var=
 
17087
  allow_undefined_flag_GCJ=
 
17088
  enable_shared_with_static_runtimes_GCJ=no
 
17089
  archive_cmds_GCJ=
 
17090
  archive_expsym_cmds_GCJ=
 
17091
  old_archive_From_new_cmds_GCJ=
 
17092
  old_archive_from_expsyms_cmds_GCJ=
 
17093
  export_dynamic_flag_spec_GCJ=
 
17094
  whole_archive_flag_spec_GCJ=
 
17095
  thread_safe_flag_spec_GCJ=
 
17096
  hardcode_libdir_flag_spec_GCJ=
 
17097
  hardcode_libdir_flag_spec_ld_GCJ=
 
17098
  hardcode_libdir_separator_GCJ=
 
17099
  hardcode_direct_GCJ=no
 
17100
  hardcode_minus_L_GCJ=no
 
17101
  hardcode_shlibpath_var_GCJ=unsupported
 
17102
  link_all_deplibs_GCJ=unknown
 
17103
  hardcode_automatic_GCJ=no
 
17104
  module_cmds_GCJ=
 
17105
  module_expsym_cmds_GCJ=
 
17106
  always_export_symbols_GCJ=no
 
17107
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17108
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17109
  # included in the symbol list
 
17110
  include_expsyms_GCJ=
 
17111
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17112
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17113
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17114
  # as well as any symbol that contains `d'.
 
17115
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17116
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17117
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17118
  # the symbol is explicitly referenced.  Since portable code cannot
 
17119
  # rely on this symbol name, it's probably fine to never include it in
 
17120
  # preloaded symbol tables.
 
17121
  extract_expsyms_cmds=
 
17122
 
 
17123
  case $host_os in
 
17124
  cygwin* | mingw* | pw32*)
 
17125
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17126
    # When not using gcc, we currently assume that we are using
 
17127
    # Microsoft Visual C++.
 
17128
    if test "$GCC" != yes; then
 
17129
      with_gnu_ld=no
 
17130
    fi
 
17131
    ;;
 
17132
  openbsd*)
 
17133
    with_gnu_ld=no
 
17134
    ;;
 
17135
  esac
 
17136
 
 
17137
  ld_shlibs_GCJ=yes
 
17138
  if test "$with_gnu_ld" = yes; then
 
17139
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17140
    wlarc='${wl}'
 
17141
 
 
17142
    # See if GNU ld supports shared libraries.
 
17143
    case $host_os in
 
17144
    aix3* | aix4* | aix5*)
 
17145
      # On AIX/PPC, the GNU linker is very broken
 
17146
      if test "$host_cpu" != ia64; then
 
17147
        ld_shlibs_GCJ=no
 
17148
        cat <<EOF 1>&2
 
17149
 
 
17150
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17151
*** to be unable to reliably create shared libraries on AIX.
 
17152
*** Therefore, libtool is disabling shared libraries support.  If you
 
17153
*** really care for shared libraries, you may want to modify your PATH
 
17154
*** so that a non-GNU linker is found, and then restart.
 
17155
 
 
17156
EOF
 
17157
      fi
 
17158
      ;;
 
17159
 
 
17160
    amigaos*)
 
17161
      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)'
 
17162
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17163
      hardcode_minus_L_GCJ=yes
 
17164
 
 
17165
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17166
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17167
      # to version 4, is to share data among multiple programs linked
 
17168
      # with the same dynamic library.  Since this doesn't match the
 
17169
      # behavior of shared libraries on other platforms, we can't use
 
17170
      # them.
 
17171
      ld_shlibs_GCJ=no
 
17172
      ;;
 
17173
 
 
17174
    beos*)
 
17175
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17176
        allow_undefined_flag_GCJ=unsupported
 
17177
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17178
        # support --undefined.  This deserves some investigation.  FIXME
 
17179
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17180
      else
 
17181
        ld_shlibs_GCJ=no
 
17182
      fi
 
17183
      ;;
 
17184
 
 
17185
    cygwin* | mingw* | pw32*)
 
17186
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17187
      # as there is no search path for DLLs.
 
17188
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17189
      allow_undefined_flag_GCJ=unsupported
 
17190
      always_export_symbols_GCJ=no
 
17191
      enable_shared_with_static_runtimes_GCJ=yes
 
17192
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17193
 
 
17194
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17195
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17196
        # If the export-symbols file already is a .def file (1st line
 
17197
        # is EXPORTS), use it as is; otherwise, prepend...
 
17198
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17199
          cp $export_symbols $output_objdir/$soname.def;
 
17200
        else
 
17201
          echo EXPORTS > $output_objdir/$soname.def;
 
17202
          cat $export_symbols >> $output_objdir/$soname.def;
 
17203
        fi~
 
17204
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
17205
      else
 
17206
        ld_shlibs=no
 
17207
      fi
 
17208
      ;;
 
17209
 
 
17210
    netbsd*)
 
17211
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17212
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17213
        wlarc=
 
17214
      else
 
17215
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17216
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17217
      fi
 
17218
      ;;
 
17219
 
 
17220
    solaris* | sysv5*)
 
17221
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17222
        ld_shlibs_GCJ=no
 
17223
        cat <<EOF 1>&2
 
17224
 
 
17225
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17226
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17227
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17228
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17229
*** your PATH or compiler configuration so that the native linker is
 
17230
*** used, and then restart.
 
17231
 
 
17232
EOF
 
17233
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17234
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17235
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17236
      else
 
17237
        ld_shlibs_GCJ=no
 
17238
      fi
 
17239
      ;;
 
17240
 
 
17241
    sunos4*)
 
17242
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17243
      wlarc=
 
17244
      hardcode_direct_GCJ=yes
 
17245
      hardcode_shlibpath_var_GCJ=no
 
17246
      ;;
 
17247
 
 
17248
  linux*)
 
17249
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17250
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17251
        archive_cmds_GCJ="$tmp_archive_cmds"
 
17252
      supports_anon_versioning=no
 
17253
      case `$LD -v 2>/dev/null` in
 
17254
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17255
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17256
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17257
        *\ 2.11.*) ;; # other 2.11 versions
 
17258
        *) supports_anon_versioning=yes ;;
 
17259
      esac
 
17260
      if test $supports_anon_versioning = yes; then
 
17261
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17262
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17263
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
17264
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17265
      else
 
17266
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
17267
      fi
 
17268
    else
 
17269
      ld_shlibs_GCJ=no
 
17270
    fi
 
17271
    ;;
 
17272
 
 
17273
    *)
 
17274
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17275
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17276
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17277
      else
 
17278
        ld_shlibs_GCJ=no
 
17279
      fi
 
17280
      ;;
 
17281
    esac
 
17282
 
 
17283
    if test "$ld_shlibs_GCJ" = yes; then
 
17284
      runpath_var=LD_RUN_PATH
 
17285
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17286
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17287
      # ancient GNU ld didn't support --whole-archive et. al.
 
17288
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17289
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17290
      else
 
17291
        whole_archive_flag_spec_GCJ=
 
17292
      fi
 
17293
    fi
 
17294
  else
 
17295
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17296
    case $host_os in
 
17297
    aix3*)
 
17298
      allow_undefined_flag_GCJ=unsupported
 
17299
      always_export_symbols_GCJ=yes
 
17300
      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'
 
17301
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17302
      # are no directories specified by -L.
 
17303
      hardcode_minus_L_GCJ=yes
 
17304
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17305
        # Neither direct hardcoding nor static linking is supported with a
 
17306
        # broken collect2.
 
17307
        hardcode_direct_GCJ=unsupported
 
17308
      fi
 
17309
      ;;
 
17310
 
 
17311
    aix4* | aix5*)
 
17312
      if test "$host_cpu" = ia64; then
 
17313
        # On IA64, the linker does run time linking by default, so we don't
 
17314
        # have to do anything special.
 
17315
        aix_use_runtimelinking=no
 
17316
        exp_sym_flag='-Bexport'
 
17317
        no_entry_flag=""
 
17318
      else
 
17319
        # If we're using GNU nm, then we don't want the "-C" option.
 
17320
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17321
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17322
          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'
 
17323
        else
 
17324
          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'
 
17325
        fi
 
17326
        aix_use_runtimelinking=no
 
17327
 
 
17328
        # Test if we are trying to use run time linking or normal
 
17329
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17330
        # need to do runtime linking.
 
17331
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17332
          for ld_flag in $LDFLAGS; do
 
17333
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17334
            aix_use_runtimelinking=yes
 
17335
            break
 
17336
          fi
 
17337
          done
 
17338
        esac
 
17339
 
 
17340
        exp_sym_flag='-bexport'
 
17341
        no_entry_flag='-bnoentry'
 
17342
      fi
 
17343
 
 
17344
      # When large executables or shared objects are built, AIX ld can
 
17345
      # have problems creating the table of contents.  If linking a library
 
17346
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17347
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17348
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17349
 
 
17350
      archive_cmds_GCJ=''
 
17351
      hardcode_direct_GCJ=yes
 
17352
      hardcode_libdir_separator_GCJ=':'
 
17353
      link_all_deplibs_GCJ=yes
 
17354
 
 
17355
      if test "$GCC" = yes; then
 
17356
        case $host_os in aix4.012|aix4.012.*)
 
17357
        # We only want to do this on AIX 4.2 and lower, the check
 
17358
        # below for broken collect2 doesn't work under 4.3+
 
17359
          collect2name=`${CC} -print-prog-name=collect2`
 
17360
          if test -f "$collect2name" && \
 
17361
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17362
          then
 
17363
          # We have reworked collect2
 
17364
          hardcode_direct_GCJ=yes
 
17365
          else
 
17366
          # We have old collect2
 
17367
          hardcode_direct_GCJ=unsupported
 
17368
          # It fails to find uninstalled libraries when the uninstalled
 
17369
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17370
          # to unsupported forces relinking
 
17371
          hardcode_minus_L_GCJ=yes
 
17372
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17373
          hardcode_libdir_separator_GCJ=
 
17374
          fi
 
17375
        esac
 
17376
        shared_flag='-shared'
 
17377
      else
 
17378
        # not using gcc
 
17379
        if test "$host_cpu" = ia64; then
 
17380
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17381
        # chokes on -Wl,-G. The following line is correct:
 
17382
          shared_flag='-G'
 
17383
        else
 
17384
        if test "$aix_use_runtimelinking" = yes; then
 
17385
            shared_flag='${wl}-G'
 
17386
          else
 
17387
            shared_flag='${wl}-bM:SRE'
 
17388
        fi
 
17389
        fi
 
17390
      fi
 
17391
 
 
17392
      # It seems that -bexpall does not export symbols beginning with
 
17393
      # underscore (_), so it is better to generate a list of symbols to export.
 
17394
      always_export_symbols_GCJ=yes
 
17395
      if test "$aix_use_runtimelinking" = yes; then
 
17396
        # Warning - without using the other runtime loading flags (-brtl),
 
17397
        # -berok will link without error, but may produce a broken library.
 
17398
        allow_undefined_flag_GCJ='-berok'
 
17399
       # Determine the default libpath from the value encoded in an empty executable.
 
17400
       cat >conftest.$ac_ext <<_ACEOF
 
17401
/* confdefs.h.  */
 
17402
_ACEOF
 
17403
cat confdefs.h >>conftest.$ac_ext
 
17404
cat >>conftest.$ac_ext <<_ACEOF
 
17405
/* end confdefs.h.  */
 
17406
 
 
17407
int
 
17408
main ()
 
17409
{
 
17410
 
 
17411
  ;
 
17412
  return 0;
 
17413
}
 
17414
_ACEOF
 
17415
rm -f conftest.$ac_objext conftest$ac_exeext
 
17416
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17417
  (eval $ac_link) 2>conftest.er1
 
17418
  ac_status=$?
 
17419
  grep -v '^ *+' conftest.er1 >conftest.err
 
17420
  rm -f conftest.er1
 
17421
  cat conftest.err >&5
 
17422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17423
  (exit $ac_status); } &&
 
17424
         { ac_try='test -z "$ac_c_werror_flag"
 
17425
                         || test ! -s conftest.err'
 
17426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17427
  (eval $ac_try) 2>&5
 
17428
  ac_status=$?
 
17429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17430
  (exit $ac_status); }; } &&
 
17431
         { ac_try='test -s conftest$ac_exeext'
 
17432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17433
  (eval $ac_try) 2>&5
 
17434
  ac_status=$?
 
17435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17436
  (exit $ac_status); }; }; then
 
17437
 
 
17438
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17439
}'`
 
17440
# Check for a 64-bit object if we didn't find anything.
 
17441
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; }
 
17442
}'`; fi
 
17443
else
 
17444
  echo "$as_me: failed program was:" >&5
 
17445
sed 's/^/| /' conftest.$ac_ext >&5
 
17446
 
 
17447
fi
 
17448
rm -f conftest.err conftest.$ac_objext \
 
17449
      conftest$ac_exeext conftest.$ac_ext
 
17450
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17451
 
 
17452
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17453
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17454
       else
 
17455
        if test "$host_cpu" = ia64; then
 
17456
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17457
          allow_undefined_flag_GCJ="-z nodefs"
 
17458
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
17459
        else
 
17460
         # Determine the default libpath from the value encoded in an empty executable.
 
17461
         cat >conftest.$ac_ext <<_ACEOF
 
17462
/* confdefs.h.  */
 
17463
_ACEOF
 
17464
cat confdefs.h >>conftest.$ac_ext
 
17465
cat >>conftest.$ac_ext <<_ACEOF
 
17466
/* end confdefs.h.  */
 
17467
 
 
17468
int
 
17469
main ()
 
17470
{
 
17471
 
 
17472
  ;
 
17473
  return 0;
 
17474
}
 
17475
_ACEOF
 
17476
rm -f conftest.$ac_objext conftest$ac_exeext
 
17477
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17478
  (eval $ac_link) 2>conftest.er1
 
17479
  ac_status=$?
 
17480
  grep -v '^ *+' conftest.er1 >conftest.err
 
17481
  rm -f conftest.er1
 
17482
  cat conftest.err >&5
 
17483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17484
  (exit $ac_status); } &&
 
17485
         { ac_try='test -z "$ac_c_werror_flag"
 
17486
                         || test ! -s conftest.err'
 
17487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17488
  (eval $ac_try) 2>&5
 
17489
  ac_status=$?
 
17490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17491
  (exit $ac_status); }; } &&
 
17492
         { ac_try='test -s conftest$ac_exeext'
 
17493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17494
  (eval $ac_try) 2>&5
 
17495
  ac_status=$?
 
17496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17497
  (exit $ac_status); }; }; then
 
17498
 
 
17499
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17500
}'`
 
17501
# Check for a 64-bit object if we didn't find anything.
 
17502
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; }
 
17503
}'`; fi
 
17504
else
 
17505
  echo "$as_me: failed program was:" >&5
 
17506
sed 's/^/| /' conftest.$ac_ext >&5
 
17507
 
 
17508
fi
 
17509
rm -f conftest.err conftest.$ac_objext \
 
17510
      conftest$ac_exeext conftest.$ac_ext
 
17511
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17512
 
 
17513
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17514
          # Warning - without using the other run time loading flags,
 
17515
          # -berok will link without error, but may produce a broken library.
 
17516
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17517
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17518
          # -bexpall does not export symbols beginning with underscore (_)
 
17519
          always_export_symbols_GCJ=yes
 
17520
          # Exported symbols can be pulled into shared objects from archives
 
17521
          whole_archive_flag_spec_GCJ=' '
 
17522
          archive_cmds_need_lc_GCJ=yes
 
17523
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17524
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17525
        fi
 
17526
      fi
 
17527
      ;;
 
17528
 
 
17529
    amigaos*)
 
17530
      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)'
 
17531
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17532
      hardcode_minus_L_GCJ=yes
 
17533
      # see comment about different semantics on the GNU ld section
 
17534
      ld_shlibs_GCJ=no
 
17535
      ;;
 
17536
 
 
17537
    bsdi[45]*)
 
17538
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17539
      ;;
 
17540
 
 
17541
    cygwin* | mingw* | pw32*)
 
17542
      # When not using gcc, we currently assume that we are using
 
17543
      # Microsoft Visual C++.
 
17544
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17545
      # no search path for DLLs.
 
17546
      hardcode_libdir_flag_spec_GCJ=' '
 
17547
      allow_undefined_flag_GCJ=unsupported
 
17548
      # Tell ltmain to make .lib files, not .a files.
 
17549
      libext=lib
 
17550
      # Tell ltmain to make .dll files, not .so files.
 
17551
      shrext_cmds=".dll"
 
17552
      # FIXME: Setting linknames here is a bad hack.
 
17553
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17554
      # The linker will automatically build a .lib file if we build a DLL.
 
17555
      old_archive_From_new_cmds_GCJ='true'
 
17556
      # FIXME: Should let the user specify the lib program.
 
17557
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17558
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17559
      enable_shared_with_static_runtimes_GCJ=yes
 
17560
      ;;
 
17561
 
 
17562
    darwin* | rhapsody*)
 
17563
      case "$host_os" in
 
17564
        rhapsody* | darwin1.[012])
 
17565
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17566
         ;;
 
17567
       *) # Darwin 1.3 on
 
17568
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17569
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17570
         else
 
17571
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17572
             10.[012])
 
17573
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17574
               ;;
 
17575
             10.*)
 
17576
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17577
               ;;
 
17578
           esac
 
17579
         fi
 
17580
         ;;
 
17581
      esac
 
17582
      archive_cmds_need_lc_GCJ=no
 
17583
      hardcode_direct_GCJ=no
 
17584
      hardcode_automatic_GCJ=yes
 
17585
      hardcode_shlibpath_var_GCJ=unsupported
 
17586
      whole_archive_flag_spec_GCJ=''
 
17587
      link_all_deplibs_GCJ=yes
 
17588
    if test "$GCC" = yes ; then
 
17589
        output_verbose_link_cmd='echo'
 
17590
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17591
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17592
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
17593
      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}'
 
17594
      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}'
 
17595
    else
 
17596
      case "$cc_basename" in
 
17597
        xlc*)
 
17598
         output_verbose_link_cmd='echo'
 
17599
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17600
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17601
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
17602
         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}'
 
17603
          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}'
 
17604
          ;;
 
17605
       *)
 
17606
         ld_shlibs_GCJ=no
 
17607
          ;;
 
17608
      esac
 
17609
    fi
 
17610
      ;;
 
17611
 
 
17612
    dgux*)
 
17613
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17614
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17615
      hardcode_shlibpath_var_GCJ=no
 
17616
      ;;
 
17617
 
 
17618
    freebsd1*)
 
17619
      ld_shlibs_GCJ=no
 
17620
      ;;
 
17621
 
 
17622
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17623
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17624
    # does not break anything, and helps significantly (at the cost of a little
 
17625
    # extra space).
 
17626
    freebsd2.2*)
 
17627
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17628
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17629
      hardcode_direct_GCJ=yes
 
17630
      hardcode_shlibpath_var_GCJ=no
 
17631
      ;;
 
17632
 
 
17633
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17634
    freebsd2*)
 
17635
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17636
      hardcode_direct_GCJ=yes
 
17637
      hardcode_minus_L_GCJ=yes
 
17638
      hardcode_shlibpath_var_GCJ=no
 
17639
      ;;
 
17640
 
 
17641
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17642
    freebsd* | kfreebsd*-gnu)
 
17643
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17644
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17645
      hardcode_direct_GCJ=yes
 
17646
      hardcode_shlibpath_var_GCJ=no
 
17647
      ;;
 
17648
 
 
17649
    hpux9*)
 
17650
      if test "$GCC" = yes; then
 
17651
        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'
 
17652
      else
 
17653
        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'
 
17654
      fi
 
17655
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17656
      hardcode_libdir_separator_GCJ=:
 
17657
      hardcode_direct_GCJ=yes
 
17658
 
 
17659
      # hardcode_minus_L: Not really in the search PATH,
 
17660
      # but as the default location of the library.
 
17661
      hardcode_minus_L_GCJ=yes
 
17662
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17663
      ;;
 
17664
 
 
17665
    hpux10* | hpux11*)
 
17666
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17667
        case "$host_cpu" in
 
17668
        hppa*64*|ia64*)
 
17669
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17670
          ;;
 
17671
        *)
 
17672
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17673
          ;;
 
17674
        esac
 
17675
      else
 
17676
        case "$host_cpu" in
 
17677
        hppa*64*|ia64*)
 
17678
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17679
          ;;
 
17680
        *)
 
17681
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17682
          ;;
 
17683
        esac
 
17684
      fi
 
17685
      if test "$with_gnu_ld" = no; then
 
17686
        case "$host_cpu" in
 
17687
        hppa*64*)
 
17688
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17689
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17690
          hardcode_libdir_separator_GCJ=:
 
17691
          hardcode_direct_GCJ=no
 
17692
          hardcode_shlibpath_var_GCJ=no
 
17693
          ;;
 
17694
        ia64*)
 
17695
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17696
          hardcode_direct_GCJ=no
 
17697
          hardcode_shlibpath_var_GCJ=no
 
17698
 
 
17699
          # hardcode_minus_L: Not really in the search PATH,
 
17700
          # but as the default location of the library.
 
17701
          hardcode_minus_L_GCJ=yes
 
17702
          ;;
 
17703
        *)
 
17704
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17705
          hardcode_libdir_separator_GCJ=:
 
17706
          hardcode_direct_GCJ=yes
 
17707
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17708
 
 
17709
          # hardcode_minus_L: Not really in the search PATH,
 
17710
          # but as the default location of the library.
 
17711
          hardcode_minus_L_GCJ=yes
 
17712
          ;;
 
17713
        esac
 
17714
      fi
 
17715
      ;;
 
17716
 
 
17717
    irix5* | irix6* | nonstopux*)
 
17718
      if test "$GCC" = yes; then
 
17719
        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'
 
17720
      else
 
17721
        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'
 
17722
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17723
      fi
 
17724
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17725
      hardcode_libdir_separator_GCJ=:
 
17726
      link_all_deplibs_GCJ=yes
 
17727
      ;;
 
17728
 
 
17729
    netbsd*)
 
17730
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17731
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17732
      else
 
17733
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17734
      fi
 
17735
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17736
      hardcode_direct_GCJ=yes
 
17737
      hardcode_shlibpath_var_GCJ=no
 
17738
      ;;
 
17739
 
 
17740
    newsos6)
 
17741
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17742
      hardcode_direct_GCJ=yes
 
17743
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17744
      hardcode_libdir_separator_GCJ=:
 
17745
      hardcode_shlibpath_var_GCJ=no
 
17746
      ;;
 
17747
 
 
17748
    openbsd*)
 
17749
      hardcode_direct_GCJ=yes
 
17750
      hardcode_shlibpath_var_GCJ=no
 
17751
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17752
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17753
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17754
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17755
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17756
      else
 
17757
       case $host_os in
 
17758
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17759
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17760
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17761
           ;;
 
17762
         *)
 
17763
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17764
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17765
           ;;
 
17766
       esac
 
17767
      fi
 
17768
      ;;
 
17769
 
 
17770
    os2*)
 
17771
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17772
      hardcode_minus_L_GCJ=yes
 
17773
      allow_undefined_flag_GCJ=unsupported
 
17774
      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'
 
17775
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17776
      ;;
 
17777
 
 
17778
    osf3*)
 
17779
      if test "$GCC" = yes; then
 
17780
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17781
        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'
 
17782
      else
 
17783
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17784
        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'
 
17785
      fi
 
17786
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17787
      hardcode_libdir_separator_GCJ=:
 
17788
      ;;
 
17789
 
 
17790
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17791
      if test "$GCC" = yes; then
 
17792
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17793
        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'
 
17794
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17795
      else
 
17796
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17797
        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'
 
17798
        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~
 
17799
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
17800
 
 
17801
        # Both c and cxx compiler support -rpath directly
 
17802
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17803
      fi
 
17804
      hardcode_libdir_separator_GCJ=:
 
17805
      ;;
 
17806
 
 
17807
    sco3.2v5*)
 
17808
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17809
      hardcode_shlibpath_var_GCJ=no
 
17810
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17811
      runpath_var=LD_RUN_PATH
 
17812
      hardcode_runpath_var=yes
 
17813
      ;;
 
17814
 
 
17815
    solaris*)
 
17816
      no_undefined_flag_GCJ=' -z text'
 
17817
      if test "$GCC" = yes; then
 
17818
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17819
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17820
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17821
      else
 
17822
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17823
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17824
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17825
      fi
 
17826
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17827
      hardcode_shlibpath_var_GCJ=no
 
17828
      case $host_os in
 
17829
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17830
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17831
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17832
      esac
 
17833
      link_all_deplibs_GCJ=yes
 
17834
      ;;
 
17835
 
 
17836
    sunos4*)
 
17837
      if test "x$host_vendor" = xsequent; then
 
17838
        # Use $CC to link under sequent, because it throws in some extra .o
 
17839
        # files that make .init and .fini sections work.
 
17840
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17841
      else
 
17842
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17843
      fi
 
17844
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17845
      hardcode_direct_GCJ=yes
 
17846
      hardcode_minus_L_GCJ=yes
 
17847
      hardcode_shlibpath_var_GCJ=no
 
17848
      ;;
 
17849
 
 
17850
    sysv4)
 
17851
      case $host_vendor in
 
17852
        sni)
 
17853
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17854
          hardcode_direct_GCJ=yes # is this really true???
 
17855
        ;;
 
17856
        siemens)
 
17857
          ## LD is ld it makes a PLAMLIB
 
17858
          ## CC just makes a GrossModule.
 
17859
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17860
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17861
          hardcode_direct_GCJ=no
 
17862
        ;;
 
17863
        motorola)
 
17864
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17865
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17866
        ;;
 
17867
      esac
 
17868
      runpath_var='LD_RUN_PATH'
 
17869
      hardcode_shlibpath_var_GCJ=no
 
17870
      ;;
 
17871
 
 
17872
    sysv4.3*)
 
17873
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17874
      hardcode_shlibpath_var_GCJ=no
 
17875
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17876
      ;;
 
17877
 
 
17878
    sysv4*MP*)
 
17879
      if test -d /usr/nec; then
 
17880
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17881
        hardcode_shlibpath_var_GCJ=no
 
17882
        runpath_var=LD_RUN_PATH
 
17883
        hardcode_runpath_var=yes
 
17884
        ld_shlibs_GCJ=yes
 
17885
      fi
 
17886
      ;;
 
17887
 
 
17888
    sysv4.2uw2*)
 
17889
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17890
      hardcode_direct_GCJ=yes
 
17891
      hardcode_minus_L_GCJ=no
 
17892
      hardcode_shlibpath_var_GCJ=no
 
17893
      hardcode_runpath_var=yes
 
17894
      runpath_var=LD_RUN_PATH
 
17895
      ;;
 
17896
 
 
17897
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17898
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17899
      if test "$GCC" = yes; then
 
17900
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17901
      else
 
17902
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17903
      fi
 
17904
      runpath_var='LD_RUN_PATH'
 
17905
      hardcode_shlibpath_var_GCJ=no
 
17906
      ;;
 
17907
 
 
17908
    sysv5*)
 
17909
      no_undefined_flag_GCJ=' -z text'
 
17910
      # $CC -shared without GNU ld will not create a library from C++
 
17911
      # object files and a static libstdc++, better avoid it by now
 
17912
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17913
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17914
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17915
      hardcode_libdir_flag_spec_GCJ=
 
17916
      hardcode_shlibpath_var_GCJ=no
 
17917
      runpath_var='LD_RUN_PATH'
 
17918
      ;;
 
17919
 
 
17920
    uts4*)
 
17921
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17922
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17923
      hardcode_shlibpath_var_GCJ=no
 
17924
      ;;
 
17925
 
 
17926
    *)
 
17927
      ld_shlibs_GCJ=no
 
17928
      ;;
 
17929
    esac
 
17930
  fi
 
17931
 
 
17932
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17933
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17934
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17935
 
 
17936
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17937
if test "$GCC" = yes; then
 
17938
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17939
fi
 
17940
 
 
17941
#
 
17942
# Do we need to explicitly link libc?
 
17943
#
 
17944
case "x$archive_cmds_need_lc_GCJ" in
 
17945
x|xyes)
 
17946
  # Assume -lc should be added
 
17947
  archive_cmds_need_lc_GCJ=yes
 
17948
 
 
17949
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17950
    case $archive_cmds_GCJ in
 
17951
    *'~'*)
 
17952
      # FIXME: we may have to deal with multi-command sequences.
 
17953
      ;;
 
17954
    '$CC '*)
 
17955
      # Test whether the compiler implicitly links with -lc since on some
 
17956
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17957
      # to ld, don't add -lc before -lgcc.
 
17958
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17959
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17960
      $rm conftest*
 
17961
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17962
 
 
17963
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17964
  (eval $ac_compile) 2>&5
 
17965
  ac_status=$?
 
17966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17967
  (exit $ac_status); } 2>conftest.err; then
 
17968
        soname=conftest
 
17969
        lib=conftest
 
17970
        libobjs=conftest.$ac_objext
 
17971
        deplibs=
 
17972
        wl=$lt_prog_compiler_wl_GCJ
 
17973
        compiler_flags=-v
 
17974
        linker_flags=-v
 
17975
        verstring=
 
17976
        output_objdir=.
 
17977
        libname=conftest
 
17978
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17979
        allow_undefined_flag_GCJ=
 
17980
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17981
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17982
  ac_status=$?
 
17983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17984
  (exit $ac_status); }
 
17985
        then
 
17986
          archive_cmds_need_lc_GCJ=no
 
17987
        else
 
17988
          archive_cmds_need_lc_GCJ=yes
 
17989
        fi
 
17990
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17991
      else
 
17992
        cat conftest.err 1>&5
 
17993
      fi
 
17994
      $rm conftest*
 
17995
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17996
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17997
      ;;
 
17998
    esac
 
17999
  fi
 
18000
  ;;
 
18001
esac
 
18002
 
 
18003
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18004
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18005
library_names_spec=
 
18006
libname_spec='lib$name'
 
18007
soname_spec=
 
18008
shrext_cmds=".so"
 
18009
postinstall_cmds=
 
18010
postuninstall_cmds=
 
18011
finish_cmds=
 
18012
finish_eval=
 
18013
shlibpath_var=
 
18014
shlibpath_overrides_runpath=unknown
 
18015
version_type=none
 
18016
dynamic_linker="$host_os ld.so"
 
18017
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18018
if test "$GCC" = yes; then
 
18019
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18020
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18021
    # if the path contains ";" then we assume it to be the separator
 
18022
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18023
    # assumed that no part of a normal pathname contains ";" but that should
 
18024
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18025
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18026
  else
 
18027
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18028
  fi
 
18029
else
 
18030
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18031
fi
 
18032
need_lib_prefix=unknown
 
18033
hardcode_into_libs=no
 
18034
 
 
18035
# when you set need_version to no, make sure it does not cause -set_version
 
18036
# flags to be left without arguments
 
18037
need_version=unknown
 
18038
 
 
18039
case $host_os in
 
18040
aix3*)
 
18041
  version_type=linux
 
18042
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18043
  shlibpath_var=LIBPATH
 
18044
 
 
18045
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18046
  soname_spec='${libname}${release}${shared_ext}$major'
 
18047
  ;;
 
18048
 
 
18049
aix4* | aix5*)
 
18050
  version_type=linux
 
18051
  need_lib_prefix=no
 
18052
  need_version=no
 
18053
  hardcode_into_libs=yes
 
18054
  if test "$host_cpu" = ia64; then
 
18055
    # AIX 5 supports IA64
 
18056
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18057
    shlibpath_var=LD_LIBRARY_PATH
 
18058
  else
 
18059
    # With GCC up to 2.95.x, collect2 would create an import file
 
18060
    # for dependence libraries.  The import file would start with
 
18061
    # the line `#! .'.  This would cause the generated library to
 
18062
    # depend on `.', always an invalid library.  This was fixed in
 
18063
    # development snapshots of GCC prior to 3.0.
 
18064
    case $host_os in
 
18065
      aix4 | aix4.[01] | aix4.[01].*)
 
18066
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18067
           echo ' yes '
 
18068
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18069
        :
 
18070
      else
 
18071
        can_build_shared=no
 
18072
      fi
 
18073
      ;;
 
18074
    esac
 
18075
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18076
    # soname into executable. Probably we can add versioning support to
 
18077
    # collect2, so additional links can be useful in future.
 
18078
    if test "$aix_use_runtimelinking" = yes; then
 
18079
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18080
      # instead of lib<name>.a to let people know that these are not
 
18081
      # typical AIX shared libraries.
 
18082
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18083
    else
 
18084
      # We preserve .a as extension for shared libraries through AIX4.2
 
18085
      # and later when we are not doing run time linking.
 
18086
      library_names_spec='${libname}${release}.a $libname.a'
 
18087
      soname_spec='${libname}${release}${shared_ext}$major'
 
18088
    fi
 
18089
    shlibpath_var=LIBPATH
 
18090
  fi
 
18091
  ;;
 
18092
 
 
18093
amigaos*)
 
18094
  library_names_spec='$libname.ixlibrary $libname.a'
 
18095
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18096
  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'
 
18097
  ;;
 
18098
 
 
18099
beos*)
 
18100
  library_names_spec='${libname}${shared_ext}'
 
18101
  dynamic_linker="$host_os ld.so"
 
18102
  shlibpath_var=LIBRARY_PATH
 
18103
  ;;
 
18104
 
 
18105
bsdi[45]*)
 
18106
  version_type=linux
 
18107
  need_version=no
 
18108
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18109
  soname_spec='${libname}${release}${shared_ext}$major'
 
18110
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18111
  shlibpath_var=LD_LIBRARY_PATH
 
18112
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18113
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18114
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18115
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18116
  # libtool to hard-code these into programs
 
18117
  ;;
 
18118
 
 
18119
cygwin* | mingw* | pw32*)
 
18120
  version_type=windows
 
18121
  shrext_cmds=".dll"
 
18122
  need_version=no
 
18123
  need_lib_prefix=no
 
18124
 
 
18125
  case $GCC,$host_os in
 
18126
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18127
    library_names_spec='$libname.dll.a'
 
18128
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18129
    postinstall_cmds='base_file=`basename \${file}`~
 
18130
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18131
      dldir=$destdir/`dirname \$dlpath`~
 
18132
      test -d \$dldir || mkdir -p \$dldir~
 
18133
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18134
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18135
      dlpath=$dir/\$dldll~
 
18136
       $rm \$dlpath'
 
18137
    shlibpath_overrides_runpath=yes
 
18138
 
 
18139
    case $host_os in
 
18140
    cygwin*)
 
18141
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18142
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18143
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18144
      ;;
 
18145
    mingw*)
 
18146
      # MinGW DLLs use traditional 'lib' prefix
 
18147
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18148
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18149
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18150
        # It is most probably a Windows format PATH printed by
 
18151
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18152
        # path with ; separators, and with drive letters. We can handle the
 
18153
        # drive letters (cygwin fileutils understands them), so leave them,
 
18154
        # especially as we might pass files found there to a mingw objdump,
 
18155
        # which wouldn't understand a cygwinified path. Ahh.
 
18156
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18157
      else
 
18158
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18159
      fi
 
18160
      ;;
 
18161
    pw32*)
 
18162
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18163
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18164
      ;;
 
18165
    esac
 
18166
    ;;
 
18167
 
 
18168
  *)
 
18169
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18170
    ;;
 
18171
  esac
 
18172
  dynamic_linker='Win32 ld.exe'
 
18173
  # FIXME: first we should search . and the directory the executable is in
 
18174
  shlibpath_var=PATH
 
18175
  ;;
 
18176
 
 
18177
darwin* | rhapsody*)
 
18178
  dynamic_linker="$host_os dyld"
 
18179
  version_type=darwin
 
18180
  need_lib_prefix=no
 
18181
  need_version=no
 
18182
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18183
  soname_spec='${libname}${release}${major}$shared_ext'
 
18184
  shlibpath_overrides_runpath=yes
 
18185
  shlibpath_var=DYLD_LIBRARY_PATH
 
18186
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
18187
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18188
  if test "$GCC" = yes; then
 
18189
    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"`
 
18190
  else
 
18191
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18192
  fi
 
18193
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18194
  ;;
 
18195
 
 
18196
dgux*)
 
18197
  version_type=linux
 
18198
  need_lib_prefix=no
 
18199
  need_version=no
 
18200
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18201
  soname_spec='${libname}${release}${shared_ext}$major'
 
18202
  shlibpath_var=LD_LIBRARY_PATH
 
18203
  ;;
 
18204
 
 
18205
freebsd1*)
 
18206
  dynamic_linker=no
 
18207
  ;;
 
18208
 
 
18209
kfreebsd*-gnu)
 
18210
  version_type=linux
 
18211
  need_lib_prefix=no
 
18212
  need_version=no
 
18213
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18214
  soname_spec='${libname}${release}${shared_ext}$major'
 
18215
  shlibpath_var=LD_LIBRARY_PATH
 
18216
  shlibpath_overrides_runpath=no
 
18217
  hardcode_into_libs=yes
 
18218
  dynamic_linker='GNU ld.so'
 
18219
  ;;
 
18220
 
 
18221
freebsd*)
 
18222
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18223
  version_type=freebsd-$objformat
 
18224
  case $version_type in
 
18225
    freebsd-elf*)
 
18226
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18227
      need_version=no
 
18228
      need_lib_prefix=no
 
18229
      ;;
 
18230
    freebsd-*)
 
18231
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18232
      need_version=yes
 
18233
      ;;
 
18234
  esac
 
18235
  shlibpath_var=LD_LIBRARY_PATH
 
18236
  case $host_os in
 
18237
  freebsd2*)
 
18238
    shlibpath_overrides_runpath=yes
 
18239
    ;;
 
18240
  freebsd3.01* | freebsdelf3.01*)
 
18241
    shlibpath_overrides_runpath=yes
 
18242
    hardcode_into_libs=yes
 
18243
    ;;
 
18244
  *) # from 3.2 on
 
18245
    shlibpath_overrides_runpath=no
 
18246
    hardcode_into_libs=yes
 
18247
    ;;
 
18248
  esac
 
18249
  ;;
 
18250
 
 
18251
gnu*)
 
18252
  version_type=linux
 
18253
  need_lib_prefix=no
 
18254
  need_version=no
 
18255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18256
  soname_spec='${libname}${release}${shared_ext}$major'
 
18257
  shlibpath_var=LD_LIBRARY_PATH
 
18258
  hardcode_into_libs=yes
 
18259
  ;;
 
18260
 
 
18261
hpux9* | hpux10* | hpux11*)
 
18262
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18263
  # link against other versions.
 
18264
  version_type=sunos
 
18265
  need_lib_prefix=no
 
18266
  need_version=no
 
18267
  case "$host_cpu" in
 
18268
  ia64*)
 
18269
    shrext_cmds='.so'
 
18270
    hardcode_into_libs=yes
 
18271
    dynamic_linker="$host_os dld.so"
 
18272
    shlibpath_var=LD_LIBRARY_PATH
 
18273
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18274
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18275
    soname_spec='${libname}${release}${shared_ext}$major'
 
18276
    if test "X$HPUX_IA64_MODE" = X32; then
 
18277
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18278
    else
 
18279
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18280
    fi
 
18281
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18282
    ;;
 
18283
   hppa*64*)
 
18284
     shrext_cmds='.sl'
 
18285
     hardcode_into_libs=yes
 
18286
     dynamic_linker="$host_os dld.sl"
 
18287
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18288
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18289
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18290
     soname_spec='${libname}${release}${shared_ext}$major'
 
18291
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18292
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18293
     ;;
 
18294
   *)
 
18295
    shrext_cmds='.sl'
 
18296
    dynamic_linker="$host_os dld.sl"
 
18297
    shlibpath_var=SHLIB_PATH
 
18298
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18299
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18300
    soname_spec='${libname}${release}${shared_ext}$major'
 
18301
    ;;
 
18302
  esac
 
18303
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18304
  postinstall_cmds='chmod 555 $lib'
 
18305
  ;;
 
18306
 
 
18307
irix5* | irix6* | nonstopux*)
 
18308
  case $host_os in
 
18309
    nonstopux*) version_type=nonstopux ;;
 
18310
    *)
 
18311
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18312
                version_type=linux
 
18313
        else
 
18314
                version_type=irix
 
18315
        fi ;;
 
18316
  esac
 
18317
  need_lib_prefix=no
 
18318
  need_version=no
 
18319
  soname_spec='${libname}${release}${shared_ext}$major'
 
18320
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18321
  case $host_os in
 
18322
  irix5* | nonstopux*)
 
18323
    libsuff= shlibsuff=
 
18324
    ;;
 
18325
  *)
 
18326
    case $LD in # libtool.m4 will add one of these switches to LD
 
18327
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18328
      libsuff= shlibsuff= libmagic=32-bit;;
 
18329
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18330
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18331
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18332
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18333
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18334
    esac
 
18335
    ;;
 
18336
  esac
 
18337
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18338
  shlibpath_overrides_runpath=no
 
18339
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18340
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18341
  hardcode_into_libs=yes
 
18342
  ;;
 
18343
 
 
18344
# No shared lib support for Linux oldld, aout, or coff.
 
18345
linux*oldld* | linux*aout* | linux*coff*)
 
18346
  dynamic_linker=no
 
18347
  ;;
 
18348
 
 
18349
# This must be Linux ELF.
 
18350
linux*)
 
18351
  version_type=linux
 
18352
  need_lib_prefix=no
 
18353
  need_version=no
 
18354
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18355
  soname_spec='${libname}${release}${shared_ext}$major'
 
18356
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18357
  shlibpath_var=LD_LIBRARY_PATH
 
18358
  shlibpath_overrides_runpath=no
 
18359
  # This implies no fast_install, which is unacceptable.
 
18360
  # Some rework will be needed to allow for fast_install
 
18361
  # before this can be enabled.
 
18362
  hardcode_into_libs=yes
 
18363
 
 
18364
  # find out which ABI we are using
 
18365
  libsuff=
 
18366
  case "$host_cpu" in
 
18367
  x86_64*|s390x*|powerpc64*)
 
18368
    echo '#line 18368 "configure"' > conftest.$ac_ext
 
18369
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18370
  (eval $ac_compile) 2>&5
 
18371
  ac_status=$?
 
18372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18373
  (exit $ac_status); }; then
 
18374
      case `/usr/bin/file conftest.$ac_objext` in
 
18375
      *64-bit*)
 
18376
        libsuff=64
 
18377
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
18378
        ;;
 
18379
      esac
 
18380
    fi
 
18381
    rm -rf conftest*
 
18382
    ;;
 
18383
  esac
 
18384
 
 
18385
  # Append ld.so.conf contents to the search path
 
18386
  if test -f /etc/ld.so.conf; then
 
18387
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
18388
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
18389
  fi
 
18390
 
 
18391
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18392
  # powerpc, because MkLinux only supported shared libraries with the
 
18393
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18394
  # most powerpc-linux boxes support dynamic linking these days and
 
18395
  # people can always --disable-shared, the test was removed, and we
 
18396
  # assume the GNU/Linux dynamic linker is in use.
 
18397
  dynamic_linker='GNU/Linux ld.so'
 
18398
  ;;
 
18399
 
 
18400
knetbsd*-gnu)
 
18401
  version_type=linux
 
18402
  need_lib_prefix=no
 
18403
  need_version=no
 
18404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18405
  soname_spec='${libname}${release}${shared_ext}$major'
 
18406
  shlibpath_var=LD_LIBRARY_PATH
 
18407
  shlibpath_overrides_runpath=no
 
18408
  hardcode_into_libs=yes
 
18409
  dynamic_linker='GNU ld.so'
 
18410
  ;;
 
18411
 
 
18412
netbsd*)
 
18413
  version_type=sunos
 
18414
  need_lib_prefix=no
 
18415
  need_version=no
 
18416
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18417
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18418
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18419
    dynamic_linker='NetBSD (a.out) ld.so'
 
18420
  else
 
18421
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18422
    soname_spec='${libname}${release}${shared_ext}$major'
 
18423
    dynamic_linker='NetBSD ld.elf_so'
 
18424
  fi
 
18425
  shlibpath_var=LD_LIBRARY_PATH
 
18426
  shlibpath_overrides_runpath=yes
 
18427
  hardcode_into_libs=yes
 
18428
  ;;
 
18429
 
 
18430
newsos6)
 
18431
  version_type=linux
 
18432
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18433
  shlibpath_var=LD_LIBRARY_PATH
 
18434
  shlibpath_overrides_runpath=yes
 
18435
  ;;
 
18436
 
 
18437
nto-qnx*)
 
18438
  version_type=linux
 
18439
  need_lib_prefix=no
 
18440
  need_version=no
 
18441
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18442
  soname_spec='${libname}${release}${shared_ext}$major'
 
18443
  shlibpath_var=LD_LIBRARY_PATH
 
18444
  shlibpath_overrides_runpath=yes
 
18445
  ;;
 
18446
 
 
18447
openbsd*)
 
18448
  version_type=sunos
 
18449
  need_lib_prefix=no
 
18450
  need_version=no
 
18451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18452
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18453
  shlibpath_var=LD_LIBRARY_PATH
 
18454
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18455
    case $host_os in
 
18456
      openbsd2.[89] | openbsd2.[89].*)
 
18457
        shlibpath_overrides_runpath=no
 
18458
        ;;
 
18459
      *)
 
18460
        shlibpath_overrides_runpath=yes
 
18461
        ;;
 
18462
      esac
 
18463
  else
 
18464
    shlibpath_overrides_runpath=yes
 
18465
  fi
 
18466
  ;;
 
18467
 
 
18468
os2*)
 
18469
  libname_spec='$name'
 
18470
  shrext_cmds=".dll"
 
18471
  need_lib_prefix=no
 
18472
  library_names_spec='$libname${shared_ext} $libname.a'
 
18473
  dynamic_linker='OS/2 ld.exe'
 
18474
  shlibpath_var=LIBPATH
 
18475
  ;;
 
18476
 
 
18477
osf3* | osf4* | osf5*)
 
18478
  version_type=osf
 
18479
  need_lib_prefix=no
 
18480
  need_version=no
 
18481
  soname_spec='${libname}${release}${shared_ext}$major'
 
18482
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18483
  shlibpath_var=LD_LIBRARY_PATH
 
18484
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18485
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18486
  ;;
 
18487
 
 
18488
sco3.2v5*)
 
18489
  version_type=osf
 
18490
  soname_spec='${libname}${release}${shared_ext}$major'
 
18491
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18492
  shlibpath_var=LD_LIBRARY_PATH
 
18493
  ;;
 
18494
 
 
18495
solaris*)
 
18496
  version_type=linux
 
18497
  need_lib_prefix=no
 
18498
  need_version=no
 
18499
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18500
  soname_spec='${libname}${release}${shared_ext}$major'
 
18501
  shlibpath_var=LD_LIBRARY_PATH
 
18502
  shlibpath_overrides_runpath=yes
 
18503
  hardcode_into_libs=yes
 
18504
  # ldd complains unless libraries are executable
 
18505
  postinstall_cmds='chmod +x $lib'
 
18506
  ;;
 
18507
 
 
18508
sunos4*)
 
18509
  version_type=sunos
 
18510
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18511
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18512
  shlibpath_var=LD_LIBRARY_PATH
 
18513
  shlibpath_overrides_runpath=yes
 
18514
  if test "$with_gnu_ld" = yes; then
 
18515
    need_lib_prefix=no
 
18516
  fi
 
18517
  need_version=yes
 
18518
  ;;
 
18519
 
 
18520
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18521
  version_type=linux
 
18522
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18523
  soname_spec='${libname}${release}${shared_ext}$major'
 
18524
  shlibpath_var=LD_LIBRARY_PATH
 
18525
  case $host_vendor in
 
18526
    sni)
 
18527
      shlibpath_overrides_runpath=no
 
18528
      need_lib_prefix=no
 
18529
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18530
      runpath_var=LD_RUN_PATH
 
18531
      ;;
 
18532
    siemens)
 
18533
      need_lib_prefix=no
 
18534
      ;;
 
18535
    motorola)
 
18536
      need_lib_prefix=no
 
18537
      need_version=no
 
18538
      shlibpath_overrides_runpath=no
 
18539
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18540
      ;;
 
18541
  esac
 
18542
  ;;
 
18543
 
 
18544
sysv4*MP*)
 
18545
  if test -d /usr/nec ;then
 
18546
    version_type=linux
 
18547
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18548
    soname_spec='$libname${shared_ext}.$major'
 
18549
    shlibpath_var=LD_LIBRARY_PATH
 
18550
  fi
 
18551
  ;;
 
18552
 
 
18553
uts4*)
 
18554
  version_type=linux
 
18555
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18556
  soname_spec='${libname}${release}${shared_ext}$major'
 
18557
  shlibpath_var=LD_LIBRARY_PATH
 
18558
  ;;
 
18559
 
 
18560
*)
 
18561
  dynamic_linker=no
 
18562
  ;;
 
18563
esac
 
18564
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18565
echo "${ECHO_T}$dynamic_linker" >&6
 
18566
test "$dynamic_linker" = no && can_build_shared=no
 
18567
 
 
18568
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18569
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18570
hardcode_action_GCJ=
 
18571
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18572
   test -n "$runpath_var_GCJ" || \
 
18573
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18574
 
 
18575
  # We can hardcode non-existant directories.
 
18576
  if test "$hardcode_direct_GCJ" != no &&
 
18577
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18578
     # have to relink, otherwise we might link with an installed library
 
18579
     # when we should be linking with a yet-to-be-installed one
 
18580
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18581
     test "$hardcode_minus_L_GCJ" != no; then
 
18582
    # Linking always hardcodes the temporary library directory.
 
18583
    hardcode_action_GCJ=relink
 
18584
  else
 
18585
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18586
    hardcode_action_GCJ=immediate
 
18587
  fi
 
18588
else
 
18589
  # We cannot hardcode anything, or else we can only hardcode existing
 
18590
  # directories.
 
18591
  hardcode_action_GCJ=unsupported
 
18592
fi
 
18593
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18594
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18595
 
 
18596
if test "$hardcode_action_GCJ" = relink; then
 
18597
  # Fast installation is not supported
 
18598
  enable_fast_install=no
 
18599
elif test "$shlibpath_overrides_runpath" = yes ||
 
18600
     test "$enable_shared" = no; then
 
18601
  # Fast installation is not necessary
 
18602
  enable_fast_install=needless
 
18603
fi
 
18604
 
 
18605
striplib=
 
18606
old_striplib=
 
18607
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
18608
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
18609
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
18610
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
18611
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
18612
  echo "$as_me:$LINENO: result: yes" >&5
 
18613
echo "${ECHO_T}yes" >&6
 
18614
else
 
18615
# FIXME - insert some real tests, host_os isn't really good enough
 
18616
  case $host_os in
 
18617
   darwin*)
 
18618
       if test -n "$STRIP" ; then
 
18619
         striplib="$STRIP -x"
 
18620
         echo "$as_me:$LINENO: result: yes" >&5
 
18621
echo "${ECHO_T}yes" >&6
 
18622
       else
 
18623
  echo "$as_me:$LINENO: result: no" >&5
 
18624
echo "${ECHO_T}no" >&6
 
18625
fi
 
18626
       ;;
 
18627
   *)
 
18628
  echo "$as_me:$LINENO: result: no" >&5
 
18629
echo "${ECHO_T}no" >&6
 
18630
    ;;
 
18631
  esac
 
18632
fi
 
18633
 
 
18634
if test "x$enable_dlopen" != xyes; then
 
18635
  enable_dlopen=unknown
 
18636
  enable_dlopen_self=unknown
 
18637
  enable_dlopen_self_static=unknown
 
18638
else
 
18639
  lt_cv_dlopen=no
 
18640
  lt_cv_dlopen_libs=
 
18641
 
 
18642
  case $host_os in
 
18643
  beos*)
 
18644
    lt_cv_dlopen="load_add_on"
 
18645
    lt_cv_dlopen_libs=
 
18646
    lt_cv_dlopen_self=yes
 
18647
    ;;
 
18648
 
 
18649
  mingw* | pw32*)
 
18650
    lt_cv_dlopen="LoadLibrary"
 
18651
    lt_cv_dlopen_libs=
 
18652
   ;;
 
18653
 
 
18654
  cygwin*)
 
18655
    lt_cv_dlopen="dlopen"
 
18656
    lt_cv_dlopen_libs=
 
18657
   ;;
 
18658
 
 
18659
  darwin*)
 
18660
  # if libdl is installed we need to link against it
 
18661
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18662
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18663
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18665
else
 
18666
  ac_check_lib_save_LIBS=$LIBS
 
18667
LIBS="-ldl  $LIBS"
 
18668
cat >conftest.$ac_ext <<_ACEOF
 
18669
/* confdefs.h.  */
 
18670
_ACEOF
 
18671
cat confdefs.h >>conftest.$ac_ext
 
18672
cat >>conftest.$ac_ext <<_ACEOF
 
18673
/* end confdefs.h.  */
 
18674
 
 
18675
/* Override any gcc2 internal prototype to avoid an error.  */
 
18676
#ifdef __cplusplus
 
18677
extern "C"
 
18678
#endif
 
18679
/* We use char because int might match the return type of a gcc2
 
18680
   builtin and then its argument prototype would still apply.  */
 
18681
char dlopen ();
 
18682
int
 
18683
main ()
 
18684
{
 
18685
dlopen ();
 
18686
  ;
 
18687
  return 0;
 
18688
}
 
18689
_ACEOF
 
18690
rm -f conftest.$ac_objext conftest$ac_exeext
 
18691
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18692
  (eval $ac_link) 2>conftest.er1
 
18693
  ac_status=$?
 
18694
  grep -v '^ *+' conftest.er1 >conftest.err
 
18695
  rm -f conftest.er1
 
18696
  cat conftest.err >&5
 
18697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18698
  (exit $ac_status); } &&
 
18699
         { ac_try='test -z "$ac_c_werror_flag"
 
18700
                         || test ! -s conftest.err'
 
18701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18702
  (eval $ac_try) 2>&5
 
18703
  ac_status=$?
 
18704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18705
  (exit $ac_status); }; } &&
 
18706
         { ac_try='test -s conftest$ac_exeext'
 
18707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18708
  (eval $ac_try) 2>&5
 
18709
  ac_status=$?
 
18710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18711
  (exit $ac_status); }; }; then
 
18712
  ac_cv_lib_dl_dlopen=yes
 
18713
else
 
18714
  echo "$as_me: failed program was:" >&5
 
18715
sed 's/^/| /' conftest.$ac_ext >&5
 
18716
 
 
18717
ac_cv_lib_dl_dlopen=no
 
18718
fi
 
18719
rm -f conftest.err conftest.$ac_objext \
 
18720
      conftest$ac_exeext conftest.$ac_ext
 
18721
LIBS=$ac_check_lib_save_LIBS
 
18722
fi
 
18723
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18724
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18725
if test $ac_cv_lib_dl_dlopen = yes; then
 
18726
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18727
else
 
18728
 
 
18729
    lt_cv_dlopen="dyld"
 
18730
    lt_cv_dlopen_libs=
 
18731
    lt_cv_dlopen_self=yes
 
18732
 
 
18733
fi
 
18734
 
 
18735
   ;;
 
18736
 
 
18737
  *)
 
18738
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18739
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18740
if test "${ac_cv_func_shl_load+set}" = set; then
 
18741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18742
else
 
18743
  cat >conftest.$ac_ext <<_ACEOF
 
18744
/* confdefs.h.  */
 
18745
_ACEOF
 
18746
cat confdefs.h >>conftest.$ac_ext
 
18747
cat >>conftest.$ac_ext <<_ACEOF
 
18748
/* end confdefs.h.  */
 
18749
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18750
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18751
#define shl_load innocuous_shl_load
 
18752
 
 
18753
/* System header to define __stub macros and hopefully few prototypes,
 
18754
    which can conflict with char shl_load (); below.
 
18755
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18756
    <limits.h> exists even on freestanding compilers.  */
 
18757
 
 
18758
#ifdef __STDC__
 
18759
# include <limits.h>
 
18760
#else
 
18761
# include <assert.h>
 
18762
#endif
 
18763
 
 
18764
#undef shl_load
 
18765
 
 
18766
/* Override any gcc2 internal prototype to avoid an error.  */
 
18767
#ifdef __cplusplus
 
18768
extern "C"
 
18769
{
 
18770
#endif
 
18771
/* We use char because int might match the return type of a gcc2
 
18772
   builtin and then its argument prototype would still apply.  */
 
18773
char shl_load ();
 
18774
/* The GNU C library defines this for functions which it implements
 
18775
    to always fail with ENOSYS.  Some functions are actually named
 
18776
    something starting with __ and the normal name is an alias.  */
 
18777
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18778
choke me
 
18779
#else
 
18780
char (*f) () = shl_load;
 
18781
#endif
 
18782
#ifdef __cplusplus
 
18783
}
 
18784
#endif
 
18785
 
 
18786
int
 
18787
main ()
 
18788
{
 
18789
return f != shl_load;
 
18790
  ;
 
18791
  return 0;
 
18792
}
 
18793
_ACEOF
 
18794
rm -f conftest.$ac_objext conftest$ac_exeext
 
18795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18796
  (eval $ac_link) 2>conftest.er1
 
18797
  ac_status=$?
 
18798
  grep -v '^ *+' conftest.er1 >conftest.err
 
18799
  rm -f conftest.er1
 
18800
  cat conftest.err >&5
 
18801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18802
  (exit $ac_status); } &&
 
18803
         { ac_try='test -z "$ac_c_werror_flag"
 
18804
                         || test ! -s conftest.err'
 
18805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18806
  (eval $ac_try) 2>&5
 
18807
  ac_status=$?
 
18808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18809
  (exit $ac_status); }; } &&
 
18810
         { ac_try='test -s conftest$ac_exeext'
 
18811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18812
  (eval $ac_try) 2>&5
 
18813
  ac_status=$?
 
18814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18815
  (exit $ac_status); }; }; then
 
18816
  ac_cv_func_shl_load=yes
 
18817
else
 
18818
  echo "$as_me: failed program was:" >&5
 
18819
sed 's/^/| /' conftest.$ac_ext >&5
 
18820
 
 
18821
ac_cv_func_shl_load=no
 
18822
fi
 
18823
rm -f conftest.err conftest.$ac_objext \
 
18824
      conftest$ac_exeext conftest.$ac_ext
 
18825
fi
 
18826
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18827
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18828
if test $ac_cv_func_shl_load = yes; then
 
18829
  lt_cv_dlopen="shl_load"
 
18830
else
 
18831
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18832
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18833
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18835
else
 
18836
  ac_check_lib_save_LIBS=$LIBS
 
18837
LIBS="-ldld  $LIBS"
 
18838
cat >conftest.$ac_ext <<_ACEOF
 
18839
/* confdefs.h.  */
 
18840
_ACEOF
 
18841
cat confdefs.h >>conftest.$ac_ext
 
18842
cat >>conftest.$ac_ext <<_ACEOF
 
18843
/* end confdefs.h.  */
 
18844
 
 
18845
/* Override any gcc2 internal prototype to avoid an error.  */
 
18846
#ifdef __cplusplus
 
18847
extern "C"
 
18848
#endif
 
18849
/* We use char because int might match the return type of a gcc2
 
18850
   builtin and then its argument prototype would still apply.  */
 
18851
char shl_load ();
 
18852
int
 
18853
main ()
 
18854
{
 
18855
shl_load ();
 
18856
  ;
 
18857
  return 0;
 
18858
}
 
18859
_ACEOF
 
18860
rm -f conftest.$ac_objext conftest$ac_exeext
 
18861
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18862
  (eval $ac_link) 2>conftest.er1
 
18863
  ac_status=$?
 
18864
  grep -v '^ *+' conftest.er1 >conftest.err
 
18865
  rm -f conftest.er1
 
18866
  cat conftest.err >&5
 
18867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18868
  (exit $ac_status); } &&
 
18869
         { ac_try='test -z "$ac_c_werror_flag"
 
18870
                         || test ! -s conftest.err'
 
18871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18872
  (eval $ac_try) 2>&5
 
18873
  ac_status=$?
 
18874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18875
  (exit $ac_status); }; } &&
 
18876
         { ac_try='test -s conftest$ac_exeext'
 
18877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18878
  (eval $ac_try) 2>&5
 
18879
  ac_status=$?
 
18880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18881
  (exit $ac_status); }; }; then
 
18882
  ac_cv_lib_dld_shl_load=yes
 
18883
else
 
18884
  echo "$as_me: failed program was:" >&5
 
18885
sed 's/^/| /' conftest.$ac_ext >&5
 
18886
 
 
18887
ac_cv_lib_dld_shl_load=no
 
18888
fi
 
18889
rm -f conftest.err conftest.$ac_objext \
 
18890
      conftest$ac_exeext conftest.$ac_ext
 
18891
LIBS=$ac_check_lib_save_LIBS
 
18892
fi
 
18893
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18894
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18895
if test $ac_cv_lib_dld_shl_load = yes; then
 
18896
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18897
else
 
18898
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18899
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18900
if test "${ac_cv_func_dlopen+set}" = set; then
 
18901
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18902
else
 
18903
  cat >conftest.$ac_ext <<_ACEOF
 
18904
/* confdefs.h.  */
 
18905
_ACEOF
 
18906
cat confdefs.h >>conftest.$ac_ext
 
18907
cat >>conftest.$ac_ext <<_ACEOF
 
18908
/* end confdefs.h.  */
 
18909
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18910
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18911
#define dlopen innocuous_dlopen
 
18912
 
 
18913
/* System header to define __stub macros and hopefully few prototypes,
 
18914
    which can conflict with char dlopen (); below.
 
18915
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18916
    <limits.h> exists even on freestanding compilers.  */
 
18917
 
 
18918
#ifdef __STDC__
 
18919
# include <limits.h>
 
18920
#else
 
18921
# include <assert.h>
 
18922
#endif
 
18923
 
 
18924
#undef dlopen
 
18925
 
 
18926
/* Override any gcc2 internal prototype to avoid an error.  */
 
18927
#ifdef __cplusplus
 
18928
extern "C"
 
18929
{
 
18930
#endif
 
18931
/* We use char because int might match the return type of a gcc2
 
18932
   builtin and then its argument prototype would still apply.  */
 
18933
char dlopen ();
 
18934
/* The GNU C library defines this for functions which it implements
 
18935
    to always fail with ENOSYS.  Some functions are actually named
 
18936
    something starting with __ and the normal name is an alias.  */
 
18937
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18938
choke me
 
18939
#else
 
18940
char (*f) () = dlopen;
 
18941
#endif
 
18942
#ifdef __cplusplus
 
18943
}
 
18944
#endif
 
18945
 
 
18946
int
 
18947
main ()
 
18948
{
 
18949
return f != dlopen;
 
18950
  ;
 
18951
  return 0;
 
18952
}
 
18953
_ACEOF
 
18954
rm -f conftest.$ac_objext conftest$ac_exeext
 
18955
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18956
  (eval $ac_link) 2>conftest.er1
 
18957
  ac_status=$?
 
18958
  grep -v '^ *+' conftest.er1 >conftest.err
 
18959
  rm -f conftest.er1
 
18960
  cat conftest.err >&5
 
18961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18962
  (exit $ac_status); } &&
 
18963
         { ac_try='test -z "$ac_c_werror_flag"
 
18964
                         || test ! -s conftest.err'
 
18965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18966
  (eval $ac_try) 2>&5
 
18967
  ac_status=$?
 
18968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18969
  (exit $ac_status); }; } &&
 
18970
         { ac_try='test -s conftest$ac_exeext'
 
18971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18972
  (eval $ac_try) 2>&5
 
18973
  ac_status=$?
 
18974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18975
  (exit $ac_status); }; }; then
 
18976
  ac_cv_func_dlopen=yes
 
18977
else
 
18978
  echo "$as_me: failed program was:" >&5
 
18979
sed 's/^/| /' conftest.$ac_ext >&5
 
18980
 
 
18981
ac_cv_func_dlopen=no
 
18982
fi
 
18983
rm -f conftest.err conftest.$ac_objext \
 
18984
      conftest$ac_exeext conftest.$ac_ext
 
18985
fi
 
18986
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18987
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18988
if test $ac_cv_func_dlopen = yes; then
 
18989
  lt_cv_dlopen="dlopen"
 
18990
else
 
18991
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18992
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18993
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18995
else
 
18996
  ac_check_lib_save_LIBS=$LIBS
 
18997
LIBS="-ldl  $LIBS"
 
18998
cat >conftest.$ac_ext <<_ACEOF
 
18999
/* confdefs.h.  */
 
19000
_ACEOF
 
19001
cat confdefs.h >>conftest.$ac_ext
 
19002
cat >>conftest.$ac_ext <<_ACEOF
 
19003
/* end confdefs.h.  */
 
19004
 
 
19005
/* Override any gcc2 internal prototype to avoid an error.  */
 
19006
#ifdef __cplusplus
 
19007
extern "C"
 
19008
#endif
 
19009
/* We use char because int might match the return type of a gcc2
 
19010
   builtin and then its argument prototype would still apply.  */
 
19011
char dlopen ();
 
19012
int
 
19013
main ()
 
19014
{
 
19015
dlopen ();
 
19016
  ;
 
19017
  return 0;
 
19018
}
 
19019
_ACEOF
 
19020
rm -f conftest.$ac_objext conftest$ac_exeext
 
19021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19022
  (eval $ac_link) 2>conftest.er1
 
19023
  ac_status=$?
 
19024
  grep -v '^ *+' conftest.er1 >conftest.err
 
19025
  rm -f conftest.er1
 
19026
  cat conftest.err >&5
 
19027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19028
  (exit $ac_status); } &&
 
19029
         { ac_try='test -z "$ac_c_werror_flag"
 
19030
                         || test ! -s conftest.err'
 
19031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19032
  (eval $ac_try) 2>&5
 
19033
  ac_status=$?
 
19034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19035
  (exit $ac_status); }; } &&
 
19036
         { ac_try='test -s conftest$ac_exeext'
 
19037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19038
  (eval $ac_try) 2>&5
 
19039
  ac_status=$?
 
19040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19041
  (exit $ac_status); }; }; then
 
19042
  ac_cv_lib_dl_dlopen=yes
 
19043
else
 
19044
  echo "$as_me: failed program was:" >&5
 
19045
sed 's/^/| /' conftest.$ac_ext >&5
 
19046
 
 
19047
ac_cv_lib_dl_dlopen=no
 
19048
fi
 
19049
rm -f conftest.err conftest.$ac_objext \
 
19050
      conftest$ac_exeext conftest.$ac_ext
 
19051
LIBS=$ac_check_lib_save_LIBS
 
19052
fi
 
19053
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19054
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19055
if test $ac_cv_lib_dl_dlopen = yes; then
 
19056
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19057
else
 
19058
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
19059
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
19060
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
19061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19062
else
 
19063
  ac_check_lib_save_LIBS=$LIBS
 
19064
LIBS="-lsvld  $LIBS"
 
19065
cat >conftest.$ac_ext <<_ACEOF
 
19066
/* confdefs.h.  */
 
19067
_ACEOF
 
19068
cat confdefs.h >>conftest.$ac_ext
 
19069
cat >>conftest.$ac_ext <<_ACEOF
 
19070
/* end confdefs.h.  */
 
19071
 
 
19072
/* Override any gcc2 internal prototype to avoid an error.  */
 
19073
#ifdef __cplusplus
 
19074
extern "C"
 
19075
#endif
 
19076
/* We use char because int might match the return type of a gcc2
 
19077
   builtin and then its argument prototype would still apply.  */
 
19078
char dlopen ();
 
19079
int
 
19080
main ()
 
19081
{
 
19082
dlopen ();
 
19083
  ;
 
19084
  return 0;
 
19085
}
 
19086
_ACEOF
 
19087
rm -f conftest.$ac_objext conftest$ac_exeext
 
19088
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19089
  (eval $ac_link) 2>conftest.er1
 
19090
  ac_status=$?
 
19091
  grep -v '^ *+' conftest.er1 >conftest.err
 
19092
  rm -f conftest.er1
 
19093
  cat conftest.err >&5
 
19094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19095
  (exit $ac_status); } &&
 
19096
         { ac_try='test -z "$ac_c_werror_flag"
 
19097
                         || test ! -s conftest.err'
 
19098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19099
  (eval $ac_try) 2>&5
 
19100
  ac_status=$?
 
19101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19102
  (exit $ac_status); }; } &&
 
19103
         { ac_try='test -s conftest$ac_exeext'
 
19104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19105
  (eval $ac_try) 2>&5
 
19106
  ac_status=$?
 
19107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19108
  (exit $ac_status); }; }; then
 
19109
  ac_cv_lib_svld_dlopen=yes
 
19110
else
 
19111
  echo "$as_me: failed program was:" >&5
 
19112
sed 's/^/| /' conftest.$ac_ext >&5
 
19113
 
 
19114
ac_cv_lib_svld_dlopen=no
 
19115
fi
 
19116
rm -f conftest.err conftest.$ac_objext \
 
19117
      conftest$ac_exeext conftest.$ac_ext
 
19118
LIBS=$ac_check_lib_save_LIBS
 
19119
fi
 
19120
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
19121
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
19122
if test $ac_cv_lib_svld_dlopen = yes; then
 
19123
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
19124
else
 
19125
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
19126
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
19127
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
19128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19129
else
 
19130
  ac_check_lib_save_LIBS=$LIBS
 
19131
LIBS="-ldld  $LIBS"
 
19132
cat >conftest.$ac_ext <<_ACEOF
 
19133
/* confdefs.h.  */
 
19134
_ACEOF
 
19135
cat confdefs.h >>conftest.$ac_ext
 
19136
cat >>conftest.$ac_ext <<_ACEOF
 
19137
/* end confdefs.h.  */
 
19138
 
 
19139
/* Override any gcc2 internal prototype to avoid an error.  */
 
19140
#ifdef __cplusplus
 
19141
extern "C"
 
19142
#endif
 
19143
/* We use char because int might match the return type of a gcc2
 
19144
   builtin and then its argument prototype would still apply.  */
 
19145
char dld_link ();
 
19146
int
 
19147
main ()
 
19148
{
 
19149
dld_link ();
 
19150
  ;
 
19151
  return 0;
 
19152
}
 
19153
_ACEOF
 
19154
rm -f conftest.$ac_objext conftest$ac_exeext
 
19155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19156
  (eval $ac_link) 2>conftest.er1
 
19157
  ac_status=$?
 
19158
  grep -v '^ *+' conftest.er1 >conftest.err
 
19159
  rm -f conftest.er1
 
19160
  cat conftest.err >&5
 
19161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19162
  (exit $ac_status); } &&
 
19163
         { ac_try='test -z "$ac_c_werror_flag"
 
19164
                         || test ! -s conftest.err'
 
19165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19166
  (eval $ac_try) 2>&5
 
19167
  ac_status=$?
 
19168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19169
  (exit $ac_status); }; } &&
 
19170
         { ac_try='test -s conftest$ac_exeext'
 
19171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19172
  (eval $ac_try) 2>&5
 
19173
  ac_status=$?
 
19174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19175
  (exit $ac_status); }; }; then
 
19176
  ac_cv_lib_dld_dld_link=yes
 
19177
else
 
19178
  echo "$as_me: failed program was:" >&5
 
19179
sed 's/^/| /' conftest.$ac_ext >&5
 
19180
 
 
19181
ac_cv_lib_dld_dld_link=no
 
19182
fi
 
19183
rm -f conftest.err conftest.$ac_objext \
 
19184
      conftest$ac_exeext conftest.$ac_ext
 
19185
LIBS=$ac_check_lib_save_LIBS
 
19186
fi
 
19187
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
19188
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
19189
if test $ac_cv_lib_dld_dld_link = yes; then
 
19190
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
19191
fi
 
19192
 
 
19193
 
 
19194
fi
 
19195
 
 
19196
 
 
19197
fi
 
19198
 
 
19199
 
 
19200
fi
 
19201
 
 
19202
 
 
19203
fi
 
19204
 
 
19205
 
 
19206
fi
 
19207
 
 
19208
    ;;
 
19209
  esac
 
19210
 
 
19211
  if test "x$lt_cv_dlopen" != xno; then
 
19212
    enable_dlopen=yes
 
19213
  else
 
19214
    enable_dlopen=no
 
19215
  fi
 
19216
 
 
19217
  case $lt_cv_dlopen in
 
19218
  dlopen)
 
19219
    save_CPPFLAGS="$CPPFLAGS"
 
19220
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
19221
 
 
19222
    save_LDFLAGS="$LDFLAGS"
 
19223
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
19224
 
 
19225
    save_LIBS="$LIBS"
 
19226
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
19227
 
 
19228
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
19229
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
19230
if test "${lt_cv_dlopen_self+set}" = set; then
 
19231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19232
else
 
19233
          if test "$cross_compiling" = yes; then :
 
19234
  lt_cv_dlopen_self=cross
 
19235
else
 
19236
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19237
  lt_status=$lt_dlunknown
 
19238
  cat > conftest.$ac_ext <<EOF
 
19239
#line 19239 "configure"
 
19240
#include "confdefs.h"
 
19241
 
 
19242
#if HAVE_DLFCN_H
 
19243
#include <dlfcn.h>
 
19244
#endif
 
19245
 
 
19246
#include <stdio.h>
 
19247
 
 
19248
#ifdef RTLD_GLOBAL
 
19249
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19250
#else
 
19251
#  ifdef DL_GLOBAL
 
19252
#    define LT_DLGLOBAL         DL_GLOBAL
 
19253
#  else
 
19254
#    define LT_DLGLOBAL         0
 
19255
#  endif
 
19256
#endif
 
19257
 
 
19258
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19259
   find out it does not work in some platform. */
 
19260
#ifndef LT_DLLAZY_OR_NOW
 
19261
#  ifdef RTLD_LAZY
 
19262
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19263
#  else
 
19264
#    ifdef DL_LAZY
 
19265
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19266
#    else
 
19267
#      ifdef RTLD_NOW
 
19268
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19269
#      else
 
19270
#        ifdef DL_NOW
 
19271
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19272
#        else
 
19273
#          define LT_DLLAZY_OR_NOW      0
 
19274
#        endif
 
19275
#      endif
 
19276
#    endif
 
19277
#  endif
 
19278
#endif
 
19279
 
 
19280
#ifdef __cplusplus
 
19281
extern "C" void exit (int);
 
19282
#endif
 
19283
 
 
19284
void fnord() { int i=42;}
 
19285
int main ()
 
19286
{
 
19287
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19288
  int status = $lt_dlunknown;
 
19289
 
 
19290
  if (self)
 
19291
    {
 
19292
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19293
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19294
      /* dlclose (self); */
 
19295
    }
 
19296
 
 
19297
    exit (status);
 
19298
}
 
19299
EOF
 
19300
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19301
  (eval $ac_link) 2>&5
 
19302
  ac_status=$?
 
19303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19304
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19305
    (./conftest; exit; ) 2>/dev/null
 
19306
    lt_status=$?
 
19307
    case x$lt_status in
 
19308
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
19309
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
19310
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
19311
    esac
 
19312
  else :
 
19313
    # compilation failed
 
19314
    lt_cv_dlopen_self=no
 
19315
  fi
 
19316
fi
 
19317
rm -fr conftest*
 
19318
 
 
19319
 
 
19320
fi
 
19321
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
19322
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
19323
 
 
19324
    if test "x$lt_cv_dlopen_self" = xyes; then
 
19325
      LDFLAGS="$LDFLAGS $link_static_flag"
 
19326
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
19327
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
19328
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
19329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19330
else
 
19331
          if test "$cross_compiling" = yes; then :
 
19332
  lt_cv_dlopen_self_static=cross
 
19333
else
 
19334
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19335
  lt_status=$lt_dlunknown
 
19336
  cat > conftest.$ac_ext <<EOF
 
19337
#line 19337 "configure"
 
19338
#include "confdefs.h"
 
19339
 
 
19340
#if HAVE_DLFCN_H
 
19341
#include <dlfcn.h>
 
19342
#endif
 
19343
 
 
19344
#include <stdio.h>
 
19345
 
 
19346
#ifdef RTLD_GLOBAL
 
19347
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19348
#else
 
19349
#  ifdef DL_GLOBAL
 
19350
#    define LT_DLGLOBAL         DL_GLOBAL
 
19351
#  else
 
19352
#    define LT_DLGLOBAL         0
 
19353
#  endif
 
19354
#endif
 
19355
 
 
19356
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19357
   find out it does not work in some platform. */
 
19358
#ifndef LT_DLLAZY_OR_NOW
 
19359
#  ifdef RTLD_LAZY
 
19360
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19361
#  else
 
19362
#    ifdef DL_LAZY
 
19363
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19364
#    else
 
19365
#      ifdef RTLD_NOW
 
19366
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19367
#      else
 
19368
#        ifdef DL_NOW
 
19369
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19370
#        else
 
19371
#          define LT_DLLAZY_OR_NOW      0
 
19372
#        endif
 
19373
#      endif
 
19374
#    endif
 
19375
#  endif
 
19376
#endif
 
19377
 
 
19378
#ifdef __cplusplus
 
19379
extern "C" void exit (int);
 
19380
#endif
 
19381
 
 
19382
void fnord() { int i=42;}
 
19383
int main ()
 
19384
{
 
19385
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19386
  int status = $lt_dlunknown;
 
19387
 
 
19388
  if (self)
 
19389
    {
 
19390
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19391
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19392
      /* dlclose (self); */
 
19393
    }
 
19394
 
 
19395
    exit (status);
 
19396
}
 
19397
EOF
 
19398
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19399
  (eval $ac_link) 2>&5
 
19400
  ac_status=$?
 
19401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19402
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19403
    (./conftest; exit; ) 2>/dev/null
 
19404
    lt_status=$?
 
19405
    case x$lt_status in
 
19406
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
19407
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
19408
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
19409
    esac
 
19410
  else :
 
19411
    # compilation failed
 
19412
    lt_cv_dlopen_self_static=no
 
19413
  fi
 
19414
fi
 
19415
rm -fr conftest*
 
19416
 
 
19417
 
 
19418
fi
 
19419
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
19420
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
19421
    fi
 
19422
 
 
19423
    CPPFLAGS="$save_CPPFLAGS"
 
19424
    LDFLAGS="$save_LDFLAGS"
 
19425
    LIBS="$save_LIBS"
 
19426
    ;;
 
19427
  esac
 
19428
 
 
19429
  case $lt_cv_dlopen_self in
 
19430
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
19431
  *) enable_dlopen_self=unknown ;;
 
19432
  esac
 
19433
 
 
19434
  case $lt_cv_dlopen_self_static in
 
19435
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
19436
  *) enable_dlopen_self_static=unknown ;;
 
19437
  esac
 
19438
fi
 
19439
 
 
19440
 
 
19441
# The else clause should only fire when bootstrapping the
 
19442
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19443
# with your package, and you will get complaints that there are
 
19444
# no rules to generate ltmain.sh.
 
19445
if test -f "$ltmain"; then
 
19446
  # See if we are running on zsh, and set the options which allow our commands through
 
19447
  # without removal of \ escapes.
 
19448
  if test -n "${ZSH_VERSION+set}" ; then
 
19449
    setopt NO_GLOB_SUBST
 
19450
  fi
 
19451
  # Now quote all the things that may contain metacharacters while being
 
19452
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19453
  # variables and quote the copies for generation of the libtool script.
 
19454
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19455
    SED SHELL STRIP \
 
19456
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19457
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19458
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19459
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19460
    lt_cv_sys_global_symbol_to_c_name_address \
 
19461
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19462
    old_postinstall_cmds old_postuninstall_cmds \
 
19463
    compiler_GCJ \
 
19464
    CC_GCJ \
 
19465
    LD_GCJ \
 
19466
    lt_prog_compiler_wl_GCJ \
 
19467
    lt_prog_compiler_pic_GCJ \
 
19468
    lt_prog_compiler_static_GCJ \
 
19469
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19470
    export_dynamic_flag_spec_GCJ \
 
19471
    thread_safe_flag_spec_GCJ \
 
19472
    whole_archive_flag_spec_GCJ \
 
19473
    enable_shared_with_static_runtimes_GCJ \
 
19474
    old_archive_cmds_GCJ \
 
19475
    old_archive_from_new_cmds_GCJ \
 
19476
    predep_objects_GCJ \
 
19477
    postdep_objects_GCJ \
 
19478
    predeps_GCJ \
 
19479
    postdeps_GCJ \
 
19480
    compiler_lib_search_path_GCJ \
 
19481
    archive_cmds_GCJ \
 
19482
    archive_expsym_cmds_GCJ \
 
19483
    postinstall_cmds_GCJ \
 
19484
    postuninstall_cmds_GCJ \
 
19485
    old_archive_from_expsyms_cmds_GCJ \
 
19486
    allow_undefined_flag_GCJ \
 
19487
    no_undefined_flag_GCJ \
 
19488
    export_symbols_cmds_GCJ \
 
19489
    hardcode_libdir_flag_spec_GCJ \
 
19490
    hardcode_libdir_flag_spec_ld_GCJ \
 
19491
    hardcode_libdir_separator_GCJ \
 
19492
    hardcode_automatic_GCJ \
 
19493
    module_cmds_GCJ \
 
19494
    module_expsym_cmds_GCJ \
 
19495
    lt_cv_prog_compiler_c_o_GCJ \
 
19496
    exclude_expsyms_GCJ \
 
19497
    include_expsyms_GCJ; do
 
19498
 
 
19499
    case $var in
 
19500
    old_archive_cmds_GCJ | \
 
19501
    old_archive_from_new_cmds_GCJ | \
 
19502
    archive_cmds_GCJ | \
 
19503
    archive_expsym_cmds_GCJ | \
 
19504
    module_cmds_GCJ | \
 
19505
    module_expsym_cmds_GCJ | \
 
19506
    old_archive_from_expsyms_cmds_GCJ | \
 
19507
    export_symbols_cmds_GCJ | \
 
19508
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19509
    postinstall_cmds | postuninstall_cmds | \
 
19510
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19511
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19512
      # Double-quote double-evaled strings.
 
19513
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19514
      ;;
 
19515
    *)
 
19516
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19517
      ;;
 
19518
    esac
 
19519
  done
 
19520
 
 
19521
  case $lt_echo in
 
19522
  *'\$0 --fallback-echo"')
 
19523
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19524
    ;;
 
19525
  esac
 
19526
 
 
19527
cfgfile="$ofile"
 
19528
 
 
19529
  cat <<__EOF__ >> "$cfgfile"
 
19530
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19531
 
 
19532
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19533
 
 
19534
# Shell to use when invoking shell scripts.
 
19535
SHELL=$lt_SHELL
 
19536
 
 
19537
# Whether or not to build shared libraries.
 
19538
build_libtool_libs=$enable_shared
 
19539
 
 
19540
# Whether or not to build static libraries.
 
19541
build_old_libs=$enable_static
 
19542
 
 
19543
# Whether or not to add -lc for building shared libraries.
 
19544
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19545
 
 
19546
# Whether or not to disallow shared libs when runtime libs are static
 
19547
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19548
 
 
19549
# Whether or not to optimize for fast installation.
 
19550
fast_install=$enable_fast_install
 
19551
 
 
19552
# The host system.
 
19553
host_alias=$host_alias
 
19554
host=$host
 
19555
 
 
19556
# An echo program that does not interpret backslashes.
 
19557
echo=$lt_echo
 
19558
 
 
19559
# The archiver.
 
19560
AR=$lt_AR
 
19561
AR_FLAGS=$lt_AR_FLAGS
 
19562
 
 
19563
# A C compiler.
 
19564
LTCC=$lt_LTCC
 
19565
 
 
19566
# A language-specific compiler.
 
19567
CC=$lt_compiler_GCJ
 
19568
 
 
19569
# Is the compiler the GNU C compiler?
 
19570
with_gcc=$GCC_GCJ
 
19571
 
 
19572
# An ERE matcher.
 
19573
EGREP=$lt_EGREP
 
19574
 
 
19575
# The linker used to build libraries.
 
19576
LD=$lt_LD_GCJ
 
19577
 
 
19578
# Whether we need hard or soft links.
 
19579
LN_S=$lt_LN_S
 
19580
 
 
19581
# A BSD-compatible nm program.
 
19582
NM=$lt_NM
 
19583
 
 
19584
# A symbol stripping program
 
19585
STRIP=$lt_STRIP
 
19586
 
 
19587
# Used to examine libraries when file_magic_cmd begins "file"
 
19588
MAGIC_CMD=$MAGIC_CMD
 
19589
 
 
19590
# Used on cygwin: DLL creation program.
 
19591
DLLTOOL="$DLLTOOL"
 
19592
 
 
19593
# Used on cygwin: object dumper.
 
19594
OBJDUMP="$OBJDUMP"
 
19595
 
 
19596
# Used on cygwin: assembler.
 
19597
AS="$AS"
 
19598
 
 
19599
# The name of the directory that contains temporary libtool files.
 
19600
objdir=$objdir
 
19601
 
 
19602
# How to create reloadable object files.
 
19603
reload_flag=$lt_reload_flag
 
19604
reload_cmds=$lt_reload_cmds
 
19605
 
 
19606
# How to pass a linker flag through the compiler.
 
19607
wl=$lt_lt_prog_compiler_wl_GCJ
 
19608
 
 
19609
# Object file suffix (normally "o").
 
19610
objext="$ac_objext"
 
19611
 
 
19612
# Old archive suffix (normally "a").
 
19613
libext="$libext"
 
19614
 
 
19615
# Shared library suffix (normally ".so").
 
19616
shrext_cmds='$shrext_cmds'
 
19617
 
 
19618
# Executable file suffix (normally "").
 
19619
exeext="$exeext"
 
19620
 
 
19621
# Additional compiler flags for building library objects.
 
19622
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19623
pic_mode=$pic_mode
 
19624
 
 
19625
# What is the maximum length of a command?
 
19626
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19627
 
 
19628
# Does compiler simultaneously support -c and -o options?
 
19629
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19630
 
 
19631
# Must we lock files when doing compilation ?
 
19632
need_locks=$lt_need_locks
 
19633
 
 
19634
# Do we need the lib prefix for modules?
 
19635
need_lib_prefix=$need_lib_prefix
 
19636
 
 
19637
# Do we need a version for libraries?
 
19638
need_version=$need_version
 
19639
 
 
19640
# Whether dlopen is supported.
 
19641
dlopen_support=$enable_dlopen
 
19642
 
 
19643
# Whether dlopen of programs is supported.
 
19644
dlopen_self=$enable_dlopen_self
 
19645
 
 
19646
# Whether dlopen of statically linked programs is supported.
 
19647
dlopen_self_static=$enable_dlopen_self_static
 
19648
 
 
19649
# Compiler flag to prevent dynamic linking.
 
19650
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19651
 
 
19652
# Compiler flag to turn off builtin functions.
 
19653
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19654
 
 
19655
# Compiler flag to allow reflexive dlopens.
 
19656
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19657
 
 
19658
# Compiler flag to generate shared objects directly from archives.
 
19659
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19660
 
 
19661
# Compiler flag to generate thread-safe objects.
 
19662
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19663
 
 
19664
# Library versioning type.
 
19665
version_type=$version_type
 
19666
 
 
19667
# Format of library name prefix.
 
19668
libname_spec=$lt_libname_spec
 
19669
 
 
19670
# List of archive names.  First name is the real one, the rest are links.
 
19671
# The last name is the one that the linker finds with -lNAME.
 
19672
library_names_spec=$lt_library_names_spec
 
19673
 
 
19674
# The coded name of the library, if different from the real name.
 
19675
soname_spec=$lt_soname_spec
 
19676
 
 
19677
# Commands used to build and install an old-style archive.
 
19678
RANLIB=$lt_RANLIB
 
19679
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19680
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19681
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19682
 
 
19683
# Create an old-style archive from a shared archive.
 
19684
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19685
 
 
19686
# Create a temporary old-style archive to link instead of a shared archive.
 
19687
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19688
 
 
19689
# Commands used to build and install a shared archive.
 
19690
archive_cmds=$lt_archive_cmds_GCJ
 
19691
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19692
postinstall_cmds=$lt_postinstall_cmds
 
19693
postuninstall_cmds=$lt_postuninstall_cmds
 
19694
 
 
19695
# Commands used to build a loadable module (assumed same as above if empty)
 
19696
module_cmds=$lt_module_cmds_GCJ
 
19697
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19698
 
 
19699
# Commands to strip libraries.
 
19700
old_striplib=$lt_old_striplib
 
19701
striplib=$lt_striplib
 
19702
 
 
19703
# Dependencies to place before the objects being linked to create a
 
19704
# shared library.
 
19705
predep_objects=$lt_predep_objects_GCJ
 
19706
 
 
19707
# Dependencies to place after the objects being linked to create a
 
19708
# shared library.
 
19709
postdep_objects=$lt_postdep_objects_GCJ
 
19710
 
 
19711
# Dependencies to place before the objects being linked to create a
 
19712
# shared library.
 
19713
predeps=$lt_predeps_GCJ
 
19714
 
 
19715
# Dependencies to place after the objects being linked to create a
 
19716
# shared library.
 
19717
postdeps=$lt_postdeps_GCJ
 
19718
 
 
19719
# The library search path used internally by the compiler when linking
 
19720
# a shared library.
 
19721
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19722
 
 
19723
# Method to check whether dependent libraries are shared objects.
 
19724
deplibs_check_method=$lt_deplibs_check_method
 
19725
 
 
19726
# Command to use when deplibs_check_method == file_magic.
 
19727
file_magic_cmd=$lt_file_magic_cmd
 
19728
 
 
19729
# Flag that allows shared libraries with undefined symbols to be built.
 
19730
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19731
 
 
19732
# Flag that forces no undefined symbols.
 
19733
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19734
 
 
19735
# Commands used to finish a libtool library installation in a directory.
 
19736
finish_cmds=$lt_finish_cmds
 
19737
 
 
19738
# Same as above, but a single script fragment to be evaled but not shown.
 
19739
finish_eval=$lt_finish_eval
 
19740
 
 
19741
# Take the output of nm and produce a listing of raw symbols and C names.
 
19742
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19743
 
 
19744
# Transform the output of nm in a proper C declaration
 
19745
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19746
 
 
19747
# Transform the output of nm in a C name address pair
 
19748
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19749
 
 
19750
# This is the shared library runtime path variable.
 
19751
runpath_var=$runpath_var
 
19752
 
 
19753
# This is the shared library path variable.
 
19754
shlibpath_var=$shlibpath_var
 
19755
 
 
19756
# Is shlibpath searched before the hard-coded library search path?
 
19757
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19758
 
 
19759
# How to hardcode a shared library path into an executable.
 
19760
hardcode_action=$hardcode_action_GCJ
 
19761
 
 
19762
# Whether we should hardcode library paths into libraries.
 
19763
hardcode_into_libs=$hardcode_into_libs
 
19764
 
 
19765
# Flag to hardcode \$libdir into a binary during linking.
 
19766
# This must work even if \$libdir does not exist.
 
19767
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19768
 
 
19769
# If ld is used when linking, flag to hardcode \$libdir into
 
19770
# a binary during linking. This must work even if \$libdir does
 
19771
# not exist.
 
19772
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19773
 
 
19774
# Whether we need a single -rpath flag with a separated argument.
 
19775
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19776
 
 
19777
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19778
# resulting binary.
 
19779
hardcode_direct=$hardcode_direct_GCJ
 
19780
 
 
19781
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19782
# resulting binary.
 
19783
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19784
 
 
19785
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19786
# the resulting binary.
 
19787
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19788
 
 
19789
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19790
# and all subsequent libraries and executables linked against it.
 
19791
hardcode_automatic=$hardcode_automatic_GCJ
 
19792
 
 
19793
# Variables whose values should be saved in libtool wrapper scripts and
 
19794
# restored at relink time.
 
19795
variables_saved_for_relink="$variables_saved_for_relink"
 
19796
 
 
19797
# Whether libtool must link a program against all its dependency libraries.
 
19798
link_all_deplibs=$link_all_deplibs_GCJ
 
19799
 
 
19800
# Compile-time system search path for libraries
 
19801
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19802
 
 
19803
# Run-time system search path for libraries
 
19804
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19805
 
 
19806
# Fix the shell variable \$srcfile for the compiler.
 
19807
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19808
 
 
19809
# Set to yes if exported symbols are required.
 
19810
always_export_symbols=$always_export_symbols_GCJ
 
19811
 
 
19812
# The commands to list exported symbols.
 
19813
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19814
 
 
19815
# The commands to extract the exported symbol list from a shared archive.
 
19816
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19817
 
 
19818
# Symbols that should not be listed in the preloaded symbols.
 
19819
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19820
 
 
19821
# Symbols that must always be exported.
 
19822
include_expsyms=$lt_include_expsyms_GCJ
 
19823
 
 
19824
# ### END LIBTOOL TAG CONFIG: $tagname
 
19825
 
 
19826
__EOF__
 
19827
 
 
19828
 
 
19829
else
 
19830
  # If there is no Makefile yet, we rely on a make rule to execute
 
19831
  # `config.status --recheck' to rerun these tests and create the
 
19832
  # libtool script then.
 
19833
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19834
  if test -f "$ltmain_in"; then
 
19835
    test -f Makefile && make "$ltmain"
 
19836
  fi
 
19837
fi
 
19838
 
 
19839
 
 
19840
ac_ext=c
 
19841
ac_cpp='$CPP $CPPFLAGS'
 
19842
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19843
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19844
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19845
 
 
19846
CC="$lt_save_CC"
 
19847
 
 
19848
        else
 
19849
          tagname=""
 
19850
        fi
 
19851
        ;;
 
19852
 
 
19853
      RC)
 
19854
 
 
19855
 
 
19856
 
 
19857
# Source file extension for RC test sources.
 
19858
ac_ext=rc
 
19859
 
 
19860
# Object file extension for compiled RC test sources.
 
19861
objext=o
 
19862
objext_RC=$objext
 
19863
 
 
19864
# Code to be used in simple compile tests
 
19865
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19866
 
 
19867
# Code to be used in simple link tests
 
19868
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19869
 
 
19870
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19871
 
 
19872
# If no C compiler was specified, use CC.
 
19873
LTCC=${LTCC-"$CC"}
 
19874
 
 
19875
# Allow CC to be a program name with arguments.
 
19876
compiler=$CC
 
19877
 
 
19878
 
 
19879
# Allow CC to be a program name with arguments.
 
19880
lt_save_CC="$CC"
 
19881
CC=${RC-"windres"}
 
19882
compiler=$CC
 
19883
compiler_RC=$CC
 
19884
lt_cv_prog_compiler_c_o_RC=yes
 
19885
 
 
19886
# The else clause should only fire when bootstrapping the
 
19887
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19888
# with your package, and you will get complaints that there are
 
19889
# no rules to generate ltmain.sh.
 
19890
if test -f "$ltmain"; then
 
19891
  # See if we are running on zsh, and set the options which allow our commands through
 
19892
  # without removal of \ escapes.
 
19893
  if test -n "${ZSH_VERSION+set}" ; then
 
19894
    setopt NO_GLOB_SUBST
 
19895
  fi
 
19896
  # Now quote all the things that may contain metacharacters while being
 
19897
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19898
  # variables and quote the copies for generation of the libtool script.
 
19899
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19900
    SED SHELL STRIP \
 
19901
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19902
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19903
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19904
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19905
    lt_cv_sys_global_symbol_to_c_name_address \
 
19906
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19907
    old_postinstall_cmds old_postuninstall_cmds \
 
19908
    compiler_RC \
 
19909
    CC_RC \
 
19910
    LD_RC \
 
19911
    lt_prog_compiler_wl_RC \
 
19912
    lt_prog_compiler_pic_RC \
 
19913
    lt_prog_compiler_static_RC \
 
19914
    lt_prog_compiler_no_builtin_flag_RC \
 
19915
    export_dynamic_flag_spec_RC \
 
19916
    thread_safe_flag_spec_RC \
 
19917
    whole_archive_flag_spec_RC \
 
19918
    enable_shared_with_static_runtimes_RC \
 
19919
    old_archive_cmds_RC \
 
19920
    old_archive_from_new_cmds_RC \
 
19921
    predep_objects_RC \
 
19922
    postdep_objects_RC \
 
19923
    predeps_RC \
 
19924
    postdeps_RC \
 
19925
    compiler_lib_search_path_RC \
 
19926
    archive_cmds_RC \
 
19927
    archive_expsym_cmds_RC \
 
19928
    postinstall_cmds_RC \
 
19929
    postuninstall_cmds_RC \
 
19930
    old_archive_from_expsyms_cmds_RC \
 
19931
    allow_undefined_flag_RC \
 
19932
    no_undefined_flag_RC \
 
19933
    export_symbols_cmds_RC \
 
19934
    hardcode_libdir_flag_spec_RC \
 
19935
    hardcode_libdir_flag_spec_ld_RC \
 
19936
    hardcode_libdir_separator_RC \
 
19937
    hardcode_automatic_RC \
 
19938
    module_cmds_RC \
 
19939
    module_expsym_cmds_RC \
 
19940
    lt_cv_prog_compiler_c_o_RC \
 
19941
    exclude_expsyms_RC \
 
19942
    include_expsyms_RC; do
 
19943
 
 
19944
    case $var in
 
19945
    old_archive_cmds_RC | \
 
19946
    old_archive_from_new_cmds_RC | \
 
19947
    archive_cmds_RC | \
 
19948
    archive_expsym_cmds_RC | \
 
19949
    module_cmds_RC | \
 
19950
    module_expsym_cmds_RC | \
 
19951
    old_archive_from_expsyms_cmds_RC | \
 
19952
    export_symbols_cmds_RC | \
 
19953
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19954
    postinstall_cmds | postuninstall_cmds | \
 
19955
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19956
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19957
      # Double-quote double-evaled strings.
 
19958
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19959
      ;;
 
19960
    *)
 
19961
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19962
      ;;
 
19963
    esac
 
19964
  done
 
19965
 
 
19966
  case $lt_echo in
 
19967
  *'\$0 --fallback-echo"')
 
19968
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19969
    ;;
 
19970
  esac
 
19971
 
 
19972
cfgfile="$ofile"
 
19973
 
 
19974
  cat <<__EOF__ >> "$cfgfile"
 
19975
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19976
 
 
19977
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19978
 
 
19979
# Shell to use when invoking shell scripts.
 
19980
SHELL=$lt_SHELL
 
19981
 
 
19982
# Whether or not to build shared libraries.
 
19983
build_libtool_libs=$enable_shared
 
19984
 
 
19985
# Whether or not to build static libraries.
 
19986
build_old_libs=$enable_static
 
19987
 
 
19988
# Whether or not to add -lc for building shared libraries.
 
19989
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19990
 
 
19991
# Whether or not to disallow shared libs when runtime libs are static
 
19992
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19993
 
 
19994
# Whether or not to optimize for fast installation.
 
19995
fast_install=$enable_fast_install
 
19996
 
 
19997
# The host system.
 
19998
host_alias=$host_alias
 
19999
host=$host
 
20000
 
 
20001
# An echo program that does not interpret backslashes.
 
20002
echo=$lt_echo
 
20003
 
 
20004
# The archiver.
 
20005
AR=$lt_AR
 
20006
AR_FLAGS=$lt_AR_FLAGS
 
20007
 
 
20008
# A C compiler.
 
20009
LTCC=$lt_LTCC
 
20010
 
 
20011
# A language-specific compiler.
 
20012
CC=$lt_compiler_RC
 
20013
 
 
20014
# Is the compiler the GNU C compiler?
 
20015
with_gcc=$GCC_RC
 
20016
 
 
20017
# An ERE matcher.
 
20018
EGREP=$lt_EGREP
 
20019
 
 
20020
# The linker used to build libraries.
 
20021
LD=$lt_LD_RC
 
20022
 
 
20023
# Whether we need hard or soft links.
 
20024
LN_S=$lt_LN_S
 
20025
 
 
20026
# A BSD-compatible nm program.
 
20027
NM=$lt_NM
 
20028
 
 
20029
# A symbol stripping program
 
20030
STRIP=$lt_STRIP
 
20031
 
 
20032
# Used to examine libraries when file_magic_cmd begins "file"
 
20033
MAGIC_CMD=$MAGIC_CMD
 
20034
 
 
20035
# Used on cygwin: DLL creation program.
 
20036
DLLTOOL="$DLLTOOL"
 
20037
 
 
20038
# Used on cygwin: object dumper.
 
20039
OBJDUMP="$OBJDUMP"
 
20040
 
 
20041
# Used on cygwin: assembler.
 
20042
AS="$AS"
 
20043
 
 
20044
# The name of the directory that contains temporary libtool files.
 
20045
objdir=$objdir
 
20046
 
 
20047
# How to create reloadable object files.
 
20048
reload_flag=$lt_reload_flag
 
20049
reload_cmds=$lt_reload_cmds
 
20050
 
 
20051
# How to pass a linker flag through the compiler.
 
20052
wl=$lt_lt_prog_compiler_wl_RC
 
20053
 
 
20054
# Object file suffix (normally "o").
 
20055
objext="$ac_objext"
 
20056
 
 
20057
# Old archive suffix (normally "a").
 
20058
libext="$libext"
 
20059
 
 
20060
# Shared library suffix (normally ".so").
 
20061
shrext_cmds='$shrext_cmds'
 
20062
 
 
20063
# Executable file suffix (normally "").
 
20064
exeext="$exeext"
 
20065
 
 
20066
# Additional compiler flags for building library objects.
 
20067
pic_flag=$lt_lt_prog_compiler_pic_RC
 
20068
pic_mode=$pic_mode
 
20069
 
 
20070
# What is the maximum length of a command?
 
20071
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20072
 
 
20073
# Does compiler simultaneously support -c and -o options?
 
20074
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
20075
 
 
20076
# Must we lock files when doing compilation ?
 
20077
need_locks=$lt_need_locks
 
20078
 
 
20079
# Do we need the lib prefix for modules?
 
20080
need_lib_prefix=$need_lib_prefix
 
20081
 
 
20082
# Do we need a version for libraries?
 
20083
need_version=$need_version
 
20084
 
 
20085
# Whether dlopen is supported.
 
20086
dlopen_support=$enable_dlopen
 
20087
 
 
20088
# Whether dlopen of programs is supported.
 
20089
dlopen_self=$enable_dlopen_self
 
20090
 
 
20091
# Whether dlopen of statically linked programs is supported.
 
20092
dlopen_self_static=$enable_dlopen_self_static
 
20093
 
 
20094
# Compiler flag to prevent dynamic linking.
 
20095
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20096
 
 
20097
# Compiler flag to turn off builtin functions.
 
20098
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20099
 
 
20100
# Compiler flag to allow reflexive dlopens.
 
20101
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20102
 
 
20103
# Compiler flag to generate shared objects directly from archives.
 
20104
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20105
 
 
20106
# Compiler flag to generate thread-safe objects.
 
20107
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20108
 
 
20109
# Library versioning type.
 
20110
version_type=$version_type
 
20111
 
 
20112
# Format of library name prefix.
 
20113
libname_spec=$lt_libname_spec
 
20114
 
 
20115
# List of archive names.  First name is the real one, the rest are links.
 
20116
# The last name is the one that the linker finds with -lNAME.
 
20117
library_names_spec=$lt_library_names_spec
 
20118
 
 
20119
# The coded name of the library, if different from the real name.
 
20120
soname_spec=$lt_soname_spec
 
20121
 
 
20122
# Commands used to build and install an old-style archive.
 
20123
RANLIB=$lt_RANLIB
 
20124
old_archive_cmds=$lt_old_archive_cmds_RC
 
20125
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20126
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20127
 
 
20128
# Create an old-style archive from a shared archive.
 
20129
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20130
 
 
20131
# Create a temporary old-style archive to link instead of a shared archive.
 
20132
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20133
 
 
20134
# Commands used to build and install a shared archive.
 
20135
archive_cmds=$lt_archive_cmds_RC
 
20136
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20137
postinstall_cmds=$lt_postinstall_cmds
 
20138
postuninstall_cmds=$lt_postuninstall_cmds
 
20139
 
 
20140
# Commands used to build a loadable module (assumed same as above if empty)
 
20141
module_cmds=$lt_module_cmds_RC
 
20142
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20143
 
 
20144
# Commands to strip libraries.
 
20145
old_striplib=$lt_old_striplib
 
20146
striplib=$lt_striplib
 
20147
 
 
20148
# Dependencies to place before the objects being linked to create a
 
20149
# shared library.
 
20150
predep_objects=$lt_predep_objects_RC
 
20151
 
 
20152
# Dependencies to place after the objects being linked to create a
 
20153
# shared library.
 
20154
postdep_objects=$lt_postdep_objects_RC
 
20155
 
 
20156
# Dependencies to place before the objects being linked to create a
 
20157
# shared library.
 
20158
predeps=$lt_predeps_RC
 
20159
 
 
20160
# Dependencies to place after the objects being linked to create a
 
20161
# shared library.
 
20162
postdeps=$lt_postdeps_RC
 
20163
 
 
20164
# The library search path used internally by the compiler when linking
 
20165
# a shared library.
 
20166
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20167
 
 
20168
# Method to check whether dependent libraries are shared objects.
 
20169
deplibs_check_method=$lt_deplibs_check_method
 
20170
 
 
20171
# Command to use when deplibs_check_method == file_magic.
 
20172
file_magic_cmd=$lt_file_magic_cmd
 
20173
 
 
20174
# Flag that allows shared libraries with undefined symbols to be built.
 
20175
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20176
 
 
20177
# Flag that forces no undefined symbols.
 
20178
no_undefined_flag=$lt_no_undefined_flag_RC
 
20179
 
 
20180
# Commands used to finish a libtool library installation in a directory.
 
20181
finish_cmds=$lt_finish_cmds
 
20182
 
 
20183
# Same as above, but a single script fragment to be evaled but not shown.
 
20184
finish_eval=$lt_finish_eval
 
20185
 
 
20186
# Take the output of nm and produce a listing of raw symbols and C names.
 
20187
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20188
 
 
20189
# Transform the output of nm in a proper C declaration
 
20190
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20191
 
 
20192
# Transform the output of nm in a C name address pair
 
20193
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20194
 
 
20195
# This is the shared library runtime path variable.
 
20196
runpath_var=$runpath_var
 
20197
 
 
20198
# This is the shared library path variable.
 
20199
shlibpath_var=$shlibpath_var
 
20200
 
 
20201
# Is shlibpath searched before the hard-coded library search path?
 
20202
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20203
 
 
20204
# How to hardcode a shared library path into an executable.
 
20205
hardcode_action=$hardcode_action_RC
 
20206
 
 
20207
# Whether we should hardcode library paths into libraries.
 
20208
hardcode_into_libs=$hardcode_into_libs
 
20209
 
 
20210
# Flag to hardcode \$libdir into a binary during linking.
 
20211
# This must work even if \$libdir does not exist.
 
20212
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20213
 
 
20214
# If ld is used when linking, flag to hardcode \$libdir into
 
20215
# a binary during linking. This must work even if \$libdir does
 
20216
# not exist.
 
20217
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20218
 
 
20219
# Whether we need a single -rpath flag with a separated argument.
 
20220
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20221
 
 
20222
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20223
# resulting binary.
 
20224
hardcode_direct=$hardcode_direct_RC
 
20225
 
 
20226
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20227
# resulting binary.
 
20228
hardcode_minus_L=$hardcode_minus_L_RC
 
20229
 
 
20230
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20231
# the resulting binary.
 
20232
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20233
 
 
20234
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20235
# and all subsequent libraries and executables linked against it.
 
20236
hardcode_automatic=$hardcode_automatic_RC
 
20237
 
 
20238
# Variables whose values should be saved in libtool wrapper scripts and
 
20239
# restored at relink time.
 
20240
variables_saved_for_relink="$variables_saved_for_relink"
 
20241
 
 
20242
# Whether libtool must link a program against all its dependency libraries.
 
20243
link_all_deplibs=$link_all_deplibs_RC
 
20244
 
 
20245
# Compile-time system search path for libraries
 
20246
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20247
 
 
20248
# Run-time system search path for libraries
 
20249
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20250
 
 
20251
# Fix the shell variable \$srcfile for the compiler.
 
20252
fix_srcfile_path="$fix_srcfile_path_RC"
 
20253
 
 
20254
# Set to yes if exported symbols are required.
 
20255
always_export_symbols=$always_export_symbols_RC
 
20256
 
 
20257
# The commands to list exported symbols.
 
20258
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20259
 
 
20260
# The commands to extract the exported symbol list from a shared archive.
 
20261
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20262
 
 
20263
# Symbols that should not be listed in the preloaded symbols.
 
20264
exclude_expsyms=$lt_exclude_expsyms_RC
 
20265
 
 
20266
# Symbols that must always be exported.
 
20267
include_expsyms=$lt_include_expsyms_RC
 
20268
 
 
20269
# ### END LIBTOOL TAG CONFIG: $tagname
 
20270
 
 
20271
__EOF__
 
20272
 
 
20273
 
 
20274
else
 
20275
  # If there is no Makefile yet, we rely on a make rule to execute
 
20276
  # `config.status --recheck' to rerun these tests and create the
 
20277
  # libtool script then.
 
20278
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20279
  if test -f "$ltmain_in"; then
 
20280
    test -f Makefile && make "$ltmain"
 
20281
  fi
 
20282
fi
 
20283
 
 
20284
 
 
20285
ac_ext=c
 
20286
ac_cpp='$CPP $CPPFLAGS'
 
20287
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20288
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20289
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20290
 
 
20291
CC="$lt_save_CC"
 
20292
 
 
20293
        ;;
 
20294
 
 
20295
      *)
 
20296
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20297
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20298
   { (exit 1); exit 1; }; }
 
20299
        ;;
 
20300
      esac
 
20301
 
 
20302
      # Append the new tag name to the list of available tags.
 
20303
      if test -n "$tagname" ; then
 
20304
      available_tags="$available_tags $tagname"
 
20305
    fi
 
20306
    fi
 
20307
  done
 
20308
  IFS="$lt_save_ifs"
 
20309
 
 
20310
  # Now substitute the updated list of available tags.
 
20311
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20312
    mv "${ofile}T" "$ofile"
 
20313
    chmod +x "$ofile"
 
20314
  else
 
20315
    rm -f "${ofile}T"
 
20316
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20317
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20318
   { (exit 1); exit 1; }; }
 
20319
  fi
 
20320
fi
 
20321
 
 
20322
 
 
20323
 
 
20324
# This can be used to rebuild libtool when needed
 
20325
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20326
 
 
20327
# Always use our own libtool.
 
20328
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20329
 
 
20330
# Prevent multiple expansion
 
20331
 
 
20332
 
 
20333
 
 
20334
 
 
20335
 
 
20336
 
 
20337
 
 
20338
 
 
20339
 
 
20340
 
 
20341
 
 
20342
 
 
20343
 
 
20344
 
 
20345
 
 
20346
 
 
20347
 
 
20348
 
 
20349
 
 
20350
 
 
20351
 
 
20352
 
 
20353
 
 
20354
    # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
 
20355
if test "${enable_compile_warnings+set}" = set; then
 
20356
  enableval="$enable_compile_warnings"
 
20357
 
 
20358
else
 
20359
  enable_compile_warnings="yes"
 
20360
fi;
 
20361
 
 
20362
    warnCFLAGS=
 
20363
    if test "x$GCC" != xyes; then
 
20364
        enable_compile_warnings=no
 
20365
    fi
 
20366
 
 
20367
    warning_flags=
 
20368
    realsave_CFLAGS="$CFLAGS"
 
20369
 
 
20370
    case "$enable_compile_warnings" in
 
20371
    no)
 
20372
        warning_flags=
 
20373
        ;;
 
20374
    minimum)
 
20375
        warning_flags="-Wall"
 
20376
        ;;
 
20377
    yes)
 
20378
        warning_flags="-Wall -Wmissing-prototypes"
 
20379
        ;;
 
20380
    maximum|error)
 
20381
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
20382
        CFLAGS="$warning_flags $CFLAGS"
 
20383
        for option in -Wno-sign-compare; do
 
20384
                SAVE_CFLAGS="$CFLAGS"
 
20385
                CFLAGS="$CFLAGS $option"
 
20386
                echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
 
20387
echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
 
20388
                cat >conftest.$ac_ext <<_ACEOF
 
20389
/* confdefs.h.  */
 
20390
_ACEOF
 
20391
cat confdefs.h >>conftest.$ac_ext
 
20392
cat >>conftest.$ac_ext <<_ACEOF
 
20393
/* end confdefs.h.  */
 
20394
 
 
20395
int
 
20396
main ()
 
20397
{
 
20398
 
 
20399
  ;
 
20400
  return 0;
 
20401
}
 
20402
_ACEOF
 
20403
rm -f conftest.$ac_objext
 
20404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20405
  (eval $ac_compile) 2>conftest.er1
 
20406
  ac_status=$?
 
20407
  grep -v '^ *+' conftest.er1 >conftest.err
 
20408
  rm -f conftest.er1
 
20409
  cat conftest.err >&5
 
20410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20411
  (exit $ac_status); } &&
 
20412
         { ac_try='test -z "$ac_c_werror_flag"
 
20413
                         || test ! -s conftest.err'
 
20414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20415
  (eval $ac_try) 2>&5
 
20416
  ac_status=$?
 
20417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20418
  (exit $ac_status); }; } &&
 
20419
         { ac_try='test -s conftest.$ac_objext'
 
20420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20421
  (eval $ac_try) 2>&5
 
20422
  ac_status=$?
 
20423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20424
  (exit $ac_status); }; }; then
 
20425
  has_option=yes
 
20426
else
 
20427
  echo "$as_me: failed program was:" >&5
 
20428
sed 's/^/| /' conftest.$ac_ext >&5
 
20429
 
 
20430
has_option=no
 
20431
fi
 
20432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20433
                CFLAGS="$SAVE_CFLAGS"
 
20434
                echo "$as_me:$LINENO: result: $has_option" >&5
 
20435
echo "${ECHO_T}$has_option" >&6
 
20436
                if test $has_option = yes; then
 
20437
                  warning_flags="$warning_flags $option"
 
20438
                fi
 
20439
                unset has_option
 
20440
                unset SAVE_CFLAGS
 
20441
        done
 
20442
        unset option
 
20443
        if test "$enable_compile_warnings" = "error" ; then
 
20444
            warning_flags="$warning_flags -Werror"
 
20445
        fi
 
20446
        ;;
 
20447
    *)
 
20448
        { { echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
 
20449
echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
 
20450
   { (exit 1); exit 1; }; }
 
20451
        ;;
 
20452
    esac
 
20453
    CFLAGS="$realsave_CFLAGS"
 
20454
    echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
 
20455
echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
 
20456
    echo "$as_me:$LINENO: result: $warning_flags" >&5
 
20457
echo "${ECHO_T}$warning_flags" >&6
 
20458
 
 
20459
    # Check whether --enable-iso-c or --disable-iso-c was given.
 
20460
if test "${enable_iso_c+set}" = set; then
 
20461
  enableval="$enable_iso_c"
 
20462
 
 
20463
else
 
20464
  enable_iso_c=no
 
20465
fi;
 
20466
 
 
20467
    echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
 
20468
echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
 
20469
    complCFLAGS=
 
20470
    if test "x$enable_iso_c" != "xno"; then
 
20471
        if test "x$GCC" = "xyes"; then
 
20472
        case " $CFLAGS " in
 
20473
            *\ \        -ansi\ \        *) ;;
 
20474
            *) complCFLAGS="$complCFLAGS -ansi" ;;
 
20475
        esac
 
20476
        case " $CFLAGS " in
 
20477
            *\ \        -pedantic\ \    *) ;;
 
20478
            *) complCFLAGS="$complCFLAGS -pedantic" ;;
 
20479
        esac
 
20480
        fi
 
20481
    fi
 
20482
    echo "$as_me:$LINENO: result: $complCFLAGS" >&5
 
20483
echo "${ECHO_T}$complCFLAGS" >&6
 
20484
 
 
20485
    WARN_CFLAGS="$warning_flags $complCFLAGS"
 
20486
 
 
20487
 
 
20488
 
 
20489
GETTEXT_PACKAGE=libgnomecanvas-2.0
 
20490
 
 
20491
 
 
20492
cat >>confdefs.h <<_ACEOF
 
20493
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
20494
_ACEOF
 
20495
 
 
20496
 
 
20497
ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gu he hi hr hu id is it ja kn ko li lt lv mk ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@ije sr@Latn sv ta tr uk vi wa yi zh_CN zh_TW"
 
20498
 
 
20499
 
 
20500
for ac_header in locale.h
 
20501
do
 
20502
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20503
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20504
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20505
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20506
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20508
fi
 
20509
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20510
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20511
else
 
20512
  # Is the header compilable?
 
20513
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20514
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20515
cat >conftest.$ac_ext <<_ACEOF
 
20516
/* confdefs.h.  */
 
20517
_ACEOF
 
20518
cat confdefs.h >>conftest.$ac_ext
 
20519
cat >>conftest.$ac_ext <<_ACEOF
 
20520
/* end confdefs.h.  */
 
20521
$ac_includes_default
 
20522
#include <$ac_header>
 
20523
_ACEOF
 
20524
rm -f conftest.$ac_objext
 
20525
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20526
  (eval $ac_compile) 2>conftest.er1
 
20527
  ac_status=$?
 
20528
  grep -v '^ *+' conftest.er1 >conftest.err
 
20529
  rm -f conftest.er1
 
20530
  cat conftest.err >&5
 
20531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20532
  (exit $ac_status); } &&
 
20533
         { ac_try='test -z "$ac_c_werror_flag"
 
20534
                         || test ! -s conftest.err'
 
20535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20536
  (eval $ac_try) 2>&5
 
20537
  ac_status=$?
 
20538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20539
  (exit $ac_status); }; } &&
 
20540
         { ac_try='test -s conftest.$ac_objext'
 
20541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20542
  (eval $ac_try) 2>&5
 
20543
  ac_status=$?
 
20544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20545
  (exit $ac_status); }; }; then
 
20546
  ac_header_compiler=yes
 
20547
else
 
20548
  echo "$as_me: failed program was:" >&5
 
20549
sed 's/^/| /' conftest.$ac_ext >&5
 
20550
 
 
20551
ac_header_compiler=no
 
20552
fi
 
20553
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20554
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20555
echo "${ECHO_T}$ac_header_compiler" >&6
 
20556
 
 
20557
# Is the header present?
 
20558
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20559
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20560
cat >conftest.$ac_ext <<_ACEOF
 
20561
/* confdefs.h.  */
 
20562
_ACEOF
 
20563
cat confdefs.h >>conftest.$ac_ext
 
20564
cat >>conftest.$ac_ext <<_ACEOF
 
20565
/* end confdefs.h.  */
 
20566
#include <$ac_header>
 
20567
_ACEOF
 
20568
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20569
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20570
  ac_status=$?
 
20571
  grep -v '^ *+' conftest.er1 >conftest.err
 
20572
  rm -f conftest.er1
 
20573
  cat conftest.err >&5
 
20574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20575
  (exit $ac_status); } >/dev/null; then
 
20576
  if test -s conftest.err; then
 
20577
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20578
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20579
  else
 
20580
    ac_cpp_err=
 
20581
  fi
 
20582
else
 
20583
  ac_cpp_err=yes
 
20584
fi
 
20585
if test -z "$ac_cpp_err"; then
 
20586
  ac_header_preproc=yes
 
20587
else
 
20588
  echo "$as_me: failed program was:" >&5
 
20589
sed 's/^/| /' conftest.$ac_ext >&5
 
20590
 
 
20591
  ac_header_preproc=no
 
20592
fi
 
20593
rm -f conftest.err conftest.$ac_ext
 
20594
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20595
echo "${ECHO_T}$ac_header_preproc" >&6
 
20596
 
 
20597
# So?  What about this header?
 
20598
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20599
  yes:no: )
 
20600
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20601
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20602
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20603
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20604
    ac_header_preproc=yes
 
20605
    ;;
 
20606
  no:yes:* )
 
20607
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20608
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20609
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20610
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20611
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20612
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20613
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20614
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20615
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20616
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20617
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20618
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20619
    (
 
20620
      cat <<\_ASBOX
 
20621
## ----------------------------------------------------------------------------- ##
 
20622
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas ##
 
20623
## ----------------------------------------------------------------------------- ##
 
20624
_ASBOX
 
20625
    ) |
 
20626
      sed "s/^/$as_me: WARNING:     /" >&2
 
20627
    ;;
 
20628
esac
 
20629
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20630
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20631
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20632
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20633
else
 
20634
  eval "$as_ac_Header=\$ac_header_preproc"
 
20635
fi
 
20636
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20637
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20638
 
 
20639
fi
 
20640
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20641
  cat >>confdefs.h <<_ACEOF
 
20642
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20643
_ACEOF
 
20644
 
 
20645
fi
 
20646
 
 
20647
done
 
20648
 
 
20649
    if test $ac_cv_header_locale_h = yes; then
 
20650
    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
20651
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
 
20652
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
20653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20654
else
 
20655
  cat >conftest.$ac_ext <<_ACEOF
 
20656
/* confdefs.h.  */
 
20657
_ACEOF
 
20658
cat confdefs.h >>conftest.$ac_ext
 
20659
cat >>conftest.$ac_ext <<_ACEOF
 
20660
/* end confdefs.h.  */
 
20661
#include <locale.h>
 
20662
int
 
20663
main ()
 
20664
{
 
20665
return LC_MESSAGES
 
20666
  ;
 
20667
  return 0;
 
20668
}
 
20669
_ACEOF
 
20670
rm -f conftest.$ac_objext conftest$ac_exeext
 
20671
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20672
  (eval $ac_link) 2>conftest.er1
 
20673
  ac_status=$?
 
20674
  grep -v '^ *+' conftest.er1 >conftest.err
 
20675
  rm -f conftest.er1
 
20676
  cat conftest.err >&5
 
20677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20678
  (exit $ac_status); } &&
 
20679
         { ac_try='test -z "$ac_c_werror_flag"
 
20680
                         || test ! -s conftest.err'
 
20681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20682
  (eval $ac_try) 2>&5
 
20683
  ac_status=$?
 
20684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20685
  (exit $ac_status); }; } &&
 
20686
         { ac_try='test -s conftest$ac_exeext'
 
20687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20688
  (eval $ac_try) 2>&5
 
20689
  ac_status=$?
 
20690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20691
  (exit $ac_status); }; }; then
 
20692
  am_cv_val_LC_MESSAGES=yes
 
20693
else
 
20694
  echo "$as_me: failed program was:" >&5
 
20695
sed 's/^/| /' conftest.$ac_ext >&5
 
20696
 
 
20697
am_cv_val_LC_MESSAGES=no
 
20698
fi
 
20699
rm -f conftest.err conftest.$ac_objext \
 
20700
      conftest$ac_exeext conftest.$ac_ext
 
20701
fi
 
20702
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 
20703
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
 
20704
    if test $am_cv_val_LC_MESSAGES = yes; then
 
20705
 
 
20706
cat >>confdefs.h <<\_ACEOF
 
20707
#define HAVE_LC_MESSAGES 1
 
20708
_ACEOF
 
20709
 
 
20710
    fi
 
20711
  fi
 
20712
     USE_NLS=yes
 
20713
 
 
20714
 
 
20715
    gt_cv_have_gettext=no
 
20716
 
 
20717
    CATOBJEXT=NONE
 
20718
    XGETTEXT=:
 
20719
    INTLLIBS=
 
20720
 
 
20721
    if test "${ac_cv_header_libintl_h+set}" = set; then
 
20722
  echo "$as_me:$LINENO: checking for libintl.h" >&5
 
20723
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
 
20724
if test "${ac_cv_header_libintl_h+set}" = set; then
 
20725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20726
fi
 
20727
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
20728
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
 
20729
else
 
20730
  # Is the header compilable?
 
20731
echo "$as_me:$LINENO: checking libintl.h usability" >&5
 
20732
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
 
20733
cat >conftest.$ac_ext <<_ACEOF
 
20734
/* confdefs.h.  */
 
20735
_ACEOF
 
20736
cat confdefs.h >>conftest.$ac_ext
 
20737
cat >>conftest.$ac_ext <<_ACEOF
 
20738
/* end confdefs.h.  */
 
20739
$ac_includes_default
 
20740
#include <libintl.h>
 
20741
_ACEOF
 
20742
rm -f conftest.$ac_objext
 
20743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20744
  (eval $ac_compile) 2>conftest.er1
 
20745
  ac_status=$?
 
20746
  grep -v '^ *+' conftest.er1 >conftest.err
 
20747
  rm -f conftest.er1
 
20748
  cat conftest.err >&5
 
20749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20750
  (exit $ac_status); } &&
 
20751
         { ac_try='test -z "$ac_c_werror_flag"
 
20752
                         || test ! -s conftest.err'
 
20753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20754
  (eval $ac_try) 2>&5
 
20755
  ac_status=$?
 
20756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20757
  (exit $ac_status); }; } &&
 
20758
         { ac_try='test -s conftest.$ac_objext'
 
20759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20760
  (eval $ac_try) 2>&5
 
20761
  ac_status=$?
 
20762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20763
  (exit $ac_status); }; }; then
 
20764
  ac_header_compiler=yes
 
20765
else
 
20766
  echo "$as_me: failed program was:" >&5
 
20767
sed 's/^/| /' conftest.$ac_ext >&5
 
20768
 
 
20769
ac_header_compiler=no
 
20770
fi
 
20771
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20772
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20773
echo "${ECHO_T}$ac_header_compiler" >&6
 
20774
 
 
20775
# Is the header present?
 
20776
echo "$as_me:$LINENO: checking libintl.h presence" >&5
 
20777
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
 
20778
cat >conftest.$ac_ext <<_ACEOF
 
20779
/* confdefs.h.  */
 
20780
_ACEOF
 
20781
cat confdefs.h >>conftest.$ac_ext
 
20782
cat >>conftest.$ac_ext <<_ACEOF
 
20783
/* end confdefs.h.  */
 
20784
#include <libintl.h>
 
20785
_ACEOF
 
20786
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20787
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20788
  ac_status=$?
 
20789
  grep -v '^ *+' conftest.er1 >conftest.err
 
20790
  rm -f conftest.er1
 
20791
  cat conftest.err >&5
 
20792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20793
  (exit $ac_status); } >/dev/null; then
 
20794
  if test -s conftest.err; then
 
20795
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20796
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20797
  else
 
20798
    ac_cpp_err=
 
20799
  fi
 
20800
else
 
20801
  ac_cpp_err=yes
 
20802
fi
 
20803
if test -z "$ac_cpp_err"; then
 
20804
  ac_header_preproc=yes
 
20805
else
 
20806
  echo "$as_me: failed program was:" >&5
 
20807
sed 's/^/| /' conftest.$ac_ext >&5
 
20808
 
 
20809
  ac_header_preproc=no
 
20810
fi
 
20811
rm -f conftest.err conftest.$ac_ext
 
20812
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20813
echo "${ECHO_T}$ac_header_preproc" >&6
 
20814
 
 
20815
# So?  What about this header?
 
20816
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20817
  yes:no: )
 
20818
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20819
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20820
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 
20821
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 
20822
    ac_header_preproc=yes
 
20823
    ;;
 
20824
  no:yes:* )
 
20825
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 
20826
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 
20827
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 
20828
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 
20829
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 
20830
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 
20831
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20832
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20833
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 
20834
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 
20835
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 
20836
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 
20837
    (
 
20838
      cat <<\_ASBOX
 
20839
## ----------------------------------------------------------------------------- ##
 
20840
## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=libgnomecanvas ##
 
20841
## ----------------------------------------------------------------------------- ##
 
20842
_ASBOX
 
20843
    ) |
 
20844
      sed "s/^/$as_me: WARNING:     /" >&2
 
20845
    ;;
 
20846
esac
 
20847
echo "$as_me:$LINENO: checking for libintl.h" >&5
 
20848
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
 
20849
if test "${ac_cv_header_libintl_h+set}" = set; then
 
20850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20851
else
 
20852
  ac_cv_header_libintl_h=$ac_header_preproc
 
20853
fi
 
20854
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
20855
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
 
20856
 
 
20857
fi
 
20858
if test $ac_cv_header_libintl_h = yes; then
 
20859
  gt_cv_func_dgettext_libintl="no"
 
20860
      libintl_extra_libs=""
 
20861
 
 
20862
      #
 
20863
      # First check in libc
 
20864
      #
 
20865
      echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 
20866
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
 
20867
if test "${gt_cv_func_ngettext_libc+set}" = set; then
 
20868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20869
else
 
20870
  cat >conftest.$ac_ext <<_ACEOF
 
20871
/* confdefs.h.  */
 
20872
_ACEOF
 
20873
cat confdefs.h >>conftest.$ac_ext
 
20874
cat >>conftest.$ac_ext <<_ACEOF
 
20875
/* end confdefs.h.  */
 
20876
 
 
20877
#include <libintl.h>
 
20878
 
 
20879
int
 
20880
main ()
 
20881
{
 
20882
return (int) ngettext ("","", 1)
 
20883
  ;
 
20884
  return 0;
 
20885
}
 
20886
_ACEOF
 
20887
rm -f conftest.$ac_objext conftest$ac_exeext
 
20888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20889
  (eval $ac_link) 2>conftest.er1
 
20890
  ac_status=$?
 
20891
  grep -v '^ *+' conftest.er1 >conftest.err
 
20892
  rm -f conftest.er1
 
20893
  cat conftest.err >&5
 
20894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20895
  (exit $ac_status); } &&
 
20896
         { ac_try='test -z "$ac_c_werror_flag"
 
20897
                         || test ! -s conftest.err'
 
20898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20899
  (eval $ac_try) 2>&5
 
20900
  ac_status=$?
 
20901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20902
  (exit $ac_status); }; } &&
 
20903
         { ac_try='test -s conftest$ac_exeext'
 
20904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20905
  (eval $ac_try) 2>&5
 
20906
  ac_status=$?
 
20907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20908
  (exit $ac_status); }; }; then
 
20909
  gt_cv_func_ngettext_libc=yes
 
20910
else
 
20911
  echo "$as_me: failed program was:" >&5
 
20912
sed 's/^/| /' conftest.$ac_ext >&5
 
20913
 
 
20914
gt_cv_func_ngettext_libc=no
 
20915
fi
 
20916
rm -f conftest.err conftest.$ac_objext \
 
20917
      conftest$ac_exeext conftest.$ac_ext
 
20918
 
 
20919
fi
 
20920
echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 
20921
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
 
20922
 
 
20923
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
20924
              echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 
20925
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
 
20926
if test "${gt_cv_func_dgettext_libc+set}" = set; then
 
20927
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20928
else
 
20929
  cat >conftest.$ac_ext <<_ACEOF
 
20930
/* confdefs.h.  */
 
20931
_ACEOF
 
20932
cat confdefs.h >>conftest.$ac_ext
 
20933
cat >>conftest.$ac_ext <<_ACEOF
 
20934
/* end confdefs.h.  */
 
20935
 
 
20936
#include <libintl.h>
 
20937
 
 
20938
int
 
20939
main ()
 
20940
{
 
20941
return (int) dgettext ("","")
 
20942
  ;
 
20943
  return 0;
 
20944
}
 
20945
_ACEOF
 
20946
rm -f conftest.$ac_objext conftest$ac_exeext
 
20947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20948
  (eval $ac_link) 2>conftest.er1
 
20949
  ac_status=$?
 
20950
  grep -v '^ *+' conftest.er1 >conftest.err
 
20951
  rm -f conftest.er1
 
20952
  cat conftest.err >&5
 
20953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20954
  (exit $ac_status); } &&
 
20955
         { ac_try='test -z "$ac_c_werror_flag"
 
20956
                         || test ! -s conftest.err'
 
20957
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20958
  (eval $ac_try) 2>&5
 
20959
  ac_status=$?
 
20960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20961
  (exit $ac_status); }; } &&
 
20962
         { ac_try='test -s conftest$ac_exeext'
 
20963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20964
  (eval $ac_try) 2>&5
 
20965
  ac_status=$?
 
20966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20967
  (exit $ac_status); }; }; then
 
20968
  gt_cv_func_dgettext_libc=yes
 
20969
else
 
20970
  echo "$as_me: failed program was:" >&5
 
20971
sed 's/^/| /' conftest.$ac_ext >&5
 
20972
 
 
20973
gt_cv_func_dgettext_libc=no
 
20974
fi
 
20975
rm -f conftest.err conftest.$ac_objext \
 
20976
      conftest$ac_exeext conftest.$ac_ext
 
20977
 
 
20978
fi
 
20979
echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 
20980
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
 
20981
      fi
 
20982
 
 
20983
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
20984
 
 
20985
for ac_func in bind_textdomain_codeset
 
20986
do
 
20987
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20988
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20989
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20990
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20992
else
 
20993
  cat >conftest.$ac_ext <<_ACEOF
 
20994
/* confdefs.h.  */
 
20995
_ACEOF
 
20996
cat confdefs.h >>conftest.$ac_ext
 
20997
cat >>conftest.$ac_ext <<_ACEOF
 
20998
/* end confdefs.h.  */
 
20999
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21000
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21001
#define $ac_func innocuous_$ac_func
 
21002
 
 
21003
/* System header to define __stub macros and hopefully few prototypes,
 
21004
    which can conflict with char $ac_func (); below.
 
21005
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21006
    <limits.h> exists even on freestanding compilers.  */
 
21007
 
 
21008
#ifdef __STDC__
 
21009
# include <limits.h>
 
21010
#else
 
21011
# include <assert.h>
 
21012
#endif
 
21013
 
 
21014
#undef $ac_func
 
21015
 
 
21016
/* Override any gcc2 internal prototype to avoid an error.  */
 
21017
#ifdef __cplusplus
 
21018
extern "C"
 
21019
{
 
21020
#endif
 
21021
/* We use char because int might match the return type of a gcc2
 
21022
   builtin and then its argument prototype would still apply.  */
 
21023
char $ac_func ();
 
21024
/* The GNU C library defines this for functions which it implements
 
21025
    to always fail with ENOSYS.  Some functions are actually named
 
21026
    something starting with __ and the normal name is an alias.  */
 
21027
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21028
choke me
 
21029
#else
 
21030
char (*f) () = $ac_func;
 
21031
#endif
 
21032
#ifdef __cplusplus
 
21033
}
 
21034
#endif
 
21035
 
 
21036
int
 
21037
main ()
 
21038
{
 
21039
return f != $ac_func;
 
21040
  ;
 
21041
  return 0;
 
21042
}
 
21043
_ACEOF
 
21044
rm -f conftest.$ac_objext conftest$ac_exeext
 
21045
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21046
  (eval $ac_link) 2>conftest.er1
 
21047
  ac_status=$?
 
21048
  grep -v '^ *+' conftest.er1 >conftest.err
 
21049
  rm -f conftest.er1
 
21050
  cat conftest.err >&5
 
21051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21052
  (exit $ac_status); } &&
 
21053
         { ac_try='test -z "$ac_c_werror_flag"
 
21054
                         || test ! -s conftest.err'
 
21055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21056
  (eval $ac_try) 2>&5
 
21057
  ac_status=$?
 
21058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21059
  (exit $ac_status); }; } &&
 
21060
         { ac_try='test -s conftest$ac_exeext'
 
21061
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21062
  (eval $ac_try) 2>&5
 
21063
  ac_status=$?
 
21064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21065
  (exit $ac_status); }; }; then
 
21066
  eval "$as_ac_var=yes"
 
21067
else
 
21068
  echo "$as_me: failed program was:" >&5
 
21069
sed 's/^/| /' conftest.$ac_ext >&5
 
21070
 
 
21071
eval "$as_ac_var=no"
 
21072
fi
 
21073
rm -f conftest.err conftest.$ac_objext \
 
21074
      conftest$ac_exeext conftest.$ac_ext
 
21075
fi
 
21076
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21077
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21078
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21079
  cat >>confdefs.h <<_ACEOF
 
21080
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21081
_ACEOF
 
21082
 
 
21083
fi
 
21084
done
 
21085
 
 
21086
      fi
 
21087
 
 
21088
      #
 
21089
      # If we don't have everything we want, check in libintl
 
21090
      #
 
21091
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
21092
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
21093
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
21094
 
 
21095
        echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 
21096
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
 
21097
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 
21098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21099
else
 
21100
  ac_check_lib_save_LIBS=$LIBS
 
21101
LIBS="-lintl  $LIBS"
 
21102
cat >conftest.$ac_ext <<_ACEOF
 
21103
/* confdefs.h.  */
 
21104
_ACEOF
 
21105
cat confdefs.h >>conftest.$ac_ext
 
21106
cat >>conftest.$ac_ext <<_ACEOF
 
21107
/* end confdefs.h.  */
 
21108
 
 
21109
/* Override any gcc2 internal prototype to avoid an error.  */
 
21110
#ifdef __cplusplus
 
21111
extern "C"
 
21112
#endif
 
21113
/* We use char because int might match the return type of a gcc2
 
21114
   builtin and then its argument prototype would still apply.  */
 
21115
char bindtextdomain ();
 
21116
int
 
21117
main ()
 
21118
{
 
21119
bindtextdomain ();
 
21120
  ;
 
21121
  return 0;
 
21122
}
 
21123
_ACEOF
 
21124
rm -f conftest.$ac_objext conftest$ac_exeext
 
21125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21126
  (eval $ac_link) 2>conftest.er1
 
21127
  ac_status=$?
 
21128
  grep -v '^ *+' conftest.er1 >conftest.err
 
21129
  rm -f conftest.er1
 
21130
  cat conftest.err >&5
 
21131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21132
  (exit $ac_status); } &&
 
21133
         { ac_try='test -z "$ac_c_werror_flag"
 
21134
                         || test ! -s conftest.err'
 
21135
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21136
  (eval $ac_try) 2>&5
 
21137
  ac_status=$?
 
21138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21139
  (exit $ac_status); }; } &&
 
21140
         { ac_try='test -s conftest$ac_exeext'
 
21141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21142
  (eval $ac_try) 2>&5
 
21143
  ac_status=$?
 
21144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21145
  (exit $ac_status); }; }; then
 
21146
  ac_cv_lib_intl_bindtextdomain=yes
 
21147
else
 
21148
  echo "$as_me: failed program was:" >&5
 
21149
sed 's/^/| /' conftest.$ac_ext >&5
 
21150
 
 
21151
ac_cv_lib_intl_bindtextdomain=no
 
21152
fi
 
21153
rm -f conftest.err conftest.$ac_objext \
 
21154
      conftest$ac_exeext conftest.$ac_ext
 
21155
LIBS=$ac_check_lib_save_LIBS
 
21156
fi
 
21157
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
21158
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
 
21159
if test $ac_cv_lib_intl_bindtextdomain = yes; then
 
21160
  echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
21161
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
 
21162
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
21163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21164
else
 
21165
  ac_check_lib_save_LIBS=$LIBS
 
21166
LIBS="-lintl  $LIBS"
 
21167
cat >conftest.$ac_ext <<_ACEOF
 
21168
/* confdefs.h.  */
 
21169
_ACEOF
 
21170
cat confdefs.h >>conftest.$ac_ext
 
21171
cat >>conftest.$ac_ext <<_ACEOF
 
21172
/* end confdefs.h.  */
 
21173
 
 
21174
/* Override any gcc2 internal prototype to avoid an error.  */
 
21175
#ifdef __cplusplus
 
21176
extern "C"
 
21177
#endif
 
21178
/* We use char because int might match the return type of a gcc2
 
21179
   builtin and then its argument prototype would still apply.  */
 
21180
char ngettext ();
 
21181
int
 
21182
main ()
 
21183
{
 
21184
ngettext ();
 
21185
  ;
 
21186
  return 0;
 
21187
}
 
21188
_ACEOF
 
21189
rm -f conftest.$ac_objext conftest$ac_exeext
 
21190
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21191
  (eval $ac_link) 2>conftest.er1
 
21192
  ac_status=$?
 
21193
  grep -v '^ *+' conftest.er1 >conftest.err
 
21194
  rm -f conftest.er1
 
21195
  cat conftest.err >&5
 
21196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21197
  (exit $ac_status); } &&
 
21198
         { ac_try='test -z "$ac_c_werror_flag"
 
21199
                         || test ! -s conftest.err'
 
21200
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21201
  (eval $ac_try) 2>&5
 
21202
  ac_status=$?
 
21203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21204
  (exit $ac_status); }; } &&
 
21205
         { ac_try='test -s conftest$ac_exeext'
 
21206
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21207
  (eval $ac_try) 2>&5
 
21208
  ac_status=$?
 
21209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21210
  (exit $ac_status); }; }; then
 
21211
  ac_cv_lib_intl_ngettext=yes
 
21212
else
 
21213
  echo "$as_me: failed program was:" >&5
 
21214
sed 's/^/| /' conftest.$ac_ext >&5
 
21215
 
 
21216
ac_cv_lib_intl_ngettext=no
 
21217
fi
 
21218
rm -f conftest.err conftest.$ac_objext \
 
21219
      conftest$ac_exeext conftest.$ac_ext
 
21220
LIBS=$ac_check_lib_save_LIBS
 
21221
fi
 
21222
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
21223
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
 
21224
if test $ac_cv_lib_intl_ngettext = yes; then
 
21225
  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 
21226
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
 
21227
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 
21228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21229
else
 
21230
  ac_check_lib_save_LIBS=$LIBS
 
21231
LIBS="-lintl  $LIBS"
 
21232
cat >conftest.$ac_ext <<_ACEOF
 
21233
/* confdefs.h.  */
 
21234
_ACEOF
 
21235
cat confdefs.h >>conftest.$ac_ext
 
21236
cat >>conftest.$ac_ext <<_ACEOF
 
21237
/* end confdefs.h.  */
 
21238
 
 
21239
/* Override any gcc2 internal prototype to avoid an error.  */
 
21240
#ifdef __cplusplus
 
21241
extern "C"
 
21242
#endif
 
21243
/* We use char because int might match the return type of a gcc2
 
21244
   builtin and then its argument prototype would still apply.  */
 
21245
char dgettext ();
 
21246
int
 
21247
main ()
 
21248
{
 
21249
dgettext ();
 
21250
  ;
 
21251
  return 0;
 
21252
}
 
21253
_ACEOF
 
21254
rm -f conftest.$ac_objext conftest$ac_exeext
 
21255
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21256
  (eval $ac_link) 2>conftest.er1
 
21257
  ac_status=$?
 
21258
  grep -v '^ *+' conftest.er1 >conftest.err
 
21259
  rm -f conftest.er1
 
21260
  cat conftest.err >&5
 
21261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21262
  (exit $ac_status); } &&
 
21263
         { ac_try='test -z "$ac_c_werror_flag"
 
21264
                         || test ! -s conftest.err'
 
21265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21266
  (eval $ac_try) 2>&5
 
21267
  ac_status=$?
 
21268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21269
  (exit $ac_status); }; } &&
 
21270
         { ac_try='test -s conftest$ac_exeext'
 
21271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21272
  (eval $ac_try) 2>&5
 
21273
  ac_status=$?
 
21274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21275
  (exit $ac_status); }; }; then
 
21276
  ac_cv_lib_intl_dgettext=yes
 
21277
else
 
21278
  echo "$as_me: failed program was:" >&5
 
21279
sed 's/^/| /' conftest.$ac_ext >&5
 
21280
 
 
21281
ac_cv_lib_intl_dgettext=no
 
21282
fi
 
21283
rm -f conftest.err conftest.$ac_objext \
 
21284
      conftest$ac_exeext conftest.$ac_ext
 
21285
LIBS=$ac_check_lib_save_LIBS
 
21286
fi
 
21287
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 
21288
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
 
21289
if test $ac_cv_lib_intl_dgettext = yes; then
 
21290
  gt_cv_func_dgettext_libintl=yes
 
21291
fi
 
21292
 
 
21293
fi
 
21294
 
 
21295
fi
 
21296
 
 
21297
 
 
21298
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
21299
          echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 
21300
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
 
21301
          echo "$as_me:$LINENO: result: " >&5
 
21302
echo "${ECHO_T}" >&6
 
21303
          echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
21304
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
 
21305
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
21306
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21307
else
 
21308
  ac_check_lib_save_LIBS=$LIBS
 
21309
LIBS="-lintl -liconv $LIBS"
 
21310
cat >conftest.$ac_ext <<_ACEOF
 
21311
/* confdefs.h.  */
 
21312
_ACEOF
 
21313
cat confdefs.h >>conftest.$ac_ext
 
21314
cat >>conftest.$ac_ext <<_ACEOF
 
21315
/* end confdefs.h.  */
 
21316
 
 
21317
/* Override any gcc2 internal prototype to avoid an error.  */
 
21318
#ifdef __cplusplus
 
21319
extern "C"
 
21320
#endif
 
21321
/* We use char because int might match the return type of a gcc2
 
21322
   builtin and then its argument prototype would still apply.  */
 
21323
char ngettext ();
 
21324
int
 
21325
main ()
 
21326
{
 
21327
ngettext ();
 
21328
  ;
 
21329
  return 0;
 
21330
}
 
21331
_ACEOF
 
21332
rm -f conftest.$ac_objext conftest$ac_exeext
 
21333
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21334
  (eval $ac_link) 2>conftest.er1
 
21335
  ac_status=$?
 
21336
  grep -v '^ *+' conftest.er1 >conftest.err
 
21337
  rm -f conftest.er1
 
21338
  cat conftest.err >&5
 
21339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21340
  (exit $ac_status); } &&
 
21341
         { ac_try='test -z "$ac_c_werror_flag"
 
21342
                         || test ! -s conftest.err'
 
21343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21344
  (eval $ac_try) 2>&5
 
21345
  ac_status=$?
 
21346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21347
  (exit $ac_status); }; } &&
 
21348
         { ac_try='test -s conftest$ac_exeext'
 
21349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21350
  (eval $ac_try) 2>&5
 
21351
  ac_status=$?
 
21352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21353
  (exit $ac_status); }; }; then
 
21354
  ac_cv_lib_intl_ngettext=yes
 
21355
else
 
21356
  echo "$as_me: failed program was:" >&5
 
21357
sed 's/^/| /' conftest.$ac_ext >&5
 
21358
 
 
21359
ac_cv_lib_intl_ngettext=no
 
21360
fi
 
21361
rm -f conftest.err conftest.$ac_objext \
 
21362
      conftest$ac_exeext conftest.$ac_ext
 
21363
LIBS=$ac_check_lib_save_LIBS
 
21364
fi
 
21365
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
21366
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
 
21367
if test $ac_cv_lib_intl_ngettext = yes; then
 
21368
  echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 
21369
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
 
21370
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 
21371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21372
else
 
21373
  ac_check_lib_save_LIBS=$LIBS
 
21374
LIBS="-lintl -liconv $LIBS"
 
21375
cat >conftest.$ac_ext <<_ACEOF
 
21376
/* confdefs.h.  */
 
21377
_ACEOF
 
21378
cat confdefs.h >>conftest.$ac_ext
 
21379
cat >>conftest.$ac_ext <<_ACEOF
 
21380
/* end confdefs.h.  */
 
21381
 
 
21382
/* Override any gcc2 internal prototype to avoid an error.  */
 
21383
#ifdef __cplusplus
 
21384
extern "C"
 
21385
#endif
 
21386
/* We use char because int might match the return type of a gcc2
 
21387
   builtin and then its argument prototype would still apply.  */
 
21388
char dcgettext ();
 
21389
int
 
21390
main ()
 
21391
{
 
21392
dcgettext ();
 
21393
  ;
 
21394
  return 0;
 
21395
}
 
21396
_ACEOF
 
21397
rm -f conftest.$ac_objext conftest$ac_exeext
 
21398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21399
  (eval $ac_link) 2>conftest.er1
 
21400
  ac_status=$?
 
21401
  grep -v '^ *+' conftest.er1 >conftest.err
 
21402
  rm -f conftest.er1
 
21403
  cat conftest.err >&5
 
21404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21405
  (exit $ac_status); } &&
 
21406
         { ac_try='test -z "$ac_c_werror_flag"
 
21407
                         || test ! -s conftest.err'
 
21408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21409
  (eval $ac_try) 2>&5
 
21410
  ac_status=$?
 
21411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21412
  (exit $ac_status); }; } &&
 
21413
         { ac_try='test -s conftest$ac_exeext'
 
21414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21415
  (eval $ac_try) 2>&5
 
21416
  ac_status=$?
 
21417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21418
  (exit $ac_status); }; }; then
 
21419
  ac_cv_lib_intl_dcgettext=yes
 
21420
else
 
21421
  echo "$as_me: failed program was:" >&5
 
21422
sed 's/^/| /' conftest.$ac_ext >&5
 
21423
 
 
21424
ac_cv_lib_intl_dcgettext=no
 
21425
fi
 
21426
rm -f conftest.err conftest.$ac_objext \
 
21427
      conftest$ac_exeext conftest.$ac_ext
 
21428
LIBS=$ac_check_lib_save_LIBS
 
21429
fi
 
21430
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 
21431
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
 
21432
if test $ac_cv_lib_intl_dcgettext = yes; then
 
21433
  gt_cv_func_dgettext_libintl=yes
 
21434
                        libintl_extra_libs=-liconv
 
21435
else
 
21436
  :
 
21437
fi
 
21438
 
 
21439
else
 
21440
  :
 
21441
fi
 
21442
 
 
21443
        fi
 
21444
 
 
21445
        #
 
21446
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
21447
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
21448
        # and both have dgettext and ngettext
 
21449
        #
 
21450
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
21451
          glib_save_LIBS="$LIBS"
 
21452
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
21453
          unset ac_cv_func_bind_textdomain_codeset
 
21454
 
 
21455
for ac_func in bind_textdomain_codeset
 
21456
do
 
21457
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21458
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21459
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21460
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21462
else
 
21463
  cat >conftest.$ac_ext <<_ACEOF
 
21464
/* confdefs.h.  */
 
21465
_ACEOF
 
21466
cat confdefs.h >>conftest.$ac_ext
 
21467
cat >>conftest.$ac_ext <<_ACEOF
 
21468
/* end confdefs.h.  */
 
21469
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21470
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21471
#define $ac_func innocuous_$ac_func
 
21472
 
 
21473
/* System header to define __stub macros and hopefully few prototypes,
 
21474
    which can conflict with char $ac_func (); below.
 
21475
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21476
    <limits.h> exists even on freestanding compilers.  */
 
21477
 
 
21478
#ifdef __STDC__
 
21479
# include <limits.h>
 
21480
#else
 
21481
# include <assert.h>
 
21482
#endif
 
21483
 
 
21484
#undef $ac_func
 
21485
 
 
21486
/* Override any gcc2 internal prototype to avoid an error.  */
 
21487
#ifdef __cplusplus
 
21488
extern "C"
 
21489
{
 
21490
#endif
 
21491
/* We use char because int might match the return type of a gcc2
 
21492
   builtin and then its argument prototype would still apply.  */
 
21493
char $ac_func ();
 
21494
/* The GNU C library defines this for functions which it implements
 
21495
    to always fail with ENOSYS.  Some functions are actually named
 
21496
    something starting with __ and the normal name is an alias.  */
 
21497
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21498
choke me
 
21499
#else
 
21500
char (*f) () = $ac_func;
 
21501
#endif
 
21502
#ifdef __cplusplus
 
21503
}
 
21504
#endif
 
21505
 
 
21506
int
 
21507
main ()
 
21508
{
 
21509
return f != $ac_func;
 
21510
  ;
 
21511
  return 0;
 
21512
}
 
21513
_ACEOF
 
21514
rm -f conftest.$ac_objext conftest$ac_exeext
 
21515
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21516
  (eval $ac_link) 2>conftest.er1
 
21517
  ac_status=$?
 
21518
  grep -v '^ *+' conftest.er1 >conftest.err
 
21519
  rm -f conftest.er1
 
21520
  cat conftest.err >&5
 
21521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21522
  (exit $ac_status); } &&
 
21523
         { ac_try='test -z "$ac_c_werror_flag"
 
21524
                         || test ! -s conftest.err'
 
21525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21526
  (eval $ac_try) 2>&5
 
21527
  ac_status=$?
 
21528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21529
  (exit $ac_status); }; } &&
 
21530
         { ac_try='test -s conftest$ac_exeext'
 
21531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21532
  (eval $ac_try) 2>&5
 
21533
  ac_status=$?
 
21534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21535
  (exit $ac_status); }; }; then
 
21536
  eval "$as_ac_var=yes"
 
21537
else
 
21538
  echo "$as_me: failed program was:" >&5
 
21539
sed 's/^/| /' conftest.$ac_ext >&5
 
21540
 
 
21541
eval "$as_ac_var=no"
 
21542
fi
 
21543
rm -f conftest.err conftest.$ac_objext \
 
21544
      conftest$ac_exeext conftest.$ac_ext
 
21545
fi
 
21546
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21547
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21548
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21549
  cat >>confdefs.h <<_ACEOF
 
21550
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21551
_ACEOF
 
21552
 
 
21553
fi
 
21554
done
 
21555
 
 
21556
          LIBS="$glib_save_LIBS"
 
21557
 
 
21558
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
21559
            gt_cv_func_dgettext_libc=no
 
21560
          else
 
21561
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
21562
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
21563
              gt_cv_func_dgettext_libintl=no
 
21564
            fi
 
21565
          fi
 
21566
        fi
 
21567
      fi
 
21568
 
 
21569
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
21570
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
21571
        gt_cv_have_gettext=yes
 
21572
      fi
 
21573
 
 
21574
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
21575
        INTLLIBS="-lintl $libintl_extra_libs"
 
21576
      fi
 
21577
 
 
21578
      if test "$gt_cv_have_gettext" = "yes"; then
 
21579
 
 
21580
cat >>confdefs.h <<\_ACEOF
 
21581
#define HAVE_GETTEXT 1
 
21582
_ACEOF
 
21583
 
 
21584
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
21585
set dummy msgfmt; ac_word=$2
 
21586
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21587
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21588
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
21589
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21590
else
 
21591
  case "$MSGFMT" in
 
21592
  /*)
 
21593
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
21594
  ;;
 
21595
  *)
 
21596
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21597
  for ac_dir in $PATH; do
 
21598
    test -z "$ac_dir" && ac_dir=.
 
21599
    if test -f $ac_dir/$ac_word; then
 
21600
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
21601
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
21602
        break
 
21603
      fi
 
21604
    fi
 
21605
  done
 
21606
  IFS="$ac_save_ifs"
 
21607
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
21608
  ;;
 
21609
esac
 
21610
fi
 
21611
MSGFMT="$ac_cv_path_MSGFMT"
 
21612
if test "$MSGFMT" != "no"; then
 
21613
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
21614
echo "${ECHO_T}$MSGFMT" >&6
 
21615
else
 
21616
  echo "$as_me:$LINENO: result: no" >&5
 
21617
echo "${ECHO_T}no" >&6
 
21618
fi
 
21619
        if test "$MSGFMT" != "no"; then
 
21620
          glib_save_LIBS="$LIBS"
 
21621
          LIBS="$LIBS $INTLLIBS"
 
21622
 
 
21623
for ac_func in dcgettext
 
21624
do
 
21625
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21626
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21627
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21628
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21629
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21630
else
 
21631
  cat >conftest.$ac_ext <<_ACEOF
 
21632
/* confdefs.h.  */
 
21633
_ACEOF
 
21634
cat confdefs.h >>conftest.$ac_ext
 
21635
cat >>conftest.$ac_ext <<_ACEOF
 
21636
/* end confdefs.h.  */
 
21637
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21638
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21639
#define $ac_func innocuous_$ac_func
 
21640
 
 
21641
/* System header to define __stub macros and hopefully few prototypes,
 
21642
    which can conflict with char $ac_func (); below.
 
21643
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21644
    <limits.h> exists even on freestanding compilers.  */
 
21645
 
 
21646
#ifdef __STDC__
 
21647
# include <limits.h>
 
21648
#else
 
21649
# include <assert.h>
 
21650
#endif
 
21651
 
 
21652
#undef $ac_func
 
21653
 
 
21654
/* Override any gcc2 internal prototype to avoid an error.  */
 
21655
#ifdef __cplusplus
 
21656
extern "C"
 
21657
{
 
21658
#endif
 
21659
/* We use char because int might match the return type of a gcc2
 
21660
   builtin and then its argument prototype would still apply.  */
 
21661
char $ac_func ();
 
21662
/* The GNU C library defines this for functions which it implements
 
21663
    to always fail with ENOSYS.  Some functions are actually named
 
21664
    something starting with __ and the normal name is an alias.  */
 
21665
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21666
choke me
 
21667
#else
 
21668
char (*f) () = $ac_func;
 
21669
#endif
 
21670
#ifdef __cplusplus
 
21671
}
 
21672
#endif
 
21673
 
 
21674
int
 
21675
main ()
 
21676
{
 
21677
return f != $ac_func;
 
21678
  ;
 
21679
  return 0;
 
21680
}
 
21681
_ACEOF
 
21682
rm -f conftest.$ac_objext conftest$ac_exeext
 
21683
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21684
  (eval $ac_link) 2>conftest.er1
 
21685
  ac_status=$?
 
21686
  grep -v '^ *+' conftest.er1 >conftest.err
 
21687
  rm -f conftest.er1
 
21688
  cat conftest.err >&5
 
21689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21690
  (exit $ac_status); } &&
 
21691
         { ac_try='test -z "$ac_c_werror_flag"
 
21692
                         || test ! -s conftest.err'
 
21693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21694
  (eval $ac_try) 2>&5
 
21695
  ac_status=$?
 
21696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21697
  (exit $ac_status); }; } &&
 
21698
         { ac_try='test -s conftest$ac_exeext'
 
21699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21700
  (eval $ac_try) 2>&5
 
21701
  ac_status=$?
 
21702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21703
  (exit $ac_status); }; }; then
 
21704
  eval "$as_ac_var=yes"
 
21705
else
 
21706
  echo "$as_me: failed program was:" >&5
 
21707
sed 's/^/| /' conftest.$ac_ext >&5
 
21708
 
 
21709
eval "$as_ac_var=no"
 
21710
fi
 
21711
rm -f conftest.err conftest.$ac_objext \
 
21712
      conftest$ac_exeext conftest.$ac_ext
 
21713
fi
 
21714
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21715
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21716
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21717
  cat >>confdefs.h <<_ACEOF
 
21718
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21719
_ACEOF
 
21720
 
 
21721
fi
 
21722
done
 
21723
 
 
21724
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
21725
set dummy gmsgfmt; ac_word=$2
 
21726
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21727
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21728
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
21729
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21730
else
 
21731
  case $GMSGFMT in
 
21732
  [\\/]* | ?:[\\/]*)
 
21733
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
21734
  ;;
 
21735
  *)
 
21736
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21737
for as_dir in $PATH
 
21738
do
 
21739
  IFS=$as_save_IFS
 
21740
  test -z "$as_dir" && as_dir=.
 
21741
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21742
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21743
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
21744
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21745
    break 2
 
21746
  fi
 
21747
done
 
21748
done
 
21749
 
 
21750
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
21751
  ;;
 
21752
esac
 
21753
fi
 
21754
GMSGFMT=$ac_cv_path_GMSGFMT
 
21755
 
 
21756
if test -n "$GMSGFMT"; then
 
21757
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
21758
echo "${ECHO_T}$GMSGFMT" >&6
 
21759
else
 
21760
  echo "$as_me:$LINENO: result: no" >&5
 
21761
echo "${ECHO_T}no" >&6
 
21762
fi
 
21763
 
 
21764
          # Extract the first word of "xgettext", so it can be a program name with args.
 
21765
set dummy xgettext; ac_word=$2
 
21766
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21767
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21768
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
21769
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21770
else
 
21771
  case "$XGETTEXT" in
 
21772
  /*)
 
21773
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
21774
  ;;
 
21775
  *)
 
21776
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21777
  for ac_dir in $PATH; do
 
21778
    test -z "$ac_dir" && ac_dir=.
 
21779
    if test -f $ac_dir/$ac_word; then
 
21780
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
21781
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
21782
        break
 
21783
      fi
 
21784
    fi
 
21785
  done
 
21786
  IFS="$ac_save_ifs"
 
21787
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
21788
  ;;
 
21789
esac
 
21790
fi
 
21791
XGETTEXT="$ac_cv_path_XGETTEXT"
 
21792
if test "$XGETTEXT" != ":"; then
 
21793
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
21794
echo "${ECHO_T}$XGETTEXT" >&6
 
21795
else
 
21796
  echo "$as_me:$LINENO: result: no" >&5
 
21797
echo "${ECHO_T}no" >&6
 
21798
fi
 
21799
 
 
21800
          cat >conftest.$ac_ext <<_ACEOF
 
21801
/* confdefs.h.  */
 
21802
_ACEOF
 
21803
cat confdefs.h >>conftest.$ac_ext
 
21804
cat >>conftest.$ac_ext <<_ACEOF
 
21805
/* end confdefs.h.  */
 
21806
 
 
21807
int
 
21808
main ()
 
21809
{
 
21810
extern int _nl_msg_cat_cntr;
 
21811
                         return _nl_msg_cat_cntr
 
21812
  ;
 
21813
  return 0;
 
21814
}
 
21815
_ACEOF
 
21816
rm -f conftest.$ac_objext conftest$ac_exeext
 
21817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21818
  (eval $ac_link) 2>conftest.er1
 
21819
  ac_status=$?
 
21820
  grep -v '^ *+' conftest.er1 >conftest.err
 
21821
  rm -f conftest.er1
 
21822
  cat conftest.err >&5
 
21823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21824
  (exit $ac_status); } &&
 
21825
         { ac_try='test -z "$ac_c_werror_flag"
 
21826
                         || test ! -s conftest.err'
 
21827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21828
  (eval $ac_try) 2>&5
 
21829
  ac_status=$?
 
21830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21831
  (exit $ac_status); }; } &&
 
21832
         { ac_try='test -s conftest$ac_exeext'
 
21833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21834
  (eval $ac_try) 2>&5
 
21835
  ac_status=$?
 
21836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21837
  (exit $ac_status); }; }; then
 
21838
  CATOBJEXT=.gmo
 
21839
             DATADIRNAME=share
 
21840
else
 
21841
  echo "$as_me: failed program was:" >&5
 
21842
sed 's/^/| /' conftest.$ac_ext >&5
 
21843
 
 
21844
case $host in
 
21845
            *-*-solaris*)
 
21846
                                                                echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 
21847
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
 
21848
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 
21849
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21850
else
 
21851
  cat >conftest.$ac_ext <<_ACEOF
 
21852
/* confdefs.h.  */
 
21853
_ACEOF
 
21854
cat confdefs.h >>conftest.$ac_ext
 
21855
cat >>conftest.$ac_ext <<_ACEOF
 
21856
/* end confdefs.h.  */
 
21857
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 
21858
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21859
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 
21860
 
 
21861
/* System header to define __stub macros and hopefully few prototypes,
 
21862
    which can conflict with char bind_textdomain_codeset (); below.
 
21863
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21864
    <limits.h> exists even on freestanding compilers.  */
 
21865
 
 
21866
#ifdef __STDC__
 
21867
# include <limits.h>
 
21868
#else
 
21869
# include <assert.h>
 
21870
#endif
 
21871
 
 
21872
#undef bind_textdomain_codeset
 
21873
 
 
21874
/* Override any gcc2 internal prototype to avoid an error.  */
 
21875
#ifdef __cplusplus
 
21876
extern "C"
 
21877
{
 
21878
#endif
 
21879
/* We use char because int might match the return type of a gcc2
 
21880
   builtin and then its argument prototype would still apply.  */
 
21881
char bind_textdomain_codeset ();
 
21882
/* The GNU C library defines this for functions which it implements
 
21883
    to always fail with ENOSYS.  Some functions are actually named
 
21884
    something starting with __ and the normal name is an alias.  */
 
21885
#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
 
21886
choke me
 
21887
#else
 
21888
char (*f) () = bind_textdomain_codeset;
 
21889
#endif
 
21890
#ifdef __cplusplus
 
21891
}
 
21892
#endif
 
21893
 
 
21894
int
 
21895
main ()
 
21896
{
 
21897
return f != bind_textdomain_codeset;
 
21898
  ;
 
21899
  return 0;
 
21900
}
 
21901
_ACEOF
 
21902
rm -f conftest.$ac_objext conftest$ac_exeext
 
21903
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21904
  (eval $ac_link) 2>conftest.er1
 
21905
  ac_status=$?
 
21906
  grep -v '^ *+' conftest.er1 >conftest.err
 
21907
  rm -f conftest.er1
 
21908
  cat conftest.err >&5
 
21909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21910
  (exit $ac_status); } &&
 
21911
         { ac_try='test -z "$ac_c_werror_flag"
 
21912
                         || test ! -s conftest.err'
 
21913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21914
  (eval $ac_try) 2>&5
 
21915
  ac_status=$?
 
21916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21917
  (exit $ac_status); }; } &&
 
21918
         { ac_try='test -s conftest$ac_exeext'
 
21919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21920
  (eval $ac_try) 2>&5
 
21921
  ac_status=$?
 
21922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21923
  (exit $ac_status); }; }; then
 
21924
  ac_cv_func_bind_textdomain_codeset=yes
 
21925
else
 
21926
  echo "$as_me: failed program was:" >&5
 
21927
sed 's/^/| /' conftest.$ac_ext >&5
 
21928
 
 
21929
ac_cv_func_bind_textdomain_codeset=no
 
21930
fi
 
21931
rm -f conftest.err conftest.$ac_objext \
 
21932
      conftest$ac_exeext conftest.$ac_ext
 
21933
fi
 
21934
echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 
21935
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
 
21936
if test $ac_cv_func_bind_textdomain_codeset = yes; then
 
21937
  CATOBJEXT=.gmo
 
21938
               DATADIRNAME=share
 
21939
else
 
21940
  CATOBJEXT=.mo
 
21941
               DATADIRNAME=lib
 
21942
fi
 
21943
 
 
21944
            ;;
 
21945
            *)
 
21946
            CATOBJEXT=.mo
 
21947
            DATADIRNAME=lib
 
21948
            ;;
 
21949
            esac
 
21950
fi
 
21951
rm -f conftest.err conftest.$ac_objext \
 
21952
      conftest$ac_exeext conftest.$ac_ext
 
21953
          LIBS="$glib_save_LIBS"
 
21954
          INSTOBJEXT=.mo
 
21955
        else
 
21956
          gt_cv_have_gettext=no
 
21957
        fi
 
21958
      fi
 
21959
 
 
21960
fi
 
21961
 
 
21962
 
 
21963
 
 
21964
    if test "$gt_cv_have_gettext" = "yes" ; then
 
21965
 
 
21966
cat >>confdefs.h <<\_ACEOF
 
21967
#define ENABLE_NLS 1
 
21968
_ACEOF
 
21969
 
 
21970
    fi
 
21971
 
 
21972
        if test "$XGETTEXT" != ":"; then
 
21973
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
21974
        : ;
 
21975
      else
 
21976
        echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
21977
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
21978
        XGETTEXT=":"
 
21979
      fi
 
21980
    fi
 
21981
 
 
21982
    # We need to process the po/ directory.
 
21983
    POSUB=po
 
21984
 
 
21985
              ac_config_commands="$ac_config_commands default-1"
 
21986
 
 
21987
 
 
21988
                for lang in $ALL_LINGUAS; do
 
21989
      GMOFILES="$GMOFILES $lang.gmo"
 
21990
      POFILES="$POFILES $lang.po"
 
21991
    done
 
21992
 
 
21993
 
 
21994
 
 
21995
 
 
21996
 
 
21997
 
 
21998
 
 
21999
 
 
22000
 
 
22001
 
 
22002
 
 
22003
 
 
22004
 
 
22005
   if test "$gt_cv_have_gettext" = "yes"; then
 
22006
     if test "x$ALL_LINGUAS" = "x"; then
 
22007
       LINGUAS=
 
22008
     else
 
22009
       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 
22010
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
 
22011
       NEW_LINGUAS=
 
22012
       for presentlang in $ALL_LINGUAS; do
 
22013
         useit=no
 
22014
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
22015
           desiredlanguages="$LINGUAS"
 
22016
         else
 
22017
           desiredlanguages="$ALL_LINGUAS"
 
22018
         fi
 
22019
         for desiredlang in $desiredlanguages; do
 
22020
           # Use the presentlang catalog if desiredlang is
 
22021
           #   a. equal to presentlang, or
 
22022
           #   b. a variant of presentlang (because in this case,
 
22023
           #      presentlang can be used as a fallback for messages
 
22024
           #      which are not translated in the desiredlang catalog).
 
22025
           case "$desiredlang" in
 
22026
             "$presentlang"*) useit=yes;;
 
22027
           esac
 
22028
         done
 
22029
         if test $useit = yes; then
 
22030
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
22031
         fi
 
22032
       done
 
22033
       LINGUAS=$NEW_LINGUAS
 
22034
       echo "$as_me:$LINENO: result: $LINGUAS" >&5
 
22035
echo "${ECHO_T}$LINGUAS" >&6
 
22036
     fi
 
22037
 
 
22038
          if test -n "$LINGUAS"; then
 
22039
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
22040
     fi
 
22041
   fi
 
22042
 
 
22043
            MKINSTALLDIRS=
 
22044
   if test -n "$ac_aux_dir"; then
 
22045
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
22046
   fi
 
22047
   if test -z "$MKINSTALLDIRS"; then
 
22048
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
22049
   fi
 
22050
 
 
22051
 
 
22052
         test -d po || mkdir po
 
22053
   if test "x$srcdir" != "x."; then
 
22054
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
22055
       posrcprefix="$srcdir/"
 
22056
     else
 
22057
       posrcprefix="../$srcdir/"
 
22058
     fi
 
22059
   else
 
22060
     posrcprefix="../"
 
22061
   fi
 
22062
   rm -f po/POTFILES
 
22063
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
22064
        < $srcdir/po/POTFILES.in > po/POTFILES
 
22065
 
 
22066
glib_save_prefix="$prefix"
 
22067
glib_save_exec_prefix="$exec_prefix"
 
22068
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22069
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
 
22070
if test "x$CATOBJEXT" = "x.mo" ; then
 
22071
  localedir=`eval echo "${libdir}/locale"`
 
22072
else
 
22073
  localedir=`eval echo "${datadir}/locale"`
 
22074
fi
 
22075
prefix="$glib_save_prefix"
 
22076
exec_prefix="$glib_save_exec_prefix"
 
22077
 
 
22078
cat >>confdefs.h <<_ACEOF
 
22079
#define GNOMECANVASLOCALEDIR "$localedir"
 
22080
_ACEOF
 
22081
 
 
22082
 
 
22083
 
 
22084
CANVAS_MODULES="  gtk+-2.0 >= 2.0.3   libart-2.0 >= 2.3.8   pango >= 1.0.1   pangoft2 >= 1.0.1"
 
22085
 
 
22086
  succeeded=no
 
22087
 
 
22088
  if test -z "$PKG_CONFIG"; then
 
22089
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
22090
set dummy pkg-config; ac_word=$2
 
22091
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22092
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22093
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
22094
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22095
else
 
22096
  case $PKG_CONFIG in
 
22097
  [\\/]* | ?:[\\/]*)
 
22098
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
22099
  ;;
 
22100
  *)
 
22101
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22102
for as_dir in $PATH
 
22103
do
 
22104
  IFS=$as_save_IFS
 
22105
  test -z "$as_dir" && as_dir=.
 
22106
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22107
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22108
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22109
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22110
    break 2
 
22111
  fi
 
22112
done
 
22113
done
 
22114
 
 
22115
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
22116
  ;;
 
22117
esac
 
22118
fi
 
22119
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
22120
 
 
22121
if test -n "$PKG_CONFIG"; then
 
22122
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
22123
echo "${ECHO_T}$PKG_CONFIG" >&6
 
22124
else
 
22125
  echo "$as_me:$LINENO: result: no" >&5
 
22126
echo "${ECHO_T}no" >&6
 
22127
fi
 
22128
 
 
22129
  fi
 
22130
 
 
22131
  if test "$PKG_CONFIG" = "no" ; then
 
22132
     echo "*** The pkg-config script could not be found. Make sure it is"
 
22133
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
22134
     echo "*** to the full path to pkg-config."
 
22135
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
22136
  else
 
22137
     PKG_CONFIG_MIN_VERSION=0.9.0
 
22138
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
22139
        echo "$as_me:$LINENO: checking for $CANVAS_MODULES" >&5
 
22140
echo $ECHO_N "checking for $CANVAS_MODULES... $ECHO_C" >&6
 
22141
 
 
22142
        if $PKG_CONFIG --exists "$CANVAS_MODULES" ; then
 
22143
            echo "$as_me:$LINENO: result: yes" >&5
 
22144
echo "${ECHO_T}yes" >&6
 
22145
            succeeded=yes
 
22146
 
 
22147
            echo "$as_me:$LINENO: checking LIBGNOMECANVAS_CFLAGS" >&5
 
22148
echo $ECHO_N "checking LIBGNOMECANVAS_CFLAGS... $ECHO_C" >&6
 
22149
            LIBGNOMECANVAS_CFLAGS=`$PKG_CONFIG --cflags "$CANVAS_MODULES"`
 
22150
            echo "$as_me:$LINENO: result: $LIBGNOMECANVAS_CFLAGS" >&5
 
22151
echo "${ECHO_T}$LIBGNOMECANVAS_CFLAGS" >&6
 
22152
 
 
22153
            echo "$as_me:$LINENO: checking LIBGNOMECANVAS_LIBS" >&5
 
22154
echo $ECHO_N "checking LIBGNOMECANVAS_LIBS... $ECHO_C" >&6
 
22155
            LIBGNOMECANVAS_LIBS=`$PKG_CONFIG --libs "$CANVAS_MODULES"`
 
22156
            echo "$as_me:$LINENO: result: $LIBGNOMECANVAS_LIBS" >&5
 
22157
echo "${ECHO_T}$LIBGNOMECANVAS_LIBS" >&6
 
22158
        else
 
22159
            LIBGNOMECANVAS_CFLAGS=""
 
22160
            LIBGNOMECANVAS_LIBS=""
 
22161
            ## If we have a custom action on failure, don't print errors, but
 
22162
            ## do set a variable so people can do so.
 
22163
            LIBGNOMECANVAS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$CANVAS_MODULES"`
 
22164
            echo $LIBGNOMECANVAS_PKG_ERRORS
 
22165
        fi
 
22166
 
 
22167
 
 
22168
 
 
22169
     else
 
22170
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
22171
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
22172
     fi
 
22173
  fi
 
22174
 
 
22175
  if test $succeeded = yes; then
 
22176
     :
 
22177
  else
 
22178
     { { echo "$as_me:$LINENO: error: Library requirements ($CANVAS_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
22179
echo "$as_me: error: Library requirements ($CANVAS_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
22180
   { (exit 1); exit 1; }; }
 
22181
  fi
 
22182
 
 
22183
 
 
22184
 
 
22185
  succeeded=no
 
22186
 
 
22187
  if test -z "$PKG_CONFIG"; then
 
22188
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
22189
set dummy pkg-config; ac_word=$2
 
22190
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22191
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22192
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
22193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22194
else
 
22195
  case $PKG_CONFIG in
 
22196
  [\\/]* | ?:[\\/]*)
 
22197
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
22198
  ;;
 
22199
  *)
 
22200
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22201
for as_dir in $PATH
 
22202
do
 
22203
  IFS=$as_save_IFS
 
22204
  test -z "$as_dir" && as_dir=.
 
22205
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22206
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22207
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22208
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22209
    break 2
 
22210
  fi
 
22211
done
 
22212
done
 
22213
 
 
22214
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
22215
  ;;
 
22216
esac
 
22217
fi
 
22218
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
22219
 
 
22220
if test -n "$PKG_CONFIG"; then
 
22221
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
22222
echo "${ECHO_T}$PKG_CONFIG" >&6
 
22223
else
 
22224
  echo "$as_me:$LINENO: result: no" >&5
 
22225
echo "${ECHO_T}no" >&6
 
22226
fi
 
22227
 
 
22228
  fi
 
22229
 
 
22230
  if test "$PKG_CONFIG" = "no" ; then
 
22231
     echo "*** The pkg-config script could not be found. Make sure it is"
 
22232
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
22233
     echo "*** to the full path to pkg-config."
 
22234
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
22235
  else
 
22236
     PKG_CONFIG_MIN_VERSION=0.9.0
 
22237
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
22238
        echo "$as_me:$LINENO: checking for $CANVAS_MODULES libglade-2.0 >= 2.0.0" >&5
 
22239
echo $ECHO_N "checking for $CANVAS_MODULES libglade-2.0 >= 2.0.0... $ECHO_C" >&6
 
22240
 
 
22241
        if $PKG_CONFIG --exists "$CANVAS_MODULES libglade-2.0 >= 2.0.0" ; then
 
22242
            echo "$as_me:$LINENO: result: yes" >&5
 
22243
echo "${ECHO_T}yes" >&6
 
22244
            succeeded=yes
 
22245
 
 
22246
            echo "$as_me:$LINENO: checking CANVAS_GLADE_CFLAGS" >&5
 
22247
echo $ECHO_N "checking CANVAS_GLADE_CFLAGS... $ECHO_C" >&6
 
22248
            CANVAS_GLADE_CFLAGS=`$PKG_CONFIG --cflags "$CANVAS_MODULES libglade-2.0 >= 2.0.0"`
 
22249
            echo "$as_me:$LINENO: result: $CANVAS_GLADE_CFLAGS" >&5
 
22250
echo "${ECHO_T}$CANVAS_GLADE_CFLAGS" >&6
 
22251
 
 
22252
            echo "$as_me:$LINENO: checking CANVAS_GLADE_LIBS" >&5
 
22253
echo $ECHO_N "checking CANVAS_GLADE_LIBS... $ECHO_C" >&6
 
22254
            CANVAS_GLADE_LIBS=`$PKG_CONFIG --libs "$CANVAS_MODULES libglade-2.0 >= 2.0.0"`
 
22255
            echo "$as_me:$LINENO: result: $CANVAS_GLADE_LIBS" >&5
 
22256
echo "${ECHO_T}$CANVAS_GLADE_LIBS" >&6
 
22257
        else
 
22258
            CANVAS_GLADE_CFLAGS=""
 
22259
            CANVAS_GLADE_LIBS=""
 
22260
            ## If we have a custom action on failure, don't print errors, but
 
22261
            ## do set a variable so people can do so.
 
22262
            CANVAS_GLADE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$CANVAS_MODULES libglade-2.0 >= 2.0.0"`
 
22263
            echo $CANVAS_GLADE_PKG_ERRORS
 
22264
        fi
 
22265
 
 
22266
 
 
22267
 
 
22268
     else
 
22269
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
22270
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
22271
     fi
 
22272
  fi
 
22273
 
 
22274
  if test $succeeded = yes; then
 
22275
     :
 
22276
  else
 
22277
     { { echo "$as_me:$LINENO: error: Library requirements ($CANVAS_MODULES libglade-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
22278
echo "$as_me: error: Library requirements ($CANVAS_MODULES libglade-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
22279
   { (exit 1); exit 1; }; }
 
22280
  fi
 
22281
 
 
22282
 
 
22283
echo "$as_me:$LINENO: checking for native Win32" >&5
 
22284
echo $ECHO_N "checking for native Win32... $ECHO_C" >&6
 
22285
case "$host" in
 
22286
  *-*-mingw*)
 
22287
    native_win32=yes
 
22288
    ;;
 
22289
  *)
 
22290
    native_win32=no
 
22291
    ;;
 
22292
esac
 
22293
echo "$as_me:$LINENO: result: $native_win32" >&5
 
22294
echo "${ECHO_T}$native_win32" >&6
 
22295
 
 
22296
 
 
22297
if test "$native_win32" = yes; then
 
22298
  OS_WIN32_TRUE=
 
22299
  OS_WIN32_FALSE='#'
 
22300
else
 
22301
  OS_WIN32_TRUE='#'
 
22302
  OS_WIN32_FALSE=
 
22303
fi
 
22304
 
 
22305
 
 
22306
echo "$as_me:$LINENO: checking for Win32 platform in general" >&5
 
22307
echo $ECHO_N "checking for Win32 platform in general... $ECHO_C" >&6
 
22308
case "$host" in
 
22309
  *-*-mingw*|*-*-cygwin*)
 
22310
    platform_win32=yes
 
22311
    ;;
 
22312
  *)
 
22313
    platform_win32=no
 
22314
    ;;
 
22315
esac
 
22316
echo "$as_me:$LINENO: result: $platform_win32" >&5
 
22317
echo "${ECHO_T}$platform_win32" >&6
 
22318
 
 
22319
 
 
22320
if test "$platform_win32" = yes; then
 
22321
  PLATFORM_WIN32_TRUE=
 
22322
  PLATFORM_WIN32_FALSE='#'
 
22323
else
 
22324
  PLATFORM_WIN32_TRUE='#'
 
22325
  PLATFORM_WIN32_FALSE=
 
22326
fi
 
22327
 
 
22328
 
 
22329
# Ensure MSVC-compatible struct packing convention is used when
 
22330
# compiling for Win32 with gcc. GTK+ uses this convention, so we must, too.
 
22331
# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
 
22332
# gcc2 uses "-fnative-struct".
 
22333
if test x"$native_win32" = xyes; then
 
22334
  if test x"$GCC" = xyes; then
 
22335
    msnative_struct=''
 
22336
    echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
 
22337
echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
 
22338
    if test -z "$ac_cv_prog_CC"; then
 
22339
      our_gcc="$CC"
 
22340
    else
 
22341
      our_gcc="$ac_cv_prog_CC"
 
22342
    fi
 
22343
    case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
 
22344
      2.)
 
22345
        if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
 
22346
          msnative_struct='-fnative-struct'
 
22347
        fi
 
22348
        ;;
 
22349
      *)
 
22350
        if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
 
22351
          msnative_struct='-mms-bitfields'
 
22352
        fi
 
22353
        ;;
 
22354
    esac
 
22355
    if test x"$msnative_struct" = x ; then
 
22356
      echo "$as_me:$LINENO: result: no way" >&5
 
22357
echo "${ECHO_T}no way" >&6
 
22358
      { echo "$as_me:$LINENO: WARNING: produced libraries will be incompatible with prebuilt GTK+ DLLs" >&5
 
22359
echo "$as_me: WARNING: produced libraries will be incompatible with prebuilt GTK+ DLLs" >&2;}
 
22360
    else
 
22361
      CFLAGS="$CFLAGS $msnative_struct"
 
22362
      echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
 
22363
echo "${ECHO_T}${msnative_struct}" >&6
 
22364
    fi
 
22365
  fi
 
22366
fi
 
22367
 
 
22368
for ac_prog in mawk gawk nawk awk
 
22369
do
 
22370
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
22371
set dummy $ac_prog; ac_word=$2
 
22372
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22373
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22374
if test "${ac_cv_path_AWK+set}" = set; then
 
22375
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22376
else
 
22377
  case $AWK in
 
22378
  [\\/]* | ?:[\\/]*)
 
22379
  ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
 
22380
  ;;
 
22381
  *)
 
22382
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22383
for as_dir in $PATH
 
22384
do
 
22385
  IFS=$as_save_IFS
 
22386
  test -z "$as_dir" && as_dir=.
 
22387
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22388
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22389
    ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
 
22390
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22391
    break 2
 
22392
  fi
 
22393
done
 
22394
done
 
22395
 
 
22396
  ;;
 
22397
esac
 
22398
fi
 
22399
AWK=$ac_cv_path_AWK
 
22400
 
 
22401
if test -n "$AWK"; then
 
22402
  echo "$as_me:$LINENO: result: $AWK" >&5
 
22403
echo "${ECHO_T}$AWK" >&6
 
22404
else
 
22405
  echo "$as_me:$LINENO: result: no" >&5
 
22406
echo "${ECHO_T}no" >&6
 
22407
fi
 
22408
 
 
22409
  test -n "$AWK" && break
 
22410
done
 
22411
 
 
22412
for ac_prog in perl5 perl
 
22413
do
 
22414
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
22415
set dummy $ac_prog; ac_word=$2
 
22416
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22417
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22418
if test "${ac_cv_path_PERL+set}" = set; then
 
22419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22420
else
 
22421
  case $PERL in
 
22422
  [\\/]* | ?:[\\/]*)
 
22423
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
22424
  ;;
 
22425
  *)
 
22426
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22427
for as_dir in $PATH
 
22428
do
 
22429
  IFS=$as_save_IFS
 
22430
  test -z "$as_dir" && as_dir=.
 
22431
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22432
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22433
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
22434
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22435
    break 2
 
22436
  fi
 
22437
done
 
22438
done
 
22439
 
 
22440
  ;;
 
22441
esac
 
22442
fi
 
22443
PERL=$ac_cv_path_PERL
 
22444
 
 
22445
if test -n "$PERL"; then
 
22446
  echo "$as_me:$LINENO: result: $PERL" >&5
 
22447
echo "${ECHO_T}$PERL" >&6
 
22448
else
 
22449
  echo "$as_me:$LINENO: result: no" >&5
 
22450
echo "${ECHO_T}no" >&6
 
22451
fi
 
22452
 
 
22453
  test -n "$PERL" && break
 
22454
done
 
22455
 
 
22456
 
 
22457
# glib-genmarshal
 
22458
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
 
22459
set dummy glib-genmarshal; ac_word=$2
 
22460
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22462
if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
 
22463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22464
else
 
22465
  case $GLIB_GENMARSHAL in
 
22466
  [\\/]* | ?:[\\/]*)
 
22467
  ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
 
22468
  ;;
 
22469
  *)
 
22470
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22471
for as_dir in $PATH
 
22472
do
 
22473
  IFS=$as_save_IFS
 
22474
  test -z "$as_dir" && as_dir=.
 
22475
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22476
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22477
    ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
 
22478
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22479
    break 2
 
22480
  fi
 
22481
done
 
22482
done
 
22483
 
 
22484
  ;;
 
22485
esac
 
22486
fi
 
22487
GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
 
22488
 
 
22489
if test -n "$GLIB_GENMARSHAL"; then
 
22490
  echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
 
22491
echo "${ECHO_T}$GLIB_GENMARSHAL" >&6
 
22492
else
 
22493
  echo "$as_me:$LINENO: result: no" >&5
 
22494
echo "${ECHO_T}no" >&6
 
22495
fi
 
22496
 
 
22497
 
 
22498
 
 
22499
 
 
22500
# Check whether --with-html-dir or --without-html-dir was given.
 
22501
if test "${with_html_dir+set}" = set; then
 
22502
  withval="$with_html_dir"
 
22503
 
 
22504
else
 
22505
  with_html_dir='${datadir}/gtk-doc/html'
 
22506
fi;
 
22507
  HTML_DIR="$with_html_dir"
 
22508
 
 
22509
 
 
22510
    # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
 
22511
if test "${enable_gtk_doc+set}" = set; then
 
22512
  enableval="$enable_gtk_doc"
 
22513
 
 
22514
else
 
22515
  enable_gtk_doc=no
 
22516
fi;
 
22517
 
 
22518
  have_gtk_doc=no
 
22519
  if test x$enable_gtk_doc = xyes; then
 
22520
    if test -z "$PKG_CONFIG"; then
 
22521
      # Extract the first word of "pkg-config", so it can be a program name with args.
 
22522
set dummy pkg-config; ac_word=$2
 
22523
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22524
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22525
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
22526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22527
else
 
22528
  case $PKG_CONFIG in
 
22529
  [\\/]* | ?:[\\/]*)
 
22530
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
22531
  ;;
 
22532
  *)
 
22533
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22534
for as_dir in $PATH
 
22535
do
 
22536
  IFS=$as_save_IFS
 
22537
  test -z "$as_dir" && as_dir=.
 
22538
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22539
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22540
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22541
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22542
    break 2
 
22543
  fi
 
22544
done
 
22545
done
 
22546
 
 
22547
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
22548
  ;;
 
22549
esac
 
22550
fi
 
22551
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
22552
 
 
22553
if test -n "$PKG_CONFIG"; then
 
22554
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
22555
echo "${ECHO_T}$PKG_CONFIG" >&6
 
22556
else
 
22557
  echo "$as_me:$LINENO: result: no" >&5
 
22558
echo "${ECHO_T}no" >&6
 
22559
fi
 
22560
 
 
22561
    fi
 
22562
    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
 
22563
      have_gtk_doc=yes
 
22564
    fi
 
22565
 
 
22566
  gtk_doc_min_version=1.0
 
22567
    if test "$have_gtk_doc" = yes; then
 
22568
      echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
 
22569
echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6
 
22570
      if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
 
22571
        echo "$as_me:$LINENO: result: yes" >&5
 
22572
echo "${ECHO_T}yes" >&6
 
22573
      else
 
22574
        echo "$as_me:$LINENO: result: no" >&5
 
22575
echo "${ECHO_T}no" >&6
 
22576
        have_gtk_doc=no
 
22577
      fi
 
22578
    fi
 
22579
 
 
22580
    if test "$have_gtk_doc" != yes; then
 
22581
      enable_gtk_doc=no
 
22582
    fi
 
22583
  fi
 
22584
 
 
22585
 
 
22586
 
 
22587
if test x$enable_gtk_doc = xyes; then
 
22588
  ENABLE_GTK_DOC_TRUE=
 
22589
  ENABLE_GTK_DOC_FALSE='#'
 
22590
else
 
22591
  ENABLE_GTK_DOC_TRUE='#'
 
22592
  ENABLE_GTK_DOC_FALSE=
 
22593
fi
 
22594
 
 
22595
 
 
22596
 
 
22597
if test -n "$LIBTOOL"; then
 
22598
  GTK_DOC_USE_LIBTOOL_TRUE=
 
22599
  GTK_DOC_USE_LIBTOOL_FALSE='#'
 
22600
else
 
22601
  GTK_DOC_USE_LIBTOOL_TRUE='#'
 
22602
  GTK_DOC_USE_LIBTOOL_FALSE=
 
22603
fi
 
22604
 
 
22605
 
 
22606
 
 
22607
# define a MAINT-like variable REBUILD which is set if Perl
 
22608
# and awk are found, so autogenerated sources can be rebuilt
 
22609
# Check whether --enable-rebuilds or --disable-rebuilds was given.
 
22610
if test "${enable_rebuilds+set}" = set; then
 
22611
  enableval="$enable_rebuilds"
 
22612
 
 
22613
else
 
22614
  enable_rebuilds=yes
 
22615
fi;
 
22616
REBUILD=\#
 
22617
if test "x$enable_rebuilds" = "xyes" && \
 
22618
     test -n "$PERL" && \
 
22619
     $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
 
22620
     test -n "$AWK" ; then
 
22621
  REBUILD=
 
22622
fi
 
22623
 
 
22624
 
 
22625
                                                                                                    ac_config_files="$ac_config_files Makefile po/Makefile.in libgnomecanvas/Makefile libgnomecanvas/libgnomecanvas-2.0.pc libgnomecanvas/libgnomecanvas-2.0-uninstalled.pc glade/Makefile demos/Makefile tests/Makefile docs/Makefile docs/reference/Makefile"
 
22626
 
 
22627
 
 
22628
cat >confcache <<\_ACEOF
 
22629
# This file is a shell script that caches the results of configure
 
22630
# tests run on this system so they can be shared between configure
 
22631
# scripts and configure runs, see configure's option --config-cache.
 
22632
# It is not useful on other systems.  If it contains results you don't
 
22633
# want to keep, you may remove or edit it.
 
22634
#
 
22635
# config.status only pays attention to the cache file if you give it
 
22636
# the --recheck option to rerun configure.
 
22637
#
 
22638
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22639
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22640
# following values.
 
22641
 
 
22642
_ACEOF
 
22643
 
 
22644
# The following way of writing the cache mishandles newlines in values,
 
22645
# but we know of no workaround that is simple, portable, and efficient.
 
22646
# So, don't put newlines in cache variables' values.
 
22647
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22648
# and sets the high bit in the cache file unless we assign to the vars.
 
22649
{
 
22650
  (set) 2>&1 |
 
22651
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
22652
    *ac_space=\ *)
 
22653
      # `set' does not quote correctly, so add quotes (double-quote
 
22654
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
22655
      sed -n \
 
22656
        "s/'/'\\\\''/g;
 
22657
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22658
      ;;
 
22659
    *)
 
22660
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22661
      sed -n \
 
22662
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
22663
      ;;
 
22664
    esac;
 
22665
} |
 
22666
  sed '
 
22667
     t clear
 
22668
     : clear
 
22669
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22670
     t end
 
22671
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22672
     : end' >>confcache
 
22673
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
22674
  if test -w $cache_file; then
 
22675
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
22676
    cat confcache >$cache_file
 
22677
  else
 
22678
    echo "not updating unwritable cache $cache_file"
 
22679
  fi
 
22680
fi
 
22681
rm -f confcache
 
22682
 
 
22683
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22684
# Let make expand exec_prefix.
 
22685
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22686
 
 
22687
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22688
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22689
# trailing colons and then remove the whole line if VPATH becomes empty
 
22690
# (actually we leave an empty line to preserve line numbers).
 
22691
if test "x$srcdir" = x.; then
 
22692
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22693
s/:*\$(srcdir):*/:/;
 
22694
s/:*\${srcdir}:*/:/;
 
22695
s/:*@srcdir@:*/:/;
 
22696
s/^\([^=]*=[     ]*\):*/\1/;
 
22697
s/:*$//;
 
22698
s/^[^=]*=[       ]*$//;
 
22699
}'
 
22700
fi
 
22701
 
 
22702
DEFS=-DHAVE_CONFIG_H
 
22703
 
 
22704
ac_libobjs=
 
22705
ac_ltlibobjs=
 
22706
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
22707
  # 1. Remove the extension, and $U if already installed.
 
22708
  ac_i=`echo "$ac_i" |
 
22709
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
22710
  # 2. Add them.
 
22711
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
22712
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
22713
done
 
22714
LIBOBJS=$ac_libobjs
 
22715
 
 
22716
LTLIBOBJS=$ac_ltlibobjs
 
22717
 
 
22718
 
 
22719
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
22720
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
22721
Usually this means the macro was only invoked conditionally." >&5
 
22722
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
22723
Usually this means the macro was only invoked conditionally." >&2;}
 
22724
   { (exit 1); exit 1; }; }
 
22725
fi
 
22726
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22727
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22728
Usually this means the macro was only invoked conditionally." >&5
 
22729
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22730
Usually this means the macro was only invoked conditionally." >&2;}
 
22731
   { (exit 1); exit 1; }; }
 
22732
fi
 
22733
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22734
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22735
Usually this means the macro was only invoked conditionally." >&5
 
22736
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22737
Usually this means the macro was only invoked conditionally." >&2;}
 
22738
   { (exit 1); exit 1; }; }
 
22739
fi
 
22740
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22741
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22742
Usually this means the macro was only invoked conditionally." >&5
 
22743
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22744
Usually this means the macro was only invoked conditionally." >&2;}
 
22745
   { (exit 1); exit 1; }; }
 
22746
fi
 
22747
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22748
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22749
Usually this means the macro was only invoked conditionally." >&5
 
22750
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22751
Usually this means the macro was only invoked conditionally." >&2;}
 
22752
   { (exit 1); exit 1; }; }
 
22753
fi
 
22754
if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
 
22755
  { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
 
22756
Usually this means the macro was only invoked conditionally." >&5
 
22757
echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
 
22758
Usually this means the macro was only invoked conditionally." >&2;}
 
22759
   { (exit 1); exit 1; }; }
 
22760
fi
 
22761
if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
 
22762
  { { echo "$as_me:$LINENO: error: conditional \"PLATFORM_WIN32\" was never defined.
 
22763
Usually this means the macro was only invoked conditionally." >&5
 
22764
echo "$as_me: error: conditional \"PLATFORM_WIN32\" was never defined.
 
22765
Usually this means the macro was only invoked conditionally." >&2;}
 
22766
   { (exit 1); exit 1; }; }
 
22767
fi
 
22768
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
 
22769
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
 
22770
Usually this means the macro was only invoked conditionally." >&5
 
22771
echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
 
22772
Usually this means the macro was only invoked conditionally." >&2;}
 
22773
   { (exit 1); exit 1; }; }
 
22774
fi
 
22775
if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
 
22776
  { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
 
22777
Usually this means the macro was only invoked conditionally." >&5
 
22778
echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
 
22779
Usually this means the macro was only invoked conditionally." >&2;}
 
22780
   { (exit 1); exit 1; }; }
 
22781
fi
 
22782
 
 
22783
: ${CONFIG_STATUS=./config.status}
 
22784
ac_clean_files_save=$ac_clean_files
 
22785
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22786
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
22787
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22788
cat >$CONFIG_STATUS <<_ACEOF
 
22789
#! $SHELL
 
22790
# Generated by $as_me.
 
22791
# Run this file to recreate the current configuration.
 
22792
# Compiler output produced by configure, useful for debugging
 
22793
# configure, is in config.log if it exists.
 
22794
 
 
22795
debug=false
 
22796
ac_cs_recheck=false
 
22797
ac_cs_silent=false
 
22798
SHELL=\${CONFIG_SHELL-$SHELL}
 
22799
_ACEOF
 
22800
 
 
22801
cat >>$CONFIG_STATUS <<\_ACEOF
 
22802
## --------------------- ##
 
22803
## M4sh Initialization.  ##
 
22804
## --------------------- ##
 
22805
 
 
22806
# Be Bourne compatible
 
22807
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
22808
  emulate sh
 
22809
  NULLCMD=:
 
22810
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22811
  # is contrary to our usage.  Disable this feature.
 
22812
  alias -g '${1+"$@"}'='"$@"'
 
22813
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22814
  set -o posix
 
22815
fi
 
22816
DUALCASE=1; export DUALCASE # for MKS sh
 
22817
 
 
22818
# Support unset when possible.
 
22819
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22820
  as_unset=unset
 
22821
else
 
22822
  as_unset=false
 
22823
fi
 
22824
 
 
22825
 
 
22826
# Work around bugs in pre-3.0 UWIN ksh.
 
22827
$as_unset ENV MAIL MAILPATH
 
22828
PS1='$ '
 
22829
PS2='> '
 
22830
PS4='+ '
 
22831
 
 
22832
# NLS nuisances.
 
22833
for as_var in \
 
22834
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
22835
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
22836
  LC_TELEPHONE LC_TIME
 
22837
do
 
22838
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22839
    eval $as_var=C; export $as_var
 
22840
  else
 
22841
    $as_unset $as_var
 
22842
  fi
 
22843
done
 
22844
 
 
22845
# Required to use basename.
 
22846
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22847
  as_expr=expr
 
22848
else
 
22849
  as_expr=false
 
22850
fi
 
22851
 
 
22852
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
22853
  as_basename=basename
 
22854
else
 
22855
  as_basename=false
 
22856
fi
 
22857
 
 
22858
 
 
22859
# Name of the executable.
 
22860
as_me=`$as_basename "$0" ||
 
22861
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22862
         X"$0" : 'X\(//\)$' \| \
 
22863
         X"$0" : 'X\(/\)$' \| \
 
22864
         .     : '\(.\)' 2>/dev/null ||
 
22865
echo X/"$0" |
 
22866
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
22867
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
22868
          /^X\/\(\/\).*/{ s//\1/; q; }
 
22869
          s/.*/./; q'`
 
22870
 
 
22871
 
 
22872
# PATH needs CR, and LINENO needs CR and PATH.
 
22873
# Avoid depending upon Character Ranges.
 
22874
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22875
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22876
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22877
as_cr_digits='0123456789'
 
22878
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22879
 
 
22880
# The user is always right.
 
22881
if test "${PATH_SEPARATOR+set}" != set; then
 
22882
  echo "#! /bin/sh" >conf$$.sh
 
22883
  echo  "exit 0"   >>conf$$.sh
 
22884
  chmod +x conf$$.sh
 
22885
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22886
    PATH_SEPARATOR=';'
 
22887
  else
 
22888
    PATH_SEPARATOR=:
 
22889
  fi
 
22890
  rm -f conf$$.sh
 
22891
fi
 
22892
 
 
22893
 
 
22894
  as_lineno_1=$LINENO
 
22895
  as_lineno_2=$LINENO
 
22896
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22897
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22898
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
22899
  # Find who we are.  Look in the path if we contain no path at all
 
22900
  # relative or not.
 
22901
  case $0 in
 
22902
    *[\\/]* ) as_myself=$0 ;;
 
22903
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22904
for as_dir in $PATH
 
22905
do
 
22906
  IFS=$as_save_IFS
 
22907
  test -z "$as_dir" && as_dir=.
 
22908
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22909
done
 
22910
 
 
22911
       ;;
 
22912
  esac
 
22913
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
22914
  # in which case we are not to be found in the path.
 
22915
  if test "x$as_myself" = x; then
 
22916
    as_myself=$0
 
22917
  fi
 
22918
  if test ! -f "$as_myself"; then
 
22919
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
22920
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
22921
   { (exit 1); exit 1; }; }
 
22922
  fi
 
22923
  case $CONFIG_SHELL in
 
22924
  '')
 
22925
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22926
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
22927
do
 
22928
  IFS=$as_save_IFS
 
22929
  test -z "$as_dir" && as_dir=.
 
22930
  for as_base in sh bash ksh sh5; do
 
22931
         case $as_dir in
 
22932
         /*)
 
22933
           if ("$as_dir/$as_base" -c '
 
22934
  as_lineno_1=$LINENO
 
22935
  as_lineno_2=$LINENO
 
22936
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22937
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22938
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
22939
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
22940
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
22941
             CONFIG_SHELL=$as_dir/$as_base
 
22942
             export CONFIG_SHELL
 
22943
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
22944
           fi;;
 
22945
         esac
 
22946
       done
 
22947
done
 
22948
;;
 
22949
  esac
 
22950
 
 
22951
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22952
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22953
  # line-number line before each line; the second 'sed' does the real
 
22954
  # work.  The second script uses 'N' to pair each line-number line
 
22955
  # with the numbered line, and appends trailing '-' during
 
22956
  # substitution so that $LINENO is not a special case at line end.
 
22957
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22958
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
22959
  sed '=' <$as_myself |
 
22960
    sed '
 
22961
      N
 
22962
      s,$,-,
 
22963
      : loop
 
22964
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
22965
      t loop
 
22966
      s,-$,,
 
22967
      s,^['$as_cr_digits']*\n,,
 
22968
    ' >$as_me.lineno &&
 
22969
  chmod +x $as_me.lineno ||
 
22970
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
22971
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
22972
   { (exit 1); exit 1; }; }
 
22973
 
 
22974
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22975
  # (the dirname of $[0] is not the place where we might find the
 
22976
  # original and so on.  Autoconf is especially sensible to this).
 
22977
  . ./$as_me.lineno
 
22978
  # Exit status is that of the last command.
 
22979
  exit
 
22980
}
 
22981
 
 
22982
 
 
22983
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
22984
  *c*,-n*) ECHO_N= ECHO_C='
 
22985
' ECHO_T='      ' ;;
 
22986
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
22987
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
22988
esac
 
22989
 
 
22990
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22991
  as_expr=expr
 
22992
else
 
22993
  as_expr=false
 
22994
fi
 
22995
 
 
22996
rm -f conf$$ conf$$.exe conf$$.file
 
22997
echo >conf$$.file
 
22998
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22999
  # We could just check for DJGPP; but this test a) works b) is more generic
 
23000
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
23001
  if test -f conf$$.exe; then
 
23002
    # Don't use ln at all; we don't have any links
 
23003
    as_ln_s='cp -p'
 
23004
  else
 
23005
    as_ln_s='ln -s'
 
23006
  fi
 
23007
elif ln conf$$.file conf$$ 2>/dev/null; then
 
23008
  as_ln_s=ln
 
23009
else
 
23010
  as_ln_s='cp -p'
 
23011
fi
 
23012
rm -f conf$$ conf$$.exe conf$$.file
 
23013
 
 
23014
if mkdir -p . 2>/dev/null; then
 
23015
  as_mkdir_p=:
 
23016
else
 
23017
  test -d ./-p && rmdir ./-p
 
23018
  as_mkdir_p=false
 
23019
fi
 
23020
 
 
23021
as_executable_p="test -f"
 
23022
 
 
23023
# Sed expression to map a string onto a valid CPP name.
 
23024
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
23025
 
 
23026
# Sed expression to map a string onto a valid variable name.
 
23027
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
23028
 
 
23029
 
 
23030
# IFS
 
23031
# We need space, tab and new line, in precisely that order.
 
23032
as_nl='
 
23033
'
 
23034
IFS="   $as_nl"
 
23035
 
 
23036
# CDPATH.
 
23037
$as_unset CDPATH
 
23038
 
 
23039
exec 6>&1
 
23040
 
 
23041
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
23042
# report actual input values of CONFIG_FILES etc. instead of their
 
23043
# values after options handling.  Logging --version etc. is OK.
 
23044
exec 5>>config.log
 
23045
{
 
23046
  echo
 
23047
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
23048
## Running $as_me. ##
 
23049
_ASBOX
 
23050
} >&5
 
23051
cat >&5 <<_CSEOF
 
23052
 
 
23053
This file was extended by libgnomecanvas $as_me 2.8.0, which was
 
23054
generated by GNU Autoconf 2.59.  Invocation command line was
 
23055
 
 
23056
  CONFIG_FILES    = $CONFIG_FILES
 
23057
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
23058
  CONFIG_LINKS    = $CONFIG_LINKS
 
23059
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
23060
  $ $0 $@
 
23061
 
 
23062
_CSEOF
 
23063
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
23064
echo >&5
 
23065
_ACEOF
 
23066
 
 
23067
# Files that config.status was made for.
 
23068
if test -n "$ac_config_files"; then
 
23069
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
23070
fi
 
23071
 
 
23072
if test -n "$ac_config_headers"; then
 
23073
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
23074
fi
 
23075
 
 
23076
if test -n "$ac_config_links"; then
 
23077
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
23078
fi
 
23079
 
 
23080
if test -n "$ac_config_commands"; then
 
23081
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
23082
fi
 
23083
 
 
23084
cat >>$CONFIG_STATUS <<\_ACEOF
 
23085
 
 
23086
ac_cs_usage="\
 
23087
\`$as_me' instantiates files from templates according to the
 
23088
current configuration.
 
23089
 
 
23090
Usage: $0 [OPTIONS] [FILE]...
 
23091
 
 
23092
  -h, --help       print this help, then exit
 
23093
  -V, --version    print version number, then exit
 
23094
  -q, --quiet      do not print progress messages
 
23095
  -d, --debug      don't remove temporary files
 
23096
      --recheck    update $as_me by reconfiguring in the same conditions
 
23097
  --file=FILE[:TEMPLATE]
 
23098
                   instantiate the configuration file FILE
 
23099
  --header=FILE[:TEMPLATE]
 
23100
                   instantiate the configuration header FILE
 
23101
 
 
23102
Configuration files:
 
23103
$config_files
 
23104
 
 
23105
Configuration headers:
 
23106
$config_headers
 
23107
 
 
23108
Configuration commands:
 
23109
$config_commands
 
23110
 
 
23111
Report bugs to <bug-autoconf@gnu.org>."
 
23112
_ACEOF
 
23113
 
 
23114
cat >>$CONFIG_STATUS <<_ACEOF
 
23115
ac_cs_version="\\
 
23116
libgnomecanvas config.status 2.8.0
 
23117
configured by $0, generated by GNU Autoconf 2.59,
 
23118
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
23119
 
 
23120
Copyright (C) 2003 Free Software Foundation, Inc.
 
23121
This config.status script is free software; the Free Software Foundation
 
23122
gives unlimited permission to copy, distribute and modify it."
 
23123
srcdir=$srcdir
 
23124
INSTALL="$INSTALL"
 
23125
_ACEOF
 
23126
 
 
23127
cat >>$CONFIG_STATUS <<\_ACEOF
 
23128
# If no file are specified by the user, then we need to provide default
 
23129
# value.  By we need to know if files were specified by the user.
 
23130
ac_need_defaults=:
 
23131
while test $# != 0
 
23132
do
 
23133
  case $1 in
 
23134
  --*=*)
 
23135
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
23136
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
23137
    ac_shift=:
 
23138
    ;;
 
23139
  -*)
 
23140
    ac_option=$1
 
23141
    ac_optarg=$2
 
23142
    ac_shift=shift
 
23143
    ;;
 
23144
  *) # This is not an option, so the user has probably given explicit
 
23145
     # arguments.
 
23146
     ac_option=$1
 
23147
     ac_need_defaults=false;;
 
23148
  esac
 
23149
 
 
23150
  case $ac_option in
 
23151
  # Handling of the options.
 
23152
_ACEOF
 
23153
cat >>$CONFIG_STATUS <<\_ACEOF
 
23154
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
23155
    ac_cs_recheck=: ;;
 
23156
  --version | --vers* | -V )
 
23157
    echo "$ac_cs_version"; exit 0 ;;
 
23158
  --he | --h)
 
23159
    # Conflict between --help and --header
 
23160
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
23161
Try \`$0 --help' for more information." >&5
 
23162
echo "$as_me: error: ambiguous option: $1
 
23163
Try \`$0 --help' for more information." >&2;}
 
23164
   { (exit 1); exit 1; }; };;
 
23165
  --help | --hel | -h )
 
23166
    echo "$ac_cs_usage"; exit 0 ;;
 
23167
  --debug | --d* | -d )
 
23168
    debug=: ;;
 
23169
  --file | --fil | --fi | --f )
 
23170
    $ac_shift
 
23171
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
23172
    ac_need_defaults=false;;
 
23173
  --header | --heade | --head | --hea )
 
23174
    $ac_shift
 
23175
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
23176
    ac_need_defaults=false;;
 
23177
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
23178
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
23179
    ac_cs_silent=: ;;
 
23180
 
 
23181
  # This is an error.
 
23182
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
23183
Try \`$0 --help' for more information." >&5
 
23184
echo "$as_me: error: unrecognized option: $1
 
23185
Try \`$0 --help' for more information." >&2;}
 
23186
   { (exit 1); exit 1; }; } ;;
 
23187
 
 
23188
  *) ac_config_targets="$ac_config_targets $1" ;;
 
23189
 
 
23190
  esac
 
23191
  shift
 
23192
done
 
23193
 
 
23194
ac_configure_extra_args=
 
23195
 
 
23196
if $ac_cs_silent; then
 
23197
  exec 6>/dev/null
 
23198
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
23199
fi
 
23200
 
 
23201
_ACEOF
 
23202
cat >>$CONFIG_STATUS <<_ACEOF
 
23203
if \$ac_cs_recheck; then
 
23204
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
23205
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
23206
fi
 
23207
 
 
23208
_ACEOF
 
23209
 
 
23210
cat >>$CONFIG_STATUS <<_ACEOF
 
23211
#
 
23212
# INIT-COMMANDS section.
 
23213
#
 
23214
 
 
23215
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
23216
 
 
23217
 
 
23218
_ACEOF
 
23219
 
 
23220
 
 
23221
 
 
23222
cat >>$CONFIG_STATUS <<\_ACEOF
 
23223
for ac_config_target in $ac_config_targets
 
23224
do
 
23225
  case "$ac_config_target" in
 
23226
  # Handling of arguments.
 
23227
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
23228
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
23229
  "libgnomecanvas/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgnomecanvas/Makefile" ;;
 
23230
  "libgnomecanvas/libgnomecanvas-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES libgnomecanvas/libgnomecanvas-2.0.pc" ;;
 
23231
  "libgnomecanvas/libgnomecanvas-2.0-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES libgnomecanvas/libgnomecanvas-2.0-uninstalled.pc" ;;
 
23232
  "glade/Makefile" ) CONFIG_FILES="$CONFIG_FILES glade/Makefile" ;;
 
23233
  "demos/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
 
23234
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
23235
  "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
 
23236
  "docs/reference/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
 
23237
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
23238
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
23239
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
23240
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
23241
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
23242
   { (exit 1); exit 1; }; };;
 
23243
  esac
 
23244
done
 
23245
 
 
23246
# If the user did not use the arguments to specify the items to instantiate,
 
23247
# then the envvar interface is used.  Set only those that are not.
 
23248
# We use the long form for the default assignment because of an extremely
 
23249
# bizarre bug on SunOS 4.1.3.
 
23250
if $ac_need_defaults; then
 
23251
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
23252
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
23253
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
23254
fi
 
23255
 
 
23256
# Have a temporary directory for convenience.  Make it in the build tree
 
23257
# simply because there is no reason to put it here, and in addition,
 
23258
# creating and moving files from /tmp can sometimes cause problems.
 
23259
# Create a temporary directory, and hook for its removal unless debugging.
 
23260
$debug ||
 
23261
{
 
23262
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
23263
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
23264
}
 
23265
 
 
23266
# Create a (secure) tmp directory for tmp files.
 
23267
 
 
23268
{
 
23269
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
23270
  test -n "$tmp" && test -d "$tmp"
 
23271
}  ||
 
23272
{
 
23273
  tmp=./confstat$$-$RANDOM
 
23274
  (umask 077 && mkdir $tmp)
 
23275
} ||
 
23276
{
 
23277
   echo "$me: cannot create a temporary directory in ." >&2
 
23278
   { (exit 1); exit 1; }
 
23279
}
 
23280
 
 
23281
_ACEOF
 
23282
 
 
23283
cat >>$CONFIG_STATUS <<_ACEOF
 
23284
 
 
23285
#
 
23286
# CONFIG_FILES section.
 
23287
#
 
23288
 
 
23289
# No need to generate the scripts if there are no CONFIG_FILES.
 
23290
# This happens for instance when ./config.status config.h
 
23291
if test -n "\$CONFIG_FILES"; then
 
23292
  # Protect against being on the right side of a sed subst in config.status.
 
23293
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
23294
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
23295
s,@SHELL@,$SHELL,;t t
 
23296
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
23297
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
23298
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
23299
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
23300
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
23301
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
23302
s,@exec_prefix@,$exec_prefix,;t t
 
23303
s,@prefix@,$prefix,;t t
 
23304
s,@program_transform_name@,$program_transform_name,;t t
 
23305
s,@bindir@,$bindir,;t t
 
23306
s,@sbindir@,$sbindir,;t t
 
23307
s,@libexecdir@,$libexecdir,;t t
 
23308
s,@datadir@,$datadir,;t t
 
23309
s,@sysconfdir@,$sysconfdir,;t t
 
23310
s,@sharedstatedir@,$sharedstatedir,;t t
 
23311
s,@localstatedir@,$localstatedir,;t t
 
23312
s,@libdir@,$libdir,;t t
 
23313
s,@includedir@,$includedir,;t t
 
23314
s,@oldincludedir@,$oldincludedir,;t t
 
23315
s,@infodir@,$infodir,;t t
 
23316
s,@mandir@,$mandir,;t t
 
23317
s,@build_alias@,$build_alias,;t t
 
23318
s,@host_alias@,$host_alias,;t t
 
23319
s,@target_alias@,$target_alias,;t t
 
23320
s,@DEFS@,$DEFS,;t t
 
23321
s,@ECHO_C@,$ECHO_C,;t t
 
23322
s,@ECHO_N@,$ECHO_N,;t t
 
23323
s,@ECHO_T@,$ECHO_T,;t t
 
23324
s,@LIBS@,$LIBS,;t t
 
23325
s,@LIBGNOMECANVAS_CURRENT@,$LIBGNOMECANVAS_CURRENT,;t t
 
23326
s,@LIBGNOMECANVAS_REVISION@,$LIBGNOMECANVAS_REVISION,;t t
 
23327
s,@LIBGNOMECANVAS_AGE@,$LIBGNOMECANVAS_AGE,;t t
 
23328
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
23329
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
23330
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
23331
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
23332
s,@PACKAGE@,$PACKAGE,;t t
 
23333
s,@VERSION@,$VERSION,;t t
 
23334
s,@ACLOCAL@,$ACLOCAL,;t t
 
23335
s,@AUTOCONF@,$AUTOCONF,;t t
 
23336
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
23337
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
23338
s,@MAKEINFO@,$MAKEINFO,;t t
 
23339
s,@AMTAR@,$AMTAR,;t t
 
23340
s,@install_sh@,$install_sh,;t t
 
23341
s,@STRIP@,$STRIP,;t t
 
23342
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
23343
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
23344
s,@AWK@,$AWK,;t t
 
23345
s,@SET_MAKE@,$SET_MAKE,;t t
 
23346
s,@am__leading_dot@,$am__leading_dot,;t t
 
23347
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
23348
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
23349
s,@MAINT@,$MAINT,;t t
 
23350
s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
 
23351
s,@CC@,$CC,;t t
 
23352
s,@CFLAGS@,$CFLAGS,;t t
 
23353
s,@LDFLAGS@,$LDFLAGS,;t t
 
23354
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
23355
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
23356
s,@EXEEXT@,$EXEEXT,;t t
 
23357
s,@OBJEXT@,$OBJEXT,;t t
 
23358
s,@DEPDIR@,$DEPDIR,;t t
 
23359
s,@am__include@,$am__include,;t t
 
23360
s,@am__quote@,$am__quote,;t t
 
23361
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
23362
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
23363
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
23364
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
23365
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
23366
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
23367
s,@CPP@,$CPP,;t t
 
23368
s,@EGREP@,$EGREP,;t t
 
23369
s,@build@,$build,;t t
 
23370
s,@build_cpu@,$build_cpu,;t t
 
23371
s,@build_vendor@,$build_vendor,;t t
 
23372
s,@build_os@,$build_os,;t t
 
23373
s,@host@,$host,;t t
 
23374
s,@host_cpu@,$host_cpu,;t t
 
23375
s,@host_vendor@,$host_vendor,;t t
 
23376
s,@host_os@,$host_os,;t t
 
23377
s,@LN_S@,$LN_S,;t t
 
23378
s,@ECHO@,$ECHO,;t t
 
23379
s,@AR@,$AR,;t t
 
23380
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
23381
s,@RANLIB@,$RANLIB,;t t
 
23382
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
23383
s,@DLLTOOL@,$DLLTOOL,;t t
 
23384
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
 
23385
s,@AS@,$AS,;t t
 
23386
s,@ac_ct_AS@,$ac_ct_AS,;t t
 
23387
s,@OBJDUMP@,$OBJDUMP,;t t
 
23388
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
 
23389
s,@CXX@,$CXX,;t t
 
23390
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
23391
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
23392
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
23393
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
23394
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
23395
s,@CXXCPP@,$CXXCPP,;t t
 
23396
s,@F77@,$F77,;t t
 
23397
s,@FFLAGS@,$FFLAGS,;t t
 
23398
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
23399
s,@LIBTOOL@,$LIBTOOL,;t t
 
23400
s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
 
23401
s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
 
23402
s,@USE_NLS@,$USE_NLS,;t t
 
23403
s,@MSGFMT@,$MSGFMT,;t t
 
23404
s,@GMSGFMT@,$GMSGFMT,;t t
 
23405
s,@XGETTEXT@,$XGETTEXT,;t t
 
23406
s,@CATALOGS@,$CATALOGS,;t t
 
23407
s,@CATOBJEXT@,$CATOBJEXT,;t t
 
23408
s,@DATADIRNAME@,$DATADIRNAME,;t t
 
23409
s,@GMOFILES@,$GMOFILES,;t t
 
23410
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
 
23411
s,@INTLLIBS@,$INTLLIBS,;t t
 
23412
s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
 
23413
s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
 
23414
s,@POFILES@,$POFILES,;t t
 
23415
s,@POSUB@,$POSUB,;t t
 
23416
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
23417
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
23418
s,@LIBGNOMECANVAS_CFLAGS@,$LIBGNOMECANVAS_CFLAGS,;t t
 
23419
s,@LIBGNOMECANVAS_LIBS@,$LIBGNOMECANVAS_LIBS,;t t
 
23420
s,@CANVAS_GLADE_CFLAGS@,$CANVAS_GLADE_CFLAGS,;t t
 
23421
s,@CANVAS_GLADE_LIBS@,$CANVAS_GLADE_LIBS,;t t
 
23422
s,@OS_WIN32_TRUE@,$OS_WIN32_TRUE,;t t
 
23423
s,@OS_WIN32_FALSE@,$OS_WIN32_FALSE,;t t
 
23424
s,@PLATFORM_WIN32_TRUE@,$PLATFORM_WIN32_TRUE,;t t
 
23425
s,@PLATFORM_WIN32_FALSE@,$PLATFORM_WIN32_FALSE,;t t
 
23426
s,@PERL@,$PERL,;t t
 
23427
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
 
23428
s,@HTML_DIR@,$HTML_DIR,;t t
 
23429
s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
 
23430
s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
 
23431
s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
 
23432
s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
 
23433
s,@REBUILD@,$REBUILD,;t t
 
23434
s,@LIBOBJS@,$LIBOBJS,;t t
 
23435
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
23436
CEOF
 
23437
 
 
23438
_ACEOF
 
23439
 
 
23440
  cat >>$CONFIG_STATUS <<\_ACEOF
 
23441
  # Split the substitutions into bite-sized pieces for seds with
 
23442
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
23443
  ac_max_sed_lines=48
 
23444
  ac_sed_frag=1 # Number of current file.
 
23445
  ac_beg=1 # First line for current file.
 
23446
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
23447
  ac_more_lines=:
 
23448
  ac_sed_cmds=
 
23449
  while $ac_more_lines; do
 
23450
    if test $ac_beg -gt 1; then
 
23451
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
23452
    else
 
23453
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
23454
    fi
 
23455
    if test ! -s $tmp/subs.frag; then
 
23456
      ac_more_lines=false
 
23457
    else
 
23458
      # The purpose of the label and of the branching condition is to
 
23459
      # speed up the sed processing (if there are no `@' at all, there
 
23460
      # is no need to browse any of the substitutions).
 
23461
      # These are the two extra sed commands mentioned above.
 
23462
      (echo ':t
 
23463
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
23464
      if test -z "$ac_sed_cmds"; then
 
23465
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
23466
      else
 
23467
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
23468
      fi
 
23469
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
23470
      ac_beg=$ac_end
 
23471
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
23472
    fi
 
23473
  done
 
23474
  if test -z "$ac_sed_cmds"; then
 
23475
    ac_sed_cmds=cat
 
23476
  fi
 
23477
fi # test -n "$CONFIG_FILES"
 
23478
 
 
23479
_ACEOF
 
23480
cat >>$CONFIG_STATUS <<\_ACEOF
 
23481
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
23482
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
23483
  case $ac_file in
 
23484
  - | *:- | *:-:* ) # input from stdin
 
23485
        cat >$tmp/stdin
 
23486
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23487
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23488
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23489
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23490
  * )   ac_file_in=$ac_file.in ;;
 
23491
  esac
 
23492
 
 
23493
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
23494
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23495
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23496
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23497
         X"$ac_file" : 'X\(//\)$' \| \
 
23498
         X"$ac_file" : 'X\(/\)' \| \
 
23499
         .     : '\(.\)' 2>/dev/null ||
 
23500
echo X"$ac_file" |
 
23501
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23502
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23503
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23504
          /^X\(\/\).*/{ s//\1/; q; }
 
23505
          s/.*/./; q'`
 
23506
  { if $as_mkdir_p; then
 
23507
    mkdir -p "$ac_dir"
 
23508
  else
 
23509
    as_dir="$ac_dir"
 
23510
    as_dirs=
 
23511
    while test ! -d "$as_dir"; do
 
23512
      as_dirs="$as_dir $as_dirs"
 
23513
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23514
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23515
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23516
         X"$as_dir" : 'X\(//\)$' \| \
 
23517
         X"$as_dir" : 'X\(/\)' \| \
 
23518
         .     : '\(.\)' 2>/dev/null ||
 
23519
echo X"$as_dir" |
 
23520
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23521
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23522
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23523
          /^X\(\/\).*/{ s//\1/; q; }
 
23524
          s/.*/./; q'`
 
23525
    done
 
23526
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23527
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23528
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23529
   { (exit 1); exit 1; }; }; }
 
23530
 
 
23531
  ac_builddir=.
 
23532
 
 
23533
if test "$ac_dir" != .; then
 
23534
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23535
  # A "../" for each directory in $ac_dir_suffix.
 
23536
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23537
else
 
23538
  ac_dir_suffix= ac_top_builddir=
 
23539
fi
 
23540
 
 
23541
case $srcdir in
 
23542
  .)  # No --srcdir option.  We are building in place.
 
23543
    ac_srcdir=.
 
23544
    if test -z "$ac_top_builddir"; then
 
23545
       ac_top_srcdir=.
 
23546
    else
 
23547
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23548
    fi ;;
 
23549
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23550
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23551
    ac_top_srcdir=$srcdir ;;
 
23552
  *) # Relative path.
 
23553
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23554
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23555
esac
 
23556
 
 
23557
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23558
# the directories may not exist.
 
23559
case `pwd` in
 
23560
.) ac_abs_builddir="$ac_dir";;
 
23561
*)
 
23562
  case "$ac_dir" in
 
23563
  .) ac_abs_builddir=`pwd`;;
 
23564
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23565
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23566
  esac;;
 
23567
esac
 
23568
case $ac_abs_builddir in
 
23569
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23570
*)
 
23571
  case ${ac_top_builddir}. in
 
23572
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23573
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23574
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23575
  esac;;
 
23576
esac
 
23577
case $ac_abs_builddir in
 
23578
.) ac_abs_srcdir=$ac_srcdir;;
 
23579
*)
 
23580
  case $ac_srcdir in
 
23581
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23582
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23583
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23584
  esac;;
 
23585
esac
 
23586
case $ac_abs_builddir in
 
23587
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23588
*)
 
23589
  case $ac_top_srcdir in
 
23590
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23591
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23592
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23593
  esac;;
 
23594
esac
 
23595
 
 
23596
 
 
23597
  case $INSTALL in
 
23598
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23599
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
23600
  esac
 
23601
 
 
23602
  if test x"$ac_file" != x-; then
 
23603
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23604
echo "$as_me: creating $ac_file" >&6;}
 
23605
    rm -f "$ac_file"
 
23606
  fi
 
23607
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23608
  # use $as_me), people would be surprised to read:
 
23609
  #    /* config.h.  Generated by config.status.  */
 
23610
  if test x"$ac_file" = x-; then
 
23611
    configure_input=
 
23612
  else
 
23613
    configure_input="$ac_file.  "
 
23614
  fi
 
23615
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
23616
                                     sed 's,.*/,,'` by configure."
 
23617
 
 
23618
  # First look for the input files in the build tree, otherwise in the
 
23619
  # src tree.
 
23620
  ac_file_inputs=`IFS=:
 
23621
    for f in $ac_file_in; do
 
23622
      case $f in
 
23623
      -) echo $tmp/stdin ;;
 
23624
      [\\/$]*)
 
23625
         # Absolute (can't be DOS-style, as IFS=:)
 
23626
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23627
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23628
   { (exit 1); exit 1; }; }
 
23629
         echo "$f";;
 
23630
      *) # Relative
 
23631
         if test -f "$f"; then
 
23632
           # Build tree
 
23633
           echo "$f"
 
23634
         elif test -f "$srcdir/$f"; then
 
23635
           # Source tree
 
23636
           echo "$srcdir/$f"
 
23637
         else
 
23638
           # /dev/null tree
 
23639
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23640
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23641
   { (exit 1); exit 1; }; }
 
23642
         fi;;
 
23643
      esac
 
23644
    done` || { (exit 1); exit 1; }
 
23645
_ACEOF
 
23646
cat >>$CONFIG_STATUS <<_ACEOF
 
23647
  sed "$ac_vpsub
 
23648
$extrasub
 
23649
_ACEOF
 
23650
cat >>$CONFIG_STATUS <<\_ACEOF
 
23651
:t
 
23652
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23653
s,@configure_input@,$configure_input,;t t
 
23654
s,@srcdir@,$ac_srcdir,;t t
 
23655
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
23656
s,@top_srcdir@,$ac_top_srcdir,;t t
 
23657
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
23658
s,@builddir@,$ac_builddir,;t t
 
23659
s,@abs_builddir@,$ac_abs_builddir,;t t
 
23660
s,@top_builddir@,$ac_top_builddir,;t t
 
23661
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
23662
s,@INSTALL@,$ac_INSTALL,;t t
 
23663
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
23664
  rm -f $tmp/stdin
 
23665
  if test x"$ac_file" != x-; then
 
23666
    mv $tmp/out $ac_file
 
23667
  else
 
23668
    cat $tmp/out
 
23669
    rm -f $tmp/out
 
23670
  fi
 
23671
 
 
23672
done
 
23673
_ACEOF
 
23674
cat >>$CONFIG_STATUS <<\_ACEOF
 
23675
 
 
23676
#
 
23677
# CONFIG_HEADER section.
 
23678
#
 
23679
 
 
23680
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
23681
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
23682
#
 
23683
# ac_d sets the value in "#define NAME VALUE" lines.
 
23684
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
23685
ac_dB='[         ].*$,\1#\2'
 
23686
ac_dC=' '
 
23687
ac_dD=',;t'
 
23688
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
23689
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
23690
ac_uB='$,\1#\2define\3'
 
23691
ac_uC=' '
 
23692
ac_uD=',;t'
 
23693
 
 
23694
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
23695
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
23696
  case $ac_file in
 
23697
  - | *:- | *:-:* ) # input from stdin
 
23698
        cat >$tmp/stdin
 
23699
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23700
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23701
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23702
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23703
  * )   ac_file_in=$ac_file.in ;;
 
23704
  esac
 
23705
 
 
23706
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23707
echo "$as_me: creating $ac_file" >&6;}
 
23708
 
 
23709
  # First look for the input files in the build tree, otherwise in the
 
23710
  # src tree.
 
23711
  ac_file_inputs=`IFS=:
 
23712
    for f in $ac_file_in; do
 
23713
      case $f in
 
23714
      -) echo $tmp/stdin ;;
 
23715
      [\\/$]*)
 
23716
         # Absolute (can't be DOS-style, as IFS=:)
 
23717
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23718
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23719
   { (exit 1); exit 1; }; }
 
23720
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
23721
         echo "$f";;
 
23722
      *) # Relative
 
23723
         if test -f "$f"; then
 
23724
           # Build tree
 
23725
           echo "$f"
 
23726
         elif test -f "$srcdir/$f"; then
 
23727
           # Source tree
 
23728
           echo "$srcdir/$f"
 
23729
         else
 
23730
           # /dev/null tree
 
23731
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23732
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23733
   { (exit 1); exit 1; }; }
 
23734
         fi;;
 
23735
      esac
 
23736
    done` || { (exit 1); exit 1; }
 
23737
  # Remove the trailing spaces.
 
23738
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
23739
 
 
23740
_ACEOF
 
23741
 
 
23742
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
23743
# `conftest.undefs', that substitutes the proper values into
 
23744
# config.h.in to produce config.h.  The first handles `#define'
 
23745
# templates, and the second `#undef' templates.
 
23746
# And first: Protect against being on the right side of a sed subst in
 
23747
# config.status.  Protect against being in an unquoted here document
 
23748
# in config.status.
 
23749
rm -f conftest.defines conftest.undefs
 
23750
# Using a here document instead of a string reduces the quoting nightmare.
 
23751
# Putting comments in sed scripts is not portable.
 
23752
#
 
23753
# `end' is used to avoid that the second main sed command (meant for
 
23754
# 0-ary CPP macros) applies to n-ary macro definitions.
 
23755
# See the Autoconf documentation for `clear'.
 
23756
cat >confdef2sed.sed <<\_ACEOF
 
23757
s/[\\&,]/\\&/g
 
23758
s,[\\$`],\\&,g
 
23759
t clear
 
23760
: clear
 
23761
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
23762
t end
 
23763
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
23764
: end
 
23765
_ACEOF
 
23766
# If some macros were called several times there might be several times
 
23767
# the same #defines, which is useless.  Nevertheless, we may not want to
 
23768
# sort them, since we want the *last* AC-DEFINE to be honored.
 
23769
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
23770
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
23771
rm -f confdef2sed.sed
 
23772
 
 
23773
# This sed command replaces #undef with comments.  This is necessary, for
 
23774
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
23775
# on some systems where configure will not decide to define it.
 
23776
cat >>conftest.undefs <<\_ACEOF
 
23777
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
23778
_ACEOF
 
23779
 
 
23780
# Break up conftest.defines because some shells have a limit on the size
 
23781
# of here documents, and old seds have small limits too (100 cmds).
 
23782
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
23783
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
23784
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
23785
echo '  :' >>$CONFIG_STATUS
 
23786
rm -f conftest.tail
 
23787
while grep . conftest.defines >/dev/null
 
23788
do
 
23789
  # Write a limited-size here document to $tmp/defines.sed.
 
23790
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
23791
  # Speed up: don't consider the non `#define' lines.
 
23792
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
23793
  # Work around the forget-to-reset-the-flag bug.
 
23794
  echo 't clr' >>$CONFIG_STATUS
 
23795
  echo ': clr' >>$CONFIG_STATUS
 
23796
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
23797
  echo 'CEOF
 
23798
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
23799
  rm -f $tmp/in
 
23800
  mv $tmp/out $tmp/in
 
23801
' >>$CONFIG_STATUS
 
23802
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
23803
  rm -f conftest.defines
 
23804
  mv conftest.tail conftest.defines
 
23805
done
 
23806
rm -f conftest.defines
 
23807
echo '  fi # grep' >>$CONFIG_STATUS
 
23808
echo >>$CONFIG_STATUS
 
23809
 
 
23810
# Break up conftest.undefs because some shells have a limit on the size
 
23811
# of here documents, and old seds have small limits too (100 cmds).
 
23812
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
23813
rm -f conftest.tail
 
23814
while grep . conftest.undefs >/dev/null
 
23815
do
 
23816
  # Write a limited-size here document to $tmp/undefs.sed.
 
23817
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
23818
  # Speed up: don't consider the non `#undef'
 
23819
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
23820
  # Work around the forget-to-reset-the-flag bug.
 
23821
  echo 't clr' >>$CONFIG_STATUS
 
23822
  echo ': clr' >>$CONFIG_STATUS
 
23823
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
23824
  echo 'CEOF
 
23825
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
23826
  rm -f $tmp/in
 
23827
  mv $tmp/out $tmp/in
 
23828
' >>$CONFIG_STATUS
 
23829
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
23830
  rm -f conftest.undefs
 
23831
  mv conftest.tail conftest.undefs
 
23832
done
 
23833
rm -f conftest.undefs
 
23834
 
 
23835
cat >>$CONFIG_STATUS <<\_ACEOF
 
23836
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23837
  # use $as_me), people would be surprised to read:
 
23838
  #    /* config.h.  Generated by config.status.  */
 
23839
  if test x"$ac_file" = x-; then
 
23840
    echo "/* Generated by configure.  */" >$tmp/config.h
 
23841
  else
 
23842
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
23843
  fi
 
23844
  cat $tmp/in >>$tmp/config.h
 
23845
  rm -f $tmp/in
 
23846
  if test x"$ac_file" != x-; then
 
23847
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
23848
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
23849
echo "$as_me: $ac_file is unchanged" >&6;}
 
23850
    else
 
23851
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23852
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23853
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23854
         X"$ac_file" : 'X\(//\)$' \| \
 
23855
         X"$ac_file" : 'X\(/\)' \| \
 
23856
         .     : '\(.\)' 2>/dev/null ||
 
23857
echo X"$ac_file" |
 
23858
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23859
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23860
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23861
          /^X\(\/\).*/{ s//\1/; q; }
 
23862
          s/.*/./; q'`
 
23863
      { if $as_mkdir_p; then
 
23864
    mkdir -p "$ac_dir"
 
23865
  else
 
23866
    as_dir="$ac_dir"
 
23867
    as_dirs=
 
23868
    while test ! -d "$as_dir"; do
 
23869
      as_dirs="$as_dir $as_dirs"
 
23870
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23871
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23872
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23873
         X"$as_dir" : 'X\(//\)$' \| \
 
23874
         X"$as_dir" : 'X\(/\)' \| \
 
23875
         .     : '\(.\)' 2>/dev/null ||
 
23876
echo X"$as_dir" |
 
23877
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23878
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23879
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23880
          /^X\(\/\).*/{ s//\1/; q; }
 
23881
          s/.*/./; q'`
 
23882
    done
 
23883
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23884
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23885
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23886
   { (exit 1); exit 1; }; }; }
 
23887
 
 
23888
      rm -f $ac_file
 
23889
      mv $tmp/config.h $ac_file
 
23890
    fi
 
23891
  else
 
23892
    cat $tmp/config.h
 
23893
    rm -f $tmp/config.h
 
23894
  fi
 
23895
# Compute $ac_file's index in $config_headers.
 
23896
_am_stamp_count=1
 
23897
for _am_header in $config_headers :; do
 
23898
  case $_am_header in
 
23899
    $ac_file | $ac_file:* )
 
23900
      break ;;
 
23901
    * )
 
23902
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
23903
  esac
 
23904
done
 
23905
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
23906
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23907
         X$ac_file : 'X\(//\)[^/]' \| \
 
23908
         X$ac_file : 'X\(//\)$' \| \
 
23909
         X$ac_file : 'X\(/\)' \| \
 
23910
         .     : '\(.\)' 2>/dev/null ||
 
23911
echo X$ac_file |
 
23912
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23913
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23914
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23915
          /^X\(\/\).*/{ s//\1/; q; }
 
23916
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
23917
done
 
23918
_ACEOF
 
23919
cat >>$CONFIG_STATUS <<\_ACEOF
 
23920
 
 
23921
#
 
23922
# CONFIG_COMMANDS section.
 
23923
#
 
23924
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
23925
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
23926
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23927
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
23928
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23929
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
23930
         X"$ac_dest" : 'X\(//\)$' \| \
 
23931
         X"$ac_dest" : 'X\(/\)' \| \
 
23932
         .     : '\(.\)' 2>/dev/null ||
 
23933
echo X"$ac_dest" |
 
23934
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23935
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23936
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23937
          /^X\(\/\).*/{ s//\1/; q; }
 
23938
          s/.*/./; q'`
 
23939
  { if $as_mkdir_p; then
 
23940
    mkdir -p "$ac_dir"
 
23941
  else
 
23942
    as_dir="$ac_dir"
 
23943
    as_dirs=
 
23944
    while test ! -d "$as_dir"; do
 
23945
      as_dirs="$as_dir $as_dirs"
 
23946
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23947
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23948
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23949
         X"$as_dir" : 'X\(//\)$' \| \
 
23950
         X"$as_dir" : 'X\(/\)' \| \
 
23951
         .     : '\(.\)' 2>/dev/null ||
 
23952
echo X"$as_dir" |
 
23953
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23954
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23955
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23956
          /^X\(\/\).*/{ s//\1/; q; }
 
23957
          s/.*/./; q'`
 
23958
    done
 
23959
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23960
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23961
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23962
   { (exit 1); exit 1; }; }; }
 
23963
 
 
23964
  ac_builddir=.
 
23965
 
 
23966
if test "$ac_dir" != .; then
 
23967
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23968
  # A "../" for each directory in $ac_dir_suffix.
 
23969
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23970
else
 
23971
  ac_dir_suffix= ac_top_builddir=
 
23972
fi
 
23973
 
 
23974
case $srcdir in
 
23975
  .)  # No --srcdir option.  We are building in place.
 
23976
    ac_srcdir=.
 
23977
    if test -z "$ac_top_builddir"; then
 
23978
       ac_top_srcdir=.
 
23979
    else
 
23980
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23981
    fi ;;
 
23982
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23983
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23984
    ac_top_srcdir=$srcdir ;;
 
23985
  *) # Relative path.
 
23986
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23987
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23988
esac
 
23989
 
 
23990
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23991
# the directories may not exist.
 
23992
case `pwd` in
 
23993
.) ac_abs_builddir="$ac_dir";;
 
23994
*)
 
23995
  case "$ac_dir" in
 
23996
  .) ac_abs_builddir=`pwd`;;
 
23997
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23998
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23999
  esac;;
 
24000
esac
 
24001
case $ac_abs_builddir in
 
24002
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24003
*)
 
24004
  case ${ac_top_builddir}. in
 
24005
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
24006
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24007
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
24008
  esac;;
 
24009
esac
 
24010
case $ac_abs_builddir in
 
24011
.) ac_abs_srcdir=$ac_srcdir;;
 
24012
*)
 
24013
  case $ac_srcdir in
 
24014
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
24015
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
24016
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
24017
  esac;;
 
24018
esac
 
24019
case $ac_abs_builddir in
 
24020
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24021
*)
 
24022
  case $ac_top_srcdir in
 
24023
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
24024
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24025
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
24026
  esac;;
 
24027
esac
 
24028
 
 
24029
 
 
24030
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
24031
echo "$as_me: executing $ac_dest commands" >&6;}
 
24032
  case $ac_dest in
 
24033
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
24034
  # Strip MF so we end up with the name of the file.
 
24035
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
24036
  # Check whether this is an Automake generated Makefile or not.
 
24037
  # We used to match only the files named `Makefile.in', but
 
24038
  # some people rename them; so instead we look at the file content.
 
24039
  # Grep'ing the first line is not enough: some people post-process
 
24040
  # each Makefile.in and add a new line on top of each file to say so.
 
24041
  # So let's grep whole file.
 
24042
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
24043
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
24044
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24045
         X"$mf" : 'X\(//\)[^/]' \| \
 
24046
         X"$mf" : 'X\(//\)$' \| \
 
24047
         X"$mf" : 'X\(/\)' \| \
 
24048
         .     : '\(.\)' 2>/dev/null ||
 
24049
echo X"$mf" |
 
24050
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24051
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24052
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24053
          /^X\(\/\).*/{ s//\1/; q; }
 
24054
          s/.*/./; q'`
 
24055
  else
 
24056
    continue
 
24057
  fi
 
24058
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
24059
  # Extract the definition of DEP_FILES from the Makefile without
 
24060
  # running `make'.
 
24061
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
24062
  test -z "$DEPDIR" && continue
 
24063
  # When using ansi2knr, U may be empty or an underscore; expand it
 
24064
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
24065
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
24066
  # We invoke sed twice because it is the simplest approach to
 
24067
  # changing $(DEPDIR) to its actual value in the expansion.
 
24068
  for file in `sed -n -e '
 
24069
    /^DEP_FILES = .*\\\\$/ {
 
24070
      s/^DEP_FILES = //
 
24071
      :loop
 
24072
        s/\\\\$//
 
24073
        p
 
24074
        n
 
24075
        /\\\\$/ b loop
 
24076
      p
 
24077
    }
 
24078
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
24079
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
24080
    # Make sure the directory exists.
 
24081
    test -f "$dirpart/$file" && continue
 
24082
    fdir=`(dirname "$file") 2>/dev/null ||
 
24083
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24084
         X"$file" : 'X\(//\)[^/]' \| \
 
24085
         X"$file" : 'X\(//\)$' \| \
 
24086
         X"$file" : 'X\(/\)' \| \
 
24087
         .     : '\(.\)' 2>/dev/null ||
 
24088
echo X"$file" |
 
24089
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24090
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24091
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24092
          /^X\(\/\).*/{ s//\1/; q; }
 
24093
          s/.*/./; q'`
 
24094
    { if $as_mkdir_p; then
 
24095
    mkdir -p $dirpart/$fdir
 
24096
  else
 
24097
    as_dir=$dirpart/$fdir
 
24098
    as_dirs=
 
24099
    while test ! -d "$as_dir"; do
 
24100
      as_dirs="$as_dir $as_dirs"
 
24101
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24102
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24103
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24104
         X"$as_dir" : 'X\(//\)$' \| \
 
24105
         X"$as_dir" : 'X\(/\)' \| \
 
24106
         .     : '\(.\)' 2>/dev/null ||
 
24107
echo X"$as_dir" |
 
24108
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24109
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24110
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24111
          /^X\(\/\).*/{ s//\1/; q; }
 
24112
          s/.*/./; q'`
 
24113
    done
 
24114
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24115
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
24116
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
24117
   { (exit 1); exit 1; }; }; }
 
24118
 
 
24119
    # echo "creating $dirpart/$file"
 
24120
    echo '# dummy' > "$dirpart/$file"
 
24121
  done
 
24122
done
 
24123
 ;;
 
24124
    default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
 
24125
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
24126
      esac ;;
 
24127
  esac
 
24128
done
 
24129
_ACEOF
 
24130
 
 
24131
cat >>$CONFIG_STATUS <<\_ACEOF
 
24132
 
 
24133
{ (exit 0); exit 0; }
 
24134
_ACEOF
 
24135
chmod +x $CONFIG_STATUS
 
24136
ac_clean_files=$ac_clean_files_save
 
24137
 
 
24138
 
 
24139
# configure is writing to config.log, and then calls config.status.
 
24140
# config.status does its own redirection, appending to config.log.
 
24141
# Unfortunately, on DOS this fails, as config.log is still kept open
 
24142
# by configure, so config.status won't be able to write to it; its
 
24143
# output is simply discarded.  So we exec the FD to /dev/null,
 
24144
# effectively closing config.log, so it can be properly (re)opened and
 
24145
# appended to by config.status.  When coming back to configure, we
 
24146
# need to make the FD available again.
 
24147
if test "$no_create" != yes; then
 
24148
  ac_cs_success=:
 
24149
  ac_config_status_args=
 
24150
  test "$silent" = yes &&
 
24151
    ac_config_status_args="$ac_config_status_args --quiet"
 
24152
  exec 5>/dev/null
 
24153
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
24154
  exec 5>>config.log
 
24155
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
24156
  # would make configure fail if this is the last instruction.
 
24157
  $ac_cs_success || { (exit 1); exit 1; }
 
24158
fi
 
24159