~ubuntu-branches/ubuntu/utopic/texlive-bin/utopic

« back to all changes in this revision

Viewing changes to libs/t1lib/t1lib-5.1.2/configure

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-04-10 10:16:01 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20120410101601-7mt8nyn280xrgza6
Tags: 2011.20120410-1
* new upstream checkout:
  - remove decls of popen and pclose (Closes: #64524) (!yow, 5 digit bug!)
  - do not declare getopt in C++, fixes FTBFS with g++ >= 4.7 
    (Closes: #667392)
* add patches (maybe to be included upstream) that allows inclusion of
  one config file in another for (x)dvipdfmx. This will be
  used by the paper code.
* fix description of libptexenc-dev package (Closes: #667694)
* remove xdvik patch, included upstream
* remove conflict with ptex-bin, we are building a transitional package now
* build with internal t1lib, as t1lib is going to disappear in
  wheezy (Closes: #667912) (no, dropping xdvi is not an option!)
  (add a lintian override otherwise this gives a lintian error)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# From configure.in configure.in 1.00.
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated by GNU Autoconf 2.59.
 
5
#
 
6
# Copyright (C) 2003 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be Bourne compatible
 
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
15
  emulate sh
 
16
  NULLCMD=:
 
17
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18
  # is contrary to our usage.  Disable this feature.
 
19
  alias -g '${1+"$@"}'='"$@"'
 
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
21
  set -o posix
 
22
fi
 
23
DUALCASE=1; export DUALCASE # for MKS sh
 
24
 
 
25
# Support unset when possible.
 
26
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
27
  as_unset=unset
 
28
else
 
29
  as_unset=false
 
30
fi
 
31
 
 
32
 
 
33
# Work around bugs in pre-3.0 UWIN ksh.
 
34
$as_unset ENV MAIL MAILPATH
 
35
PS1='$ '
 
36
PS2='> '
 
37
PS4='+ '
 
38
 
 
39
# NLS nuisances.
 
40
for as_var in \
 
41
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
42
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
43
  LC_TELEPHONE LC_TIME
 
44
do
 
45
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
46
    eval $as_var=C; export $as_var
 
47
  else
 
48
    $as_unset $as_var
 
49
  fi
 
50
done
 
51
 
 
52
# Required to use basename.
 
53
if expr a : '\(a\)' >/dev/null 2>&1; then
 
54
  as_expr=expr
 
55
else
 
56
  as_expr=false
 
57
fi
 
58
 
 
59
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
60
  as_basename=basename
 
61
else
 
62
  as_basename=false
 
63
fi
 
64
 
 
65
 
 
66
# Name of the executable.
 
67
as_me=`$as_basename "$0" ||
 
68
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
69
         X"$0" : 'X\(//\)$' \| \
 
70
         X"$0" : 'X\(/\)$' \| \
 
71
         .     : '\(.\)' 2>/dev/null ||
 
72
echo X/"$0" |
 
73
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
74
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
75
          /^X\/\(\/\).*/{ s//\1/; q; }
 
76
          s/.*/./; q'`
 
77
 
 
78
 
 
79
# PATH needs CR, and LINENO needs CR and PATH.
 
80
# Avoid depending upon Character Ranges.
 
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
84
as_cr_digits='0123456789'
 
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
86
 
 
87
# The user is always right.
 
88
if test "${PATH_SEPARATOR+set}" != set; then
 
89
  echo "#! /bin/sh" >conf$$.sh
 
90
  echo  "exit 0"   >>conf$$.sh
 
91
  chmod +x conf$$.sh
 
92
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
93
    PATH_SEPARATOR=';'
 
94
  else
 
95
    PATH_SEPARATOR=:
 
96
  fi
 
97
  rm -f conf$$.sh
 
98
fi
 
99
 
 
100
 
 
101
  as_lineno_1=$LINENO
 
102
  as_lineno_2=$LINENO
 
103
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
104
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
105
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
106
  # Find who we are.  Look in the path if we contain no path at all
 
107
  # relative or not.
 
108
  case $0 in
 
109
    *[\\/]* ) as_myself=$0 ;;
 
110
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
111
for as_dir in $PATH
 
112
do
 
113
  IFS=$as_save_IFS
 
114
  test -z "$as_dir" && as_dir=.
 
115
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
116
done
 
117
 
 
118
       ;;
 
119
  esac
 
120
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
121
  # in which case we are not to be found in the path.
 
122
  if test "x$as_myself" = x; then
 
123
    as_myself=$0
 
124
  fi
 
125
  if test ! -f "$as_myself"; then
 
126
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
127
   { (exit 1); exit 1; }; }
 
128
  fi
 
129
  case $CONFIG_SHELL in
 
130
  '')
 
131
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
133
do
 
134
  IFS=$as_save_IFS
 
135
  test -z "$as_dir" && as_dir=.
 
136
  for as_base in sh bash ksh sh5; do
 
137
         case $as_dir in
 
138
         /*)
 
139
           if ("$as_dir/$as_base" -c '
 
140
  as_lineno_1=$LINENO
 
141
  as_lineno_2=$LINENO
 
142
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
143
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
144
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
145
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
146
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
147
             CONFIG_SHELL=$as_dir/$as_base
 
148
             export CONFIG_SHELL
 
149
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
150
           fi;;
 
151
         esac
 
152
       done
 
153
done
 
154
;;
 
155
  esac
 
156
 
 
157
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
158
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
159
  # line-number line before each line; the second 'sed' does the real
 
160
  # work.  The second script uses 'N' to pair each line-number line
 
161
  # with the numbered line, and appends trailing '-' during
 
162
  # substitution so that $LINENO is not a special case at line end.
 
163
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
164
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
165
  sed '=' <$as_myself |
 
166
    sed '
 
167
      N
 
168
      s,$,-,
 
169
      : loop
 
170
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
171
      t loop
 
172
      s,-$,,
 
173
      s,^['$as_cr_digits']*\n,,
 
174
    ' >$as_me.lineno &&
 
175
  chmod +x $as_me.lineno ||
 
176
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
177
   { (exit 1); exit 1; }; }
 
178
 
 
179
  # Don't try to exec as it changes $[0], causing all sort of problems
 
180
  # (the dirname of $[0] is not the place where we might find the
 
181
  # original and so on.  Autoconf is especially sensible to this).
 
182
  . ./$as_me.lineno
 
183
  # Exit status is that of the last command.
 
184
  exit
 
185
}
 
186
 
 
187
 
 
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
189
  *c*,-n*) ECHO_N= ECHO_C='
 
190
' ECHO_T='      ' ;;
 
191
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
192
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
193
esac
 
194
 
 
195
if expr a : '\(a\)' >/dev/null 2>&1; then
 
196
  as_expr=expr
 
197
else
 
198
  as_expr=false
 
199
fi
 
200
 
 
201
rm -f conf$$ conf$$.exe conf$$.file
 
202
echo >conf$$.file
 
203
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
204
  # We could just check for DJGPP; but this test a) works b) is more generic
 
205
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
206
  if test -f conf$$.exe; then
 
207
    # Don't use ln at all; we don't have any links
 
208
    as_ln_s='cp -p'
 
209
  else
 
210
    as_ln_s='ln -s'
 
211
  fi
 
212
elif ln conf$$.file conf$$ 2>/dev/null; then
 
213
  as_ln_s=ln
 
214
else
 
215
  as_ln_s='cp -p'
 
216
fi
 
217
rm -f conf$$ conf$$.exe conf$$.file
 
218
 
 
219
if mkdir -p . 2>/dev/null; then
 
220
  as_mkdir_p=:
 
221
else
 
222
  test -d ./-p && rmdir ./-p
 
223
  as_mkdir_p=false
 
224
fi
 
225
 
 
226
as_executable_p="test -f"
 
227
 
 
228
# Sed expression to map a string onto a valid CPP name.
 
229
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
230
 
 
231
# Sed expression to map a string onto a valid variable name.
 
232
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
233
 
 
234
 
 
235
# IFS
 
236
# We need space, tab and new line, in precisely that order.
 
237
as_nl='
 
238
'
 
239
IFS="   $as_nl"
 
240
 
 
241
# CDPATH.
 
242
$as_unset CDPATH
 
243
 
 
244
 
 
245
 
 
246
# Check that we are running under the correct shell.
 
247
SHELL=${CONFIG_SHELL-/bin/sh}
 
248
 
 
249
case X$ECHO in
 
250
X*--fallback-echo)
 
251
  # Remove one level of quotation (which was required for Make).
 
252
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
253
  ;;
 
254
esac
 
255
 
 
256
echo=${ECHO-echo}
 
257
if test "X$1" = X--no-reexec; then
 
258
  # Discard the --no-reexec flag, and continue.
 
259
  shift
 
260
elif test "X$1" = X--fallback-echo; then
 
261
  # Avoid inline document here, it may be left over
 
262
  :
 
263
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
264
  # Yippee, $echo works!
 
265
  :
 
266
else
 
267
  # Restart under the correct shell.
 
268
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
269
fi
 
270
 
 
271
if test "X$1" = X--fallback-echo; then
 
272
  # used as fallback echo
 
273
  shift
 
274
  cat <<EOF
 
275
$*
 
276
EOF
 
277
  exit 0
 
278
fi
 
279
 
 
280
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
281
# if CDPATH is set.
 
282
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
283
 
 
284
if test -z "$ECHO"; then
 
285
if test "X${echo_test_string+set}" != Xset; then
 
286
# find a string as large as possible, as long as the shell can cope with it
 
287
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
288
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
289
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
290
       echo_test_string="`eval $cmd`" &&
 
291
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
292
    then
 
293
      break
 
294
    fi
 
295
  done
 
296
fi
 
297
 
 
298
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
299
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
300
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
301
  :
 
302
else
 
303
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
304
  # backslashes.  This makes it impossible to quote backslashes using
 
305
  #   echo "$something" | sed 's/\\/\\\\/g'
 
306
  #
 
307
  # So, first we look for a working echo in the user's PATH.
 
308
 
 
309
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
310
  for dir in $PATH /usr/ucb; do
 
311
    IFS="$lt_save_ifs"
 
312
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
313
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
314
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
315
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
316
      echo="$dir/echo"
 
317
      break
 
318
    fi
 
319
  done
 
320
  IFS="$lt_save_ifs"
 
321
 
 
322
  if test "X$echo" = Xecho; then
 
323
    # We didn't find a better echo, so look for alternatives.
 
324
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
325
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
326
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
327
      # This shell has a builtin print -r that does the trick.
 
328
      echo='print -r'
 
329
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
330
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
331
      # If we have ksh, try running configure again with it.
 
332
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
333
      export ORIGINAL_CONFIG_SHELL
 
334
      CONFIG_SHELL=/bin/ksh
 
335
      export CONFIG_SHELL
 
336
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
337
    else
 
338
      # Try using printf.
 
339
      echo='printf %s\n'
 
340
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
341
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
342
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
343
        # Cool, printf works
 
344
        :
 
345
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
346
           test "X$echo_testing_string" = 'X\t' &&
 
347
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
348
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
349
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
350
        export CONFIG_SHELL
 
351
        SHELL="$CONFIG_SHELL"
 
352
        export SHELL
 
353
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
354
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
355
           test "X$echo_testing_string" = 'X\t' &&
 
356
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
357
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
358
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
359
      else
 
360
        # maybe with a smaller string...
 
361
        prev=:
 
362
 
 
363
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
364
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
365
          then
 
366
            break
 
367
          fi
 
368
          prev="$cmd"
 
369
        done
 
370
 
 
371
        if test "$prev" != 'sed 50q "$0"'; then
 
372
          echo_test_string=`eval $prev`
 
373
          export echo_test_string
 
374
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
375
        else
 
376
          # Oops.  We lost completely, so just stick with echo.
 
377
          echo=echo
 
378
        fi
 
379
      fi
 
380
    fi
 
381
  fi
 
382
fi
 
383
fi
 
384
 
 
385
# Copy echo and quote the copy suitably for passing to libtool from
 
386
# the Makefile, instead of quoting the original, which is used later.
 
387
ECHO=$echo
 
388
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
389
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
390
fi
 
391
 
 
392
 
 
393
 
 
394
 
 
395
tagnames=${tagnames+${tagnames},}CXX
 
396
 
 
397
tagnames=${tagnames+${tagnames},}F77
 
398
 
 
399
# Name of the host.
 
400
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
401
# so uname gets run too.
 
402
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
403
 
 
404
exec 6>&1
 
405
 
 
406
#
 
407
# Initializations.
 
408
#
 
409
ac_default_prefix=/usr/local
 
410
ac_config_libobj_dir=.
 
411
cross_compiling=no
 
412
subdirs=
 
413
MFLAGS=
 
414
MAKEFLAGS=
 
415
SHELL=${CONFIG_SHELL-/bin/sh}
 
416
 
 
417
# Maximum number of lines to put in a shell here document.
 
418
# This variable seems obsolete.  It should probably be removed, and
 
419
# only ac_max_sed_lines should be used.
 
420
: ${ac_max_here_lines=38}
 
421
 
 
422
# Identity of this package.
 
423
PACKAGE_NAME=
 
424
PACKAGE_TARNAME=
 
425
PACKAGE_VERSION=
 
426
PACKAGE_STRING=
 
427
PACKAGE_BUGREPORT=
 
428
 
 
429
ac_unique_file="lib/t1lib/t1base.c"
 
430
# Factoring default headers for most tests.
 
431
ac_includes_default="\
 
432
#include <stdio.h>
 
433
#if HAVE_SYS_TYPES_H
 
434
# include <sys/types.h>
 
435
#endif
 
436
#if HAVE_SYS_STAT_H
 
437
# include <sys/stat.h>
 
438
#endif
 
439
#if STDC_HEADERS
 
440
# include <stdlib.h>
 
441
# include <stddef.h>
 
442
#else
 
443
# if HAVE_STDLIB_H
 
444
#  include <stdlib.h>
 
445
# endif
 
446
#endif
 
447
#if HAVE_STRING_H
 
448
# if !STDC_HEADERS && HAVE_MEMORY_H
 
449
#  include <memory.h>
 
450
# endif
 
451
# include <string.h>
 
452
#endif
 
453
#if HAVE_STRINGS_H
 
454
# include <strings.h>
 
455
#endif
 
456
#if HAVE_INTTYPES_H
 
457
# include <inttypes.h>
 
458
#else
 
459
# if HAVE_STDINT_H
 
460
#  include <stdint.h>
 
461
# endif
 
462
#endif
 
463
#if HAVE_UNISTD_H
 
464
# include <unistd.h>
 
465
#endif"
 
466
 
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LDLIBS PROGEXT CFLAGS LDFLAGS T1LIB_LT_CURRENT T1LIB_LT_REVISION T1LIB_LT_AGE T1LIB_DATA_DIR T1LIB_IDENTIFIER MAIN_TARGET MAIN_HEADER OPTIONS no_x CC T1_AA_TYPE16 T1_AA_TYPE32 T1_AA_TYPE64 T1_INT16 T1_INT32 XSUBDIRS T1LIBX_OBJS T1LIBX_SRCS T1LIBX_HEADERS XOBJS T1LIB_VERSION T1LIB_REVISION T1LIB_PATCHLEVEL T1LIB_VERSIONSTRING SET_MAKE CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS LTLIBOBJS'
 
468
ac_subst_files=''
 
469
 
 
470
# Initialize some variables set by options.
 
471
ac_init_help=
 
472
ac_init_version=false
 
473
# The variables have the same names as the options, with
 
474
# dashes changed to underlines.
 
475
cache_file=/dev/null
 
476
exec_prefix=NONE
 
477
no_create=
 
478
no_recursion=
 
479
prefix=NONE
 
480
program_prefix=NONE
 
481
program_suffix=NONE
 
482
program_transform_name=s,x,x,
 
483
silent=
 
484
site=
 
485
srcdir=
 
486
verbose=
 
487
x_includes=NONE
 
488
x_libraries=NONE
 
489
 
 
490
# Installation directory options.
 
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
492
# and all the variables that are supposed to be based on exec_prefix
 
493
# by default will actually change.
 
494
# Use braces instead of parens because sh, perl, etc. also accept them.
 
495
bindir='${exec_prefix}/bin'
 
496
sbindir='${exec_prefix}/sbin'
 
497
libexecdir='${exec_prefix}/libexec'
 
498
datadir='${prefix}/share'
 
499
sysconfdir='${prefix}/etc'
 
500
sharedstatedir='${prefix}/com'
 
501
localstatedir='${prefix}/var'
 
502
libdir='${exec_prefix}/lib'
 
503
includedir='${prefix}/include'
 
504
oldincludedir='/usr/include'
 
505
infodir='${prefix}/info'
 
506
mandir='${prefix}/man'
 
507
 
 
508
ac_prev=
 
509
for ac_option
 
510
do
 
511
  # If the previous option needs an argument, assign it.
 
512
  if test -n "$ac_prev"; then
 
513
    eval "$ac_prev=\$ac_option"
 
514
    ac_prev=
 
515
    continue
 
516
  fi
 
517
 
 
518
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
519
 
 
520
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
521
 
 
522
  case $ac_option in
 
523
 
 
524
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
525
    ac_prev=bindir ;;
 
526
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
527
    bindir=$ac_optarg ;;
 
528
 
 
529
  -build | --build | --buil | --bui | --bu)
 
530
    ac_prev=build_alias ;;
 
531
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
532
    build_alias=$ac_optarg ;;
 
533
 
 
534
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
535
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
536
    ac_prev=cache_file ;;
 
537
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
538
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
539
    cache_file=$ac_optarg ;;
 
540
 
 
541
  --config-cache | -C)
 
542
    cache_file=config.cache ;;
 
543
 
 
544
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
545
    ac_prev=datadir ;;
 
546
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
547
  | --da=*)
 
548
    datadir=$ac_optarg ;;
 
549
 
 
550
  -disable-* | --disable-*)
 
551
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
557
    eval "enable_$ac_feature=no" ;;
 
558
 
 
559
  -enable-* | --enable-*)
 
560
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
561
    # Reject names that are not valid shell variable names.
 
562
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
563
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
564
   { (exit 1); exit 1; }; }
 
565
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
566
    case $ac_option in
 
567
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
568
      *) ac_optarg=yes ;;
 
569
    esac
 
570
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
571
 
 
572
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
573
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
574
  | --exec | --exe | --ex)
 
575
    ac_prev=exec_prefix ;;
 
576
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
577
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
578
  | --exec=* | --exe=* | --ex=*)
 
579
    exec_prefix=$ac_optarg ;;
 
580
 
 
581
  -gas | --gas | --ga | --g)
 
582
    # Obsolete; use --with-gas.
 
583
    with_gas=yes ;;
 
584
 
 
585
  -help | --help | --hel | --he | -h)
 
586
    ac_init_help=long ;;
 
587
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
588
    ac_init_help=recursive ;;
 
589
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
590
    ac_init_help=short ;;
 
591
 
 
592
  -host | --host | --hos | --ho)
 
593
    ac_prev=host_alias ;;
 
594
  -host=* | --host=* | --hos=* | --ho=*)
 
595
    host_alias=$ac_optarg ;;
 
596
 
 
597
  -includedir | --includedir | --includedi | --included | --include \
 
598
  | --includ | --inclu | --incl | --inc)
 
599
    ac_prev=includedir ;;
 
600
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
601
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
602
    includedir=$ac_optarg ;;
 
603
 
 
604
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
605
    ac_prev=infodir ;;
 
606
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
607
    infodir=$ac_optarg ;;
 
608
 
 
609
  -libdir | --libdir | --libdi | --libd)
 
610
    ac_prev=libdir ;;
 
611
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
612
    libdir=$ac_optarg ;;
 
613
 
 
614
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
615
  | --libexe | --libex | --libe)
 
616
    ac_prev=libexecdir ;;
 
617
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
618
  | --libexe=* | --libex=* | --libe=*)
 
619
    libexecdir=$ac_optarg ;;
 
620
 
 
621
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
622
  | --localstate | --localstat | --localsta | --localst \
 
623
  | --locals | --local | --loca | --loc | --lo)
 
624
    ac_prev=localstatedir ;;
 
625
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
626
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
627
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
628
    localstatedir=$ac_optarg ;;
 
629
 
 
630
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
631
    ac_prev=mandir ;;
 
632
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
633
    mandir=$ac_optarg ;;
 
634
 
 
635
  -nfp | --nfp | --nf)
 
636
    # Obsolete; use --without-fp.
 
637
    with_fp=no ;;
 
638
 
 
639
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
640
  | --no-cr | --no-c | -n)
 
641
    no_create=yes ;;
 
642
 
 
643
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
644
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
645
    no_recursion=yes ;;
 
646
 
 
647
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
648
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
649
  | --oldin | --oldi | --old | --ol | --o)
 
650
    ac_prev=oldincludedir ;;
 
651
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
652
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
653
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
654
    oldincludedir=$ac_optarg ;;
 
655
 
 
656
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
657
    ac_prev=prefix ;;
 
658
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
659
    prefix=$ac_optarg ;;
 
660
 
 
661
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
662
  | --program-pre | --program-pr | --program-p)
 
663
    ac_prev=program_prefix ;;
 
664
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
665
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
666
    program_prefix=$ac_optarg ;;
 
667
 
 
668
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
669
  | --program-suf | --program-su | --program-s)
 
670
    ac_prev=program_suffix ;;
 
671
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
672
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
673
    program_suffix=$ac_optarg ;;
 
674
 
 
675
  -program-transform-name | --program-transform-name \
 
676
  | --program-transform-nam | --program-transform-na \
 
677
  | --program-transform-n | --program-transform- \
 
678
  | --program-transform | --program-transfor \
 
679
  | --program-transfo | --program-transf \
 
680
  | --program-trans | --program-tran \
 
681
  | --progr-tra | --program-tr | --program-t)
 
682
    ac_prev=program_transform_name ;;
 
683
  -program-transform-name=* | --program-transform-name=* \
 
684
  | --program-transform-nam=* | --program-transform-na=* \
 
685
  | --program-transform-n=* | --program-transform-=* \
 
686
  | --program-transform=* | --program-transfor=* \
 
687
  | --program-transfo=* | --program-transf=* \
 
688
  | --program-trans=* | --program-tran=* \
 
689
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
690
    program_transform_name=$ac_optarg ;;
 
691
 
 
692
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
693
  | -silent | --silent | --silen | --sile | --sil)
 
694
    silent=yes ;;
 
695
 
 
696
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
697
    ac_prev=sbindir ;;
 
698
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
699
  | --sbi=* | --sb=*)
 
700
    sbindir=$ac_optarg ;;
 
701
 
 
702
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
703
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
704
  | --sharedst | --shareds | --shared | --share | --shar \
 
705
  | --sha | --sh)
 
706
    ac_prev=sharedstatedir ;;
 
707
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
708
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
709
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
710
  | --sha=* | --sh=*)
 
711
    sharedstatedir=$ac_optarg ;;
 
712
 
 
713
  -site | --site | --sit)
 
714
    ac_prev=site ;;
 
715
  -site=* | --site=* | --sit=*)
 
716
    site=$ac_optarg ;;
 
717
 
 
718
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
719
    ac_prev=srcdir ;;
 
720
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
721
    srcdir=$ac_optarg ;;
 
722
 
 
723
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
724
  | --syscon | --sysco | --sysc | --sys | --sy)
 
725
    ac_prev=sysconfdir ;;
 
726
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
727
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
728
    sysconfdir=$ac_optarg ;;
 
729
 
 
730
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
731
    ac_prev=target_alias ;;
 
732
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
733
    target_alias=$ac_optarg ;;
 
734
 
 
735
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
736
    verbose=yes ;;
 
737
 
 
738
  -version | --version | --versio | --versi | --vers | -V)
 
739
    ac_init_version=: ;;
 
740
 
 
741
  -with-* | --with-*)
 
742
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
743
    # Reject names that are not valid shell variable names.
 
744
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
745
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
746
   { (exit 1); exit 1; }; }
 
747
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
748
    case $ac_option in
 
749
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
750
      *) ac_optarg=yes ;;
 
751
    esac
 
752
    eval "with_$ac_package='$ac_optarg'" ;;
 
753
 
 
754
  -without-* | --without-*)
 
755
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
756
    # Reject names that are not valid shell variable names.
 
757
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
758
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
759
   { (exit 1); exit 1; }; }
 
760
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
761
    eval "with_$ac_package=no" ;;
 
762
 
 
763
  --x)
 
764
    # Obsolete; use --with-x.
 
765
    with_x=yes ;;
 
766
 
 
767
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
768
  | --x-incl | --x-inc | --x-in | --x-i)
 
769
    ac_prev=x_includes ;;
 
770
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
771
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
772
    x_includes=$ac_optarg ;;
 
773
 
 
774
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
775
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
776
    ac_prev=x_libraries ;;
 
777
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
778
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
779
    x_libraries=$ac_optarg ;;
 
780
 
 
781
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
782
Try \`$0 --help' for more information." >&2
 
783
   { (exit 1); exit 1; }; }
 
784
    ;;
 
785
 
 
786
  *=*)
 
787
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
788
    # Reject names that are not valid shell variable names.
 
789
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
790
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
791
   { (exit 1); exit 1; }; }
 
792
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
793
    eval "$ac_envvar='$ac_optarg'"
 
794
    export $ac_envvar ;;
 
795
 
 
796
  *)
 
797
    # FIXME: should be removed in autoconf 3.0.
 
798
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
799
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
800
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
801
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
802
    ;;
 
803
 
 
804
  esac
 
805
done
 
806
 
 
807
if test -n "$ac_prev"; then
 
808
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
809
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
810
   { (exit 1); exit 1; }; }
 
811
fi
 
812
 
 
813
# Be sure to have absolute paths.
 
814
for ac_var in exec_prefix prefix
 
815
do
 
816
  eval ac_val=$`echo $ac_var`
 
817
  case $ac_val in
 
818
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
819
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
820
   { (exit 1); exit 1; }; };;
 
821
  esac
 
822
done
 
823
 
 
824
# Be sure to have absolute paths.
 
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
 
827
do
 
828
  eval ac_val=$`echo $ac_var`
 
829
  case $ac_val in
 
830
    [\\/$]* | ?:[\\/]* ) ;;
 
831
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
832
   { (exit 1); exit 1; }; };;
 
833
  esac
 
834
done
 
835
 
 
836
# There might be people who depend on the old broken behavior: `$host'
 
837
# used to hold the argument of --host etc.
 
838
# FIXME: To remove some day.
 
839
build=$build_alias
 
840
host=$host_alias
 
841
target=$target_alias
 
842
 
 
843
# FIXME: To remove some day.
 
844
if test "x$host_alias" != x; then
 
845
  if test "x$build_alias" = x; then
 
846
    cross_compiling=maybe
 
847
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
848
    If a cross compiler is detected then cross compile mode will be used." >&2
 
849
  elif test "x$build_alias" != "x$host_alias"; then
 
850
    cross_compiling=yes
 
851
  fi
 
852
fi
 
853
 
 
854
ac_tool_prefix=
 
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
856
 
 
857
test "$silent" = yes && exec 6>/dev/null
 
858
 
 
859
 
 
860
# Find the source files, if location was not specified.
 
861
if test -z "$srcdir"; then
 
862
  ac_srcdir_defaulted=yes
 
863
  # Try the directory containing this script, then its parent.
 
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
 
870
echo X"$0" |
 
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
874
          /^X\(\/\).*/{ s//\1/; q; }
 
875
          s/.*/./; q'`
 
876
  srcdir=$ac_confdir
 
877
  if test ! -r $srcdir/$ac_unique_file; then
 
878
    srcdir=..
 
879
  fi
 
880
else
 
881
  ac_srcdir_defaulted=no
 
882
fi
 
883
if test ! -r $srcdir/$ac_unique_file; then
 
884
  if test "$ac_srcdir_defaulted" = yes; then
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
886
   { (exit 1); exit 1; }; }
 
887
  else
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
889
   { (exit 1); exit 1; }; }
 
890
  fi
 
891
fi
 
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
893
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
896
ac_env_build_alias_set=${build_alias+set}
 
897
ac_env_build_alias_value=$build_alias
 
898
ac_cv_env_build_alias_set=${build_alias+set}
 
899
ac_cv_env_build_alias_value=$build_alias
 
900
ac_env_host_alias_set=${host_alias+set}
 
901
ac_env_host_alias_value=$host_alias
 
902
ac_cv_env_host_alias_set=${host_alias+set}
 
903
ac_cv_env_host_alias_value=$host_alias
 
904
ac_env_target_alias_set=${target_alias+set}
 
905
ac_env_target_alias_value=$target_alias
 
906
ac_cv_env_target_alias_set=${target_alias+set}
 
907
ac_cv_env_target_alias_value=$target_alias
 
908
ac_env_CC_set=${CC+set}
 
909
ac_env_CC_value=$CC
 
910
ac_cv_env_CC_set=${CC+set}
 
911
ac_cv_env_CC_value=$CC
 
912
ac_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_env_CFLAGS_value=$CFLAGS
 
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
915
ac_cv_env_CFLAGS_value=$CFLAGS
 
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_env_LDFLAGS_value=$LDFLAGS
 
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
924
ac_env_CPP_set=${CPP+set}
 
925
ac_env_CPP_value=$CPP
 
926
ac_cv_env_CPP_set=${CPP+set}
 
927
ac_cv_env_CPP_value=$CPP
 
928
ac_env_CXX_set=${CXX+set}
 
929
ac_env_CXX_value=$CXX
 
930
ac_cv_env_CXX_set=${CXX+set}
 
931
ac_cv_env_CXX_value=$CXX
 
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
933
ac_env_CXXFLAGS_value=$CXXFLAGS
 
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
936
ac_env_CXXCPP_set=${CXXCPP+set}
 
937
ac_env_CXXCPP_value=$CXXCPP
 
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
 
948
 
 
949
#
 
950
# Report the --help message.
 
951
#
 
952
if test "$ac_init_help" = "long"; then
 
953
  # Omit some internal or obsolete options to make the list less imposing.
 
954
  # This message is too long to be a string in the A/UX 3.1 sh.
 
955
  cat <<_ACEOF
 
956
\`configure' configures this package to adapt to many kinds of systems.
 
957
 
 
958
Usage: $0 [OPTION]... [VAR=VALUE]...
 
959
 
 
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
961
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
962
 
 
963
Defaults for the options are specified in brackets.
 
964
 
 
965
Configuration:
 
966
  -h, --help              display this help and exit
 
967
      --help=short        display options specific to this package
 
968
      --help=recursive    display the short help of all the included packages
 
969
  -V, --version           display version information and exit
 
970
  -q, --quiet, --silent   do not print \`checking...' messages
 
971
      --cache-file=FILE   cache test results in FILE [disabled]
 
972
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
973
  -n, --no-create         do not create output files
 
974
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
975
 
 
976
_ACEOF
 
977
 
 
978
  cat <<_ACEOF
 
979
Installation directories:
 
980
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
981
                          [$ac_default_prefix]
 
982
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
983
                          [PREFIX]
 
984
 
 
985
By default, \`make install' will install all the files in
 
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
988
for instance \`--prefix=\$HOME'.
 
989
 
 
990
For better control, use the options below.
 
991
 
 
992
Fine tuning of the installation directories:
 
993
  --bindir=DIR           user executables [EPREFIX/bin]
 
994
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
995
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
996
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
997
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
998
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
999
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1000
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1001
  --includedir=DIR       C header files [PREFIX/include]
 
1002
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1003
  --infodir=DIR          info documentation [PREFIX/info]
 
1004
  --mandir=DIR           man documentation [PREFIX/man]
 
1005
_ACEOF
 
1006
 
 
1007
  cat <<\_ACEOF
 
1008
 
 
1009
X features:
 
1010
  --x-includes=DIR    X include files are in DIR
 
1011
  --x-libraries=DIR   X library files are in DIR
 
1012
 
 
1013
System types:
 
1014
  --build=BUILD     configure for building on BUILD [guessed]
 
1015
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1016
_ACEOF
 
1017
fi
 
1018
 
 
1019
if test -n "$ac_init_help"; then
 
1020
 
 
1021
  cat <<\_ACEOF
 
1022
 
 
1023
Optional Features:
 
1024
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1025
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1026
  --enable-shared[=PKGS]
 
1027
                          build shared libraries [default=yes]
 
1028
  --enable-static[=PKGS]
 
1029
                          build static libraries [default=yes]
 
1030
  --enable-fast-install[=PKGS]
 
1031
                          optimize for fast installation [default=yes]
 
1032
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1033
 
 
1034
Optional Packages:
 
1035
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1036
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1037
  --with-x                use the X Window System
 
1038
  --without-athena        do not use Athena widgets
 
1039
  --with-athena-includes=DIR   Athena include files are in DIR
 
1040
  --with-athena-libraries=DIR  Athena libraries are in DIR
 
1041
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1042
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1043
                          both]
 
1044
  --with-tags[=TAGS]
 
1045
                          include additional configurations [automatic]
 
1046
 
 
1047
Some influential environment variables:
 
1048
  CC          C compiler command
 
1049
  CFLAGS      C compiler flags
 
1050
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1051
              nonstandard directory <lib dir>
 
1052
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1053
              headers in a nonstandard directory <include dir>
 
1054
  CPP         C preprocessor
 
1055
  CXX         C++ compiler command
 
1056
  CXXFLAGS    C++ compiler flags
 
1057
  CXXCPP      C++ preprocessor
 
1058
  F77         Fortran 77 compiler command
 
1059
  FFLAGS      Fortran 77 compiler flags
 
1060
 
 
1061
Use these variables to override the choices made by `configure' or to help
 
1062
it to find libraries and programs with nonstandard names/locations.
 
1063
 
 
1064
_ACEOF
 
1065
fi
 
1066
 
 
1067
if test "$ac_init_help" = "recursive"; then
 
1068
  # If there are subdirs, report their specific --help.
 
1069
  ac_popdir=`pwd`
 
1070
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1071
    test -d $ac_dir || continue
 
1072
    ac_builddir=.
 
1073
 
 
1074
if test "$ac_dir" != .; then
 
1075
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1076
  # A "../" for each directory in $ac_dir_suffix.
 
1077
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1078
else
 
1079
  ac_dir_suffix= ac_top_builddir=
 
1080
fi
 
1081
 
 
1082
case $srcdir in
 
1083
  .)  # No --srcdir option.  We are building in place.
 
1084
    ac_srcdir=.
 
1085
    if test -z "$ac_top_builddir"; then
 
1086
       ac_top_srcdir=.
 
1087
    else
 
1088
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1089
    fi ;;
 
1090
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1091
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1092
    ac_top_srcdir=$srcdir ;;
 
1093
  *) # Relative path.
 
1094
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1095
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1096
esac
 
1097
 
 
1098
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1099
# the directories may not exist.
 
1100
case `pwd` in
 
1101
.) ac_abs_builddir="$ac_dir";;
 
1102
*)
 
1103
  case "$ac_dir" in
 
1104
  .) ac_abs_builddir=`pwd`;;
 
1105
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1106
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1107
  esac;;
 
1108
esac
 
1109
case $ac_abs_builddir in
 
1110
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1111
*)
 
1112
  case ${ac_top_builddir}. in
 
1113
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1114
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1115
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1116
  esac;;
 
1117
esac
 
1118
case $ac_abs_builddir in
 
1119
.) ac_abs_srcdir=$ac_srcdir;;
 
1120
*)
 
1121
  case $ac_srcdir in
 
1122
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1123
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1124
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1125
  esac;;
 
1126
esac
 
1127
case $ac_abs_builddir in
 
1128
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1129
*)
 
1130
  case $ac_top_srcdir in
 
1131
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1132
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1133
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1134
  esac;;
 
1135
esac
 
1136
 
 
1137
    cd $ac_dir
 
1138
    # Check for guested configure; otherwise get Cygnus style configure.
 
1139
    if test -f $ac_srcdir/configure.gnu; then
 
1140
      echo
 
1141
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1142
    elif test -f $ac_srcdir/configure; then
 
1143
      echo
 
1144
      $SHELL $ac_srcdir/configure  --help=recursive
 
1145
    elif test -f $ac_srcdir/configure.ac ||
 
1146
           test -f $ac_srcdir/configure.in; then
 
1147
      echo
 
1148
      $ac_configure --help
 
1149
    else
 
1150
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1151
    fi
 
1152
    cd $ac_popdir
 
1153
  done
 
1154
fi
 
1155
 
 
1156
test -n "$ac_init_help" && exit 0
 
1157
if $ac_init_version; then
 
1158
  cat <<\_ACEOF
 
1159
 
 
1160
Copyright (C) 2003 Free Software Foundation, Inc.
 
1161
This configure script is free software; the Free Software Foundation
 
1162
gives unlimited permission to copy, distribute and modify it.
 
1163
_ACEOF
 
1164
  exit 0
 
1165
fi
 
1166
exec 5>config.log
 
1167
cat >&5 <<_ACEOF
 
1168
This file contains any messages produced by compilers while
 
1169
running configure, to aid debugging if configure makes a mistake.
 
1170
 
 
1171
It was created by $as_me, which was
 
1172
generated by GNU Autoconf 2.59.  Invocation command line was
 
1173
 
 
1174
  $ $0 $@
 
1175
 
 
1176
_ACEOF
 
1177
{
 
1178
cat <<_ASUNAME
 
1179
## --------- ##
 
1180
## Platform. ##
 
1181
## --------- ##
 
1182
 
 
1183
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1184
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1185
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1186
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1187
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1188
 
 
1189
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1190
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1191
 
 
1192
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1193
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1194
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1195
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1196
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1197
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1198
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1199
 
 
1200
_ASUNAME
 
1201
 
 
1202
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1203
for as_dir in $PATH
 
1204
do
 
1205
  IFS=$as_save_IFS
 
1206
  test -z "$as_dir" && as_dir=.
 
1207
  echo "PATH: $as_dir"
 
1208
done
 
1209
 
 
1210
} >&5
 
1211
 
 
1212
cat >&5 <<_ACEOF
 
1213
 
 
1214
 
 
1215
## ----------- ##
 
1216
## Core tests. ##
 
1217
## ----------- ##
 
1218
 
 
1219
_ACEOF
 
1220
 
 
1221
 
 
1222
# Keep a trace of the command line.
 
1223
# Strip out --no-create and --no-recursion so they do not pile up.
 
1224
# Strip out --silent because we don't want to record it for future runs.
 
1225
# Also quote any args containing shell meta-characters.
 
1226
# Make two passes to allow for proper duplicate-argument suppression.
 
1227
ac_configure_args=
 
1228
ac_configure_args0=
 
1229
ac_configure_args1=
 
1230
ac_sep=
 
1231
ac_must_keep_next=false
 
1232
for ac_pass in 1 2
 
1233
do
 
1234
  for ac_arg
 
1235
  do
 
1236
    case $ac_arg in
 
1237
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1238
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1239
    | -silent | --silent | --silen | --sile | --sil)
 
1240
      continue ;;
 
1241
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1242
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1243
    esac
 
1244
    case $ac_pass in
 
1245
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1246
    2)
 
1247
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1248
      if test $ac_must_keep_next = true; then
 
1249
        ac_must_keep_next=false # Got value, back to normal.
 
1250
      else
 
1251
        case $ac_arg in
 
1252
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1253
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1254
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1255
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1256
            case "$ac_configure_args0 " in
 
1257
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1258
            esac
 
1259
            ;;
 
1260
          -* ) ac_must_keep_next=true ;;
 
1261
        esac
 
1262
      fi
 
1263
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1264
      # Get rid of the leading space.
 
1265
      ac_sep=" "
 
1266
      ;;
 
1267
    esac
 
1268
  done
 
1269
done
 
1270
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1271
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1272
 
 
1273
# When interrupted or exit'd, cleanup temporary files, and complete
 
1274
# config.log.  We remove comments because anyway the quotes in there
 
1275
# would cause problems or look ugly.
 
1276
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1277
# such as our DU 5.0 friend, will then `close' the trap.
 
1278
trap 'exit_status=$?
 
1279
  # Save into config.log some information that might help in debugging.
 
1280
  {
 
1281
    echo
 
1282
 
 
1283
    cat <<\_ASBOX
 
1284
## ---------------- ##
 
1285
## Cache variables. ##
 
1286
## ---------------- ##
 
1287
_ASBOX
 
1288
    echo
 
1289
    # The following way of writing the cache mishandles newlines in values,
 
1290
{
 
1291
  (set) 2>&1 |
 
1292
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1293
    *ac_space=\ *)
 
1294
      sed -n \
 
1295
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1296
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1297
      ;;
 
1298
    *)
 
1299
      sed -n \
 
1300
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1301
      ;;
 
1302
    esac;
 
1303
}
 
1304
    echo
 
1305
 
 
1306
    cat <<\_ASBOX
 
1307
## ----------------- ##
 
1308
## Output variables. ##
 
1309
## ----------------- ##
 
1310
_ASBOX
 
1311
    echo
 
1312
    for ac_var in $ac_subst_vars
 
1313
    do
 
1314
      eval ac_val=$`echo $ac_var`
 
1315
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1316
    done | sort
 
1317
    echo
 
1318
 
 
1319
    if test -n "$ac_subst_files"; then
 
1320
      cat <<\_ASBOX
 
1321
## ------------- ##
 
1322
## Output files. ##
 
1323
## ------------- ##
 
1324
_ASBOX
 
1325
      echo
 
1326
      for ac_var in $ac_subst_files
 
1327
      do
 
1328
        eval ac_val=$`echo $ac_var`
 
1329
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1330
      done | sort
 
1331
      echo
 
1332
    fi
 
1333
 
 
1334
    if test -s confdefs.h; then
 
1335
      cat <<\_ASBOX
 
1336
## ----------- ##
 
1337
## confdefs.h. ##
 
1338
## ----------- ##
 
1339
_ASBOX
 
1340
      echo
 
1341
      sed "/^$/d" confdefs.h | sort
 
1342
      echo
 
1343
    fi
 
1344
    test "$ac_signal" != 0 &&
 
1345
      echo "$as_me: caught signal $ac_signal"
 
1346
    echo "$as_me: exit $exit_status"
 
1347
  } >&5
 
1348
  rm -f core *.core &&
 
1349
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1350
    exit $exit_status
 
1351
     ' 0
 
1352
for ac_signal in 1 2 13 15; do
 
1353
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1354
done
 
1355
ac_signal=0
 
1356
 
 
1357
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1358
rm -rf conftest* confdefs.h
 
1359
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1360
echo >confdefs.h
 
1361
 
 
1362
# Predefined preprocessor variables.
 
1363
 
 
1364
cat >>confdefs.h <<_ACEOF
 
1365
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1366
_ACEOF
 
1367
 
 
1368
 
 
1369
cat >>confdefs.h <<_ACEOF
 
1370
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1371
_ACEOF
 
1372
 
 
1373
 
 
1374
cat >>confdefs.h <<_ACEOF
 
1375
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1376
_ACEOF
 
1377
 
 
1378
 
 
1379
cat >>confdefs.h <<_ACEOF
 
1380
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1381
_ACEOF
 
1382
 
 
1383
 
 
1384
cat >>confdefs.h <<_ACEOF
 
1385
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1386
_ACEOF
 
1387
 
 
1388
 
 
1389
# Let the site file select an alternate cache file if it wants to.
 
1390
# Prefer explicitly selected file to automatically selected ones.
 
1391
if test -z "$CONFIG_SITE"; then
 
1392
  if test "x$prefix" != xNONE; then
 
1393
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1394
  else
 
1395
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1396
  fi
 
1397
fi
 
1398
for ac_site_file in $CONFIG_SITE; do
 
1399
  if test -r "$ac_site_file"; then
 
1400
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1401
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1402
    sed 's/^/| /' "$ac_site_file" >&5
 
1403
    . "$ac_site_file"
 
1404
  fi
 
1405
done
 
1406
 
 
1407
if test -r "$cache_file"; then
 
1408
  # Some versions of bash will fail to source /dev/null (special
 
1409
  # files actually), so we avoid doing that.
 
1410
  if test -f "$cache_file"; then
 
1411
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1412
echo "$as_me: loading cache $cache_file" >&6;}
 
1413
    case $cache_file in
 
1414
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1415
      *)                      . ./$cache_file;;
 
1416
    esac
 
1417
  fi
 
1418
else
 
1419
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1420
echo "$as_me: creating cache $cache_file" >&6;}
 
1421
  >$cache_file
 
1422
fi
 
1423
 
 
1424
# Check that the precious variables saved in the cache have kept the same
 
1425
# value.
 
1426
ac_cache_corrupted=false
 
1427
for ac_var in `(set) 2>&1 |
 
1428
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1429
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1430
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1431
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1432
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1433
  case $ac_old_set,$ac_new_set in
 
1434
    set,)
 
1435
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1436
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1437
      ac_cache_corrupted=: ;;
 
1438
    ,set)
 
1439
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1440
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1441
      ac_cache_corrupted=: ;;
 
1442
    ,);;
 
1443
    *)
 
1444
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1445
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1446
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1447
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1448
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1449
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1450
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1451
        ac_cache_corrupted=:
 
1452
      fi;;
 
1453
  esac
 
1454
  # Pass precious variables to config.status.
 
1455
  if test "$ac_new_set" = set; then
 
1456
    case $ac_new_val in
 
1457
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1458
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1459
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1460
    esac
 
1461
    case " $ac_configure_args " in
 
1462
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1463
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1464
    esac
 
1465
  fi
 
1466
done
 
1467
if $ac_cache_corrupted; then
 
1468
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1469
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1470
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1471
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1472
   { (exit 1); exit 1; }; }
 
1473
fi
 
1474
 
 
1475
ac_ext=c
 
1476
ac_cpp='$CPP $CPPFLAGS'
 
1477
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1478
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1479
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1480
 
 
1481
 
 
1482
 
 
1483
 
 
1484
 
 
1485
 
 
1486
 
 
1487
 
 
1488
 
 
1489
 
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
          ac_config_headers="$ac_config_headers lib/t1lib/sysconf.h:lib/t1lib/sysconf.h.in"
 
1500
 
 
1501
ac_aux_dir=
 
1502
for ac_dir in ac-tools $srcdir/ac-tools; do
 
1503
  if test -f $ac_dir/install-sh; then
 
1504
    ac_aux_dir=$ac_dir
 
1505
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1506
    break
 
1507
  elif test -f $ac_dir/install.sh; then
 
1508
    ac_aux_dir=$ac_dir
 
1509
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1510
    break
 
1511
  elif test -f $ac_dir/shtool; then
 
1512
    ac_aux_dir=$ac_dir
 
1513
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1514
    break
 
1515
  fi
 
1516
done
 
1517
if test -z "$ac_aux_dir"; then
 
1518
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&5
 
1519
echo "$as_me: error: cannot find install-sh or install.sh in ac-tools $srcdir/ac-tools" >&2;}
 
1520
   { (exit 1); exit 1; }; }
 
1521
fi
 
1522
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1523
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1524
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1525
 
 
1526
 
 
1527
 
 
1528
 
 
1529
 
 
1530
 
 
1531
 
 
1532
 
 
1533
 
 
1534
 
 
1535
 
 
1536
 
 
1537
 
 
1538
 
 
1539
 
 
1540
T1LIB_LT_CURRENT=6
 
1541
T1LIB_LT_REVISION=2
 
1542
T1LIB_LT_AGE=1
 
1543
T1LIB_IDENTIFIER="5.1.2"
 
1544
 
 
1545
T1LIB_VERSION=5
 
1546
T1LIB_REVISION=1
 
1547
T1LIB_PATCHLEVEL=2
 
1548
T1LIB_VERSIONSTRING=\""5.1.2"\"
 
1549
 
 
1550
 
 
1551
 
 
1552
 
 
1553
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
1554
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
 
1555
## Free Software Foundation, Inc.
 
1556
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
1557
##
 
1558
## This program is free software; you can redistribute it and/or modify
 
1559
## it under the terms of the GNU General Public License as published by
 
1560
## the Free Software Foundation; either version 2 of the License, or
 
1561
## (at your option) any later version.
 
1562
##
 
1563
## This program is distributed in the hope that it will be useful, but
 
1564
## WITHOUT ANY WARRANTY; without even the implied warranty of
 
1565
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
1566
## General Public License for more details.
 
1567
##
 
1568
## You should have received a copy of the GNU General Public License
 
1569
## along with this program; if not, write to the Free Software
 
1570
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
1571
##
 
1572
## As a special exception to the GNU General Public License, if you
 
1573
## distribute this file as part of a program that contains a
 
1574
## configuration script generated by Autoconf, you may include it under
 
1575
## the same distribution terms that you use for the rest of that program.
 
1576
 
 
1577
# serial 47 AC_PROG_LIBTOOL
 
1578
 
 
1579
 
 
1580
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
1581
# -----------------------------------------------------------
 
1582
# If this macro is not defined by Autoconf, define it here.
 
1583
 
 
1584
 
 
1585
 
 
1586
# AC_PROG_LIBTOOL
 
1587
# ---------------
 
1588
# AC_PROG_LIBTOOL
 
1589
 
 
1590
 
 
1591
# _AC_PROG_LIBTOOL
 
1592
# ----------------
 
1593
# _AC_PROG_LIBTOOL
 
1594
 
 
1595
 
 
1596
# AC_LIBTOOL_SETUP
 
1597
# ----------------
 
1598
# AC_LIBTOOL_SETUP
 
1599
 
 
1600
 
 
1601
# _LT_AC_SYS_COMPILER
 
1602
# -------------------
 
1603
# _LT_AC_SYS_COMPILER
 
1604
 
 
1605
 
 
1606
# _LT_AC_SYS_LIBPATH_AIX
 
1607
# ----------------------
 
1608
# Links a minimal program and checks the executable
 
1609
# for the system default hardcoded library path. In most cases,
 
1610
# this is /usr/lib:/lib, but when the MPI compilers are used
 
1611
# the location of the communication and MPI libs are included too.
 
1612
# If we don't find anything, use the default library path according
 
1613
# to the aix ld manual.
 
1614
# _LT_AC_SYS_LIBPATH_AIX
 
1615
 
 
1616
 
 
1617
# _LT_AC_SHELL_INIT(ARG)
 
1618
# ----------------------
 
1619
# _LT_AC_SHELL_INIT
 
1620
 
 
1621
 
 
1622
# _LT_AC_PROG_ECHO_BACKSLASH
 
1623
# --------------------------
 
1624
# Add some code to the start of the generated configure script which
 
1625
# will find an echo command which doesn't interpret backslashes.
 
1626
# _LT_AC_PROG_ECHO_BACKSLASH
 
1627
 
 
1628
 
 
1629
# _LT_AC_LOCK
 
1630
# -----------
 
1631
# _LT_AC_LOCK
 
1632
 
 
1633
 
 
1634
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1635
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 
1636
# ----------------------------------------------------------------
 
1637
# Check whether the given compiler option works
 
1638
# AC_LIBTOOL_COMPILER_OPTION
 
1639
 
 
1640
 
 
1641
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1642
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
1643
# ------------------------------------------------------------
 
1644
# Check whether the given compiler option works
 
1645
# AC_LIBTOOL_LINKER_OPTION
 
1646
 
 
1647
 
 
1648
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1649
# --------------------------
 
1650
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1651
 
 
1652
 
 
1653
# _LT_AC_CHECK_DLFCN
 
1654
# --------------------
 
1655
# _LT_AC_CHECK_DLFCN
 
1656
 
 
1657
 
 
1658
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
1659
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
1660
# ------------------------------------------------------------------
 
1661
# _LT_AC_TRY_DLOPEN_SELF
 
1662
 
 
1663
 
 
1664
# AC_LIBTOOL_DLOPEN_SELF
 
1665
# -------------------
 
1666
# AC_LIBTOOL_DLOPEN_SELF
 
1667
 
 
1668
 
 
1669
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
1670
# ---------------------------------
 
1671
# Check to see if options -c and -o are simultaneously supported by compiler
 
1672
# AC_LIBTOOL_PROG_CC_C_O
 
1673
 
 
1674
 
 
1675
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
1676
# -----------------------------------------
 
1677
# Check to see if we can do hard links to lock some files if needed
 
1678
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
1679
 
 
1680
 
 
1681
# AC_LIBTOOL_OBJDIR
 
1682
# -----------------
 
1683
# AC_LIBTOOL_OBJDIR
 
1684
 
 
1685
 
 
1686
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
1687
# ----------------------------------------------
 
1688
# Check hardcoding attributes.
 
1689
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
1690
 
 
1691
 
 
1692
# AC_LIBTOOL_SYS_LIB_STRIP
 
1693
# ------------------------
 
1694
# AC_LIBTOOL_SYS_LIB_STRIP
 
1695
 
 
1696
 
 
1697
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
1698
# -----------------------------
 
1699
# PORTME Fill in your ld.so characteristics
 
1700
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
1701
 
 
1702
 
 
1703
# _LT_AC_TAGCONFIG
 
1704
# ----------------
 
1705
# _LT_AC_TAGCONFIG
 
1706
 
 
1707
 
 
1708
# AC_LIBTOOL_DLOPEN
 
1709
# -----------------
 
1710
# enable checks for dlopen support
 
1711
# AC_LIBTOOL_DLOPEN
 
1712
 
 
1713
 
 
1714
# AC_LIBTOOL_WIN32_DLL
 
1715
# --------------------
 
1716
# declare package support for building win32 dll's
 
1717
# AC_LIBTOOL_WIN32_DLL
 
1718
 
 
1719
 
 
1720
# AC_ENABLE_SHARED([DEFAULT])
 
1721
# ---------------------------
 
1722
# implement the --enable-shared flag
 
1723
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1724
# AC_ENABLE_SHARED
 
1725
 
 
1726
 
 
1727
# AC_DISABLE_SHARED
 
1728
# -----------------
 
1729
#- set the default shared flag to --disable-shared
 
1730
# AC_DISABLE_SHARED
 
1731
 
 
1732
 
 
1733
# AC_ENABLE_STATIC([DEFAULT])
 
1734
# ---------------------------
 
1735
# implement the --enable-static flag
 
1736
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1737
# AC_ENABLE_STATIC
 
1738
 
 
1739
 
 
1740
# AC_DISABLE_STATIC
 
1741
# -----------------
 
1742
# set the default static flag to --disable-static
 
1743
# AC_DISABLE_STATIC
 
1744
 
 
1745
 
 
1746
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
1747
# ---------------------------------
 
1748
# implement the --enable-fast-install flag
 
1749
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
1750
# AC_ENABLE_FAST_INSTALL
 
1751
 
 
1752
 
 
1753
# AC_DISABLE_FAST_INSTALL
 
1754
# -----------------------
 
1755
# set the default to --disable-fast-install
 
1756
# AC_DISABLE_FAST_INSTALL
 
1757
 
 
1758
 
 
1759
# AC_LIBTOOL_PICMODE([MODE])
 
1760
# --------------------------
 
1761
# implement the --with-pic flag
 
1762
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
1763
# AC_LIBTOOL_PICMODE
 
1764
 
 
1765
 
 
1766
# AC_PROG_EGREP
 
1767
# -------------
 
1768
# This is predefined starting with Autoconf 2.54, so this conditional
 
1769
# definition can be removed once we require Autoconf 2.54 or later.
 
1770
 
 
1771
 
 
1772
 
 
1773
# AC_PATH_TOOL_PREFIX
 
1774
# -------------------
 
1775
# find a file program which can recognise shared library
 
1776
# AC_PATH_TOOL_PREFIX
 
1777
 
 
1778
 
 
1779
# AC_PATH_MAGIC
 
1780
# -------------
 
1781
# find a file program which can recognise a shared library
 
1782
# AC_PATH_MAGIC
 
1783
 
 
1784
 
 
1785
# AC_PROG_LD
 
1786
# ----------
 
1787
# find the pathname to the GNU or non-GNU linker
 
1788
# AC_PROG_LD
 
1789
 
 
1790
 
 
1791
# AC_PROG_LD_GNU
 
1792
# --------------
 
1793
# AC_PROG_LD_GNU
 
1794
 
 
1795
 
 
1796
# AC_PROG_LD_RELOAD_FLAG
 
1797
# ----------------------
 
1798
# find reload flag for linker
 
1799
#   -- PORTME Some linkers may need a different reload flag.
 
1800
# AC_PROG_LD_RELOAD_FLAG
 
1801
 
 
1802
 
 
1803
# AC_DEPLIBS_CHECK_METHOD
 
1804
# -----------------------
 
1805
# how to check for library dependencies
 
1806
#  -- PORTME fill in with the dynamic library characteristics
 
1807
# AC_DEPLIBS_CHECK_METHOD
 
1808
 
 
1809
 
 
1810
# AC_PROG_NM
 
1811
# ----------
 
1812
# find the pathname to a BSD-compatible name lister
 
1813
# AC_PROG_NM
 
1814
 
 
1815
 
 
1816
# AC_CHECK_LIBM
 
1817
# -------------
 
1818
# check for math library
 
1819
# AC_CHECK_LIBM
 
1820
 
 
1821
 
 
1822
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
1823
# -----------------------------------
 
1824
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
1825
# LTDLINCL to the include flags for the libltdl header and adds
 
1826
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
 
1827
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
1828
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
 
1829
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
 
1830
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
1831
# flat and you're not using automake, define top_builddir and
 
1832
# top_srcdir appropriately in the Makefiles.
 
1833
# AC_LIBLTDL_CONVENIENCE
 
1834
 
 
1835
 
 
1836
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
1837
# -----------------------------------
 
1838
# sets LIBLTDL to the link flags for the libltdl installable library and
 
1839
# LTDLINCL to the include flags for the libltdl header and adds
 
1840
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
 
1841
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
1842
# DIRECTORY is not provided and an installed libltdl is not found, it is
 
1843
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
 
1844
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
 
1845
# quotes!).  If your package is not flat and you're not using automake,
 
1846
# define top_builddir and top_srcdir appropriately in the Makefiles.
 
1847
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
1848
# AC_LIBLTDL_INSTALLABLE
 
1849
 
 
1850
 
 
1851
# AC_LIBTOOL_CXX
 
1852
# --------------
 
1853
# enable support for C++ libraries
 
1854
# AC_LIBTOOL_CXX
 
1855
 
 
1856
 
 
1857
# _LT_AC_LANG_CXX
 
1858
# ---------------
 
1859
# _LT_AC_LANG_CXX
 
1860
 
 
1861
# _LT_AC_PROG_CXXCPP
 
1862
# ---------------
 
1863
# _LT_AC_PROG_CXXCPP
 
1864
 
 
1865
# AC_LIBTOOL_F77
 
1866
# --------------
 
1867
# enable support for Fortran 77 libraries
 
1868
# AC_LIBTOOL_F77
 
1869
 
 
1870
 
 
1871
# _LT_AC_LANG_F77
 
1872
# ---------------
 
1873
# _LT_AC_LANG_F77
 
1874
 
 
1875
 
 
1876
# AC_LIBTOOL_GCJ
 
1877
# --------------
 
1878
# enable support for GCJ libraries
 
1879
# AC_LIBTOOL_GCJ
 
1880
 
 
1881
 
 
1882
# _LT_AC_LANG_GCJ
 
1883
# ---------------
 
1884
# _LT_AC_LANG_GCJ
 
1885
 
 
1886
 
 
1887
# AC_LIBTOOL_RC
 
1888
# --------------
 
1889
# enable support for Windows resource files
 
1890
# AC_LIBTOOL_RC
 
1891
 
 
1892
 
 
1893
# AC_LIBTOOL_LANG_C_CONFIG
 
1894
# ------------------------
 
1895
# Ensure that the configuration vars for the C compiler are
 
1896
# suitably defined.  Those variables are subsequently used by
 
1897
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
1898
 
 
1899
# AC_LIBTOOL_LANG_C_CONFIG
 
1900
 
 
1901
 
 
1902
# AC_LIBTOOL_LANG_CXX_CONFIG
 
1903
# --------------------------
 
1904
# Ensure that the configuration vars for the C compiler are
 
1905
# suitably defined.  Those variables are subsequently used by
 
1906
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
1907
 
 
1908
# AC_LIBTOOL_LANG_CXX_CONFIG
 
1909
 
 
1910
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
1911
# ------------------------
 
1912
# Figure out "hidden" library dependencies from verbose
 
1913
# compiler output when linking a shared library.
 
1914
# Parse the compiler output and extract the necessary
 
1915
# objects, libraries and library flags.
 
1916
# AC_LIBTOOL_POSTDEP_PREDEP
 
1917
 
 
1918
# AC_LIBTOOL_LANG_F77_CONFIG
 
1919
# ------------------------
 
1920
# Ensure that the configuration vars for the C compiler are
 
1921
# suitably defined.  Those variables are subsequently used by
 
1922
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
1923
 
 
1924
# AC_LIBTOOL_LANG_F77_CONFIG
 
1925
 
 
1926
 
 
1927
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
1928
# --------------------------
 
1929
# Ensure that the configuration vars for the C compiler are
 
1930
# suitably defined.  Those variables are subsequently used by
 
1931
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
1932
 
 
1933
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
1934
 
 
1935
 
 
1936
# AC_LIBTOOL_LANG_RC_CONFIG
 
1937
# --------------------------
 
1938
# Ensure that the configuration vars for the Windows resource compiler are
 
1939
# suitably defined.  Those variables are subsequently used by
 
1940
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
1941
 
 
1942
# AC_LIBTOOL_LANG_RC_CONFIG
 
1943
 
 
1944
 
 
1945
# AC_LIBTOOL_CONFIG([TAGNAME])
 
1946
# ----------------------------
 
1947
# If TAGNAME is not passed, then create an initial libtool script
 
1948
# with a default configuration from the untagged config vars.  Otherwise
 
1949
# add code to config.status for appending the configuration named by
 
1950
# TAGNAME from the matching tagged config vars.
 
1951
# AC_LIBTOOL_CONFIG
 
1952
 
 
1953
 
 
1954
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
1955
# -------------------------------------------
 
1956
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
1957
 
 
1958
 
 
1959
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
1960
# ---------------------------------
 
1961
 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
1962
 
 
1963
 
 
1964
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
1965
# ---------------------------------------
 
1966
 
 
1967
 
 
1968
 
 
1969
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
1970
# ------------------------------------
 
1971
# See if the linker supports building shared libraries.
 
1972
# AC_LIBTOOL_PROG_LD_SHLIBS
 
1973
 
 
1974
 
 
1975
# _LT_AC_FILE_LTDLL_C
 
1976
# -------------------
 
1977
# Be careful that the start marker always follows a newline.
 
1978
# _LT_AC_FILE_LTDLL_C
 
1979
 
 
1980
 
 
1981
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
1982
# ---------------------------------
 
1983
 
 
1984
 
 
1985
 
 
1986
# old names
 
1987
 
 
1988
 
 
1989
 
 
1990
 
 
1991
 
 
1992
 
 
1993
 
 
1994
 
 
1995
# This is just to silence aclocal about the macro not being used
 
1996
 
 
1997
 
 
1998
 
 
1999
 
 
2000
 
 
2001
 
 
2002
############################################################
 
2003
# NOTE: This macro has been submitted for inclusion into   #
 
2004
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 
2005
#  a released version of Autoconf we should remove this    #
 
2006
#  macro and use it instead.                               #
 
2007
############################################################
 
2008
# LT_AC_PROG_SED
 
2009
# --------------
 
2010
# Check for a fully-functional sed program, that truncates
 
2011
# as few characters as possible.  Prefer GNU sed if found.
 
2012
 
 
2013
 
 
2014
 
 
2015
test -z "$LDLIBS" && LDLIBS=-lm
 
2016
test -z "$PROGEXT" && PROGEXT=""
 
2017
test -z "$CFLAGS"
 
2018
test -z "$LDFLAGS"
 
2019
 
 
2020
T1LIB_DATA_DIR="${datadir}/t1lib"
 
2021
 
 
2022
 
 
2023
 
 
2024
 
 
2025
 
 
2026
 
 
2027
 
 
2028
 
 
2029
 
 
2030
 
 
2031
 
 
2032
 
 
2033
 
 
2034
 
 
2035
 
 
2036
 
 
2037
 
 
2038
 
 
2039
 
 
2040
 
 
2041
 
 
2042
 
 
2043
 
 
2044
 
 
2045
 
 
2046
 
 
2047
 
 
2048
 
 
2049
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2050
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
2051
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
2052
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2053
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2054
else
 
2055
  cat >conftest.make <<\_ACEOF
 
2056
all:
 
2057
        @echo 'ac_maketemp="$(MAKE)"'
 
2058
_ACEOF
 
2059
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2060
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
2061
if test -n "$ac_maketemp"; then
 
2062
  eval ac_cv_prog_make_${ac_make}_set=yes
 
2063
else
 
2064
  eval ac_cv_prog_make_${ac_make}_set=no
 
2065
fi
 
2066
rm -f conftest.make
 
2067
fi
 
2068
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
2069
  echo "$as_me:$LINENO: result: yes" >&5
 
2070
echo "${ECHO_T}yes" >&6
 
2071
  SET_MAKE=
 
2072
else
 
2073
  echo "$as_me:$LINENO: result: no" >&5
 
2074
echo "${ECHO_T}no" >&6
 
2075
  SET_MAKE="MAKE=${MAKE-make}"
 
2076
fi
 
2077
 
 
2078
ac_ext=c
 
2079
ac_cpp='$CPP $CPPFLAGS'
 
2080
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2081
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2082
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2083
if test -n "$ac_tool_prefix"; then
 
2084
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2085
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2086
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2087
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2088
if test "${ac_cv_prog_CC+set}" = set; then
 
2089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2090
else
 
2091
  if test -n "$CC"; then
 
2092
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2093
else
 
2094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2095
for as_dir in $PATH
 
2096
do
 
2097
  IFS=$as_save_IFS
 
2098
  test -z "$as_dir" && as_dir=.
 
2099
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2100
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2101
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2102
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2103
    break 2
 
2104
  fi
 
2105
done
 
2106
done
 
2107
 
 
2108
fi
 
2109
fi
 
2110
CC=$ac_cv_prog_CC
 
2111
if test -n "$CC"; then
 
2112
  echo "$as_me:$LINENO: result: $CC" >&5
 
2113
echo "${ECHO_T}$CC" >&6
 
2114
else
 
2115
  echo "$as_me:$LINENO: result: no" >&5
 
2116
echo "${ECHO_T}no" >&6
 
2117
fi
 
2118
 
 
2119
fi
 
2120
if test -z "$ac_cv_prog_CC"; then
 
2121
  ac_ct_CC=$CC
 
2122
  # Extract the first word of "gcc", so it can be a program name with args.
 
2123
set dummy gcc; ac_word=$2
 
2124
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2125
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2126
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2128
else
 
2129
  if test -n "$ac_ct_CC"; then
 
2130
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2131
else
 
2132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2133
for as_dir in $PATH
 
2134
do
 
2135
  IFS=$as_save_IFS
 
2136
  test -z "$as_dir" && as_dir=.
 
2137
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2138
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2139
    ac_cv_prog_ac_ct_CC="gcc"
 
2140
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2141
    break 2
 
2142
  fi
 
2143
done
 
2144
done
 
2145
 
 
2146
fi
 
2147
fi
 
2148
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2149
if test -n "$ac_ct_CC"; then
 
2150
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2151
echo "${ECHO_T}$ac_ct_CC" >&6
 
2152
else
 
2153
  echo "$as_me:$LINENO: result: no" >&5
 
2154
echo "${ECHO_T}no" >&6
 
2155
fi
 
2156
 
 
2157
  CC=$ac_ct_CC
 
2158
else
 
2159
  CC="$ac_cv_prog_CC"
 
2160
fi
 
2161
 
 
2162
if test -z "$CC"; then
 
2163
  if test -n "$ac_tool_prefix"; then
 
2164
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2165
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2166
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2167
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2168
if test "${ac_cv_prog_CC+set}" = set; then
 
2169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2170
else
 
2171
  if test -n "$CC"; then
 
2172
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2173
else
 
2174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2175
for as_dir in $PATH
 
2176
do
 
2177
  IFS=$as_save_IFS
 
2178
  test -z "$as_dir" && as_dir=.
 
2179
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2180
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2181
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2182
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2183
    break 2
 
2184
  fi
 
2185
done
 
2186
done
 
2187
 
 
2188
fi
 
2189
fi
 
2190
CC=$ac_cv_prog_CC
 
2191
if test -n "$CC"; then
 
2192
  echo "$as_me:$LINENO: result: $CC" >&5
 
2193
echo "${ECHO_T}$CC" >&6
 
2194
else
 
2195
  echo "$as_me:$LINENO: result: no" >&5
 
2196
echo "${ECHO_T}no" >&6
 
2197
fi
 
2198
 
 
2199
fi
 
2200
if test -z "$ac_cv_prog_CC"; then
 
2201
  ac_ct_CC=$CC
 
2202
  # Extract the first word of "cc", so it can be a program name with args.
 
2203
set dummy cc; ac_word=$2
 
2204
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2205
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2206
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2207
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2208
else
 
2209
  if test -n "$ac_ct_CC"; then
 
2210
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2211
else
 
2212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2213
for as_dir in $PATH
 
2214
do
 
2215
  IFS=$as_save_IFS
 
2216
  test -z "$as_dir" && as_dir=.
 
2217
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2218
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2219
    ac_cv_prog_ac_ct_CC="cc"
 
2220
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2221
    break 2
 
2222
  fi
 
2223
done
 
2224
done
 
2225
 
 
2226
fi
 
2227
fi
 
2228
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2229
if test -n "$ac_ct_CC"; then
 
2230
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2231
echo "${ECHO_T}$ac_ct_CC" >&6
 
2232
else
 
2233
  echo "$as_me:$LINENO: result: no" >&5
 
2234
echo "${ECHO_T}no" >&6
 
2235
fi
 
2236
 
 
2237
  CC=$ac_ct_CC
 
2238
else
 
2239
  CC="$ac_cv_prog_CC"
 
2240
fi
 
2241
 
 
2242
fi
 
2243
if test -z "$CC"; then
 
2244
  # Extract the first word of "cc", so it can be a program name with args.
 
2245
set dummy cc; ac_word=$2
 
2246
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2248
if test "${ac_cv_prog_CC+set}" = set; then
 
2249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2250
else
 
2251
  if test -n "$CC"; then
 
2252
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2253
else
 
2254
  ac_prog_rejected=no
 
2255
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2256
for as_dir in $PATH
 
2257
do
 
2258
  IFS=$as_save_IFS
 
2259
  test -z "$as_dir" && as_dir=.
 
2260
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2261
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2262
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2263
       ac_prog_rejected=yes
 
2264
       continue
 
2265
     fi
 
2266
    ac_cv_prog_CC="cc"
 
2267
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2268
    break 2
 
2269
  fi
 
2270
done
 
2271
done
 
2272
 
 
2273
if test $ac_prog_rejected = yes; then
 
2274
  # We found a bogon in the path, so make sure we never use it.
 
2275
  set dummy $ac_cv_prog_CC
 
2276
  shift
 
2277
  if test $# != 0; then
 
2278
    # We chose a different compiler from the bogus one.
 
2279
    # However, it has the same basename, so the bogon will be chosen
 
2280
    # first if we set CC to just the basename; use the full file name.
 
2281
    shift
 
2282
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2283
  fi
 
2284
fi
 
2285
fi
 
2286
fi
 
2287
CC=$ac_cv_prog_CC
 
2288
if test -n "$CC"; then
 
2289
  echo "$as_me:$LINENO: result: $CC" >&5
 
2290
echo "${ECHO_T}$CC" >&6
 
2291
else
 
2292
  echo "$as_me:$LINENO: result: no" >&5
 
2293
echo "${ECHO_T}no" >&6
 
2294
fi
 
2295
 
 
2296
fi
 
2297
if test -z "$CC"; then
 
2298
  if test -n "$ac_tool_prefix"; then
 
2299
  for ac_prog in cl
 
2300
  do
 
2301
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2302
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2303
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2304
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2305
if test "${ac_cv_prog_CC+set}" = set; then
 
2306
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2307
else
 
2308
  if test -n "$CC"; then
 
2309
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2310
else
 
2311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2312
for as_dir in $PATH
 
2313
do
 
2314
  IFS=$as_save_IFS
 
2315
  test -z "$as_dir" && as_dir=.
 
2316
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2317
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2318
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2319
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2320
    break 2
 
2321
  fi
 
2322
done
 
2323
done
 
2324
 
 
2325
fi
 
2326
fi
 
2327
CC=$ac_cv_prog_CC
 
2328
if test -n "$CC"; then
 
2329
  echo "$as_me:$LINENO: result: $CC" >&5
 
2330
echo "${ECHO_T}$CC" >&6
 
2331
else
 
2332
  echo "$as_me:$LINENO: result: no" >&5
 
2333
echo "${ECHO_T}no" >&6
 
2334
fi
 
2335
 
 
2336
    test -n "$CC" && break
 
2337
  done
 
2338
fi
 
2339
if test -z "$CC"; then
 
2340
  ac_ct_CC=$CC
 
2341
  for ac_prog in cl
 
2342
do
 
2343
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2344
set dummy $ac_prog; ac_word=$2
 
2345
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2346
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2347
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2349
else
 
2350
  if test -n "$ac_ct_CC"; then
 
2351
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2352
else
 
2353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2354
for as_dir in $PATH
 
2355
do
 
2356
  IFS=$as_save_IFS
 
2357
  test -z "$as_dir" && as_dir=.
 
2358
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2359
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2360
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2361
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2362
    break 2
 
2363
  fi
 
2364
done
 
2365
done
 
2366
 
 
2367
fi
 
2368
fi
 
2369
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2370
if test -n "$ac_ct_CC"; then
 
2371
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2372
echo "${ECHO_T}$ac_ct_CC" >&6
 
2373
else
 
2374
  echo "$as_me:$LINENO: result: no" >&5
 
2375
echo "${ECHO_T}no" >&6
 
2376
fi
 
2377
 
 
2378
  test -n "$ac_ct_CC" && break
 
2379
done
 
2380
 
 
2381
  CC=$ac_ct_CC
 
2382
fi
 
2383
 
 
2384
fi
 
2385
 
 
2386
 
 
2387
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2388
See \`config.log' for more details." >&5
 
2389
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2390
See \`config.log' for more details." >&2;}
 
2391
   { (exit 1); exit 1; }; }
 
2392
 
 
2393
# Provide some information about the compiler.
 
2394
echo "$as_me:$LINENO:" \
 
2395
     "checking for C compiler version" >&5
 
2396
ac_compiler=`set X $ac_compile; echo $2`
 
2397
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2398
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2399
  ac_status=$?
 
2400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2401
  (exit $ac_status); }
 
2402
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2403
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2404
  ac_status=$?
 
2405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2406
  (exit $ac_status); }
 
2407
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2408
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2409
  ac_status=$?
 
2410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2411
  (exit $ac_status); }
 
2412
 
 
2413
cat >conftest.$ac_ext <<_ACEOF
 
2414
/* confdefs.h.  */
 
2415
_ACEOF
 
2416
cat confdefs.h >>conftest.$ac_ext
 
2417
cat >>conftest.$ac_ext <<_ACEOF
 
2418
/* end confdefs.h.  */
 
2419
 
 
2420
int
 
2421
main ()
 
2422
{
 
2423
 
 
2424
  ;
 
2425
  return 0;
 
2426
}
 
2427
_ACEOF
 
2428
ac_clean_files_save=$ac_clean_files
 
2429
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2430
# Try to create an executable without -o first, disregard a.out.
 
2431
# It will help us diagnose broken compilers, and finding out an intuition
 
2432
# of exeext.
 
2433
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2434
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2435
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2436
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2437
  (eval $ac_link_default) 2>&5
 
2438
  ac_status=$?
 
2439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2440
  (exit $ac_status); }; then
 
2441
  # Find the output, starting from the most likely.  This scheme is
 
2442
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2443
# resort.
 
2444
 
 
2445
# Be careful to initialize this variable, since it used to be cached.
 
2446
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2447
ac_cv_exeext=
 
2448
# b.out is created by i960 compilers.
 
2449
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2450
do
 
2451
  test -f "$ac_file" || continue
 
2452
  case $ac_file in
 
2453
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2454
        ;;
 
2455
    conftest.$ac_ext )
 
2456
        # This is the source file.
 
2457
        ;;
 
2458
    [ab].out )
 
2459
        # We found the default executable, but exeext='' is most
 
2460
        # certainly right.
 
2461
        break;;
 
2462
    *.* )
 
2463
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2464
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2465
        # but it would be cool to find out if it's true.  Does anybody
 
2466
        # maintain Libtool? --akim.
 
2467
        export ac_cv_exeext
 
2468
        break;;
 
2469
    * )
 
2470
        break;;
 
2471
  esac
 
2472
done
 
2473
else
 
2474
  echo "$as_me: failed program was:" >&5
 
2475
sed 's/^/| /' conftest.$ac_ext >&5
 
2476
 
 
2477
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2478
See \`config.log' for more details." >&5
 
2479
echo "$as_me: error: C compiler cannot create executables
 
2480
See \`config.log' for more details." >&2;}
 
2481
   { (exit 77); exit 77; }; }
 
2482
fi
 
2483
 
 
2484
ac_exeext=$ac_cv_exeext
 
2485
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2486
echo "${ECHO_T}$ac_file" >&6
 
2487
 
 
2488
# Check the compiler produces executables we can run.  If not, either
 
2489
# the compiler is broken, or we cross compile.
 
2490
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2491
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2492
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2493
# If not cross compiling, check that we can run a simple program.
 
2494
if test "$cross_compiling" != yes; then
 
2495
  if { ac_try='./$ac_file'
 
2496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2497
  (eval $ac_try) 2>&5
 
2498
  ac_status=$?
 
2499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2500
  (exit $ac_status); }; }; then
 
2501
    cross_compiling=no
 
2502
  else
 
2503
    if test "$cross_compiling" = maybe; then
 
2504
        cross_compiling=yes
 
2505
    else
 
2506
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2507
If you meant to cross compile, use \`--host'.
 
2508
See \`config.log' for more details." >&5
 
2509
echo "$as_me: error: cannot run C compiled programs.
 
2510
If you meant to cross compile, use \`--host'.
 
2511
See \`config.log' for more details." >&2;}
 
2512
   { (exit 1); exit 1; }; }
 
2513
    fi
 
2514
  fi
 
2515
fi
 
2516
echo "$as_me:$LINENO: result: yes" >&5
 
2517
echo "${ECHO_T}yes" >&6
 
2518
 
 
2519
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2520
ac_clean_files=$ac_clean_files_save
 
2521
# Check the compiler produces executables we can run.  If not, either
 
2522
# the compiler is broken, or we cross compile.
 
2523
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2524
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2525
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2526
echo "${ECHO_T}$cross_compiling" >&6
 
2527
 
 
2528
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2529
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2531
  (eval $ac_link) 2>&5
 
2532
  ac_status=$?
 
2533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2534
  (exit $ac_status); }; then
 
2535
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2536
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2537
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2538
# `rm'.
 
2539
for ac_file in conftest.exe conftest conftest.*; do
 
2540
  test -f "$ac_file" || continue
 
2541
  case $ac_file in
 
2542
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2543
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2544
          export ac_cv_exeext
 
2545
          break;;
 
2546
    * ) break;;
 
2547
  esac
 
2548
done
 
2549
else
 
2550
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2551
See \`config.log' for more details." >&5
 
2552
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2553
See \`config.log' for more details." >&2;}
 
2554
   { (exit 1); exit 1; }; }
 
2555
fi
 
2556
 
 
2557
rm -f conftest$ac_cv_exeext
 
2558
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2559
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2560
 
 
2561
rm -f conftest.$ac_ext
 
2562
EXEEXT=$ac_cv_exeext
 
2563
ac_exeext=$EXEEXT
 
2564
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2565
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2566
if test "${ac_cv_objext+set}" = set; then
 
2567
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2568
else
 
2569
  cat >conftest.$ac_ext <<_ACEOF
 
2570
/* confdefs.h.  */
 
2571
_ACEOF
 
2572
cat confdefs.h >>conftest.$ac_ext
 
2573
cat >>conftest.$ac_ext <<_ACEOF
 
2574
/* end confdefs.h.  */
 
2575
 
 
2576
int
 
2577
main ()
 
2578
{
 
2579
 
 
2580
  ;
 
2581
  return 0;
 
2582
}
 
2583
_ACEOF
 
2584
rm -f conftest.o conftest.obj
 
2585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2586
  (eval $ac_compile) 2>&5
 
2587
  ac_status=$?
 
2588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2589
  (exit $ac_status); }; then
 
2590
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2591
  case $ac_file in
 
2592
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2593
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2594
       break;;
 
2595
  esac
 
2596
done
 
2597
else
 
2598
  echo "$as_me: failed program was:" >&5
 
2599
sed 's/^/| /' conftest.$ac_ext >&5
 
2600
 
 
2601
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2602
See \`config.log' for more details." >&5
 
2603
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2604
See \`config.log' for more details." >&2;}
 
2605
   { (exit 1); exit 1; }; }
 
2606
fi
 
2607
 
 
2608
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2609
fi
 
2610
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2611
echo "${ECHO_T}$ac_cv_objext" >&6
 
2612
OBJEXT=$ac_cv_objext
 
2613
ac_objext=$OBJEXT
 
2614
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2615
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2616
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2618
else
 
2619
  cat >conftest.$ac_ext <<_ACEOF
 
2620
/* confdefs.h.  */
 
2621
_ACEOF
 
2622
cat confdefs.h >>conftest.$ac_ext
 
2623
cat >>conftest.$ac_ext <<_ACEOF
 
2624
/* end confdefs.h.  */
 
2625
 
 
2626
int
 
2627
main ()
 
2628
{
 
2629
#ifndef __GNUC__
 
2630
       choke me
 
2631
#endif
 
2632
 
 
2633
  ;
 
2634
  return 0;
 
2635
}
 
2636
_ACEOF
 
2637
rm -f conftest.$ac_objext
 
2638
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2639
  (eval $ac_compile) 2>conftest.er1
 
2640
  ac_status=$?
 
2641
  grep -v '^ *+' conftest.er1 >conftest.err
 
2642
  rm -f conftest.er1
 
2643
  cat conftest.err >&5
 
2644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2645
  (exit $ac_status); } &&
 
2646
         { ac_try='test -z "$ac_c_werror_flag"
 
2647
                         || test ! -s conftest.err'
 
2648
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2649
  (eval $ac_try) 2>&5
 
2650
  ac_status=$?
 
2651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2652
  (exit $ac_status); }; } &&
 
2653
         { ac_try='test -s conftest.$ac_objext'
 
2654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2655
  (eval $ac_try) 2>&5
 
2656
  ac_status=$?
 
2657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2658
  (exit $ac_status); }; }; then
 
2659
  ac_compiler_gnu=yes
 
2660
else
 
2661
  echo "$as_me: failed program was:" >&5
 
2662
sed 's/^/| /' conftest.$ac_ext >&5
 
2663
 
 
2664
ac_compiler_gnu=no
 
2665
fi
 
2666
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2667
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2668
 
 
2669
fi
 
2670
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2671
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2672
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2673
ac_test_CFLAGS=${CFLAGS+set}
 
2674
ac_save_CFLAGS=$CFLAGS
 
2675
CFLAGS="-g"
 
2676
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2677
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2678
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2680
else
 
2681
  cat >conftest.$ac_ext <<_ACEOF
 
2682
/* confdefs.h.  */
 
2683
_ACEOF
 
2684
cat confdefs.h >>conftest.$ac_ext
 
2685
cat >>conftest.$ac_ext <<_ACEOF
 
2686
/* end confdefs.h.  */
 
2687
 
 
2688
int
 
2689
main ()
 
2690
{
 
2691
 
 
2692
  ;
 
2693
  return 0;
 
2694
}
 
2695
_ACEOF
 
2696
rm -f conftest.$ac_objext
 
2697
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2698
  (eval $ac_compile) 2>conftest.er1
 
2699
  ac_status=$?
 
2700
  grep -v '^ *+' conftest.er1 >conftest.err
 
2701
  rm -f conftest.er1
 
2702
  cat conftest.err >&5
 
2703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2704
  (exit $ac_status); } &&
 
2705
         { ac_try='test -z "$ac_c_werror_flag"
 
2706
                         || test ! -s conftest.err'
 
2707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2708
  (eval $ac_try) 2>&5
 
2709
  ac_status=$?
 
2710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2711
  (exit $ac_status); }; } &&
 
2712
         { ac_try='test -s conftest.$ac_objext'
 
2713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2714
  (eval $ac_try) 2>&5
 
2715
  ac_status=$?
 
2716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2717
  (exit $ac_status); }; }; then
 
2718
  ac_cv_prog_cc_g=yes
 
2719
else
 
2720
  echo "$as_me: failed program was:" >&5
 
2721
sed 's/^/| /' conftest.$ac_ext >&5
 
2722
 
 
2723
ac_cv_prog_cc_g=no
 
2724
fi
 
2725
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2726
fi
 
2727
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2728
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2729
if test "$ac_test_CFLAGS" = set; then
 
2730
  CFLAGS=$ac_save_CFLAGS
 
2731
elif test $ac_cv_prog_cc_g = yes; then
 
2732
  if test "$GCC" = yes; then
 
2733
    CFLAGS="-g -O2"
 
2734
  else
 
2735
    CFLAGS="-g"
 
2736
  fi
 
2737
else
 
2738
  if test "$GCC" = yes; then
 
2739
    CFLAGS="-O2"
 
2740
  else
 
2741
    CFLAGS=
 
2742
  fi
 
2743
fi
 
2744
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2745
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2746
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2747
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2748
else
 
2749
  ac_cv_prog_cc_stdc=no
 
2750
ac_save_CC=$CC
 
2751
cat >conftest.$ac_ext <<_ACEOF
 
2752
/* confdefs.h.  */
 
2753
_ACEOF
 
2754
cat confdefs.h >>conftest.$ac_ext
 
2755
cat >>conftest.$ac_ext <<_ACEOF
 
2756
/* end confdefs.h.  */
 
2757
#include <stdarg.h>
 
2758
#include <stdio.h>
 
2759
#include <sys/types.h>
 
2760
#include <sys/stat.h>
 
2761
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2762
struct buf { int x; };
 
2763
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2764
static char *e (p, i)
 
2765
     char **p;
 
2766
     int i;
 
2767
{
 
2768
  return p[i];
 
2769
}
 
2770
static char *f (char * (*g) (char **, int), char **p, ...)
 
2771
{
 
2772
  char *s;
 
2773
  va_list v;
 
2774
  va_start (v,p);
 
2775
  s = g (p, va_arg (v,int));
 
2776
  va_end (v);
 
2777
  return s;
 
2778
}
 
2779
 
 
2780
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2781
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2782
   These don't provoke an error unfortunately, instead are silently treated
 
2783
   as 'x'.  The following induces an error, until -std1 is added to get
 
2784
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2785
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2786
   that's true only with -std1.  */
 
2787
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2788
 
 
2789
int test (int i, double x);
 
2790
struct s1 {int (*f) (int a);};
 
2791
struct s2 {int (*f) (double a);};
 
2792
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2793
int argc;
 
2794
char **argv;
 
2795
int
 
2796
main ()
 
2797
{
 
2798
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2799
  ;
 
2800
  return 0;
 
2801
}
 
2802
_ACEOF
 
2803
# Don't try gcc -ansi; that turns off useful extensions and
 
2804
# breaks some systems' header files.
 
2805
# AIX                   -qlanglvl=ansi
 
2806
# Ultrix and OSF/1      -std1
 
2807
# HP-UX 10.20 and later -Ae
 
2808
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2809
# SVR4                  -Xc -D__EXTENSIONS__
 
2810
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2811
do
 
2812
  CC="$ac_save_CC $ac_arg"
 
2813
  rm -f conftest.$ac_objext
 
2814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2815
  (eval $ac_compile) 2>conftest.er1
 
2816
  ac_status=$?
 
2817
  grep -v '^ *+' conftest.er1 >conftest.err
 
2818
  rm -f conftest.er1
 
2819
  cat conftest.err >&5
 
2820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2821
  (exit $ac_status); } &&
 
2822
         { ac_try='test -z "$ac_c_werror_flag"
 
2823
                         || test ! -s conftest.err'
 
2824
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2825
  (eval $ac_try) 2>&5
 
2826
  ac_status=$?
 
2827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2828
  (exit $ac_status); }; } &&
 
2829
         { ac_try='test -s conftest.$ac_objext'
 
2830
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2831
  (eval $ac_try) 2>&5
 
2832
  ac_status=$?
 
2833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2834
  (exit $ac_status); }; }; then
 
2835
  ac_cv_prog_cc_stdc=$ac_arg
 
2836
break
 
2837
else
 
2838
  echo "$as_me: failed program was:" >&5
 
2839
sed 's/^/| /' conftest.$ac_ext >&5
 
2840
 
 
2841
fi
 
2842
rm -f conftest.err conftest.$ac_objext
 
2843
done
 
2844
rm -f conftest.$ac_ext conftest.$ac_objext
 
2845
CC=$ac_save_CC
 
2846
 
 
2847
fi
 
2848
 
 
2849
case "x$ac_cv_prog_cc_stdc" in
 
2850
  x|xno)
 
2851
    echo "$as_me:$LINENO: result: none needed" >&5
 
2852
echo "${ECHO_T}none needed" >&6 ;;
 
2853
  *)
 
2854
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2855
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2856
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2857
esac
 
2858
 
 
2859
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2860
# in C++ we need to declare it.  In case someone uses the same compiler
 
2861
# for both compiling C and C++ we need to have the C++ compiler decide
 
2862
# the declaration of exit, since it's the most demanding environment.
 
2863
cat >conftest.$ac_ext <<_ACEOF
 
2864
#ifndef __cplusplus
 
2865
  choke me
 
2866
#endif
 
2867
_ACEOF
 
2868
rm -f conftest.$ac_objext
 
2869
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2870
  (eval $ac_compile) 2>conftest.er1
 
2871
  ac_status=$?
 
2872
  grep -v '^ *+' conftest.er1 >conftest.err
 
2873
  rm -f conftest.er1
 
2874
  cat conftest.err >&5
 
2875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2876
  (exit $ac_status); } &&
 
2877
         { ac_try='test -z "$ac_c_werror_flag"
 
2878
                         || test ! -s conftest.err'
 
2879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2880
  (eval $ac_try) 2>&5
 
2881
  ac_status=$?
 
2882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2883
  (exit $ac_status); }; } &&
 
2884
         { ac_try='test -s conftest.$ac_objext'
 
2885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2886
  (eval $ac_try) 2>&5
 
2887
  ac_status=$?
 
2888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2889
  (exit $ac_status); }; }; then
 
2890
  for ac_declaration in \
 
2891
   '' \
 
2892
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2893
   'extern "C" void std::exit (int); using std::exit;' \
 
2894
   'extern "C" void exit (int) throw ();' \
 
2895
   'extern "C" void exit (int);' \
 
2896
   'void exit (int);'
 
2897
do
 
2898
  cat >conftest.$ac_ext <<_ACEOF
 
2899
/* confdefs.h.  */
 
2900
_ACEOF
 
2901
cat confdefs.h >>conftest.$ac_ext
 
2902
cat >>conftest.$ac_ext <<_ACEOF
 
2903
/* end confdefs.h.  */
 
2904
$ac_declaration
 
2905
#include <stdlib.h>
 
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
  :
 
2937
else
 
2938
  echo "$as_me: failed program was:" >&5
 
2939
sed 's/^/| /' conftest.$ac_ext >&5
 
2940
 
 
2941
continue
 
2942
fi
 
2943
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2944
  cat >conftest.$ac_ext <<_ACEOF
 
2945
/* confdefs.h.  */
 
2946
_ACEOF
 
2947
cat confdefs.h >>conftest.$ac_ext
 
2948
cat >>conftest.$ac_ext <<_ACEOF
 
2949
/* end confdefs.h.  */
 
2950
$ac_declaration
 
2951
int
 
2952
main ()
 
2953
{
 
2954
exit (42);
 
2955
  ;
 
2956
  return 0;
 
2957
}
 
2958
_ACEOF
 
2959
rm -f conftest.$ac_objext
 
2960
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2961
  (eval $ac_compile) 2>conftest.er1
 
2962
  ac_status=$?
 
2963
  grep -v '^ *+' conftest.er1 >conftest.err
 
2964
  rm -f conftest.er1
 
2965
  cat conftest.err >&5
 
2966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2967
  (exit $ac_status); } &&
 
2968
         { ac_try='test -z "$ac_c_werror_flag"
 
2969
                         || test ! -s conftest.err'
 
2970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2971
  (eval $ac_try) 2>&5
 
2972
  ac_status=$?
 
2973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2974
  (exit $ac_status); }; } &&
 
2975
         { ac_try='test -s conftest.$ac_objext'
 
2976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2977
  (eval $ac_try) 2>&5
 
2978
  ac_status=$?
 
2979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2980
  (exit $ac_status); }; }; then
 
2981
  break
 
2982
else
 
2983
  echo "$as_me: failed program was:" >&5
 
2984
sed 's/^/| /' conftest.$ac_ext >&5
 
2985
 
 
2986
fi
 
2987
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2988
done
 
2989
rm -f conftest*
 
2990
if test -n "$ac_declaration"; then
 
2991
  echo '#ifdef __cplusplus' >>confdefs.h
 
2992
  echo $ac_declaration      >>confdefs.h
 
2993
  echo '#endif'             >>confdefs.h
 
2994
fi
 
2995
 
 
2996
else
 
2997
  echo "$as_me: failed program was:" >&5
 
2998
sed 's/^/| /' conftest.$ac_ext >&5
 
2999
 
 
3000
fi
 
3001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3002
ac_ext=c
 
3003
ac_cpp='$CPP $CPPFLAGS'
 
3004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3007
 
 
3008
ac_ext=c
 
3009
ac_cpp='$CPP $CPPFLAGS'
 
3010
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3011
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3012
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3013
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3014
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3015
# On Suns, sometimes $CPP names a directory.
 
3016
if test -n "$CPP" && test -d "$CPP"; then
 
3017
  CPP=
 
3018
fi
 
3019
if test -z "$CPP"; then
 
3020
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3022
else
 
3023
      # Double quotes because CPP needs to be expanded
 
3024
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3025
    do
 
3026
      ac_preproc_ok=false
 
3027
for ac_c_preproc_warn_flag in '' yes
 
3028
do
 
3029
  # Use a header file that comes with gcc, so configuring glibc
 
3030
  # with a fresh cross-compiler works.
 
3031
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3032
  # <limits.h> exists even on freestanding compilers.
 
3033
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3034
  # not just through cpp. "Syntax error" is here to catch this case.
 
3035
  cat >conftest.$ac_ext <<_ACEOF
 
3036
/* confdefs.h.  */
 
3037
_ACEOF
 
3038
cat confdefs.h >>conftest.$ac_ext
 
3039
cat >>conftest.$ac_ext <<_ACEOF
 
3040
/* end confdefs.h.  */
 
3041
#ifdef __STDC__
 
3042
# include <limits.h>
 
3043
#else
 
3044
# include <assert.h>
 
3045
#endif
 
3046
                     Syntax error
 
3047
_ACEOF
 
3048
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3049
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3050
  ac_status=$?
 
3051
  grep -v '^ *+' conftest.er1 >conftest.err
 
3052
  rm -f conftest.er1
 
3053
  cat conftest.err >&5
 
3054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3055
  (exit $ac_status); } >/dev/null; then
 
3056
  if test -s conftest.err; then
 
3057
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3058
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3059
  else
 
3060
    ac_cpp_err=
 
3061
  fi
 
3062
else
 
3063
  ac_cpp_err=yes
 
3064
fi
 
3065
if test -z "$ac_cpp_err"; then
 
3066
  :
 
3067
else
 
3068
  echo "$as_me: failed program was:" >&5
 
3069
sed 's/^/| /' conftest.$ac_ext >&5
 
3070
 
 
3071
  # Broken: fails on valid input.
 
3072
continue
 
3073
fi
 
3074
rm -f conftest.err conftest.$ac_ext
 
3075
 
 
3076
  # OK, works on sane cases.  Now check whether non-existent headers
 
3077
  # can be detected and how.
 
3078
  cat >conftest.$ac_ext <<_ACEOF
 
3079
/* confdefs.h.  */
 
3080
_ACEOF
 
3081
cat confdefs.h >>conftest.$ac_ext
 
3082
cat >>conftest.$ac_ext <<_ACEOF
 
3083
/* end confdefs.h.  */
 
3084
#include <ac_nonexistent.h>
 
3085
_ACEOF
 
3086
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3087
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3088
  ac_status=$?
 
3089
  grep -v '^ *+' conftest.er1 >conftest.err
 
3090
  rm -f conftest.er1
 
3091
  cat conftest.err >&5
 
3092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3093
  (exit $ac_status); } >/dev/null; then
 
3094
  if test -s conftest.err; then
 
3095
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3096
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3097
  else
 
3098
    ac_cpp_err=
 
3099
  fi
 
3100
else
 
3101
  ac_cpp_err=yes
 
3102
fi
 
3103
if test -z "$ac_cpp_err"; then
 
3104
  # Broken: success on invalid input.
 
3105
continue
 
3106
else
 
3107
  echo "$as_me: failed program was:" >&5
 
3108
sed 's/^/| /' conftest.$ac_ext >&5
 
3109
 
 
3110
  # Passes both tests.
 
3111
ac_preproc_ok=:
 
3112
break
 
3113
fi
 
3114
rm -f conftest.err conftest.$ac_ext
 
3115
 
 
3116
done
 
3117
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3118
rm -f conftest.err conftest.$ac_ext
 
3119
if $ac_preproc_ok; then
 
3120
  break
 
3121
fi
 
3122
 
 
3123
    done
 
3124
    ac_cv_prog_CPP=$CPP
 
3125
 
 
3126
fi
 
3127
  CPP=$ac_cv_prog_CPP
 
3128
else
 
3129
  ac_cv_prog_CPP=$CPP
 
3130
fi
 
3131
echo "$as_me:$LINENO: result: $CPP" >&5
 
3132
echo "${ECHO_T}$CPP" >&6
 
3133
ac_preproc_ok=false
 
3134
for ac_c_preproc_warn_flag in '' yes
 
3135
do
 
3136
  # Use a header file that comes with gcc, so configuring glibc
 
3137
  # with a fresh cross-compiler works.
 
3138
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3139
  # <limits.h> exists even on freestanding compilers.
 
3140
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3141
  # not just through cpp. "Syntax error" is here to catch this case.
 
3142
  cat >conftest.$ac_ext <<_ACEOF
 
3143
/* confdefs.h.  */
 
3144
_ACEOF
 
3145
cat confdefs.h >>conftest.$ac_ext
 
3146
cat >>conftest.$ac_ext <<_ACEOF
 
3147
/* end confdefs.h.  */
 
3148
#ifdef __STDC__
 
3149
# include <limits.h>
 
3150
#else
 
3151
# include <assert.h>
 
3152
#endif
 
3153
                     Syntax error
 
3154
_ACEOF
 
3155
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3156
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3157
  ac_status=$?
 
3158
  grep -v '^ *+' conftest.er1 >conftest.err
 
3159
  rm -f conftest.er1
 
3160
  cat conftest.err >&5
 
3161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3162
  (exit $ac_status); } >/dev/null; then
 
3163
  if test -s conftest.err; then
 
3164
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3165
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3166
  else
 
3167
    ac_cpp_err=
 
3168
  fi
 
3169
else
 
3170
  ac_cpp_err=yes
 
3171
fi
 
3172
if test -z "$ac_cpp_err"; then
 
3173
  :
 
3174
else
 
3175
  echo "$as_me: failed program was:" >&5
 
3176
sed 's/^/| /' conftest.$ac_ext >&5
 
3177
 
 
3178
  # Broken: fails on valid input.
 
3179
continue
 
3180
fi
 
3181
rm -f conftest.err conftest.$ac_ext
 
3182
 
 
3183
  # OK, works on sane cases.  Now check whether non-existent headers
 
3184
  # can be detected and how.
 
3185
  cat >conftest.$ac_ext <<_ACEOF
 
3186
/* confdefs.h.  */
 
3187
_ACEOF
 
3188
cat confdefs.h >>conftest.$ac_ext
 
3189
cat >>conftest.$ac_ext <<_ACEOF
 
3190
/* end confdefs.h.  */
 
3191
#include <ac_nonexistent.h>
 
3192
_ACEOF
 
3193
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3194
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3195
  ac_status=$?
 
3196
  grep -v '^ *+' conftest.er1 >conftest.err
 
3197
  rm -f conftest.er1
 
3198
  cat conftest.err >&5
 
3199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3200
  (exit $ac_status); } >/dev/null; then
 
3201
  if test -s conftest.err; then
 
3202
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3203
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3204
  else
 
3205
    ac_cpp_err=
 
3206
  fi
 
3207
else
 
3208
  ac_cpp_err=yes
 
3209
fi
 
3210
if test -z "$ac_cpp_err"; then
 
3211
  # Broken: success on invalid input.
 
3212
continue
 
3213
else
 
3214
  echo "$as_me: failed program was:" >&5
 
3215
sed 's/^/| /' conftest.$ac_ext >&5
 
3216
 
 
3217
  # Passes both tests.
 
3218
ac_preproc_ok=:
 
3219
break
 
3220
fi
 
3221
rm -f conftest.err conftest.$ac_ext
 
3222
 
 
3223
done
 
3224
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3225
rm -f conftest.err conftest.$ac_ext
 
3226
if $ac_preproc_ok; then
 
3227
  :
 
3228
else
 
3229
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3230
See \`config.log' for more details." >&5
 
3231
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3232
See \`config.log' for more details." >&2;}
 
3233
   { (exit 1); exit 1; }; }
 
3234
fi
 
3235
 
 
3236
ac_ext=c
 
3237
ac_cpp='$CPP $CPPFLAGS'
 
3238
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3239
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3240
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3241
 
 
3242
 
 
3243
 
 
3244
echo "$as_me:$LINENO: checking for X" >&5
 
3245
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
3246
 
 
3247
 
 
3248
# Check whether --with-x or --without-x was given.
 
3249
if test "${with_x+set}" = set; then
 
3250
  withval="$with_x"
 
3251
 
 
3252
fi;
 
3253
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
3254
if test "x$with_x" = xno; then
 
3255
  # The user explicitly disabled X.
 
3256
  have_x=disabled
 
3257
else
 
3258
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
3259
    # Both variables are already set.
 
3260
    have_x=yes
 
3261
  else
 
3262
    if test "${ac_cv_have_x+set}" = set; then
 
3263
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3264
else
 
3265
  # One or both of the vars are not set, and there is no cached value.
 
3266
ac_x_includes=no ac_x_libraries=no
 
3267
rm -fr conftest.dir
 
3268
if mkdir conftest.dir; then
 
3269
  cd conftest.dir
 
3270
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
3271
  cat >Imakefile <<'_ACEOF'
 
3272
acfindx:
 
3273
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
3274
_ACEOF
 
3275
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
3276
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3277
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
3278
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
3279
    for ac_extension in a so sl; do
 
3280
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
3281
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
3282
        ac_im_usrlibdir=$ac_im_libdir; break
 
3283
      fi
 
3284
    done
 
3285
    # Screen out bogus values from the imake configuration.  They are
 
3286
    # bogus both because they are the default anyway, and because
 
3287
    # using them would break gcc on systems where it needs fixed includes.
 
3288
    case $ac_im_incroot in
 
3289
        /usr/include) ;;
 
3290
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
3291
    esac
 
3292
    case $ac_im_usrlibdir in
 
3293
        /usr/lib | /lib) ;;
 
3294
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
3295
    esac
 
3296
  fi
 
3297
  cd ..
 
3298
  rm -fr conftest.dir
 
3299
fi
 
3300
 
 
3301
# Standard set of common directories for X headers.
 
3302
# Check X11 before X11Rn because it is often a symlink to the current release.
 
3303
ac_x_header_dirs='
 
3304
/usr/X11/include
 
3305
/usr/X11R6/include
 
3306
/usr/X11R5/include
 
3307
/usr/X11R4/include
 
3308
 
 
3309
/usr/include/X11
 
3310
/usr/include/X11R6
 
3311
/usr/include/X11R5
 
3312
/usr/include/X11R4
 
3313
 
 
3314
/usr/local/X11/include
 
3315
/usr/local/X11R6/include
 
3316
/usr/local/X11R5/include
 
3317
/usr/local/X11R4/include
 
3318
 
 
3319
/usr/local/include/X11
 
3320
/usr/local/include/X11R6
 
3321
/usr/local/include/X11R5
 
3322
/usr/local/include/X11R4
 
3323
 
 
3324
/usr/X386/include
 
3325
/usr/x386/include
 
3326
/usr/XFree86/include/X11
 
3327
 
 
3328
/usr/include
 
3329
/usr/local/include
 
3330
/usr/unsupported/include
 
3331
/usr/athena/include
 
3332
/usr/local/x11r5/include
 
3333
/usr/lpp/Xamples/include
 
3334
 
 
3335
/usr/openwin/include
 
3336
/usr/openwin/share/include'
 
3337
 
 
3338
if test "$ac_x_includes" = no; then
 
3339
  # Guess where to find include files, by looking for Intrinsic.h.
 
3340
  # First, try using that file with no special directory specified.
 
3341
  cat >conftest.$ac_ext <<_ACEOF
 
3342
/* confdefs.h.  */
 
3343
_ACEOF
 
3344
cat confdefs.h >>conftest.$ac_ext
 
3345
cat >>conftest.$ac_ext <<_ACEOF
 
3346
/* end confdefs.h.  */
 
3347
#include <X11/Intrinsic.h>
 
3348
_ACEOF
 
3349
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3350
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3351
  ac_status=$?
 
3352
  grep -v '^ *+' conftest.er1 >conftest.err
 
3353
  rm -f conftest.er1
 
3354
  cat conftest.err >&5
 
3355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3356
  (exit $ac_status); } >/dev/null; then
 
3357
  if test -s conftest.err; then
 
3358
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3359
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3360
  else
 
3361
    ac_cpp_err=
 
3362
  fi
 
3363
else
 
3364
  ac_cpp_err=yes
 
3365
fi
 
3366
if test -z "$ac_cpp_err"; then
 
3367
  # We can compile using X headers with no special include directory.
 
3368
ac_x_includes=
 
3369
else
 
3370
  echo "$as_me: failed program was:" >&5
 
3371
sed 's/^/| /' conftest.$ac_ext >&5
 
3372
 
 
3373
  for ac_dir in $ac_x_header_dirs; do
 
3374
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
3375
    ac_x_includes=$ac_dir
 
3376
    break
 
3377
  fi
 
3378
done
 
3379
fi
 
3380
rm -f conftest.err conftest.$ac_ext
 
3381
fi # $ac_x_includes = no
 
3382
 
 
3383
if test "$ac_x_libraries" = no; then
 
3384
  # Check for the libraries.
 
3385
  # See if we find them without any special options.
 
3386
  # Don't add to $LIBS permanently.
 
3387
  ac_save_LIBS=$LIBS
 
3388
  LIBS="-lXt $LIBS"
 
3389
  cat >conftest.$ac_ext <<_ACEOF
 
3390
/* confdefs.h.  */
 
3391
_ACEOF
 
3392
cat confdefs.h >>conftest.$ac_ext
 
3393
cat >>conftest.$ac_ext <<_ACEOF
 
3394
/* end confdefs.h.  */
 
3395
#include <X11/Intrinsic.h>
 
3396
int
 
3397
main ()
 
3398
{
 
3399
XtMalloc (0)
 
3400
  ;
 
3401
  return 0;
 
3402
}
 
3403
_ACEOF
 
3404
rm -f conftest.$ac_objext conftest$ac_exeext
 
3405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3406
  (eval $ac_link) 2>conftest.er1
 
3407
  ac_status=$?
 
3408
  grep -v '^ *+' conftest.er1 >conftest.err
 
3409
  rm -f conftest.er1
 
3410
  cat conftest.err >&5
 
3411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3412
  (exit $ac_status); } &&
 
3413
         { ac_try='test -z "$ac_c_werror_flag"
 
3414
                         || test ! -s conftest.err'
 
3415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3416
  (eval $ac_try) 2>&5
 
3417
  ac_status=$?
 
3418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3419
  (exit $ac_status); }; } &&
 
3420
         { ac_try='test -s conftest$ac_exeext'
 
3421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3422
  (eval $ac_try) 2>&5
 
3423
  ac_status=$?
 
3424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3425
  (exit $ac_status); }; }; then
 
3426
  LIBS=$ac_save_LIBS
 
3427
# We can link X programs with no special library path.
 
3428
ac_x_libraries=
 
3429
else
 
3430
  echo "$as_me: failed program was:" >&5
 
3431
sed 's/^/| /' conftest.$ac_ext >&5
 
3432
 
 
3433
LIBS=$ac_save_LIBS
 
3434
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
3435
do
 
3436
  # Don't even attempt the hair of trying to link an X program!
 
3437
  for ac_extension in a so sl; do
 
3438
    if test -r $ac_dir/libXt.$ac_extension; then
 
3439
      ac_x_libraries=$ac_dir
 
3440
      break 2
 
3441
    fi
 
3442
  done
 
3443
done
 
3444
fi
 
3445
rm -f conftest.err conftest.$ac_objext \
 
3446
      conftest$ac_exeext conftest.$ac_ext
 
3447
fi # $ac_x_libraries = no
 
3448
 
 
3449
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
 
3450
  # Didn't find X anywhere.  Cache the known absence of X.
 
3451
  ac_cv_have_x="have_x=no"
 
3452
else
 
3453
  # Record where we found X for the cache.
 
3454
  ac_cv_have_x="have_x=yes \
 
3455
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 
3456
fi
 
3457
fi
 
3458
 
 
3459
  fi
 
3460
  eval "$ac_cv_have_x"
 
3461
fi # $with_x != no
 
3462
 
 
3463
if test "$have_x" != yes; then
 
3464
  echo "$as_me:$LINENO: result: $have_x" >&5
 
3465
echo "${ECHO_T}$have_x" >&6
 
3466
  no_x=yes
 
3467
else
 
3468
  # If each of the values was on the command line, it overrides each guess.
 
3469
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
3470
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
3471
  # Update the cache value to reflect the command line values.
 
3472
  ac_cv_have_x="have_x=yes \
 
3473
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
 
3474
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
3475
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
 
3476
fi
 
3477
 
 
3478
if test "$no_x" = yes; then
 
3479
  # Not all programs may use this symbol, but it does not hurt to define it.
 
3480
 
 
3481
cat >>confdefs.h <<\_ACEOF
 
3482
#define X_DISPLAY_MISSING 1
 
3483
_ACEOF
 
3484
 
 
3485
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 
3486
else
 
3487
  if test -n "$x_includes"; then
 
3488
    X_CFLAGS="$X_CFLAGS -I$x_includes"
 
3489
  fi
 
3490
 
 
3491
  # It would also be nice to do this for all -L options, not just this one.
 
3492
  if test -n "$x_libraries"; then
 
3493
    X_LIBS="$X_LIBS -L$x_libraries"
 
3494
    # For Solaris; some versions of Sun CC require a space after -R and
 
3495
    # others require no space.  Words are not sufficient . . . .
 
3496
    case `(uname -sr) 2>/dev/null` in
 
3497
    "SunOS 5"*)
 
3498
      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
3499
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
 
3500
      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
3501
      cat >conftest.$ac_ext <<_ACEOF
 
3502
/* confdefs.h.  */
 
3503
_ACEOF
 
3504
cat confdefs.h >>conftest.$ac_ext
 
3505
cat >>conftest.$ac_ext <<_ACEOF
 
3506
/* end confdefs.h.  */
 
3507
 
 
3508
int
 
3509
main ()
 
3510
{
 
3511
 
 
3512
  ;
 
3513
  return 0;
 
3514
}
 
3515
_ACEOF
 
3516
rm -f conftest.$ac_objext conftest$ac_exeext
 
3517
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3518
  (eval $ac_link) 2>conftest.er1
 
3519
  ac_status=$?
 
3520
  grep -v '^ *+' conftest.er1 >conftest.err
 
3521
  rm -f conftest.er1
 
3522
  cat conftest.err >&5
 
3523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3524
  (exit $ac_status); } &&
 
3525
         { ac_try='test -z "$ac_c_werror_flag"
 
3526
                         || test ! -s conftest.err'
 
3527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3528
  (eval $ac_try) 2>&5
 
3529
  ac_status=$?
 
3530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3531
  (exit $ac_status); }; } &&
 
3532
         { ac_try='test -s conftest$ac_exeext'
 
3533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3534
  (eval $ac_try) 2>&5
 
3535
  ac_status=$?
 
3536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3537
  (exit $ac_status); }; }; then
 
3538
  ac_R_nospace=yes
 
3539
else
 
3540
  echo "$as_me: failed program was:" >&5
 
3541
sed 's/^/| /' conftest.$ac_ext >&5
 
3542
 
 
3543
ac_R_nospace=no
 
3544
fi
 
3545
rm -f conftest.err conftest.$ac_objext \
 
3546
      conftest$ac_exeext conftest.$ac_ext
 
3547
      if test $ac_R_nospace = yes; then
 
3548
        echo "$as_me:$LINENO: result: no" >&5
 
3549
echo "${ECHO_T}no" >&6
 
3550
        X_LIBS="$X_LIBS -R$x_libraries"
 
3551
      else
 
3552
        LIBS="$ac_xsave_LIBS -R $x_libraries"
 
3553
        cat >conftest.$ac_ext <<_ACEOF
 
3554
/* confdefs.h.  */
 
3555
_ACEOF
 
3556
cat confdefs.h >>conftest.$ac_ext
 
3557
cat >>conftest.$ac_ext <<_ACEOF
 
3558
/* end confdefs.h.  */
 
3559
 
 
3560
int
 
3561
main ()
 
3562
{
 
3563
 
 
3564
  ;
 
3565
  return 0;
 
3566
}
 
3567
_ACEOF
 
3568
rm -f conftest.$ac_objext conftest$ac_exeext
 
3569
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3570
  (eval $ac_link) 2>conftest.er1
 
3571
  ac_status=$?
 
3572
  grep -v '^ *+' conftest.er1 >conftest.err
 
3573
  rm -f conftest.er1
 
3574
  cat conftest.err >&5
 
3575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3576
  (exit $ac_status); } &&
 
3577
         { ac_try='test -z "$ac_c_werror_flag"
 
3578
                         || test ! -s conftest.err'
 
3579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3580
  (eval $ac_try) 2>&5
 
3581
  ac_status=$?
 
3582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3583
  (exit $ac_status); }; } &&
 
3584
         { ac_try='test -s conftest$ac_exeext'
 
3585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3586
  (eval $ac_try) 2>&5
 
3587
  ac_status=$?
 
3588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3589
  (exit $ac_status); }; }; then
 
3590
  ac_R_space=yes
 
3591
else
 
3592
  echo "$as_me: failed program was:" >&5
 
3593
sed 's/^/| /' conftest.$ac_ext >&5
 
3594
 
 
3595
ac_R_space=no
 
3596
fi
 
3597
rm -f conftest.err conftest.$ac_objext \
 
3598
      conftest$ac_exeext conftest.$ac_ext
 
3599
        if test $ac_R_space = yes; then
 
3600
          echo "$as_me:$LINENO: result: yes" >&5
 
3601
echo "${ECHO_T}yes" >&6
 
3602
          X_LIBS="$X_LIBS -R $x_libraries"
 
3603
        else
 
3604
          echo "$as_me:$LINENO: result: neither works" >&5
 
3605
echo "${ECHO_T}neither works" >&6
 
3606
        fi
 
3607
      fi
 
3608
      LIBS=$ac_xsave_LIBS
 
3609
    esac
 
3610
  fi
 
3611
 
 
3612
  # Check for system-dependent libraries X programs must link with.
 
3613
  # Do this before checking for the system-independent R6 libraries
 
3614
  # (-lICE), since we may need -lsocket or whatever for X linking.
 
3615
 
 
3616
  if test "$ISC" = yes; then
 
3617
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 
3618
  else
 
3619
    # Martyn Johnson says this is needed for Ultrix, if the X
 
3620
    # libraries were built with DECnet support.  And Karl Berry says
 
3621
    # the Alpha needs dnet_stub (dnet does not exist).
 
3622
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
3623
    cat >conftest.$ac_ext <<_ACEOF
 
3624
/* confdefs.h.  */
 
3625
_ACEOF
 
3626
cat confdefs.h >>conftest.$ac_ext
 
3627
cat >>conftest.$ac_ext <<_ACEOF
 
3628
/* end confdefs.h.  */
 
3629
 
 
3630
/* Override any gcc2 internal prototype to avoid an error.  */
 
3631
#ifdef __cplusplus
 
3632
extern "C"
 
3633
#endif
 
3634
/* We use char because int might match the return type of a gcc2
 
3635
   builtin and then its argument prototype would still apply.  */
 
3636
char XOpenDisplay ();
 
3637
int
 
3638
main ()
 
3639
{
 
3640
XOpenDisplay ();
 
3641
  ;
 
3642
  return 0;
 
3643
}
 
3644
_ACEOF
 
3645
rm -f conftest.$ac_objext conftest$ac_exeext
 
3646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3647
  (eval $ac_link) 2>conftest.er1
 
3648
  ac_status=$?
 
3649
  grep -v '^ *+' conftest.er1 >conftest.err
 
3650
  rm -f conftest.er1
 
3651
  cat conftest.err >&5
 
3652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3653
  (exit $ac_status); } &&
 
3654
         { ac_try='test -z "$ac_c_werror_flag"
 
3655
                         || test ! -s conftest.err'
 
3656
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3657
  (eval $ac_try) 2>&5
 
3658
  ac_status=$?
 
3659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3660
  (exit $ac_status); }; } &&
 
3661
         { ac_try='test -s conftest$ac_exeext'
 
3662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3663
  (eval $ac_try) 2>&5
 
3664
  ac_status=$?
 
3665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3666
  (exit $ac_status); }; }; then
 
3667
  :
 
3668
else
 
3669
  echo "$as_me: failed program was:" >&5
 
3670
sed 's/^/| /' conftest.$ac_ext >&5
 
3671
 
 
3672
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
3673
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
 
3674
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
3675
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3676
else
 
3677
  ac_check_lib_save_LIBS=$LIBS
 
3678
LIBS="-ldnet  $LIBS"
 
3679
cat >conftest.$ac_ext <<_ACEOF
 
3680
/* confdefs.h.  */
 
3681
_ACEOF
 
3682
cat confdefs.h >>conftest.$ac_ext
 
3683
cat >>conftest.$ac_ext <<_ACEOF
 
3684
/* end confdefs.h.  */
 
3685
 
 
3686
/* Override any gcc2 internal prototype to avoid an error.  */
 
3687
#ifdef __cplusplus
 
3688
extern "C"
 
3689
#endif
 
3690
/* We use char because int might match the return type of a gcc2
 
3691
   builtin and then its argument prototype would still apply.  */
 
3692
char dnet_ntoa ();
 
3693
int
 
3694
main ()
 
3695
{
 
3696
dnet_ntoa ();
 
3697
  ;
 
3698
  return 0;
 
3699
}
 
3700
_ACEOF
 
3701
rm -f conftest.$ac_objext conftest$ac_exeext
 
3702
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3703
  (eval $ac_link) 2>conftest.er1
 
3704
  ac_status=$?
 
3705
  grep -v '^ *+' conftest.er1 >conftest.err
 
3706
  rm -f conftest.er1
 
3707
  cat conftest.err >&5
 
3708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3709
  (exit $ac_status); } &&
 
3710
         { ac_try='test -z "$ac_c_werror_flag"
 
3711
                         || test ! -s conftest.err'
 
3712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3713
  (eval $ac_try) 2>&5
 
3714
  ac_status=$?
 
3715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3716
  (exit $ac_status); }; } &&
 
3717
         { ac_try='test -s conftest$ac_exeext'
 
3718
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3719
  (eval $ac_try) 2>&5
 
3720
  ac_status=$?
 
3721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3722
  (exit $ac_status); }; }; then
 
3723
  ac_cv_lib_dnet_dnet_ntoa=yes
 
3724
else
 
3725
  echo "$as_me: failed program was:" >&5
 
3726
sed 's/^/| /' conftest.$ac_ext >&5
 
3727
 
 
3728
ac_cv_lib_dnet_dnet_ntoa=no
 
3729
fi
 
3730
rm -f conftest.err conftest.$ac_objext \
 
3731
      conftest$ac_exeext conftest.$ac_ext
 
3732
LIBS=$ac_check_lib_save_LIBS
 
3733
fi
 
3734
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
3735
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
 
3736
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 
3737
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
3738
fi
 
3739
 
 
3740
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
3741
      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
3742
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
 
3743
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
3744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3745
else
 
3746
  ac_check_lib_save_LIBS=$LIBS
 
3747
LIBS="-ldnet_stub  $LIBS"
 
3748
cat >conftest.$ac_ext <<_ACEOF
 
3749
/* confdefs.h.  */
 
3750
_ACEOF
 
3751
cat confdefs.h >>conftest.$ac_ext
 
3752
cat >>conftest.$ac_ext <<_ACEOF
 
3753
/* end confdefs.h.  */
 
3754
 
 
3755
/* Override any gcc2 internal prototype to avoid an error.  */
 
3756
#ifdef __cplusplus
 
3757
extern "C"
 
3758
#endif
 
3759
/* We use char because int might match the return type of a gcc2
 
3760
   builtin and then its argument prototype would still apply.  */
 
3761
char dnet_ntoa ();
 
3762
int
 
3763
main ()
 
3764
{
 
3765
dnet_ntoa ();
 
3766
  ;
 
3767
  return 0;
 
3768
}
 
3769
_ACEOF
 
3770
rm -f conftest.$ac_objext conftest$ac_exeext
 
3771
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3772
  (eval $ac_link) 2>conftest.er1
 
3773
  ac_status=$?
 
3774
  grep -v '^ *+' conftest.er1 >conftest.err
 
3775
  rm -f conftest.er1
 
3776
  cat conftest.err >&5
 
3777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3778
  (exit $ac_status); } &&
 
3779
         { ac_try='test -z "$ac_c_werror_flag"
 
3780
                         || test ! -s conftest.err'
 
3781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3782
  (eval $ac_try) 2>&5
 
3783
  ac_status=$?
 
3784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3785
  (exit $ac_status); }; } &&
 
3786
         { ac_try='test -s conftest$ac_exeext'
 
3787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3788
  (eval $ac_try) 2>&5
 
3789
  ac_status=$?
 
3790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3791
  (exit $ac_status); }; }; then
 
3792
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 
3793
else
 
3794
  echo "$as_me: failed program was:" >&5
 
3795
sed 's/^/| /' conftest.$ac_ext >&5
 
3796
 
 
3797
ac_cv_lib_dnet_stub_dnet_ntoa=no
 
3798
fi
 
3799
rm -f conftest.err conftest.$ac_objext \
 
3800
      conftest$ac_exeext conftest.$ac_ext
 
3801
LIBS=$ac_check_lib_save_LIBS
 
3802
fi
 
3803
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
3804
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
 
3805
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 
3806
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
3807
fi
 
3808
 
 
3809
    fi
 
3810
fi
 
3811
rm -f conftest.err conftest.$ac_objext \
 
3812
      conftest$ac_exeext conftest.$ac_ext
 
3813
    LIBS="$ac_xsave_LIBS"
 
3814
 
 
3815
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 
3816
    # to get the SysV transport functions.
 
3817
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
 
3818
    # needs -lnsl.
 
3819
    # The nsl library prevents programs from opening the X display
 
3820
    # on Irix 5.2, according to T.E. Dickey.
 
3821
    # The functions gethostbyname, getservbyname, and inet_addr are
 
3822
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
3823
    echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
3824
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
 
3825
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
3826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3827
else
 
3828
  cat >conftest.$ac_ext <<_ACEOF
 
3829
/* confdefs.h.  */
 
3830
_ACEOF
 
3831
cat confdefs.h >>conftest.$ac_ext
 
3832
cat >>conftest.$ac_ext <<_ACEOF
 
3833
/* end confdefs.h.  */
 
3834
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
3835
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
3836
#define gethostbyname innocuous_gethostbyname
 
3837
 
 
3838
/* System header to define __stub macros and hopefully few prototypes,
 
3839
    which can conflict with char gethostbyname (); below.
 
3840
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3841
    <limits.h> exists even on freestanding compilers.  */
 
3842
 
 
3843
#ifdef __STDC__
 
3844
# include <limits.h>
 
3845
#else
 
3846
# include <assert.h>
 
3847
#endif
 
3848
 
 
3849
#undef gethostbyname
 
3850
 
 
3851
/* Override any gcc2 internal prototype to avoid an error.  */
 
3852
#ifdef __cplusplus
 
3853
extern "C"
 
3854
{
 
3855
#endif
 
3856
/* We use char because int might match the return type of a gcc2
 
3857
   builtin and then its argument prototype would still apply.  */
 
3858
char gethostbyname ();
 
3859
/* The GNU C library defines this for functions which it implements
 
3860
    to always fail with ENOSYS.  Some functions are actually named
 
3861
    something starting with __ and the normal name is an alias.  */
 
3862
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
3863
choke me
 
3864
#else
 
3865
char (*f) () = gethostbyname;
 
3866
#endif
 
3867
#ifdef __cplusplus
 
3868
}
 
3869
#endif
 
3870
 
 
3871
int
 
3872
main ()
 
3873
{
 
3874
return f != gethostbyname;
 
3875
  ;
 
3876
  return 0;
 
3877
}
 
3878
_ACEOF
 
3879
rm -f conftest.$ac_objext conftest$ac_exeext
 
3880
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3881
  (eval $ac_link) 2>conftest.er1
 
3882
  ac_status=$?
 
3883
  grep -v '^ *+' conftest.er1 >conftest.err
 
3884
  rm -f conftest.er1
 
3885
  cat conftest.err >&5
 
3886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3887
  (exit $ac_status); } &&
 
3888
         { ac_try='test -z "$ac_c_werror_flag"
 
3889
                         || test ! -s conftest.err'
 
3890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3891
  (eval $ac_try) 2>&5
 
3892
  ac_status=$?
 
3893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3894
  (exit $ac_status); }; } &&
 
3895
         { ac_try='test -s conftest$ac_exeext'
 
3896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3897
  (eval $ac_try) 2>&5
 
3898
  ac_status=$?
 
3899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3900
  (exit $ac_status); }; }; then
 
3901
  ac_cv_func_gethostbyname=yes
 
3902
else
 
3903
  echo "$as_me: failed program was:" >&5
 
3904
sed 's/^/| /' conftest.$ac_ext >&5
 
3905
 
 
3906
ac_cv_func_gethostbyname=no
 
3907
fi
 
3908
rm -f conftest.err conftest.$ac_objext \
 
3909
      conftest$ac_exeext conftest.$ac_ext
 
3910
fi
 
3911
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
3912
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
 
3913
 
 
3914
    if test $ac_cv_func_gethostbyname = no; then
 
3915
      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
3916
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
 
3917
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
3918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3919
else
 
3920
  ac_check_lib_save_LIBS=$LIBS
 
3921
LIBS="-lnsl  $LIBS"
 
3922
cat >conftest.$ac_ext <<_ACEOF
 
3923
/* confdefs.h.  */
 
3924
_ACEOF
 
3925
cat confdefs.h >>conftest.$ac_ext
 
3926
cat >>conftest.$ac_ext <<_ACEOF
 
3927
/* end confdefs.h.  */
 
3928
 
 
3929
/* Override any gcc2 internal prototype to avoid an error.  */
 
3930
#ifdef __cplusplus
 
3931
extern "C"
 
3932
#endif
 
3933
/* We use char because int might match the return type of a gcc2
 
3934
   builtin and then its argument prototype would still apply.  */
 
3935
char gethostbyname ();
 
3936
int
 
3937
main ()
 
3938
{
 
3939
gethostbyname ();
 
3940
  ;
 
3941
  return 0;
 
3942
}
 
3943
_ACEOF
 
3944
rm -f conftest.$ac_objext conftest$ac_exeext
 
3945
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3946
  (eval $ac_link) 2>conftest.er1
 
3947
  ac_status=$?
 
3948
  grep -v '^ *+' conftest.er1 >conftest.err
 
3949
  rm -f conftest.er1
 
3950
  cat conftest.err >&5
 
3951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3952
  (exit $ac_status); } &&
 
3953
         { ac_try='test -z "$ac_c_werror_flag"
 
3954
                         || test ! -s conftest.err'
 
3955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3956
  (eval $ac_try) 2>&5
 
3957
  ac_status=$?
 
3958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3959
  (exit $ac_status); }; } &&
 
3960
         { ac_try='test -s conftest$ac_exeext'
 
3961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3962
  (eval $ac_try) 2>&5
 
3963
  ac_status=$?
 
3964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3965
  (exit $ac_status); }; }; then
 
3966
  ac_cv_lib_nsl_gethostbyname=yes
 
3967
else
 
3968
  echo "$as_me: failed program was:" >&5
 
3969
sed 's/^/| /' conftest.$ac_ext >&5
 
3970
 
 
3971
ac_cv_lib_nsl_gethostbyname=no
 
3972
fi
 
3973
rm -f conftest.err conftest.$ac_objext \
 
3974
      conftest$ac_exeext conftest.$ac_ext
 
3975
LIBS=$ac_check_lib_save_LIBS
 
3976
fi
 
3977
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
3978
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
 
3979
if test $ac_cv_lib_nsl_gethostbyname = yes; then
 
3980
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
3981
fi
 
3982
 
 
3983
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
3984
        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
3985
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
 
3986
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
3987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3988
else
 
3989
  ac_check_lib_save_LIBS=$LIBS
 
3990
LIBS="-lbsd  $LIBS"
 
3991
cat >conftest.$ac_ext <<_ACEOF
 
3992
/* confdefs.h.  */
 
3993
_ACEOF
 
3994
cat confdefs.h >>conftest.$ac_ext
 
3995
cat >>conftest.$ac_ext <<_ACEOF
 
3996
/* end confdefs.h.  */
 
3997
 
 
3998
/* Override any gcc2 internal prototype to avoid an error.  */
 
3999
#ifdef __cplusplus
 
4000
extern "C"
 
4001
#endif
 
4002
/* We use char because int might match the return type of a gcc2
 
4003
   builtin and then its argument prototype would still apply.  */
 
4004
char gethostbyname ();
 
4005
int
 
4006
main ()
 
4007
{
 
4008
gethostbyname ();
 
4009
  ;
 
4010
  return 0;
 
4011
}
 
4012
_ACEOF
 
4013
rm -f conftest.$ac_objext conftest$ac_exeext
 
4014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4015
  (eval $ac_link) 2>conftest.er1
 
4016
  ac_status=$?
 
4017
  grep -v '^ *+' conftest.er1 >conftest.err
 
4018
  rm -f conftest.er1
 
4019
  cat conftest.err >&5
 
4020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4021
  (exit $ac_status); } &&
 
4022
         { ac_try='test -z "$ac_c_werror_flag"
 
4023
                         || test ! -s conftest.err'
 
4024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4025
  (eval $ac_try) 2>&5
 
4026
  ac_status=$?
 
4027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4028
  (exit $ac_status); }; } &&
 
4029
         { ac_try='test -s conftest$ac_exeext'
 
4030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4031
  (eval $ac_try) 2>&5
 
4032
  ac_status=$?
 
4033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4034
  (exit $ac_status); }; }; then
 
4035
  ac_cv_lib_bsd_gethostbyname=yes
 
4036
else
 
4037
  echo "$as_me: failed program was:" >&5
 
4038
sed 's/^/| /' conftest.$ac_ext >&5
 
4039
 
 
4040
ac_cv_lib_bsd_gethostbyname=no
 
4041
fi
 
4042
rm -f conftest.err conftest.$ac_objext \
 
4043
      conftest$ac_exeext conftest.$ac_ext
 
4044
LIBS=$ac_check_lib_save_LIBS
 
4045
fi
 
4046
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
4047
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
 
4048
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
4049
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
4050
fi
 
4051
 
 
4052
      fi
 
4053
    fi
 
4054
 
 
4055
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 
4056
    # socket/setsockopt and other routines are undefined under SCO ODT
 
4057
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 
4058
    # on later versions), says Simon Leinen: it contains gethostby*
 
4059
    # variants that don't use the name server (or something).  -lsocket
 
4060
    # must be given before -lnsl if both are needed.  We assume that
 
4061
    # if connect needs -lnsl, so does gethostbyname.
 
4062
    echo "$as_me:$LINENO: checking for connect" >&5
 
4063
echo $ECHO_N "checking for connect... $ECHO_C" >&6
 
4064
if test "${ac_cv_func_connect+set}" = set; then
 
4065
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4066
else
 
4067
  cat >conftest.$ac_ext <<_ACEOF
 
4068
/* confdefs.h.  */
 
4069
_ACEOF
 
4070
cat confdefs.h >>conftest.$ac_ext
 
4071
cat >>conftest.$ac_ext <<_ACEOF
 
4072
/* end confdefs.h.  */
 
4073
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
4074
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4075
#define connect innocuous_connect
 
4076
 
 
4077
/* System header to define __stub macros and hopefully few prototypes,
 
4078
    which can conflict with char connect (); below.
 
4079
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4080
    <limits.h> exists even on freestanding compilers.  */
 
4081
 
 
4082
#ifdef __STDC__
 
4083
# include <limits.h>
 
4084
#else
 
4085
# include <assert.h>
 
4086
#endif
 
4087
 
 
4088
#undef connect
 
4089
 
 
4090
/* Override any gcc2 internal prototype to avoid an error.  */
 
4091
#ifdef __cplusplus
 
4092
extern "C"
 
4093
{
 
4094
#endif
 
4095
/* We use char because int might match the return type of a gcc2
 
4096
   builtin and then its argument prototype would still apply.  */
 
4097
char connect ();
 
4098
/* The GNU C library defines this for functions which it implements
 
4099
    to always fail with ENOSYS.  Some functions are actually named
 
4100
    something starting with __ and the normal name is an alias.  */
 
4101
#if defined (__stub_connect) || defined (__stub___connect)
 
4102
choke me
 
4103
#else
 
4104
char (*f) () = connect;
 
4105
#endif
 
4106
#ifdef __cplusplus
 
4107
}
 
4108
#endif
 
4109
 
 
4110
int
 
4111
main ()
 
4112
{
 
4113
return f != connect;
 
4114
  ;
 
4115
  return 0;
 
4116
}
 
4117
_ACEOF
 
4118
rm -f conftest.$ac_objext conftest$ac_exeext
 
4119
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4120
  (eval $ac_link) 2>conftest.er1
 
4121
  ac_status=$?
 
4122
  grep -v '^ *+' conftest.er1 >conftest.err
 
4123
  rm -f conftest.er1
 
4124
  cat conftest.err >&5
 
4125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4126
  (exit $ac_status); } &&
 
4127
         { ac_try='test -z "$ac_c_werror_flag"
 
4128
                         || test ! -s conftest.err'
 
4129
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4130
  (eval $ac_try) 2>&5
 
4131
  ac_status=$?
 
4132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4133
  (exit $ac_status); }; } &&
 
4134
         { ac_try='test -s conftest$ac_exeext'
 
4135
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4136
  (eval $ac_try) 2>&5
 
4137
  ac_status=$?
 
4138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4139
  (exit $ac_status); }; }; then
 
4140
  ac_cv_func_connect=yes
 
4141
else
 
4142
  echo "$as_me: failed program was:" >&5
 
4143
sed 's/^/| /' conftest.$ac_ext >&5
 
4144
 
 
4145
ac_cv_func_connect=no
 
4146
fi
 
4147
rm -f conftest.err conftest.$ac_objext \
 
4148
      conftest$ac_exeext conftest.$ac_ext
 
4149
fi
 
4150
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
4151
echo "${ECHO_T}$ac_cv_func_connect" >&6
 
4152
 
 
4153
    if test $ac_cv_func_connect = no; then
 
4154
      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
4155
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
 
4156
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
4157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4158
else
 
4159
  ac_check_lib_save_LIBS=$LIBS
 
4160
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
4161
cat >conftest.$ac_ext <<_ACEOF
 
4162
/* confdefs.h.  */
 
4163
_ACEOF
 
4164
cat confdefs.h >>conftest.$ac_ext
 
4165
cat >>conftest.$ac_ext <<_ACEOF
 
4166
/* end confdefs.h.  */
 
4167
 
 
4168
/* Override any gcc2 internal prototype to avoid an error.  */
 
4169
#ifdef __cplusplus
 
4170
extern "C"
 
4171
#endif
 
4172
/* We use char because int might match the return type of a gcc2
 
4173
   builtin and then its argument prototype would still apply.  */
 
4174
char connect ();
 
4175
int
 
4176
main ()
 
4177
{
 
4178
connect ();
 
4179
  ;
 
4180
  return 0;
 
4181
}
 
4182
_ACEOF
 
4183
rm -f conftest.$ac_objext conftest$ac_exeext
 
4184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4185
  (eval $ac_link) 2>conftest.er1
 
4186
  ac_status=$?
 
4187
  grep -v '^ *+' conftest.er1 >conftest.err
 
4188
  rm -f conftest.er1
 
4189
  cat conftest.err >&5
 
4190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4191
  (exit $ac_status); } &&
 
4192
         { ac_try='test -z "$ac_c_werror_flag"
 
4193
                         || test ! -s conftest.err'
 
4194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4195
  (eval $ac_try) 2>&5
 
4196
  ac_status=$?
 
4197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4198
  (exit $ac_status); }; } &&
 
4199
         { ac_try='test -s conftest$ac_exeext'
 
4200
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4201
  (eval $ac_try) 2>&5
 
4202
  ac_status=$?
 
4203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4204
  (exit $ac_status); }; }; then
 
4205
  ac_cv_lib_socket_connect=yes
 
4206
else
 
4207
  echo "$as_me: failed program was:" >&5
 
4208
sed 's/^/| /' conftest.$ac_ext >&5
 
4209
 
 
4210
ac_cv_lib_socket_connect=no
 
4211
fi
 
4212
rm -f conftest.err conftest.$ac_objext \
 
4213
      conftest$ac_exeext conftest.$ac_ext
 
4214
LIBS=$ac_check_lib_save_LIBS
 
4215
fi
 
4216
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
4217
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
 
4218
if test $ac_cv_lib_socket_connect = yes; then
 
4219
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
4220
fi
 
4221
 
 
4222
    fi
 
4223
 
 
4224
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
4225
    echo "$as_me:$LINENO: checking for remove" >&5
 
4226
echo $ECHO_N "checking for remove... $ECHO_C" >&6
 
4227
if test "${ac_cv_func_remove+set}" = set; then
 
4228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4229
else
 
4230
  cat >conftest.$ac_ext <<_ACEOF
 
4231
/* confdefs.h.  */
 
4232
_ACEOF
 
4233
cat confdefs.h >>conftest.$ac_ext
 
4234
cat >>conftest.$ac_ext <<_ACEOF
 
4235
/* end confdefs.h.  */
 
4236
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
4237
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4238
#define remove innocuous_remove
 
4239
 
 
4240
/* System header to define __stub macros and hopefully few prototypes,
 
4241
    which can conflict with char remove (); below.
 
4242
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4243
    <limits.h> exists even on freestanding compilers.  */
 
4244
 
 
4245
#ifdef __STDC__
 
4246
# include <limits.h>
 
4247
#else
 
4248
# include <assert.h>
 
4249
#endif
 
4250
 
 
4251
#undef remove
 
4252
 
 
4253
/* Override any gcc2 internal prototype to avoid an error.  */
 
4254
#ifdef __cplusplus
 
4255
extern "C"
 
4256
{
 
4257
#endif
 
4258
/* We use char because int might match the return type of a gcc2
 
4259
   builtin and then its argument prototype would still apply.  */
 
4260
char remove ();
 
4261
/* The GNU C library defines this for functions which it implements
 
4262
    to always fail with ENOSYS.  Some functions are actually named
 
4263
    something starting with __ and the normal name is an alias.  */
 
4264
#if defined (__stub_remove) || defined (__stub___remove)
 
4265
choke me
 
4266
#else
 
4267
char (*f) () = remove;
 
4268
#endif
 
4269
#ifdef __cplusplus
 
4270
}
 
4271
#endif
 
4272
 
 
4273
int
 
4274
main ()
 
4275
{
 
4276
return f != remove;
 
4277
  ;
 
4278
  return 0;
 
4279
}
 
4280
_ACEOF
 
4281
rm -f conftest.$ac_objext conftest$ac_exeext
 
4282
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4283
  (eval $ac_link) 2>conftest.er1
 
4284
  ac_status=$?
 
4285
  grep -v '^ *+' conftest.er1 >conftest.err
 
4286
  rm -f conftest.er1
 
4287
  cat conftest.err >&5
 
4288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4289
  (exit $ac_status); } &&
 
4290
         { ac_try='test -z "$ac_c_werror_flag"
 
4291
                         || test ! -s conftest.err'
 
4292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4293
  (eval $ac_try) 2>&5
 
4294
  ac_status=$?
 
4295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4296
  (exit $ac_status); }; } &&
 
4297
         { ac_try='test -s conftest$ac_exeext'
 
4298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4299
  (eval $ac_try) 2>&5
 
4300
  ac_status=$?
 
4301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4302
  (exit $ac_status); }; }; then
 
4303
  ac_cv_func_remove=yes
 
4304
else
 
4305
  echo "$as_me: failed program was:" >&5
 
4306
sed 's/^/| /' conftest.$ac_ext >&5
 
4307
 
 
4308
ac_cv_func_remove=no
 
4309
fi
 
4310
rm -f conftest.err conftest.$ac_objext \
 
4311
      conftest$ac_exeext conftest.$ac_ext
 
4312
fi
 
4313
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
4314
echo "${ECHO_T}$ac_cv_func_remove" >&6
 
4315
 
 
4316
    if test $ac_cv_func_remove = no; then
 
4317
      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
4318
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
 
4319
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
4320
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4321
else
 
4322
  ac_check_lib_save_LIBS=$LIBS
 
4323
LIBS="-lposix  $LIBS"
 
4324
cat >conftest.$ac_ext <<_ACEOF
 
4325
/* confdefs.h.  */
 
4326
_ACEOF
 
4327
cat confdefs.h >>conftest.$ac_ext
 
4328
cat >>conftest.$ac_ext <<_ACEOF
 
4329
/* end confdefs.h.  */
 
4330
 
 
4331
/* Override any gcc2 internal prototype to avoid an error.  */
 
4332
#ifdef __cplusplus
 
4333
extern "C"
 
4334
#endif
 
4335
/* We use char because int might match the return type of a gcc2
 
4336
   builtin and then its argument prototype would still apply.  */
 
4337
char remove ();
 
4338
int
 
4339
main ()
 
4340
{
 
4341
remove ();
 
4342
  ;
 
4343
  return 0;
 
4344
}
 
4345
_ACEOF
 
4346
rm -f conftest.$ac_objext conftest$ac_exeext
 
4347
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4348
  (eval $ac_link) 2>conftest.er1
 
4349
  ac_status=$?
 
4350
  grep -v '^ *+' conftest.er1 >conftest.err
 
4351
  rm -f conftest.er1
 
4352
  cat conftest.err >&5
 
4353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4354
  (exit $ac_status); } &&
 
4355
         { ac_try='test -z "$ac_c_werror_flag"
 
4356
                         || test ! -s conftest.err'
 
4357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4358
  (eval $ac_try) 2>&5
 
4359
  ac_status=$?
 
4360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4361
  (exit $ac_status); }; } &&
 
4362
         { ac_try='test -s conftest$ac_exeext'
 
4363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4364
  (eval $ac_try) 2>&5
 
4365
  ac_status=$?
 
4366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4367
  (exit $ac_status); }; }; then
 
4368
  ac_cv_lib_posix_remove=yes
 
4369
else
 
4370
  echo "$as_me: failed program was:" >&5
 
4371
sed 's/^/| /' conftest.$ac_ext >&5
 
4372
 
 
4373
ac_cv_lib_posix_remove=no
 
4374
fi
 
4375
rm -f conftest.err conftest.$ac_objext \
 
4376
      conftest$ac_exeext conftest.$ac_ext
 
4377
LIBS=$ac_check_lib_save_LIBS
 
4378
fi
 
4379
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
4380
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
 
4381
if test $ac_cv_lib_posix_remove = yes; then
 
4382
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
4383
fi
 
4384
 
 
4385
    fi
 
4386
 
 
4387
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
4388
    echo "$as_me:$LINENO: checking for shmat" >&5
 
4389
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
 
4390
if test "${ac_cv_func_shmat+set}" = set; then
 
4391
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4392
else
 
4393
  cat >conftest.$ac_ext <<_ACEOF
 
4394
/* confdefs.h.  */
 
4395
_ACEOF
 
4396
cat confdefs.h >>conftest.$ac_ext
 
4397
cat >>conftest.$ac_ext <<_ACEOF
 
4398
/* end confdefs.h.  */
 
4399
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
4400
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4401
#define shmat innocuous_shmat
 
4402
 
 
4403
/* System header to define __stub macros and hopefully few prototypes,
 
4404
    which can conflict with char shmat (); below.
 
4405
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4406
    <limits.h> exists even on freestanding compilers.  */
 
4407
 
 
4408
#ifdef __STDC__
 
4409
# include <limits.h>
 
4410
#else
 
4411
# include <assert.h>
 
4412
#endif
 
4413
 
 
4414
#undef shmat
 
4415
 
 
4416
/* Override any gcc2 internal prototype to avoid an error.  */
 
4417
#ifdef __cplusplus
 
4418
extern "C"
 
4419
{
 
4420
#endif
 
4421
/* We use char because int might match the return type of a gcc2
 
4422
   builtin and then its argument prototype would still apply.  */
 
4423
char shmat ();
 
4424
/* The GNU C library defines this for functions which it implements
 
4425
    to always fail with ENOSYS.  Some functions are actually named
 
4426
    something starting with __ and the normal name is an alias.  */
 
4427
#if defined (__stub_shmat) || defined (__stub___shmat)
 
4428
choke me
 
4429
#else
 
4430
char (*f) () = shmat;
 
4431
#endif
 
4432
#ifdef __cplusplus
 
4433
}
 
4434
#endif
 
4435
 
 
4436
int
 
4437
main ()
 
4438
{
 
4439
return f != shmat;
 
4440
  ;
 
4441
  return 0;
 
4442
}
 
4443
_ACEOF
 
4444
rm -f conftest.$ac_objext conftest$ac_exeext
 
4445
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4446
  (eval $ac_link) 2>conftest.er1
 
4447
  ac_status=$?
 
4448
  grep -v '^ *+' conftest.er1 >conftest.err
 
4449
  rm -f conftest.er1
 
4450
  cat conftest.err >&5
 
4451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4452
  (exit $ac_status); } &&
 
4453
         { ac_try='test -z "$ac_c_werror_flag"
 
4454
                         || test ! -s conftest.err'
 
4455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4456
  (eval $ac_try) 2>&5
 
4457
  ac_status=$?
 
4458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4459
  (exit $ac_status); }; } &&
 
4460
         { ac_try='test -s conftest$ac_exeext'
 
4461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4462
  (eval $ac_try) 2>&5
 
4463
  ac_status=$?
 
4464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4465
  (exit $ac_status); }; }; then
 
4466
  ac_cv_func_shmat=yes
 
4467
else
 
4468
  echo "$as_me: failed program was:" >&5
 
4469
sed 's/^/| /' conftest.$ac_ext >&5
 
4470
 
 
4471
ac_cv_func_shmat=no
 
4472
fi
 
4473
rm -f conftest.err conftest.$ac_objext \
 
4474
      conftest$ac_exeext conftest.$ac_ext
 
4475
fi
 
4476
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
4477
echo "${ECHO_T}$ac_cv_func_shmat" >&6
 
4478
 
 
4479
    if test $ac_cv_func_shmat = no; then
 
4480
      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
4481
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
 
4482
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
4483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4484
else
 
4485
  ac_check_lib_save_LIBS=$LIBS
 
4486
LIBS="-lipc  $LIBS"
 
4487
cat >conftest.$ac_ext <<_ACEOF
 
4488
/* confdefs.h.  */
 
4489
_ACEOF
 
4490
cat confdefs.h >>conftest.$ac_ext
 
4491
cat >>conftest.$ac_ext <<_ACEOF
 
4492
/* end confdefs.h.  */
 
4493
 
 
4494
/* Override any gcc2 internal prototype to avoid an error.  */
 
4495
#ifdef __cplusplus
 
4496
extern "C"
 
4497
#endif
 
4498
/* We use char because int might match the return type of a gcc2
 
4499
   builtin and then its argument prototype would still apply.  */
 
4500
char shmat ();
 
4501
int
 
4502
main ()
 
4503
{
 
4504
shmat ();
 
4505
  ;
 
4506
  return 0;
 
4507
}
 
4508
_ACEOF
 
4509
rm -f conftest.$ac_objext conftest$ac_exeext
 
4510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4511
  (eval $ac_link) 2>conftest.er1
 
4512
  ac_status=$?
 
4513
  grep -v '^ *+' conftest.er1 >conftest.err
 
4514
  rm -f conftest.er1
 
4515
  cat conftest.err >&5
 
4516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4517
  (exit $ac_status); } &&
 
4518
         { ac_try='test -z "$ac_c_werror_flag"
 
4519
                         || test ! -s conftest.err'
 
4520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4521
  (eval $ac_try) 2>&5
 
4522
  ac_status=$?
 
4523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4524
  (exit $ac_status); }; } &&
 
4525
         { ac_try='test -s conftest$ac_exeext'
 
4526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4527
  (eval $ac_try) 2>&5
 
4528
  ac_status=$?
 
4529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4530
  (exit $ac_status); }; }; then
 
4531
  ac_cv_lib_ipc_shmat=yes
 
4532
else
 
4533
  echo "$as_me: failed program was:" >&5
 
4534
sed 's/^/| /' conftest.$ac_ext >&5
 
4535
 
 
4536
ac_cv_lib_ipc_shmat=no
 
4537
fi
 
4538
rm -f conftest.err conftest.$ac_objext \
 
4539
      conftest$ac_exeext conftest.$ac_ext
 
4540
LIBS=$ac_check_lib_save_LIBS
 
4541
fi
 
4542
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
4543
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
 
4544
if test $ac_cv_lib_ipc_shmat = yes; then
 
4545
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
4546
fi
 
4547
 
 
4548
    fi
 
4549
  fi
 
4550
 
 
4551
  # Check for libraries that X11R6 Xt/Xaw programs need.
 
4552
  ac_save_LDFLAGS=$LDFLAGS
 
4553
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 
4554
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
4555
  # check for ICE first), but we must link in the order -lSM -lICE or
 
4556
  # we get undefined symbols.  So assume we have SM if we have ICE.
 
4557
  # These have to be linked with before -lX11, unlike the other
 
4558
  # libraries we check for below, so use a different variable.
 
4559
  # John Interrante, Karl Berry
 
4560
  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
4561
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
 
4562
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
4563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4564
else
 
4565
  ac_check_lib_save_LIBS=$LIBS
 
4566
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
4567
cat >conftest.$ac_ext <<_ACEOF
 
4568
/* confdefs.h.  */
 
4569
_ACEOF
 
4570
cat confdefs.h >>conftest.$ac_ext
 
4571
cat >>conftest.$ac_ext <<_ACEOF
 
4572
/* end confdefs.h.  */
 
4573
 
 
4574
/* Override any gcc2 internal prototype to avoid an error.  */
 
4575
#ifdef __cplusplus
 
4576
extern "C"
 
4577
#endif
 
4578
/* We use char because int might match the return type of a gcc2
 
4579
   builtin and then its argument prototype would still apply.  */
 
4580
char IceConnectionNumber ();
 
4581
int
 
4582
main ()
 
4583
{
 
4584
IceConnectionNumber ();
 
4585
  ;
 
4586
  return 0;
 
4587
}
 
4588
_ACEOF
 
4589
rm -f conftest.$ac_objext conftest$ac_exeext
 
4590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4591
  (eval $ac_link) 2>conftest.er1
 
4592
  ac_status=$?
 
4593
  grep -v '^ *+' conftest.er1 >conftest.err
 
4594
  rm -f conftest.er1
 
4595
  cat conftest.err >&5
 
4596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4597
  (exit $ac_status); } &&
 
4598
         { ac_try='test -z "$ac_c_werror_flag"
 
4599
                         || test ! -s conftest.err'
 
4600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4601
  (eval $ac_try) 2>&5
 
4602
  ac_status=$?
 
4603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4604
  (exit $ac_status); }; } &&
 
4605
         { ac_try='test -s conftest$ac_exeext'
 
4606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4607
  (eval $ac_try) 2>&5
 
4608
  ac_status=$?
 
4609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4610
  (exit $ac_status); }; }; then
 
4611
  ac_cv_lib_ICE_IceConnectionNumber=yes
 
4612
else
 
4613
  echo "$as_me: failed program was:" >&5
 
4614
sed 's/^/| /' conftest.$ac_ext >&5
 
4615
 
 
4616
ac_cv_lib_ICE_IceConnectionNumber=no
 
4617
fi
 
4618
rm -f conftest.err conftest.$ac_objext \
 
4619
      conftest$ac_exeext conftest.$ac_ext
 
4620
LIBS=$ac_check_lib_save_LIBS
 
4621
fi
 
4622
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
4623
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
 
4624
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 
4625
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 
4626
fi
 
4627
 
 
4628
  LDFLAGS=$ac_save_LDFLAGS
 
4629
 
 
4630
fi
 
4631
 
 
4632
 
 
4633
 
 
4634
athena_includes=
 
4635
athena_libraries=
 
4636
 
 
4637
# Check whether --with-athena or --without-athena was given.
 
4638
if test "${with_athena+set}" = set; then
 
4639
  withval="$with_athena"
 
4640
 
 
4641
fi;
 
4642
if test "$with_athena" = "no"
 
4643
then
 
4644
athena_includes=no
 
4645
athena_libraries=no
 
4646
fi
 
4647
 
 
4648
# Check whether --with-athena-includes or --without-athena-includes was given.
 
4649
if test "${with_athena_includes+set}" = set; then
 
4650
  withval="$with_athena_includes"
 
4651
  athena_includes="$withval"
 
4652
fi;
 
4653
 
 
4654
# Check whether --with-athena-libraries or --without-athena-libraries was given.
 
4655
if test "${with_athena_libraries+set}" = set; then
 
4656
  withval="$with_athena_libraries"
 
4657
  athena_libraries="$withval"
 
4658
fi;
 
4659
echo "$as_me:$LINENO: checking for Athena" >&5
 
4660
echo $ECHO_N "checking for Athena... $ECHO_C" >&6
 
4661
#
 
4662
#
 
4663
# Search the include files.
 
4664
#
 
4665
if test "$athena_includes" = ""; then
 
4666
if test "${ice_cv_athena_includes+set}" = set; then
 
4667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4668
else
 
4669
 
 
4670
ice_athena_save_LIBS="$LIBS"
 
4671
ice_athena_save_CFLAGS="$CFLAGS"
 
4672
ice_athena_save_CPPFLAGS="$CPPFLAGS"
 
4673
ice_athena_save_LDFLAGS="$LDFLAGS"
 
4674
#
 
4675
LIBS="$X_PRE_LIBS -lXaw -lXmu -lXext -lXt -lX11 $X_EXTRA_LIBS $LIBS"
 
4676
CFLAGS="$X_CFLAGS $CFLAGS"
 
4677
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
 
4678
LDFLAGS="$X_LIBS $LDFLAGS"
 
4679
#
 
4680
cat >conftest.$ac_ext <<_ACEOF
 
4681
/* confdefs.h.  */
 
4682
_ACEOF
 
4683
cat confdefs.h >>conftest.$ac_ext
 
4684
cat >>conftest.$ac_ext <<_ACEOF
 
4685
/* end confdefs.h.  */
 
4686
 
 
4687
#include <X11/Intrinsic.h>
 
4688
#include <X11/Xaw/Text.h>
 
4689
 
 
4690
int
 
4691
main ()
 
4692
{
 
4693
int a;
 
4694
  ;
 
4695
  return 0;
 
4696
}
 
4697
_ACEOF
 
4698
rm -f conftest.$ac_objext
 
4699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4700
  (eval $ac_compile) 2>conftest.er1
 
4701
  ac_status=$?
 
4702
  grep -v '^ *+' conftest.er1 >conftest.err
 
4703
  rm -f conftest.er1
 
4704
  cat conftest.err >&5
 
4705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4706
  (exit $ac_status); } &&
 
4707
         { ac_try='test -z "$ac_c_werror_flag"
 
4708
                         || test ! -s conftest.err'
 
4709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4710
  (eval $ac_try) 2>&5
 
4711
  ac_status=$?
 
4712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4713
  (exit $ac_status); }; } &&
 
4714
         { ac_try='test -s conftest.$ac_objext'
 
4715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4716
  (eval $ac_try) 2>&5
 
4717
  ac_status=$?
 
4718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4719
  (exit $ac_status); }; }; then
 
4720
 
 
4721
# X11/Xaw/Text.h is in the standard search path.
 
4722
ice_cv_athena_includes=
 
4723
 
 
4724
else
 
4725
  echo "$as_me: failed program was:" >&5
 
4726
sed 's/^/| /' conftest.$ac_ext >&5
 
4727
 
 
4728
 
 
4729
# X11/Xaw/Text.h is not in the standard search path.
 
4730
# Locate it and put its directory in `athena_includes'
 
4731
#
 
4732
# /usr/include/Motif* are used on HP-UX (Motif).
 
4733
# /usr/include/X11* are used on HP-UX (X and Athena).
 
4734
# /usr/dt is used on Solaris (Motif).
 
4735
# /usr/openwin is used on Solaris (X and Athena).
 
4736
# Other directories are just guesses.
 
4737
for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \
 
4738
           /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \
 
4739
           /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \
 
4740
           /usr/dt/include /usr/openwin/include \
 
4741
           /usr/dt/*/include /opt/*/include /usr/include/Motif* \
 
4742
           "${prefix}"/*/include /usr/*/include /usr/local/*/include \
 
4743
           "${prefix}"/include/* /usr/include/* /usr/local/include/*; do
 
4744
if test -f "$dir/X11/Xaw/Text.h"; then
 
4745
ice_cv_athena_includes="$dir"
 
4746
break
 
4747
fi
 
4748
done
 
4749
 
 
4750
fi
 
4751
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4752
#
 
4753
LIBS="$ice_athena_save_LIBS"
 
4754
CFLAGS="$ice_athena_save_CFLAGS"
 
4755
CPPFLAGS="$ice_athena_save_CPPFLAGS"
 
4756
LDFLAGS="$ice_athena_save_LDFLAGS"
 
4757
 
 
4758
fi
 
4759
 
 
4760
athena_includes="$ice_cv_athena_includes"
 
4761
fi
 
4762
#
 
4763
#
 
4764
# Now for the libraries.
 
4765
#
 
4766
if test "$athena_libraries" = ""; then
 
4767
if test "${ice_cv_athena_libraries+set}" = set; then
 
4768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4769
else
 
4770
 
 
4771
ice_athena_save_LIBS="$LIBS"
 
4772
ice_athena_save_CFLAGS="$CFLAGS"
 
4773
ice_athena_save_CPPFLAGS="$CPPFLAGS"
 
4774
ice_athena_save_LDFLAGS="$LDFLAGS"
 
4775
#
 
4776
LIBS="$X_PRE_LIBS -lXaw -lXmu -lXext -lXt -lX11 $X_EXTRA_LIBS $LIBS"
 
4777
CFLAGS="$X_CFLAGS $CFLAGS"
 
4778
CPPFLAGS="$X_CFLAGS $CPPFLAGS"
 
4779
LDFLAGS="$X_LIBS $LDFLAGS"
 
4780
#
 
4781
cat >conftest.$ac_ext <<_ACEOF
 
4782
/* confdefs.h.  */
 
4783
_ACEOF
 
4784
cat confdefs.h >>conftest.$ac_ext
 
4785
cat >>conftest.$ac_ext <<_ACEOF
 
4786
/* end confdefs.h.  */
 
4787
 
 
4788
#include <X11/Intrinsic.h>
 
4789
#include <X11/Xaw/Text.h>
 
4790
 
 
4791
int
 
4792
main ()
 
4793
{
 
4794
XtToolkitInitialize();
 
4795
  ;
 
4796
  return 0;
 
4797
}
 
4798
_ACEOF
 
4799
rm -f conftest.$ac_objext conftest$ac_exeext
 
4800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4801
  (eval $ac_link) 2>conftest.er1
 
4802
  ac_status=$?
 
4803
  grep -v '^ *+' conftest.er1 >conftest.err
 
4804
  rm -f conftest.er1
 
4805
  cat conftest.err >&5
 
4806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4807
  (exit $ac_status); } &&
 
4808
         { ac_try='test -z "$ac_c_werror_flag"
 
4809
                         || test ! -s conftest.err'
 
4810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4811
  (eval $ac_try) 2>&5
 
4812
  ac_status=$?
 
4813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4814
  (exit $ac_status); }; } &&
 
4815
         { ac_try='test -s conftest$ac_exeext'
 
4816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4817
  (eval $ac_try) 2>&5
 
4818
  ac_status=$?
 
4819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4820
  (exit $ac_status); }; }; then
 
4821
 
 
4822
# libXaw.a is in the standard search path.
 
4823
ice_cv_athena_libraries=
 
4824
 
 
4825
else
 
4826
  echo "$as_me: failed program was:" >&5
 
4827
sed 's/^/| /' conftest.$ac_ext >&5
 
4828
 
 
4829
 
 
4830
# libXaw.a is not in the standard search path.
 
4831
# Locate it and put its directory in `athena_libraries'
 
4832
#
 
4833
#
 
4834
# /usr/lib/Motif* are used on HP-UX (Motif).
 
4835
# /usr/lib/X11* are used on HP-UX (X and Athena).
 
4836
# /usr/dt is used on Solaris (Motif).
 
4837
# /usr/openwin is used on Solaris (X and Athena).
 
4838
# Other directories are just guesses.
 
4839
for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \
 
4840
           /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \
 
4841
           /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \
 
4842
           /usr/dt/lib /usr/openwin/lib \
 
4843
           /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \
 
4844
           "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \
 
4845
           "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do
 
4846
if test -d "$dir" && test "`ls $dir/libXaw.* 2> /dev/null`" != ""; then
 
4847
ice_cv_athena_libraries="$dir"
 
4848
break
 
4849
fi
 
4850
done
 
4851
 
 
4852
fi
 
4853
rm -f conftest.err conftest.$ac_objext \
 
4854
      conftest$ac_exeext conftest.$ac_ext
 
4855
#
 
4856
LIBS="$ice_athena_save_LIBS"
 
4857
CFLAGS="$ice_athena_save_CFLAGS"
 
4858
CPPFLAGS="$ice_athena_save_CPPFLAGS"
 
4859
LDFLAGS="$ice_athena_save_LDFLAGS"
 
4860
 
 
4861
fi
 
4862
 
 
4863
#
 
4864
athena_libraries="$ice_cv_athena_libraries"
 
4865
fi
 
4866
# Add Athena definitions to X flags
 
4867
#
 
4868
if test "$athena_includes" != "" && test "$athena_includes" != "$x_includes" && test "$athena_includes" != "no"
 
4869
then
 
4870
X_CFLAGS="-I$athena_includes $X_CFLAGS"
 
4871
fi
 
4872
if test "$athena_libraries" != "" && test "$athena_libraries" != "$x_libraries" && test "$athena_libraries" != "no"
 
4873
then
 
4874
case "$X_LIBS" in
 
4875
  *-R\ *) X_LIBS="-L$athena_libraries -R $athena_libraries $X_LIBS";;
 
4876
  *-R*)   X_LIBS="-L$athena_libraries -R$athena_libraries $X_LIBS";;
 
4877
  *)      X_LIBS="-L$athena_libraries $X_LIBS";;
 
4878
esac
 
4879
fi
 
4880
#
 
4881
#
 
4882
athena_libraries_result="$athena_libraries"
 
4883
athena_includes_result="$athena_includes"
 
4884
test "$athena_libraries_result" = "" &&
 
4885
  athena_libraries_result="in default path"
 
4886
test "$athena_includes_result" = "" &&
 
4887
  athena_includes_result="in default path"
 
4888
test "$athena_libraries_result" = "no" &&
 
4889
  athena_libraries_result="(none)"
 
4890
test "$athena_includes_result" = "no" &&
 
4891
  athena_includes_result="(none)"
 
4892
echo "$as_me:$LINENO: result: libraries $athena_libraries_result, headers $athena_includes_result" >&5
 
4893
echo "${ECHO_T}libraries $athena_libraries_result, headers $athena_includes_result" >&6
 
4894
 
 
4895
# Check whether --enable-shared or --disable-shared was given.
 
4896
if test "${enable_shared+set}" = set; then
 
4897
  enableval="$enable_shared"
 
4898
  p=${PACKAGE-default}
 
4899
    case $enableval in
 
4900
    yes) enable_shared=yes ;;
 
4901
    no) enable_shared=no ;;
 
4902
    *)
 
4903
      enable_shared=no
 
4904
      # Look at the argument we got.  We use all the common list separators.
 
4905
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4906
      for pkg in $enableval; do
 
4907
        IFS="$lt_save_ifs"
 
4908
        if test "X$pkg" = "X$p"; then
 
4909
          enable_shared=yes
 
4910
        fi
 
4911
      done
 
4912
      IFS="$lt_save_ifs"
 
4913
      ;;
 
4914
    esac
 
4915
else
 
4916
  enable_shared=yes
 
4917
fi;
 
4918
 
 
4919
# Check whether --enable-static or --disable-static was given.
 
4920
if test "${enable_static+set}" = set; then
 
4921
  enableval="$enable_static"
 
4922
  p=${PACKAGE-default}
 
4923
    case $enableval in
 
4924
    yes) enable_static=yes ;;
 
4925
    no) enable_static=no ;;
 
4926
    *)
 
4927
     enable_static=no
 
4928
      # Look at the argument we got.  We use all the common list separators.
 
4929
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4930
      for pkg in $enableval; do
 
4931
        IFS="$lt_save_ifs"
 
4932
        if test "X$pkg" = "X$p"; then
 
4933
          enable_static=yes
 
4934
        fi
 
4935
      done
 
4936
      IFS="$lt_save_ifs"
 
4937
      ;;
 
4938
    esac
 
4939
else
 
4940
  enable_static=yes
 
4941
fi;
 
4942
 
 
4943
# Check whether --enable-fast-install or --disable-fast-install was given.
 
4944
if test "${enable_fast_install+set}" = set; then
 
4945
  enableval="$enable_fast_install"
 
4946
  p=${PACKAGE-default}
 
4947
    case $enableval in
 
4948
    yes) enable_fast_install=yes ;;
 
4949
    no) enable_fast_install=no ;;
 
4950
    *)
 
4951
      enable_fast_install=no
 
4952
      # Look at the argument we got.  We use all the common list separators.
 
4953
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4954
      for pkg in $enableval; do
 
4955
        IFS="$lt_save_ifs"
 
4956
        if test "X$pkg" = "X$p"; then
 
4957
          enable_fast_install=yes
 
4958
        fi
 
4959
      done
 
4960
      IFS="$lt_save_ifs"
 
4961
      ;;
 
4962
    esac
 
4963
else
 
4964
  enable_fast_install=yes
 
4965
fi;
 
4966
 
 
4967
# Make sure we can run config.sub.
 
4968
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
4969
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
4970
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
4971
   { (exit 1); exit 1; }; }
 
4972
 
 
4973
echo "$as_me:$LINENO: checking build system type" >&5
 
4974
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
4975
if test "${ac_cv_build+set}" = set; then
 
4976
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4977
else
 
4978
  ac_cv_build_alias=$build_alias
 
4979
test -z "$ac_cv_build_alias" &&
 
4980
  ac_cv_build_alias=`$ac_config_guess`
 
4981
test -z "$ac_cv_build_alias" &&
 
4982
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
4983
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
4984
   { (exit 1); exit 1; }; }
 
4985
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
4986
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
4987
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
4988
   { (exit 1); exit 1; }; }
 
4989
 
 
4990
fi
 
4991
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
4992
echo "${ECHO_T}$ac_cv_build" >&6
 
4993
build=$ac_cv_build
 
4994
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4995
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4996
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4997
 
 
4998
 
 
4999
echo "$as_me:$LINENO: checking host system type" >&5
 
5000
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
5001
if test "${ac_cv_host+set}" = set; then
 
5002
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5003
else
 
5004
  ac_cv_host_alias=$host_alias
 
5005
test -z "$ac_cv_host_alias" &&
 
5006
  ac_cv_host_alias=$ac_cv_build_alias
 
5007
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
5008
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
5009
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
5010
   { (exit 1); exit 1; }; }
 
5011
 
 
5012
fi
 
5013
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
5014
echo "${ECHO_T}$ac_cv_host" >&6
 
5015
host=$ac_cv_host
 
5016
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
5017
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
5018
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
5019
 
 
5020
 
 
5021
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
5022
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
5023
if test "${lt_cv_path_SED+set}" = set; then
 
5024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5025
else
 
5026
  # Loop through the user's path and test for sed and gsed.
 
5027
# Then use that list of sed's as ones to test for truncation.
 
5028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5029
for as_dir in $PATH
 
5030
do
 
5031
  IFS=$as_save_IFS
 
5032
  test -z "$as_dir" && as_dir=.
 
5033
  for lt_ac_prog in sed gsed; do
 
5034
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5035
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
5036
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
5037
      fi
 
5038
    done
 
5039
  done
 
5040
done
 
5041
lt_ac_max=0
 
5042
lt_ac_count=0
 
5043
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
5044
# along with /bin/sed that truncates output.
 
5045
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
5046
  test ! -f $lt_ac_sed && break
 
5047
  cat /dev/null > conftest.in
 
5048
  lt_ac_count=0
 
5049
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
5050
  # Check for GNU sed and select it if it is found.
 
5051
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
5052
    lt_cv_path_SED=$lt_ac_sed
 
5053
    break
 
5054
  fi
 
5055
  while true; do
 
5056
    cat conftest.in conftest.in >conftest.tmp
 
5057
    mv conftest.tmp conftest.in
 
5058
    cp conftest.in conftest.nl
 
5059
    echo >>conftest.nl
 
5060
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
5061
    cmp -s conftest.out conftest.nl || break
 
5062
    # 10000 chars as input seems more than enough
 
5063
    test $lt_ac_count -gt 10 && break
 
5064
    lt_ac_count=`expr $lt_ac_count + 1`
 
5065
    if test $lt_ac_count -gt $lt_ac_max; then
 
5066
      lt_ac_max=$lt_ac_count
 
5067
      lt_cv_path_SED=$lt_ac_sed
 
5068
    fi
 
5069
  done
 
5070
done
 
5071
 
 
5072
fi
 
5073
 
 
5074
SED=$lt_cv_path_SED
 
5075
echo "$as_me:$LINENO: result: $SED" >&5
 
5076
echo "${ECHO_T}$SED" >&6
 
5077
 
 
5078
echo "$as_me:$LINENO: checking for egrep" >&5
 
5079
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
5080
if test "${ac_cv_prog_egrep+set}" = set; then
 
5081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5082
else
 
5083
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
5084
    then ac_cv_prog_egrep='grep -E'
 
5085
    else ac_cv_prog_egrep='egrep'
 
5086
    fi
 
5087
fi
 
5088
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
5089
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
5090
 EGREP=$ac_cv_prog_egrep
 
5091
 
 
5092
 
 
5093
 
 
5094
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
5095
if test "${with_gnu_ld+set}" = set; then
 
5096
  withval="$with_gnu_ld"
 
5097
  test "$withval" = no || with_gnu_ld=yes
 
5098
else
 
5099
  with_gnu_ld=no
 
5100
fi;
 
5101
ac_prog=ld
 
5102
if test "$GCC" = yes; then
 
5103
  # Check if gcc -print-prog-name=ld gives a path.
 
5104
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
5105
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
5106
  case $host in
 
5107
  *-*-mingw*)
 
5108
    # gcc leaves a trailing carriage return which upsets mingw
 
5109
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5110
  *)
 
5111
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5112
  esac
 
5113
  case $ac_prog in
 
5114
    # Accept absolute paths.
 
5115
    [\\/]* | ?:[\\/]*)
 
5116
      re_direlt='/[^/][^/]*/\.\./'
 
5117
      # Canonicalize the pathname of ld
 
5118
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
5119
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
5120
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5121
      done
 
5122
      test -z "$LD" && LD="$ac_prog"
 
5123
      ;;
 
5124
  "")
 
5125
    # If it fails, then pretend we aren't using GCC.
 
5126
    ac_prog=ld
 
5127
    ;;
 
5128
  *)
 
5129
    # If it is relative, then search for the first ld in PATH.
 
5130
    with_gnu_ld=unknown
 
5131
    ;;
 
5132
  esac
 
5133
elif test "$with_gnu_ld" = yes; then
 
5134
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
5135
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
5136
else
 
5137
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
5138
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
5139
fi
 
5140
if test "${lt_cv_path_LD+set}" = set; then
 
5141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5142
else
 
5143
  if test -z "$LD"; then
 
5144
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5145
  for ac_dir in $PATH; do
 
5146
    IFS="$lt_save_ifs"
 
5147
    test -z "$ac_dir" && ac_dir=.
 
5148
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5149
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5150
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5151
      # but apparently some GNU ld's only accept -v.
 
5152
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5153
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5154
      *GNU* | *'with BFD'*)
 
5155
        test "$with_gnu_ld" != no && break
 
5156
        ;;
 
5157
      *)
 
5158
        test "$with_gnu_ld" != yes && break
 
5159
        ;;
 
5160
      esac
 
5161
    fi
 
5162
  done
 
5163
  IFS="$lt_save_ifs"
 
5164
else
 
5165
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5166
fi
 
5167
fi
 
5168
 
 
5169
LD="$lt_cv_path_LD"
 
5170
if test -n "$LD"; then
 
5171
  echo "$as_me:$LINENO: result: $LD" >&5
 
5172
echo "${ECHO_T}$LD" >&6
 
5173
else
 
5174
  echo "$as_me:$LINENO: result: no" >&5
 
5175
echo "${ECHO_T}no" >&6
 
5176
fi
 
5177
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
5178
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
5179
   { (exit 1); exit 1; }; }
 
5180
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
5181
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
5182
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
5183
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5184
else
 
5185
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
5186
case `$LD -v 2>&1 </dev/null` in
 
5187
*GNU* | *'with BFD'*)
 
5188
  lt_cv_prog_gnu_ld=yes
 
5189
  ;;
 
5190
*)
 
5191
  lt_cv_prog_gnu_ld=no
 
5192
  ;;
 
5193
esac
 
5194
fi
 
5195
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
5196
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
5197
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5198
 
 
5199
 
 
5200
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5201
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
5202
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5203
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5204
else
 
5205
  lt_cv_ld_reload_flag='-r'
 
5206
fi
 
5207
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5208
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
5209
reload_flag=$lt_cv_ld_reload_flag
 
5210
case $reload_flag in
 
5211
"" | " "*) ;;
 
5212
*) reload_flag=" $reload_flag" ;;
 
5213
esac
 
5214
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5215
case $host_os in
 
5216
  darwin*)
 
5217
    if test "$GCC" = yes; then
 
5218
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
5219
    else
 
5220
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5221
    fi
 
5222
    ;;
 
5223
esac
 
5224
 
 
5225
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
5226
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
5227
if test "${lt_cv_path_NM+set}" = set; then
 
5228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5229
else
 
5230
  if test -n "$NM"; then
 
5231
  # Let the user override the test.
 
5232
  lt_cv_path_NM="$NM"
 
5233
else
 
5234
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5235
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
5236
    IFS="$lt_save_ifs"
 
5237
    test -z "$ac_dir" && ac_dir=.
 
5238
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
5239
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5240
      # Check to see if the nm accepts a BSD-compat flag.
 
5241
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5242
      #   nm: unknown option "B" ignored
 
5243
      # Tru64's nm complains that /dev/null is an invalid object file
 
5244
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5245
      */dev/null* | *'Invalid file or object type'*)
 
5246
        lt_cv_path_NM="$tmp_nm -B"
 
5247
        break
 
5248
        ;;
 
5249
      *)
 
5250
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5251
        */dev/null*)
 
5252
          lt_cv_path_NM="$tmp_nm -p"
 
5253
          break
 
5254
          ;;
 
5255
        *)
 
5256
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5257
          continue # so that we can try to find one that supports BSD flags
 
5258
          ;;
 
5259
        esac
 
5260
      esac
 
5261
    fi
 
5262
  done
 
5263
  IFS="$lt_save_ifs"
 
5264
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5265
fi
 
5266
fi
 
5267
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
5268
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
5269
NM="$lt_cv_path_NM"
 
5270
 
 
5271
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
5272
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
5273
LN_S=$as_ln_s
 
5274
if test "$LN_S" = "ln -s"; then
 
5275
  echo "$as_me:$LINENO: result: yes" >&5
 
5276
echo "${ECHO_T}yes" >&6
 
5277
else
 
5278
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
5279
echo "${ECHO_T}no, using $LN_S" >&6
 
5280
fi
 
5281
 
 
5282
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
5283
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
5284
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
5285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5286
else
 
5287
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5288
lt_cv_file_magic_test_file=
 
5289
lt_cv_deplibs_check_method='unknown'
 
5290
# Need to set the preceding variable on all platforms that support
 
5291
# interlibrary dependencies.
 
5292
# 'none' -- dependencies not supported.
 
5293
# `unknown' -- same as none, but documents that we really don't know.
 
5294
# 'pass_all' -- all dependencies passed with no checks.
 
5295
# 'test_compile' -- check by making test program.
 
5296
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5297
# which responds to the $file_magic_cmd with a given extended regex.
 
5298
# If you have `file' or equivalent on your system and you're not sure
 
5299
# whether `pass_all' will *always* work, you probably want this one.
 
5300
 
 
5301
case $host_os in
 
5302
aix4* | aix5*)
 
5303
  lt_cv_deplibs_check_method=pass_all
 
5304
  ;;
 
5305
 
 
5306
beos*)
 
5307
  lt_cv_deplibs_check_method=pass_all
 
5308
  ;;
 
5309
 
 
5310
bsdi[45]*)
 
5311
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5312
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5313
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5314
  ;;
 
5315
 
 
5316
cygwin*)
 
5317
  # func_win32_libid is a shell function defined in ltmain.sh
 
5318
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5319
  lt_cv_file_magic_cmd='func_win32_libid'
 
5320
  ;;
 
5321
 
 
5322
mingw* | pw32*)
 
5323
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5324
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
5325
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5326
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5327
  ;;
 
5328
 
 
5329
darwin* | rhapsody*)
 
5330
  lt_cv_deplibs_check_method=pass_all
 
5331
  ;;
 
5332
 
 
5333
freebsd* | kfreebsd*-gnu)
 
5334
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5335
    case $host_cpu in
 
5336
    i*86 )
 
5337
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5338
      # Let's accept both of them until this is cleared up.
 
5339
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
5340
      lt_cv_file_magic_cmd=/usr/bin/file
 
5341
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5342
      ;;
 
5343
    esac
 
5344
  else
 
5345
    lt_cv_deplibs_check_method=pass_all
 
5346
  fi
 
5347
  ;;
 
5348
 
 
5349
gnu*)
 
5350
  lt_cv_deplibs_check_method=pass_all
 
5351
  ;;
 
5352
 
 
5353
hpux10.20* | hpux11*)
 
5354
  lt_cv_file_magic_cmd=/usr/bin/file
 
5355
  case "$host_cpu" in
 
5356
  ia64*)
 
5357
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5358
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5359
    ;;
 
5360
  hppa*64*)
 
5361
    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]'
 
5362
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5363
    ;;
 
5364
  *)
 
5365
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5366
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5367
    ;;
 
5368
  esac
 
5369
  ;;
 
5370
 
 
5371
irix5* | irix6* | nonstopux*)
 
5372
  case $LD in
 
5373
  *-32|*"-32 ") libmagic=32-bit;;
 
5374
  *-n32|*"-n32 ") libmagic=N32;;
 
5375
  *-64|*"-64 ") libmagic=64-bit;;
 
5376
  *) libmagic=never-match;;
 
5377
  esac
 
5378
  lt_cv_deplibs_check_method=pass_all
 
5379
  ;;
 
5380
 
 
5381
# This must be Linux ELF.
 
5382
linux*)
 
5383
  lt_cv_deplibs_check_method=pass_all
 
5384
  ;;
 
5385
 
 
5386
netbsd*)
 
5387
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5388
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5389
  else
 
5390
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5391
  fi
 
5392
  ;;
 
5393
 
 
5394
newos6*)
 
5395
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5396
  lt_cv_file_magic_cmd=/usr/bin/file
 
5397
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5398
  ;;
 
5399
 
 
5400
nto-qnx*)
 
5401
  lt_cv_deplibs_check_method=unknown
 
5402
  ;;
 
5403
 
 
5404
openbsd*)
 
5405
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5406
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5407
  else
 
5408
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5409
  fi
 
5410
  ;;
 
5411
 
 
5412
osf3* | osf4* | osf5*)
 
5413
  lt_cv_deplibs_check_method=pass_all
 
5414
  ;;
 
5415
 
 
5416
sco3.2v5*)
 
5417
  lt_cv_deplibs_check_method=pass_all
 
5418
  ;;
 
5419
 
 
5420
solaris*)
 
5421
  lt_cv_deplibs_check_method=pass_all
 
5422
  ;;
 
5423
 
 
5424
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5425
  case $host_vendor in
 
5426
  motorola)
 
5427
    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]'
 
5428
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5429
    ;;
 
5430
  ncr)
 
5431
    lt_cv_deplibs_check_method=pass_all
 
5432
    ;;
 
5433
  sequent)
 
5434
    lt_cv_file_magic_cmd='/bin/file'
 
5435
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5436
    ;;
 
5437
  sni)
 
5438
    lt_cv_file_magic_cmd='/bin/file'
 
5439
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5440
    lt_cv_file_magic_test_file=/lib/libc.so
 
5441
    ;;
 
5442
  siemens)
 
5443
    lt_cv_deplibs_check_method=pass_all
 
5444
    ;;
 
5445
  esac
 
5446
  ;;
 
5447
 
 
5448
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
5449
  lt_cv_deplibs_check_method=pass_all
 
5450
  ;;
 
5451
esac
 
5452
 
 
5453
fi
 
5454
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5455
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
5456
file_magic_cmd=$lt_cv_file_magic_cmd
 
5457
deplibs_check_method=$lt_cv_deplibs_check_method
 
5458
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5459
 
 
5460
 
 
5461
 
 
5462
 
 
5463
# If no C compiler was specified, use CC.
 
5464
LTCC=${LTCC-"$CC"}
 
5465
 
 
5466
# Allow CC to be a program name with arguments.
 
5467
compiler=$CC
 
5468
 
 
5469
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5470
if test "${enable_libtool_lock+set}" = set; then
 
5471
  enableval="$enable_libtool_lock"
 
5472
 
 
5473
fi;
 
5474
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5475
 
 
5476
# Some flags need to be propagated to the compiler or linker for good
 
5477
# libtool support.
 
5478
case $host in
 
5479
ia64-*-hpux*)
 
5480
  # Find out which ABI we are using.
 
5481
  echo 'int i;' > conftest.$ac_ext
 
5482
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5483
  (eval $ac_compile) 2>&5
 
5484
  ac_status=$?
 
5485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5486
  (exit $ac_status); }; then
 
5487
    case `/usr/bin/file conftest.$ac_objext` in
 
5488
    *ELF-32*)
 
5489
      HPUX_IA64_MODE="32"
 
5490
      ;;
 
5491
    *ELF-64*)
 
5492
      HPUX_IA64_MODE="64"
 
5493
      ;;
 
5494
    esac
 
5495
  fi
 
5496
  rm -rf conftest*
 
5497
  ;;
 
5498
*-*-irix6*)
 
5499
  # Find out which ABI we are using.
 
5500
  echo '#line 5500 "configure"' > conftest.$ac_ext
 
5501
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5502
  (eval $ac_compile) 2>&5
 
5503
  ac_status=$?
 
5504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5505
  (exit $ac_status); }; then
 
5506
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5507
    case `/usr/bin/file conftest.$ac_objext` in
 
5508
    *32-bit*)
 
5509
      LD="${LD-ld} -melf32bsmip"
 
5510
      ;;
 
5511
    *N32*)
 
5512
      LD="${LD-ld} -melf32bmipn32"
 
5513
      ;;
 
5514
    *64-bit*)
 
5515
      LD="${LD-ld} -melf64bmip"
 
5516
      ;;
 
5517
    esac
 
5518
   else
 
5519
    case `/usr/bin/file conftest.$ac_objext` in
 
5520
    *32-bit*)
 
5521
      LD="${LD-ld} -32"
 
5522
      ;;
 
5523
    *N32*)
 
5524
      LD="${LD-ld} -n32"
 
5525
      ;;
 
5526
    *64-bit*)
 
5527
      LD="${LD-ld} -64"
 
5528
      ;;
 
5529
    esac
 
5530
   fi
 
5531
  fi
 
5532
  rm -rf conftest*
 
5533
  ;;
 
5534
 
 
5535
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5536
  # Find out which ABI we are using.
 
5537
  echo 'int i;' > conftest.$ac_ext
 
5538
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5539
  (eval $ac_compile) 2>&5
 
5540
  ac_status=$?
 
5541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5542
  (exit $ac_status); }; then
 
5543
    case "`/usr/bin/file conftest.o`" in
 
5544
    *32-bit*)
 
5545
      case $host in
 
5546
        x86_64-*linux*)
 
5547
          LD="${LD-ld} -m elf_i386"
 
5548
          ;;
 
5549
        ppc64-*linux*|powerpc64-*linux*)
 
5550
          LD="${LD-ld} -m elf32ppclinux"
 
5551
          ;;
 
5552
        s390x-*linux*)
 
5553
          LD="${LD-ld} -m elf_s390"
 
5554
          ;;
 
5555
        sparc64-*linux*)
 
5556
          LD="${LD-ld} -m elf32_sparc"
 
5557
          ;;
 
5558
      esac
 
5559
      ;;
 
5560
    *64-bit*)
 
5561
      case $host in
 
5562
        x86_64-*linux*)
 
5563
          LD="${LD-ld} -m elf_x86_64"
 
5564
          ;;
 
5565
        ppc*-*linux*|powerpc*-*linux*)
 
5566
          LD="${LD-ld} -m elf64ppc"
 
5567
          ;;
 
5568
        s390*-*linux*)
 
5569
          LD="${LD-ld} -m elf64_s390"
 
5570
          ;;
 
5571
        sparc*-*linux*)
 
5572
          LD="${LD-ld} -m elf64_sparc"
 
5573
          ;;
 
5574
      esac
 
5575
      ;;
 
5576
    esac
 
5577
  fi
 
5578
  rm -rf conftest*
 
5579
  ;;
 
5580
 
 
5581
*-*-sco3.2v5*)
 
5582
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5583
  SAVE_CFLAGS="$CFLAGS"
 
5584
  CFLAGS="$CFLAGS -belf"
 
5585
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5586
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5587
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5589
else
 
5590
  ac_ext=c
 
5591
ac_cpp='$CPP $CPPFLAGS'
 
5592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5595
 
 
5596
     cat >conftest.$ac_ext <<_ACEOF
 
5597
/* confdefs.h.  */
 
5598
_ACEOF
 
5599
cat confdefs.h >>conftest.$ac_ext
 
5600
cat >>conftest.$ac_ext <<_ACEOF
 
5601
/* end confdefs.h.  */
 
5602
 
 
5603
int
 
5604
main ()
 
5605
{
 
5606
 
 
5607
  ;
 
5608
  return 0;
 
5609
}
 
5610
_ACEOF
 
5611
rm -f conftest.$ac_objext conftest$ac_exeext
 
5612
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5613
  (eval $ac_link) 2>conftest.er1
 
5614
  ac_status=$?
 
5615
  grep -v '^ *+' conftest.er1 >conftest.err
 
5616
  rm -f conftest.er1
 
5617
  cat conftest.err >&5
 
5618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5619
  (exit $ac_status); } &&
 
5620
         { ac_try='test -z "$ac_c_werror_flag"
 
5621
                         || test ! -s conftest.err'
 
5622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5623
  (eval $ac_try) 2>&5
 
5624
  ac_status=$?
 
5625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5626
  (exit $ac_status); }; } &&
 
5627
         { ac_try='test -s conftest$ac_exeext'
 
5628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5629
  (eval $ac_try) 2>&5
 
5630
  ac_status=$?
 
5631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5632
  (exit $ac_status); }; }; then
 
5633
  lt_cv_cc_needs_belf=yes
 
5634
else
 
5635
  echo "$as_me: failed program was:" >&5
 
5636
sed 's/^/| /' conftest.$ac_ext >&5
 
5637
 
 
5638
lt_cv_cc_needs_belf=no
 
5639
fi
 
5640
rm -f conftest.err conftest.$ac_objext \
 
5641
      conftest$ac_exeext conftest.$ac_ext
 
5642
     ac_ext=c
 
5643
ac_cpp='$CPP $CPPFLAGS'
 
5644
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5645
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5646
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5647
 
 
5648
fi
 
5649
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5650
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5651
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5652
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5653
    CFLAGS="$SAVE_CFLAGS"
 
5654
  fi
 
5655
  ;;
 
5656
 
 
5657
esac
 
5658
 
 
5659
need_locks="$enable_libtool_lock"
 
5660
 
 
5661
 
 
5662
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5663
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
5664
if test "${ac_cv_header_stdc+set}" = set; then
 
5665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5666
else
 
5667
  cat >conftest.$ac_ext <<_ACEOF
 
5668
/* confdefs.h.  */
 
5669
_ACEOF
 
5670
cat confdefs.h >>conftest.$ac_ext
 
5671
cat >>conftest.$ac_ext <<_ACEOF
 
5672
/* end confdefs.h.  */
 
5673
#include <stdlib.h>
 
5674
#include <stdarg.h>
 
5675
#include <string.h>
 
5676
#include <float.h>
 
5677
 
 
5678
int
 
5679
main ()
 
5680
{
 
5681
 
 
5682
  ;
 
5683
  return 0;
 
5684
}
 
5685
_ACEOF
 
5686
rm -f conftest.$ac_objext
 
5687
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5688
  (eval $ac_compile) 2>conftest.er1
 
5689
  ac_status=$?
 
5690
  grep -v '^ *+' conftest.er1 >conftest.err
 
5691
  rm -f conftest.er1
 
5692
  cat conftest.err >&5
 
5693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5694
  (exit $ac_status); } &&
 
5695
         { ac_try='test -z "$ac_c_werror_flag"
 
5696
                         || test ! -s conftest.err'
 
5697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5698
  (eval $ac_try) 2>&5
 
5699
  ac_status=$?
 
5700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5701
  (exit $ac_status); }; } &&
 
5702
         { ac_try='test -s conftest.$ac_objext'
 
5703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5704
  (eval $ac_try) 2>&5
 
5705
  ac_status=$?
 
5706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5707
  (exit $ac_status); }; }; then
 
5708
  ac_cv_header_stdc=yes
 
5709
else
 
5710
  echo "$as_me: failed program was:" >&5
 
5711
sed 's/^/| /' conftest.$ac_ext >&5
 
5712
 
 
5713
ac_cv_header_stdc=no
 
5714
fi
 
5715
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5716
 
 
5717
if test $ac_cv_header_stdc = yes; then
 
5718
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5719
  cat >conftest.$ac_ext <<_ACEOF
 
5720
/* confdefs.h.  */
 
5721
_ACEOF
 
5722
cat confdefs.h >>conftest.$ac_ext
 
5723
cat >>conftest.$ac_ext <<_ACEOF
 
5724
/* end confdefs.h.  */
 
5725
#include <string.h>
 
5726
 
 
5727
_ACEOF
 
5728
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5729
  $EGREP "memchr" >/dev/null 2>&1; then
 
5730
  :
 
5731
else
 
5732
  ac_cv_header_stdc=no
 
5733
fi
 
5734
rm -f conftest*
 
5735
 
 
5736
fi
 
5737
 
 
5738
if test $ac_cv_header_stdc = yes; then
 
5739
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5740
  cat >conftest.$ac_ext <<_ACEOF
 
5741
/* confdefs.h.  */
 
5742
_ACEOF
 
5743
cat confdefs.h >>conftest.$ac_ext
 
5744
cat >>conftest.$ac_ext <<_ACEOF
 
5745
/* end confdefs.h.  */
 
5746
#include <stdlib.h>
 
5747
 
 
5748
_ACEOF
 
5749
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5750
  $EGREP "free" >/dev/null 2>&1; then
 
5751
  :
 
5752
else
 
5753
  ac_cv_header_stdc=no
 
5754
fi
 
5755
rm -f conftest*
 
5756
 
 
5757
fi
 
5758
 
 
5759
if test $ac_cv_header_stdc = yes; then
 
5760
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5761
  if test "$cross_compiling" = yes; then
 
5762
  :
 
5763
else
 
5764
  cat >conftest.$ac_ext <<_ACEOF
 
5765
/* confdefs.h.  */
 
5766
_ACEOF
 
5767
cat confdefs.h >>conftest.$ac_ext
 
5768
cat >>conftest.$ac_ext <<_ACEOF
 
5769
/* end confdefs.h.  */
 
5770
#include <ctype.h>
 
5771
#if ((' ' & 0x0FF) == 0x020)
 
5772
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5773
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5774
#else
 
5775
# define ISLOWER(c) \
 
5776
                   (('a' <= (c) && (c) <= 'i') \
 
5777
                     || ('j' <= (c) && (c) <= 'r') \
 
5778
                     || ('s' <= (c) && (c) <= 'z'))
 
5779
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5780
#endif
 
5781
 
 
5782
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5783
int
 
5784
main ()
 
5785
{
 
5786
  int i;
 
5787
  for (i = 0; i < 256; i++)
 
5788
    if (XOR (islower (i), ISLOWER (i))
 
5789
        || toupper (i) != TOUPPER (i))
 
5790
      exit(2);
 
5791
  exit (0);
 
5792
}
 
5793
_ACEOF
 
5794
rm -f conftest$ac_exeext
 
5795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5796
  (eval $ac_link) 2>&5
 
5797
  ac_status=$?
 
5798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5799
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5801
  (eval $ac_try) 2>&5
 
5802
  ac_status=$?
 
5803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5804
  (exit $ac_status); }; }; then
 
5805
  :
 
5806
else
 
5807
  echo "$as_me: program exited with status $ac_status" >&5
 
5808
echo "$as_me: failed program was:" >&5
 
5809
sed 's/^/| /' conftest.$ac_ext >&5
 
5810
 
 
5811
( exit $ac_status )
 
5812
ac_cv_header_stdc=no
 
5813
fi
 
5814
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5815
fi
 
5816
fi
 
5817
fi
 
5818
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5819
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5820
if test $ac_cv_header_stdc = yes; then
 
5821
 
 
5822
cat >>confdefs.h <<\_ACEOF
 
5823
#define STDC_HEADERS 1
 
5824
_ACEOF
 
5825
 
 
5826
fi
 
5827
 
 
5828
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5829
 
 
5830
 
 
5831
 
 
5832
 
 
5833
 
 
5834
 
 
5835
 
 
5836
 
 
5837
 
 
5838
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5839
                  inttypes.h stdint.h unistd.h
 
5840
do
 
5841
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5842
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5843
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5844
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5846
else
 
5847
  cat >conftest.$ac_ext <<_ACEOF
 
5848
/* confdefs.h.  */
 
5849
_ACEOF
 
5850
cat confdefs.h >>conftest.$ac_ext
 
5851
cat >>conftest.$ac_ext <<_ACEOF
 
5852
/* end confdefs.h.  */
 
5853
$ac_includes_default
 
5854
 
 
5855
#include <$ac_header>
 
5856
_ACEOF
 
5857
rm -f conftest.$ac_objext
 
5858
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5859
  (eval $ac_compile) 2>conftest.er1
 
5860
  ac_status=$?
 
5861
  grep -v '^ *+' conftest.er1 >conftest.err
 
5862
  rm -f conftest.er1
 
5863
  cat conftest.err >&5
 
5864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5865
  (exit $ac_status); } &&
 
5866
         { ac_try='test -z "$ac_c_werror_flag"
 
5867
                         || test ! -s conftest.err'
 
5868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5869
  (eval $ac_try) 2>&5
 
5870
  ac_status=$?
 
5871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5872
  (exit $ac_status); }; } &&
 
5873
         { ac_try='test -s conftest.$ac_objext'
 
5874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5875
  (eval $ac_try) 2>&5
 
5876
  ac_status=$?
 
5877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5878
  (exit $ac_status); }; }; then
 
5879
  eval "$as_ac_Header=yes"
 
5880
else
 
5881
  echo "$as_me: failed program was:" >&5
 
5882
sed 's/^/| /' conftest.$ac_ext >&5
 
5883
 
 
5884
eval "$as_ac_Header=no"
 
5885
fi
 
5886
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5887
fi
 
5888
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5889
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5890
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5891
  cat >>confdefs.h <<_ACEOF
 
5892
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5893
_ACEOF
 
5894
 
 
5895
fi
 
5896
 
 
5897
done
 
5898
 
 
5899
 
 
5900
 
 
5901
for ac_header in dlfcn.h
 
5902
do
 
5903
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5904
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5905
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5906
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5907
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5908
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5909
fi
 
5910
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5911
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5912
else
 
5913
  # Is the header compilable?
 
5914
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5915
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5916
cat >conftest.$ac_ext <<_ACEOF
 
5917
/* confdefs.h.  */
 
5918
_ACEOF
 
5919
cat confdefs.h >>conftest.$ac_ext
 
5920
cat >>conftest.$ac_ext <<_ACEOF
 
5921
/* end confdefs.h.  */
 
5922
$ac_includes_default
 
5923
#include <$ac_header>
 
5924
_ACEOF
 
5925
rm -f conftest.$ac_objext
 
5926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5927
  (eval $ac_compile) 2>conftest.er1
 
5928
  ac_status=$?
 
5929
  grep -v '^ *+' conftest.er1 >conftest.err
 
5930
  rm -f conftest.er1
 
5931
  cat conftest.err >&5
 
5932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5933
  (exit $ac_status); } &&
 
5934
         { ac_try='test -z "$ac_c_werror_flag"
 
5935
                         || test ! -s conftest.err'
 
5936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5937
  (eval $ac_try) 2>&5
 
5938
  ac_status=$?
 
5939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5940
  (exit $ac_status); }; } &&
 
5941
         { ac_try='test -s conftest.$ac_objext'
 
5942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5943
  (eval $ac_try) 2>&5
 
5944
  ac_status=$?
 
5945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5946
  (exit $ac_status); }; }; then
 
5947
  ac_header_compiler=yes
 
5948
else
 
5949
  echo "$as_me: failed program was:" >&5
 
5950
sed 's/^/| /' conftest.$ac_ext >&5
 
5951
 
 
5952
ac_header_compiler=no
 
5953
fi
 
5954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5955
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5956
echo "${ECHO_T}$ac_header_compiler" >&6
 
5957
 
 
5958
# Is the header present?
 
5959
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5960
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5961
cat >conftest.$ac_ext <<_ACEOF
 
5962
/* confdefs.h.  */
 
5963
_ACEOF
 
5964
cat confdefs.h >>conftest.$ac_ext
 
5965
cat >>conftest.$ac_ext <<_ACEOF
 
5966
/* end confdefs.h.  */
 
5967
#include <$ac_header>
 
5968
_ACEOF
 
5969
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5970
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5971
  ac_status=$?
 
5972
  grep -v '^ *+' conftest.er1 >conftest.err
 
5973
  rm -f conftest.er1
 
5974
  cat conftest.err >&5
 
5975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5976
  (exit $ac_status); } >/dev/null; then
 
5977
  if test -s conftest.err; then
 
5978
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5979
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5980
  else
 
5981
    ac_cpp_err=
 
5982
  fi
 
5983
else
 
5984
  ac_cpp_err=yes
 
5985
fi
 
5986
if test -z "$ac_cpp_err"; then
 
5987
  ac_header_preproc=yes
 
5988
else
 
5989
  echo "$as_me: failed program was:" >&5
 
5990
sed 's/^/| /' conftest.$ac_ext >&5
 
5991
 
 
5992
  ac_header_preproc=no
 
5993
fi
 
5994
rm -f conftest.err conftest.$ac_ext
 
5995
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5996
echo "${ECHO_T}$ac_header_preproc" >&6
 
5997
 
 
5998
# So?  What about this header?
 
5999
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6000
  yes:no: )
 
6001
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6002
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6003
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6004
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6005
    ac_header_preproc=yes
 
6006
    ;;
 
6007
  no:yes:* )
 
6008
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6009
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6010
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6011
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6012
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6013
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6014
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6015
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6016
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6017
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6018
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6019
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6020
    (
 
6021
      cat <<\_ASBOX
 
6022
## ------------------------------------------ ##
 
6023
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6024
## ------------------------------------------ ##
 
6025
_ASBOX
 
6026
    ) |
 
6027
      sed "s/^/$as_me: WARNING:     /" >&2
 
6028
    ;;
 
6029
esac
 
6030
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6034
else
 
6035
  eval "$as_ac_Header=\$ac_header_preproc"
 
6036
fi
 
6037
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6038
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6039
 
 
6040
fi
 
6041
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6042
  cat >>confdefs.h <<_ACEOF
 
6043
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6044
_ACEOF
 
6045
 
 
6046
fi
 
6047
 
 
6048
done
 
6049
 
 
6050
ac_ext=cc
 
6051
ac_cpp='$CXXCPP $CPPFLAGS'
 
6052
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6053
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6054
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6055
if test -n "$ac_tool_prefix"; then
 
6056
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
6057
  do
 
6058
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6059
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6060
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6062
if test "${ac_cv_prog_CXX+set}" = set; then
 
6063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6064
else
 
6065
  if test -n "$CXX"; then
 
6066
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
6067
else
 
6068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6069
for as_dir in $PATH
 
6070
do
 
6071
  IFS=$as_save_IFS
 
6072
  test -z "$as_dir" && as_dir=.
 
6073
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6074
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6075
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
6076
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6077
    break 2
 
6078
  fi
 
6079
done
 
6080
done
 
6081
 
 
6082
fi
 
6083
fi
 
6084
CXX=$ac_cv_prog_CXX
 
6085
if test -n "$CXX"; then
 
6086
  echo "$as_me:$LINENO: result: $CXX" >&5
 
6087
echo "${ECHO_T}$CXX" >&6
 
6088
else
 
6089
  echo "$as_me:$LINENO: result: no" >&5
 
6090
echo "${ECHO_T}no" >&6
 
6091
fi
 
6092
 
 
6093
    test -n "$CXX" && break
 
6094
  done
 
6095
fi
 
6096
if test -z "$CXX"; then
 
6097
  ac_ct_CXX=$CXX
 
6098
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
6099
do
 
6100
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6101
set dummy $ac_prog; ac_word=$2
 
6102
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6103
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6104
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
6105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6106
else
 
6107
  if test -n "$ac_ct_CXX"; then
 
6108
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
6109
else
 
6110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6111
for as_dir in $PATH
 
6112
do
 
6113
  IFS=$as_save_IFS
 
6114
  test -z "$as_dir" && as_dir=.
 
6115
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6116
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6117
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
6118
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6119
    break 2
 
6120
  fi
 
6121
done
 
6122
done
 
6123
 
 
6124
fi
 
6125
fi
 
6126
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
6127
if test -n "$ac_ct_CXX"; then
 
6128
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
6129
echo "${ECHO_T}$ac_ct_CXX" >&6
 
6130
else
 
6131
  echo "$as_me:$LINENO: result: no" >&5
 
6132
echo "${ECHO_T}no" >&6
 
6133
fi
 
6134
 
 
6135
  test -n "$ac_ct_CXX" && break
 
6136
done
 
6137
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
6138
 
 
6139
  CXX=$ac_ct_CXX
 
6140
fi
 
6141
 
 
6142
 
 
6143
# Provide some information about the compiler.
 
6144
echo "$as_me:$LINENO:" \
 
6145
     "checking for C++ compiler version" >&5
 
6146
ac_compiler=`set X $ac_compile; echo $2`
 
6147
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6148
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6149
  ac_status=$?
 
6150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6151
  (exit $ac_status); }
 
6152
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6153
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6154
  ac_status=$?
 
6155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6156
  (exit $ac_status); }
 
6157
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6158
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6159
  ac_status=$?
 
6160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6161
  (exit $ac_status); }
 
6162
 
 
6163
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
6164
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
6165
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
6166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6167
else
 
6168
  cat >conftest.$ac_ext <<_ACEOF
 
6169
/* confdefs.h.  */
 
6170
_ACEOF
 
6171
cat confdefs.h >>conftest.$ac_ext
 
6172
cat >>conftest.$ac_ext <<_ACEOF
 
6173
/* end confdefs.h.  */
 
6174
 
 
6175
int
 
6176
main ()
 
6177
{
 
6178
#ifndef __GNUC__
 
6179
       choke me
 
6180
#endif
 
6181
 
 
6182
  ;
 
6183
  return 0;
 
6184
}
 
6185
_ACEOF
 
6186
rm -f conftest.$ac_objext
 
6187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6188
  (eval $ac_compile) 2>conftest.er1
 
6189
  ac_status=$?
 
6190
  grep -v '^ *+' conftest.er1 >conftest.err
 
6191
  rm -f conftest.er1
 
6192
  cat conftest.err >&5
 
6193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6194
  (exit $ac_status); } &&
 
6195
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6196
                         || test ! -s conftest.err'
 
6197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6198
  (eval $ac_try) 2>&5
 
6199
  ac_status=$?
 
6200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6201
  (exit $ac_status); }; } &&
 
6202
         { ac_try='test -s conftest.$ac_objext'
 
6203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6204
  (eval $ac_try) 2>&5
 
6205
  ac_status=$?
 
6206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6207
  (exit $ac_status); }; }; then
 
6208
  ac_compiler_gnu=yes
 
6209
else
 
6210
  echo "$as_me: failed program was:" >&5
 
6211
sed 's/^/| /' conftest.$ac_ext >&5
 
6212
 
 
6213
ac_compiler_gnu=no
 
6214
fi
 
6215
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6216
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
6217
 
 
6218
fi
 
6219
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
6220
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
6221
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
6222
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
6223
ac_save_CXXFLAGS=$CXXFLAGS
 
6224
CXXFLAGS="-g"
 
6225
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
6226
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
6227
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
6228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6229
else
 
6230
  cat >conftest.$ac_ext <<_ACEOF
 
6231
/* confdefs.h.  */
 
6232
_ACEOF
 
6233
cat confdefs.h >>conftest.$ac_ext
 
6234
cat >>conftest.$ac_ext <<_ACEOF
 
6235
/* end confdefs.h.  */
 
6236
 
 
6237
int
 
6238
main ()
 
6239
{
 
6240
 
 
6241
  ;
 
6242
  return 0;
 
6243
}
 
6244
_ACEOF
 
6245
rm -f conftest.$ac_objext
 
6246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6247
  (eval $ac_compile) 2>conftest.er1
 
6248
  ac_status=$?
 
6249
  grep -v '^ *+' conftest.er1 >conftest.err
 
6250
  rm -f conftest.er1
 
6251
  cat conftest.err >&5
 
6252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6253
  (exit $ac_status); } &&
 
6254
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6255
                         || test ! -s conftest.err'
 
6256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6257
  (eval $ac_try) 2>&5
 
6258
  ac_status=$?
 
6259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6260
  (exit $ac_status); }; } &&
 
6261
         { ac_try='test -s conftest.$ac_objext'
 
6262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6263
  (eval $ac_try) 2>&5
 
6264
  ac_status=$?
 
6265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6266
  (exit $ac_status); }; }; then
 
6267
  ac_cv_prog_cxx_g=yes
 
6268
else
 
6269
  echo "$as_me: failed program was:" >&5
 
6270
sed 's/^/| /' conftest.$ac_ext >&5
 
6271
 
 
6272
ac_cv_prog_cxx_g=no
 
6273
fi
 
6274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6275
fi
 
6276
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
6277
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
6278
if test "$ac_test_CXXFLAGS" = set; then
 
6279
  CXXFLAGS=$ac_save_CXXFLAGS
 
6280
elif test $ac_cv_prog_cxx_g = yes; then
 
6281
  if test "$GXX" = yes; then
 
6282
    CXXFLAGS="-g -O2"
 
6283
  else
 
6284
    CXXFLAGS="-g"
 
6285
  fi
 
6286
else
 
6287
  if test "$GXX" = yes; then
 
6288
    CXXFLAGS="-O2"
 
6289
  else
 
6290
    CXXFLAGS=
 
6291
  fi
 
6292
fi
 
6293
for ac_declaration in \
 
6294
   '' \
 
6295
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
6296
   'extern "C" void std::exit (int); using std::exit;' \
 
6297
   'extern "C" void exit (int) throw ();' \
 
6298
   'extern "C" void exit (int);' \
 
6299
   'void exit (int);'
 
6300
do
 
6301
  cat >conftest.$ac_ext <<_ACEOF
 
6302
/* confdefs.h.  */
 
6303
_ACEOF
 
6304
cat confdefs.h >>conftest.$ac_ext
 
6305
cat >>conftest.$ac_ext <<_ACEOF
 
6306
/* end confdefs.h.  */
 
6307
$ac_declaration
 
6308
#include <stdlib.h>
 
6309
int
 
6310
main ()
 
6311
{
 
6312
exit (42);
 
6313
  ;
 
6314
  return 0;
 
6315
}
 
6316
_ACEOF
 
6317
rm -f conftest.$ac_objext
 
6318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6319
  (eval $ac_compile) 2>conftest.er1
 
6320
  ac_status=$?
 
6321
  grep -v '^ *+' conftest.er1 >conftest.err
 
6322
  rm -f conftest.er1
 
6323
  cat conftest.err >&5
 
6324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6325
  (exit $ac_status); } &&
 
6326
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6327
                         || test ! -s conftest.err'
 
6328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6329
  (eval $ac_try) 2>&5
 
6330
  ac_status=$?
 
6331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6332
  (exit $ac_status); }; } &&
 
6333
         { ac_try='test -s conftest.$ac_objext'
 
6334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6335
  (eval $ac_try) 2>&5
 
6336
  ac_status=$?
 
6337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6338
  (exit $ac_status); }; }; then
 
6339
  :
 
6340
else
 
6341
  echo "$as_me: failed program was:" >&5
 
6342
sed 's/^/| /' conftest.$ac_ext >&5
 
6343
 
 
6344
continue
 
6345
fi
 
6346
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6347
  cat >conftest.$ac_ext <<_ACEOF
 
6348
/* confdefs.h.  */
 
6349
_ACEOF
 
6350
cat confdefs.h >>conftest.$ac_ext
 
6351
cat >>conftest.$ac_ext <<_ACEOF
 
6352
/* end confdefs.h.  */
 
6353
$ac_declaration
 
6354
int
 
6355
main ()
 
6356
{
 
6357
exit (42);
 
6358
  ;
 
6359
  return 0;
 
6360
}
 
6361
_ACEOF
 
6362
rm -f conftest.$ac_objext
 
6363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6364
  (eval $ac_compile) 2>conftest.er1
 
6365
  ac_status=$?
 
6366
  grep -v '^ *+' conftest.er1 >conftest.err
 
6367
  rm -f conftest.er1
 
6368
  cat conftest.err >&5
 
6369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6370
  (exit $ac_status); } &&
 
6371
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6372
                         || test ! -s conftest.err'
 
6373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6374
  (eval $ac_try) 2>&5
 
6375
  ac_status=$?
 
6376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6377
  (exit $ac_status); }; } &&
 
6378
         { ac_try='test -s conftest.$ac_objext'
 
6379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6380
  (eval $ac_try) 2>&5
 
6381
  ac_status=$?
 
6382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6383
  (exit $ac_status); }; }; then
 
6384
  break
 
6385
else
 
6386
  echo "$as_me: failed program was:" >&5
 
6387
sed 's/^/| /' conftest.$ac_ext >&5
 
6388
 
 
6389
fi
 
6390
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6391
done
 
6392
rm -f conftest*
 
6393
if test -n "$ac_declaration"; then
 
6394
  echo '#ifdef __cplusplus' >>confdefs.h
 
6395
  echo $ac_declaration      >>confdefs.h
 
6396
  echo '#endif'             >>confdefs.h
 
6397
fi
 
6398
 
 
6399
ac_ext=cc
 
6400
ac_cpp='$CXXCPP $CPPFLAGS'
 
6401
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6402
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6403
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6404
 
 
6405
 
 
6406
 
 
6407
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6408
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6409
    (test "X$CXX" != "Xg++"))) ; then
 
6410
  ac_ext=cc
 
6411
ac_cpp='$CXXCPP $CPPFLAGS'
 
6412
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6413
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6414
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6415
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6416
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6417
if test -z "$CXXCPP"; then
 
6418
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6420
else
 
6421
      # Double quotes because CXXCPP needs to be expanded
 
6422
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6423
    do
 
6424
      ac_preproc_ok=false
 
6425
for ac_cxx_preproc_warn_flag in '' yes
 
6426
do
 
6427
  # Use a header file that comes with gcc, so configuring glibc
 
6428
  # with a fresh cross-compiler works.
 
6429
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6430
  # <limits.h> exists even on freestanding compilers.
 
6431
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6432
  # not just through cpp. "Syntax error" is here to catch this case.
 
6433
  cat >conftest.$ac_ext <<_ACEOF
 
6434
/* confdefs.h.  */
 
6435
_ACEOF
 
6436
cat confdefs.h >>conftest.$ac_ext
 
6437
cat >>conftest.$ac_ext <<_ACEOF
 
6438
/* end confdefs.h.  */
 
6439
#ifdef __STDC__
 
6440
# include <limits.h>
 
6441
#else
 
6442
# include <assert.h>
 
6443
#endif
 
6444
                     Syntax error
 
6445
_ACEOF
 
6446
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6447
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6448
  ac_status=$?
 
6449
  grep -v '^ *+' conftest.er1 >conftest.err
 
6450
  rm -f conftest.er1
 
6451
  cat conftest.err >&5
 
6452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6453
  (exit $ac_status); } >/dev/null; then
 
6454
  if test -s conftest.err; then
 
6455
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6456
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6457
  else
 
6458
    ac_cpp_err=
 
6459
  fi
 
6460
else
 
6461
  ac_cpp_err=yes
 
6462
fi
 
6463
if test -z "$ac_cpp_err"; then
 
6464
  :
 
6465
else
 
6466
  echo "$as_me: failed program was:" >&5
 
6467
sed 's/^/| /' conftest.$ac_ext >&5
 
6468
 
 
6469
  # Broken: fails on valid input.
 
6470
continue
 
6471
fi
 
6472
rm -f conftest.err conftest.$ac_ext
 
6473
 
 
6474
  # OK, works on sane cases.  Now check whether non-existent headers
 
6475
  # can be detected and how.
 
6476
  cat >conftest.$ac_ext <<_ACEOF
 
6477
/* confdefs.h.  */
 
6478
_ACEOF
 
6479
cat confdefs.h >>conftest.$ac_ext
 
6480
cat >>conftest.$ac_ext <<_ACEOF
 
6481
/* end confdefs.h.  */
 
6482
#include <ac_nonexistent.h>
 
6483
_ACEOF
 
6484
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6485
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6486
  ac_status=$?
 
6487
  grep -v '^ *+' conftest.er1 >conftest.err
 
6488
  rm -f conftest.er1
 
6489
  cat conftest.err >&5
 
6490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6491
  (exit $ac_status); } >/dev/null; then
 
6492
  if test -s conftest.err; then
 
6493
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6494
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6495
  else
 
6496
    ac_cpp_err=
 
6497
  fi
 
6498
else
 
6499
  ac_cpp_err=yes
 
6500
fi
 
6501
if test -z "$ac_cpp_err"; then
 
6502
  # Broken: success on invalid input.
 
6503
continue
 
6504
else
 
6505
  echo "$as_me: failed program was:" >&5
 
6506
sed 's/^/| /' conftest.$ac_ext >&5
 
6507
 
 
6508
  # Passes both tests.
 
6509
ac_preproc_ok=:
 
6510
break
 
6511
fi
 
6512
rm -f conftest.err conftest.$ac_ext
 
6513
 
 
6514
done
 
6515
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6516
rm -f conftest.err conftest.$ac_ext
 
6517
if $ac_preproc_ok; then
 
6518
  break
 
6519
fi
 
6520
 
 
6521
    done
 
6522
    ac_cv_prog_CXXCPP=$CXXCPP
 
6523
 
 
6524
fi
 
6525
  CXXCPP=$ac_cv_prog_CXXCPP
 
6526
else
 
6527
  ac_cv_prog_CXXCPP=$CXXCPP
 
6528
fi
 
6529
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6530
echo "${ECHO_T}$CXXCPP" >&6
 
6531
ac_preproc_ok=false
 
6532
for ac_cxx_preproc_warn_flag in '' yes
 
6533
do
 
6534
  # Use a header file that comes with gcc, so configuring glibc
 
6535
  # with a fresh cross-compiler works.
 
6536
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6537
  # <limits.h> exists even on freestanding compilers.
 
6538
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6539
  # not just through cpp. "Syntax error" is here to catch this case.
 
6540
  cat >conftest.$ac_ext <<_ACEOF
 
6541
/* confdefs.h.  */
 
6542
_ACEOF
 
6543
cat confdefs.h >>conftest.$ac_ext
 
6544
cat >>conftest.$ac_ext <<_ACEOF
 
6545
/* end confdefs.h.  */
 
6546
#ifdef __STDC__
 
6547
# include <limits.h>
 
6548
#else
 
6549
# include <assert.h>
 
6550
#endif
 
6551
                     Syntax error
 
6552
_ACEOF
 
6553
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6554
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6555
  ac_status=$?
 
6556
  grep -v '^ *+' conftest.er1 >conftest.err
 
6557
  rm -f conftest.er1
 
6558
  cat conftest.err >&5
 
6559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6560
  (exit $ac_status); } >/dev/null; then
 
6561
  if test -s conftest.err; then
 
6562
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6563
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6564
  else
 
6565
    ac_cpp_err=
 
6566
  fi
 
6567
else
 
6568
  ac_cpp_err=yes
 
6569
fi
 
6570
if test -z "$ac_cpp_err"; then
 
6571
  :
 
6572
else
 
6573
  echo "$as_me: failed program was:" >&5
 
6574
sed 's/^/| /' conftest.$ac_ext >&5
 
6575
 
 
6576
  # Broken: fails on valid input.
 
6577
continue
 
6578
fi
 
6579
rm -f conftest.err conftest.$ac_ext
 
6580
 
 
6581
  # OK, works on sane cases.  Now check whether non-existent headers
 
6582
  # can be detected and how.
 
6583
  cat >conftest.$ac_ext <<_ACEOF
 
6584
/* confdefs.h.  */
 
6585
_ACEOF
 
6586
cat confdefs.h >>conftest.$ac_ext
 
6587
cat >>conftest.$ac_ext <<_ACEOF
 
6588
/* end confdefs.h.  */
 
6589
#include <ac_nonexistent.h>
 
6590
_ACEOF
 
6591
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6592
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6593
  ac_status=$?
 
6594
  grep -v '^ *+' conftest.er1 >conftest.err
 
6595
  rm -f conftest.er1
 
6596
  cat conftest.err >&5
 
6597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6598
  (exit $ac_status); } >/dev/null; then
 
6599
  if test -s conftest.err; then
 
6600
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6601
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6602
  else
 
6603
    ac_cpp_err=
 
6604
  fi
 
6605
else
 
6606
  ac_cpp_err=yes
 
6607
fi
 
6608
if test -z "$ac_cpp_err"; then
 
6609
  # Broken: success on invalid input.
 
6610
continue
 
6611
else
 
6612
  echo "$as_me: failed program was:" >&5
 
6613
sed 's/^/| /' conftest.$ac_ext >&5
 
6614
 
 
6615
  # Passes both tests.
 
6616
ac_preproc_ok=:
 
6617
break
 
6618
fi
 
6619
rm -f conftest.err conftest.$ac_ext
 
6620
 
 
6621
done
 
6622
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6623
rm -f conftest.err conftest.$ac_ext
 
6624
if $ac_preproc_ok; then
 
6625
  :
 
6626
else
 
6627
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6628
See \`config.log' for more details." >&5
 
6629
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6630
See \`config.log' for more details." >&2;}
 
6631
   { (exit 1); exit 1; }; }
 
6632
fi
 
6633
 
 
6634
ac_ext=cc
 
6635
ac_cpp='$CXXCPP $CPPFLAGS'
 
6636
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6637
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6638
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6639
 
 
6640
fi
 
6641
 
 
6642
 
 
6643
ac_ext=f
 
6644
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6645
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6646
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6647
if test -n "$ac_tool_prefix"; then
 
6648
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6649
  do
 
6650
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6651
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6652
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6653
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6654
if test "${ac_cv_prog_F77+set}" = set; then
 
6655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6656
else
 
6657
  if test -n "$F77"; then
 
6658
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6659
else
 
6660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6661
for as_dir in $PATH
 
6662
do
 
6663
  IFS=$as_save_IFS
 
6664
  test -z "$as_dir" && as_dir=.
 
6665
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6666
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6667
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6668
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6669
    break 2
 
6670
  fi
 
6671
done
 
6672
done
 
6673
 
 
6674
fi
 
6675
fi
 
6676
F77=$ac_cv_prog_F77
 
6677
if test -n "$F77"; then
 
6678
  echo "$as_me:$LINENO: result: $F77" >&5
 
6679
echo "${ECHO_T}$F77" >&6
 
6680
else
 
6681
  echo "$as_me:$LINENO: result: no" >&5
 
6682
echo "${ECHO_T}no" >&6
 
6683
fi
 
6684
 
 
6685
    test -n "$F77" && break
 
6686
  done
 
6687
fi
 
6688
if test -z "$F77"; then
 
6689
  ac_ct_F77=$F77
 
6690
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6691
do
 
6692
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6693
set dummy $ac_prog; ac_word=$2
 
6694
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6695
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6696
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6697
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6698
else
 
6699
  if test -n "$ac_ct_F77"; then
 
6700
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6701
else
 
6702
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6703
for as_dir in $PATH
 
6704
do
 
6705
  IFS=$as_save_IFS
 
6706
  test -z "$as_dir" && as_dir=.
 
6707
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6708
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6709
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6710
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6711
    break 2
 
6712
  fi
 
6713
done
 
6714
done
 
6715
 
 
6716
fi
 
6717
fi
 
6718
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6719
if test -n "$ac_ct_F77"; then
 
6720
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6721
echo "${ECHO_T}$ac_ct_F77" >&6
 
6722
else
 
6723
  echo "$as_me:$LINENO: result: no" >&5
 
6724
echo "${ECHO_T}no" >&6
 
6725
fi
 
6726
 
 
6727
  test -n "$ac_ct_F77" && break
 
6728
done
 
6729
 
 
6730
  F77=$ac_ct_F77
 
6731
fi
 
6732
 
 
6733
 
 
6734
# Provide some information about the compiler.
 
6735
echo "$as_me:6735:" \
 
6736
     "checking for Fortran 77 compiler version" >&5
 
6737
ac_compiler=`set X $ac_compile; echo $2`
 
6738
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6739
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6740
  ac_status=$?
 
6741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6742
  (exit $ac_status); }
 
6743
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6744
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6745
  ac_status=$?
 
6746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6747
  (exit $ac_status); }
 
6748
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6749
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6750
  ac_status=$?
 
6751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6752
  (exit $ac_status); }
 
6753
rm -f a.out
 
6754
 
 
6755
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6756
# input file.  (Note that this only needs to work for GNU compilers.)
 
6757
ac_save_ext=$ac_ext
 
6758
ac_ext=F
 
6759
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6760
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6761
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6763
else
 
6764
  cat >conftest.$ac_ext <<_ACEOF
 
6765
      program main
 
6766
#ifndef __GNUC__
 
6767
       choke me
 
6768
#endif
 
6769
 
 
6770
      end
 
6771
_ACEOF
 
6772
rm -f conftest.$ac_objext
 
6773
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6774
  (eval $ac_compile) 2>conftest.er1
 
6775
  ac_status=$?
 
6776
  grep -v '^ *+' conftest.er1 >conftest.err
 
6777
  rm -f conftest.er1
 
6778
  cat conftest.err >&5
 
6779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6780
  (exit $ac_status); } &&
 
6781
         { ac_try='test -z "$ac_f77_werror_flag"
 
6782
                         || test ! -s conftest.err'
 
6783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6784
  (eval $ac_try) 2>&5
 
6785
  ac_status=$?
 
6786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6787
  (exit $ac_status); }; } &&
 
6788
         { ac_try='test -s conftest.$ac_objext'
 
6789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6790
  (eval $ac_try) 2>&5
 
6791
  ac_status=$?
 
6792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6793
  (exit $ac_status); }; }; then
 
6794
  ac_compiler_gnu=yes
 
6795
else
 
6796
  echo "$as_me: failed program was:" >&5
 
6797
sed 's/^/| /' conftest.$ac_ext >&5
 
6798
 
 
6799
ac_compiler_gnu=no
 
6800
fi
 
6801
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6802
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6803
 
 
6804
fi
 
6805
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6806
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6807
ac_ext=$ac_save_ext
 
6808
ac_test_FFLAGS=${FFLAGS+set}
 
6809
ac_save_FFLAGS=$FFLAGS
 
6810
FFLAGS=
 
6811
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6812
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6813
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6815
else
 
6816
  FFLAGS=-g
 
6817
cat >conftest.$ac_ext <<_ACEOF
 
6818
      program main
 
6819
 
 
6820
      end
 
6821
_ACEOF
 
6822
rm -f conftest.$ac_objext
 
6823
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6824
  (eval $ac_compile) 2>conftest.er1
 
6825
  ac_status=$?
 
6826
  grep -v '^ *+' conftest.er1 >conftest.err
 
6827
  rm -f conftest.er1
 
6828
  cat conftest.err >&5
 
6829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6830
  (exit $ac_status); } &&
 
6831
         { ac_try='test -z "$ac_f77_werror_flag"
 
6832
                         || test ! -s conftest.err'
 
6833
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6834
  (eval $ac_try) 2>&5
 
6835
  ac_status=$?
 
6836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6837
  (exit $ac_status); }; } &&
 
6838
         { ac_try='test -s conftest.$ac_objext'
 
6839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6840
  (eval $ac_try) 2>&5
 
6841
  ac_status=$?
 
6842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6843
  (exit $ac_status); }; }; then
 
6844
  ac_cv_prog_f77_g=yes
 
6845
else
 
6846
  echo "$as_me: failed program was:" >&5
 
6847
sed 's/^/| /' conftest.$ac_ext >&5
 
6848
 
 
6849
ac_cv_prog_f77_g=no
 
6850
fi
 
6851
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6852
 
 
6853
fi
 
6854
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6855
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6856
if test "$ac_test_FFLAGS" = set; then
 
6857
  FFLAGS=$ac_save_FFLAGS
 
6858
elif test $ac_cv_prog_f77_g = yes; then
 
6859
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6860
    FFLAGS="-g -O2"
 
6861
  else
 
6862
    FFLAGS="-g"
 
6863
  fi
 
6864
else
 
6865
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6866
    FFLAGS="-O2"
 
6867
  else
 
6868
    FFLAGS=
 
6869
  fi
 
6870
fi
 
6871
 
 
6872
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6873
ac_ext=c
 
6874
ac_cpp='$CPP $CPPFLAGS'
 
6875
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6876
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6877
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6878
 
 
6879
 
 
6880
 
 
6881
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6882
 
 
6883
# find the maximum length of command line arguments
 
6884
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6885
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6886
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6888
else
 
6889
    i=0
 
6890
  teststring="ABCD"
 
6891
 
 
6892
  case $build_os in
 
6893
  msdosdjgpp*)
 
6894
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6895
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6896
    # during glob expansion).  Even if it were fixed, the result of this
 
6897
    # check would be larger than it should be.
 
6898
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6899
    ;;
 
6900
 
 
6901
  gnu*)
 
6902
    # Under GNU Hurd, this test is not required because there is
 
6903
    # no limit to the length of command line arguments.
 
6904
    # Libtool will interpret -1 as no limit whatsoever
 
6905
    lt_cv_sys_max_cmd_len=-1;
 
6906
    ;;
 
6907
 
 
6908
  cygwin* | mingw*)
 
6909
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6910
    # about 5 minutes as the teststring grows exponentially.
 
6911
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6912
    # you end up with a "frozen" computer, even though with patience
 
6913
    # the test eventually succeeds (with a max line length of 256k).
 
6914
    # Instead, let's just punt: use the minimum linelength reported by
 
6915
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6916
    lt_cv_sys_max_cmd_len=8192;
 
6917
    ;;
 
6918
 
 
6919
  amigaos*)
 
6920
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6921
    # So we just punt and use a minimum line length of 8192.
 
6922
    lt_cv_sys_max_cmd_len=8192;
 
6923
    ;;
 
6924
 
 
6925
  netbsd* | freebsd* | openbsd* | darwin* )
 
6926
    # This has been around since 386BSD, at least.  Likely further.
 
6927
    if test -x /sbin/sysctl; then
 
6928
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6929
    elif test -x /usr/sbin/sysctl; then
 
6930
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6931
    else
 
6932
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
6933
    fi
 
6934
    # And add a safety zone
 
6935
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6936
    ;;
 
6937
 
 
6938
 *)
 
6939
    # If test is not a shell built-in, we'll probably end up computing a
 
6940
    # maximum length that is only half of the actual maximum length, but
 
6941
    # we can't tell.
 
6942
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6943
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6944
               = "XX$teststring") >/dev/null 2>&1 &&
 
6945
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6946
            lt_cv_sys_max_cmd_len=$new_result &&
 
6947
            test $i != 17 # 1/2 MB should be enough
 
6948
    do
 
6949
      i=`expr $i + 1`
 
6950
      teststring=$teststring$teststring
 
6951
    done
 
6952
    teststring=
 
6953
    # Add a significant safety factor because C++ compilers can tack on massive
 
6954
    # amounts of additional arguments before passing them to the linker.
 
6955
    # It appears as though 1/2 is a usable value.
 
6956
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6957
    ;;
 
6958
  esac
 
6959
 
 
6960
fi
 
6961
 
 
6962
if test -n $lt_cv_sys_max_cmd_len ; then
 
6963
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6964
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6965
else
 
6966
  echo "$as_me:$LINENO: result: none" >&5
 
6967
echo "${ECHO_T}none" >&6
 
6968
fi
 
6969
 
 
6970
 
 
6971
 
 
6972
 
 
6973
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6974
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6975
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6976
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6978
else
 
6979
 
 
6980
# These are sane defaults that work on at least a few old systems.
 
6981
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6982
 
 
6983
# Character class describing NM global symbol codes.
 
6984
symcode='[BCDEGRST]'
 
6985
 
 
6986
# Regexp to match symbols that can be accessed directly from C.
 
6987
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6988
 
 
6989
# Transform the above into a raw symbol and a C symbol.
 
6990
symxfrm='\1 \2\3 \3'
 
6991
 
 
6992
# Transform an extracted symbol line into a proper C declaration
 
6993
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6994
 
 
6995
# Transform an extracted symbol line into symbol name and symbol address
 
6996
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'"
 
6997
 
 
6998
# Define system-specific variables.
 
6999
case $host_os in
 
7000
aix*)
 
7001
  symcode='[BCDT]'
 
7002
  ;;
 
7003
cygwin* | mingw* | pw32*)
 
7004
  symcode='[ABCDGISTW]'
 
7005
  ;;
 
7006
hpux*) # Its linker distinguishes data from code symbols
 
7007
  if test "$host_cpu" = ia64; then
 
7008
    symcode='[ABCDEGRST]'
 
7009
  fi
 
7010
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7011
  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'"
 
7012
  ;;
 
7013
linux*)
 
7014
  if test "$host_cpu" = ia64; then
 
7015
    symcode='[ABCDGIRSTW]'
 
7016
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7017
    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'"
 
7018
  fi
 
7019
  ;;
 
7020
irix* | nonstopux*)
 
7021
  symcode='[BCDEGRST]'
 
7022
  ;;
 
7023
osf*)
 
7024
  symcode='[BCDEGQRST]'
 
7025
  ;;
 
7026
solaris* | sysv5*)
 
7027
  symcode='[BDRT]'
 
7028
  ;;
 
7029
sysv4)
 
7030
  symcode='[DFNSTU]'
 
7031
  ;;
 
7032
esac
 
7033
 
 
7034
# Handle CRLF in mingw tool chain
 
7035
opt_cr=
 
7036
case $build_os in
 
7037
mingw*)
 
7038
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7039
  ;;
 
7040
esac
 
7041
 
 
7042
# If we're using GNU nm, then use its standard symbol codes.
 
7043
case `$NM -V 2>&1` in
 
7044
*GNU* | *'with BFD'*)
 
7045
  symcode='[ABCDGIRSTW]' ;;
 
7046
esac
 
7047
 
 
7048
# Try without a prefix undercore, then with it.
 
7049
for ac_symprfx in "" "_"; do
 
7050
 
 
7051
  # Write the raw and C identifiers.
 
7052
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
7053
 
 
7054
  # Check to see that the pipe works correctly.
 
7055
  pipe_works=no
 
7056
 
 
7057
  rm -f conftest*
 
7058
  cat > conftest.$ac_ext <<EOF
 
7059
#ifdef __cplusplus
 
7060
extern "C" {
 
7061
#endif
 
7062
char nm_test_var;
 
7063
void nm_test_func(){}
 
7064
#ifdef __cplusplus
 
7065
}
 
7066
#endif
 
7067
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7068
EOF
 
7069
 
 
7070
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7071
  (eval $ac_compile) 2>&5
 
7072
  ac_status=$?
 
7073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7074
  (exit $ac_status); }; then
 
7075
    # Now try to grab the symbols.
 
7076
    nlist=conftest.nm
 
7077
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
7078
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
7079
  ac_status=$?
 
7080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7081
  (exit $ac_status); } && test -s "$nlist"; then
 
7082
      # Try sorting and uniquifying the output.
 
7083
      if sort "$nlist" | uniq > "$nlist"T; then
 
7084
        mv -f "$nlist"T "$nlist"
 
7085
      else
 
7086
        rm -f "$nlist"T
 
7087
      fi
 
7088
 
 
7089
      # Make sure that we snagged all the symbols we need.
 
7090
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
7091
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
7092
          cat <<EOF > conftest.$ac_ext
 
7093
#ifdef __cplusplus
 
7094
extern "C" {
 
7095
#endif
 
7096
 
 
7097
EOF
 
7098
          # Now generate the symbol file.
 
7099
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
7100
 
 
7101
          cat <<EOF >> conftest.$ac_ext
 
7102
#if defined (__STDC__) && __STDC__
 
7103
# define lt_ptr_t void *
 
7104
#else
 
7105
# define lt_ptr_t char *
 
7106
# define const
 
7107
#endif
 
7108
 
 
7109
/* The mapping between symbol names and symbols. */
 
7110
const struct {
 
7111
  const char *name;
 
7112
  lt_ptr_t address;
 
7113
}
 
7114
lt_preloaded_symbols[] =
 
7115
{
 
7116
EOF
 
7117
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
7118
          cat <<\EOF >> conftest.$ac_ext
 
7119
  {0, (lt_ptr_t) 0}
 
7120
};
 
7121
 
 
7122
#ifdef __cplusplus
 
7123
}
 
7124
#endif
 
7125
EOF
 
7126
          # Now try linking the two files.
 
7127
          mv conftest.$ac_objext conftstm.$ac_objext
 
7128
          lt_save_LIBS="$LIBS"
 
7129
          lt_save_CFLAGS="$CFLAGS"
 
7130
          LIBS="conftstm.$ac_objext"
 
7131
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7132
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7133
  (eval $ac_link) 2>&5
 
7134
  ac_status=$?
 
7135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7136
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
7137
            pipe_works=yes
 
7138
          fi
 
7139
          LIBS="$lt_save_LIBS"
 
7140
          CFLAGS="$lt_save_CFLAGS"
 
7141
        else
 
7142
          echo "cannot find nm_test_func in $nlist" >&5
 
7143
        fi
 
7144
      else
 
7145
        echo "cannot find nm_test_var in $nlist" >&5
 
7146
      fi
 
7147
    else
 
7148
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7149
    fi
 
7150
  else
 
7151
    echo "$progname: failed program was:" >&5
 
7152
    cat conftest.$ac_ext >&5
 
7153
  fi
 
7154
  rm -f conftest* conftst*
 
7155
 
 
7156
  # Do not use the global_symbol_pipe unless it works.
 
7157
  if test "$pipe_works" = yes; then
 
7158
    break
 
7159
  else
 
7160
    lt_cv_sys_global_symbol_pipe=
 
7161
  fi
 
7162
done
 
7163
 
 
7164
fi
 
7165
 
 
7166
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7167
  lt_cv_sys_global_symbol_to_cdecl=
 
7168
fi
 
7169
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7170
  echo "$as_me:$LINENO: result: failed" >&5
 
7171
echo "${ECHO_T}failed" >&6
 
7172
else
 
7173
  echo "$as_me:$LINENO: result: ok" >&5
 
7174
echo "${ECHO_T}ok" >&6
 
7175
fi
 
7176
 
 
7177
echo "$as_me:$LINENO: checking for objdir" >&5
 
7178
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
7179
if test "${lt_cv_objdir+set}" = set; then
 
7180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7181
else
 
7182
  rm -f .libs 2>/dev/null
 
7183
mkdir .libs 2>/dev/null
 
7184
if test -d .libs; then
 
7185
  lt_cv_objdir=.libs
 
7186
else
 
7187
  # MS-DOS does not allow filenames that begin with a dot.
 
7188
  lt_cv_objdir=_libs
 
7189
fi
 
7190
rmdir .libs 2>/dev/null
 
7191
fi
 
7192
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7193
echo "${ECHO_T}$lt_cv_objdir" >&6
 
7194
objdir=$lt_cv_objdir
 
7195
 
 
7196
 
 
7197
 
 
7198
 
 
7199
 
 
7200
case $host_os in
 
7201
aix3*)
 
7202
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7203
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7204
  # vanish in a puff of smoke.
 
7205
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7206
    COLLECT_NAMES=
 
7207
    export COLLECT_NAMES
 
7208
  fi
 
7209
  ;;
 
7210
esac
 
7211
 
 
7212
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7213
# metacharacters that are still active within double-quoted strings.
 
7214
Xsed='sed -e s/^X//'
 
7215
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7216
 
 
7217
# Same as above, but do not quote variable references.
 
7218
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7219
 
 
7220
# Sed substitution to delay expansion of an escaped shell variable in a
 
7221
# double_quote_subst'ed string.
 
7222
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7223
 
 
7224
# Sed substitution to avoid accidental globbing in evaled expressions
 
7225
no_glob_subst='s/\*/\\\*/g'
 
7226
 
 
7227
# Constants:
 
7228
rm="rm -f"
 
7229
 
 
7230
# Global variables:
 
7231
default_ofile=libtool
 
7232
can_build_shared=yes
 
7233
 
 
7234
# All known linkers require a `.a' archive for static linking (except M$VC,
 
7235
# which needs '.lib').
 
7236
libext=a
 
7237
ltmain="$ac_aux_dir/ltmain.sh"
 
7238
ofile="$default_ofile"
 
7239
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7240
 
 
7241
if test -n "$ac_tool_prefix"; then
 
7242
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7243
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7244
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7245
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7246
if test "${ac_cv_prog_AR+set}" = set; then
 
7247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7248
else
 
7249
  if test -n "$AR"; then
 
7250
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7251
else
 
7252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7253
for as_dir in $PATH
 
7254
do
 
7255
  IFS=$as_save_IFS
 
7256
  test -z "$as_dir" && as_dir=.
 
7257
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7258
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7259
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7260
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7261
    break 2
 
7262
  fi
 
7263
done
 
7264
done
 
7265
 
 
7266
fi
 
7267
fi
 
7268
AR=$ac_cv_prog_AR
 
7269
if test -n "$AR"; then
 
7270
  echo "$as_me:$LINENO: result: $AR" >&5
 
7271
echo "${ECHO_T}$AR" >&6
 
7272
else
 
7273
  echo "$as_me:$LINENO: result: no" >&5
 
7274
echo "${ECHO_T}no" >&6
 
7275
fi
 
7276
 
 
7277
fi
 
7278
if test -z "$ac_cv_prog_AR"; then
 
7279
  ac_ct_AR=$AR
 
7280
  # Extract the first word of "ar", so it can be a program name with args.
 
7281
set dummy ar; ac_word=$2
 
7282
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7283
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7284
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7286
else
 
7287
  if test -n "$ac_ct_AR"; then
 
7288
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7289
else
 
7290
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7291
for as_dir in $PATH
 
7292
do
 
7293
  IFS=$as_save_IFS
 
7294
  test -z "$as_dir" && as_dir=.
 
7295
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7296
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7297
    ac_cv_prog_ac_ct_AR="ar"
 
7298
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7299
    break 2
 
7300
  fi
 
7301
done
 
7302
done
 
7303
 
 
7304
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
7305
fi
 
7306
fi
 
7307
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7308
if test -n "$ac_ct_AR"; then
 
7309
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7310
echo "${ECHO_T}$ac_ct_AR" >&6
 
7311
else
 
7312
  echo "$as_me:$LINENO: result: no" >&5
 
7313
echo "${ECHO_T}no" >&6
 
7314
fi
 
7315
 
 
7316
  AR=$ac_ct_AR
 
7317
else
 
7318
  AR="$ac_cv_prog_AR"
 
7319
fi
 
7320
 
 
7321
if test -n "$ac_tool_prefix"; then
 
7322
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7323
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7324
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7326
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7328
else
 
7329
  if test -n "$RANLIB"; then
 
7330
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7331
else
 
7332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7333
for as_dir in $PATH
 
7334
do
 
7335
  IFS=$as_save_IFS
 
7336
  test -z "$as_dir" && as_dir=.
 
7337
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7338
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7339
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7340
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7341
    break 2
 
7342
  fi
 
7343
done
 
7344
done
 
7345
 
 
7346
fi
 
7347
fi
 
7348
RANLIB=$ac_cv_prog_RANLIB
 
7349
if test -n "$RANLIB"; then
 
7350
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7351
echo "${ECHO_T}$RANLIB" >&6
 
7352
else
 
7353
  echo "$as_me:$LINENO: result: no" >&5
 
7354
echo "${ECHO_T}no" >&6
 
7355
fi
 
7356
 
 
7357
fi
 
7358
if test -z "$ac_cv_prog_RANLIB"; then
 
7359
  ac_ct_RANLIB=$RANLIB
 
7360
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7361
set dummy ranlib; ac_word=$2
 
7362
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7363
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7364
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7366
else
 
7367
  if test -n "$ac_ct_RANLIB"; then
 
7368
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7369
else
 
7370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7371
for as_dir in $PATH
 
7372
do
 
7373
  IFS=$as_save_IFS
 
7374
  test -z "$as_dir" && as_dir=.
 
7375
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7376
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7377
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7378
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7379
    break 2
 
7380
  fi
 
7381
done
 
7382
done
 
7383
 
 
7384
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
7385
fi
 
7386
fi
 
7387
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7388
if test -n "$ac_ct_RANLIB"; then
 
7389
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7390
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
7391
else
 
7392
  echo "$as_me:$LINENO: result: no" >&5
 
7393
echo "${ECHO_T}no" >&6
 
7394
fi
 
7395
 
 
7396
  RANLIB=$ac_ct_RANLIB
 
7397
else
 
7398
  RANLIB="$ac_cv_prog_RANLIB"
 
7399
fi
 
7400
 
 
7401
if test -n "$ac_tool_prefix"; then
 
7402
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7403
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7404
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7405
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7406
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7408
else
 
7409
  if test -n "$STRIP"; then
 
7410
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7411
else
 
7412
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7413
for as_dir in $PATH
 
7414
do
 
7415
  IFS=$as_save_IFS
 
7416
  test -z "$as_dir" && as_dir=.
 
7417
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7418
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7419
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7420
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7421
    break 2
 
7422
  fi
 
7423
done
 
7424
done
 
7425
 
 
7426
fi
 
7427
fi
 
7428
STRIP=$ac_cv_prog_STRIP
 
7429
if test -n "$STRIP"; then
 
7430
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
7431
echo "${ECHO_T}$STRIP" >&6
 
7432
else
 
7433
  echo "$as_me:$LINENO: result: no" >&5
 
7434
echo "${ECHO_T}no" >&6
 
7435
fi
 
7436
 
 
7437
fi
 
7438
if test -z "$ac_cv_prog_STRIP"; then
 
7439
  ac_ct_STRIP=$STRIP
 
7440
  # Extract the first word of "strip", so it can be a program name with args.
 
7441
set dummy strip; ac_word=$2
 
7442
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7443
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7444
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7445
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7446
else
 
7447
  if test -n "$ac_ct_STRIP"; then
 
7448
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7449
else
 
7450
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7451
for as_dir in $PATH
 
7452
do
 
7453
  IFS=$as_save_IFS
 
7454
  test -z "$as_dir" && as_dir=.
 
7455
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7456
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7457
    ac_cv_prog_ac_ct_STRIP="strip"
 
7458
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7459
    break 2
 
7460
  fi
 
7461
done
 
7462
done
 
7463
 
 
7464
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
7465
fi
 
7466
fi
 
7467
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7468
if test -n "$ac_ct_STRIP"; then
 
7469
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7470
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
7471
else
 
7472
  echo "$as_me:$LINENO: result: no" >&5
 
7473
echo "${ECHO_T}no" >&6
 
7474
fi
 
7475
 
 
7476
  STRIP=$ac_ct_STRIP
 
7477
else
 
7478
  STRIP="$ac_cv_prog_STRIP"
 
7479
fi
 
7480
 
 
7481
 
 
7482
old_CC="$CC"
 
7483
old_CFLAGS="$CFLAGS"
 
7484
 
 
7485
# Set sane defaults for various variables
 
7486
test -z "$AR" && AR=ar
 
7487
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7488
test -z "$AS" && AS=as
 
7489
test -z "$CC" && CC=cc
 
7490
test -z "$LTCC" && LTCC=$CC
 
7491
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7492
test -z "$LD" && LD=ld
 
7493
test -z "$LN_S" && LN_S="ln -s"
 
7494
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7495
test -z "$NM" && NM=nm
 
7496
test -z "$SED" && SED=sed
 
7497
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7498
test -z "$RANLIB" && RANLIB=:
 
7499
test -z "$STRIP" && STRIP=:
 
7500
test -z "$ac_objext" && ac_objext=o
 
7501
 
 
7502
# Determine commands to create old-style static archives.
 
7503
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7504
old_postinstall_cmds='chmod 644 $oldlib'
 
7505
old_postuninstall_cmds=
 
7506
 
 
7507
if test -n "$RANLIB"; then
 
7508
  case $host_os in
 
7509
  openbsd*)
 
7510
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
7511
    ;;
 
7512
  *)
 
7513
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
7514
    ;;
 
7515
  esac
 
7516
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7517
fi
 
7518
 
 
7519
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
7520
 
 
7521
# Only perform the check for file, if the check method requires it
 
7522
case $deplibs_check_method in
 
7523
file_magic*)
 
7524
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7525
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7526
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7527
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7529
else
 
7530
  case $MAGIC_CMD in
 
7531
[\\/*] |  ?:[\\/]*)
 
7532
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7533
  ;;
 
7534
*)
 
7535
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7536
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7537
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7538
  for ac_dir in $ac_dummy; do
 
7539
    IFS="$lt_save_ifs"
 
7540
    test -z "$ac_dir" && ac_dir=.
 
7541
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7542
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7543
      if test -n "$file_magic_test_file"; then
 
7544
        case $deplibs_check_method in
 
7545
        "file_magic "*)
 
7546
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7547
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7548
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7549
            $EGREP "$file_magic_regex" > /dev/null; then
 
7550
            :
 
7551
          else
 
7552
            cat <<EOF 1>&2
 
7553
 
 
7554
*** Warning: the command libtool uses to detect shared libraries,
 
7555
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7556
*** The result is that libtool may fail to recognize shared libraries
 
7557
*** as such.  This will affect the creation of libtool libraries that
 
7558
*** depend on shared libraries, but programs linked with such libtool
 
7559
*** libraries will work regardless of this problem.  Nevertheless, you
 
7560
*** may want to report the problem to your system manager and/or to
 
7561
*** bug-libtool@gnu.org
 
7562
 
 
7563
EOF
 
7564
          fi ;;
 
7565
        esac
 
7566
      fi
 
7567
      break
 
7568
    fi
 
7569
  done
 
7570
  IFS="$lt_save_ifs"
 
7571
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7572
  ;;
 
7573
esac
 
7574
fi
 
7575
 
 
7576
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7577
if test -n "$MAGIC_CMD"; then
 
7578
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7579
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7580
else
 
7581
  echo "$as_me:$LINENO: result: no" >&5
 
7582
echo "${ECHO_T}no" >&6
 
7583
fi
 
7584
 
 
7585
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7586
  if test -n "$ac_tool_prefix"; then
 
7587
    echo "$as_me:$LINENO: checking for file" >&5
 
7588
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
7589
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7591
else
 
7592
  case $MAGIC_CMD in
 
7593
[\\/*] |  ?:[\\/]*)
 
7594
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7595
  ;;
 
7596
*)
 
7597
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7598
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7599
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7600
  for ac_dir in $ac_dummy; do
 
7601
    IFS="$lt_save_ifs"
 
7602
    test -z "$ac_dir" && ac_dir=.
 
7603
    if test -f $ac_dir/file; then
 
7604
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7605
      if test -n "$file_magic_test_file"; then
 
7606
        case $deplibs_check_method in
 
7607
        "file_magic "*)
 
7608
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7609
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7610
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7611
            $EGREP "$file_magic_regex" > /dev/null; then
 
7612
            :
 
7613
          else
 
7614
            cat <<EOF 1>&2
 
7615
 
 
7616
*** Warning: the command libtool uses to detect shared libraries,
 
7617
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7618
*** The result is that libtool may fail to recognize shared libraries
 
7619
*** as such.  This will affect the creation of libtool libraries that
 
7620
*** depend on shared libraries, but programs linked with such libtool
 
7621
*** libraries will work regardless of this problem.  Nevertheless, you
 
7622
*** may want to report the problem to your system manager and/or to
 
7623
*** bug-libtool@gnu.org
 
7624
 
 
7625
EOF
 
7626
          fi ;;
 
7627
        esac
 
7628
      fi
 
7629
      break
 
7630
    fi
 
7631
  done
 
7632
  IFS="$lt_save_ifs"
 
7633
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7634
  ;;
 
7635
esac
 
7636
fi
 
7637
 
 
7638
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7639
if test -n "$MAGIC_CMD"; then
 
7640
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7641
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7642
else
 
7643
  echo "$as_me:$LINENO: result: no" >&5
 
7644
echo "${ECHO_T}no" >&6
 
7645
fi
 
7646
 
 
7647
  else
 
7648
    MAGIC_CMD=:
 
7649
  fi
 
7650
fi
 
7651
 
 
7652
  fi
 
7653
  ;;
 
7654
esac
 
7655
 
 
7656
enable_dlopen=no
 
7657
enable_win32_dll=no
 
7658
 
 
7659
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7660
if test "${enable_libtool_lock+set}" = set; then
 
7661
  enableval="$enable_libtool_lock"
 
7662
 
 
7663
fi;
 
7664
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7665
 
 
7666
 
 
7667
# Check whether --with-pic or --without-pic was given.
 
7668
if test "${with_pic+set}" = set; then
 
7669
  withval="$with_pic"
 
7670
  pic_mode="$withval"
 
7671
else
 
7672
  pic_mode=default
 
7673
fi;
 
7674
test -z "$pic_mode" && pic_mode=default
 
7675
 
 
7676
# Use C for the default configuration in the libtool script
 
7677
tagname=
 
7678
lt_save_CC="$CC"
 
7679
ac_ext=c
 
7680
ac_cpp='$CPP $CPPFLAGS'
 
7681
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7682
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7683
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7684
 
 
7685
 
 
7686
# Source file extension for C test sources.
 
7687
ac_ext=c
 
7688
 
 
7689
# Object file extension for compiled C test sources.
 
7690
objext=o
 
7691
objext=$objext
 
7692
 
 
7693
# Code to be used in simple compile tests
 
7694
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7695
 
 
7696
# Code to be used in simple link tests
 
7697
lt_simple_link_test_code='int main(){return(0);}\n'
 
7698
 
 
7699
 
 
7700
# If no C compiler was specified, use CC.
 
7701
LTCC=${LTCC-"$CC"}
 
7702
 
 
7703
# Allow CC to be a program name with arguments.
 
7704
compiler=$CC
 
7705
 
 
7706
 
 
7707
#
 
7708
# Check for any special shared library compilation flags.
 
7709
#
 
7710
lt_prog_cc_shlib=
 
7711
if test "$GCC" = no; then
 
7712
  case $host_os in
 
7713
  sco3.2v5*)
 
7714
    lt_prog_cc_shlib='-belf'
 
7715
    ;;
 
7716
  esac
 
7717
fi
 
7718
if test -n "$lt_prog_cc_shlib"; then
 
7719
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
7720
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
7721
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
7722
  else
 
7723
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
7724
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
7725
    lt_cv_prog_cc_can_build_shared=no
 
7726
  fi
 
7727
fi
 
7728
 
 
7729
 
 
7730
#
 
7731
# Check to make sure the static flag actually works.
 
7732
#
 
7733
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
7734
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
7735
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7737
else
 
7738
  lt_prog_compiler_static_works=no
 
7739
   save_LDFLAGS="$LDFLAGS"
 
7740
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
7741
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7742
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7743
     # The compiler can only warn and ignore the option if not recognized
 
7744
     # So say no if there are warnings
 
7745
     if test -s conftest.err; then
 
7746
       # Append any errors to the config.log.
 
7747
       cat conftest.err 1>&5
 
7748
     else
 
7749
       lt_prog_compiler_static_works=yes
 
7750
     fi
 
7751
   fi
 
7752
   $rm conftest*
 
7753
   LDFLAGS="$save_LDFLAGS"
 
7754
 
 
7755
fi
 
7756
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7757
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7758
 
 
7759
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7760
    :
 
7761
else
 
7762
    lt_prog_compiler_static=
 
7763
fi
 
7764
 
 
7765
 
 
7766
 
 
7767
## CAVEAT EMPTOR:
 
7768
## There is no encapsulation within the following macros, do not change
 
7769
## the running order or otherwise move them around unless you know exactly
 
7770
## what you are doing...
 
7771
 
 
7772
lt_prog_compiler_no_builtin_flag=
 
7773
 
 
7774
if test "$GCC" = yes; then
 
7775
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7776
 
 
7777
 
 
7778
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7779
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7780
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7782
else
 
7783
  lt_cv_prog_compiler_rtti_exceptions=no
 
7784
  ac_outfile=conftest.$ac_objext
 
7785
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7786
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7787
   # Insert the option either (1) after the last *FLAGS variable, or
 
7788
   # (2) before a word containing "conftest.", or (3) at the end.
 
7789
   # Note that $ac_compile itself does not contain backslashes and begins
 
7790
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7791
   # The option is referenced via a variable to avoid confusing sed.
 
7792
   lt_compile=`echo "$ac_compile" | $SED \
 
7793
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7794
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7795
   -e 's:$: $lt_compiler_flag:'`
 
7796
   (eval echo "\"\$as_me:7796: $lt_compile\"" >&5)
 
7797
   (eval "$lt_compile" 2>conftest.err)
 
7798
   ac_status=$?
 
7799
   cat conftest.err >&5
 
7800
   echo "$as_me:7800: \$? = $ac_status" >&5
 
7801
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7802
     # The compiler can only warn and ignore the option if not recognized
 
7803
     # So say no if there are warnings
 
7804
     if test ! -s conftest.err; then
 
7805
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7806
     fi
 
7807
   fi
 
7808
   $rm conftest*
 
7809
 
 
7810
fi
 
7811
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7812
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7813
 
 
7814
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7815
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7816
else
 
7817
    :
 
7818
fi
 
7819
 
 
7820
fi
 
7821
 
 
7822
lt_prog_compiler_wl=
 
7823
lt_prog_compiler_pic=
 
7824
lt_prog_compiler_static=
 
7825
 
 
7826
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7827
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7828
 
 
7829
  if test "$GCC" = yes; then
 
7830
    lt_prog_compiler_wl='-Wl,'
 
7831
    lt_prog_compiler_static='-static'
 
7832
 
 
7833
    case $host_os in
 
7834
      aix*)
 
7835
      # All AIX code is PIC.
 
7836
      if test "$host_cpu" = ia64; then
 
7837
        # AIX 5 now supports IA64 processor
 
7838
        lt_prog_compiler_static='-Bstatic'
 
7839
      fi
 
7840
      ;;
 
7841
 
 
7842
    amigaos*)
 
7843
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7844
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7845
      # like `-m68040'.
 
7846
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7847
      ;;
 
7848
 
 
7849
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7850
      # PIC is the default for these OSes.
 
7851
      ;;
 
7852
 
 
7853
    mingw* | pw32* | os2*)
 
7854
      # This hack is so that the source file can tell whether it is being
 
7855
      # built for inclusion in a dll (and should export symbols for example).
 
7856
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7857
      ;;
 
7858
 
 
7859
    darwin* | rhapsody*)
 
7860
      # PIC is the default on this platform
 
7861
      # Common symbols not allowed in MH_DYLIB files
 
7862
      lt_prog_compiler_pic='-fno-common'
 
7863
      ;;
 
7864
 
 
7865
    msdosdjgpp*)
 
7866
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7867
      # on systems that don't support them.
 
7868
      lt_prog_compiler_can_build_shared=no
 
7869
      enable_shared=no
 
7870
      ;;
 
7871
 
 
7872
    sysv4*MP*)
 
7873
      if test -d /usr/nec; then
 
7874
        lt_prog_compiler_pic=-Kconform_pic
 
7875
      fi
 
7876
      ;;
 
7877
 
 
7878
    hpux*)
 
7879
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7880
      # not for PA HP-UX.
 
7881
      case "$host_cpu" in
 
7882
      hppa*64*|ia64*)
 
7883
        # +Z the default
 
7884
        ;;
 
7885
      *)
 
7886
        lt_prog_compiler_pic='-fPIC'
 
7887
        ;;
 
7888
      esac
 
7889
      ;;
 
7890
 
 
7891
    *)
 
7892
      lt_prog_compiler_pic='-fPIC'
 
7893
      ;;
 
7894
    esac
 
7895
  else
 
7896
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7897
    case $host_os in
 
7898
    aix*)
 
7899
      lt_prog_compiler_wl='-Wl,'
 
7900
      if test "$host_cpu" = ia64; then
 
7901
        # AIX 5 now supports IA64 processor
 
7902
        lt_prog_compiler_static='-Bstatic'
 
7903
      else
 
7904
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7905
      fi
 
7906
      ;;
 
7907
      darwin*)
 
7908
        # PIC is the default on this platform
 
7909
        # Common symbols not allowed in MH_DYLIB files
 
7910
       case "$cc_basename" in
 
7911
         xlc*)
 
7912
         lt_prog_compiler_pic='-qnocommon'
 
7913
         lt_prog_compiler_wl='-Wl,'
 
7914
         ;;
 
7915
       esac
 
7916
       ;;
 
7917
 
 
7918
    mingw* | pw32* | os2*)
 
7919
      # This hack is so that the source file can tell whether it is being
 
7920
      # built for inclusion in a dll (and should export symbols for example).
 
7921
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7922
      ;;
 
7923
 
 
7924
    hpux9* | hpux10* | hpux11*)
 
7925
      lt_prog_compiler_wl='-Wl,'
 
7926
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7927
      # not for PA HP-UX.
 
7928
      case "$host_cpu" in
 
7929
      hppa*64*|ia64*)
 
7930
        # +Z the default
 
7931
        ;;
 
7932
      *)
 
7933
        lt_prog_compiler_pic='+Z'
 
7934
        ;;
 
7935
      esac
 
7936
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7937
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7938
      ;;
 
7939
 
 
7940
    irix5* | irix6* | nonstopux*)
 
7941
      lt_prog_compiler_wl='-Wl,'
 
7942
      # PIC (with -KPIC) is the default.
 
7943
      lt_prog_compiler_static='-non_shared'
 
7944
      ;;
 
7945
 
 
7946
    newsos6)
 
7947
      lt_prog_compiler_pic='-KPIC'
 
7948
      lt_prog_compiler_static='-Bstatic'
 
7949
      ;;
 
7950
 
 
7951
    linux*)
 
7952
      case $CC in
 
7953
      icc* | ecc*)
 
7954
        lt_prog_compiler_wl='-Wl,'
 
7955
        lt_prog_compiler_pic='-KPIC'
 
7956
        lt_prog_compiler_static='-static'
 
7957
        ;;
 
7958
      ccc*)
 
7959
        lt_prog_compiler_wl='-Wl,'
 
7960
        # All Alpha code is PIC.
 
7961
        lt_prog_compiler_static='-non_shared'
 
7962
        ;;
 
7963
      esac
 
7964
      ;;
 
7965
 
 
7966
    osf3* | osf4* | osf5*)
 
7967
      lt_prog_compiler_wl='-Wl,'
 
7968
      # All OSF/1 code is PIC.
 
7969
      lt_prog_compiler_static='-non_shared'
 
7970
      ;;
 
7971
 
 
7972
    sco3.2v5*)
 
7973
      lt_prog_compiler_pic='-Kpic'
 
7974
      lt_prog_compiler_static='-dn'
 
7975
      ;;
 
7976
 
 
7977
    solaris*)
 
7978
      lt_prog_compiler_wl='-Wl,'
 
7979
      lt_prog_compiler_pic='-KPIC'
 
7980
      lt_prog_compiler_static='-Bstatic'
 
7981
      ;;
 
7982
 
 
7983
    sunos4*)
 
7984
      lt_prog_compiler_wl='-Qoption ld '
 
7985
      lt_prog_compiler_pic='-PIC'
 
7986
      lt_prog_compiler_static='-Bstatic'
 
7987
      ;;
 
7988
 
 
7989
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7990
      lt_prog_compiler_wl='-Wl,'
 
7991
      lt_prog_compiler_pic='-KPIC'
 
7992
      lt_prog_compiler_static='-Bstatic'
 
7993
      ;;
 
7994
 
 
7995
    sysv4*MP*)
 
7996
      if test -d /usr/nec ;then
 
7997
        lt_prog_compiler_pic='-Kconform_pic'
 
7998
        lt_prog_compiler_static='-Bstatic'
 
7999
      fi
 
8000
      ;;
 
8001
 
 
8002
    uts4*)
 
8003
      lt_prog_compiler_pic='-pic'
 
8004
      lt_prog_compiler_static='-Bstatic'
 
8005
      ;;
 
8006
 
 
8007
    *)
 
8008
      lt_prog_compiler_can_build_shared=no
 
8009
      ;;
 
8010
    esac
 
8011
  fi
 
8012
 
 
8013
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8014
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
8015
 
 
8016
#
 
8017
# Check to make sure the PIC flag actually works.
 
8018
#
 
8019
if test -n "$lt_prog_compiler_pic"; then
 
8020
 
 
8021
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8022
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
8023
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
8024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8025
else
 
8026
  lt_prog_compiler_pic_works=no
 
8027
  ac_outfile=conftest.$ac_objext
 
8028
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8029
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8030
   # Insert the option either (1) after the last *FLAGS variable, or
 
8031
   # (2) before a word containing "conftest.", or (3) at the end.
 
8032
   # Note that $ac_compile itself does not contain backslashes and begins
 
8033
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8034
   # The option is referenced via a variable to avoid confusing sed.
 
8035
   lt_compile=`echo "$ac_compile" | $SED \
 
8036
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8037
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8038
   -e 's:$: $lt_compiler_flag:'`
 
8039
   (eval echo "\"\$as_me:8039: $lt_compile\"" >&5)
 
8040
   (eval "$lt_compile" 2>conftest.err)
 
8041
   ac_status=$?
 
8042
   cat conftest.err >&5
 
8043
   echo "$as_me:8043: \$? = $ac_status" >&5
 
8044
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8045
     # The compiler can only warn and ignore the option if not recognized
 
8046
     # So say no if there are warnings
 
8047
     if test ! -s conftest.err; then
 
8048
       lt_prog_compiler_pic_works=yes
 
8049
     fi
 
8050
   fi
 
8051
   $rm conftest*
 
8052
 
 
8053
fi
 
8054
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
8055
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
8056
 
 
8057
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8058
    case $lt_prog_compiler_pic in
 
8059
     "" | " "*) ;;
 
8060
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8061
     esac
 
8062
else
 
8063
    lt_prog_compiler_pic=
 
8064
     lt_prog_compiler_can_build_shared=no
 
8065
fi
 
8066
 
 
8067
fi
 
8068
case "$host_os" in
 
8069
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8070
  *djgpp*)
 
8071
    lt_prog_compiler_pic=
 
8072
    ;;
 
8073
  *)
 
8074
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8075
    ;;
 
8076
esac
 
8077
 
 
8078
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8079
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
8080
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8082
else
 
8083
  lt_cv_prog_compiler_c_o=no
 
8084
   $rm -r conftest 2>/dev/null
 
8085
   mkdir conftest
 
8086
   cd conftest
 
8087
   mkdir out
 
8088
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8089
 
 
8090
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8091
   # Insert the option either (1) after the last *FLAGS variable, or
 
8092
   # (2) before a word containing "conftest.", or (3) at the end.
 
8093
   # Note that $ac_compile itself does not contain backslashes and begins
 
8094
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8095
   lt_compile=`echo "$ac_compile" | $SED \
 
8096
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8097
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8098
   -e 's:$: $lt_compiler_flag:'`
 
8099
   (eval echo "\"\$as_me:8099: $lt_compile\"" >&5)
 
8100
   (eval "$lt_compile" 2>out/conftest.err)
 
8101
   ac_status=$?
 
8102
   cat out/conftest.err >&5
 
8103
   echo "$as_me:8103: \$? = $ac_status" >&5
 
8104
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8105
   then
 
8106
     # The compiler can only warn and ignore the option if not recognized
 
8107
     # So say no if there are warnings
 
8108
     if test ! -s out/conftest.err; then
 
8109
       lt_cv_prog_compiler_c_o=yes
 
8110
     fi
 
8111
   fi
 
8112
   chmod u+w .
 
8113
   $rm conftest*
 
8114
   # SGI C++ compiler will create directory out/ii_files/ for
 
8115
   # template instantiation
 
8116
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8117
   $rm out/* && rmdir out
 
8118
   cd ..
 
8119
   rmdir conftest
 
8120
   $rm conftest*
 
8121
 
 
8122
fi
 
8123
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8124
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
8125
 
 
8126
 
 
8127
hard_links="nottested"
 
8128
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8129
  # do not overwrite the value of need_locks provided by the user
 
8130
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8131
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
8132
  hard_links=yes
 
8133
  $rm conftest*
 
8134
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8135
  touch conftest.a
 
8136
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8137
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8138
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
8139
echo "${ECHO_T}$hard_links" >&6
 
8140
  if test "$hard_links" = no; then
 
8141
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8142
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8143
    need_locks=warn
 
8144
  fi
 
8145
else
 
8146
  need_locks=no
 
8147
fi
 
8148
 
 
8149
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8150
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
8151
 
 
8152
  runpath_var=
 
8153
  allow_undefined_flag=
 
8154
  enable_shared_with_static_runtimes=no
 
8155
  archive_cmds=
 
8156
  archive_expsym_cmds=
 
8157
  old_archive_From_new_cmds=
 
8158
  old_archive_from_expsyms_cmds=
 
8159
  export_dynamic_flag_spec=
 
8160
  whole_archive_flag_spec=
 
8161
  thread_safe_flag_spec=
 
8162
  hardcode_libdir_flag_spec=
 
8163
  hardcode_libdir_flag_spec_ld=
 
8164
  hardcode_libdir_separator=
 
8165
  hardcode_direct=no
 
8166
  hardcode_minus_L=no
 
8167
  hardcode_shlibpath_var=unsupported
 
8168
  link_all_deplibs=unknown
 
8169
  hardcode_automatic=no
 
8170
  module_cmds=
 
8171
  module_expsym_cmds=
 
8172
  always_export_symbols=no
 
8173
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8174
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8175
  # included in the symbol list
 
8176
  include_expsyms=
 
8177
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8178
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8179
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8180
  # as well as any symbol that contains `d'.
 
8181
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8182
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8183
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8184
  # the symbol is explicitly referenced.  Since portable code cannot
 
8185
  # rely on this symbol name, it's probably fine to never include it in
 
8186
  # preloaded symbol tables.
 
8187
  extract_expsyms_cmds=
 
8188
 
 
8189
  case $host_os in
 
8190
  cygwin* | mingw* | pw32*)
 
8191
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8192
    # When not using gcc, we currently assume that we are using
 
8193
    # Microsoft Visual C++.
 
8194
    if test "$GCC" != yes; then
 
8195
      with_gnu_ld=no
 
8196
    fi
 
8197
    ;;
 
8198
  openbsd*)
 
8199
    with_gnu_ld=no
 
8200
    ;;
 
8201
  esac
 
8202
 
 
8203
  ld_shlibs=yes
 
8204
  if test "$with_gnu_ld" = yes; then
 
8205
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8206
    wlarc='${wl}'
 
8207
 
 
8208
    # See if GNU ld supports shared libraries.
 
8209
    case $host_os in
 
8210
    aix3* | aix4* | aix5*)
 
8211
      # On AIX/PPC, the GNU linker is very broken
 
8212
      if test "$host_cpu" != ia64; then
 
8213
        ld_shlibs=no
 
8214
        cat <<EOF 1>&2
 
8215
 
 
8216
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8217
*** to be unable to reliably create shared libraries on AIX.
 
8218
*** Therefore, libtool is disabling shared libraries support.  If you
 
8219
*** really care for shared libraries, you may want to modify your PATH
 
8220
*** so that a non-GNU linker is found, and then restart.
 
8221
 
 
8222
EOF
 
8223
      fi
 
8224
      ;;
 
8225
 
 
8226
    amigaos*)
 
8227
      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)'
 
8228
      hardcode_libdir_flag_spec='-L$libdir'
 
8229
      hardcode_minus_L=yes
 
8230
 
 
8231
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8232
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8233
      # to version 4, is to share data among multiple programs linked
 
8234
      # with the same dynamic library.  Since this doesn't match the
 
8235
      # behavior of shared libraries on other platforms, we can't use
 
8236
      # them.
 
8237
      ld_shlibs=no
 
8238
      ;;
 
8239
 
 
8240
    beos*)
 
8241
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8242
        allow_undefined_flag=unsupported
 
8243
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8244
        # support --undefined.  This deserves some investigation.  FIXME
 
8245
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8246
      else
 
8247
        ld_shlibs=no
 
8248
      fi
 
8249
      ;;
 
8250
 
 
8251
    cygwin* | mingw* | pw32*)
 
8252
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8253
      # as there is no search path for DLLs.
 
8254
      hardcode_libdir_flag_spec='-L$libdir'
 
8255
      allow_undefined_flag=unsupported
 
8256
      always_export_symbols=no
 
8257
      enable_shared_with_static_runtimes=yes
 
8258
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8259
 
 
8260
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8261
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
8262
        # If the export-symbols file already is a .def file (1st line
 
8263
        # is EXPORTS), use it as is; otherwise, prepend...
 
8264
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8265
          cp $export_symbols $output_objdir/$soname.def;
 
8266
        else
 
8267
          echo EXPORTS > $output_objdir/$soname.def;
 
8268
          cat $export_symbols >> $output_objdir/$soname.def;
 
8269
        fi~
 
8270
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
8271
      else
 
8272
        ld_shlibs=no
 
8273
      fi
 
8274
      ;;
 
8275
 
 
8276
    netbsd*)
 
8277
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8278
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8279
        wlarc=
 
8280
      else
 
8281
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8282
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8283
      fi
 
8284
      ;;
 
8285
 
 
8286
    solaris* | sysv5*)
 
8287
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8288
        ld_shlibs=no
 
8289
        cat <<EOF 1>&2
 
8290
 
 
8291
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8292
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8293
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8294
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8295
*** your PATH or compiler configuration so that the native linker is
 
8296
*** used, and then restart.
 
8297
 
 
8298
EOF
 
8299
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8300
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8301
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8302
      else
 
8303
        ld_shlibs=no
 
8304
      fi
 
8305
      ;;
 
8306
 
 
8307
    sunos4*)
 
8308
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8309
      wlarc=
 
8310
      hardcode_direct=yes
 
8311
      hardcode_shlibpath_var=no
 
8312
      ;;
 
8313
 
 
8314
  linux*)
 
8315
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8316
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8317
        archive_cmds="$tmp_archive_cmds"
 
8318
      supports_anon_versioning=no
 
8319
      case `$LD -v 2>/dev/null` in
 
8320
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8321
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8322
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8323
        *\ 2.11.*) ;; # other 2.11 versions
 
8324
        *) supports_anon_versioning=yes ;;
 
8325
      esac
 
8326
      if test $supports_anon_versioning = yes; then
 
8327
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8328
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8329
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
8330
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8331
      else
 
8332
        archive_expsym_cmds="$tmp_archive_cmds"
 
8333
      fi
 
8334
    else
 
8335
      ld_shlibs=no
 
8336
    fi
 
8337
    ;;
 
8338
 
 
8339
    *)
 
8340
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8341
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8342
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8343
      else
 
8344
        ld_shlibs=no
 
8345
      fi
 
8346
      ;;
 
8347
    esac
 
8348
 
 
8349
    if test "$ld_shlibs" = yes; then
 
8350
      runpath_var=LD_RUN_PATH
 
8351
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8352
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
8353
      # ancient GNU ld didn't support --whole-archive et. al.
 
8354
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8355
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8356
      else
 
8357
        whole_archive_flag_spec=
 
8358
      fi
 
8359
    fi
 
8360
  else
 
8361
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8362
    case $host_os in
 
8363
    aix3*)
 
8364
      allow_undefined_flag=unsupported
 
8365
      always_export_symbols=yes
 
8366
      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'
 
8367
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8368
      # are no directories specified by -L.
 
8369
      hardcode_minus_L=yes
 
8370
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8371
        # Neither direct hardcoding nor static linking is supported with a
 
8372
        # broken collect2.
 
8373
        hardcode_direct=unsupported
 
8374
      fi
 
8375
      ;;
 
8376
 
 
8377
    aix4* | aix5*)
 
8378
      if test "$host_cpu" = ia64; then
 
8379
        # On IA64, the linker does run time linking by default, so we don't
 
8380
        # have to do anything special.
 
8381
        aix_use_runtimelinking=no
 
8382
        exp_sym_flag='-Bexport'
 
8383
        no_entry_flag=""
 
8384
      else
 
8385
        # If we're using GNU nm, then we don't want the "-C" option.
 
8386
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8387
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8388
          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'
 
8389
        else
 
8390
          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'
 
8391
        fi
 
8392
        aix_use_runtimelinking=no
 
8393
 
 
8394
        # Test if we are trying to use run time linking or normal
 
8395
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8396
        # need to do runtime linking.
 
8397
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8398
          for ld_flag in $LDFLAGS; do
 
8399
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8400
            aix_use_runtimelinking=yes
 
8401
            break
 
8402
          fi
 
8403
          done
 
8404
        esac
 
8405
 
 
8406
        exp_sym_flag='-bexport'
 
8407
        no_entry_flag='-bnoentry'
 
8408
      fi
 
8409
 
 
8410
      # When large executables or shared objects are built, AIX ld can
 
8411
      # have problems creating the table of contents.  If linking a library
 
8412
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8413
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8414
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8415
 
 
8416
      archive_cmds=''
 
8417
      hardcode_direct=yes
 
8418
      hardcode_libdir_separator=':'
 
8419
      link_all_deplibs=yes
 
8420
 
 
8421
      if test "$GCC" = yes; then
 
8422
        case $host_os in aix4.012|aix4.012.*)
 
8423
        # We only want to do this on AIX 4.2 and lower, the check
 
8424
        # below for broken collect2 doesn't work under 4.3+
 
8425
          collect2name=`${CC} -print-prog-name=collect2`
 
8426
          if test -f "$collect2name" && \
 
8427
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8428
          then
 
8429
          # We have reworked collect2
 
8430
          hardcode_direct=yes
 
8431
          else
 
8432
          # We have old collect2
 
8433
          hardcode_direct=unsupported
 
8434
          # It fails to find uninstalled libraries when the uninstalled
 
8435
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8436
          # to unsupported forces relinking
 
8437
          hardcode_minus_L=yes
 
8438
          hardcode_libdir_flag_spec='-L$libdir'
 
8439
          hardcode_libdir_separator=
 
8440
          fi
 
8441
        esac
 
8442
        shared_flag='-shared'
 
8443
      else
 
8444
        # not using gcc
 
8445
        if test "$host_cpu" = ia64; then
 
8446
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8447
        # chokes on -Wl,-G. The following line is correct:
 
8448
          shared_flag='-G'
 
8449
        else
 
8450
        if test "$aix_use_runtimelinking" = yes; then
 
8451
            shared_flag='${wl}-G'
 
8452
          else
 
8453
            shared_flag='${wl}-bM:SRE'
 
8454
        fi
 
8455
        fi
 
8456
      fi
 
8457
 
 
8458
      # It seems that -bexpall does not export symbols beginning with
 
8459
      # underscore (_), so it is better to generate a list of symbols to export.
 
8460
      always_export_symbols=yes
 
8461
      if test "$aix_use_runtimelinking" = yes; then
 
8462
        # Warning - without using the other runtime loading flags (-brtl),
 
8463
        # -berok will link without error, but may produce a broken library.
 
8464
        allow_undefined_flag='-berok'
 
8465
       # Determine the default libpath from the value encoded in an empty executable.
 
8466
       cat >conftest.$ac_ext <<_ACEOF
 
8467
/* confdefs.h.  */
 
8468
_ACEOF
 
8469
cat confdefs.h >>conftest.$ac_ext
 
8470
cat >>conftest.$ac_ext <<_ACEOF
 
8471
/* end confdefs.h.  */
 
8472
 
 
8473
int
 
8474
main ()
 
8475
{
 
8476
 
 
8477
  ;
 
8478
  return 0;
 
8479
}
 
8480
_ACEOF
 
8481
rm -f conftest.$ac_objext conftest$ac_exeext
 
8482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8483
  (eval $ac_link) 2>conftest.er1
 
8484
  ac_status=$?
 
8485
  grep -v '^ *+' conftest.er1 >conftest.err
 
8486
  rm -f conftest.er1
 
8487
  cat conftest.err >&5
 
8488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8489
  (exit $ac_status); } &&
 
8490
         { ac_try='test -z "$ac_c_werror_flag"
 
8491
                         || test ! -s conftest.err'
 
8492
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8493
  (eval $ac_try) 2>&5
 
8494
  ac_status=$?
 
8495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8496
  (exit $ac_status); }; } &&
 
8497
         { ac_try='test -s conftest$ac_exeext'
 
8498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8499
  (eval $ac_try) 2>&5
 
8500
  ac_status=$?
 
8501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8502
  (exit $ac_status); }; }; then
 
8503
 
 
8504
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8505
}'`
 
8506
# Check for a 64-bit object if we didn't find anything.
 
8507
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; }
 
8508
}'`; fi
 
8509
else
 
8510
  echo "$as_me: failed program was:" >&5
 
8511
sed 's/^/| /' conftest.$ac_ext >&5
 
8512
 
 
8513
fi
 
8514
rm -f conftest.err conftest.$ac_objext \
 
8515
      conftest$ac_exeext conftest.$ac_ext
 
8516
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8517
 
 
8518
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8519
        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"
 
8520
       else
 
8521
        if test "$host_cpu" = ia64; then
 
8522
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8523
          allow_undefined_flag="-z nodefs"
 
8524
          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"
 
8525
        else
 
8526
         # Determine the default libpath from the value encoded in an empty executable.
 
8527
         cat >conftest.$ac_ext <<_ACEOF
 
8528
/* confdefs.h.  */
 
8529
_ACEOF
 
8530
cat confdefs.h >>conftest.$ac_ext
 
8531
cat >>conftest.$ac_ext <<_ACEOF
 
8532
/* end confdefs.h.  */
 
8533
 
 
8534
int
 
8535
main ()
 
8536
{
 
8537
 
 
8538
  ;
 
8539
  return 0;
 
8540
}
 
8541
_ACEOF
 
8542
rm -f conftest.$ac_objext conftest$ac_exeext
 
8543
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8544
  (eval $ac_link) 2>conftest.er1
 
8545
  ac_status=$?
 
8546
  grep -v '^ *+' conftest.er1 >conftest.err
 
8547
  rm -f conftest.er1
 
8548
  cat conftest.err >&5
 
8549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8550
  (exit $ac_status); } &&
 
8551
         { ac_try='test -z "$ac_c_werror_flag"
 
8552
                         || test ! -s conftest.err'
 
8553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8554
  (eval $ac_try) 2>&5
 
8555
  ac_status=$?
 
8556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8557
  (exit $ac_status); }; } &&
 
8558
         { ac_try='test -s conftest$ac_exeext'
 
8559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8560
  (eval $ac_try) 2>&5
 
8561
  ac_status=$?
 
8562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8563
  (exit $ac_status); }; }; then
 
8564
 
 
8565
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8566
}'`
 
8567
# Check for a 64-bit object if we didn't find anything.
 
8568
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; }
 
8569
}'`; fi
 
8570
else
 
8571
  echo "$as_me: failed program was:" >&5
 
8572
sed 's/^/| /' conftest.$ac_ext >&5
 
8573
 
 
8574
fi
 
8575
rm -f conftest.err conftest.$ac_objext \
 
8576
      conftest$ac_exeext conftest.$ac_ext
 
8577
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8578
 
 
8579
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8580
          # Warning - without using the other run time loading flags,
 
8581
          # -berok will link without error, but may produce a broken library.
 
8582
          no_undefined_flag=' ${wl}-bernotok'
 
8583
          allow_undefined_flag=' ${wl}-berok'
 
8584
          # -bexpall does not export symbols beginning with underscore (_)
 
8585
          always_export_symbols=yes
 
8586
          # Exported symbols can be pulled into shared objects from archives
 
8587
          whole_archive_flag_spec=' '
 
8588
          archive_cmds_need_lc=yes
 
8589
          # This is similar to how AIX traditionally builds it's shared libraries.
 
8590
          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'
 
8591
        fi
 
8592
      fi
 
8593
      ;;
 
8594
 
 
8595
    amigaos*)
 
8596
      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)'
 
8597
      hardcode_libdir_flag_spec='-L$libdir'
 
8598
      hardcode_minus_L=yes
 
8599
      # see comment about different semantics on the GNU ld section
 
8600
      ld_shlibs=no
 
8601
      ;;
 
8602
 
 
8603
    bsdi[45]*)
 
8604
      export_dynamic_flag_spec=-rdynamic
 
8605
      ;;
 
8606
 
 
8607
    cygwin* | mingw* | pw32*)
 
8608
      # When not using gcc, we currently assume that we are using
 
8609
      # Microsoft Visual C++.
 
8610
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8611
      # no search path for DLLs.
 
8612
      hardcode_libdir_flag_spec=' '
 
8613
      allow_undefined_flag=unsupported
 
8614
      # Tell ltmain to make .lib files, not .a files.
 
8615
      libext=lib
 
8616
      # Tell ltmain to make .dll files, not .so files.
 
8617
      shrext_cmds=".dll"
 
8618
      # FIXME: Setting linknames here is a bad hack.
 
8619
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8620
      # The linker will automatically build a .lib file if we build a DLL.
 
8621
      old_archive_From_new_cmds='true'
 
8622
      # FIXME: Should let the user specify the lib program.
 
8623
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8624
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8625
      enable_shared_with_static_runtimes=yes
 
8626
      ;;
 
8627
 
 
8628
    darwin* | rhapsody*)
 
8629
      case "$host_os" in
 
8630
        rhapsody* | darwin1.[012])
 
8631
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8632
         ;;
 
8633
       *) # Darwin 1.3 on
 
8634
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8635
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8636
         else
 
8637
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8638
             10.[012])
 
8639
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8640
               ;;
 
8641
             10.*)
 
8642
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8643
               ;;
 
8644
           esac
 
8645
         fi
 
8646
         ;;
 
8647
      esac
 
8648
      archive_cmds_need_lc=no
 
8649
      hardcode_direct=no
 
8650
      hardcode_automatic=yes
 
8651
      hardcode_shlibpath_var=unsupported
 
8652
      whole_archive_flag_spec=''
 
8653
      link_all_deplibs=yes
 
8654
    if test "$GCC" = yes ; then
 
8655
        output_verbose_link_cmd='echo'
 
8656
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8657
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8658
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8659
      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}'
 
8660
      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}'
 
8661
    else
 
8662
      case "$cc_basename" in
 
8663
        xlc*)
 
8664
         output_verbose_link_cmd='echo'
 
8665
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8666
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8667
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8668
         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}'
 
8669
          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}'
 
8670
          ;;
 
8671
       *)
 
8672
         ld_shlibs=no
 
8673
          ;;
 
8674
      esac
 
8675
    fi
 
8676
      ;;
 
8677
 
 
8678
    dgux*)
 
8679
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8680
      hardcode_libdir_flag_spec='-L$libdir'
 
8681
      hardcode_shlibpath_var=no
 
8682
      ;;
 
8683
 
 
8684
    freebsd1*)
 
8685
      ld_shlibs=no
 
8686
      ;;
 
8687
 
 
8688
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8689
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8690
    # does not break anything, and helps significantly (at the cost of a little
 
8691
    # extra space).
 
8692
    freebsd2.2*)
 
8693
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8694
      hardcode_libdir_flag_spec='-R$libdir'
 
8695
      hardcode_direct=yes
 
8696
      hardcode_shlibpath_var=no
 
8697
      ;;
 
8698
 
 
8699
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8700
    freebsd2*)
 
8701
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8702
      hardcode_direct=yes
 
8703
      hardcode_minus_L=yes
 
8704
      hardcode_shlibpath_var=no
 
8705
      ;;
 
8706
 
 
8707
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8708
    freebsd* | kfreebsd*-gnu)
 
8709
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8710
      hardcode_libdir_flag_spec='-R$libdir'
 
8711
      hardcode_direct=yes
 
8712
      hardcode_shlibpath_var=no
 
8713
      ;;
 
8714
 
 
8715
    hpux9*)
 
8716
      if test "$GCC" = yes; then
 
8717
        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'
 
8718
      else
 
8719
        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'
 
8720
      fi
 
8721
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8722
      hardcode_libdir_separator=:
 
8723
      hardcode_direct=yes
 
8724
 
 
8725
      # hardcode_minus_L: Not really in the search PATH,
 
8726
      # but as the default location of the library.
 
8727
      hardcode_minus_L=yes
 
8728
      export_dynamic_flag_spec='${wl}-E'
 
8729
      ;;
 
8730
 
 
8731
    hpux10* | hpux11*)
 
8732
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8733
        case "$host_cpu" in
 
8734
        hppa*64*|ia64*)
 
8735
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8736
          ;;
 
8737
        *)
 
8738
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8739
          ;;
 
8740
        esac
 
8741
      else
 
8742
        case "$host_cpu" in
 
8743
        hppa*64*|ia64*)
 
8744
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8745
          ;;
 
8746
        *)
 
8747
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8748
          ;;
 
8749
        esac
 
8750
      fi
 
8751
      if test "$with_gnu_ld" = no; then
 
8752
        case "$host_cpu" in
 
8753
        hppa*64*)
 
8754
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8755
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8756
          hardcode_libdir_separator=:
 
8757
          hardcode_direct=no
 
8758
          hardcode_shlibpath_var=no
 
8759
          ;;
 
8760
        ia64*)
 
8761
          hardcode_libdir_flag_spec='-L$libdir'
 
8762
          hardcode_direct=no
 
8763
          hardcode_shlibpath_var=no
 
8764
 
 
8765
          # hardcode_minus_L: Not really in the search PATH,
 
8766
          # but as the default location of the library.
 
8767
          hardcode_minus_L=yes
 
8768
          ;;
 
8769
        *)
 
8770
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8771
          hardcode_libdir_separator=:
 
8772
          hardcode_direct=yes
 
8773
          export_dynamic_flag_spec='${wl}-E'
 
8774
 
 
8775
          # hardcode_minus_L: Not really in the search PATH,
 
8776
          # but as the default location of the library.
 
8777
          hardcode_minus_L=yes
 
8778
          ;;
 
8779
        esac
 
8780
      fi
 
8781
      ;;
 
8782
 
 
8783
    irix5* | irix6* | nonstopux*)
 
8784
      if test "$GCC" = yes; then
 
8785
        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'
 
8786
      else
 
8787
        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'
 
8788
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8789
      fi
 
8790
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8791
      hardcode_libdir_separator=:
 
8792
      link_all_deplibs=yes
 
8793
      ;;
 
8794
 
 
8795
    netbsd*)
 
8796
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8797
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8798
      else
 
8799
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8800
      fi
 
8801
      hardcode_libdir_flag_spec='-R$libdir'
 
8802
      hardcode_direct=yes
 
8803
      hardcode_shlibpath_var=no
 
8804
      ;;
 
8805
 
 
8806
    newsos6)
 
8807
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8808
      hardcode_direct=yes
 
8809
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8810
      hardcode_libdir_separator=:
 
8811
      hardcode_shlibpath_var=no
 
8812
      ;;
 
8813
 
 
8814
    openbsd*)
 
8815
      hardcode_direct=yes
 
8816
      hardcode_shlibpath_var=no
 
8817
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8818
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8819
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8820
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8821
        export_dynamic_flag_spec='${wl}-E'
 
8822
      else
 
8823
       case $host_os in
 
8824
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8825
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8826
           hardcode_libdir_flag_spec='-R$libdir'
 
8827
           ;;
 
8828
         *)
 
8829
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8830
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8831
           ;;
 
8832
       esac
 
8833
      fi
 
8834
      ;;
 
8835
 
 
8836
    os2*)
 
8837
      hardcode_libdir_flag_spec='-L$libdir'
 
8838
      hardcode_minus_L=yes
 
8839
      allow_undefined_flag=unsupported
 
8840
      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'
 
8841
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8842
      ;;
 
8843
 
 
8844
    osf3*)
 
8845
      if test "$GCC" = yes; then
 
8846
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8847
        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'
 
8848
      else
 
8849
        allow_undefined_flag=' -expect_unresolved \*'
 
8850
        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'
 
8851
      fi
 
8852
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8853
      hardcode_libdir_separator=:
 
8854
      ;;
 
8855
 
 
8856
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8857
      if test "$GCC" = yes; then
 
8858
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8859
        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'
 
8860
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8861
      else
 
8862
        allow_undefined_flag=' -expect_unresolved \*'
 
8863
        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'
 
8864
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8865
        $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'
 
8866
 
 
8867
        # Both c and cxx compiler support -rpath directly
 
8868
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8869
      fi
 
8870
      hardcode_libdir_separator=:
 
8871
      ;;
 
8872
 
 
8873
    sco3.2v5*)
 
8874
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8875
      hardcode_shlibpath_var=no
 
8876
      export_dynamic_flag_spec='${wl}-Bexport'
 
8877
      runpath_var=LD_RUN_PATH
 
8878
      hardcode_runpath_var=yes
 
8879
      ;;
 
8880
 
 
8881
    solaris*)
 
8882
      no_undefined_flag=' -z text'
 
8883
      if test "$GCC" = yes; then
 
8884
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8885
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8886
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8887
      else
 
8888
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8889
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8890
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8891
      fi
 
8892
      hardcode_libdir_flag_spec='-R$libdir'
 
8893
      hardcode_shlibpath_var=no
 
8894
      case $host_os in
 
8895
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8896
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8897
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8898
      esac
 
8899
      link_all_deplibs=yes
 
8900
      ;;
 
8901
 
 
8902
    sunos4*)
 
8903
      if test "x$host_vendor" = xsequent; then
 
8904
        # Use $CC to link under sequent, because it throws in some extra .o
 
8905
        # files that make .init and .fini sections work.
 
8906
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8907
      else
 
8908
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8909
      fi
 
8910
      hardcode_libdir_flag_spec='-L$libdir'
 
8911
      hardcode_direct=yes
 
8912
      hardcode_minus_L=yes
 
8913
      hardcode_shlibpath_var=no
 
8914
      ;;
 
8915
 
 
8916
    sysv4)
 
8917
      case $host_vendor in
 
8918
        sni)
 
8919
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8920
          hardcode_direct=yes # is this really true???
 
8921
        ;;
 
8922
        siemens)
 
8923
          ## LD is ld it makes a PLAMLIB
 
8924
          ## CC just makes a GrossModule.
 
8925
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8926
          reload_cmds='$CC -r -o $output$reload_objs'
 
8927
          hardcode_direct=no
 
8928
        ;;
 
8929
        motorola)
 
8930
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8931
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8932
        ;;
 
8933
      esac
 
8934
      runpath_var='LD_RUN_PATH'
 
8935
      hardcode_shlibpath_var=no
 
8936
      ;;
 
8937
 
 
8938
    sysv4.3*)
 
8939
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8940
      hardcode_shlibpath_var=no
 
8941
      export_dynamic_flag_spec='-Bexport'
 
8942
      ;;
 
8943
 
 
8944
    sysv4*MP*)
 
8945
      if test -d /usr/nec; then
 
8946
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8947
        hardcode_shlibpath_var=no
 
8948
        runpath_var=LD_RUN_PATH
 
8949
        hardcode_runpath_var=yes
 
8950
        ld_shlibs=yes
 
8951
      fi
 
8952
      ;;
 
8953
 
 
8954
    sysv4.2uw2*)
 
8955
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8956
      hardcode_direct=yes
 
8957
      hardcode_minus_L=no
 
8958
      hardcode_shlibpath_var=no
 
8959
      hardcode_runpath_var=yes
 
8960
      runpath_var=LD_RUN_PATH
 
8961
      ;;
 
8962
 
 
8963
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
8964
      no_undefined_flag='${wl}-z ${wl}text'
 
8965
      if test "$GCC" = yes; then
 
8966
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8967
      else
 
8968
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8969
      fi
 
8970
      runpath_var='LD_RUN_PATH'
 
8971
      hardcode_shlibpath_var=no
 
8972
      ;;
 
8973
 
 
8974
    sysv5*)
 
8975
      no_undefined_flag=' -z text'
 
8976
      # $CC -shared without GNU ld will not create a library from C++
 
8977
      # object files and a static libstdc++, better avoid it by now
 
8978
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8979
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8980
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8981
      hardcode_libdir_flag_spec=
 
8982
      hardcode_shlibpath_var=no
 
8983
      runpath_var='LD_RUN_PATH'
 
8984
      ;;
 
8985
 
 
8986
    uts4*)
 
8987
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8988
      hardcode_libdir_flag_spec='-L$libdir'
 
8989
      hardcode_shlibpath_var=no
 
8990
      ;;
 
8991
 
 
8992
    *)
 
8993
      ld_shlibs=no
 
8994
      ;;
 
8995
    esac
 
8996
  fi
 
8997
 
 
8998
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8999
echo "${ECHO_T}$ld_shlibs" >&6
 
9000
test "$ld_shlibs" = no && can_build_shared=no
 
9001
 
 
9002
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9003
if test "$GCC" = yes; then
 
9004
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9005
fi
 
9006
 
 
9007
#
 
9008
# Do we need to explicitly link libc?
 
9009
#
 
9010
case "x$archive_cmds_need_lc" in
 
9011
x|xyes)
 
9012
  # Assume -lc should be added
 
9013
  archive_cmds_need_lc=yes
 
9014
 
 
9015
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9016
    case $archive_cmds in
 
9017
    *'~'*)
 
9018
      # FIXME: we may have to deal with multi-command sequences.
 
9019
      ;;
 
9020
    '$CC '*)
 
9021
      # Test whether the compiler implicitly links with -lc since on some
 
9022
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9023
      # to ld, don't add -lc before -lgcc.
 
9024
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9025
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
9026
      $rm conftest*
 
9027
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9028
 
 
9029
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9030
  (eval $ac_compile) 2>&5
 
9031
  ac_status=$?
 
9032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9033
  (exit $ac_status); } 2>conftest.err; then
 
9034
        soname=conftest
 
9035
        lib=conftest
 
9036
        libobjs=conftest.$ac_objext
 
9037
        deplibs=
 
9038
        wl=$lt_prog_compiler_wl
 
9039
        compiler_flags=-v
 
9040
        linker_flags=-v
 
9041
        verstring=
 
9042
        output_objdir=.
 
9043
        libname=conftest
 
9044
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9045
        allow_undefined_flag=
 
9046
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9047
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9048
  ac_status=$?
 
9049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9050
  (exit $ac_status); }
 
9051
        then
 
9052
          archive_cmds_need_lc=no
 
9053
        else
 
9054
          archive_cmds_need_lc=yes
 
9055
        fi
 
9056
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9057
      else
 
9058
        cat conftest.err 1>&5
 
9059
      fi
 
9060
      $rm conftest*
 
9061
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9062
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
9063
      ;;
 
9064
    esac
 
9065
  fi
 
9066
  ;;
 
9067
esac
 
9068
 
 
9069
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9070
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
9071
library_names_spec=
 
9072
libname_spec='lib$name'
 
9073
soname_spec=
 
9074
shrext_cmds=".so"
 
9075
postinstall_cmds=
 
9076
postuninstall_cmds=
 
9077
finish_cmds=
 
9078
finish_eval=
 
9079
shlibpath_var=
 
9080
shlibpath_overrides_runpath=unknown
 
9081
version_type=none
 
9082
dynamic_linker="$host_os ld.so"
 
9083
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9084
if test "$GCC" = yes; then
 
9085
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9086
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
9087
    # if the path contains ";" then we assume it to be the separator
 
9088
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9089
    # assumed that no part of a normal pathname contains ";" but that should
 
9090
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9091
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9092
  else
 
9093
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9094
  fi
 
9095
else
 
9096
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9097
fi
 
9098
need_lib_prefix=unknown
 
9099
hardcode_into_libs=no
 
9100
 
 
9101
# when you set need_version to no, make sure it does not cause -set_version
 
9102
# flags to be left without arguments
 
9103
need_version=unknown
 
9104
 
 
9105
case $host_os in
 
9106
aix3*)
 
9107
  version_type=linux
 
9108
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9109
  shlibpath_var=LIBPATH
 
9110
 
 
9111
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9112
  soname_spec='${libname}${release}${shared_ext}$major'
 
9113
  ;;
 
9114
 
 
9115
aix4* | aix5*)
 
9116
  version_type=linux
 
9117
  need_lib_prefix=no
 
9118
  need_version=no
 
9119
  hardcode_into_libs=yes
 
9120
  if test "$host_cpu" = ia64; then
 
9121
    # AIX 5 supports IA64
 
9122
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9123
    shlibpath_var=LD_LIBRARY_PATH
 
9124
  else
 
9125
    # With GCC up to 2.95.x, collect2 would create an import file
 
9126
    # for dependence libraries.  The import file would start with
 
9127
    # the line `#! .'.  This would cause the generated library to
 
9128
    # depend on `.', always an invalid library.  This was fixed in
 
9129
    # development snapshots of GCC prior to 3.0.
 
9130
    case $host_os in
 
9131
      aix4 | aix4.[01] | aix4.[01].*)
 
9132
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9133
           echo ' yes '
 
9134
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9135
        :
 
9136
      else
 
9137
        can_build_shared=no
 
9138
      fi
 
9139
      ;;
 
9140
    esac
 
9141
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9142
    # soname into executable. Probably we can add versioning support to
 
9143
    # collect2, so additional links can be useful in future.
 
9144
    if test "$aix_use_runtimelinking" = yes; then
 
9145
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9146
      # instead of lib<name>.a to let people know that these are not
 
9147
      # typical AIX shared libraries.
 
9148
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9149
    else
 
9150
      # We preserve .a as extension for shared libraries through AIX4.2
 
9151
      # and later when we are not doing run time linking.
 
9152
      library_names_spec='${libname}${release}.a $libname.a'
 
9153
      soname_spec='${libname}${release}${shared_ext}$major'
 
9154
    fi
 
9155
    shlibpath_var=LIBPATH
 
9156
  fi
 
9157
  ;;
 
9158
 
 
9159
amigaos*)
 
9160
  library_names_spec='$libname.ixlibrary $libname.a'
 
9161
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9162
  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'
 
9163
  ;;
 
9164
 
 
9165
beos*)
 
9166
  library_names_spec='${libname}${shared_ext}'
 
9167
  dynamic_linker="$host_os ld.so"
 
9168
  shlibpath_var=LIBRARY_PATH
 
9169
  ;;
 
9170
 
 
9171
bsdi[45]*)
 
9172
  version_type=linux
 
9173
  need_version=no
 
9174
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9175
  soname_spec='${libname}${release}${shared_ext}$major'
 
9176
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9177
  shlibpath_var=LD_LIBRARY_PATH
 
9178
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9179
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9180
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9181
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9182
  # libtool to hard-code these into programs
 
9183
  ;;
 
9184
 
 
9185
cygwin* | mingw* | pw32*)
 
9186
  version_type=windows
 
9187
  shrext_cmds=".dll"
 
9188
  need_version=no
 
9189
  need_lib_prefix=no
 
9190
 
 
9191
  case $GCC,$host_os in
 
9192
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9193
    library_names_spec='$libname.dll.a'
 
9194
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9195
    postinstall_cmds='base_file=`basename \${file}`~
 
9196
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9197
      dldir=$destdir/`dirname \$dlpath`~
 
9198
      test -d \$dldir || mkdir -p \$dldir~
 
9199
      $install_prog $dir/$dlname \$dldir/$dlname'
 
9200
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9201
      dlpath=$dir/\$dldll~
 
9202
       $rm \$dlpath'
 
9203
    shlibpath_overrides_runpath=yes
 
9204
 
 
9205
    case $host_os in
 
9206
    cygwin*)
 
9207
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9208
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9209
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9210
      ;;
 
9211
    mingw*)
 
9212
      # MinGW DLLs use traditional 'lib' prefix
 
9213
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9214
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9215
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9216
        # It is most probably a Windows format PATH printed by
 
9217
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9218
        # path with ; separators, and with drive letters. We can handle the
 
9219
        # drive letters (cygwin fileutils understands them), so leave them,
 
9220
        # especially as we might pass files found there to a mingw objdump,
 
9221
        # which wouldn't understand a cygwinified path. Ahh.
 
9222
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9223
      else
 
9224
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9225
      fi
 
9226
      ;;
 
9227
    pw32*)
 
9228
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9229
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
9230
      ;;
 
9231
    esac
 
9232
    ;;
 
9233
 
 
9234
  *)
 
9235
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9236
    ;;
 
9237
  esac
 
9238
  dynamic_linker='Win32 ld.exe'
 
9239
  # FIXME: first we should search . and the directory the executable is in
 
9240
  shlibpath_var=PATH
 
9241
  ;;
 
9242
 
 
9243
darwin* | rhapsody*)
 
9244
  dynamic_linker="$host_os dyld"
 
9245
  version_type=darwin
 
9246
  need_lib_prefix=no
 
9247
  need_version=no
 
9248
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9249
  soname_spec='${libname}${release}${major}$shared_ext'
 
9250
  shlibpath_overrides_runpath=yes
 
9251
  shlibpath_var=DYLD_LIBRARY_PATH
 
9252
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
9253
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
9254
  if test "$GCC" = yes; then
 
9255
    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"`
 
9256
  else
 
9257
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
9258
  fi
 
9259
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9260
  ;;
 
9261
 
 
9262
dgux*)
 
9263
  version_type=linux
 
9264
  need_lib_prefix=no
 
9265
  need_version=no
 
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
freebsd1*)
 
9272
  dynamic_linker=no
 
9273
  ;;
 
9274
 
 
9275
kfreebsd*-gnu)
 
9276
  version_type=linux
 
9277
  need_lib_prefix=no
 
9278
  need_version=no
 
9279
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9280
  soname_spec='${libname}${release}${shared_ext}$major'
 
9281
  shlibpath_var=LD_LIBRARY_PATH
 
9282
  shlibpath_overrides_runpath=no
 
9283
  hardcode_into_libs=yes
 
9284
  dynamic_linker='GNU ld.so'
 
9285
  ;;
 
9286
 
 
9287
freebsd*)
 
9288
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
9289
  version_type=freebsd-$objformat
 
9290
  case $version_type in
 
9291
    freebsd-elf*)
 
9292
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9293
      need_version=no
 
9294
      need_lib_prefix=no
 
9295
      ;;
 
9296
    freebsd-*)
 
9297
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9298
      need_version=yes
 
9299
      ;;
 
9300
  esac
 
9301
  shlibpath_var=LD_LIBRARY_PATH
 
9302
  case $host_os in
 
9303
  freebsd2*)
 
9304
    shlibpath_overrides_runpath=yes
 
9305
    ;;
 
9306
  freebsd3.01* | freebsdelf3.01*)
 
9307
    shlibpath_overrides_runpath=yes
 
9308
    hardcode_into_libs=yes
 
9309
    ;;
 
9310
  *) # from 3.2 on
 
9311
    shlibpath_overrides_runpath=no
 
9312
    hardcode_into_libs=yes
 
9313
    ;;
 
9314
  esac
 
9315
  ;;
 
9316
 
 
9317
gnu*)
 
9318
  version_type=linux
 
9319
  need_lib_prefix=no
 
9320
  need_version=no
 
9321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9322
  soname_spec='${libname}${release}${shared_ext}$major'
 
9323
  shlibpath_var=LD_LIBRARY_PATH
 
9324
  hardcode_into_libs=yes
 
9325
  ;;
 
9326
 
 
9327
hpux9* | hpux10* | hpux11*)
 
9328
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9329
  # link against other versions.
 
9330
  version_type=sunos
 
9331
  need_lib_prefix=no
 
9332
  need_version=no
 
9333
  case "$host_cpu" in
 
9334
  ia64*)
 
9335
    shrext_cmds='.so'
 
9336
    hardcode_into_libs=yes
 
9337
    dynamic_linker="$host_os dld.so"
 
9338
    shlibpath_var=LD_LIBRARY_PATH
 
9339
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9340
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9341
    soname_spec='${libname}${release}${shared_ext}$major'
 
9342
    if test "X$HPUX_IA64_MODE" = X32; then
 
9343
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9344
    else
 
9345
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9346
    fi
 
9347
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9348
    ;;
 
9349
   hppa*64*)
 
9350
     shrext_cmds='.sl'
 
9351
     hardcode_into_libs=yes
 
9352
     dynamic_linker="$host_os dld.sl"
 
9353
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9354
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9355
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9356
     soname_spec='${libname}${release}${shared_ext}$major'
 
9357
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9358
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9359
     ;;
 
9360
   *)
 
9361
    shrext_cmds='.sl'
 
9362
    dynamic_linker="$host_os dld.sl"
 
9363
    shlibpath_var=SHLIB_PATH
 
9364
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9365
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9366
    soname_spec='${libname}${release}${shared_ext}$major'
 
9367
    ;;
 
9368
  esac
 
9369
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9370
  postinstall_cmds='chmod 555 $lib'
 
9371
  ;;
 
9372
 
 
9373
irix5* | irix6* | nonstopux*)
 
9374
  case $host_os in
 
9375
    nonstopux*) version_type=nonstopux ;;
 
9376
    *)
 
9377
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9378
                version_type=linux
 
9379
        else
 
9380
                version_type=irix
 
9381
        fi ;;
 
9382
  esac
 
9383
  need_lib_prefix=no
 
9384
  need_version=no
 
9385
  soname_spec='${libname}${release}${shared_ext}$major'
 
9386
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9387
  case $host_os in
 
9388
  irix5* | nonstopux*)
 
9389
    libsuff= shlibsuff=
 
9390
    ;;
 
9391
  *)
 
9392
    case $LD in # libtool.m4 will add one of these switches to LD
 
9393
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9394
      libsuff= shlibsuff= libmagic=32-bit;;
 
9395
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9396
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9397
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9398
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9399
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9400
    esac
 
9401
    ;;
 
9402
  esac
 
9403
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9404
  shlibpath_overrides_runpath=no
 
9405
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9406
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9407
  hardcode_into_libs=yes
 
9408
  ;;
 
9409
 
 
9410
# No shared lib support for Linux oldld, aout, or coff.
 
9411
linux*oldld* | linux*aout* | linux*coff*)
 
9412
  dynamic_linker=no
 
9413
  ;;
 
9414
 
 
9415
# This must be Linux ELF.
 
9416
linux*)
 
9417
  version_type=linux
 
9418
  need_lib_prefix=no
 
9419
  need_version=no
 
9420
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9421
  soname_spec='${libname}${release}${shared_ext}$major'
 
9422
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9423
  shlibpath_var=LD_LIBRARY_PATH
 
9424
  shlibpath_overrides_runpath=no
 
9425
  # This implies no fast_install, which is unacceptable.
 
9426
  # Some rework will be needed to allow for fast_install
 
9427
  # before this can be enabled.
 
9428
  hardcode_into_libs=yes
 
9429
 
 
9430
  # Append ld.so.conf contents to the search path
 
9431
  if test -f /etc/ld.so.conf; then
 
9432
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
9433
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9434
  fi
 
9435
 
 
9436
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9437
  # powerpc, because MkLinux only supported shared libraries with the
 
9438
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9439
  # most powerpc-linux boxes support dynamic linking these days and
 
9440
  # people can always --disable-shared, the test was removed, and we
 
9441
  # assume the GNU/Linux dynamic linker is in use.
 
9442
  dynamic_linker='GNU/Linux ld.so'
 
9443
  ;;
 
9444
 
 
9445
knetbsd*-gnu)
 
9446
  version_type=linux
 
9447
  need_lib_prefix=no
 
9448
  need_version=no
 
9449
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9450
  soname_spec='${libname}${release}${shared_ext}$major'
 
9451
  shlibpath_var=LD_LIBRARY_PATH
 
9452
  shlibpath_overrides_runpath=no
 
9453
  hardcode_into_libs=yes
 
9454
  dynamic_linker='GNU ld.so'
 
9455
  ;;
 
9456
 
 
9457
netbsd*)
 
9458
  version_type=sunos
 
9459
  need_lib_prefix=no
 
9460
  need_version=no
 
9461
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9462
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9463
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9464
    dynamic_linker='NetBSD (a.out) ld.so'
 
9465
  else
 
9466
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9467
    soname_spec='${libname}${release}${shared_ext}$major'
 
9468
    dynamic_linker='NetBSD ld.elf_so'
 
9469
  fi
 
9470
  shlibpath_var=LD_LIBRARY_PATH
 
9471
  shlibpath_overrides_runpath=yes
 
9472
  hardcode_into_libs=yes
 
9473
  ;;
 
9474
 
 
9475
newsos6)
 
9476
  version_type=linux
 
9477
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9478
  shlibpath_var=LD_LIBRARY_PATH
 
9479
  shlibpath_overrides_runpath=yes
 
9480
  ;;
 
9481
 
 
9482
nto-qnx*)
 
9483
  version_type=linux
 
9484
  need_lib_prefix=no
 
9485
  need_version=no
 
9486
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9487
  soname_spec='${libname}${release}${shared_ext}$major'
 
9488
  shlibpath_var=LD_LIBRARY_PATH
 
9489
  shlibpath_overrides_runpath=yes
 
9490
  ;;
 
9491
 
 
9492
openbsd*)
 
9493
  version_type=sunos
 
9494
  need_lib_prefix=no
 
9495
  need_version=no
 
9496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9497
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9498
  shlibpath_var=LD_LIBRARY_PATH
 
9499
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9500
    case $host_os in
 
9501
      openbsd2.[89] | openbsd2.[89].*)
 
9502
        shlibpath_overrides_runpath=no
 
9503
        ;;
 
9504
      *)
 
9505
        shlibpath_overrides_runpath=yes
 
9506
        ;;
 
9507
      esac
 
9508
  else
 
9509
    shlibpath_overrides_runpath=yes
 
9510
  fi
 
9511
  ;;
 
9512
 
 
9513
os2*)
 
9514
  libname_spec='$name'
 
9515
  shrext_cmds=".dll"
 
9516
  need_lib_prefix=no
 
9517
  library_names_spec='$libname${shared_ext} $libname.a'
 
9518
  dynamic_linker='OS/2 ld.exe'
 
9519
  shlibpath_var=LIBPATH
 
9520
  ;;
 
9521
 
 
9522
osf3* | osf4* | osf5*)
 
9523
  version_type=osf
 
9524
  need_lib_prefix=no
 
9525
  need_version=no
 
9526
  soname_spec='${libname}${release}${shared_ext}$major'
 
9527
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9528
  shlibpath_var=LD_LIBRARY_PATH
 
9529
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9530
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9531
  ;;
 
9532
 
 
9533
sco3.2v5*)
 
9534
  version_type=osf
 
9535
  soname_spec='${libname}${release}${shared_ext}$major'
 
9536
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9537
  shlibpath_var=LD_LIBRARY_PATH
 
9538
  ;;
 
9539
 
 
9540
solaris*)
 
9541
  version_type=linux
 
9542
  need_lib_prefix=no
 
9543
  need_version=no
 
9544
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9545
  soname_spec='${libname}${release}${shared_ext}$major'
 
9546
  shlibpath_var=LD_LIBRARY_PATH
 
9547
  shlibpath_overrides_runpath=yes
 
9548
  hardcode_into_libs=yes
 
9549
  # ldd complains unless libraries are executable
 
9550
  postinstall_cmds='chmod +x $lib'
 
9551
  ;;
 
9552
 
 
9553
sunos4*)
 
9554
  version_type=sunos
 
9555
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9556
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9557
  shlibpath_var=LD_LIBRARY_PATH
 
9558
  shlibpath_overrides_runpath=yes
 
9559
  if test "$with_gnu_ld" = yes; then
 
9560
    need_lib_prefix=no
 
9561
  fi
 
9562
  need_version=yes
 
9563
  ;;
 
9564
 
 
9565
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9566
  version_type=linux
 
9567
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9568
  soname_spec='${libname}${release}${shared_ext}$major'
 
9569
  shlibpath_var=LD_LIBRARY_PATH
 
9570
  case $host_vendor in
 
9571
    sni)
 
9572
      shlibpath_overrides_runpath=no
 
9573
      need_lib_prefix=no
 
9574
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9575
      runpath_var=LD_RUN_PATH
 
9576
      ;;
 
9577
    siemens)
 
9578
      need_lib_prefix=no
 
9579
      ;;
 
9580
    motorola)
 
9581
      need_lib_prefix=no
 
9582
      need_version=no
 
9583
      shlibpath_overrides_runpath=no
 
9584
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9585
      ;;
 
9586
  esac
 
9587
  ;;
 
9588
 
 
9589
sysv4*MP*)
 
9590
  if test -d /usr/nec ;then
 
9591
    version_type=linux
 
9592
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9593
    soname_spec='$libname${shared_ext}.$major'
 
9594
    shlibpath_var=LD_LIBRARY_PATH
 
9595
  fi
 
9596
  ;;
 
9597
 
 
9598
uts4*)
 
9599
  version_type=linux
 
9600
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9601
  soname_spec='${libname}${release}${shared_ext}$major'
 
9602
  shlibpath_var=LD_LIBRARY_PATH
 
9603
  ;;
 
9604
 
 
9605
*)
 
9606
  dynamic_linker=no
 
9607
  ;;
 
9608
esac
 
9609
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9610
echo "${ECHO_T}$dynamic_linker" >&6
 
9611
test "$dynamic_linker" = no && can_build_shared=no
 
9612
 
 
9613
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9614
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
9615
hardcode_action=
 
9616
if test -n "$hardcode_libdir_flag_spec" || \
 
9617
   test -n "$runpath_var" || \
 
9618
   test "X$hardcode_automatic" = "Xyes" ; then
 
9619
 
 
9620
  # We can hardcode non-existant directories.
 
9621
  if test "$hardcode_direct" != no &&
 
9622
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9623
     # have to relink, otherwise we might link with an installed library
 
9624
     # when we should be linking with a yet-to-be-installed one
 
9625
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9626
     test "$hardcode_minus_L" != no; then
 
9627
    # Linking always hardcodes the temporary library directory.
 
9628
    hardcode_action=relink
 
9629
  else
 
9630
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9631
    hardcode_action=immediate
 
9632
  fi
 
9633
else
 
9634
  # We cannot hardcode anything, or else we can only hardcode existing
 
9635
  # directories.
 
9636
  hardcode_action=unsupported
 
9637
fi
 
9638
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9639
echo "${ECHO_T}$hardcode_action" >&6
 
9640
 
 
9641
if test "$hardcode_action" = relink; then
 
9642
  # Fast installation is not supported
 
9643
  enable_fast_install=no
 
9644
elif test "$shlibpath_overrides_runpath" = yes ||
 
9645
     test "$enable_shared" = no; then
 
9646
  # Fast installation is not necessary
 
9647
  enable_fast_install=needless
 
9648
fi
 
9649
 
 
9650
striplib=
 
9651
old_striplib=
 
9652
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9653
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
9654
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9655
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9656
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9657
  echo "$as_me:$LINENO: result: yes" >&5
 
9658
echo "${ECHO_T}yes" >&6
 
9659
else
 
9660
# FIXME - insert some real tests, host_os isn't really good enough
 
9661
  case $host_os in
 
9662
   darwin*)
 
9663
       if test -n "$STRIP" ; then
 
9664
         striplib="$STRIP -x"
 
9665
         echo "$as_me:$LINENO: result: yes" >&5
 
9666
echo "${ECHO_T}yes" >&6
 
9667
       else
 
9668
  echo "$as_me:$LINENO: result: no" >&5
 
9669
echo "${ECHO_T}no" >&6
 
9670
fi
 
9671
       ;;
 
9672
   *)
 
9673
  echo "$as_me:$LINENO: result: no" >&5
 
9674
echo "${ECHO_T}no" >&6
 
9675
    ;;
 
9676
  esac
 
9677
fi
 
9678
 
 
9679
if test "x$enable_dlopen" != xyes; then
 
9680
  enable_dlopen=unknown
 
9681
  enable_dlopen_self=unknown
 
9682
  enable_dlopen_self_static=unknown
 
9683
else
 
9684
  lt_cv_dlopen=no
 
9685
  lt_cv_dlopen_libs=
 
9686
 
 
9687
  case $host_os in
 
9688
  beos*)
 
9689
    lt_cv_dlopen="load_add_on"
 
9690
    lt_cv_dlopen_libs=
 
9691
    lt_cv_dlopen_self=yes
 
9692
    ;;
 
9693
 
 
9694
  mingw* | pw32*)
 
9695
    lt_cv_dlopen="LoadLibrary"
 
9696
    lt_cv_dlopen_libs=
 
9697
   ;;
 
9698
 
 
9699
  cygwin*)
 
9700
    lt_cv_dlopen="dlopen"
 
9701
    lt_cv_dlopen_libs=
 
9702
   ;;
 
9703
 
 
9704
  darwin*)
 
9705
  # if libdl is installed we need to link against it
 
9706
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9707
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9708
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9710
else
 
9711
  ac_check_lib_save_LIBS=$LIBS
 
9712
LIBS="-ldl  $LIBS"
 
9713
cat >conftest.$ac_ext <<_ACEOF
 
9714
/* confdefs.h.  */
 
9715
_ACEOF
 
9716
cat confdefs.h >>conftest.$ac_ext
 
9717
cat >>conftest.$ac_ext <<_ACEOF
 
9718
/* end confdefs.h.  */
 
9719
 
 
9720
/* Override any gcc2 internal prototype to avoid an error.  */
 
9721
#ifdef __cplusplus
 
9722
extern "C"
 
9723
#endif
 
9724
/* We use char because int might match the return type of a gcc2
 
9725
   builtin and then its argument prototype would still apply.  */
 
9726
char dlopen ();
 
9727
int
 
9728
main ()
 
9729
{
 
9730
dlopen ();
 
9731
  ;
 
9732
  return 0;
 
9733
}
 
9734
_ACEOF
 
9735
rm -f conftest.$ac_objext conftest$ac_exeext
 
9736
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9737
  (eval $ac_link) 2>conftest.er1
 
9738
  ac_status=$?
 
9739
  grep -v '^ *+' conftest.er1 >conftest.err
 
9740
  rm -f conftest.er1
 
9741
  cat conftest.err >&5
 
9742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9743
  (exit $ac_status); } &&
 
9744
         { ac_try='test -z "$ac_c_werror_flag"
 
9745
                         || test ! -s conftest.err'
 
9746
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9747
  (eval $ac_try) 2>&5
 
9748
  ac_status=$?
 
9749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9750
  (exit $ac_status); }; } &&
 
9751
         { ac_try='test -s conftest$ac_exeext'
 
9752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9753
  (eval $ac_try) 2>&5
 
9754
  ac_status=$?
 
9755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9756
  (exit $ac_status); }; }; then
 
9757
  ac_cv_lib_dl_dlopen=yes
 
9758
else
 
9759
  echo "$as_me: failed program was:" >&5
 
9760
sed 's/^/| /' conftest.$ac_ext >&5
 
9761
 
 
9762
ac_cv_lib_dl_dlopen=no
 
9763
fi
 
9764
rm -f conftest.err conftest.$ac_objext \
 
9765
      conftest$ac_exeext conftest.$ac_ext
 
9766
LIBS=$ac_check_lib_save_LIBS
 
9767
fi
 
9768
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9769
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9770
if test $ac_cv_lib_dl_dlopen = yes; then
 
9771
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9772
else
 
9773
 
 
9774
    lt_cv_dlopen="dyld"
 
9775
    lt_cv_dlopen_libs=
 
9776
    lt_cv_dlopen_self=yes
 
9777
 
 
9778
fi
 
9779
 
 
9780
   ;;
 
9781
 
 
9782
  *)
 
9783
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
9784
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
9785
if test "${ac_cv_func_shl_load+set}" = set; then
 
9786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9787
else
 
9788
  cat >conftest.$ac_ext <<_ACEOF
 
9789
/* confdefs.h.  */
 
9790
_ACEOF
 
9791
cat confdefs.h >>conftest.$ac_ext
 
9792
cat >>conftest.$ac_ext <<_ACEOF
 
9793
/* end confdefs.h.  */
 
9794
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9795
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9796
#define shl_load innocuous_shl_load
 
9797
 
 
9798
/* System header to define __stub macros and hopefully few prototypes,
 
9799
    which can conflict with char shl_load (); below.
 
9800
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9801
    <limits.h> exists even on freestanding compilers.  */
 
9802
 
 
9803
#ifdef __STDC__
 
9804
# include <limits.h>
 
9805
#else
 
9806
# include <assert.h>
 
9807
#endif
 
9808
 
 
9809
#undef shl_load
 
9810
 
 
9811
/* Override any gcc2 internal prototype to avoid an error.  */
 
9812
#ifdef __cplusplus
 
9813
extern "C"
 
9814
{
 
9815
#endif
 
9816
/* We use char because int might match the return type of a gcc2
 
9817
   builtin and then its argument prototype would still apply.  */
 
9818
char shl_load ();
 
9819
/* The GNU C library defines this for functions which it implements
 
9820
    to always fail with ENOSYS.  Some functions are actually named
 
9821
    something starting with __ and the normal name is an alias.  */
 
9822
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
9823
choke me
 
9824
#else
 
9825
char (*f) () = shl_load;
 
9826
#endif
 
9827
#ifdef __cplusplus
 
9828
}
 
9829
#endif
 
9830
 
 
9831
int
 
9832
main ()
 
9833
{
 
9834
return f != shl_load;
 
9835
  ;
 
9836
  return 0;
 
9837
}
 
9838
_ACEOF
 
9839
rm -f conftest.$ac_objext conftest$ac_exeext
 
9840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9841
  (eval $ac_link) 2>conftest.er1
 
9842
  ac_status=$?
 
9843
  grep -v '^ *+' conftest.er1 >conftest.err
 
9844
  rm -f conftest.er1
 
9845
  cat conftest.err >&5
 
9846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9847
  (exit $ac_status); } &&
 
9848
         { ac_try='test -z "$ac_c_werror_flag"
 
9849
                         || test ! -s conftest.err'
 
9850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9851
  (eval $ac_try) 2>&5
 
9852
  ac_status=$?
 
9853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9854
  (exit $ac_status); }; } &&
 
9855
         { ac_try='test -s conftest$ac_exeext'
 
9856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9857
  (eval $ac_try) 2>&5
 
9858
  ac_status=$?
 
9859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9860
  (exit $ac_status); }; }; then
 
9861
  ac_cv_func_shl_load=yes
 
9862
else
 
9863
  echo "$as_me: failed program was:" >&5
 
9864
sed 's/^/| /' conftest.$ac_ext >&5
 
9865
 
 
9866
ac_cv_func_shl_load=no
 
9867
fi
 
9868
rm -f conftest.err conftest.$ac_objext \
 
9869
      conftest$ac_exeext conftest.$ac_ext
 
9870
fi
 
9871
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9872
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
9873
if test $ac_cv_func_shl_load = yes; then
 
9874
  lt_cv_dlopen="shl_load"
 
9875
else
 
9876
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9877
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
9878
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9880
else
 
9881
  ac_check_lib_save_LIBS=$LIBS
 
9882
LIBS="-ldld  $LIBS"
 
9883
cat >conftest.$ac_ext <<_ACEOF
 
9884
/* confdefs.h.  */
 
9885
_ACEOF
 
9886
cat confdefs.h >>conftest.$ac_ext
 
9887
cat >>conftest.$ac_ext <<_ACEOF
 
9888
/* end confdefs.h.  */
 
9889
 
 
9890
/* Override any gcc2 internal prototype to avoid an error.  */
 
9891
#ifdef __cplusplus
 
9892
extern "C"
 
9893
#endif
 
9894
/* We use char because int might match the return type of a gcc2
 
9895
   builtin and then its argument prototype would still apply.  */
 
9896
char shl_load ();
 
9897
int
 
9898
main ()
 
9899
{
 
9900
shl_load ();
 
9901
  ;
 
9902
  return 0;
 
9903
}
 
9904
_ACEOF
 
9905
rm -f conftest.$ac_objext conftest$ac_exeext
 
9906
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9907
  (eval $ac_link) 2>conftest.er1
 
9908
  ac_status=$?
 
9909
  grep -v '^ *+' conftest.er1 >conftest.err
 
9910
  rm -f conftest.er1
 
9911
  cat conftest.err >&5
 
9912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9913
  (exit $ac_status); } &&
 
9914
         { ac_try='test -z "$ac_c_werror_flag"
 
9915
                         || test ! -s conftest.err'
 
9916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9917
  (eval $ac_try) 2>&5
 
9918
  ac_status=$?
 
9919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9920
  (exit $ac_status); }; } &&
 
9921
         { ac_try='test -s conftest$ac_exeext'
 
9922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9923
  (eval $ac_try) 2>&5
 
9924
  ac_status=$?
 
9925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9926
  (exit $ac_status); }; }; then
 
9927
  ac_cv_lib_dld_shl_load=yes
 
9928
else
 
9929
  echo "$as_me: failed program was:" >&5
 
9930
sed 's/^/| /' conftest.$ac_ext >&5
 
9931
 
 
9932
ac_cv_lib_dld_shl_load=no
 
9933
fi
 
9934
rm -f conftest.err conftest.$ac_objext \
 
9935
      conftest$ac_exeext conftest.$ac_ext
 
9936
LIBS=$ac_check_lib_save_LIBS
 
9937
fi
 
9938
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9939
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
9940
if test $ac_cv_lib_dld_shl_load = yes; then
 
9941
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9942
else
 
9943
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
9944
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
9945
if test "${ac_cv_func_dlopen+set}" = set; then
 
9946
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9947
else
 
9948
  cat >conftest.$ac_ext <<_ACEOF
 
9949
/* confdefs.h.  */
 
9950
_ACEOF
 
9951
cat confdefs.h >>conftest.$ac_ext
 
9952
cat >>conftest.$ac_ext <<_ACEOF
 
9953
/* end confdefs.h.  */
 
9954
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9955
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9956
#define dlopen innocuous_dlopen
 
9957
 
 
9958
/* System header to define __stub macros and hopefully few prototypes,
 
9959
    which can conflict with char dlopen (); below.
 
9960
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9961
    <limits.h> exists even on freestanding compilers.  */
 
9962
 
 
9963
#ifdef __STDC__
 
9964
# include <limits.h>
 
9965
#else
 
9966
# include <assert.h>
 
9967
#endif
 
9968
 
 
9969
#undef dlopen
 
9970
 
 
9971
/* Override any gcc2 internal prototype to avoid an error.  */
 
9972
#ifdef __cplusplus
 
9973
extern "C"
 
9974
{
 
9975
#endif
 
9976
/* We use char because int might match the return type of a gcc2
 
9977
   builtin and then its argument prototype would still apply.  */
 
9978
char dlopen ();
 
9979
/* The GNU C library defines this for functions which it implements
 
9980
    to always fail with ENOSYS.  Some functions are actually named
 
9981
    something starting with __ and the normal name is an alias.  */
 
9982
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9983
choke me
 
9984
#else
 
9985
char (*f) () = dlopen;
 
9986
#endif
 
9987
#ifdef __cplusplus
 
9988
}
 
9989
#endif
 
9990
 
 
9991
int
 
9992
main ()
 
9993
{
 
9994
return f != dlopen;
 
9995
  ;
 
9996
  return 0;
 
9997
}
 
9998
_ACEOF
 
9999
rm -f conftest.$ac_objext conftest$ac_exeext
 
10000
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10001
  (eval $ac_link) 2>conftest.er1
 
10002
  ac_status=$?
 
10003
  grep -v '^ *+' conftest.er1 >conftest.err
 
10004
  rm -f conftest.er1
 
10005
  cat conftest.err >&5
 
10006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10007
  (exit $ac_status); } &&
 
10008
         { ac_try='test -z "$ac_c_werror_flag"
 
10009
                         || test ! -s conftest.err'
 
10010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10011
  (eval $ac_try) 2>&5
 
10012
  ac_status=$?
 
10013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10014
  (exit $ac_status); }; } &&
 
10015
         { ac_try='test -s conftest$ac_exeext'
 
10016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10017
  (eval $ac_try) 2>&5
 
10018
  ac_status=$?
 
10019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10020
  (exit $ac_status); }; }; then
 
10021
  ac_cv_func_dlopen=yes
 
10022
else
 
10023
  echo "$as_me: failed program was:" >&5
 
10024
sed 's/^/| /' conftest.$ac_ext >&5
 
10025
 
 
10026
ac_cv_func_dlopen=no
 
10027
fi
 
10028
rm -f conftest.err conftest.$ac_objext \
 
10029
      conftest$ac_exeext conftest.$ac_ext
 
10030
fi
 
10031
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10032
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
10033
if test $ac_cv_func_dlopen = yes; then
 
10034
  lt_cv_dlopen="dlopen"
 
10035
else
 
10036
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10037
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10038
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10040
else
 
10041
  ac_check_lib_save_LIBS=$LIBS
 
10042
LIBS="-ldl  $LIBS"
 
10043
cat >conftest.$ac_ext <<_ACEOF
 
10044
/* confdefs.h.  */
 
10045
_ACEOF
 
10046
cat confdefs.h >>conftest.$ac_ext
 
10047
cat >>conftest.$ac_ext <<_ACEOF
 
10048
/* end confdefs.h.  */
 
10049
 
 
10050
/* Override any gcc2 internal prototype to avoid an error.  */
 
10051
#ifdef __cplusplus
 
10052
extern "C"
 
10053
#endif
 
10054
/* We use char because int might match the return type of a gcc2
 
10055
   builtin and then its argument prototype would still apply.  */
 
10056
char dlopen ();
 
10057
int
 
10058
main ()
 
10059
{
 
10060
dlopen ();
 
10061
  ;
 
10062
  return 0;
 
10063
}
 
10064
_ACEOF
 
10065
rm -f conftest.$ac_objext conftest$ac_exeext
 
10066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10067
  (eval $ac_link) 2>conftest.er1
 
10068
  ac_status=$?
 
10069
  grep -v '^ *+' conftest.er1 >conftest.err
 
10070
  rm -f conftest.er1
 
10071
  cat conftest.err >&5
 
10072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10073
  (exit $ac_status); } &&
 
10074
         { ac_try='test -z "$ac_c_werror_flag"
 
10075
                         || test ! -s conftest.err'
 
10076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10077
  (eval $ac_try) 2>&5
 
10078
  ac_status=$?
 
10079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10080
  (exit $ac_status); }; } &&
 
10081
         { ac_try='test -s conftest$ac_exeext'
 
10082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10083
  (eval $ac_try) 2>&5
 
10084
  ac_status=$?
 
10085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10086
  (exit $ac_status); }; }; then
 
10087
  ac_cv_lib_dl_dlopen=yes
 
10088
else
 
10089
  echo "$as_me: failed program was:" >&5
 
10090
sed 's/^/| /' conftest.$ac_ext >&5
 
10091
 
 
10092
ac_cv_lib_dl_dlopen=no
 
10093
fi
 
10094
rm -f conftest.err conftest.$ac_objext \
 
10095
      conftest$ac_exeext conftest.$ac_ext
 
10096
LIBS=$ac_check_lib_save_LIBS
 
10097
fi
 
10098
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10099
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10100
if test $ac_cv_lib_dl_dlopen = yes; then
 
10101
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10102
else
 
10103
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10104
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
10105
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10107
else
 
10108
  ac_check_lib_save_LIBS=$LIBS
 
10109
LIBS="-lsvld  $LIBS"
 
10110
cat >conftest.$ac_ext <<_ACEOF
 
10111
/* confdefs.h.  */
 
10112
_ACEOF
 
10113
cat confdefs.h >>conftest.$ac_ext
 
10114
cat >>conftest.$ac_ext <<_ACEOF
 
10115
/* end confdefs.h.  */
 
10116
 
 
10117
/* Override any gcc2 internal prototype to avoid an error.  */
 
10118
#ifdef __cplusplus
 
10119
extern "C"
 
10120
#endif
 
10121
/* We use char because int might match the return type of a gcc2
 
10122
   builtin and then its argument prototype would still apply.  */
 
10123
char dlopen ();
 
10124
int
 
10125
main ()
 
10126
{
 
10127
dlopen ();
 
10128
  ;
 
10129
  return 0;
 
10130
}
 
10131
_ACEOF
 
10132
rm -f conftest.$ac_objext conftest$ac_exeext
 
10133
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10134
  (eval $ac_link) 2>conftest.er1
 
10135
  ac_status=$?
 
10136
  grep -v '^ *+' conftest.er1 >conftest.err
 
10137
  rm -f conftest.er1
 
10138
  cat conftest.err >&5
 
10139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10140
  (exit $ac_status); } &&
 
10141
         { ac_try='test -z "$ac_c_werror_flag"
 
10142
                         || test ! -s conftest.err'
 
10143
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10144
  (eval $ac_try) 2>&5
 
10145
  ac_status=$?
 
10146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10147
  (exit $ac_status); }; } &&
 
10148
         { ac_try='test -s conftest$ac_exeext'
 
10149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10150
  (eval $ac_try) 2>&5
 
10151
  ac_status=$?
 
10152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10153
  (exit $ac_status); }; }; then
 
10154
  ac_cv_lib_svld_dlopen=yes
 
10155
else
 
10156
  echo "$as_me: failed program was:" >&5
 
10157
sed 's/^/| /' conftest.$ac_ext >&5
 
10158
 
 
10159
ac_cv_lib_svld_dlopen=no
 
10160
fi
 
10161
rm -f conftest.err conftest.$ac_objext \
 
10162
      conftest$ac_exeext conftest.$ac_ext
 
10163
LIBS=$ac_check_lib_save_LIBS
 
10164
fi
 
10165
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10166
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
10167
if test $ac_cv_lib_svld_dlopen = yes; then
 
10168
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10169
else
 
10170
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10171
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
10172
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10174
else
 
10175
  ac_check_lib_save_LIBS=$LIBS
 
10176
LIBS="-ldld  $LIBS"
 
10177
cat >conftest.$ac_ext <<_ACEOF
 
10178
/* confdefs.h.  */
 
10179
_ACEOF
 
10180
cat confdefs.h >>conftest.$ac_ext
 
10181
cat >>conftest.$ac_ext <<_ACEOF
 
10182
/* end confdefs.h.  */
 
10183
 
 
10184
/* Override any gcc2 internal prototype to avoid an error.  */
 
10185
#ifdef __cplusplus
 
10186
extern "C"
 
10187
#endif
 
10188
/* We use char because int might match the return type of a gcc2
 
10189
   builtin and then its argument prototype would still apply.  */
 
10190
char dld_link ();
 
10191
int
 
10192
main ()
 
10193
{
 
10194
dld_link ();
 
10195
  ;
 
10196
  return 0;
 
10197
}
 
10198
_ACEOF
 
10199
rm -f conftest.$ac_objext conftest$ac_exeext
 
10200
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10201
  (eval $ac_link) 2>conftest.er1
 
10202
  ac_status=$?
 
10203
  grep -v '^ *+' conftest.er1 >conftest.err
 
10204
  rm -f conftest.er1
 
10205
  cat conftest.err >&5
 
10206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10207
  (exit $ac_status); } &&
 
10208
         { ac_try='test -z "$ac_c_werror_flag"
 
10209
                         || test ! -s conftest.err'
 
10210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10211
  (eval $ac_try) 2>&5
 
10212
  ac_status=$?
 
10213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10214
  (exit $ac_status); }; } &&
 
10215
         { ac_try='test -s conftest$ac_exeext'
 
10216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10217
  (eval $ac_try) 2>&5
 
10218
  ac_status=$?
 
10219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10220
  (exit $ac_status); }; }; then
 
10221
  ac_cv_lib_dld_dld_link=yes
 
10222
else
 
10223
  echo "$as_me: failed program was:" >&5
 
10224
sed 's/^/| /' conftest.$ac_ext >&5
 
10225
 
 
10226
ac_cv_lib_dld_dld_link=no
 
10227
fi
 
10228
rm -f conftest.err conftest.$ac_objext \
 
10229
      conftest$ac_exeext conftest.$ac_ext
 
10230
LIBS=$ac_check_lib_save_LIBS
 
10231
fi
 
10232
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10233
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
10234
if test $ac_cv_lib_dld_dld_link = yes; then
 
10235
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10236
fi
 
10237
 
 
10238
 
 
10239
fi
 
10240
 
 
10241
 
 
10242
fi
 
10243
 
 
10244
 
 
10245
fi
 
10246
 
 
10247
 
 
10248
fi
 
10249
 
 
10250
 
 
10251
fi
 
10252
 
 
10253
    ;;
 
10254
  esac
 
10255
 
 
10256
  if test "x$lt_cv_dlopen" != xno; then
 
10257
    enable_dlopen=yes
 
10258
  else
 
10259
    enable_dlopen=no
 
10260
  fi
 
10261
 
 
10262
  case $lt_cv_dlopen in
 
10263
  dlopen)
 
10264
    save_CPPFLAGS="$CPPFLAGS"
 
10265
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10266
 
 
10267
    save_LDFLAGS="$LDFLAGS"
 
10268
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10269
 
 
10270
    save_LIBS="$LIBS"
 
10271
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10272
 
 
10273
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10274
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
10275
if test "${lt_cv_dlopen_self+set}" = set; then
 
10276
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10277
else
 
10278
          if test "$cross_compiling" = yes; then :
 
10279
  lt_cv_dlopen_self=cross
 
10280
else
 
10281
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10282
  lt_status=$lt_dlunknown
 
10283
  cat > conftest.$ac_ext <<EOF
 
10284
#line 10284 "configure"
 
10285
#include "confdefs.h"
 
10286
 
 
10287
#if HAVE_DLFCN_H
 
10288
#include <dlfcn.h>
 
10289
#endif
 
10290
 
 
10291
#include <stdio.h>
 
10292
 
 
10293
#ifdef RTLD_GLOBAL
 
10294
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10295
#else
 
10296
#  ifdef DL_GLOBAL
 
10297
#    define LT_DLGLOBAL         DL_GLOBAL
 
10298
#  else
 
10299
#    define LT_DLGLOBAL         0
 
10300
#  endif
 
10301
#endif
 
10302
 
 
10303
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10304
   find out it does not work in some platform. */
 
10305
#ifndef LT_DLLAZY_OR_NOW
 
10306
#  ifdef RTLD_LAZY
 
10307
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10308
#  else
 
10309
#    ifdef DL_LAZY
 
10310
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10311
#    else
 
10312
#      ifdef RTLD_NOW
 
10313
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10314
#      else
 
10315
#        ifdef DL_NOW
 
10316
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10317
#        else
 
10318
#          define LT_DLLAZY_OR_NOW      0
 
10319
#        endif
 
10320
#      endif
 
10321
#    endif
 
10322
#  endif
 
10323
#endif
 
10324
 
 
10325
#ifdef __cplusplus
 
10326
extern "C" void exit (int);
 
10327
#endif
 
10328
 
 
10329
void fnord() { int i=42;}
 
10330
int main ()
 
10331
{
 
10332
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10333
  int status = $lt_dlunknown;
 
10334
 
 
10335
  if (self)
 
10336
    {
 
10337
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10338
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10339
      /* dlclose (self); */
 
10340
    }
 
10341
 
 
10342
    exit (status);
 
10343
}
 
10344
EOF
 
10345
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10346
  (eval $ac_link) 2>&5
 
10347
  ac_status=$?
 
10348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10349
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10350
    (./conftest; exit; ) 2>/dev/null
 
10351
    lt_status=$?
 
10352
    case x$lt_status in
 
10353
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10354
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10355
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
10356
    esac
 
10357
  else :
 
10358
    # compilation failed
 
10359
    lt_cv_dlopen_self=no
 
10360
  fi
 
10361
fi
 
10362
rm -fr conftest*
 
10363
 
 
10364
 
 
10365
fi
 
10366
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10367
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
10368
 
 
10369
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10370
      LDFLAGS="$LDFLAGS $link_static_flag"
 
10371
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10372
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
10373
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10375
else
 
10376
          if test "$cross_compiling" = yes; then :
 
10377
  lt_cv_dlopen_self_static=cross
 
10378
else
 
10379
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10380
  lt_status=$lt_dlunknown
 
10381
  cat > conftest.$ac_ext <<EOF
 
10382
#line 10382 "configure"
 
10383
#include "confdefs.h"
 
10384
 
 
10385
#if HAVE_DLFCN_H
 
10386
#include <dlfcn.h>
 
10387
#endif
 
10388
 
 
10389
#include <stdio.h>
 
10390
 
 
10391
#ifdef RTLD_GLOBAL
 
10392
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10393
#else
 
10394
#  ifdef DL_GLOBAL
 
10395
#    define LT_DLGLOBAL         DL_GLOBAL
 
10396
#  else
 
10397
#    define LT_DLGLOBAL         0
 
10398
#  endif
 
10399
#endif
 
10400
 
 
10401
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10402
   find out it does not work in some platform. */
 
10403
#ifndef LT_DLLAZY_OR_NOW
 
10404
#  ifdef RTLD_LAZY
 
10405
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10406
#  else
 
10407
#    ifdef DL_LAZY
 
10408
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10409
#    else
 
10410
#      ifdef RTLD_NOW
 
10411
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10412
#      else
 
10413
#        ifdef DL_NOW
 
10414
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10415
#        else
 
10416
#          define LT_DLLAZY_OR_NOW      0
 
10417
#        endif
 
10418
#      endif
 
10419
#    endif
 
10420
#  endif
 
10421
#endif
 
10422
 
 
10423
#ifdef __cplusplus
 
10424
extern "C" void exit (int);
 
10425
#endif
 
10426
 
 
10427
void fnord() { int i=42;}
 
10428
int main ()
 
10429
{
 
10430
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10431
  int status = $lt_dlunknown;
 
10432
 
 
10433
  if (self)
 
10434
    {
 
10435
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10436
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10437
      /* dlclose (self); */
 
10438
    }
 
10439
 
 
10440
    exit (status);
 
10441
}
 
10442
EOF
 
10443
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10444
  (eval $ac_link) 2>&5
 
10445
  ac_status=$?
 
10446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10447
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10448
    (./conftest; exit; ) 2>/dev/null
 
10449
    lt_status=$?
 
10450
    case x$lt_status in
 
10451
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10452
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10453
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10454
    esac
 
10455
  else :
 
10456
    # compilation failed
 
10457
    lt_cv_dlopen_self_static=no
 
10458
  fi
 
10459
fi
 
10460
rm -fr conftest*
 
10461
 
 
10462
 
 
10463
fi
 
10464
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10465
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
10466
    fi
 
10467
 
 
10468
    CPPFLAGS="$save_CPPFLAGS"
 
10469
    LDFLAGS="$save_LDFLAGS"
 
10470
    LIBS="$save_LIBS"
 
10471
    ;;
 
10472
  esac
 
10473
 
 
10474
  case $lt_cv_dlopen_self in
 
10475
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10476
  *) enable_dlopen_self=unknown ;;
 
10477
  esac
 
10478
 
 
10479
  case $lt_cv_dlopen_self_static in
 
10480
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10481
  *) enable_dlopen_self_static=unknown ;;
 
10482
  esac
 
10483
fi
 
10484
 
 
10485
 
 
10486
# Report which librarie types wil actually be built
 
10487
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10488
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
10489
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10490
echo "${ECHO_T}$can_build_shared" >&6
 
10491
 
 
10492
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10493
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
10494
test "$can_build_shared" = "no" && enable_shared=no
 
10495
 
 
10496
# On AIX, shared libraries and static libraries use the same namespace, and
 
10497
# are all built from PIC.
 
10498
case "$host_os" in
 
10499
aix3*)
 
10500
  test "$enable_shared" = yes && enable_static=no
 
10501
  if test -n "$RANLIB"; then
 
10502
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10503
    postinstall_cmds='$RANLIB $lib'
 
10504
  fi
 
10505
  ;;
 
10506
 
 
10507
aix4* | aix5*)
 
10508
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10509
    test "$enable_shared" = yes && enable_static=no
 
10510
  fi
 
10511
    ;;
 
10512
esac
 
10513
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10514
echo "${ECHO_T}$enable_shared" >&6
 
10515
 
 
10516
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10517
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
10518
# Make sure either enable_shared or enable_static is yes.
 
10519
test "$enable_shared" = yes || enable_static=yes
 
10520
echo "$as_me:$LINENO: result: $enable_static" >&5
 
10521
echo "${ECHO_T}$enable_static" >&6
 
10522
 
 
10523
# The else clause should only fire when bootstrapping the
 
10524
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10525
# with your package, and you will get complaints that there are
 
10526
# no rules to generate ltmain.sh.
 
10527
if test -f "$ltmain"; then
 
10528
  # See if we are running on zsh, and set the options which allow our commands through
 
10529
  # without removal of \ escapes.
 
10530
  if test -n "${ZSH_VERSION+set}" ; then
 
10531
    setopt NO_GLOB_SUBST
 
10532
  fi
 
10533
  # Now quote all the things that may contain metacharacters while being
 
10534
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10535
  # variables and quote the copies for generation of the libtool script.
 
10536
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
10537
    SED SHELL STRIP \
 
10538
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10539
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10540
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10541
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10542
    lt_cv_sys_global_symbol_to_c_name_address \
 
10543
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10544
    old_postinstall_cmds old_postuninstall_cmds \
 
10545
    compiler \
 
10546
    CC \
 
10547
    LD \
 
10548
    lt_prog_compiler_wl \
 
10549
    lt_prog_compiler_pic \
 
10550
    lt_prog_compiler_static \
 
10551
    lt_prog_compiler_no_builtin_flag \
 
10552
    export_dynamic_flag_spec \
 
10553
    thread_safe_flag_spec \
 
10554
    whole_archive_flag_spec \
 
10555
    enable_shared_with_static_runtimes \
 
10556
    old_archive_cmds \
 
10557
    old_archive_from_new_cmds \
 
10558
    predep_objects \
 
10559
    postdep_objects \
 
10560
    predeps \
 
10561
    postdeps \
 
10562
    compiler_lib_search_path \
 
10563
    archive_cmds \
 
10564
    archive_expsym_cmds \
 
10565
    postinstall_cmds \
 
10566
    postuninstall_cmds \
 
10567
    old_archive_from_expsyms_cmds \
 
10568
    allow_undefined_flag \
 
10569
    no_undefined_flag \
 
10570
    export_symbols_cmds \
 
10571
    hardcode_libdir_flag_spec \
 
10572
    hardcode_libdir_flag_spec_ld \
 
10573
    hardcode_libdir_separator \
 
10574
    hardcode_automatic \
 
10575
    module_cmds \
 
10576
    module_expsym_cmds \
 
10577
    lt_cv_prog_compiler_c_o \
 
10578
    exclude_expsyms \
 
10579
    include_expsyms; do
 
10580
 
 
10581
    case $var in
 
10582
    old_archive_cmds | \
 
10583
    old_archive_from_new_cmds | \
 
10584
    archive_cmds | \
 
10585
    archive_expsym_cmds | \
 
10586
    module_cmds | \
 
10587
    module_expsym_cmds | \
 
10588
    old_archive_from_expsyms_cmds | \
 
10589
    export_symbols_cmds | \
 
10590
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10591
    postinstall_cmds | postuninstall_cmds | \
 
10592
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10593
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10594
      # Double-quote double-evaled strings.
 
10595
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10596
      ;;
 
10597
    *)
 
10598
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10599
      ;;
 
10600
    esac
 
10601
  done
 
10602
 
 
10603
  case $lt_echo in
 
10604
  *'\$0 --fallback-echo"')
 
10605
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10606
    ;;
 
10607
  esac
 
10608
 
 
10609
cfgfile="${ofile}T"
 
10610
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10611
  $rm -f "$cfgfile"
 
10612
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10613
echo "$as_me: creating $ofile" >&6;}
 
10614
 
 
10615
  cat <<__EOF__ >> "$cfgfile"
 
10616
#! $SHELL
 
10617
 
 
10618
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10619
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10620
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10621
#
 
10622
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10623
# Free Software Foundation, Inc.
 
10624
#
 
10625
# This file is part of GNU Libtool:
 
10626
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10627
#
 
10628
# This program is free software; you can redistribute it and/or modify
 
10629
# it under the terms of the GNU General Public License as published by
 
10630
# the Free Software Foundation; either version 2 of the License, or
 
10631
# (at your option) any later version.
 
10632
#
 
10633
# This program is distributed in the hope that it will be useful, but
 
10634
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10635
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10636
# General Public License for more details.
 
10637
#
 
10638
# You should have received a copy of the GNU General Public License
 
10639
# along with this program; if not, write to the Free Software
 
10640
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
10641
#
 
10642
# As a special exception to the GNU General Public License, if you
 
10643
# distribute this file as part of a program that contains a
 
10644
# configuration script generated by Autoconf, you may include it under
 
10645
# the same distribution terms that you use for the rest of that program.
 
10646
 
 
10647
# A sed program that does not truncate output.
 
10648
SED=$lt_SED
 
10649
 
 
10650
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10651
Xsed="$SED -e s/^X//"
 
10652
 
 
10653
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10654
# if CDPATH is set.
 
10655
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10656
 
 
10657
# The names of the tagged configurations supported by this script.
 
10658
available_tags=
 
10659
 
 
10660
# ### BEGIN LIBTOOL CONFIG
 
10661
 
 
10662
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10663
 
 
10664
# Shell to use when invoking shell scripts.
 
10665
SHELL=$lt_SHELL
 
10666
 
 
10667
# Whether or not to build shared libraries.
 
10668
build_libtool_libs=$enable_shared
 
10669
 
 
10670
# Whether or not to build static libraries.
 
10671
build_old_libs=$enable_static
 
10672
 
 
10673
# Whether or not to add -lc for building shared libraries.
 
10674
build_libtool_need_lc=$archive_cmds_need_lc
 
10675
 
 
10676
# Whether or not to disallow shared libs when runtime libs are static
 
10677
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10678
 
 
10679
# Whether or not to optimize for fast installation.
 
10680
fast_install=$enable_fast_install
 
10681
 
 
10682
# The host system.
 
10683
host_alias=$host_alias
 
10684
host=$host
 
10685
 
 
10686
# An echo program that does not interpret backslashes.
 
10687
echo=$lt_echo
 
10688
 
 
10689
# The archiver.
 
10690
AR=$lt_AR
 
10691
AR_FLAGS=$lt_AR_FLAGS
 
10692
 
 
10693
# A C compiler.
 
10694
LTCC=$lt_LTCC
 
10695
 
 
10696
# A language-specific compiler.
 
10697
CC=$lt_compiler
 
10698
 
 
10699
# Is the compiler the GNU C compiler?
 
10700
with_gcc=$GCC
 
10701
 
 
10702
# An ERE matcher.
 
10703
EGREP=$lt_EGREP
 
10704
 
 
10705
# The linker used to build libraries.
 
10706
LD=$lt_LD
 
10707
 
 
10708
# Whether we need hard or soft links.
 
10709
LN_S=$lt_LN_S
 
10710
 
 
10711
# A BSD-compatible nm program.
 
10712
NM=$lt_NM
 
10713
 
 
10714
# A symbol stripping program
 
10715
STRIP=$lt_STRIP
 
10716
 
 
10717
# Used to examine libraries when file_magic_cmd begins "file"
 
10718
MAGIC_CMD=$MAGIC_CMD
 
10719
 
 
10720
# Used on cygwin: DLL creation program.
 
10721
DLLTOOL="$DLLTOOL"
 
10722
 
 
10723
# Used on cygwin: object dumper.
 
10724
OBJDUMP="$OBJDUMP"
 
10725
 
 
10726
# Used on cygwin: assembler.
 
10727
AS="$AS"
 
10728
 
 
10729
# The name of the directory that contains temporary libtool files.
 
10730
objdir=$objdir
 
10731
 
 
10732
# How to create reloadable object files.
 
10733
reload_flag=$lt_reload_flag
 
10734
reload_cmds=$lt_reload_cmds
 
10735
 
 
10736
# How to pass a linker flag through the compiler.
 
10737
wl=$lt_lt_prog_compiler_wl
 
10738
 
 
10739
# Object file suffix (normally "o").
 
10740
objext="$ac_objext"
 
10741
 
 
10742
# Old archive suffix (normally "a").
 
10743
libext="$libext"
 
10744
 
 
10745
# Shared library suffix (normally ".so").
 
10746
shrext_cmds='$shrext_cmds'
 
10747
 
 
10748
# Executable file suffix (normally "").
 
10749
exeext="$exeext"
 
10750
 
 
10751
# Additional compiler flags for building library objects.
 
10752
pic_flag=$lt_lt_prog_compiler_pic
 
10753
pic_mode=$pic_mode
 
10754
 
 
10755
# What is the maximum length of a command?
 
10756
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10757
 
 
10758
# Does compiler simultaneously support -c and -o options?
 
10759
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10760
 
 
10761
# Must we lock files when doing compilation ?
 
10762
need_locks=$lt_need_locks
 
10763
 
 
10764
# Do we need the lib prefix for modules?
 
10765
need_lib_prefix=$need_lib_prefix
 
10766
 
 
10767
# Do we need a version for libraries?
 
10768
need_version=$need_version
 
10769
 
 
10770
# Whether dlopen is supported.
 
10771
dlopen_support=$enable_dlopen
 
10772
 
 
10773
# Whether dlopen of programs is supported.
 
10774
dlopen_self=$enable_dlopen_self
 
10775
 
 
10776
# Whether dlopen of statically linked programs is supported.
 
10777
dlopen_self_static=$enable_dlopen_self_static
 
10778
 
 
10779
# Compiler flag to prevent dynamic linking.
 
10780
link_static_flag=$lt_lt_prog_compiler_static
 
10781
 
 
10782
# Compiler flag to turn off builtin functions.
 
10783
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10784
 
 
10785
# Compiler flag to allow reflexive dlopens.
 
10786
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10787
 
 
10788
# Compiler flag to generate shared objects directly from archives.
 
10789
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10790
 
 
10791
# Compiler flag to generate thread-safe objects.
 
10792
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10793
 
 
10794
# Library versioning type.
 
10795
version_type=$version_type
 
10796
 
 
10797
# Format of library name prefix.
 
10798
libname_spec=$lt_libname_spec
 
10799
 
 
10800
# List of archive names.  First name is the real one, the rest are links.
 
10801
# The last name is the one that the linker finds with -lNAME.
 
10802
library_names_spec=$lt_library_names_spec
 
10803
 
 
10804
# The coded name of the library, if different from the real name.
 
10805
soname_spec=$lt_soname_spec
 
10806
 
 
10807
# Commands used to build and install an old-style archive.
 
10808
RANLIB=$lt_RANLIB
 
10809
old_archive_cmds=$lt_old_archive_cmds
 
10810
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10811
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10812
 
 
10813
# Create an old-style archive from a shared archive.
 
10814
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10815
 
 
10816
# Create a temporary old-style archive to link instead of a shared archive.
 
10817
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10818
 
 
10819
# Commands used to build and install a shared archive.
 
10820
archive_cmds=$lt_archive_cmds
 
10821
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10822
postinstall_cmds=$lt_postinstall_cmds
 
10823
postuninstall_cmds=$lt_postuninstall_cmds
 
10824
 
 
10825
# Commands used to build a loadable module (assumed same as above if empty)
 
10826
module_cmds=$lt_module_cmds
 
10827
module_expsym_cmds=$lt_module_expsym_cmds
 
10828
 
 
10829
# Commands to strip libraries.
 
10830
old_striplib=$lt_old_striplib
 
10831
striplib=$lt_striplib
 
10832
 
 
10833
# Dependencies to place before the objects being linked to create a
 
10834
# shared library.
 
10835
predep_objects=$lt_predep_objects
 
10836
 
 
10837
# Dependencies to place after the objects being linked to create a
 
10838
# shared library.
 
10839
postdep_objects=$lt_postdep_objects
 
10840
 
 
10841
# Dependencies to place before the objects being linked to create a
 
10842
# shared library.
 
10843
predeps=$lt_predeps
 
10844
 
 
10845
# Dependencies to place after the objects being linked to create a
 
10846
# shared library.
 
10847
postdeps=$lt_postdeps
 
10848
 
 
10849
# The library search path used internally by the compiler when linking
 
10850
# a shared library.
 
10851
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10852
 
 
10853
# Method to check whether dependent libraries are shared objects.
 
10854
deplibs_check_method=$lt_deplibs_check_method
 
10855
 
 
10856
# Command to use when deplibs_check_method == file_magic.
 
10857
file_magic_cmd=$lt_file_magic_cmd
 
10858
 
 
10859
# Flag that allows shared libraries with undefined symbols to be built.
 
10860
allow_undefined_flag=$lt_allow_undefined_flag
 
10861
 
 
10862
# Flag that forces no undefined symbols.
 
10863
no_undefined_flag=$lt_no_undefined_flag
 
10864
 
 
10865
# Commands used to finish a libtool library installation in a directory.
 
10866
finish_cmds=$lt_finish_cmds
 
10867
 
 
10868
# Same as above, but a single script fragment to be evaled but not shown.
 
10869
finish_eval=$lt_finish_eval
 
10870
 
 
10871
# Take the output of nm and produce a listing of raw symbols and C names.
 
10872
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10873
 
 
10874
# Transform the output of nm in a proper C declaration
 
10875
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10876
 
 
10877
# Transform the output of nm in a C name address pair
 
10878
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10879
 
 
10880
# This is the shared library runtime path variable.
 
10881
runpath_var=$runpath_var
 
10882
 
 
10883
# This is the shared library path variable.
 
10884
shlibpath_var=$shlibpath_var
 
10885
 
 
10886
# Is shlibpath searched before the hard-coded library search path?
 
10887
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10888
 
 
10889
# How to hardcode a shared library path into an executable.
 
10890
hardcode_action=$hardcode_action
 
10891
 
 
10892
# Whether we should hardcode library paths into libraries.
 
10893
hardcode_into_libs=$hardcode_into_libs
 
10894
 
 
10895
# Flag to hardcode \$libdir into a binary during linking.
 
10896
# This must work even if \$libdir does not exist.
 
10897
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10898
 
 
10899
# If ld is used when linking, flag to hardcode \$libdir into
 
10900
# a binary during linking. This must work even if \$libdir does
 
10901
# not exist.
 
10902
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10903
 
 
10904
# Whether we need a single -rpath flag with a separated argument.
 
10905
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10906
 
 
10907
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10908
# resulting binary.
 
10909
hardcode_direct=$hardcode_direct
 
10910
 
 
10911
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10912
# resulting binary.
 
10913
hardcode_minus_L=$hardcode_minus_L
 
10914
 
 
10915
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10916
# the resulting binary.
 
10917
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10918
 
 
10919
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10920
# and all subsequent libraries and executables linked against it.
 
10921
hardcode_automatic=$hardcode_automatic
 
10922
 
 
10923
# Variables whose values should be saved in libtool wrapper scripts and
 
10924
# restored at relink time.
 
10925
variables_saved_for_relink="$variables_saved_for_relink"
 
10926
 
 
10927
# Whether libtool must link a program against all its dependency libraries.
 
10928
link_all_deplibs=$link_all_deplibs
 
10929
 
 
10930
# Compile-time system search path for libraries
 
10931
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10932
 
 
10933
# Run-time system search path for libraries
 
10934
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10935
 
 
10936
# Fix the shell variable \$srcfile for the compiler.
 
10937
fix_srcfile_path="$fix_srcfile_path"
 
10938
 
 
10939
# Set to yes if exported symbols are required.
 
10940
always_export_symbols=$always_export_symbols
 
10941
 
 
10942
# The commands to list exported symbols.
 
10943
export_symbols_cmds=$lt_export_symbols_cmds
 
10944
 
 
10945
# The commands to extract the exported symbol list from a shared archive.
 
10946
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10947
 
 
10948
# Symbols that should not be listed in the preloaded symbols.
 
10949
exclude_expsyms=$lt_exclude_expsyms
 
10950
 
 
10951
# Symbols that must always be exported.
 
10952
include_expsyms=$lt_include_expsyms
 
10953
 
 
10954
# ### END LIBTOOL CONFIG
 
10955
 
 
10956
__EOF__
 
10957
 
 
10958
 
 
10959
  case $host_os in
 
10960
  aix3*)
 
10961
    cat <<\EOF >> "$cfgfile"
 
10962
 
 
10963
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10964
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10965
# vanish in a puff of smoke.
 
10966
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10967
  COLLECT_NAMES=
 
10968
  export COLLECT_NAMES
 
10969
fi
 
10970
EOF
 
10971
    ;;
 
10972
  esac
 
10973
 
 
10974
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10975
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10976
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10977
  # is reportedly fixed, but why not run on old versions too?
 
10978
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10979
 
 
10980
  mv -f "$cfgfile" "$ofile" || \
 
10981
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10982
  chmod +x "$ofile"
 
10983
 
 
10984
else
 
10985
  # If there is no Makefile yet, we rely on a make rule to execute
 
10986
  # `config.status --recheck' to rerun these tests and create the
 
10987
  # libtool script then.
 
10988
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10989
  if test -f "$ltmain_in"; then
 
10990
    test -f Makefile && make "$ltmain"
 
10991
  fi
 
10992
fi
 
10993
 
 
10994
 
 
10995
ac_ext=c
 
10996
ac_cpp='$CPP $CPPFLAGS'
 
10997
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10998
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10999
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11000
 
 
11001
CC="$lt_save_CC"
 
11002
 
 
11003
 
 
11004
# Check whether --with-tags or --without-tags was given.
 
11005
if test "${with_tags+set}" = set; then
 
11006
  withval="$with_tags"
 
11007
  tagnames="$withval"
 
11008
fi;
 
11009
 
 
11010
if test -f "$ltmain" && test -n "$tagnames"; then
 
11011
  if test ! -f "${ofile}"; then
 
11012
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11013
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11014
  fi
 
11015
 
 
11016
  if test -z "$LTCC"; then
 
11017
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11018
    if test -z "$LTCC"; then
 
11019
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11020
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11021
    else
 
11022
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11023
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11024
    fi
 
11025
  fi
 
11026
 
 
11027
  # Extract list of available tagged configurations in $ofile.
 
11028
  # Note that this assumes the entire list is on one line.
 
11029
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11030
 
 
11031
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11032
  for tagname in $tagnames; do
 
11033
    IFS="$lt_save_ifs"
 
11034
    # Check whether tagname contains only valid characters
 
11035
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11036
    "") ;;
 
11037
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11038
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11039
   { (exit 1); exit 1; }; }
 
11040
        ;;
 
11041
    esac
 
11042
 
 
11043
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11044
    then
 
11045
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11046
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11047
   { (exit 1); exit 1; }; }
 
11048
    fi
 
11049
 
 
11050
    # Update the list of available tags.
 
11051
    if test -n "$tagname"; then
 
11052
      echo appending configuration tag \"$tagname\" to $ofile
 
11053
 
 
11054
      case $tagname in
 
11055
      CXX)
 
11056
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11057
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11058
            (test "X$CXX" != "Xg++"))) ; then
 
11059
          ac_ext=cc
 
11060
ac_cpp='$CXXCPP $CPPFLAGS'
 
11061
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11062
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11063
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11064
 
 
11065
 
 
11066
 
 
11067
 
 
11068
archive_cmds_need_lc_CXX=no
 
11069
allow_undefined_flag_CXX=
 
11070
always_export_symbols_CXX=no
 
11071
archive_expsym_cmds_CXX=
 
11072
export_dynamic_flag_spec_CXX=
 
11073
hardcode_direct_CXX=no
 
11074
hardcode_libdir_flag_spec_CXX=
 
11075
hardcode_libdir_flag_spec_ld_CXX=
 
11076
hardcode_libdir_separator_CXX=
 
11077
hardcode_minus_L_CXX=no
 
11078
hardcode_automatic_CXX=no
 
11079
module_cmds_CXX=
 
11080
module_expsym_cmds_CXX=
 
11081
link_all_deplibs_CXX=unknown
 
11082
old_archive_cmds_CXX=$old_archive_cmds
 
11083
no_undefined_flag_CXX=
 
11084
whole_archive_flag_spec_CXX=
 
11085
enable_shared_with_static_runtimes_CXX=no
 
11086
 
 
11087
# Dependencies to place before and after the object being linked:
 
11088
predep_objects_CXX=
 
11089
postdep_objects_CXX=
 
11090
predeps_CXX=
 
11091
postdeps_CXX=
 
11092
compiler_lib_search_path_CXX=
 
11093
 
 
11094
# Source file extension for C++ test sources.
 
11095
ac_ext=cc
 
11096
 
 
11097
# Object file extension for compiled C++ test sources.
 
11098
objext=o
 
11099
objext_CXX=$objext
 
11100
 
 
11101
# Code to be used in simple compile tests
 
11102
lt_simple_compile_test_code="int some_variable = 0;\n"
 
11103
 
 
11104
# Code to be used in simple link tests
 
11105
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
11106
 
 
11107
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11108
 
 
11109
# If no C compiler was specified, use CC.
 
11110
LTCC=${LTCC-"$CC"}
 
11111
 
 
11112
# Allow CC to be a program name with arguments.
 
11113
compiler=$CC
 
11114
 
 
11115
 
 
11116
# Allow CC to be a program name with arguments.
 
11117
lt_save_CC=$CC
 
11118
lt_save_LD=$LD
 
11119
lt_save_GCC=$GCC
 
11120
GCC=$GXX
 
11121
lt_save_with_gnu_ld=$with_gnu_ld
 
11122
lt_save_path_LD=$lt_cv_path_LD
 
11123
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11124
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11125
else
 
11126
  unset lt_cv_prog_gnu_ld
 
11127
fi
 
11128
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11129
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11130
else
 
11131
  unset lt_cv_path_LD
 
11132
fi
 
11133
test -z "${LDCXX+set}" || LD=$LDCXX
 
11134
CC=${CXX-"c++"}
 
11135
compiler=$CC
 
11136
compiler_CXX=$CC
 
11137
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
11138
 
 
11139
# We don't want -fno-exception wen compiling C++ code, so set the
 
11140
# no_builtin_flag separately
 
11141
if test "$GXX" = yes; then
 
11142
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11143
else
 
11144
  lt_prog_compiler_no_builtin_flag_CXX=
 
11145
fi
 
11146
 
 
11147
if test "$GXX" = yes; then
 
11148
  # Set up default GNU C++ configuration
 
11149
 
 
11150
 
 
11151
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
11152
if test "${with_gnu_ld+set}" = set; then
 
11153
  withval="$with_gnu_ld"
 
11154
  test "$withval" = no || with_gnu_ld=yes
 
11155
else
 
11156
  with_gnu_ld=no
 
11157
fi;
 
11158
ac_prog=ld
 
11159
if test "$GCC" = yes; then
 
11160
  # Check if gcc -print-prog-name=ld gives a path.
 
11161
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11162
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
11163
  case $host in
 
11164
  *-*-mingw*)
 
11165
    # gcc leaves a trailing carriage return which upsets mingw
 
11166
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11167
  *)
 
11168
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11169
  esac
 
11170
  case $ac_prog in
 
11171
    # Accept absolute paths.
 
11172
    [\\/]* | ?:[\\/]*)
 
11173
      re_direlt='/[^/][^/]*/\.\./'
 
11174
      # Canonicalize the pathname of ld
 
11175
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11176
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11177
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11178
      done
 
11179
      test -z "$LD" && LD="$ac_prog"
 
11180
      ;;
 
11181
  "")
 
11182
    # If it fails, then pretend we aren't using GCC.
 
11183
    ac_prog=ld
 
11184
    ;;
 
11185
  *)
 
11186
    # If it is relative, then search for the first ld in PATH.
 
11187
    with_gnu_ld=unknown
 
11188
    ;;
 
11189
  esac
 
11190
elif test "$with_gnu_ld" = yes; then
 
11191
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11192
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
11193
else
 
11194
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11195
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
11196
fi
 
11197
if test "${lt_cv_path_LD+set}" = set; then
 
11198
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11199
else
 
11200
  if test -z "$LD"; then
 
11201
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11202
  for ac_dir in $PATH; do
 
11203
    IFS="$lt_save_ifs"
 
11204
    test -z "$ac_dir" && ac_dir=.
 
11205
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11206
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11207
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11208
      # but apparently some GNU ld's only accept -v.
 
11209
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11210
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11211
      *GNU* | *'with BFD'*)
 
11212
        test "$with_gnu_ld" != no && break
 
11213
        ;;
 
11214
      *)
 
11215
        test "$with_gnu_ld" != yes && break
 
11216
        ;;
 
11217
      esac
 
11218
    fi
 
11219
  done
 
11220
  IFS="$lt_save_ifs"
 
11221
else
 
11222
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11223
fi
 
11224
fi
 
11225
 
 
11226
LD="$lt_cv_path_LD"
 
11227
if test -n "$LD"; then
 
11228
  echo "$as_me:$LINENO: result: $LD" >&5
 
11229
echo "${ECHO_T}$LD" >&6
 
11230
else
 
11231
  echo "$as_me:$LINENO: result: no" >&5
 
11232
echo "${ECHO_T}no" >&6
 
11233
fi
 
11234
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11235
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11236
   { (exit 1); exit 1; }; }
 
11237
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11238
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
11239
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11240
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11241
else
 
11242
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11243
case `$LD -v 2>&1 </dev/null` in
 
11244
*GNU* | *'with BFD'*)
 
11245
  lt_cv_prog_gnu_ld=yes
 
11246
  ;;
 
11247
*)
 
11248
  lt_cv_prog_gnu_ld=no
 
11249
  ;;
 
11250
esac
 
11251
fi
 
11252
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11253
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
11254
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11255
 
 
11256
 
 
11257
 
 
11258
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11259
  # archiving commands below assume that GNU ld is being used.
 
11260
  if test "$with_gnu_ld" = yes; then
 
11261
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11262
    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'
 
11263
 
 
11264
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11265
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11266
 
 
11267
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11268
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11269
    #     investigate it a little bit more. (MM)
 
11270
    wlarc='${wl}'
 
11271
 
 
11272
    # ancient GNU ld didn't support --whole-archive et. al.
 
11273
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11274
        grep 'no-whole-archive' > /dev/null; then
 
11275
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11276
    else
 
11277
      whole_archive_flag_spec_CXX=
 
11278
    fi
 
11279
  else
 
11280
    with_gnu_ld=no
 
11281
    wlarc=
 
11282
 
 
11283
    # A generic and very simple default shared library creation
 
11284
    # command for GNU C++ for the case where it uses the native
 
11285
    # linker, instead of GNU ld.  If possible, this setting should
 
11286
    # overridden to take advantage of the native linker features on
 
11287
    # the platform it is being used on.
 
11288
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11289
  fi
 
11290
 
 
11291
  # Commands to make compiler produce verbose output that lists
 
11292
  # what "hidden" libraries, object files and flags are used when
 
11293
  # linking a shared library.
 
11294
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11295
 
 
11296
else
 
11297
  GXX=no
 
11298
  with_gnu_ld=no
 
11299
  wlarc=
 
11300
fi
 
11301
 
 
11302
# PORTME: fill in a description of your system's C++ link characteristics
 
11303
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11304
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11305
ld_shlibs_CXX=yes
 
11306
case $host_os in
 
11307
  aix3*)
 
11308
    # FIXME: insert proper C++ library support
 
11309
    ld_shlibs_CXX=no
 
11310
    ;;
 
11311
  aix4* | aix5*)
 
11312
    if test "$host_cpu" = ia64; then
 
11313
      # On IA64, the linker does run time linking by default, so we don't
 
11314
      # have to do anything special.
 
11315
      aix_use_runtimelinking=no
 
11316
      exp_sym_flag='-Bexport'
 
11317
      no_entry_flag=""
 
11318
    else
 
11319
      aix_use_runtimelinking=no
 
11320
 
 
11321
      # Test if we are trying to use run time linking or normal
 
11322
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11323
      # need to do runtime linking.
 
11324
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11325
        for ld_flag in $LDFLAGS; do
 
11326
          case $ld_flag in
 
11327
          *-brtl*)
 
11328
            aix_use_runtimelinking=yes
 
11329
            break
 
11330
            ;;
 
11331
          esac
 
11332
        done
 
11333
      esac
 
11334
 
 
11335
      exp_sym_flag='-bexport'
 
11336
      no_entry_flag='-bnoentry'
 
11337
    fi
 
11338
 
 
11339
    # When large executables or shared objects are built, AIX ld can
 
11340
    # have problems creating the table of contents.  If linking a library
 
11341
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11342
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11343
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11344
 
 
11345
    archive_cmds_CXX=''
 
11346
    hardcode_direct_CXX=yes
 
11347
    hardcode_libdir_separator_CXX=':'
 
11348
    link_all_deplibs_CXX=yes
 
11349
 
 
11350
    if test "$GXX" = yes; then
 
11351
      case $host_os in aix4.012|aix4.012.*)
 
11352
      # We only want to do this on AIX 4.2 and lower, the check
 
11353
      # below for broken collect2 doesn't work under 4.3+
 
11354
        collect2name=`${CC} -print-prog-name=collect2`
 
11355
        if test -f "$collect2name" && \
 
11356
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11357
        then
 
11358
          # We have reworked collect2
 
11359
          hardcode_direct_CXX=yes
 
11360
        else
 
11361
          # We have old collect2
 
11362
          hardcode_direct_CXX=unsupported
 
11363
          # It fails to find uninstalled libraries when the uninstalled
 
11364
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11365
          # to unsupported forces relinking
 
11366
          hardcode_minus_L_CXX=yes
 
11367
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11368
          hardcode_libdir_separator_CXX=
 
11369
        fi
 
11370
      esac
 
11371
      shared_flag='-shared'
 
11372
    else
 
11373
      # not using gcc
 
11374
      if test "$host_cpu" = ia64; then
 
11375
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11376
        # chokes on -Wl,-G. The following line is correct:
 
11377
        shared_flag='-G'
 
11378
      else
 
11379
        if test "$aix_use_runtimelinking" = yes; then
 
11380
          shared_flag='${wl}-G'
 
11381
        else
 
11382
          shared_flag='${wl}-bM:SRE'
 
11383
        fi
 
11384
      fi
 
11385
    fi
 
11386
 
 
11387
    # It seems that -bexpall does not export symbols beginning with
 
11388
    # underscore (_), so it is better to generate a list of symbols to export.
 
11389
    always_export_symbols_CXX=yes
 
11390
    if test "$aix_use_runtimelinking" = yes; then
 
11391
      # Warning - without using the other runtime loading flags (-brtl),
 
11392
      # -berok will link without error, but may produce a broken library.
 
11393
      allow_undefined_flag_CXX='-berok'
 
11394
      # Determine the default libpath from the value encoded in an empty executable.
 
11395
      cat >conftest.$ac_ext <<_ACEOF
 
11396
/* confdefs.h.  */
 
11397
_ACEOF
 
11398
cat confdefs.h >>conftest.$ac_ext
 
11399
cat >>conftest.$ac_ext <<_ACEOF
 
11400
/* end confdefs.h.  */
 
11401
 
 
11402
int
 
11403
main ()
 
11404
{
 
11405
 
 
11406
  ;
 
11407
  return 0;
 
11408
}
 
11409
_ACEOF
 
11410
rm -f conftest.$ac_objext conftest$ac_exeext
 
11411
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11412
  (eval $ac_link) 2>conftest.er1
 
11413
  ac_status=$?
 
11414
  grep -v '^ *+' conftest.er1 >conftest.err
 
11415
  rm -f conftest.er1
 
11416
  cat conftest.err >&5
 
11417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11418
  (exit $ac_status); } &&
 
11419
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11420
                         || test ! -s conftest.err'
 
11421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11422
  (eval $ac_try) 2>&5
 
11423
  ac_status=$?
 
11424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11425
  (exit $ac_status); }; } &&
 
11426
         { ac_try='test -s conftest$ac_exeext'
 
11427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11428
  (eval $ac_try) 2>&5
 
11429
  ac_status=$?
 
11430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11431
  (exit $ac_status); }; }; then
 
11432
 
 
11433
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11434
}'`
 
11435
# Check for a 64-bit object if we didn't find anything.
 
11436
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; }
 
11437
}'`; fi
 
11438
else
 
11439
  echo "$as_me: failed program was:" >&5
 
11440
sed 's/^/| /' conftest.$ac_ext >&5
 
11441
 
 
11442
fi
 
11443
rm -f conftest.err conftest.$ac_objext \
 
11444
      conftest$ac_exeext conftest.$ac_ext
 
11445
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11446
 
 
11447
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11448
 
 
11449
      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"
 
11450
     else
 
11451
      if test "$host_cpu" = ia64; then
 
11452
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11453
        allow_undefined_flag_CXX="-z nodefs"
 
11454
        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"
 
11455
      else
 
11456
        # Determine the default libpath from the value encoded in an empty executable.
 
11457
        cat >conftest.$ac_ext <<_ACEOF
 
11458
/* confdefs.h.  */
 
11459
_ACEOF
 
11460
cat confdefs.h >>conftest.$ac_ext
 
11461
cat >>conftest.$ac_ext <<_ACEOF
 
11462
/* end confdefs.h.  */
 
11463
 
 
11464
int
 
11465
main ()
 
11466
{
 
11467
 
 
11468
  ;
 
11469
  return 0;
 
11470
}
 
11471
_ACEOF
 
11472
rm -f conftest.$ac_objext conftest$ac_exeext
 
11473
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11474
  (eval $ac_link) 2>conftest.er1
 
11475
  ac_status=$?
 
11476
  grep -v '^ *+' conftest.er1 >conftest.err
 
11477
  rm -f conftest.er1
 
11478
  cat conftest.err >&5
 
11479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11480
  (exit $ac_status); } &&
 
11481
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11482
                         || test ! -s conftest.err'
 
11483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11484
  (eval $ac_try) 2>&5
 
11485
  ac_status=$?
 
11486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11487
  (exit $ac_status); }; } &&
 
11488
         { ac_try='test -s conftest$ac_exeext'
 
11489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11490
  (eval $ac_try) 2>&5
 
11491
  ac_status=$?
 
11492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11493
  (exit $ac_status); }; }; then
 
11494
 
 
11495
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11496
}'`
 
11497
# Check for a 64-bit object if we didn't find anything.
 
11498
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; }
 
11499
}'`; fi
 
11500
else
 
11501
  echo "$as_me: failed program was:" >&5
 
11502
sed 's/^/| /' conftest.$ac_ext >&5
 
11503
 
 
11504
fi
 
11505
rm -f conftest.err conftest.$ac_objext \
 
11506
      conftest$ac_exeext conftest.$ac_ext
 
11507
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11508
 
 
11509
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11510
        # Warning - without using the other run time loading flags,
 
11511
        # -berok will link without error, but may produce a broken library.
 
11512
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11513
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11514
        # -bexpall does not export symbols beginning with underscore (_)
 
11515
        always_export_symbols_CXX=yes
 
11516
        # Exported symbols can be pulled into shared objects from archives
 
11517
        whole_archive_flag_spec_CXX=' '
 
11518
        archive_cmds_need_lc_CXX=yes
 
11519
        # This is similar to how AIX traditionally builds it's shared libraries.
 
11520
        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'
 
11521
      fi
 
11522
    fi
 
11523
    ;;
 
11524
  chorus*)
 
11525
    case $cc_basename in
 
11526
      *)
 
11527
        # FIXME: insert proper C++ library support
 
11528
        ld_shlibs_CXX=no
 
11529
        ;;
 
11530
    esac
 
11531
    ;;
 
11532
 
 
11533
 
 
11534
  cygwin* | mingw* | pw32*)
 
11535
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11536
    # as there is no search path for DLLs.
 
11537
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11538
    allow_undefined_flag_CXX=unsupported
 
11539
    always_export_symbols_CXX=no
 
11540
    enable_shared_with_static_runtimes_CXX=yes
 
11541
 
 
11542
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11543
      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'
 
11544
      # If the export-symbols file already is a .def file (1st line
 
11545
      # is EXPORTS), use it as is; otherwise, prepend...
 
11546
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11547
        cp $export_symbols $output_objdir/$soname.def;
 
11548
      else
 
11549
        echo EXPORTS > $output_objdir/$soname.def;
 
11550
        cat $export_symbols >> $output_objdir/$soname.def;
 
11551
      fi~
 
11552
      $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'
 
11553
    else
 
11554
      ld_shlibs_CXX=no
 
11555
    fi
 
11556
  ;;
 
11557
      darwin* | rhapsody*)
 
11558
        case "$host_os" in
 
11559
        rhapsody* | darwin1.[012])
 
11560
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11561
         ;;
 
11562
       *) # Darwin 1.3 on
 
11563
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11564
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11565
         else
 
11566
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11567
             10.[012])
 
11568
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11569
               ;;
 
11570
             10.*)
 
11571
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11572
               ;;
 
11573
           esac
 
11574
         fi
 
11575
         ;;
 
11576
        esac
 
11577
      archive_cmds_need_lc_CXX=no
 
11578
      hardcode_direct_CXX=no
 
11579
      hardcode_automatic_CXX=yes
 
11580
      hardcode_shlibpath_var_CXX=unsupported
 
11581
      whole_archive_flag_spec_CXX=''
 
11582
      link_all_deplibs_CXX=yes
 
11583
 
 
11584
    if test "$GXX" = yes ; then
 
11585
      lt_int_apple_cc_single_mod=no
 
11586
      output_verbose_link_cmd='echo'
 
11587
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11588
       lt_int_apple_cc_single_mod=yes
 
11589
      fi
 
11590
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11591
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11592
      else
 
11593
          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'
 
11594
        fi
 
11595
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11596
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11597
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11598
            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}'
 
11599
          else
 
11600
            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}'
 
11601
          fi
 
11602
            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}'
 
11603
      else
 
11604
      case "$cc_basename" in
 
11605
        xlc*)
 
11606
         output_verbose_link_cmd='echo'
 
11607
          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'
 
11608
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11609
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11610
          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}'
 
11611
          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}'
 
11612
          ;;
 
11613
       *)
 
11614
         ld_shlibs_CXX=no
 
11615
          ;;
 
11616
      esac
 
11617
      fi
 
11618
        ;;
 
11619
 
 
11620
  dgux*)
 
11621
    case $cc_basename in
 
11622
      ec++)
 
11623
        # FIXME: insert proper C++ library support
 
11624
        ld_shlibs_CXX=no
 
11625
        ;;
 
11626
      ghcx)
 
11627
        # Green Hills C++ Compiler
 
11628
        # FIXME: insert proper C++ library support
 
11629
        ld_shlibs_CXX=no
 
11630
        ;;
 
11631
      *)
 
11632
        # FIXME: insert proper C++ library support
 
11633
        ld_shlibs_CXX=no
 
11634
        ;;
 
11635
    esac
 
11636
    ;;
 
11637
  freebsd12*)
 
11638
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11639
    ld_shlibs_CXX=no
 
11640
    ;;
 
11641
  freebsd-elf*)
 
11642
    archive_cmds_need_lc_CXX=no
 
11643
    ;;
 
11644
  freebsd* | kfreebsd*-gnu)
 
11645
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11646
    # conventions
 
11647
    ld_shlibs_CXX=yes
 
11648
    ;;
 
11649
  gnu*)
 
11650
    ;;
 
11651
  hpux9*)
 
11652
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11653
    hardcode_libdir_separator_CXX=:
 
11654
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11655
    hardcode_direct_CXX=yes
 
11656
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11657
                                # but as the default
 
11658
                                # location of the library.
 
11659
 
 
11660
    case $cc_basename in
 
11661
    CC)
 
11662
      # FIXME: insert proper C++ library support
 
11663
      ld_shlibs_CXX=no
 
11664
      ;;
 
11665
    aCC)
 
11666
      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'
 
11667
      # Commands to make compiler produce verbose output that lists
 
11668
      # what "hidden" libraries, object files and flags are used when
 
11669
      # linking a shared library.
 
11670
      #
 
11671
      # There doesn't appear to be a way to prevent this compiler from
 
11672
      # explicitly linking system object files so we need to strip them
 
11673
      # from the output so that they don't get included in the library
 
11674
      # dependencies.
 
11675
      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'
 
11676
      ;;
 
11677
    *)
 
11678
      if test "$GXX" = yes; then
 
11679
        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'
 
11680
      else
 
11681
        # FIXME: insert proper C++ library support
 
11682
        ld_shlibs_CXX=no
 
11683
      fi
 
11684
      ;;
 
11685
    esac
 
11686
    ;;
 
11687
  hpux10*|hpux11*)
 
11688
    if test $with_gnu_ld = no; then
 
11689
      case "$host_cpu" in
 
11690
      hppa*64*)
 
11691
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11692
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11693
        hardcode_libdir_separator_CXX=:
 
11694
        ;;
 
11695
      ia64*)
 
11696
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11697
        ;;
 
11698
      *)
 
11699
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11700
        hardcode_libdir_separator_CXX=:
 
11701
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11702
        ;;
 
11703
      esac
 
11704
    fi
 
11705
    case "$host_cpu" in
 
11706
    hppa*64*)
 
11707
      hardcode_direct_CXX=no
 
11708
      hardcode_shlibpath_var_CXX=no
 
11709
      ;;
 
11710
    ia64*)
 
11711
      hardcode_direct_CXX=no
 
11712
      hardcode_shlibpath_var_CXX=no
 
11713
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11714
                                              # but as the default
 
11715
                                              # location of the library.
 
11716
      ;;
 
11717
    *)
 
11718
      hardcode_direct_CXX=yes
 
11719
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11720
                                              # but as the default
 
11721
                                              # location of the library.
 
11722
      ;;
 
11723
    esac
 
11724
 
 
11725
    case $cc_basename in
 
11726
      CC)
 
11727
        # FIXME: insert proper C++ library support
 
11728
        ld_shlibs_CXX=no
 
11729
        ;;
 
11730
      aCC)
 
11731
        case "$host_cpu" in
 
11732
        hppa*64*|ia64*)
 
11733
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11734
          ;;
 
11735
        *)
 
11736
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11737
          ;;
 
11738
        esac
 
11739
        # Commands to make compiler produce verbose output that lists
 
11740
        # what "hidden" libraries, object files and flags are used when
 
11741
        # linking a shared library.
 
11742
        #
 
11743
        # There doesn't appear to be a way to prevent this compiler from
 
11744
        # explicitly linking system object files so we need to strip them
 
11745
        # from the output so that they don't get included in the library
 
11746
        # dependencies.
 
11747
        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'
 
11748
        ;;
 
11749
      *)
 
11750
        if test "$GXX" = yes; then
 
11751
          if test $with_gnu_ld = no; then
 
11752
            case "$host_cpu" in
 
11753
            ia64*|hppa*64*)
 
11754
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11755
              ;;
 
11756
            *)
 
11757
              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'
 
11758
              ;;
 
11759
            esac
 
11760
          fi
 
11761
        else
 
11762
          # FIXME: insert proper C++ library support
 
11763
          ld_shlibs_CXX=no
 
11764
        fi
 
11765
        ;;
 
11766
    esac
 
11767
    ;;
 
11768
  irix5* | irix6*)
 
11769
    case $cc_basename in
 
11770
      CC)
 
11771
        # SGI C++
 
11772
        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'
 
11773
 
 
11774
        # Archives containing C++ object files must be created using
 
11775
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11776
        # necessary to make sure instantiated templates are included
 
11777
        # in the archive.
 
11778
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11779
        ;;
 
11780
      *)
 
11781
        if test "$GXX" = yes; then
 
11782
          if test "$with_gnu_ld" = no; then
 
11783
            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'
 
11784
          else
 
11785
            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'
 
11786
          fi
 
11787
        fi
 
11788
        link_all_deplibs_CXX=yes
 
11789
        ;;
 
11790
    esac
 
11791
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11792
    hardcode_libdir_separator_CXX=:
 
11793
    ;;
 
11794
  linux*)
 
11795
    case $cc_basename in
 
11796
      KCC)
 
11797
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11798
 
 
11799
        # KCC will only create a shared library if the output file
 
11800
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11801
        # to its proper name (with version) after linking.
 
11802
        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'
 
11803
        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'
 
11804
        # Commands to make compiler produce verbose output that lists
 
11805
        # what "hidden" libraries, object files and flags are used when
 
11806
        # linking a shared library.
 
11807
        #
 
11808
        # There doesn't appear to be a way to prevent this compiler from
 
11809
        # explicitly linking system object files so we need to strip them
 
11810
        # from the output so that they don't get included in the library
 
11811
        # dependencies.
 
11812
        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'
 
11813
 
 
11814
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11815
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11816
 
 
11817
        # Archives containing C++ object files must be created using
 
11818
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11819
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11820
        ;;
 
11821
      icpc)
 
11822
        # Intel C++
 
11823
        with_gnu_ld=yes
 
11824
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11825
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11826
        # earlier do not add the objects themselves.
 
11827
        case `$CC -V 2>&1` in
 
11828
        *"Version 7."*)
 
11829
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11830
          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'
 
11831
          ;;
 
11832
        *)  # Version 8.0 or newer
 
11833
          archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11834
        archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11835
          ;;
 
11836
        esac
 
11837
        archive_cmds_need_lc_CXX=no
 
11838
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11839
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11840
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11841
        ;;
 
11842
      cxx)
 
11843
        # Compaq C++
 
11844
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11845
        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'
 
11846
 
 
11847
        runpath_var=LD_RUN_PATH
 
11848
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11849
        hardcode_libdir_separator_CXX=:
 
11850
 
 
11851
        # Commands to make compiler produce verbose output that lists
 
11852
        # what "hidden" libraries, object files and flags are used when
 
11853
        # linking a shared library.
 
11854
        #
 
11855
        # There doesn't appear to be a way to prevent this compiler from
 
11856
        # explicitly linking system object files so we need to strip them
 
11857
        # from the output so that they don't get included in the library
 
11858
        # dependencies.
 
11859
        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'
 
11860
        ;;
 
11861
    esac
 
11862
    ;;
 
11863
  lynxos*)
 
11864
    # FIXME: insert proper C++ library support
 
11865
    ld_shlibs_CXX=no
 
11866
    ;;
 
11867
  m88k*)
 
11868
    # FIXME: insert proper C++ library support
 
11869
    ld_shlibs_CXX=no
 
11870
    ;;
 
11871
  mvs*)
 
11872
    case $cc_basename in
 
11873
      cxx)
 
11874
        # FIXME: insert proper C++ library support
 
11875
        ld_shlibs_CXX=no
 
11876
        ;;
 
11877
      *)
 
11878
        # FIXME: insert proper C++ library support
 
11879
        ld_shlibs_CXX=no
 
11880
        ;;
 
11881
    esac
 
11882
    ;;
 
11883
  netbsd*)
 
11884
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11885
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11886
      wlarc=
 
11887
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11888
      hardcode_direct_CXX=yes
 
11889
      hardcode_shlibpath_var_CXX=no
 
11890
    fi
 
11891
    # Workaround some broken pre-1.5 toolchains
 
11892
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11893
    ;;
 
11894
  openbsd2*)
 
11895
    # C++ shared libraries are fairly broken
 
11896
    ld_shlibs_CXX=no
 
11897
    ;;
 
11898
  openbsd*)
 
11899
    hardcode_direct_CXX=yes
 
11900
    hardcode_shlibpath_var_CXX=no
 
11901
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11902
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11903
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11904
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11905
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11906
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11907
    fi
 
11908
    output_verbose_link_cmd='echo'
 
11909
    ;;
 
11910
  osf3*)
 
11911
    case $cc_basename in
 
11912
      KCC)
 
11913
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11914
 
 
11915
        # KCC will only create a shared library if the output file
 
11916
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11917
        # to its proper name (with version) after linking.
 
11918
        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'
 
11919
 
 
11920
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11921
        hardcode_libdir_separator_CXX=:
 
11922
 
 
11923
        # Archives containing C++ object files must be created using
 
11924
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11925
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11926
 
 
11927
        ;;
 
11928
      RCC)
 
11929
        # Rational C++ 2.4.1
 
11930
        # FIXME: insert proper C++ library support
 
11931
        ld_shlibs_CXX=no
 
11932
        ;;
 
11933
      cxx)
 
11934
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11935
        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'
 
11936
 
 
11937
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11938
        hardcode_libdir_separator_CXX=:
 
11939
 
 
11940
        # Commands to make compiler produce verbose output that lists
 
11941
        # what "hidden" libraries, object files and flags are used when
 
11942
        # linking a shared library.
 
11943
        #
 
11944
        # There doesn't appear to be a way to prevent this compiler from
 
11945
        # explicitly linking system object files so we need to strip them
 
11946
        # from the output so that they don't get included in the library
 
11947
        # dependencies.
 
11948
        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'
 
11949
        ;;
 
11950
      *)
 
11951
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11952
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11953
          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'
 
11954
 
 
11955
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11956
          hardcode_libdir_separator_CXX=:
 
11957
 
 
11958
          # Commands to make compiler produce verbose output that lists
 
11959
          # what "hidden" libraries, object files and flags are used when
 
11960
          # linking a shared library.
 
11961
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11962
 
 
11963
        else
 
11964
          # FIXME: insert proper C++ library support
 
11965
          ld_shlibs_CXX=no
 
11966
        fi
 
11967
        ;;
 
11968
    esac
 
11969
    ;;
 
11970
  osf4* | osf5*)
 
11971
    case $cc_basename in
 
11972
      KCC)
 
11973
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11974
 
 
11975
        # KCC will only create a shared library if the output file
 
11976
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11977
        # to its proper name (with version) after linking.
 
11978
        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'
 
11979
 
 
11980
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11981
        hardcode_libdir_separator_CXX=:
 
11982
 
 
11983
        # Archives containing C++ object files must be created using
 
11984
        # the KAI C++ compiler.
 
11985
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11986
        ;;
 
11987
      RCC)
 
11988
        # Rational C++ 2.4.1
 
11989
        # FIXME: insert proper C++ library support
 
11990
        ld_shlibs_CXX=no
 
11991
        ;;
 
11992
      cxx)
 
11993
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11994
        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'
 
11995
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11996
          echo "-hidden">> $lib.exp~
 
11997
          $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~
 
11998
          $rm $lib.exp'
 
11999
 
 
12000
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12001
        hardcode_libdir_separator_CXX=:
 
12002
 
 
12003
        # Commands to make compiler produce verbose output that lists
 
12004
        # what "hidden" libraries, object files and flags are used when
 
12005
        # linking a shared library.
 
12006
        #
 
12007
        # There doesn't appear to be a way to prevent this compiler from
 
12008
        # explicitly linking system object files so we need to strip them
 
12009
        # from the output so that they don't get included in the library
 
12010
        # dependencies.
 
12011
        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'
 
12012
        ;;
 
12013
      *)
 
12014
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12015
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12016
         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'
 
12017
 
 
12018
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12019
          hardcode_libdir_separator_CXX=:
 
12020
 
 
12021
          # Commands to make compiler produce verbose output that lists
 
12022
          # what "hidden" libraries, object files and flags are used when
 
12023
          # linking a shared library.
 
12024
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12025
 
 
12026
        else
 
12027
          # FIXME: insert proper C++ library support
 
12028
          ld_shlibs_CXX=no
 
12029
        fi
 
12030
        ;;
 
12031
    esac
 
12032
    ;;
 
12033
  psos*)
 
12034
    # FIXME: insert proper C++ library support
 
12035
    ld_shlibs_CXX=no
 
12036
    ;;
 
12037
  sco*)
 
12038
    archive_cmds_need_lc_CXX=no
 
12039
    case $cc_basename in
 
12040
      CC)
 
12041
        # FIXME: insert proper C++ library support
 
12042
        ld_shlibs_CXX=no
 
12043
        ;;
 
12044
      *)
 
12045
        # FIXME: insert proper C++ library support
 
12046
        ld_shlibs_CXX=no
 
12047
        ;;
 
12048
    esac
 
12049
    ;;
 
12050
  sunos4*)
 
12051
    case $cc_basename in
 
12052
      CC)
 
12053
        # Sun C++ 4.x
 
12054
        # FIXME: insert proper C++ library support
 
12055
        ld_shlibs_CXX=no
 
12056
        ;;
 
12057
      lcc)
 
12058
        # Lucid
 
12059
        # FIXME: insert proper C++ library support
 
12060
        ld_shlibs_CXX=no
 
12061
        ;;
 
12062
      *)
 
12063
        # FIXME: insert proper C++ library support
 
12064
        ld_shlibs_CXX=no
 
12065
        ;;
 
12066
    esac
 
12067
    ;;
 
12068
  solaris*)
 
12069
    case $cc_basename in
 
12070
      CC)
 
12071
        # Sun C++ 4.2, 5.x and Centerline C++
 
12072
        no_undefined_flag_CXX=' -zdefs'
 
12073
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12074
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12075
        $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'
 
12076
 
 
12077
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12078
        hardcode_shlibpath_var_CXX=no
 
12079
        case $host_os in
 
12080
          solaris2.0-5 | solaris2.0-5.*) ;;
 
12081
          *)
 
12082
            # The C++ compiler is used as linker so we must use $wl
 
12083
            # flag to pass the commands to the underlying system
 
12084
            # linker.
 
12085
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12086
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12087
            ;;
 
12088
        esac
 
12089
        link_all_deplibs_CXX=yes
 
12090
 
 
12091
        # Commands to make compiler produce verbose output that lists
 
12092
        # what "hidden" libraries, object files and flags are used when
 
12093
        # linking a shared library.
 
12094
        #
 
12095
        # There doesn't appear to be a way to prevent this compiler from
 
12096
        # explicitly linking system object files so we need to strip them
 
12097
        # from the output so that they don't get included in the library
 
12098
        # dependencies.
 
12099
        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'
 
12100
 
 
12101
        # Archives containing C++ object files must be created using
 
12102
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12103
        # necessary to make sure instantiated templates are included
 
12104
        # in the archive.
 
12105
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12106
        ;;
 
12107
      gcx)
 
12108
        # Green Hills C++ Compiler
 
12109
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12110
 
 
12111
        # The C++ compiler must be used to create the archive.
 
12112
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12113
        ;;
 
12114
      *)
 
12115
        # GNU C++ compiler with Solaris linker
 
12116
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12117
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12118
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12119
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12120
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12121
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12122
 
 
12123
            # Commands to make compiler produce verbose output that lists
 
12124
            # what "hidden" libraries, object files and flags are used when
 
12125
            # linking a shared library.
 
12126
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12127
          else
 
12128
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12129
            # platform.
 
12130
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12131
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12132
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12133
 
 
12134
            # Commands to make compiler produce verbose output that lists
 
12135
            # what "hidden" libraries, object files and flags are used when
 
12136
            # linking a shared library.
 
12137
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12138
          fi
 
12139
 
 
12140
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12141
        fi
 
12142
        ;;
 
12143
    esac
 
12144
    ;;
 
12145
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
12146
    archive_cmds_need_lc_CXX=no
 
12147
    ;;
 
12148
  tandem*)
 
12149
    case $cc_basename in
 
12150
      NCC)
 
12151
        # NonStop-UX NCC 3.20
 
12152
        # FIXME: insert proper C++ library support
 
12153
        ld_shlibs_CXX=no
 
12154
        ;;
 
12155
      *)
 
12156
        # FIXME: insert proper C++ library support
 
12157
        ld_shlibs_CXX=no
 
12158
        ;;
 
12159
    esac
 
12160
    ;;
 
12161
  vxworks*)
 
12162
    # FIXME: insert proper C++ library support
 
12163
    ld_shlibs_CXX=no
 
12164
    ;;
 
12165
  *)
 
12166
    # FIXME: insert proper C++ library support
 
12167
    ld_shlibs_CXX=no
 
12168
    ;;
 
12169
esac
 
12170
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12171
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12172
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12173
 
 
12174
GCC_CXX="$GXX"
 
12175
LD_CXX="$LD"
 
12176
 
 
12177
## CAVEAT EMPTOR:
 
12178
## There is no encapsulation within the following macros, do not change
 
12179
## the running order or otherwise move them around unless you know exactly
 
12180
## what you are doing...
 
12181
 
 
12182
cat > conftest.$ac_ext <<EOF
 
12183
class Foo
 
12184
{
 
12185
public:
 
12186
  Foo (void) { a = 0; }
 
12187
private:
 
12188
  int a;
 
12189
};
 
12190
EOF
 
12191
 
 
12192
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12193
  (eval $ac_compile) 2>&5
 
12194
  ac_status=$?
 
12195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12196
  (exit $ac_status); }; then
 
12197
  # Parse the compiler output and extract the necessary
 
12198
  # objects, libraries and library flags.
 
12199
 
 
12200
  # Sentinel used to keep track of whether or not we are before
 
12201
  # the conftest object file.
 
12202
  pre_test_object_deps_done=no
 
12203
 
 
12204
  # The `*' in the case matches for architectures that use `case' in
 
12205
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12206
  # eval without this substitution.
 
12207
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
12208
 
 
12209
  for p in `eval $output_verbose_link_cmd`; do
 
12210
    case $p in
 
12211
 
 
12212
    -L* | -R* | -l*)
 
12213
       # Some compilers place space between "-{L,R}" and the path.
 
12214
       # Remove the space.
 
12215
       if test $p = "-L" \
 
12216
          || test $p = "-R"; then
 
12217
         prev=$p
 
12218
         continue
 
12219
       else
 
12220
         prev=
 
12221
       fi
 
12222
 
 
12223
       if test "$pre_test_object_deps_done" = no; then
 
12224
         case $p in
 
12225
         -L* | -R*)
 
12226
           # Internal compiler library paths should come after those
 
12227
           # provided the user.  The postdeps already come after the
 
12228
           # user supplied libs so there is no need to process them.
 
12229
           if test -z "$compiler_lib_search_path_CXX"; then
 
12230
             compiler_lib_search_path_CXX="${prev}${p}"
 
12231
           else
 
12232
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12233
           fi
 
12234
           ;;
 
12235
         # The "-l" case would never come before the object being
 
12236
         # linked, so don't bother handling this case.
 
12237
         esac
 
12238
       else
 
12239
         if test -z "$postdeps_CXX"; then
 
12240
           postdeps_CXX="${prev}${p}"
 
12241
         else
 
12242
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12243
         fi
 
12244
       fi
 
12245
       ;;
 
12246
 
 
12247
    *.$objext)
 
12248
       # This assumes that the test object file only shows up
 
12249
       # once in the compiler output.
 
12250
       if test "$p" = "conftest.$objext"; then
 
12251
         pre_test_object_deps_done=yes
 
12252
         continue
 
12253
       fi
 
12254
 
 
12255
       if test "$pre_test_object_deps_done" = no; then
 
12256
         if test -z "$predep_objects_CXX"; then
 
12257
           predep_objects_CXX="$p"
 
12258
         else
 
12259
           predep_objects_CXX="$predep_objects_CXX $p"
 
12260
         fi
 
12261
       else
 
12262
         if test -z "$postdep_objects_CXX"; then
 
12263
           postdep_objects_CXX="$p"
 
12264
         else
 
12265
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12266
         fi
 
12267
       fi
 
12268
       ;;
 
12269
 
 
12270
    *) ;; # Ignore the rest.
 
12271
 
 
12272
    esac
 
12273
  done
 
12274
 
 
12275
  # Clean up.
 
12276
  rm -f a.out a.exe
 
12277
else
 
12278
  echo "libtool.m4: error: problem compiling CXX test program"
 
12279
fi
 
12280
 
 
12281
$rm -f confest.$objext
 
12282
 
 
12283
case " $postdeps_CXX " in
 
12284
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12285
esac
 
12286
 
 
12287
lt_prog_compiler_wl_CXX=
 
12288
lt_prog_compiler_pic_CXX=
 
12289
lt_prog_compiler_static_CXX=
 
12290
 
 
12291
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12292
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12293
 
 
12294
  # C++ specific cases for pic, static, wl, etc.
 
12295
  if test "$GXX" = yes; then
 
12296
    lt_prog_compiler_wl_CXX='-Wl,'
 
12297
    lt_prog_compiler_static_CXX='-static'
 
12298
 
 
12299
    case $host_os in
 
12300
    aix*)
 
12301
      # All AIX code is PIC.
 
12302
      if test "$host_cpu" = ia64; then
 
12303
        # AIX 5 now supports IA64 processor
 
12304
        lt_prog_compiler_static_CXX='-Bstatic'
 
12305
      fi
 
12306
      ;;
 
12307
    amigaos*)
 
12308
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12309
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12310
      # like `-m68040'.
 
12311
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12312
      ;;
 
12313
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12314
      # PIC is the default for these OSes.
 
12315
      ;;
 
12316
    mingw* | os2* | pw32*)
 
12317
      # This hack is so that the source file can tell whether it is being
 
12318
      # built for inclusion in a dll (and should export symbols for example).
 
12319
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12320
      ;;
 
12321
    darwin* | rhapsody*)
 
12322
      # PIC is the default on this platform
 
12323
      # Common symbols not allowed in MH_DYLIB files
 
12324
      lt_prog_compiler_pic_CXX='-fno-common'
 
12325
      ;;
 
12326
    *djgpp*)
 
12327
      # DJGPP does not support shared libraries at all
 
12328
      lt_prog_compiler_pic_CXX=
 
12329
      ;;
 
12330
    sysv4*MP*)
 
12331
      if test -d /usr/nec; then
 
12332
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12333
      fi
 
12334
      ;;
 
12335
    hpux*)
 
12336
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12337
      # not for PA HP-UX.
 
12338
      case "$host_cpu" in
 
12339
      hppa*64*|ia64*)
 
12340
        ;;
 
12341
      *)
 
12342
        lt_prog_compiler_pic_CXX='-fPIC'
 
12343
        ;;
 
12344
      esac
 
12345
      ;;
 
12346
    *)
 
12347
      lt_prog_compiler_pic_CXX='-fPIC'
 
12348
      ;;
 
12349
    esac
 
12350
  else
 
12351
    case $host_os in
 
12352
      aix4* | aix5*)
 
12353
        # All AIX code is PIC.
 
12354
        if test "$host_cpu" = ia64; then
 
12355
          # AIX 5 now supports IA64 processor
 
12356
          lt_prog_compiler_static_CXX='-Bstatic'
 
12357
        else
 
12358
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12359
        fi
 
12360
        ;;
 
12361
      chorus*)
 
12362
        case $cc_basename in
 
12363
        cxch68)
 
12364
          # Green Hills C++ Compiler
 
12365
          # _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"
 
12366
          ;;
 
12367
        esac
 
12368
        ;;
 
12369
       darwin*)
 
12370
         # PIC is the default on this platform
 
12371
         # Common symbols not allowed in MH_DYLIB files
 
12372
         case "$cc_basename" in
 
12373
           xlc*)
 
12374
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12375
           lt_prog_compiler_wl_CXX='-Wl,'
 
12376
           ;;
 
12377
         esac
 
12378
       ;;
 
12379
      dgux*)
 
12380
        case $cc_basename in
 
12381
          ec++)
 
12382
            lt_prog_compiler_pic_CXX='-KPIC'
 
12383
            ;;
 
12384
          ghcx)
 
12385
            # Green Hills C++ Compiler
 
12386
            lt_prog_compiler_pic_CXX='-pic'
 
12387
            ;;
 
12388
          *)
 
12389
            ;;
 
12390
        esac
 
12391
        ;;
 
12392
      freebsd* | kfreebsd*-gnu)
 
12393
        # FreeBSD uses GNU C++
 
12394
        ;;
 
12395
      hpux9* | hpux10* | hpux11*)
 
12396
        case $cc_basename in
 
12397
          CC)
 
12398
            lt_prog_compiler_wl_CXX='-Wl,'
 
12399
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12400
            if test "$host_cpu" != ia64; then
 
12401
              lt_prog_compiler_pic_CXX='+Z'
 
12402
            fi
 
12403
            ;;
 
12404
          aCC)
 
12405
            lt_prog_compiler_wl_CXX='-Wl,'
 
12406
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12407
            case "$host_cpu" in
 
12408
            hppa*64*|ia64*)
 
12409
              # +Z the default
 
12410
              ;;
 
12411
            *)
 
12412
              lt_prog_compiler_pic_CXX='+Z'
 
12413
              ;;
 
12414
            esac
 
12415
            ;;
 
12416
          *)
 
12417
            ;;
 
12418
        esac
 
12419
        ;;
 
12420
      irix5* | irix6* | nonstopux*)
 
12421
        case $cc_basename in
 
12422
          CC)
 
12423
            lt_prog_compiler_wl_CXX='-Wl,'
 
12424
            lt_prog_compiler_static_CXX='-non_shared'
 
12425
            # CC pic flag -KPIC is the default.
 
12426
            ;;
 
12427
          *)
 
12428
            ;;
 
12429
        esac
 
12430
        ;;
 
12431
      linux*)
 
12432
        case $cc_basename in
 
12433
          KCC)
 
12434
            # KAI C++ Compiler
 
12435
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12436
            lt_prog_compiler_pic_CXX='-fPIC'
 
12437
            ;;
 
12438
          icpc)
 
12439
            # Intel C++
 
12440
            lt_prog_compiler_wl_CXX='-Wl,'
 
12441
            lt_prog_compiler_pic_CXX='-KPIC'
 
12442
            lt_prog_compiler_static_CXX='-static'
 
12443
            ;;
 
12444
          cxx)
 
12445
            # Compaq C++
 
12446
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12447
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12448
            lt_prog_compiler_pic_CXX=
 
12449
            lt_prog_compiler_static_CXX='-non_shared'
 
12450
            ;;
 
12451
          *)
 
12452
            ;;
 
12453
        esac
 
12454
        ;;
 
12455
      lynxos*)
 
12456
        ;;
 
12457
      m88k*)
 
12458
        ;;
 
12459
      mvs*)
 
12460
        case $cc_basename in
 
12461
          cxx)
 
12462
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12463
            ;;
 
12464
          *)
 
12465
            ;;
 
12466
        esac
 
12467
        ;;
 
12468
      netbsd*)
 
12469
        ;;
 
12470
      osf3* | osf4* | osf5*)
 
12471
        case $cc_basename in
 
12472
          KCC)
 
12473
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12474
            ;;
 
12475
          RCC)
 
12476
            # Rational C++ 2.4.1
 
12477
            lt_prog_compiler_pic_CXX='-pic'
 
12478
            ;;
 
12479
          cxx)
 
12480
            # Digital/Compaq C++
 
12481
            lt_prog_compiler_wl_CXX='-Wl,'
 
12482
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12483
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12484
            lt_prog_compiler_pic_CXX=
 
12485
            lt_prog_compiler_static_CXX='-non_shared'
 
12486
            ;;
 
12487
          *)
 
12488
            ;;
 
12489
        esac
 
12490
        ;;
 
12491
      psos*)
 
12492
        ;;
 
12493
      sco*)
 
12494
        case $cc_basename in
 
12495
          CC)
 
12496
            lt_prog_compiler_pic_CXX='-fPIC'
 
12497
            ;;
 
12498
          *)
 
12499
            ;;
 
12500
        esac
 
12501
        ;;
 
12502
      solaris*)
 
12503
        case $cc_basename in
 
12504
          CC)
 
12505
            # Sun C++ 4.2, 5.x and Centerline C++
 
12506
            lt_prog_compiler_pic_CXX='-KPIC'
 
12507
            lt_prog_compiler_static_CXX='-Bstatic'
 
12508
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12509
            ;;
 
12510
          gcx)
 
12511
            # Green Hills C++ Compiler
 
12512
            lt_prog_compiler_pic_CXX='-PIC'
 
12513
            ;;
 
12514
          *)
 
12515
            ;;
 
12516
        esac
 
12517
        ;;
 
12518
      sunos4*)
 
12519
        case $cc_basename in
 
12520
          CC)
 
12521
            # Sun C++ 4.x
 
12522
            lt_prog_compiler_pic_CXX='-pic'
 
12523
            lt_prog_compiler_static_CXX='-Bstatic'
 
12524
            ;;
 
12525
          lcc)
 
12526
            # Lucid
 
12527
            lt_prog_compiler_pic_CXX='-pic'
 
12528
            ;;
 
12529
          *)
 
12530
            ;;
 
12531
        esac
 
12532
        ;;
 
12533
      tandem*)
 
12534
        case $cc_basename in
 
12535
          NCC)
 
12536
            # NonStop-UX NCC 3.20
 
12537
            lt_prog_compiler_pic_CXX='-KPIC'
 
12538
            ;;
 
12539
          *)
 
12540
            ;;
 
12541
        esac
 
12542
        ;;
 
12543
      unixware*)
 
12544
        ;;
 
12545
      vxworks*)
 
12546
        ;;
 
12547
      *)
 
12548
        lt_prog_compiler_can_build_shared_CXX=no
 
12549
        ;;
 
12550
    esac
 
12551
  fi
 
12552
 
 
12553
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12554
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
12555
 
 
12556
#
 
12557
# Check to make sure the PIC flag actually works.
 
12558
#
 
12559
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12560
 
 
12561
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12562
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
12563
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12565
else
 
12566
  lt_prog_compiler_pic_works_CXX=no
 
12567
  ac_outfile=conftest.$ac_objext
 
12568
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12569
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12570
   # Insert the option either (1) after the last *FLAGS variable, or
 
12571
   # (2) before a word containing "conftest.", or (3) at the end.
 
12572
   # Note that $ac_compile itself does not contain backslashes and begins
 
12573
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12574
   # The option is referenced via a variable to avoid confusing sed.
 
12575
   lt_compile=`echo "$ac_compile" | $SED \
 
12576
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12577
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12578
   -e 's:$: $lt_compiler_flag:'`
 
12579
   (eval echo "\"\$as_me:12579: $lt_compile\"" >&5)
 
12580
   (eval "$lt_compile" 2>conftest.err)
 
12581
   ac_status=$?
 
12582
   cat conftest.err >&5
 
12583
   echo "$as_me:12583: \$? = $ac_status" >&5
 
12584
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12585
     # The compiler can only warn and ignore the option if not recognized
 
12586
     # So say no if there are warnings
 
12587
     if test ! -s conftest.err; then
 
12588
       lt_prog_compiler_pic_works_CXX=yes
 
12589
     fi
 
12590
   fi
 
12591
   $rm conftest*
 
12592
 
 
12593
fi
 
12594
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12595
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
12596
 
 
12597
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12598
    case $lt_prog_compiler_pic_CXX in
 
12599
     "" | " "*) ;;
 
12600
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12601
     esac
 
12602
else
 
12603
    lt_prog_compiler_pic_CXX=
 
12604
     lt_prog_compiler_can_build_shared_CXX=no
 
12605
fi
 
12606
 
 
12607
fi
 
12608
case "$host_os" in
 
12609
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12610
  *djgpp*)
 
12611
    lt_prog_compiler_pic_CXX=
 
12612
    ;;
 
12613
  *)
 
12614
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12615
    ;;
 
12616
esac
 
12617
 
 
12618
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12619
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12620
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12622
else
 
12623
  lt_cv_prog_compiler_c_o_CXX=no
 
12624
   $rm -r conftest 2>/dev/null
 
12625
   mkdir conftest
 
12626
   cd conftest
 
12627
   mkdir out
 
12628
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12629
 
 
12630
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12631
   # Insert the option either (1) after the last *FLAGS variable, or
 
12632
   # (2) before a word containing "conftest.", or (3) at the end.
 
12633
   # Note that $ac_compile itself does not contain backslashes and begins
 
12634
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12635
   lt_compile=`echo "$ac_compile" | $SED \
 
12636
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12637
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12638
   -e 's:$: $lt_compiler_flag:'`
 
12639
   (eval echo "\"\$as_me:12639: $lt_compile\"" >&5)
 
12640
   (eval "$lt_compile" 2>out/conftest.err)
 
12641
   ac_status=$?
 
12642
   cat out/conftest.err >&5
 
12643
   echo "$as_me:12643: \$? = $ac_status" >&5
 
12644
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12645
   then
 
12646
     # The compiler can only warn and ignore the option if not recognized
 
12647
     # So say no if there are warnings
 
12648
     if test ! -s out/conftest.err; then
 
12649
       lt_cv_prog_compiler_c_o_CXX=yes
 
12650
     fi
 
12651
   fi
 
12652
   chmod u+w .
 
12653
   $rm conftest*
 
12654
   # SGI C++ compiler will create directory out/ii_files/ for
 
12655
   # template instantiation
 
12656
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12657
   $rm out/* && rmdir out
 
12658
   cd ..
 
12659
   rmdir conftest
 
12660
   $rm conftest*
 
12661
 
 
12662
fi
 
12663
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12664
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
12665
 
 
12666
 
 
12667
hard_links="nottested"
 
12668
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12669
  # do not overwrite the value of need_locks provided by the user
 
12670
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12671
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
12672
  hard_links=yes
 
12673
  $rm conftest*
 
12674
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12675
  touch conftest.a
 
12676
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12677
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12678
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
12679
echo "${ECHO_T}$hard_links" >&6
 
12680
  if test "$hard_links" = no; then
 
12681
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12682
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12683
    need_locks=warn
 
12684
  fi
 
12685
else
 
12686
  need_locks=no
 
12687
fi
 
12688
 
 
12689
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12690
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12691
 
 
12692
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12693
  case $host_os in
 
12694
  aix4* | aix5*)
 
12695
    # If we're using GNU nm, then we don't want the "-C" option.
 
12696
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12697
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12698
      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'
 
12699
    else
 
12700
      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'
 
12701
    fi
 
12702
    ;;
 
12703
  pw32*)
 
12704
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12705
  ;;
 
12706
  cygwin* | mingw*)
 
12707
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12708
  ;;
 
12709
  *)
 
12710
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12711
  ;;
 
12712
  esac
 
12713
 
 
12714
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12715
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12716
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12717
 
 
12718
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12719
if test "$GCC" = yes; then
 
12720
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12721
fi
 
12722
 
 
12723
#
 
12724
# Do we need to explicitly link libc?
 
12725
#
 
12726
case "x$archive_cmds_need_lc_CXX" in
 
12727
x|xyes)
 
12728
  # Assume -lc should be added
 
12729
  archive_cmds_need_lc_CXX=yes
 
12730
 
 
12731
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12732
    case $archive_cmds_CXX in
 
12733
    *'~'*)
 
12734
      # FIXME: we may have to deal with multi-command sequences.
 
12735
      ;;
 
12736
    '$CC '*)
 
12737
      # Test whether the compiler implicitly links with -lc since on some
 
12738
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12739
      # to ld, don't add -lc before -lgcc.
 
12740
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12741
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
12742
      $rm conftest*
 
12743
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12744
 
 
12745
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12746
  (eval $ac_compile) 2>&5
 
12747
  ac_status=$?
 
12748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12749
  (exit $ac_status); } 2>conftest.err; then
 
12750
        soname=conftest
 
12751
        lib=conftest
 
12752
        libobjs=conftest.$ac_objext
 
12753
        deplibs=
 
12754
        wl=$lt_prog_compiler_wl_CXX
 
12755
        compiler_flags=-v
 
12756
        linker_flags=-v
 
12757
        verstring=
 
12758
        output_objdir=.
 
12759
        libname=conftest
 
12760
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12761
        allow_undefined_flag_CXX=
 
12762
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12763
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12764
  ac_status=$?
 
12765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12766
  (exit $ac_status); }
 
12767
        then
 
12768
          archive_cmds_need_lc_CXX=no
 
12769
        else
 
12770
          archive_cmds_need_lc_CXX=yes
 
12771
        fi
 
12772
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12773
      else
 
12774
        cat conftest.err 1>&5
 
12775
      fi
 
12776
      $rm conftest*
 
12777
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12778
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
12779
      ;;
 
12780
    esac
 
12781
  fi
 
12782
  ;;
 
12783
esac
 
12784
 
 
12785
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12786
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12787
library_names_spec=
 
12788
libname_spec='lib$name'
 
12789
soname_spec=
 
12790
shrext_cmds=".so"
 
12791
postinstall_cmds=
 
12792
postuninstall_cmds=
 
12793
finish_cmds=
 
12794
finish_eval=
 
12795
shlibpath_var=
 
12796
shlibpath_overrides_runpath=unknown
 
12797
version_type=none
 
12798
dynamic_linker="$host_os ld.so"
 
12799
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12800
if test "$GCC" = yes; then
 
12801
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12802
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12803
    # if the path contains ";" then we assume it to be the separator
 
12804
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12805
    # assumed that no part of a normal pathname contains ";" but that should
 
12806
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12807
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12808
  else
 
12809
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12810
  fi
 
12811
else
 
12812
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12813
fi
 
12814
need_lib_prefix=unknown
 
12815
hardcode_into_libs=no
 
12816
 
 
12817
# when you set need_version to no, make sure it does not cause -set_version
 
12818
# flags to be left without arguments
 
12819
need_version=unknown
 
12820
 
 
12821
case $host_os in
 
12822
aix3*)
 
12823
  version_type=linux
 
12824
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12825
  shlibpath_var=LIBPATH
 
12826
 
 
12827
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12828
  soname_spec='${libname}${release}${shared_ext}$major'
 
12829
  ;;
 
12830
 
 
12831
aix4* | aix5*)
 
12832
  version_type=linux
 
12833
  need_lib_prefix=no
 
12834
  need_version=no
 
12835
  hardcode_into_libs=yes
 
12836
  if test "$host_cpu" = ia64; then
 
12837
    # AIX 5 supports IA64
 
12838
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12839
    shlibpath_var=LD_LIBRARY_PATH
 
12840
  else
 
12841
    # With GCC up to 2.95.x, collect2 would create an import file
 
12842
    # for dependence libraries.  The import file would start with
 
12843
    # the line `#! .'.  This would cause the generated library to
 
12844
    # depend on `.', always an invalid library.  This was fixed in
 
12845
    # development snapshots of GCC prior to 3.0.
 
12846
    case $host_os in
 
12847
      aix4 | aix4.[01] | aix4.[01].*)
 
12848
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12849
           echo ' yes '
 
12850
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12851
        :
 
12852
      else
 
12853
        can_build_shared=no
 
12854
      fi
 
12855
      ;;
 
12856
    esac
 
12857
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12858
    # soname into executable. Probably we can add versioning support to
 
12859
    # collect2, so additional links can be useful in future.
 
12860
    if test "$aix_use_runtimelinking" = yes; then
 
12861
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12862
      # instead of lib<name>.a to let people know that these are not
 
12863
      # typical AIX shared libraries.
 
12864
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12865
    else
 
12866
      # We preserve .a as extension for shared libraries through AIX4.2
 
12867
      # and later when we are not doing run time linking.
 
12868
      library_names_spec='${libname}${release}.a $libname.a'
 
12869
      soname_spec='${libname}${release}${shared_ext}$major'
 
12870
    fi
 
12871
    shlibpath_var=LIBPATH
 
12872
  fi
 
12873
  ;;
 
12874
 
 
12875
amigaos*)
 
12876
  library_names_spec='$libname.ixlibrary $libname.a'
 
12877
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12878
  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'
 
12879
  ;;
 
12880
 
 
12881
beos*)
 
12882
  library_names_spec='${libname}${shared_ext}'
 
12883
  dynamic_linker="$host_os ld.so"
 
12884
  shlibpath_var=LIBRARY_PATH
 
12885
  ;;
 
12886
 
 
12887
bsdi[45]*)
 
12888
  version_type=linux
 
12889
  need_version=no
 
12890
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12891
  soname_spec='${libname}${release}${shared_ext}$major'
 
12892
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12893
  shlibpath_var=LD_LIBRARY_PATH
 
12894
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12895
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12896
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12897
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12898
  # libtool to hard-code these into programs
 
12899
  ;;
 
12900
 
 
12901
cygwin* | mingw* | pw32*)
 
12902
  version_type=windows
 
12903
  shrext_cmds=".dll"
 
12904
  need_version=no
 
12905
  need_lib_prefix=no
 
12906
 
 
12907
  case $GCC,$host_os in
 
12908
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12909
    library_names_spec='$libname.dll.a'
 
12910
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12911
    postinstall_cmds='base_file=`basename \${file}`~
 
12912
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12913
      dldir=$destdir/`dirname \$dlpath`~
 
12914
      test -d \$dldir || mkdir -p \$dldir~
 
12915
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12916
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12917
      dlpath=$dir/\$dldll~
 
12918
       $rm \$dlpath'
 
12919
    shlibpath_overrides_runpath=yes
 
12920
 
 
12921
    case $host_os in
 
12922
    cygwin*)
 
12923
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12924
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12925
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12926
      ;;
 
12927
    mingw*)
 
12928
      # MinGW DLLs use traditional 'lib' prefix
 
12929
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12930
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12931
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12932
        # It is most probably a Windows format PATH printed by
 
12933
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12934
        # path with ; separators, and with drive letters. We can handle the
 
12935
        # drive letters (cygwin fileutils understands them), so leave them,
 
12936
        # especially as we might pass files found there to a mingw objdump,
 
12937
        # which wouldn't understand a cygwinified path. Ahh.
 
12938
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12939
      else
 
12940
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12941
      fi
 
12942
      ;;
 
12943
    pw32*)
 
12944
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12945
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12946
      ;;
 
12947
    esac
 
12948
    ;;
 
12949
 
 
12950
  *)
 
12951
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12952
    ;;
 
12953
  esac
 
12954
  dynamic_linker='Win32 ld.exe'
 
12955
  # FIXME: first we should search . and the directory the executable is in
 
12956
  shlibpath_var=PATH
 
12957
  ;;
 
12958
 
 
12959
darwin* | rhapsody*)
 
12960
  dynamic_linker="$host_os dyld"
 
12961
  version_type=darwin
 
12962
  need_lib_prefix=no
 
12963
  need_version=no
 
12964
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12965
  soname_spec='${libname}${release}${major}$shared_ext'
 
12966
  shlibpath_overrides_runpath=yes
 
12967
  shlibpath_var=DYLD_LIBRARY_PATH
 
12968
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
12969
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12970
  if test "$GCC" = yes; then
 
12971
    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"`
 
12972
  else
 
12973
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12974
  fi
 
12975
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12976
  ;;
 
12977
 
 
12978
dgux*)
 
12979
  version_type=linux
 
12980
  need_lib_prefix=no
 
12981
  need_version=no
 
12982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12983
  soname_spec='${libname}${release}${shared_ext}$major'
 
12984
  shlibpath_var=LD_LIBRARY_PATH
 
12985
  ;;
 
12986
 
 
12987
freebsd1*)
 
12988
  dynamic_linker=no
 
12989
  ;;
 
12990
 
 
12991
kfreebsd*-gnu)
 
12992
  version_type=linux
 
12993
  need_lib_prefix=no
 
12994
  need_version=no
 
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
  shlibpath_overrides_runpath=no
 
12999
  hardcode_into_libs=yes
 
13000
  dynamic_linker='GNU ld.so'
 
13001
  ;;
 
13002
 
 
13003
freebsd*)
 
13004
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
13005
  version_type=freebsd-$objformat
 
13006
  case $version_type in
 
13007
    freebsd-elf*)
 
13008
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13009
      need_version=no
 
13010
      need_lib_prefix=no
 
13011
      ;;
 
13012
    freebsd-*)
 
13013
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13014
      need_version=yes
 
13015
      ;;
 
13016
  esac
 
13017
  shlibpath_var=LD_LIBRARY_PATH
 
13018
  case $host_os in
 
13019
  freebsd2*)
 
13020
    shlibpath_overrides_runpath=yes
 
13021
    ;;
 
13022
  freebsd3.01* | freebsdelf3.01*)
 
13023
    shlibpath_overrides_runpath=yes
 
13024
    hardcode_into_libs=yes
 
13025
    ;;
 
13026
  *) # from 3.2 on
 
13027
    shlibpath_overrides_runpath=no
 
13028
    hardcode_into_libs=yes
 
13029
    ;;
 
13030
  esac
 
13031
  ;;
 
13032
 
 
13033
gnu*)
 
13034
  version_type=linux
 
13035
  need_lib_prefix=no
 
13036
  need_version=no
 
13037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13038
  soname_spec='${libname}${release}${shared_ext}$major'
 
13039
  shlibpath_var=LD_LIBRARY_PATH
 
13040
  hardcode_into_libs=yes
 
13041
  ;;
 
13042
 
 
13043
hpux9* | hpux10* | hpux11*)
 
13044
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13045
  # link against other versions.
 
13046
  version_type=sunos
 
13047
  need_lib_prefix=no
 
13048
  need_version=no
 
13049
  case "$host_cpu" in
 
13050
  ia64*)
 
13051
    shrext_cmds='.so'
 
13052
    hardcode_into_libs=yes
 
13053
    dynamic_linker="$host_os dld.so"
 
13054
    shlibpath_var=LD_LIBRARY_PATH
 
13055
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13056
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13057
    soname_spec='${libname}${release}${shared_ext}$major'
 
13058
    if test "X$HPUX_IA64_MODE" = X32; then
 
13059
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13060
    else
 
13061
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13062
    fi
 
13063
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13064
    ;;
 
13065
   hppa*64*)
 
13066
     shrext_cmds='.sl'
 
13067
     hardcode_into_libs=yes
 
13068
     dynamic_linker="$host_os dld.sl"
 
13069
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13070
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13071
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13072
     soname_spec='${libname}${release}${shared_ext}$major'
 
13073
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13074
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13075
     ;;
 
13076
   *)
 
13077
    shrext_cmds='.sl'
 
13078
    dynamic_linker="$host_os dld.sl"
 
13079
    shlibpath_var=SHLIB_PATH
 
13080
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13081
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13082
    soname_spec='${libname}${release}${shared_ext}$major'
 
13083
    ;;
 
13084
  esac
 
13085
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13086
  postinstall_cmds='chmod 555 $lib'
 
13087
  ;;
 
13088
 
 
13089
irix5* | irix6* | nonstopux*)
 
13090
  case $host_os in
 
13091
    nonstopux*) version_type=nonstopux ;;
 
13092
    *)
 
13093
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13094
                version_type=linux
 
13095
        else
 
13096
                version_type=irix
 
13097
        fi ;;
 
13098
  esac
 
13099
  need_lib_prefix=no
 
13100
  need_version=no
 
13101
  soname_spec='${libname}${release}${shared_ext}$major'
 
13102
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13103
  case $host_os in
 
13104
  irix5* | nonstopux*)
 
13105
    libsuff= shlibsuff=
 
13106
    ;;
 
13107
  *)
 
13108
    case $LD in # libtool.m4 will add one of these switches to LD
 
13109
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13110
      libsuff= shlibsuff= libmagic=32-bit;;
 
13111
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13112
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13113
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13114
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13115
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13116
    esac
 
13117
    ;;
 
13118
  esac
 
13119
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13120
  shlibpath_overrides_runpath=no
 
13121
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13122
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13123
  hardcode_into_libs=yes
 
13124
  ;;
 
13125
 
 
13126
# No shared lib support for Linux oldld, aout, or coff.
 
13127
linux*oldld* | linux*aout* | linux*coff*)
 
13128
  dynamic_linker=no
 
13129
  ;;
 
13130
 
 
13131
# This must be Linux ELF.
 
13132
linux*)
 
13133
  version_type=linux
 
13134
  need_lib_prefix=no
 
13135
  need_version=no
 
13136
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13137
  soname_spec='${libname}${release}${shared_ext}$major'
 
13138
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13139
  shlibpath_var=LD_LIBRARY_PATH
 
13140
  shlibpath_overrides_runpath=no
 
13141
  # This implies no fast_install, which is unacceptable.
 
13142
  # Some rework will be needed to allow for fast_install
 
13143
  # before this can be enabled.
 
13144
  hardcode_into_libs=yes
 
13145
 
 
13146
  # Append ld.so.conf contents to the search path
 
13147
  if test -f /etc/ld.so.conf; then
 
13148
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
13149
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13150
  fi
 
13151
 
 
13152
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13153
  # powerpc, because MkLinux only supported shared libraries with the
 
13154
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13155
  # most powerpc-linux boxes support dynamic linking these days and
 
13156
  # people can always --disable-shared, the test was removed, and we
 
13157
  # assume the GNU/Linux dynamic linker is in use.
 
13158
  dynamic_linker='GNU/Linux ld.so'
 
13159
  ;;
 
13160
 
 
13161
knetbsd*-gnu)
 
13162
  version_type=linux
 
13163
  need_lib_prefix=no
 
13164
  need_version=no
 
13165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13166
  soname_spec='${libname}${release}${shared_ext}$major'
 
13167
  shlibpath_var=LD_LIBRARY_PATH
 
13168
  shlibpath_overrides_runpath=no
 
13169
  hardcode_into_libs=yes
 
13170
  dynamic_linker='GNU ld.so'
 
13171
  ;;
 
13172
 
 
13173
netbsd*)
 
13174
  version_type=sunos
 
13175
  need_lib_prefix=no
 
13176
  need_version=no
 
13177
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13178
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13179
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13180
    dynamic_linker='NetBSD (a.out) ld.so'
 
13181
  else
 
13182
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13183
    soname_spec='${libname}${release}${shared_ext}$major'
 
13184
    dynamic_linker='NetBSD ld.elf_so'
 
13185
  fi
 
13186
  shlibpath_var=LD_LIBRARY_PATH
 
13187
  shlibpath_overrides_runpath=yes
 
13188
  hardcode_into_libs=yes
 
13189
  ;;
 
13190
 
 
13191
newsos6)
 
13192
  version_type=linux
 
13193
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13194
  shlibpath_var=LD_LIBRARY_PATH
 
13195
  shlibpath_overrides_runpath=yes
 
13196
  ;;
 
13197
 
 
13198
nto-qnx*)
 
13199
  version_type=linux
 
13200
  need_lib_prefix=no
 
13201
  need_version=no
 
13202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13203
  soname_spec='${libname}${release}${shared_ext}$major'
 
13204
  shlibpath_var=LD_LIBRARY_PATH
 
13205
  shlibpath_overrides_runpath=yes
 
13206
  ;;
 
13207
 
 
13208
openbsd*)
 
13209
  version_type=sunos
 
13210
  need_lib_prefix=no
 
13211
  need_version=no
 
13212
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13213
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13214
  shlibpath_var=LD_LIBRARY_PATH
 
13215
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13216
    case $host_os in
 
13217
      openbsd2.[89] | openbsd2.[89].*)
 
13218
        shlibpath_overrides_runpath=no
 
13219
        ;;
 
13220
      *)
 
13221
        shlibpath_overrides_runpath=yes
 
13222
        ;;
 
13223
      esac
 
13224
  else
 
13225
    shlibpath_overrides_runpath=yes
 
13226
  fi
 
13227
  ;;
 
13228
 
 
13229
os2*)
 
13230
  libname_spec='$name'
 
13231
  shrext_cmds=".dll"
 
13232
  need_lib_prefix=no
 
13233
  library_names_spec='$libname${shared_ext} $libname.a'
 
13234
  dynamic_linker='OS/2 ld.exe'
 
13235
  shlibpath_var=LIBPATH
 
13236
  ;;
 
13237
 
 
13238
osf3* | osf4* | osf5*)
 
13239
  version_type=osf
 
13240
  need_lib_prefix=no
 
13241
  need_version=no
 
13242
  soname_spec='${libname}${release}${shared_ext}$major'
 
13243
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13244
  shlibpath_var=LD_LIBRARY_PATH
 
13245
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13246
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13247
  ;;
 
13248
 
 
13249
sco3.2v5*)
 
13250
  version_type=osf
 
13251
  soname_spec='${libname}${release}${shared_ext}$major'
 
13252
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13253
  shlibpath_var=LD_LIBRARY_PATH
 
13254
  ;;
 
13255
 
 
13256
solaris*)
 
13257
  version_type=linux
 
13258
  need_lib_prefix=no
 
13259
  need_version=no
 
13260
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13261
  soname_spec='${libname}${release}${shared_ext}$major'
 
13262
  shlibpath_var=LD_LIBRARY_PATH
 
13263
  shlibpath_overrides_runpath=yes
 
13264
  hardcode_into_libs=yes
 
13265
  # ldd complains unless libraries are executable
 
13266
  postinstall_cmds='chmod +x $lib'
 
13267
  ;;
 
13268
 
 
13269
sunos4*)
 
13270
  version_type=sunos
 
13271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13272
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13273
  shlibpath_var=LD_LIBRARY_PATH
 
13274
  shlibpath_overrides_runpath=yes
 
13275
  if test "$with_gnu_ld" = yes; then
 
13276
    need_lib_prefix=no
 
13277
  fi
 
13278
  need_version=yes
 
13279
  ;;
 
13280
 
 
13281
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13282
  version_type=linux
 
13283
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13284
  soname_spec='${libname}${release}${shared_ext}$major'
 
13285
  shlibpath_var=LD_LIBRARY_PATH
 
13286
  case $host_vendor in
 
13287
    sni)
 
13288
      shlibpath_overrides_runpath=no
 
13289
      need_lib_prefix=no
 
13290
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13291
      runpath_var=LD_RUN_PATH
 
13292
      ;;
 
13293
    siemens)
 
13294
      need_lib_prefix=no
 
13295
      ;;
 
13296
    motorola)
 
13297
      need_lib_prefix=no
 
13298
      need_version=no
 
13299
      shlibpath_overrides_runpath=no
 
13300
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13301
      ;;
 
13302
  esac
 
13303
  ;;
 
13304
 
 
13305
sysv4*MP*)
 
13306
  if test -d /usr/nec ;then
 
13307
    version_type=linux
 
13308
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13309
    soname_spec='$libname${shared_ext}.$major'
 
13310
    shlibpath_var=LD_LIBRARY_PATH
 
13311
  fi
 
13312
  ;;
 
13313
 
 
13314
uts4*)
 
13315
  version_type=linux
 
13316
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13317
  soname_spec='${libname}${release}${shared_ext}$major'
 
13318
  shlibpath_var=LD_LIBRARY_PATH
 
13319
  ;;
 
13320
 
 
13321
*)
 
13322
  dynamic_linker=no
 
13323
  ;;
 
13324
esac
 
13325
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13326
echo "${ECHO_T}$dynamic_linker" >&6
 
13327
test "$dynamic_linker" = no && can_build_shared=no
 
13328
 
 
13329
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13330
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13331
hardcode_action_CXX=
 
13332
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13333
   test -n "$runpath_var_CXX" || \
 
13334
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13335
 
 
13336
  # We can hardcode non-existant directories.
 
13337
  if test "$hardcode_direct_CXX" != no &&
 
13338
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13339
     # have to relink, otherwise we might link with an installed library
 
13340
     # when we should be linking with a yet-to-be-installed one
 
13341
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13342
     test "$hardcode_minus_L_CXX" != no; then
 
13343
    # Linking always hardcodes the temporary library directory.
 
13344
    hardcode_action_CXX=relink
 
13345
  else
 
13346
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13347
    hardcode_action_CXX=immediate
 
13348
  fi
 
13349
else
 
13350
  # We cannot hardcode anything, or else we can only hardcode existing
 
13351
  # directories.
 
13352
  hardcode_action_CXX=unsupported
 
13353
fi
 
13354
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13355
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
13356
 
 
13357
if test "$hardcode_action_CXX" = relink; then
 
13358
  # Fast installation is not supported
 
13359
  enable_fast_install=no
 
13360
elif test "$shlibpath_overrides_runpath" = yes ||
 
13361
     test "$enable_shared" = no; then
 
13362
  # Fast installation is not necessary
 
13363
  enable_fast_install=needless
 
13364
fi
 
13365
 
 
13366
striplib=
 
13367
old_striplib=
 
13368
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
13369
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
13370
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
13371
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
13372
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
13373
  echo "$as_me:$LINENO: result: yes" >&5
 
13374
echo "${ECHO_T}yes" >&6
 
13375
else
 
13376
# FIXME - insert some real tests, host_os isn't really good enough
 
13377
  case $host_os in
 
13378
   darwin*)
 
13379
       if test -n "$STRIP" ; then
 
13380
         striplib="$STRIP -x"
 
13381
         echo "$as_me:$LINENO: result: yes" >&5
 
13382
echo "${ECHO_T}yes" >&6
 
13383
       else
 
13384
  echo "$as_me:$LINENO: result: no" >&5
 
13385
echo "${ECHO_T}no" >&6
 
13386
fi
 
13387
       ;;
 
13388
   *)
 
13389
  echo "$as_me:$LINENO: result: no" >&5
 
13390
echo "${ECHO_T}no" >&6
 
13391
    ;;
 
13392
  esac
 
13393
fi
 
13394
 
 
13395
if test "x$enable_dlopen" != xyes; then
 
13396
  enable_dlopen=unknown
 
13397
  enable_dlopen_self=unknown
 
13398
  enable_dlopen_self_static=unknown
 
13399
else
 
13400
  lt_cv_dlopen=no
 
13401
  lt_cv_dlopen_libs=
 
13402
 
 
13403
  case $host_os in
 
13404
  beos*)
 
13405
    lt_cv_dlopen="load_add_on"
 
13406
    lt_cv_dlopen_libs=
 
13407
    lt_cv_dlopen_self=yes
 
13408
    ;;
 
13409
 
 
13410
  mingw* | pw32*)
 
13411
    lt_cv_dlopen="LoadLibrary"
 
13412
    lt_cv_dlopen_libs=
 
13413
   ;;
 
13414
 
 
13415
  cygwin*)
 
13416
    lt_cv_dlopen="dlopen"
 
13417
    lt_cv_dlopen_libs=
 
13418
   ;;
 
13419
 
 
13420
  darwin*)
 
13421
  # if libdl is installed we need to link against it
 
13422
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13423
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13424
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13426
else
 
13427
  ac_check_lib_save_LIBS=$LIBS
 
13428
LIBS="-ldl  $LIBS"
 
13429
cat >conftest.$ac_ext <<_ACEOF
 
13430
/* confdefs.h.  */
 
13431
_ACEOF
 
13432
cat confdefs.h >>conftest.$ac_ext
 
13433
cat >>conftest.$ac_ext <<_ACEOF
 
13434
/* end confdefs.h.  */
 
13435
 
 
13436
/* Override any gcc2 internal prototype to avoid an error.  */
 
13437
#ifdef __cplusplus
 
13438
extern "C"
 
13439
#endif
 
13440
/* We use char because int might match the return type of a gcc2
 
13441
   builtin and then its argument prototype would still apply.  */
 
13442
char dlopen ();
 
13443
int
 
13444
main ()
 
13445
{
 
13446
dlopen ();
 
13447
  ;
 
13448
  return 0;
 
13449
}
 
13450
_ACEOF
 
13451
rm -f conftest.$ac_objext conftest$ac_exeext
 
13452
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13453
  (eval $ac_link) 2>conftest.er1
 
13454
  ac_status=$?
 
13455
  grep -v '^ *+' conftest.er1 >conftest.err
 
13456
  rm -f conftest.er1
 
13457
  cat conftest.err >&5
 
13458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13459
  (exit $ac_status); } &&
 
13460
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13461
                         || test ! -s conftest.err'
 
13462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13463
  (eval $ac_try) 2>&5
 
13464
  ac_status=$?
 
13465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13466
  (exit $ac_status); }; } &&
 
13467
         { ac_try='test -s conftest$ac_exeext'
 
13468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13469
  (eval $ac_try) 2>&5
 
13470
  ac_status=$?
 
13471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13472
  (exit $ac_status); }; }; then
 
13473
  ac_cv_lib_dl_dlopen=yes
 
13474
else
 
13475
  echo "$as_me: failed program was:" >&5
 
13476
sed 's/^/| /' conftest.$ac_ext >&5
 
13477
 
 
13478
ac_cv_lib_dl_dlopen=no
 
13479
fi
 
13480
rm -f conftest.err conftest.$ac_objext \
 
13481
      conftest$ac_exeext conftest.$ac_ext
 
13482
LIBS=$ac_check_lib_save_LIBS
 
13483
fi
 
13484
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13485
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13486
if test $ac_cv_lib_dl_dlopen = yes; then
 
13487
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13488
else
 
13489
 
 
13490
    lt_cv_dlopen="dyld"
 
13491
    lt_cv_dlopen_libs=
 
13492
    lt_cv_dlopen_self=yes
 
13493
 
 
13494
fi
 
13495
 
 
13496
   ;;
 
13497
 
 
13498
  *)
 
13499
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
13500
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
13501
if test "${ac_cv_func_shl_load+set}" = set; then
 
13502
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13503
else
 
13504
  cat >conftest.$ac_ext <<_ACEOF
 
13505
/* confdefs.h.  */
 
13506
_ACEOF
 
13507
cat confdefs.h >>conftest.$ac_ext
 
13508
cat >>conftest.$ac_ext <<_ACEOF
 
13509
/* end confdefs.h.  */
 
13510
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
13511
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13512
#define shl_load innocuous_shl_load
 
13513
 
 
13514
/* System header to define __stub macros and hopefully few prototypes,
 
13515
    which can conflict with char shl_load (); below.
 
13516
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13517
    <limits.h> exists even on freestanding compilers.  */
 
13518
 
 
13519
#ifdef __STDC__
 
13520
# include <limits.h>
 
13521
#else
 
13522
# include <assert.h>
 
13523
#endif
 
13524
 
 
13525
#undef shl_load
 
13526
 
 
13527
/* Override any gcc2 internal prototype to avoid an error.  */
 
13528
#ifdef __cplusplus
 
13529
extern "C"
 
13530
{
 
13531
#endif
 
13532
/* We use char because int might match the return type of a gcc2
 
13533
   builtin and then its argument prototype would still apply.  */
 
13534
char shl_load ();
 
13535
/* The GNU C library defines this for functions which it implements
 
13536
    to always fail with ENOSYS.  Some functions are actually named
 
13537
    something starting with __ and the normal name is an alias.  */
 
13538
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
13539
choke me
 
13540
#else
 
13541
char (*f) () = shl_load;
 
13542
#endif
 
13543
#ifdef __cplusplus
 
13544
}
 
13545
#endif
 
13546
 
 
13547
int
 
13548
main ()
 
13549
{
 
13550
return f != shl_load;
 
13551
  ;
 
13552
  return 0;
 
13553
}
 
13554
_ACEOF
 
13555
rm -f conftest.$ac_objext conftest$ac_exeext
 
13556
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13557
  (eval $ac_link) 2>conftest.er1
 
13558
  ac_status=$?
 
13559
  grep -v '^ *+' conftest.er1 >conftest.err
 
13560
  rm -f conftest.er1
 
13561
  cat conftest.err >&5
 
13562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13563
  (exit $ac_status); } &&
 
13564
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13565
                         || test ! -s conftest.err'
 
13566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13567
  (eval $ac_try) 2>&5
 
13568
  ac_status=$?
 
13569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13570
  (exit $ac_status); }; } &&
 
13571
         { ac_try='test -s conftest$ac_exeext'
 
13572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13573
  (eval $ac_try) 2>&5
 
13574
  ac_status=$?
 
13575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13576
  (exit $ac_status); }; }; then
 
13577
  ac_cv_func_shl_load=yes
 
13578
else
 
13579
  echo "$as_me: failed program was:" >&5
 
13580
sed 's/^/| /' conftest.$ac_ext >&5
 
13581
 
 
13582
ac_cv_func_shl_load=no
 
13583
fi
 
13584
rm -f conftest.err conftest.$ac_objext \
 
13585
      conftest$ac_exeext conftest.$ac_ext
 
13586
fi
 
13587
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
13588
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
13589
if test $ac_cv_func_shl_load = yes; then
 
13590
  lt_cv_dlopen="shl_load"
 
13591
else
 
13592
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
13593
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
13594
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
13595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13596
else
 
13597
  ac_check_lib_save_LIBS=$LIBS
 
13598
LIBS="-ldld  $LIBS"
 
13599
cat >conftest.$ac_ext <<_ACEOF
 
13600
/* confdefs.h.  */
 
13601
_ACEOF
 
13602
cat confdefs.h >>conftest.$ac_ext
 
13603
cat >>conftest.$ac_ext <<_ACEOF
 
13604
/* end confdefs.h.  */
 
13605
 
 
13606
/* Override any gcc2 internal prototype to avoid an error.  */
 
13607
#ifdef __cplusplus
 
13608
extern "C"
 
13609
#endif
 
13610
/* We use char because int might match the return type of a gcc2
 
13611
   builtin and then its argument prototype would still apply.  */
 
13612
char shl_load ();
 
13613
int
 
13614
main ()
 
13615
{
 
13616
shl_load ();
 
13617
  ;
 
13618
  return 0;
 
13619
}
 
13620
_ACEOF
 
13621
rm -f conftest.$ac_objext conftest$ac_exeext
 
13622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13623
  (eval $ac_link) 2>conftest.er1
 
13624
  ac_status=$?
 
13625
  grep -v '^ *+' conftest.er1 >conftest.err
 
13626
  rm -f conftest.er1
 
13627
  cat conftest.err >&5
 
13628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13629
  (exit $ac_status); } &&
 
13630
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13631
                         || test ! -s conftest.err'
 
13632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13633
  (eval $ac_try) 2>&5
 
13634
  ac_status=$?
 
13635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13636
  (exit $ac_status); }; } &&
 
13637
         { ac_try='test -s conftest$ac_exeext'
 
13638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13639
  (eval $ac_try) 2>&5
 
13640
  ac_status=$?
 
13641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13642
  (exit $ac_status); }; }; then
 
13643
  ac_cv_lib_dld_shl_load=yes
 
13644
else
 
13645
  echo "$as_me: failed program was:" >&5
 
13646
sed 's/^/| /' conftest.$ac_ext >&5
 
13647
 
 
13648
ac_cv_lib_dld_shl_load=no
 
13649
fi
 
13650
rm -f conftest.err conftest.$ac_objext \
 
13651
      conftest$ac_exeext conftest.$ac_ext
 
13652
LIBS=$ac_check_lib_save_LIBS
 
13653
fi
 
13654
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
13655
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
13656
if test $ac_cv_lib_dld_shl_load = yes; then
 
13657
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
13658
else
 
13659
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
13660
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
13661
if test "${ac_cv_func_dlopen+set}" = set; then
 
13662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13663
else
 
13664
  cat >conftest.$ac_ext <<_ACEOF
 
13665
/* confdefs.h.  */
 
13666
_ACEOF
 
13667
cat confdefs.h >>conftest.$ac_ext
 
13668
cat >>conftest.$ac_ext <<_ACEOF
 
13669
/* end confdefs.h.  */
 
13670
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
13671
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13672
#define dlopen innocuous_dlopen
 
13673
 
 
13674
/* System header to define __stub macros and hopefully few prototypes,
 
13675
    which can conflict with char dlopen (); below.
 
13676
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13677
    <limits.h> exists even on freestanding compilers.  */
 
13678
 
 
13679
#ifdef __STDC__
 
13680
# include <limits.h>
 
13681
#else
 
13682
# include <assert.h>
 
13683
#endif
 
13684
 
 
13685
#undef dlopen
 
13686
 
 
13687
/* Override any gcc2 internal prototype to avoid an error.  */
 
13688
#ifdef __cplusplus
 
13689
extern "C"
 
13690
{
 
13691
#endif
 
13692
/* We use char because int might match the return type of a gcc2
 
13693
   builtin and then its argument prototype would still apply.  */
 
13694
char dlopen ();
 
13695
/* The GNU C library defines this for functions which it implements
 
13696
    to always fail with ENOSYS.  Some functions are actually named
 
13697
    something starting with __ and the normal name is an alias.  */
 
13698
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
13699
choke me
 
13700
#else
 
13701
char (*f) () = dlopen;
 
13702
#endif
 
13703
#ifdef __cplusplus
 
13704
}
 
13705
#endif
 
13706
 
 
13707
int
 
13708
main ()
 
13709
{
 
13710
return f != dlopen;
 
13711
  ;
 
13712
  return 0;
 
13713
}
 
13714
_ACEOF
 
13715
rm -f conftest.$ac_objext conftest$ac_exeext
 
13716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13717
  (eval $ac_link) 2>conftest.er1
 
13718
  ac_status=$?
 
13719
  grep -v '^ *+' conftest.er1 >conftest.err
 
13720
  rm -f conftest.er1
 
13721
  cat conftest.err >&5
 
13722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13723
  (exit $ac_status); } &&
 
13724
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13725
                         || test ! -s conftest.err'
 
13726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13727
  (eval $ac_try) 2>&5
 
13728
  ac_status=$?
 
13729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13730
  (exit $ac_status); }; } &&
 
13731
         { ac_try='test -s conftest$ac_exeext'
 
13732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13733
  (eval $ac_try) 2>&5
 
13734
  ac_status=$?
 
13735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13736
  (exit $ac_status); }; }; then
 
13737
  ac_cv_func_dlopen=yes
 
13738
else
 
13739
  echo "$as_me: failed program was:" >&5
 
13740
sed 's/^/| /' conftest.$ac_ext >&5
 
13741
 
 
13742
ac_cv_func_dlopen=no
 
13743
fi
 
13744
rm -f conftest.err conftest.$ac_objext \
 
13745
      conftest$ac_exeext conftest.$ac_ext
 
13746
fi
 
13747
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
13748
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
13749
if test $ac_cv_func_dlopen = yes; then
 
13750
  lt_cv_dlopen="dlopen"
 
13751
else
 
13752
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13753
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13754
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13755
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13756
else
 
13757
  ac_check_lib_save_LIBS=$LIBS
 
13758
LIBS="-ldl  $LIBS"
 
13759
cat >conftest.$ac_ext <<_ACEOF
 
13760
/* confdefs.h.  */
 
13761
_ACEOF
 
13762
cat confdefs.h >>conftest.$ac_ext
 
13763
cat >>conftest.$ac_ext <<_ACEOF
 
13764
/* end confdefs.h.  */
 
13765
 
 
13766
/* Override any gcc2 internal prototype to avoid an error.  */
 
13767
#ifdef __cplusplus
 
13768
extern "C"
 
13769
#endif
 
13770
/* We use char because int might match the return type of a gcc2
 
13771
   builtin and then its argument prototype would still apply.  */
 
13772
char dlopen ();
 
13773
int
 
13774
main ()
 
13775
{
 
13776
dlopen ();
 
13777
  ;
 
13778
  return 0;
 
13779
}
 
13780
_ACEOF
 
13781
rm -f conftest.$ac_objext conftest$ac_exeext
 
13782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13783
  (eval $ac_link) 2>conftest.er1
 
13784
  ac_status=$?
 
13785
  grep -v '^ *+' conftest.er1 >conftest.err
 
13786
  rm -f conftest.er1
 
13787
  cat conftest.err >&5
 
13788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13789
  (exit $ac_status); } &&
 
13790
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13791
                         || test ! -s conftest.err'
 
13792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13793
  (eval $ac_try) 2>&5
 
13794
  ac_status=$?
 
13795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13796
  (exit $ac_status); }; } &&
 
13797
         { ac_try='test -s conftest$ac_exeext'
 
13798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13799
  (eval $ac_try) 2>&5
 
13800
  ac_status=$?
 
13801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13802
  (exit $ac_status); }; }; then
 
13803
  ac_cv_lib_dl_dlopen=yes
 
13804
else
 
13805
  echo "$as_me: failed program was:" >&5
 
13806
sed 's/^/| /' conftest.$ac_ext >&5
 
13807
 
 
13808
ac_cv_lib_dl_dlopen=no
 
13809
fi
 
13810
rm -f conftest.err conftest.$ac_objext \
 
13811
      conftest$ac_exeext conftest.$ac_ext
 
13812
LIBS=$ac_check_lib_save_LIBS
 
13813
fi
 
13814
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13815
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13816
if test $ac_cv_lib_dl_dlopen = yes; then
 
13817
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13818
else
 
13819
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
13820
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
13821
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
13822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13823
else
 
13824
  ac_check_lib_save_LIBS=$LIBS
 
13825
LIBS="-lsvld  $LIBS"
 
13826
cat >conftest.$ac_ext <<_ACEOF
 
13827
/* confdefs.h.  */
 
13828
_ACEOF
 
13829
cat confdefs.h >>conftest.$ac_ext
 
13830
cat >>conftest.$ac_ext <<_ACEOF
 
13831
/* end confdefs.h.  */
 
13832
 
 
13833
/* Override any gcc2 internal prototype to avoid an error.  */
 
13834
#ifdef __cplusplus
 
13835
extern "C"
 
13836
#endif
 
13837
/* We use char because int might match the return type of a gcc2
 
13838
   builtin and then its argument prototype would still apply.  */
 
13839
char dlopen ();
 
13840
int
 
13841
main ()
 
13842
{
 
13843
dlopen ();
 
13844
  ;
 
13845
  return 0;
 
13846
}
 
13847
_ACEOF
 
13848
rm -f conftest.$ac_objext conftest$ac_exeext
 
13849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13850
  (eval $ac_link) 2>conftest.er1
 
13851
  ac_status=$?
 
13852
  grep -v '^ *+' conftest.er1 >conftest.err
 
13853
  rm -f conftest.er1
 
13854
  cat conftest.err >&5
 
13855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13856
  (exit $ac_status); } &&
 
13857
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13858
                         || test ! -s conftest.err'
 
13859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13860
  (eval $ac_try) 2>&5
 
13861
  ac_status=$?
 
13862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13863
  (exit $ac_status); }; } &&
 
13864
         { ac_try='test -s conftest$ac_exeext'
 
13865
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13866
  (eval $ac_try) 2>&5
 
13867
  ac_status=$?
 
13868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13869
  (exit $ac_status); }; }; then
 
13870
  ac_cv_lib_svld_dlopen=yes
 
13871
else
 
13872
  echo "$as_me: failed program was:" >&5
 
13873
sed 's/^/| /' conftest.$ac_ext >&5
 
13874
 
 
13875
ac_cv_lib_svld_dlopen=no
 
13876
fi
 
13877
rm -f conftest.err conftest.$ac_objext \
 
13878
      conftest$ac_exeext conftest.$ac_ext
 
13879
LIBS=$ac_check_lib_save_LIBS
 
13880
fi
 
13881
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
13882
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
13883
if test $ac_cv_lib_svld_dlopen = yes; then
 
13884
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
13885
else
 
13886
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
13887
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
13888
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
13889
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13890
else
 
13891
  ac_check_lib_save_LIBS=$LIBS
 
13892
LIBS="-ldld  $LIBS"
 
13893
cat >conftest.$ac_ext <<_ACEOF
 
13894
/* confdefs.h.  */
 
13895
_ACEOF
 
13896
cat confdefs.h >>conftest.$ac_ext
 
13897
cat >>conftest.$ac_ext <<_ACEOF
 
13898
/* end confdefs.h.  */
 
13899
 
 
13900
/* Override any gcc2 internal prototype to avoid an error.  */
 
13901
#ifdef __cplusplus
 
13902
extern "C"
 
13903
#endif
 
13904
/* We use char because int might match the return type of a gcc2
 
13905
   builtin and then its argument prototype would still apply.  */
 
13906
char dld_link ();
 
13907
int
 
13908
main ()
 
13909
{
 
13910
dld_link ();
 
13911
  ;
 
13912
  return 0;
 
13913
}
 
13914
_ACEOF
 
13915
rm -f conftest.$ac_objext conftest$ac_exeext
 
13916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13917
  (eval $ac_link) 2>conftest.er1
 
13918
  ac_status=$?
 
13919
  grep -v '^ *+' conftest.er1 >conftest.err
 
13920
  rm -f conftest.er1
 
13921
  cat conftest.err >&5
 
13922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13923
  (exit $ac_status); } &&
 
13924
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13925
                         || test ! -s conftest.err'
 
13926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13927
  (eval $ac_try) 2>&5
 
13928
  ac_status=$?
 
13929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13930
  (exit $ac_status); }; } &&
 
13931
         { ac_try='test -s conftest$ac_exeext'
 
13932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13933
  (eval $ac_try) 2>&5
 
13934
  ac_status=$?
 
13935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13936
  (exit $ac_status); }; }; then
 
13937
  ac_cv_lib_dld_dld_link=yes
 
13938
else
 
13939
  echo "$as_me: failed program was:" >&5
 
13940
sed 's/^/| /' conftest.$ac_ext >&5
 
13941
 
 
13942
ac_cv_lib_dld_dld_link=no
 
13943
fi
 
13944
rm -f conftest.err conftest.$ac_objext \
 
13945
      conftest$ac_exeext conftest.$ac_ext
 
13946
LIBS=$ac_check_lib_save_LIBS
 
13947
fi
 
13948
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
13949
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
13950
if test $ac_cv_lib_dld_dld_link = yes; then
 
13951
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
13952
fi
 
13953
 
 
13954
 
 
13955
fi
 
13956
 
 
13957
 
 
13958
fi
 
13959
 
 
13960
 
 
13961
fi
 
13962
 
 
13963
 
 
13964
fi
 
13965
 
 
13966
 
 
13967
fi
 
13968
 
 
13969
    ;;
 
13970
  esac
 
13971
 
 
13972
  if test "x$lt_cv_dlopen" != xno; then
 
13973
    enable_dlopen=yes
 
13974
  else
 
13975
    enable_dlopen=no
 
13976
  fi
 
13977
 
 
13978
  case $lt_cv_dlopen in
 
13979
  dlopen)
 
13980
    save_CPPFLAGS="$CPPFLAGS"
 
13981
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13982
 
 
13983
    save_LDFLAGS="$LDFLAGS"
 
13984
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
13985
 
 
13986
    save_LIBS="$LIBS"
 
13987
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
13988
 
 
13989
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
13990
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
13991
if test "${lt_cv_dlopen_self+set}" = set; then
 
13992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13993
else
 
13994
          if test "$cross_compiling" = yes; then :
 
13995
  lt_cv_dlopen_self=cross
 
13996
else
 
13997
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13998
  lt_status=$lt_dlunknown
 
13999
  cat > conftest.$ac_ext <<EOF
 
14000
#line 14000 "configure"
 
14001
#include "confdefs.h"
 
14002
 
 
14003
#if HAVE_DLFCN_H
 
14004
#include <dlfcn.h>
 
14005
#endif
 
14006
 
 
14007
#include <stdio.h>
 
14008
 
 
14009
#ifdef RTLD_GLOBAL
 
14010
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14011
#else
 
14012
#  ifdef DL_GLOBAL
 
14013
#    define LT_DLGLOBAL         DL_GLOBAL
 
14014
#  else
 
14015
#    define LT_DLGLOBAL         0
 
14016
#  endif
 
14017
#endif
 
14018
 
 
14019
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14020
   find out it does not work in some platform. */
 
14021
#ifndef LT_DLLAZY_OR_NOW
 
14022
#  ifdef RTLD_LAZY
 
14023
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14024
#  else
 
14025
#    ifdef DL_LAZY
 
14026
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14027
#    else
 
14028
#      ifdef RTLD_NOW
 
14029
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14030
#      else
 
14031
#        ifdef DL_NOW
 
14032
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14033
#        else
 
14034
#          define LT_DLLAZY_OR_NOW      0
 
14035
#        endif
 
14036
#      endif
 
14037
#    endif
 
14038
#  endif
 
14039
#endif
 
14040
 
 
14041
#ifdef __cplusplus
 
14042
extern "C" void exit (int);
 
14043
#endif
 
14044
 
 
14045
void fnord() { int i=42;}
 
14046
int main ()
 
14047
{
 
14048
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14049
  int status = $lt_dlunknown;
 
14050
 
 
14051
  if (self)
 
14052
    {
 
14053
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14054
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14055
      /* dlclose (self); */
 
14056
    }
 
14057
 
 
14058
    exit (status);
 
14059
}
 
14060
EOF
 
14061
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14062
  (eval $ac_link) 2>&5
 
14063
  ac_status=$?
 
14064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14065
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14066
    (./conftest; exit; ) 2>/dev/null
 
14067
    lt_status=$?
 
14068
    case x$lt_status in
 
14069
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
14070
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
14071
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
14072
    esac
 
14073
  else :
 
14074
    # compilation failed
 
14075
    lt_cv_dlopen_self=no
 
14076
  fi
 
14077
fi
 
14078
rm -fr conftest*
 
14079
 
 
14080
 
 
14081
fi
 
14082
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
14083
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
14084
 
 
14085
    if test "x$lt_cv_dlopen_self" = xyes; then
 
14086
      LDFLAGS="$LDFLAGS $link_static_flag"
 
14087
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
14088
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
14089
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
14090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14091
else
 
14092
          if test "$cross_compiling" = yes; then :
 
14093
  lt_cv_dlopen_self_static=cross
 
14094
else
 
14095
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14096
  lt_status=$lt_dlunknown
 
14097
  cat > conftest.$ac_ext <<EOF
 
14098
#line 14098 "configure"
 
14099
#include "confdefs.h"
 
14100
 
 
14101
#if HAVE_DLFCN_H
 
14102
#include <dlfcn.h>
 
14103
#endif
 
14104
 
 
14105
#include <stdio.h>
 
14106
 
 
14107
#ifdef RTLD_GLOBAL
 
14108
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14109
#else
 
14110
#  ifdef DL_GLOBAL
 
14111
#    define LT_DLGLOBAL         DL_GLOBAL
 
14112
#  else
 
14113
#    define LT_DLGLOBAL         0
 
14114
#  endif
 
14115
#endif
 
14116
 
 
14117
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14118
   find out it does not work in some platform. */
 
14119
#ifndef LT_DLLAZY_OR_NOW
 
14120
#  ifdef RTLD_LAZY
 
14121
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14122
#  else
 
14123
#    ifdef DL_LAZY
 
14124
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14125
#    else
 
14126
#      ifdef RTLD_NOW
 
14127
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14128
#      else
 
14129
#        ifdef DL_NOW
 
14130
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14131
#        else
 
14132
#          define LT_DLLAZY_OR_NOW      0
 
14133
#        endif
 
14134
#      endif
 
14135
#    endif
 
14136
#  endif
 
14137
#endif
 
14138
 
 
14139
#ifdef __cplusplus
 
14140
extern "C" void exit (int);
 
14141
#endif
 
14142
 
 
14143
void fnord() { int i=42;}
 
14144
int main ()
 
14145
{
 
14146
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14147
  int status = $lt_dlunknown;
 
14148
 
 
14149
  if (self)
 
14150
    {
 
14151
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14152
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14153
      /* dlclose (self); */
 
14154
    }
 
14155
 
 
14156
    exit (status);
 
14157
}
 
14158
EOF
 
14159
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14160
  (eval $ac_link) 2>&5
 
14161
  ac_status=$?
 
14162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14163
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14164
    (./conftest; exit; ) 2>/dev/null
 
14165
    lt_status=$?
 
14166
    case x$lt_status in
 
14167
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
14168
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
14169
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
14170
    esac
 
14171
  else :
 
14172
    # compilation failed
 
14173
    lt_cv_dlopen_self_static=no
 
14174
  fi
 
14175
fi
 
14176
rm -fr conftest*
 
14177
 
 
14178
 
 
14179
fi
 
14180
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
14181
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
14182
    fi
 
14183
 
 
14184
    CPPFLAGS="$save_CPPFLAGS"
 
14185
    LDFLAGS="$save_LDFLAGS"
 
14186
    LIBS="$save_LIBS"
 
14187
    ;;
 
14188
  esac
 
14189
 
 
14190
  case $lt_cv_dlopen_self in
 
14191
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
14192
  *) enable_dlopen_self=unknown ;;
 
14193
  esac
 
14194
 
 
14195
  case $lt_cv_dlopen_self_static in
 
14196
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
14197
  *) enable_dlopen_self_static=unknown ;;
 
14198
  esac
 
14199
fi
 
14200
 
 
14201
 
 
14202
# The else clause should only fire when bootstrapping the
 
14203
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14204
# with your package, and you will get complaints that there are
 
14205
# no rules to generate ltmain.sh.
 
14206
if test -f "$ltmain"; then
 
14207
  # See if we are running on zsh, and set the options which allow our commands through
 
14208
  # without removal of \ escapes.
 
14209
  if test -n "${ZSH_VERSION+set}" ; then
 
14210
    setopt NO_GLOB_SUBST
 
14211
  fi
 
14212
  # Now quote all the things that may contain metacharacters while being
 
14213
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14214
  # variables and quote the copies for generation of the libtool script.
 
14215
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
14216
    SED SHELL STRIP \
 
14217
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14218
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14219
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14220
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14221
    lt_cv_sys_global_symbol_to_c_name_address \
 
14222
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14223
    old_postinstall_cmds old_postuninstall_cmds \
 
14224
    compiler_CXX \
 
14225
    CC_CXX \
 
14226
    LD_CXX \
 
14227
    lt_prog_compiler_wl_CXX \
 
14228
    lt_prog_compiler_pic_CXX \
 
14229
    lt_prog_compiler_static_CXX \
 
14230
    lt_prog_compiler_no_builtin_flag_CXX \
 
14231
    export_dynamic_flag_spec_CXX \
 
14232
    thread_safe_flag_spec_CXX \
 
14233
    whole_archive_flag_spec_CXX \
 
14234
    enable_shared_with_static_runtimes_CXX \
 
14235
    old_archive_cmds_CXX \
 
14236
    old_archive_from_new_cmds_CXX \
 
14237
    predep_objects_CXX \
 
14238
    postdep_objects_CXX \
 
14239
    predeps_CXX \
 
14240
    postdeps_CXX \
 
14241
    compiler_lib_search_path_CXX \
 
14242
    archive_cmds_CXX \
 
14243
    archive_expsym_cmds_CXX \
 
14244
    postinstall_cmds_CXX \
 
14245
    postuninstall_cmds_CXX \
 
14246
    old_archive_from_expsyms_cmds_CXX \
 
14247
    allow_undefined_flag_CXX \
 
14248
    no_undefined_flag_CXX \
 
14249
    export_symbols_cmds_CXX \
 
14250
    hardcode_libdir_flag_spec_CXX \
 
14251
    hardcode_libdir_flag_spec_ld_CXX \
 
14252
    hardcode_libdir_separator_CXX \
 
14253
    hardcode_automatic_CXX \
 
14254
    module_cmds_CXX \
 
14255
    module_expsym_cmds_CXX \
 
14256
    lt_cv_prog_compiler_c_o_CXX \
 
14257
    exclude_expsyms_CXX \
 
14258
    include_expsyms_CXX; do
 
14259
 
 
14260
    case $var in
 
14261
    old_archive_cmds_CXX | \
 
14262
    old_archive_from_new_cmds_CXX | \
 
14263
    archive_cmds_CXX | \
 
14264
    archive_expsym_cmds_CXX | \
 
14265
    module_cmds_CXX | \
 
14266
    module_expsym_cmds_CXX | \
 
14267
    old_archive_from_expsyms_cmds_CXX | \
 
14268
    export_symbols_cmds_CXX | \
 
14269
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14270
    postinstall_cmds | postuninstall_cmds | \
 
14271
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14272
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14273
      # Double-quote double-evaled strings.
 
14274
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14275
      ;;
 
14276
    *)
 
14277
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14278
      ;;
 
14279
    esac
 
14280
  done
 
14281
 
 
14282
  case $lt_echo in
 
14283
  *'\$0 --fallback-echo"')
 
14284
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14285
    ;;
 
14286
  esac
 
14287
 
 
14288
cfgfile="$ofile"
 
14289
 
 
14290
  cat <<__EOF__ >> "$cfgfile"
 
14291
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14292
 
 
14293
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14294
 
 
14295
# Shell to use when invoking shell scripts.
 
14296
SHELL=$lt_SHELL
 
14297
 
 
14298
# Whether or not to build shared libraries.
 
14299
build_libtool_libs=$enable_shared
 
14300
 
 
14301
# Whether or not to build static libraries.
 
14302
build_old_libs=$enable_static
 
14303
 
 
14304
# Whether or not to add -lc for building shared libraries.
 
14305
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14306
 
 
14307
# Whether or not to disallow shared libs when runtime libs are static
 
14308
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14309
 
 
14310
# Whether or not to optimize for fast installation.
 
14311
fast_install=$enable_fast_install
 
14312
 
 
14313
# The host system.
 
14314
host_alias=$host_alias
 
14315
host=$host
 
14316
 
 
14317
# An echo program that does not interpret backslashes.
 
14318
echo=$lt_echo
 
14319
 
 
14320
# The archiver.
 
14321
AR=$lt_AR
 
14322
AR_FLAGS=$lt_AR_FLAGS
 
14323
 
 
14324
# A C compiler.
 
14325
LTCC=$lt_LTCC
 
14326
 
 
14327
# A language-specific compiler.
 
14328
CC=$lt_compiler_CXX
 
14329
 
 
14330
# Is the compiler the GNU C compiler?
 
14331
with_gcc=$GCC_CXX
 
14332
 
 
14333
# An ERE matcher.
 
14334
EGREP=$lt_EGREP
 
14335
 
 
14336
# The linker used to build libraries.
 
14337
LD=$lt_LD_CXX
 
14338
 
 
14339
# Whether we need hard or soft links.
 
14340
LN_S=$lt_LN_S
 
14341
 
 
14342
# A BSD-compatible nm program.
 
14343
NM=$lt_NM
 
14344
 
 
14345
# A symbol stripping program
 
14346
STRIP=$lt_STRIP
 
14347
 
 
14348
# Used to examine libraries when file_magic_cmd begins "file"
 
14349
MAGIC_CMD=$MAGIC_CMD
 
14350
 
 
14351
# Used on cygwin: DLL creation program.
 
14352
DLLTOOL="$DLLTOOL"
 
14353
 
 
14354
# Used on cygwin: object dumper.
 
14355
OBJDUMP="$OBJDUMP"
 
14356
 
 
14357
# Used on cygwin: assembler.
 
14358
AS="$AS"
 
14359
 
 
14360
# The name of the directory that contains temporary libtool files.
 
14361
objdir=$objdir
 
14362
 
 
14363
# How to create reloadable object files.
 
14364
reload_flag=$lt_reload_flag
 
14365
reload_cmds=$lt_reload_cmds
 
14366
 
 
14367
# How to pass a linker flag through the compiler.
 
14368
wl=$lt_lt_prog_compiler_wl_CXX
 
14369
 
 
14370
# Object file suffix (normally "o").
 
14371
objext="$ac_objext"
 
14372
 
 
14373
# Old archive suffix (normally "a").
 
14374
libext="$libext"
 
14375
 
 
14376
# Shared library suffix (normally ".so").
 
14377
shrext_cmds='$shrext_cmds'
 
14378
 
 
14379
# Executable file suffix (normally "").
 
14380
exeext="$exeext"
 
14381
 
 
14382
# Additional compiler flags for building library objects.
 
14383
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14384
pic_mode=$pic_mode
 
14385
 
 
14386
# What is the maximum length of a command?
 
14387
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14388
 
 
14389
# Does compiler simultaneously support -c and -o options?
 
14390
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14391
 
 
14392
# Must we lock files when doing compilation ?
 
14393
need_locks=$lt_need_locks
 
14394
 
 
14395
# Do we need the lib prefix for modules?
 
14396
need_lib_prefix=$need_lib_prefix
 
14397
 
 
14398
# Do we need a version for libraries?
 
14399
need_version=$need_version
 
14400
 
 
14401
# Whether dlopen is supported.
 
14402
dlopen_support=$enable_dlopen
 
14403
 
 
14404
# Whether dlopen of programs is supported.
 
14405
dlopen_self=$enable_dlopen_self
 
14406
 
 
14407
# Whether dlopen of statically linked programs is supported.
 
14408
dlopen_self_static=$enable_dlopen_self_static
 
14409
 
 
14410
# Compiler flag to prevent dynamic linking.
 
14411
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14412
 
 
14413
# Compiler flag to turn off builtin functions.
 
14414
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14415
 
 
14416
# Compiler flag to allow reflexive dlopens.
 
14417
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14418
 
 
14419
# Compiler flag to generate shared objects directly from archives.
 
14420
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14421
 
 
14422
# Compiler flag to generate thread-safe objects.
 
14423
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14424
 
 
14425
# Library versioning type.
 
14426
version_type=$version_type
 
14427
 
 
14428
# Format of library name prefix.
 
14429
libname_spec=$lt_libname_spec
 
14430
 
 
14431
# List of archive names.  First name is the real one, the rest are links.
 
14432
# The last name is the one that the linker finds with -lNAME.
 
14433
library_names_spec=$lt_library_names_spec
 
14434
 
 
14435
# The coded name of the library, if different from the real name.
 
14436
soname_spec=$lt_soname_spec
 
14437
 
 
14438
# Commands used to build and install an old-style archive.
 
14439
RANLIB=$lt_RANLIB
 
14440
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14441
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14442
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14443
 
 
14444
# Create an old-style archive from a shared archive.
 
14445
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14446
 
 
14447
# Create a temporary old-style archive to link instead of a shared archive.
 
14448
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14449
 
 
14450
# Commands used to build and install a shared archive.
 
14451
archive_cmds=$lt_archive_cmds_CXX
 
14452
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14453
postinstall_cmds=$lt_postinstall_cmds
 
14454
postuninstall_cmds=$lt_postuninstall_cmds
 
14455
 
 
14456
# Commands used to build a loadable module (assumed same as above if empty)
 
14457
module_cmds=$lt_module_cmds_CXX
 
14458
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14459
 
 
14460
# Commands to strip libraries.
 
14461
old_striplib=$lt_old_striplib
 
14462
striplib=$lt_striplib
 
14463
 
 
14464
# Dependencies to place before the objects being linked to create a
 
14465
# shared library.
 
14466
predep_objects=$lt_predep_objects_CXX
 
14467
 
 
14468
# Dependencies to place after the objects being linked to create a
 
14469
# shared library.
 
14470
postdep_objects=$lt_postdep_objects_CXX
 
14471
 
 
14472
# Dependencies to place before the objects being linked to create a
 
14473
# shared library.
 
14474
predeps=$lt_predeps_CXX
 
14475
 
 
14476
# Dependencies to place after the objects being linked to create a
 
14477
# shared library.
 
14478
postdeps=$lt_postdeps_CXX
 
14479
 
 
14480
# The library search path used internally by the compiler when linking
 
14481
# a shared library.
 
14482
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14483
 
 
14484
# Method to check whether dependent libraries are shared objects.
 
14485
deplibs_check_method=$lt_deplibs_check_method
 
14486
 
 
14487
# Command to use when deplibs_check_method == file_magic.
 
14488
file_magic_cmd=$lt_file_magic_cmd
 
14489
 
 
14490
# Flag that allows shared libraries with undefined symbols to be built.
 
14491
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14492
 
 
14493
# Flag that forces no undefined symbols.
 
14494
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14495
 
 
14496
# Commands used to finish a libtool library installation in a directory.
 
14497
finish_cmds=$lt_finish_cmds
 
14498
 
 
14499
# Same as above, but a single script fragment to be evaled but not shown.
 
14500
finish_eval=$lt_finish_eval
 
14501
 
 
14502
# Take the output of nm and produce a listing of raw symbols and C names.
 
14503
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14504
 
 
14505
# Transform the output of nm in a proper C declaration
 
14506
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14507
 
 
14508
# Transform the output of nm in a C name address pair
 
14509
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14510
 
 
14511
# This is the shared library runtime path variable.
 
14512
runpath_var=$runpath_var
 
14513
 
 
14514
# This is the shared library path variable.
 
14515
shlibpath_var=$shlibpath_var
 
14516
 
 
14517
# Is shlibpath searched before the hard-coded library search path?
 
14518
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14519
 
 
14520
# How to hardcode a shared library path into an executable.
 
14521
hardcode_action=$hardcode_action_CXX
 
14522
 
 
14523
# Whether we should hardcode library paths into libraries.
 
14524
hardcode_into_libs=$hardcode_into_libs
 
14525
 
 
14526
# Flag to hardcode \$libdir into a binary during linking.
 
14527
# This must work even if \$libdir does not exist.
 
14528
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14529
 
 
14530
# If ld is used when linking, flag to hardcode \$libdir into
 
14531
# a binary during linking. This must work even if \$libdir does
 
14532
# not exist.
 
14533
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14534
 
 
14535
# Whether we need a single -rpath flag with a separated argument.
 
14536
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14537
 
 
14538
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14539
# resulting binary.
 
14540
hardcode_direct=$hardcode_direct_CXX
 
14541
 
 
14542
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14543
# resulting binary.
 
14544
hardcode_minus_L=$hardcode_minus_L_CXX
 
14545
 
 
14546
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14547
# the resulting binary.
 
14548
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14549
 
 
14550
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14551
# and all subsequent libraries and executables linked against it.
 
14552
hardcode_automatic=$hardcode_automatic_CXX
 
14553
 
 
14554
# Variables whose values should be saved in libtool wrapper scripts and
 
14555
# restored at relink time.
 
14556
variables_saved_for_relink="$variables_saved_for_relink"
 
14557
 
 
14558
# Whether libtool must link a program against all its dependency libraries.
 
14559
link_all_deplibs=$link_all_deplibs_CXX
 
14560
 
 
14561
# Compile-time system search path for libraries
 
14562
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14563
 
 
14564
# Run-time system search path for libraries
 
14565
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14566
 
 
14567
# Fix the shell variable \$srcfile for the compiler.
 
14568
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14569
 
 
14570
# Set to yes if exported symbols are required.
 
14571
always_export_symbols=$always_export_symbols_CXX
 
14572
 
 
14573
# The commands to list exported symbols.
 
14574
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14575
 
 
14576
# The commands to extract the exported symbol list from a shared archive.
 
14577
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14578
 
 
14579
# Symbols that should not be listed in the preloaded symbols.
 
14580
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14581
 
 
14582
# Symbols that must always be exported.
 
14583
include_expsyms=$lt_include_expsyms_CXX
 
14584
 
 
14585
# ### END LIBTOOL TAG CONFIG: $tagname
 
14586
 
 
14587
__EOF__
 
14588
 
 
14589
 
 
14590
else
 
14591
  # If there is no Makefile yet, we rely on a make rule to execute
 
14592
  # `config.status --recheck' to rerun these tests and create the
 
14593
  # libtool script then.
 
14594
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14595
  if test -f "$ltmain_in"; then
 
14596
    test -f Makefile && make "$ltmain"
 
14597
  fi
 
14598
fi
 
14599
 
 
14600
 
 
14601
ac_ext=c
 
14602
ac_cpp='$CPP $CPPFLAGS'
 
14603
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14604
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14605
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14606
 
 
14607
CC=$lt_save_CC
 
14608
LDCXX=$LD
 
14609
LD=$lt_save_LD
 
14610
GCC=$lt_save_GCC
 
14611
with_gnu_ldcxx=$with_gnu_ld
 
14612
with_gnu_ld=$lt_save_with_gnu_ld
 
14613
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14614
lt_cv_path_LD=$lt_save_path_LD
 
14615
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14616
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14617
 
 
14618
        else
 
14619
          tagname=""
 
14620
        fi
 
14621
        ;;
 
14622
 
 
14623
      F77)
 
14624
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14625
 
 
14626
ac_ext=f
 
14627
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14628
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14629
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14630
 
 
14631
 
 
14632
archive_cmds_need_lc_F77=no
 
14633
allow_undefined_flag_F77=
 
14634
always_export_symbols_F77=no
 
14635
archive_expsym_cmds_F77=
 
14636
export_dynamic_flag_spec_F77=
 
14637
hardcode_direct_F77=no
 
14638
hardcode_libdir_flag_spec_F77=
 
14639
hardcode_libdir_flag_spec_ld_F77=
 
14640
hardcode_libdir_separator_F77=
 
14641
hardcode_minus_L_F77=no
 
14642
hardcode_automatic_F77=no
 
14643
module_cmds_F77=
 
14644
module_expsym_cmds_F77=
 
14645
link_all_deplibs_F77=unknown
 
14646
old_archive_cmds_F77=$old_archive_cmds
 
14647
no_undefined_flag_F77=
 
14648
whole_archive_flag_spec_F77=
 
14649
enable_shared_with_static_runtimes_F77=no
 
14650
 
 
14651
# Source file extension for f77 test sources.
 
14652
ac_ext=f
 
14653
 
 
14654
# Object file extension for compiled f77 test sources.
 
14655
objext=o
 
14656
objext_F77=$objext
 
14657
 
 
14658
# Code to be used in simple compile tests
 
14659
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14660
 
 
14661
# Code to be used in simple link tests
 
14662
lt_simple_link_test_code="      program t\n      end\n"
 
14663
 
 
14664
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14665
 
 
14666
# If no C compiler was specified, use CC.
 
14667
LTCC=${LTCC-"$CC"}
 
14668
 
 
14669
# Allow CC to be a program name with arguments.
 
14670
compiler=$CC
 
14671
 
 
14672
 
 
14673
# Allow CC to be a program name with arguments.
 
14674
lt_save_CC="$CC"
 
14675
CC=${F77-"f77"}
 
14676
compiler=$CC
 
14677
compiler_F77=$CC
 
14678
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
14679
 
 
14680
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14681
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
14682
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14683
echo "${ECHO_T}$can_build_shared" >&6
 
14684
 
 
14685
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14686
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
14687
test "$can_build_shared" = "no" && enable_shared=no
 
14688
 
 
14689
# On AIX, shared libraries and static libraries use the same namespace, and
 
14690
# are all built from PIC.
 
14691
case "$host_os" in
 
14692
aix3*)
 
14693
  test "$enable_shared" = yes && enable_static=no
 
14694
  if test -n "$RANLIB"; then
 
14695
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14696
    postinstall_cmds='$RANLIB $lib'
 
14697
  fi
 
14698
  ;;
 
14699
aix4* | aix5*)
 
14700
  test "$enable_shared" = yes && enable_static=no
 
14701
  ;;
 
14702
esac
 
14703
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14704
echo "${ECHO_T}$enable_shared" >&6
 
14705
 
 
14706
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14707
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
14708
# Make sure either enable_shared or enable_static is yes.
 
14709
test "$enable_shared" = yes || enable_static=yes
 
14710
echo "$as_me:$LINENO: result: $enable_static" >&5
 
14711
echo "${ECHO_T}$enable_static" >&6
 
14712
 
 
14713
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14714
 
 
14715
GCC_F77="$G77"
 
14716
LD_F77="$LD"
 
14717
 
 
14718
lt_prog_compiler_wl_F77=
 
14719
lt_prog_compiler_pic_F77=
 
14720
lt_prog_compiler_static_F77=
 
14721
 
 
14722
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14723
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14724
 
 
14725
  if test "$GCC" = yes; then
 
14726
    lt_prog_compiler_wl_F77='-Wl,'
 
14727
    lt_prog_compiler_static_F77='-static'
 
14728
 
 
14729
    case $host_os in
 
14730
      aix*)
 
14731
      # All AIX code is PIC.
 
14732
      if test "$host_cpu" = ia64; then
 
14733
        # AIX 5 now supports IA64 processor
 
14734
        lt_prog_compiler_static_F77='-Bstatic'
 
14735
      fi
 
14736
      ;;
 
14737
 
 
14738
    amigaos*)
 
14739
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14740
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14741
      # like `-m68040'.
 
14742
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14743
      ;;
 
14744
 
 
14745
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14746
      # PIC is the default for these OSes.
 
14747
      ;;
 
14748
 
 
14749
    mingw* | pw32* | os2*)
 
14750
      # This hack is so that the source file can tell whether it is being
 
14751
      # built for inclusion in a dll (and should export symbols for example).
 
14752
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14753
      ;;
 
14754
 
 
14755
    darwin* | rhapsody*)
 
14756
      # PIC is the default on this platform
 
14757
      # Common symbols not allowed in MH_DYLIB files
 
14758
      lt_prog_compiler_pic_F77='-fno-common'
 
14759
      ;;
 
14760
 
 
14761
    msdosdjgpp*)
 
14762
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14763
      # on systems that don't support them.
 
14764
      lt_prog_compiler_can_build_shared_F77=no
 
14765
      enable_shared=no
 
14766
      ;;
 
14767
 
 
14768
    sysv4*MP*)
 
14769
      if test -d /usr/nec; then
 
14770
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14771
      fi
 
14772
      ;;
 
14773
 
 
14774
    hpux*)
 
14775
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14776
      # not for PA HP-UX.
 
14777
      case "$host_cpu" in
 
14778
      hppa*64*|ia64*)
 
14779
        # +Z the default
 
14780
        ;;
 
14781
      *)
 
14782
        lt_prog_compiler_pic_F77='-fPIC'
 
14783
        ;;
 
14784
      esac
 
14785
      ;;
 
14786
 
 
14787
    *)
 
14788
      lt_prog_compiler_pic_F77='-fPIC'
 
14789
      ;;
 
14790
    esac
 
14791
  else
 
14792
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14793
    case $host_os in
 
14794
    aix*)
 
14795
      lt_prog_compiler_wl_F77='-Wl,'
 
14796
      if test "$host_cpu" = ia64; then
 
14797
        # AIX 5 now supports IA64 processor
 
14798
        lt_prog_compiler_static_F77='-Bstatic'
 
14799
      else
 
14800
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14801
      fi
 
14802
      ;;
 
14803
      darwin*)
 
14804
        # PIC is the default on this platform
 
14805
        # Common symbols not allowed in MH_DYLIB files
 
14806
       case "$cc_basename" in
 
14807
         xlc*)
 
14808
         lt_prog_compiler_pic_F77='-qnocommon'
 
14809
         lt_prog_compiler_wl_F77='-Wl,'
 
14810
         ;;
 
14811
       esac
 
14812
       ;;
 
14813
 
 
14814
    mingw* | pw32* | os2*)
 
14815
      # This hack is so that the source file can tell whether it is being
 
14816
      # built for inclusion in a dll (and should export symbols for example).
 
14817
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14818
      ;;
 
14819
 
 
14820
    hpux9* | hpux10* | hpux11*)
 
14821
      lt_prog_compiler_wl_F77='-Wl,'
 
14822
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14823
      # not for PA HP-UX.
 
14824
      case "$host_cpu" in
 
14825
      hppa*64*|ia64*)
 
14826
        # +Z the default
 
14827
        ;;
 
14828
      *)
 
14829
        lt_prog_compiler_pic_F77='+Z'
 
14830
        ;;
 
14831
      esac
 
14832
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14833
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14834
      ;;
 
14835
 
 
14836
    irix5* | irix6* | nonstopux*)
 
14837
      lt_prog_compiler_wl_F77='-Wl,'
 
14838
      # PIC (with -KPIC) is the default.
 
14839
      lt_prog_compiler_static_F77='-non_shared'
 
14840
      ;;
 
14841
 
 
14842
    newsos6)
 
14843
      lt_prog_compiler_pic_F77='-KPIC'
 
14844
      lt_prog_compiler_static_F77='-Bstatic'
 
14845
      ;;
 
14846
 
 
14847
    linux*)
 
14848
      case $CC in
 
14849
      icc* | ecc*)
 
14850
        lt_prog_compiler_wl_F77='-Wl,'
 
14851
        lt_prog_compiler_pic_F77='-KPIC'
 
14852
        lt_prog_compiler_static_F77='-static'
 
14853
        ;;
 
14854
      ccc*)
 
14855
        lt_prog_compiler_wl_F77='-Wl,'
 
14856
        # All Alpha code is PIC.
 
14857
        lt_prog_compiler_static_F77='-non_shared'
 
14858
        ;;
 
14859
      esac
 
14860
      ;;
 
14861
 
 
14862
    osf3* | osf4* | osf5*)
 
14863
      lt_prog_compiler_wl_F77='-Wl,'
 
14864
      # All OSF/1 code is PIC.
 
14865
      lt_prog_compiler_static_F77='-non_shared'
 
14866
      ;;
 
14867
 
 
14868
    sco3.2v5*)
 
14869
      lt_prog_compiler_pic_F77='-Kpic'
 
14870
      lt_prog_compiler_static_F77='-dn'
 
14871
      ;;
 
14872
 
 
14873
    solaris*)
 
14874
      lt_prog_compiler_wl_F77='-Wl,'
 
14875
      lt_prog_compiler_pic_F77='-KPIC'
 
14876
      lt_prog_compiler_static_F77='-Bstatic'
 
14877
      ;;
 
14878
 
 
14879
    sunos4*)
 
14880
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14881
      lt_prog_compiler_pic_F77='-PIC'
 
14882
      lt_prog_compiler_static_F77='-Bstatic'
 
14883
      ;;
 
14884
 
 
14885
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14886
      lt_prog_compiler_wl_F77='-Wl,'
 
14887
      lt_prog_compiler_pic_F77='-KPIC'
 
14888
      lt_prog_compiler_static_F77='-Bstatic'
 
14889
      ;;
 
14890
 
 
14891
    sysv4*MP*)
 
14892
      if test -d /usr/nec ;then
 
14893
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14894
        lt_prog_compiler_static_F77='-Bstatic'
 
14895
      fi
 
14896
      ;;
 
14897
 
 
14898
    uts4*)
 
14899
      lt_prog_compiler_pic_F77='-pic'
 
14900
      lt_prog_compiler_static_F77='-Bstatic'
 
14901
      ;;
 
14902
 
 
14903
    *)
 
14904
      lt_prog_compiler_can_build_shared_F77=no
 
14905
      ;;
 
14906
    esac
 
14907
  fi
 
14908
 
 
14909
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14910
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14911
 
 
14912
#
 
14913
# Check to make sure the PIC flag actually works.
 
14914
#
 
14915
if test -n "$lt_prog_compiler_pic_F77"; then
 
14916
 
 
14917
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14918
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14919
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14921
else
 
14922
  lt_prog_compiler_pic_works_F77=no
 
14923
  ac_outfile=conftest.$ac_objext
 
14924
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14925
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14926
   # Insert the option either (1) after the last *FLAGS variable, or
 
14927
   # (2) before a word containing "conftest.", or (3) at the end.
 
14928
   # Note that $ac_compile itself does not contain backslashes and begins
 
14929
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14930
   # The option is referenced via a variable to avoid confusing sed.
 
14931
   lt_compile=`echo "$ac_compile" | $SED \
 
14932
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14933
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14934
   -e 's:$: $lt_compiler_flag:'`
 
14935
   (eval echo "\"\$as_me:14935: $lt_compile\"" >&5)
 
14936
   (eval "$lt_compile" 2>conftest.err)
 
14937
   ac_status=$?
 
14938
   cat conftest.err >&5
 
14939
   echo "$as_me:14939: \$? = $ac_status" >&5
 
14940
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14941
     # The compiler can only warn and ignore the option if not recognized
 
14942
     # So say no if there are warnings
 
14943
     if test ! -s conftest.err; then
 
14944
       lt_prog_compiler_pic_works_F77=yes
 
14945
     fi
 
14946
   fi
 
14947
   $rm conftest*
 
14948
 
 
14949
fi
 
14950
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14951
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14952
 
 
14953
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14954
    case $lt_prog_compiler_pic_F77 in
 
14955
     "" | " "*) ;;
 
14956
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14957
     esac
 
14958
else
 
14959
    lt_prog_compiler_pic_F77=
 
14960
     lt_prog_compiler_can_build_shared_F77=no
 
14961
fi
 
14962
 
 
14963
fi
 
14964
case "$host_os" in
 
14965
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14966
  *djgpp*)
 
14967
    lt_prog_compiler_pic_F77=
 
14968
    ;;
 
14969
  *)
 
14970
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14971
    ;;
 
14972
esac
 
14973
 
 
14974
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14975
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14976
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14978
else
 
14979
  lt_cv_prog_compiler_c_o_F77=no
 
14980
   $rm -r conftest 2>/dev/null
 
14981
   mkdir conftest
 
14982
   cd conftest
 
14983
   mkdir out
 
14984
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14985
 
 
14986
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14987
   # Insert the option either (1) after the last *FLAGS variable, or
 
14988
   # (2) before a word containing "conftest.", or (3) at the end.
 
14989
   # Note that $ac_compile itself does not contain backslashes and begins
 
14990
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14991
   lt_compile=`echo "$ac_compile" | $SED \
 
14992
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14993
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14994
   -e 's:$: $lt_compiler_flag:'`
 
14995
   (eval echo "\"\$as_me:14995: $lt_compile\"" >&5)
 
14996
   (eval "$lt_compile" 2>out/conftest.err)
 
14997
   ac_status=$?
 
14998
   cat out/conftest.err >&5
 
14999
   echo "$as_me:14999: \$? = $ac_status" >&5
 
15000
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15001
   then
 
15002
     # The compiler can only warn and ignore the option if not recognized
 
15003
     # So say no if there are warnings
 
15004
     if test ! -s out/conftest.err; then
 
15005
       lt_cv_prog_compiler_c_o_F77=yes
 
15006
     fi
 
15007
   fi
 
15008
   chmod u+w .
 
15009
   $rm conftest*
 
15010
   # SGI C++ compiler will create directory out/ii_files/ for
 
15011
   # template instantiation
 
15012
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15013
   $rm out/* && rmdir out
 
15014
   cd ..
 
15015
   rmdir conftest
 
15016
   $rm conftest*
 
15017
 
 
15018
fi
 
15019
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15020
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
15021
 
 
15022
 
 
15023
hard_links="nottested"
 
15024
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15025
  # do not overwrite the value of need_locks provided by the user
 
15026
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15027
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15028
  hard_links=yes
 
15029
  $rm conftest*
 
15030
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15031
  touch conftest.a
 
15032
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15033
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15034
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15035
echo "${ECHO_T}$hard_links" >&6
 
15036
  if test "$hard_links" = no; then
 
15037
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15038
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15039
    need_locks=warn
 
15040
  fi
 
15041
else
 
15042
  need_locks=no
 
15043
fi
 
15044
 
 
15045
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15046
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15047
 
 
15048
  runpath_var=
 
15049
  allow_undefined_flag_F77=
 
15050
  enable_shared_with_static_runtimes_F77=no
 
15051
  archive_cmds_F77=
 
15052
  archive_expsym_cmds_F77=
 
15053
  old_archive_From_new_cmds_F77=
 
15054
  old_archive_from_expsyms_cmds_F77=
 
15055
  export_dynamic_flag_spec_F77=
 
15056
  whole_archive_flag_spec_F77=
 
15057
  thread_safe_flag_spec_F77=
 
15058
  hardcode_libdir_flag_spec_F77=
 
15059
  hardcode_libdir_flag_spec_ld_F77=
 
15060
  hardcode_libdir_separator_F77=
 
15061
  hardcode_direct_F77=no
 
15062
  hardcode_minus_L_F77=no
 
15063
  hardcode_shlibpath_var_F77=unsupported
 
15064
  link_all_deplibs_F77=unknown
 
15065
  hardcode_automatic_F77=no
 
15066
  module_cmds_F77=
 
15067
  module_expsym_cmds_F77=
 
15068
  always_export_symbols_F77=no
 
15069
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15070
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15071
  # included in the symbol list
 
15072
  include_expsyms_F77=
 
15073
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15074
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15075
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15076
  # as well as any symbol that contains `d'.
 
15077
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
15078
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15079
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15080
  # the symbol is explicitly referenced.  Since portable code cannot
 
15081
  # rely on this symbol name, it's probably fine to never include it in
 
15082
  # preloaded symbol tables.
 
15083
  extract_expsyms_cmds=
 
15084
 
 
15085
  case $host_os in
 
15086
  cygwin* | mingw* | pw32*)
 
15087
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15088
    # When not using gcc, we currently assume that we are using
 
15089
    # Microsoft Visual C++.
 
15090
    if test "$GCC" != yes; then
 
15091
      with_gnu_ld=no
 
15092
    fi
 
15093
    ;;
 
15094
  openbsd*)
 
15095
    with_gnu_ld=no
 
15096
    ;;
 
15097
  esac
 
15098
 
 
15099
  ld_shlibs_F77=yes
 
15100
  if test "$with_gnu_ld" = yes; then
 
15101
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15102
    wlarc='${wl}'
 
15103
 
 
15104
    # See if GNU ld supports shared libraries.
 
15105
    case $host_os in
 
15106
    aix3* | aix4* | aix5*)
 
15107
      # On AIX/PPC, the GNU linker is very broken
 
15108
      if test "$host_cpu" != ia64; then
 
15109
        ld_shlibs_F77=no
 
15110
        cat <<EOF 1>&2
 
15111
 
 
15112
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15113
*** to be unable to reliably create shared libraries on AIX.
 
15114
*** Therefore, libtool is disabling shared libraries support.  If you
 
15115
*** really care for shared libraries, you may want to modify your PATH
 
15116
*** so that a non-GNU linker is found, and then restart.
 
15117
 
 
15118
EOF
 
15119
      fi
 
15120
      ;;
 
15121
 
 
15122
    amigaos*)
 
15123
      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)'
 
15124
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15125
      hardcode_minus_L_F77=yes
 
15126
 
 
15127
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15128
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15129
      # to version 4, is to share data among multiple programs linked
 
15130
      # with the same dynamic library.  Since this doesn't match the
 
15131
      # behavior of shared libraries on other platforms, we can't use
 
15132
      # them.
 
15133
      ld_shlibs_F77=no
 
15134
      ;;
 
15135
 
 
15136
    beos*)
 
15137
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15138
        allow_undefined_flag_F77=unsupported
 
15139
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15140
        # support --undefined.  This deserves some investigation.  FIXME
 
15141
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15142
      else
 
15143
        ld_shlibs_F77=no
 
15144
      fi
 
15145
      ;;
 
15146
 
 
15147
    cygwin* | mingw* | pw32*)
 
15148
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15149
      # as there is no search path for DLLs.
 
15150
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15151
      allow_undefined_flag_F77=unsupported
 
15152
      always_export_symbols_F77=no
 
15153
      enable_shared_with_static_runtimes_F77=yes
 
15154
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15155
 
 
15156
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15157
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15158
        # If the export-symbols file already is a .def file (1st line
 
15159
        # is EXPORTS), use it as is; otherwise, prepend...
 
15160
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15161
          cp $export_symbols $output_objdir/$soname.def;
 
15162
        else
 
15163
          echo EXPORTS > $output_objdir/$soname.def;
 
15164
          cat $export_symbols >> $output_objdir/$soname.def;
 
15165
        fi~
 
15166
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15167
      else
 
15168
        ld_shlibs=no
 
15169
      fi
 
15170
      ;;
 
15171
 
 
15172
    netbsd*)
 
15173
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15174
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15175
        wlarc=
 
15176
      else
 
15177
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15178
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15179
      fi
 
15180
      ;;
 
15181
 
 
15182
    solaris* | sysv5*)
 
15183
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15184
        ld_shlibs_F77=no
 
15185
        cat <<EOF 1>&2
 
15186
 
 
15187
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15188
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15189
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15190
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15191
*** your PATH or compiler configuration so that the native linker is
 
15192
*** used, and then restart.
 
15193
 
 
15194
EOF
 
15195
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15196
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15197
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15198
      else
 
15199
        ld_shlibs_F77=no
 
15200
      fi
 
15201
      ;;
 
15202
 
 
15203
    sunos4*)
 
15204
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15205
      wlarc=
 
15206
      hardcode_direct_F77=yes
 
15207
      hardcode_shlibpath_var_F77=no
 
15208
      ;;
 
15209
 
 
15210
  linux*)
 
15211
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15212
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15213
        archive_cmds_F77="$tmp_archive_cmds"
 
15214
      supports_anon_versioning=no
 
15215
      case `$LD -v 2>/dev/null` in
 
15216
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15217
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15218
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15219
        *\ 2.11.*) ;; # other 2.11 versions
 
15220
        *) supports_anon_versioning=yes ;;
 
15221
      esac
 
15222
      if test $supports_anon_versioning = yes; then
 
15223
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15224
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15225
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
15226
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15227
      else
 
15228
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
15229
      fi
 
15230
    else
 
15231
      ld_shlibs_F77=no
 
15232
    fi
 
15233
    ;;
 
15234
 
 
15235
    *)
 
15236
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15237
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15238
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15239
      else
 
15240
        ld_shlibs_F77=no
 
15241
      fi
 
15242
      ;;
 
15243
    esac
 
15244
 
 
15245
    if test "$ld_shlibs_F77" = yes; then
 
15246
      runpath_var=LD_RUN_PATH
 
15247
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15248
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15249
      # ancient GNU ld didn't support --whole-archive et. al.
 
15250
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15251
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15252
      else
 
15253
        whole_archive_flag_spec_F77=
 
15254
      fi
 
15255
    fi
 
15256
  else
 
15257
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15258
    case $host_os in
 
15259
    aix3*)
 
15260
      allow_undefined_flag_F77=unsupported
 
15261
      always_export_symbols_F77=yes
 
15262
      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'
 
15263
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15264
      # are no directories specified by -L.
 
15265
      hardcode_minus_L_F77=yes
 
15266
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15267
        # Neither direct hardcoding nor static linking is supported with a
 
15268
        # broken collect2.
 
15269
        hardcode_direct_F77=unsupported
 
15270
      fi
 
15271
      ;;
 
15272
 
 
15273
    aix4* | aix5*)
 
15274
      if test "$host_cpu" = ia64; then
 
15275
        # On IA64, the linker does run time linking by default, so we don't
 
15276
        # have to do anything special.
 
15277
        aix_use_runtimelinking=no
 
15278
        exp_sym_flag='-Bexport'
 
15279
        no_entry_flag=""
 
15280
      else
 
15281
        # If we're using GNU nm, then we don't want the "-C" option.
 
15282
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15283
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15284
          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'
 
15285
        else
 
15286
          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'
 
15287
        fi
 
15288
        aix_use_runtimelinking=no
 
15289
 
 
15290
        # Test if we are trying to use run time linking or normal
 
15291
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15292
        # need to do runtime linking.
 
15293
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15294
          for ld_flag in $LDFLAGS; do
 
15295
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15296
            aix_use_runtimelinking=yes
 
15297
            break
 
15298
          fi
 
15299
          done
 
15300
        esac
 
15301
 
 
15302
        exp_sym_flag='-bexport'
 
15303
        no_entry_flag='-bnoentry'
 
15304
      fi
 
15305
 
 
15306
      # When large executables or shared objects are built, AIX ld can
 
15307
      # have problems creating the table of contents.  If linking a library
 
15308
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15309
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15310
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15311
 
 
15312
      archive_cmds_F77=''
 
15313
      hardcode_direct_F77=yes
 
15314
      hardcode_libdir_separator_F77=':'
 
15315
      link_all_deplibs_F77=yes
 
15316
 
 
15317
      if test "$GCC" = yes; then
 
15318
        case $host_os in aix4.012|aix4.012.*)
 
15319
        # We only want to do this on AIX 4.2 and lower, the check
 
15320
        # below for broken collect2 doesn't work under 4.3+
 
15321
          collect2name=`${CC} -print-prog-name=collect2`
 
15322
          if test -f "$collect2name" && \
 
15323
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15324
          then
 
15325
          # We have reworked collect2
 
15326
          hardcode_direct_F77=yes
 
15327
          else
 
15328
          # We have old collect2
 
15329
          hardcode_direct_F77=unsupported
 
15330
          # It fails to find uninstalled libraries when the uninstalled
 
15331
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15332
          # to unsupported forces relinking
 
15333
          hardcode_minus_L_F77=yes
 
15334
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15335
          hardcode_libdir_separator_F77=
 
15336
          fi
 
15337
        esac
 
15338
        shared_flag='-shared'
 
15339
      else
 
15340
        # not using gcc
 
15341
        if test "$host_cpu" = ia64; then
 
15342
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15343
        # chokes on -Wl,-G. The following line is correct:
 
15344
          shared_flag='-G'
 
15345
        else
 
15346
        if test "$aix_use_runtimelinking" = yes; then
 
15347
            shared_flag='${wl}-G'
 
15348
          else
 
15349
            shared_flag='${wl}-bM:SRE'
 
15350
        fi
 
15351
        fi
 
15352
      fi
 
15353
 
 
15354
      # It seems that -bexpall does not export symbols beginning with
 
15355
      # underscore (_), so it is better to generate a list of symbols to export.
 
15356
      always_export_symbols_F77=yes
 
15357
      if test "$aix_use_runtimelinking" = yes; then
 
15358
        # Warning - without using the other runtime loading flags (-brtl),
 
15359
        # -berok will link without error, but may produce a broken library.
 
15360
        allow_undefined_flag_F77='-berok'
 
15361
       # Determine the default libpath from the value encoded in an empty executable.
 
15362
       cat >conftest.$ac_ext <<_ACEOF
 
15363
      program main
 
15364
 
 
15365
      end
 
15366
_ACEOF
 
15367
rm -f conftest.$ac_objext conftest$ac_exeext
 
15368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15369
  (eval $ac_link) 2>conftest.er1
 
15370
  ac_status=$?
 
15371
  grep -v '^ *+' conftest.er1 >conftest.err
 
15372
  rm -f conftest.er1
 
15373
  cat conftest.err >&5
 
15374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15375
  (exit $ac_status); } &&
 
15376
         { ac_try='test -z "$ac_f77_werror_flag"
 
15377
                         || test ! -s conftest.err'
 
15378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15379
  (eval $ac_try) 2>&5
 
15380
  ac_status=$?
 
15381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15382
  (exit $ac_status); }; } &&
 
15383
         { ac_try='test -s conftest$ac_exeext'
 
15384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15385
  (eval $ac_try) 2>&5
 
15386
  ac_status=$?
 
15387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15388
  (exit $ac_status); }; }; then
 
15389
 
 
15390
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15391
}'`
 
15392
# Check for a 64-bit object if we didn't find anything.
 
15393
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; }
 
15394
}'`; fi
 
15395
else
 
15396
  echo "$as_me: failed program was:" >&5
 
15397
sed 's/^/| /' conftest.$ac_ext >&5
 
15398
 
 
15399
fi
 
15400
rm -f conftest.err conftest.$ac_objext \
 
15401
      conftest$ac_exeext conftest.$ac_ext
 
15402
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15403
 
 
15404
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15405
        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"
 
15406
       else
 
15407
        if test "$host_cpu" = ia64; then
 
15408
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15409
          allow_undefined_flag_F77="-z nodefs"
 
15410
          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"
 
15411
        else
 
15412
         # Determine the default libpath from the value encoded in an empty executable.
 
15413
         cat >conftest.$ac_ext <<_ACEOF
 
15414
      program main
 
15415
 
 
15416
      end
 
15417
_ACEOF
 
15418
rm -f conftest.$ac_objext conftest$ac_exeext
 
15419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15420
  (eval $ac_link) 2>conftest.er1
 
15421
  ac_status=$?
 
15422
  grep -v '^ *+' conftest.er1 >conftest.err
 
15423
  rm -f conftest.er1
 
15424
  cat conftest.err >&5
 
15425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15426
  (exit $ac_status); } &&
 
15427
         { ac_try='test -z "$ac_f77_werror_flag"
 
15428
                         || test ! -s conftest.err'
 
15429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15430
  (eval $ac_try) 2>&5
 
15431
  ac_status=$?
 
15432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15433
  (exit $ac_status); }; } &&
 
15434
         { ac_try='test -s conftest$ac_exeext'
 
15435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15436
  (eval $ac_try) 2>&5
 
15437
  ac_status=$?
 
15438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15439
  (exit $ac_status); }; }; then
 
15440
 
 
15441
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15442
}'`
 
15443
# Check for a 64-bit object if we didn't find anything.
 
15444
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; }
 
15445
}'`; fi
 
15446
else
 
15447
  echo "$as_me: failed program was:" >&5
 
15448
sed 's/^/| /' conftest.$ac_ext >&5
 
15449
 
 
15450
fi
 
15451
rm -f conftest.err conftest.$ac_objext \
 
15452
      conftest$ac_exeext conftest.$ac_ext
 
15453
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15454
 
 
15455
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15456
          # Warning - without using the other run time loading flags,
 
15457
          # -berok will link without error, but may produce a broken library.
 
15458
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15459
          allow_undefined_flag_F77=' ${wl}-berok'
 
15460
          # -bexpall does not export symbols beginning with underscore (_)
 
15461
          always_export_symbols_F77=yes
 
15462
          # Exported symbols can be pulled into shared objects from archives
 
15463
          whole_archive_flag_spec_F77=' '
 
15464
          archive_cmds_need_lc_F77=yes
 
15465
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15466
          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'
 
15467
        fi
 
15468
      fi
 
15469
      ;;
 
15470
 
 
15471
    amigaos*)
 
15472
      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)'
 
15473
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15474
      hardcode_minus_L_F77=yes
 
15475
      # see comment about different semantics on the GNU ld section
 
15476
      ld_shlibs_F77=no
 
15477
      ;;
 
15478
 
 
15479
    bsdi[45]*)
 
15480
      export_dynamic_flag_spec_F77=-rdynamic
 
15481
      ;;
 
15482
 
 
15483
    cygwin* | mingw* | pw32*)
 
15484
      # When not using gcc, we currently assume that we are using
 
15485
      # Microsoft Visual C++.
 
15486
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15487
      # no search path for DLLs.
 
15488
      hardcode_libdir_flag_spec_F77=' '
 
15489
      allow_undefined_flag_F77=unsupported
 
15490
      # Tell ltmain to make .lib files, not .a files.
 
15491
      libext=lib
 
15492
      # Tell ltmain to make .dll files, not .so files.
 
15493
      shrext_cmds=".dll"
 
15494
      # FIXME: Setting linknames here is a bad hack.
 
15495
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15496
      # The linker will automatically build a .lib file if we build a DLL.
 
15497
      old_archive_From_new_cmds_F77='true'
 
15498
      # FIXME: Should let the user specify the lib program.
 
15499
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15500
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15501
      enable_shared_with_static_runtimes_F77=yes
 
15502
      ;;
 
15503
 
 
15504
    darwin* | rhapsody*)
 
15505
      case "$host_os" in
 
15506
        rhapsody* | darwin1.[012])
 
15507
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15508
         ;;
 
15509
       *) # Darwin 1.3 on
 
15510
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15511
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15512
         else
 
15513
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15514
             10.[012])
 
15515
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15516
               ;;
 
15517
             10.*)
 
15518
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15519
               ;;
 
15520
           esac
 
15521
         fi
 
15522
         ;;
 
15523
      esac
 
15524
      archive_cmds_need_lc_F77=no
 
15525
      hardcode_direct_F77=no
 
15526
      hardcode_automatic_F77=yes
 
15527
      hardcode_shlibpath_var_F77=unsupported
 
15528
      whole_archive_flag_spec_F77=''
 
15529
      link_all_deplibs_F77=yes
 
15530
    if test "$GCC" = yes ; then
 
15531
        output_verbose_link_cmd='echo'
 
15532
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15533
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15534
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15535
      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}'
 
15536
      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}'
 
15537
    else
 
15538
      case "$cc_basename" in
 
15539
        xlc*)
 
15540
         output_verbose_link_cmd='echo'
 
15541
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
15542
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15543
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15544
         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}'
 
15545
          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}'
 
15546
          ;;
 
15547
       *)
 
15548
         ld_shlibs_F77=no
 
15549
          ;;
 
15550
      esac
 
15551
    fi
 
15552
      ;;
 
15553
 
 
15554
    dgux*)
 
15555
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15556
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15557
      hardcode_shlibpath_var_F77=no
 
15558
      ;;
 
15559
 
 
15560
    freebsd1*)
 
15561
      ld_shlibs_F77=no
 
15562
      ;;
 
15563
 
 
15564
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15565
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15566
    # does not break anything, and helps significantly (at the cost of a little
 
15567
    # extra space).
 
15568
    freebsd2.2*)
 
15569
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15570
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15571
      hardcode_direct_F77=yes
 
15572
      hardcode_shlibpath_var_F77=no
 
15573
      ;;
 
15574
 
 
15575
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15576
    freebsd2*)
 
15577
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15578
      hardcode_direct_F77=yes
 
15579
      hardcode_minus_L_F77=yes
 
15580
      hardcode_shlibpath_var_F77=no
 
15581
      ;;
 
15582
 
 
15583
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15584
    freebsd* | kfreebsd*-gnu)
 
15585
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15586
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15587
      hardcode_direct_F77=yes
 
15588
      hardcode_shlibpath_var_F77=no
 
15589
      ;;
 
15590
 
 
15591
    hpux9*)
 
15592
      if test "$GCC" = yes; then
 
15593
        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'
 
15594
      else
 
15595
        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'
 
15596
      fi
 
15597
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15598
      hardcode_libdir_separator_F77=:
 
15599
      hardcode_direct_F77=yes
 
15600
 
 
15601
      # hardcode_minus_L: Not really in the search PATH,
 
15602
      # but as the default location of the library.
 
15603
      hardcode_minus_L_F77=yes
 
15604
      export_dynamic_flag_spec_F77='${wl}-E'
 
15605
      ;;
 
15606
 
 
15607
    hpux10* | hpux11*)
 
15608
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15609
        case "$host_cpu" in
 
15610
        hppa*64*|ia64*)
 
15611
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15612
          ;;
 
15613
        *)
 
15614
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15615
          ;;
 
15616
        esac
 
15617
      else
 
15618
        case "$host_cpu" in
 
15619
        hppa*64*|ia64*)
 
15620
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15621
          ;;
 
15622
        *)
 
15623
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15624
          ;;
 
15625
        esac
 
15626
      fi
 
15627
      if test "$with_gnu_ld" = no; then
 
15628
        case "$host_cpu" in
 
15629
        hppa*64*)
 
15630
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15631
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15632
          hardcode_libdir_separator_F77=:
 
15633
          hardcode_direct_F77=no
 
15634
          hardcode_shlibpath_var_F77=no
 
15635
          ;;
 
15636
        ia64*)
 
15637
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15638
          hardcode_direct_F77=no
 
15639
          hardcode_shlibpath_var_F77=no
 
15640
 
 
15641
          # hardcode_minus_L: Not really in the search PATH,
 
15642
          # but as the default location of the library.
 
15643
          hardcode_minus_L_F77=yes
 
15644
          ;;
 
15645
        *)
 
15646
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15647
          hardcode_libdir_separator_F77=:
 
15648
          hardcode_direct_F77=yes
 
15649
          export_dynamic_flag_spec_F77='${wl}-E'
 
15650
 
 
15651
          # hardcode_minus_L: Not really in the search PATH,
 
15652
          # but as the default location of the library.
 
15653
          hardcode_minus_L_F77=yes
 
15654
          ;;
 
15655
        esac
 
15656
      fi
 
15657
      ;;
 
15658
 
 
15659
    irix5* | irix6* | nonstopux*)
 
15660
      if test "$GCC" = yes; then
 
15661
        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'
 
15662
      else
 
15663
        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'
 
15664
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15665
      fi
 
15666
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15667
      hardcode_libdir_separator_F77=:
 
15668
      link_all_deplibs_F77=yes
 
15669
      ;;
 
15670
 
 
15671
    netbsd*)
 
15672
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15673
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15674
      else
 
15675
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15676
      fi
 
15677
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15678
      hardcode_direct_F77=yes
 
15679
      hardcode_shlibpath_var_F77=no
 
15680
      ;;
 
15681
 
 
15682
    newsos6)
 
15683
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15684
      hardcode_direct_F77=yes
 
15685
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15686
      hardcode_libdir_separator_F77=:
 
15687
      hardcode_shlibpath_var_F77=no
 
15688
      ;;
 
15689
 
 
15690
    openbsd*)
 
15691
      hardcode_direct_F77=yes
 
15692
      hardcode_shlibpath_var_F77=no
 
15693
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15694
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15695
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15696
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15697
        export_dynamic_flag_spec_F77='${wl}-E'
 
15698
      else
 
15699
       case $host_os in
 
15700
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15701
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15702
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
15703
           ;;
 
15704
         *)
 
15705
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15706
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15707
           ;;
 
15708
       esac
 
15709
      fi
 
15710
      ;;
 
15711
 
 
15712
    os2*)
 
15713
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15714
      hardcode_minus_L_F77=yes
 
15715
      allow_undefined_flag_F77=unsupported
 
15716
      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'
 
15717
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15718
      ;;
 
15719
 
 
15720
    osf3*)
 
15721
      if test "$GCC" = yes; then
 
15722
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15723
        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'
 
15724
      else
 
15725
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15726
        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'
 
15727
      fi
 
15728
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15729
      hardcode_libdir_separator_F77=:
 
15730
      ;;
 
15731
 
 
15732
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15733
      if test "$GCC" = yes; then
 
15734
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15735
        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'
 
15736
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15737
      else
 
15738
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15739
        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'
 
15740
        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~
 
15741
        $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'
 
15742
 
 
15743
        # Both c and cxx compiler support -rpath directly
 
15744
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15745
      fi
 
15746
      hardcode_libdir_separator_F77=:
 
15747
      ;;
 
15748
 
 
15749
    sco3.2v5*)
 
15750
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15751
      hardcode_shlibpath_var_F77=no
 
15752
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15753
      runpath_var=LD_RUN_PATH
 
15754
      hardcode_runpath_var=yes
 
15755
      ;;
 
15756
 
 
15757
    solaris*)
 
15758
      no_undefined_flag_F77=' -z text'
 
15759
      if test "$GCC" = yes; then
 
15760
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15761
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15762
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15763
      else
 
15764
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15765
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15766
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15767
      fi
 
15768
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15769
      hardcode_shlibpath_var_F77=no
 
15770
      case $host_os in
 
15771
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15772
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15773
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15774
      esac
 
15775
      link_all_deplibs_F77=yes
 
15776
      ;;
 
15777
 
 
15778
    sunos4*)
 
15779
      if test "x$host_vendor" = xsequent; then
 
15780
        # Use $CC to link under sequent, because it throws in some extra .o
 
15781
        # files that make .init and .fini sections work.
 
15782
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15783
      else
 
15784
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15785
      fi
 
15786
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15787
      hardcode_direct_F77=yes
 
15788
      hardcode_minus_L_F77=yes
 
15789
      hardcode_shlibpath_var_F77=no
 
15790
      ;;
 
15791
 
 
15792
    sysv4)
 
15793
      case $host_vendor in
 
15794
        sni)
 
15795
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15796
          hardcode_direct_F77=yes # is this really true???
 
15797
        ;;
 
15798
        siemens)
 
15799
          ## LD is ld it makes a PLAMLIB
 
15800
          ## CC just makes a GrossModule.
 
15801
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15802
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15803
          hardcode_direct_F77=no
 
15804
        ;;
 
15805
        motorola)
 
15806
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15807
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15808
        ;;
 
15809
      esac
 
15810
      runpath_var='LD_RUN_PATH'
 
15811
      hardcode_shlibpath_var_F77=no
 
15812
      ;;
 
15813
 
 
15814
    sysv4.3*)
 
15815
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15816
      hardcode_shlibpath_var_F77=no
 
15817
      export_dynamic_flag_spec_F77='-Bexport'
 
15818
      ;;
 
15819
 
 
15820
    sysv4*MP*)
 
15821
      if test -d /usr/nec; then
 
15822
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15823
        hardcode_shlibpath_var_F77=no
 
15824
        runpath_var=LD_RUN_PATH
 
15825
        hardcode_runpath_var=yes
 
15826
        ld_shlibs_F77=yes
 
15827
      fi
 
15828
      ;;
 
15829
 
 
15830
    sysv4.2uw2*)
 
15831
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15832
      hardcode_direct_F77=yes
 
15833
      hardcode_minus_L_F77=no
 
15834
      hardcode_shlibpath_var_F77=no
 
15835
      hardcode_runpath_var=yes
 
15836
      runpath_var=LD_RUN_PATH
 
15837
      ;;
 
15838
 
 
15839
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
15840
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
15841
      if test "$GCC" = yes; then
 
15842
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15843
      else
 
15844
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15845
      fi
 
15846
      runpath_var='LD_RUN_PATH'
 
15847
      hardcode_shlibpath_var_F77=no
 
15848
      ;;
 
15849
 
 
15850
    sysv5*)
 
15851
      no_undefined_flag_F77=' -z text'
 
15852
      # $CC -shared without GNU ld will not create a library from C++
 
15853
      # object files and a static libstdc++, better avoid it by now
 
15854
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15855
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15856
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15857
      hardcode_libdir_flag_spec_F77=
 
15858
      hardcode_shlibpath_var_F77=no
 
15859
      runpath_var='LD_RUN_PATH'
 
15860
      ;;
 
15861
 
 
15862
    uts4*)
 
15863
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15864
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15865
      hardcode_shlibpath_var_F77=no
 
15866
      ;;
 
15867
 
 
15868
    *)
 
15869
      ld_shlibs_F77=no
 
15870
      ;;
 
15871
    esac
 
15872
  fi
 
15873
 
 
15874
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15875
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15876
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15877
 
 
15878
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15879
if test "$GCC" = yes; then
 
15880
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15881
fi
 
15882
 
 
15883
#
 
15884
# Do we need to explicitly link libc?
 
15885
#
 
15886
case "x$archive_cmds_need_lc_F77" in
 
15887
x|xyes)
 
15888
  # Assume -lc should be added
 
15889
  archive_cmds_need_lc_F77=yes
 
15890
 
 
15891
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15892
    case $archive_cmds_F77 in
 
15893
    *'~'*)
 
15894
      # FIXME: we may have to deal with multi-command sequences.
 
15895
      ;;
 
15896
    '$CC '*)
 
15897
      # Test whether the compiler implicitly links with -lc since on some
 
15898
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15899
      # to ld, don't add -lc before -lgcc.
 
15900
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15901
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15902
      $rm conftest*
 
15903
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15904
 
 
15905
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15906
  (eval $ac_compile) 2>&5
 
15907
  ac_status=$?
 
15908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15909
  (exit $ac_status); } 2>conftest.err; then
 
15910
        soname=conftest
 
15911
        lib=conftest
 
15912
        libobjs=conftest.$ac_objext
 
15913
        deplibs=
 
15914
        wl=$lt_prog_compiler_wl_F77
 
15915
        compiler_flags=-v
 
15916
        linker_flags=-v
 
15917
        verstring=
 
15918
        output_objdir=.
 
15919
        libname=conftest
 
15920
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15921
        allow_undefined_flag_F77=
 
15922
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15923
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15924
  ac_status=$?
 
15925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15926
  (exit $ac_status); }
 
15927
        then
 
15928
          archive_cmds_need_lc_F77=no
 
15929
        else
 
15930
          archive_cmds_need_lc_F77=yes
 
15931
        fi
 
15932
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15933
      else
 
15934
        cat conftest.err 1>&5
 
15935
      fi
 
15936
      $rm conftest*
 
15937
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15938
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15939
      ;;
 
15940
    esac
 
15941
  fi
 
15942
  ;;
 
15943
esac
 
15944
 
 
15945
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15946
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15947
library_names_spec=
 
15948
libname_spec='lib$name'
 
15949
soname_spec=
 
15950
shrext_cmds=".so"
 
15951
postinstall_cmds=
 
15952
postuninstall_cmds=
 
15953
finish_cmds=
 
15954
finish_eval=
 
15955
shlibpath_var=
 
15956
shlibpath_overrides_runpath=unknown
 
15957
version_type=none
 
15958
dynamic_linker="$host_os ld.so"
 
15959
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15960
if test "$GCC" = yes; then
 
15961
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15962
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15963
    # if the path contains ";" then we assume it to be the separator
 
15964
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15965
    # assumed that no part of a normal pathname contains ";" but that should
 
15966
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15967
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15968
  else
 
15969
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15970
  fi
 
15971
else
 
15972
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15973
fi
 
15974
need_lib_prefix=unknown
 
15975
hardcode_into_libs=no
 
15976
 
 
15977
# when you set need_version to no, make sure it does not cause -set_version
 
15978
# flags to be left without arguments
 
15979
need_version=unknown
 
15980
 
 
15981
case $host_os in
 
15982
aix3*)
 
15983
  version_type=linux
 
15984
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15985
  shlibpath_var=LIBPATH
 
15986
 
 
15987
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15988
  soname_spec='${libname}${release}${shared_ext}$major'
 
15989
  ;;
 
15990
 
 
15991
aix4* | aix5*)
 
15992
  version_type=linux
 
15993
  need_lib_prefix=no
 
15994
  need_version=no
 
15995
  hardcode_into_libs=yes
 
15996
  if test "$host_cpu" = ia64; then
 
15997
    # AIX 5 supports IA64
 
15998
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15999
    shlibpath_var=LD_LIBRARY_PATH
 
16000
  else
 
16001
    # With GCC up to 2.95.x, collect2 would create an import file
 
16002
    # for dependence libraries.  The import file would start with
 
16003
    # the line `#! .'.  This would cause the generated library to
 
16004
    # depend on `.', always an invalid library.  This was fixed in
 
16005
    # development snapshots of GCC prior to 3.0.
 
16006
    case $host_os in
 
16007
      aix4 | aix4.[01] | aix4.[01].*)
 
16008
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16009
           echo ' yes '
 
16010
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16011
        :
 
16012
      else
 
16013
        can_build_shared=no
 
16014
      fi
 
16015
      ;;
 
16016
    esac
 
16017
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16018
    # soname into executable. Probably we can add versioning support to
 
16019
    # collect2, so additional links can be useful in future.
 
16020
    if test "$aix_use_runtimelinking" = yes; then
 
16021
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16022
      # instead of lib<name>.a to let people know that these are not
 
16023
      # typical AIX shared libraries.
 
16024
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16025
    else
 
16026
      # We preserve .a as extension for shared libraries through AIX4.2
 
16027
      # and later when we are not doing run time linking.
 
16028
      library_names_spec='${libname}${release}.a $libname.a'
 
16029
      soname_spec='${libname}${release}${shared_ext}$major'
 
16030
    fi
 
16031
    shlibpath_var=LIBPATH
 
16032
  fi
 
16033
  ;;
 
16034
 
 
16035
amigaos*)
 
16036
  library_names_spec='$libname.ixlibrary $libname.a'
 
16037
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16038
  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'
 
16039
  ;;
 
16040
 
 
16041
beos*)
 
16042
  library_names_spec='${libname}${shared_ext}'
 
16043
  dynamic_linker="$host_os ld.so"
 
16044
  shlibpath_var=LIBRARY_PATH
 
16045
  ;;
 
16046
 
 
16047
bsdi[45]*)
 
16048
  version_type=linux
 
16049
  need_version=no
 
16050
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16051
  soname_spec='${libname}${release}${shared_ext}$major'
 
16052
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16053
  shlibpath_var=LD_LIBRARY_PATH
 
16054
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16055
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16056
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16057
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16058
  # libtool to hard-code these into programs
 
16059
  ;;
 
16060
 
 
16061
cygwin* | mingw* | pw32*)
 
16062
  version_type=windows
 
16063
  shrext_cmds=".dll"
 
16064
  need_version=no
 
16065
  need_lib_prefix=no
 
16066
 
 
16067
  case $GCC,$host_os in
 
16068
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16069
    library_names_spec='$libname.dll.a'
 
16070
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16071
    postinstall_cmds='base_file=`basename \${file}`~
 
16072
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16073
      dldir=$destdir/`dirname \$dlpath`~
 
16074
      test -d \$dldir || mkdir -p \$dldir~
 
16075
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16076
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16077
      dlpath=$dir/\$dldll~
 
16078
       $rm \$dlpath'
 
16079
    shlibpath_overrides_runpath=yes
 
16080
 
 
16081
    case $host_os in
 
16082
    cygwin*)
 
16083
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16084
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16085
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16086
      ;;
 
16087
    mingw*)
 
16088
      # MinGW DLLs use traditional 'lib' prefix
 
16089
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16090
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16091
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16092
        # It is most probably a Windows format PATH printed by
 
16093
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16094
        # path with ; separators, and with drive letters. We can handle the
 
16095
        # drive letters (cygwin fileutils understands them), so leave them,
 
16096
        # especially as we might pass files found there to a mingw objdump,
 
16097
        # which wouldn't understand a cygwinified path. Ahh.
 
16098
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16099
      else
 
16100
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16101
      fi
 
16102
      ;;
 
16103
    pw32*)
 
16104
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16105
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16106
      ;;
 
16107
    esac
 
16108
    ;;
 
16109
 
 
16110
  *)
 
16111
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16112
    ;;
 
16113
  esac
 
16114
  dynamic_linker='Win32 ld.exe'
 
16115
  # FIXME: first we should search . and the directory the executable is in
 
16116
  shlibpath_var=PATH
 
16117
  ;;
 
16118
 
 
16119
darwin* | rhapsody*)
 
16120
  dynamic_linker="$host_os dyld"
 
16121
  version_type=darwin
 
16122
  need_lib_prefix=no
 
16123
  need_version=no
 
16124
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16125
  soname_spec='${libname}${release}${major}$shared_ext'
 
16126
  shlibpath_overrides_runpath=yes
 
16127
  shlibpath_var=DYLD_LIBRARY_PATH
 
16128
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16129
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16130
  if test "$GCC" = yes; then
 
16131
    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"`
 
16132
  else
 
16133
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16134
  fi
 
16135
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16136
  ;;
 
16137
 
 
16138
dgux*)
 
16139
  version_type=linux
 
16140
  need_lib_prefix=no
 
16141
  need_version=no
 
16142
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16143
  soname_spec='${libname}${release}${shared_ext}$major'
 
16144
  shlibpath_var=LD_LIBRARY_PATH
 
16145
  ;;
 
16146
 
 
16147
freebsd1*)
 
16148
  dynamic_linker=no
 
16149
  ;;
 
16150
 
 
16151
kfreebsd*-gnu)
 
16152
  version_type=linux
 
16153
  need_lib_prefix=no
 
16154
  need_version=no
 
16155
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16156
  soname_spec='${libname}${release}${shared_ext}$major'
 
16157
  shlibpath_var=LD_LIBRARY_PATH
 
16158
  shlibpath_overrides_runpath=no
 
16159
  hardcode_into_libs=yes
 
16160
  dynamic_linker='GNU ld.so'
 
16161
  ;;
 
16162
 
 
16163
freebsd*)
 
16164
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16165
  version_type=freebsd-$objformat
 
16166
  case $version_type in
 
16167
    freebsd-elf*)
 
16168
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16169
      need_version=no
 
16170
      need_lib_prefix=no
 
16171
      ;;
 
16172
    freebsd-*)
 
16173
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16174
      need_version=yes
 
16175
      ;;
 
16176
  esac
 
16177
  shlibpath_var=LD_LIBRARY_PATH
 
16178
  case $host_os in
 
16179
  freebsd2*)
 
16180
    shlibpath_overrides_runpath=yes
 
16181
    ;;
 
16182
  freebsd3.01* | freebsdelf3.01*)
 
16183
    shlibpath_overrides_runpath=yes
 
16184
    hardcode_into_libs=yes
 
16185
    ;;
 
16186
  *) # from 3.2 on
 
16187
    shlibpath_overrides_runpath=no
 
16188
    hardcode_into_libs=yes
 
16189
    ;;
 
16190
  esac
 
16191
  ;;
 
16192
 
 
16193
gnu*)
 
16194
  version_type=linux
 
16195
  need_lib_prefix=no
 
16196
  need_version=no
 
16197
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16198
  soname_spec='${libname}${release}${shared_ext}$major'
 
16199
  shlibpath_var=LD_LIBRARY_PATH
 
16200
  hardcode_into_libs=yes
 
16201
  ;;
 
16202
 
 
16203
hpux9* | hpux10* | hpux11*)
 
16204
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16205
  # link against other versions.
 
16206
  version_type=sunos
 
16207
  need_lib_prefix=no
 
16208
  need_version=no
 
16209
  case "$host_cpu" in
 
16210
  ia64*)
 
16211
    shrext_cmds='.so'
 
16212
    hardcode_into_libs=yes
 
16213
    dynamic_linker="$host_os dld.so"
 
16214
    shlibpath_var=LD_LIBRARY_PATH
 
16215
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16216
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16217
    soname_spec='${libname}${release}${shared_ext}$major'
 
16218
    if test "X$HPUX_IA64_MODE" = X32; then
 
16219
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16220
    else
 
16221
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16222
    fi
 
16223
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16224
    ;;
 
16225
   hppa*64*)
 
16226
     shrext_cmds='.sl'
 
16227
     hardcode_into_libs=yes
 
16228
     dynamic_linker="$host_os dld.sl"
 
16229
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16230
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16231
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16232
     soname_spec='${libname}${release}${shared_ext}$major'
 
16233
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16234
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16235
     ;;
 
16236
   *)
 
16237
    shrext_cmds='.sl'
 
16238
    dynamic_linker="$host_os dld.sl"
 
16239
    shlibpath_var=SHLIB_PATH
 
16240
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16241
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16242
    soname_spec='${libname}${release}${shared_ext}$major'
 
16243
    ;;
 
16244
  esac
 
16245
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16246
  postinstall_cmds='chmod 555 $lib'
 
16247
  ;;
 
16248
 
 
16249
irix5* | irix6* | nonstopux*)
 
16250
  case $host_os in
 
16251
    nonstopux*) version_type=nonstopux ;;
 
16252
    *)
 
16253
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16254
                version_type=linux
 
16255
        else
 
16256
                version_type=irix
 
16257
        fi ;;
 
16258
  esac
 
16259
  need_lib_prefix=no
 
16260
  need_version=no
 
16261
  soname_spec='${libname}${release}${shared_ext}$major'
 
16262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16263
  case $host_os in
 
16264
  irix5* | nonstopux*)
 
16265
    libsuff= shlibsuff=
 
16266
    ;;
 
16267
  *)
 
16268
    case $LD in # libtool.m4 will add one of these switches to LD
 
16269
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16270
      libsuff= shlibsuff= libmagic=32-bit;;
 
16271
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16272
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16273
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16274
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16275
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16276
    esac
 
16277
    ;;
 
16278
  esac
 
16279
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16280
  shlibpath_overrides_runpath=no
 
16281
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16282
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16283
  hardcode_into_libs=yes
 
16284
  ;;
 
16285
 
 
16286
# No shared lib support for Linux oldld, aout, or coff.
 
16287
linux*oldld* | linux*aout* | linux*coff*)
 
16288
  dynamic_linker=no
 
16289
  ;;
 
16290
 
 
16291
# This must be Linux ELF.
 
16292
linux*)
 
16293
  version_type=linux
 
16294
  need_lib_prefix=no
 
16295
  need_version=no
 
16296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16297
  soname_spec='${libname}${release}${shared_ext}$major'
 
16298
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16299
  shlibpath_var=LD_LIBRARY_PATH
 
16300
  shlibpath_overrides_runpath=no
 
16301
  # This implies no fast_install, which is unacceptable.
 
16302
  # Some rework will be needed to allow for fast_install
 
16303
  # before this can be enabled.
 
16304
  hardcode_into_libs=yes
 
16305
 
 
16306
  # Append ld.so.conf contents to the search path
 
16307
  if test -f /etc/ld.so.conf; then
 
16308
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
16309
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16310
  fi
 
16311
 
 
16312
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16313
  # powerpc, because MkLinux only supported shared libraries with the
 
16314
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16315
  # most powerpc-linux boxes support dynamic linking these days and
 
16316
  # people can always --disable-shared, the test was removed, and we
 
16317
  # assume the GNU/Linux dynamic linker is in use.
 
16318
  dynamic_linker='GNU/Linux ld.so'
 
16319
  ;;
 
16320
 
 
16321
knetbsd*-gnu)
 
16322
  version_type=linux
 
16323
  need_lib_prefix=no
 
16324
  need_version=no
 
16325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16326
  soname_spec='${libname}${release}${shared_ext}$major'
 
16327
  shlibpath_var=LD_LIBRARY_PATH
 
16328
  shlibpath_overrides_runpath=no
 
16329
  hardcode_into_libs=yes
 
16330
  dynamic_linker='GNU ld.so'
 
16331
  ;;
 
16332
 
 
16333
netbsd*)
 
16334
  version_type=sunos
 
16335
  need_lib_prefix=no
 
16336
  need_version=no
 
16337
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16338
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16339
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16340
    dynamic_linker='NetBSD (a.out) ld.so'
 
16341
  else
 
16342
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16343
    soname_spec='${libname}${release}${shared_ext}$major'
 
16344
    dynamic_linker='NetBSD ld.elf_so'
 
16345
  fi
 
16346
  shlibpath_var=LD_LIBRARY_PATH
 
16347
  shlibpath_overrides_runpath=yes
 
16348
  hardcode_into_libs=yes
 
16349
  ;;
 
16350
 
 
16351
newsos6)
 
16352
  version_type=linux
 
16353
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16354
  shlibpath_var=LD_LIBRARY_PATH
 
16355
  shlibpath_overrides_runpath=yes
 
16356
  ;;
 
16357
 
 
16358
nto-qnx*)
 
16359
  version_type=linux
 
16360
  need_lib_prefix=no
 
16361
  need_version=no
 
16362
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16363
  soname_spec='${libname}${release}${shared_ext}$major'
 
16364
  shlibpath_var=LD_LIBRARY_PATH
 
16365
  shlibpath_overrides_runpath=yes
 
16366
  ;;
 
16367
 
 
16368
openbsd*)
 
16369
  version_type=sunos
 
16370
  need_lib_prefix=no
 
16371
  need_version=no
 
16372
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16373
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16374
  shlibpath_var=LD_LIBRARY_PATH
 
16375
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16376
    case $host_os in
 
16377
      openbsd2.[89] | openbsd2.[89].*)
 
16378
        shlibpath_overrides_runpath=no
 
16379
        ;;
 
16380
      *)
 
16381
        shlibpath_overrides_runpath=yes
 
16382
        ;;
 
16383
      esac
 
16384
  else
 
16385
    shlibpath_overrides_runpath=yes
 
16386
  fi
 
16387
  ;;
 
16388
 
 
16389
os2*)
 
16390
  libname_spec='$name'
 
16391
  shrext_cmds=".dll"
 
16392
  need_lib_prefix=no
 
16393
  library_names_spec='$libname${shared_ext} $libname.a'
 
16394
  dynamic_linker='OS/2 ld.exe'
 
16395
  shlibpath_var=LIBPATH
 
16396
  ;;
 
16397
 
 
16398
osf3* | osf4* | osf5*)
 
16399
  version_type=osf
 
16400
  need_lib_prefix=no
 
16401
  need_version=no
 
16402
  soname_spec='${libname}${release}${shared_ext}$major'
 
16403
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16404
  shlibpath_var=LD_LIBRARY_PATH
 
16405
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16406
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16407
  ;;
 
16408
 
 
16409
sco3.2v5*)
 
16410
  version_type=osf
 
16411
  soname_spec='${libname}${release}${shared_ext}$major'
 
16412
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16413
  shlibpath_var=LD_LIBRARY_PATH
 
16414
  ;;
 
16415
 
 
16416
solaris*)
 
16417
  version_type=linux
 
16418
  need_lib_prefix=no
 
16419
  need_version=no
 
16420
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16421
  soname_spec='${libname}${release}${shared_ext}$major'
 
16422
  shlibpath_var=LD_LIBRARY_PATH
 
16423
  shlibpath_overrides_runpath=yes
 
16424
  hardcode_into_libs=yes
 
16425
  # ldd complains unless libraries are executable
 
16426
  postinstall_cmds='chmod +x $lib'
 
16427
  ;;
 
16428
 
 
16429
sunos4*)
 
16430
  version_type=sunos
 
16431
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16432
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16433
  shlibpath_var=LD_LIBRARY_PATH
 
16434
  shlibpath_overrides_runpath=yes
 
16435
  if test "$with_gnu_ld" = yes; then
 
16436
    need_lib_prefix=no
 
16437
  fi
 
16438
  need_version=yes
 
16439
  ;;
 
16440
 
 
16441
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16442
  version_type=linux
 
16443
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16444
  soname_spec='${libname}${release}${shared_ext}$major'
 
16445
  shlibpath_var=LD_LIBRARY_PATH
 
16446
  case $host_vendor in
 
16447
    sni)
 
16448
      shlibpath_overrides_runpath=no
 
16449
      need_lib_prefix=no
 
16450
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16451
      runpath_var=LD_RUN_PATH
 
16452
      ;;
 
16453
    siemens)
 
16454
      need_lib_prefix=no
 
16455
      ;;
 
16456
    motorola)
 
16457
      need_lib_prefix=no
 
16458
      need_version=no
 
16459
      shlibpath_overrides_runpath=no
 
16460
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16461
      ;;
 
16462
  esac
 
16463
  ;;
 
16464
 
 
16465
sysv4*MP*)
 
16466
  if test -d /usr/nec ;then
 
16467
    version_type=linux
 
16468
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16469
    soname_spec='$libname${shared_ext}.$major'
 
16470
    shlibpath_var=LD_LIBRARY_PATH
 
16471
  fi
 
16472
  ;;
 
16473
 
 
16474
uts4*)
 
16475
  version_type=linux
 
16476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16477
  soname_spec='${libname}${release}${shared_ext}$major'
 
16478
  shlibpath_var=LD_LIBRARY_PATH
 
16479
  ;;
 
16480
 
 
16481
*)
 
16482
  dynamic_linker=no
 
16483
  ;;
 
16484
esac
 
16485
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16486
echo "${ECHO_T}$dynamic_linker" >&6
 
16487
test "$dynamic_linker" = no && can_build_shared=no
 
16488
 
 
16489
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16490
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16491
hardcode_action_F77=
 
16492
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16493
   test -n "$runpath_var_F77" || \
 
16494
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16495
 
 
16496
  # We can hardcode non-existant directories.
 
16497
  if test "$hardcode_direct_F77" != no &&
 
16498
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16499
     # have to relink, otherwise we might link with an installed library
 
16500
     # when we should be linking with a yet-to-be-installed one
 
16501
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16502
     test "$hardcode_minus_L_F77" != no; then
 
16503
    # Linking always hardcodes the temporary library directory.
 
16504
    hardcode_action_F77=relink
 
16505
  else
 
16506
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16507
    hardcode_action_F77=immediate
 
16508
  fi
 
16509
else
 
16510
  # We cannot hardcode anything, or else we can only hardcode existing
 
16511
  # directories.
 
16512
  hardcode_action_F77=unsupported
 
16513
fi
 
16514
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16515
echo "${ECHO_T}$hardcode_action_F77" >&6
 
16516
 
 
16517
if test "$hardcode_action_F77" = relink; then
 
16518
  # Fast installation is not supported
 
16519
  enable_fast_install=no
 
16520
elif test "$shlibpath_overrides_runpath" = yes ||
 
16521
     test "$enable_shared" = no; then
 
16522
  # Fast installation is not necessary
 
16523
  enable_fast_install=needless
 
16524
fi
 
16525
 
 
16526
striplib=
 
16527
old_striplib=
 
16528
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16529
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16530
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16531
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16532
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16533
  echo "$as_me:$LINENO: result: yes" >&5
 
16534
echo "${ECHO_T}yes" >&6
 
16535
else
 
16536
# FIXME - insert some real tests, host_os isn't really good enough
 
16537
  case $host_os in
 
16538
   darwin*)
 
16539
       if test -n "$STRIP" ; then
 
16540
         striplib="$STRIP -x"
 
16541
         echo "$as_me:$LINENO: result: yes" >&5
 
16542
echo "${ECHO_T}yes" >&6
 
16543
       else
 
16544
  echo "$as_me:$LINENO: result: no" >&5
 
16545
echo "${ECHO_T}no" >&6
 
16546
fi
 
16547
       ;;
 
16548
   *)
 
16549
  echo "$as_me:$LINENO: result: no" >&5
 
16550
echo "${ECHO_T}no" >&6
 
16551
    ;;
 
16552
  esac
 
16553
fi
 
16554
 
 
16555
 
 
16556
 
 
16557
# The else clause should only fire when bootstrapping the
 
16558
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16559
# with your package, and you will get complaints that there are
 
16560
# no rules to generate ltmain.sh.
 
16561
if test -f "$ltmain"; then
 
16562
  # See if we are running on zsh, and set the options which allow our commands through
 
16563
  # without removal of \ escapes.
 
16564
  if test -n "${ZSH_VERSION+set}" ; then
 
16565
    setopt NO_GLOB_SUBST
 
16566
  fi
 
16567
  # Now quote all the things that may contain metacharacters while being
 
16568
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16569
  # variables and quote the copies for generation of the libtool script.
 
16570
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
16571
    SED SHELL STRIP \
 
16572
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16573
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16574
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16575
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16576
    lt_cv_sys_global_symbol_to_c_name_address \
 
16577
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16578
    old_postinstall_cmds old_postuninstall_cmds \
 
16579
    compiler_F77 \
 
16580
    CC_F77 \
 
16581
    LD_F77 \
 
16582
    lt_prog_compiler_wl_F77 \
 
16583
    lt_prog_compiler_pic_F77 \
 
16584
    lt_prog_compiler_static_F77 \
 
16585
    lt_prog_compiler_no_builtin_flag_F77 \
 
16586
    export_dynamic_flag_spec_F77 \
 
16587
    thread_safe_flag_spec_F77 \
 
16588
    whole_archive_flag_spec_F77 \
 
16589
    enable_shared_with_static_runtimes_F77 \
 
16590
    old_archive_cmds_F77 \
 
16591
    old_archive_from_new_cmds_F77 \
 
16592
    predep_objects_F77 \
 
16593
    postdep_objects_F77 \
 
16594
    predeps_F77 \
 
16595
    postdeps_F77 \
 
16596
    compiler_lib_search_path_F77 \
 
16597
    archive_cmds_F77 \
 
16598
    archive_expsym_cmds_F77 \
 
16599
    postinstall_cmds_F77 \
 
16600
    postuninstall_cmds_F77 \
 
16601
    old_archive_from_expsyms_cmds_F77 \
 
16602
    allow_undefined_flag_F77 \
 
16603
    no_undefined_flag_F77 \
 
16604
    export_symbols_cmds_F77 \
 
16605
    hardcode_libdir_flag_spec_F77 \
 
16606
    hardcode_libdir_flag_spec_ld_F77 \
 
16607
    hardcode_libdir_separator_F77 \
 
16608
    hardcode_automatic_F77 \
 
16609
    module_cmds_F77 \
 
16610
    module_expsym_cmds_F77 \
 
16611
    lt_cv_prog_compiler_c_o_F77 \
 
16612
    exclude_expsyms_F77 \
 
16613
    include_expsyms_F77; do
 
16614
 
 
16615
    case $var in
 
16616
    old_archive_cmds_F77 | \
 
16617
    old_archive_from_new_cmds_F77 | \
 
16618
    archive_cmds_F77 | \
 
16619
    archive_expsym_cmds_F77 | \
 
16620
    module_cmds_F77 | \
 
16621
    module_expsym_cmds_F77 | \
 
16622
    old_archive_from_expsyms_cmds_F77 | \
 
16623
    export_symbols_cmds_F77 | \
 
16624
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16625
    postinstall_cmds | postuninstall_cmds | \
 
16626
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16627
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16628
      # Double-quote double-evaled strings.
 
16629
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16630
      ;;
 
16631
    *)
 
16632
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16633
      ;;
 
16634
    esac
 
16635
  done
 
16636
 
 
16637
  case $lt_echo in
 
16638
  *'\$0 --fallback-echo"')
 
16639
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16640
    ;;
 
16641
  esac
 
16642
 
 
16643
cfgfile="$ofile"
 
16644
 
 
16645
  cat <<__EOF__ >> "$cfgfile"
 
16646
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16647
 
 
16648
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16649
 
 
16650
# Shell to use when invoking shell scripts.
 
16651
SHELL=$lt_SHELL
 
16652
 
 
16653
# Whether or not to build shared libraries.
 
16654
build_libtool_libs=$enable_shared
 
16655
 
 
16656
# Whether or not to build static libraries.
 
16657
build_old_libs=$enable_static
 
16658
 
 
16659
# Whether or not to add -lc for building shared libraries.
 
16660
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16661
 
 
16662
# Whether or not to disallow shared libs when runtime libs are static
 
16663
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16664
 
 
16665
# Whether or not to optimize for fast installation.
 
16666
fast_install=$enable_fast_install
 
16667
 
 
16668
# The host system.
 
16669
host_alias=$host_alias
 
16670
host=$host
 
16671
 
 
16672
# An echo program that does not interpret backslashes.
 
16673
echo=$lt_echo
 
16674
 
 
16675
# The archiver.
 
16676
AR=$lt_AR
 
16677
AR_FLAGS=$lt_AR_FLAGS
 
16678
 
 
16679
# A C compiler.
 
16680
LTCC=$lt_LTCC
 
16681
 
 
16682
# A language-specific compiler.
 
16683
CC=$lt_compiler_F77
 
16684
 
 
16685
# Is the compiler the GNU C compiler?
 
16686
with_gcc=$GCC_F77
 
16687
 
 
16688
# An ERE matcher.
 
16689
EGREP=$lt_EGREP
 
16690
 
 
16691
# The linker used to build libraries.
 
16692
LD=$lt_LD_F77
 
16693
 
 
16694
# Whether we need hard or soft links.
 
16695
LN_S=$lt_LN_S
 
16696
 
 
16697
# A BSD-compatible nm program.
 
16698
NM=$lt_NM
 
16699
 
 
16700
# A symbol stripping program
 
16701
STRIP=$lt_STRIP
 
16702
 
 
16703
# Used to examine libraries when file_magic_cmd begins "file"
 
16704
MAGIC_CMD=$MAGIC_CMD
 
16705
 
 
16706
# Used on cygwin: DLL creation program.
 
16707
DLLTOOL="$DLLTOOL"
 
16708
 
 
16709
# Used on cygwin: object dumper.
 
16710
OBJDUMP="$OBJDUMP"
 
16711
 
 
16712
# Used on cygwin: assembler.
 
16713
AS="$AS"
 
16714
 
 
16715
# The name of the directory that contains temporary libtool files.
 
16716
objdir=$objdir
 
16717
 
 
16718
# How to create reloadable object files.
 
16719
reload_flag=$lt_reload_flag
 
16720
reload_cmds=$lt_reload_cmds
 
16721
 
 
16722
# How to pass a linker flag through the compiler.
 
16723
wl=$lt_lt_prog_compiler_wl_F77
 
16724
 
 
16725
# Object file suffix (normally "o").
 
16726
objext="$ac_objext"
 
16727
 
 
16728
# Old archive suffix (normally "a").
 
16729
libext="$libext"
 
16730
 
 
16731
# Shared library suffix (normally ".so").
 
16732
shrext_cmds='$shrext_cmds'
 
16733
 
 
16734
# Executable file suffix (normally "").
 
16735
exeext="$exeext"
 
16736
 
 
16737
# Additional compiler flags for building library objects.
 
16738
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16739
pic_mode=$pic_mode
 
16740
 
 
16741
# What is the maximum length of a command?
 
16742
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16743
 
 
16744
# Does compiler simultaneously support -c and -o options?
 
16745
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16746
 
 
16747
# Must we lock files when doing compilation ?
 
16748
need_locks=$lt_need_locks
 
16749
 
 
16750
# Do we need the lib prefix for modules?
 
16751
need_lib_prefix=$need_lib_prefix
 
16752
 
 
16753
# Do we need a version for libraries?
 
16754
need_version=$need_version
 
16755
 
 
16756
# Whether dlopen is supported.
 
16757
dlopen_support=$enable_dlopen
 
16758
 
 
16759
# Whether dlopen of programs is supported.
 
16760
dlopen_self=$enable_dlopen_self
 
16761
 
 
16762
# Whether dlopen of statically linked programs is supported.
 
16763
dlopen_self_static=$enable_dlopen_self_static
 
16764
 
 
16765
# Compiler flag to prevent dynamic linking.
 
16766
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16767
 
 
16768
# Compiler flag to turn off builtin functions.
 
16769
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16770
 
 
16771
# Compiler flag to allow reflexive dlopens.
 
16772
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16773
 
 
16774
# Compiler flag to generate shared objects directly from archives.
 
16775
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16776
 
 
16777
# Compiler flag to generate thread-safe objects.
 
16778
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16779
 
 
16780
# Library versioning type.
 
16781
version_type=$version_type
 
16782
 
 
16783
# Format of library name prefix.
 
16784
libname_spec=$lt_libname_spec
 
16785
 
 
16786
# List of archive names.  First name is the real one, the rest are links.
 
16787
# The last name is the one that the linker finds with -lNAME.
 
16788
library_names_spec=$lt_library_names_spec
 
16789
 
 
16790
# The coded name of the library, if different from the real name.
 
16791
soname_spec=$lt_soname_spec
 
16792
 
 
16793
# Commands used to build and install an old-style archive.
 
16794
RANLIB=$lt_RANLIB
 
16795
old_archive_cmds=$lt_old_archive_cmds_F77
 
16796
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16797
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16798
 
 
16799
# Create an old-style archive from a shared archive.
 
16800
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16801
 
 
16802
# Create a temporary old-style archive to link instead of a shared archive.
 
16803
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16804
 
 
16805
# Commands used to build and install a shared archive.
 
16806
archive_cmds=$lt_archive_cmds_F77
 
16807
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16808
postinstall_cmds=$lt_postinstall_cmds
 
16809
postuninstall_cmds=$lt_postuninstall_cmds
 
16810
 
 
16811
# Commands used to build a loadable module (assumed same as above if empty)
 
16812
module_cmds=$lt_module_cmds_F77
 
16813
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16814
 
 
16815
# Commands to strip libraries.
 
16816
old_striplib=$lt_old_striplib
 
16817
striplib=$lt_striplib
 
16818
 
 
16819
# Dependencies to place before the objects being linked to create a
 
16820
# shared library.
 
16821
predep_objects=$lt_predep_objects_F77
 
16822
 
 
16823
# Dependencies to place after the objects being linked to create a
 
16824
# shared library.
 
16825
postdep_objects=$lt_postdep_objects_F77
 
16826
 
 
16827
# Dependencies to place before the objects being linked to create a
 
16828
# shared library.
 
16829
predeps=$lt_predeps_F77
 
16830
 
 
16831
# Dependencies to place after the objects being linked to create a
 
16832
# shared library.
 
16833
postdeps=$lt_postdeps_F77
 
16834
 
 
16835
# The library search path used internally by the compiler when linking
 
16836
# a shared library.
 
16837
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16838
 
 
16839
# Method to check whether dependent libraries are shared objects.
 
16840
deplibs_check_method=$lt_deplibs_check_method
 
16841
 
 
16842
# Command to use when deplibs_check_method == file_magic.
 
16843
file_magic_cmd=$lt_file_magic_cmd
 
16844
 
 
16845
# Flag that allows shared libraries with undefined symbols to be built.
 
16846
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16847
 
 
16848
# Flag that forces no undefined symbols.
 
16849
no_undefined_flag=$lt_no_undefined_flag_F77
 
16850
 
 
16851
# Commands used to finish a libtool library installation in a directory.
 
16852
finish_cmds=$lt_finish_cmds
 
16853
 
 
16854
# Same as above, but a single script fragment to be evaled but not shown.
 
16855
finish_eval=$lt_finish_eval
 
16856
 
 
16857
# Take the output of nm and produce a listing of raw symbols and C names.
 
16858
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16859
 
 
16860
# Transform the output of nm in a proper C declaration
 
16861
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16862
 
 
16863
# Transform the output of nm in a C name address pair
 
16864
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16865
 
 
16866
# This is the shared library runtime path variable.
 
16867
runpath_var=$runpath_var
 
16868
 
 
16869
# This is the shared library path variable.
 
16870
shlibpath_var=$shlibpath_var
 
16871
 
 
16872
# Is shlibpath searched before the hard-coded library search path?
 
16873
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16874
 
 
16875
# How to hardcode a shared library path into an executable.
 
16876
hardcode_action=$hardcode_action_F77
 
16877
 
 
16878
# Whether we should hardcode library paths into libraries.
 
16879
hardcode_into_libs=$hardcode_into_libs
 
16880
 
 
16881
# Flag to hardcode \$libdir into a binary during linking.
 
16882
# This must work even if \$libdir does not exist.
 
16883
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16884
 
 
16885
# If ld is used when linking, flag to hardcode \$libdir into
 
16886
# a binary during linking. This must work even if \$libdir does
 
16887
# not exist.
 
16888
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16889
 
 
16890
# Whether we need a single -rpath flag with a separated argument.
 
16891
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16892
 
 
16893
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16894
# resulting binary.
 
16895
hardcode_direct=$hardcode_direct_F77
 
16896
 
 
16897
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16898
# resulting binary.
 
16899
hardcode_minus_L=$hardcode_minus_L_F77
 
16900
 
 
16901
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16902
# the resulting binary.
 
16903
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16904
 
 
16905
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16906
# and all subsequent libraries and executables linked against it.
 
16907
hardcode_automatic=$hardcode_automatic_F77
 
16908
 
 
16909
# Variables whose values should be saved in libtool wrapper scripts and
 
16910
# restored at relink time.
 
16911
variables_saved_for_relink="$variables_saved_for_relink"
 
16912
 
 
16913
# Whether libtool must link a program against all its dependency libraries.
 
16914
link_all_deplibs=$link_all_deplibs_F77
 
16915
 
 
16916
# Compile-time system search path for libraries
 
16917
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16918
 
 
16919
# Run-time system search path for libraries
 
16920
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16921
 
 
16922
# Fix the shell variable \$srcfile for the compiler.
 
16923
fix_srcfile_path="$fix_srcfile_path_F77"
 
16924
 
 
16925
# Set to yes if exported symbols are required.
 
16926
always_export_symbols=$always_export_symbols_F77
 
16927
 
 
16928
# The commands to list exported symbols.
 
16929
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16930
 
 
16931
# The commands to extract the exported symbol list from a shared archive.
 
16932
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16933
 
 
16934
# Symbols that should not be listed in the preloaded symbols.
 
16935
exclude_expsyms=$lt_exclude_expsyms_F77
 
16936
 
 
16937
# Symbols that must always be exported.
 
16938
include_expsyms=$lt_include_expsyms_F77
 
16939
 
 
16940
# ### END LIBTOOL TAG CONFIG: $tagname
 
16941
 
 
16942
__EOF__
 
16943
 
 
16944
 
 
16945
else
 
16946
  # If there is no Makefile yet, we rely on a make rule to execute
 
16947
  # `config.status --recheck' to rerun these tests and create the
 
16948
  # libtool script then.
 
16949
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16950
  if test -f "$ltmain_in"; then
 
16951
    test -f Makefile && make "$ltmain"
 
16952
  fi
 
16953
fi
 
16954
 
 
16955
 
 
16956
ac_ext=c
 
16957
ac_cpp='$CPP $CPPFLAGS'
 
16958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16961
 
 
16962
CC="$lt_save_CC"
 
16963
 
 
16964
        else
 
16965
          tagname=""
 
16966
        fi
 
16967
        ;;
 
16968
 
 
16969
      GCJ)
 
16970
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16971
 
 
16972
 
 
16973
 
 
16974
# Source file extension for Java test sources.
 
16975
ac_ext=java
 
16976
 
 
16977
# Object file extension for compiled Java test sources.
 
16978
objext=o
 
16979
objext_GCJ=$objext
 
16980
 
 
16981
# Code to be used in simple compile tests
 
16982
lt_simple_compile_test_code="class foo {}\n"
 
16983
 
 
16984
# Code to be used in simple link tests
 
16985
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16986
 
 
16987
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16988
 
 
16989
# If no C compiler was specified, use CC.
 
16990
LTCC=${LTCC-"$CC"}
 
16991
 
 
16992
# Allow CC to be a program name with arguments.
 
16993
compiler=$CC
 
16994
 
 
16995
 
 
16996
# Allow CC to be a program name with arguments.
 
16997
lt_save_CC="$CC"
 
16998
CC=${GCJ-"gcj"}
 
16999
compiler=$CC
 
17000
compiler_GCJ=$CC
 
17001
 
 
17002
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17003
archive_cmds_need_lc_GCJ=no
 
17004
 
 
17005
## CAVEAT EMPTOR:
 
17006
## There is no encapsulation within the following macros, do not change
 
17007
## the running order or otherwise move them around unless you know exactly
 
17008
## what you are doing...
 
17009
 
 
17010
lt_prog_compiler_no_builtin_flag_GCJ=
 
17011
 
 
17012
if test "$GCC" = yes; then
 
17013
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17014
 
 
17015
 
 
17016
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17017
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
17018
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17019
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17020
else
 
17021
  lt_cv_prog_compiler_rtti_exceptions=no
 
17022
  ac_outfile=conftest.$ac_objext
 
17023
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17024
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
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
   # The option is referenced via a variable to avoid confusing sed.
 
17030
   lt_compile=`echo "$ac_compile" | $SED \
 
17031
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17032
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17033
   -e 's:$: $lt_compiler_flag:'`
 
17034
   (eval echo "\"\$as_me:17034: $lt_compile\"" >&5)
 
17035
   (eval "$lt_compile" 2>conftest.err)
 
17036
   ac_status=$?
 
17037
   cat conftest.err >&5
 
17038
   echo "$as_me:17038: \$? = $ac_status" >&5
 
17039
   if (exit $ac_status) && test -s "$ac_outfile"; 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 conftest.err; then
 
17043
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17044
     fi
 
17045
   fi
 
17046
   $rm conftest*
 
17047
 
 
17048
fi
 
17049
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17050
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
17051
 
 
17052
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17053
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17054
else
 
17055
    :
 
17056
fi
 
17057
 
 
17058
fi
 
17059
 
 
17060
lt_prog_compiler_wl_GCJ=
 
17061
lt_prog_compiler_pic_GCJ=
 
17062
lt_prog_compiler_static_GCJ=
 
17063
 
 
17064
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17065
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
17066
 
 
17067
  if test "$GCC" = yes; then
 
17068
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17069
    lt_prog_compiler_static_GCJ='-static'
 
17070
 
 
17071
    case $host_os in
 
17072
      aix*)
 
17073
      # All AIX code is PIC.
 
17074
      if test "$host_cpu" = ia64; then
 
17075
        # AIX 5 now supports IA64 processor
 
17076
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17077
      fi
 
17078
      ;;
 
17079
 
 
17080
    amigaos*)
 
17081
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17082
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17083
      # like `-m68040'.
 
17084
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17085
      ;;
 
17086
 
 
17087
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17088
      # PIC is the default for these OSes.
 
17089
      ;;
 
17090
 
 
17091
    mingw* | pw32* | os2*)
 
17092
      # This hack is so that the source file can tell whether it is being
 
17093
      # built for inclusion in a dll (and should export symbols for example).
 
17094
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17095
      ;;
 
17096
 
 
17097
    darwin* | rhapsody*)
 
17098
      # PIC is the default on this platform
 
17099
      # Common symbols not allowed in MH_DYLIB files
 
17100
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17101
      ;;
 
17102
 
 
17103
    msdosdjgpp*)
 
17104
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17105
      # on systems that don't support them.
 
17106
      lt_prog_compiler_can_build_shared_GCJ=no
 
17107
      enable_shared=no
 
17108
      ;;
 
17109
 
 
17110
    sysv4*MP*)
 
17111
      if test -d /usr/nec; then
 
17112
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17113
      fi
 
17114
      ;;
 
17115
 
 
17116
    hpux*)
 
17117
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17118
      # not for PA HP-UX.
 
17119
      case "$host_cpu" in
 
17120
      hppa*64*|ia64*)
 
17121
        # +Z the default
 
17122
        ;;
 
17123
      *)
 
17124
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17125
        ;;
 
17126
      esac
 
17127
      ;;
 
17128
 
 
17129
    *)
 
17130
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17131
      ;;
 
17132
    esac
 
17133
  else
 
17134
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17135
    case $host_os in
 
17136
    aix*)
 
17137
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17138
      if test "$host_cpu" = ia64; then
 
17139
        # AIX 5 now supports IA64 processor
 
17140
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17141
      else
 
17142
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17143
      fi
 
17144
      ;;
 
17145
      darwin*)
 
17146
        # PIC is the default on this platform
 
17147
        # Common symbols not allowed in MH_DYLIB files
 
17148
       case "$cc_basename" in
 
17149
         xlc*)
 
17150
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17151
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17152
         ;;
 
17153
       esac
 
17154
       ;;
 
17155
 
 
17156
    mingw* | pw32* | os2*)
 
17157
      # This hack is so that the source file can tell whether it is being
 
17158
      # built for inclusion in a dll (and should export symbols for example).
 
17159
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17160
      ;;
 
17161
 
 
17162
    hpux9* | hpux10* | hpux11*)
 
17163
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17164
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17165
      # not for PA HP-UX.
 
17166
      case "$host_cpu" in
 
17167
      hppa*64*|ia64*)
 
17168
        # +Z the default
 
17169
        ;;
 
17170
      *)
 
17171
        lt_prog_compiler_pic_GCJ='+Z'
 
17172
        ;;
 
17173
      esac
 
17174
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17175
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17176
      ;;
 
17177
 
 
17178
    irix5* | irix6* | nonstopux*)
 
17179
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17180
      # PIC (with -KPIC) is the default.
 
17181
      lt_prog_compiler_static_GCJ='-non_shared'
 
17182
      ;;
 
17183
 
 
17184
    newsos6)
 
17185
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17186
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17187
      ;;
 
17188
 
 
17189
    linux*)
 
17190
      case $CC in
 
17191
      icc* | ecc*)
 
17192
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17193
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17194
        lt_prog_compiler_static_GCJ='-static'
 
17195
        ;;
 
17196
      ccc*)
 
17197
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17198
        # All Alpha code is PIC.
 
17199
        lt_prog_compiler_static_GCJ='-non_shared'
 
17200
        ;;
 
17201
      esac
 
17202
      ;;
 
17203
 
 
17204
    osf3* | osf4* | osf5*)
 
17205
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17206
      # All OSF/1 code is PIC.
 
17207
      lt_prog_compiler_static_GCJ='-non_shared'
 
17208
      ;;
 
17209
 
 
17210
    sco3.2v5*)
 
17211
      lt_prog_compiler_pic_GCJ='-Kpic'
 
17212
      lt_prog_compiler_static_GCJ='-dn'
 
17213
      ;;
 
17214
 
 
17215
    solaris*)
 
17216
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17217
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17218
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17219
      ;;
 
17220
 
 
17221
    sunos4*)
 
17222
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17223
      lt_prog_compiler_pic_GCJ='-PIC'
 
17224
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17225
      ;;
 
17226
 
 
17227
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17228
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17229
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17230
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17231
      ;;
 
17232
 
 
17233
    sysv4*MP*)
 
17234
      if test -d /usr/nec ;then
 
17235
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17236
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17237
      fi
 
17238
      ;;
 
17239
 
 
17240
    uts4*)
 
17241
      lt_prog_compiler_pic_GCJ='-pic'
 
17242
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17243
      ;;
 
17244
 
 
17245
    *)
 
17246
      lt_prog_compiler_can_build_shared_GCJ=no
 
17247
      ;;
 
17248
    esac
 
17249
  fi
 
17250
 
 
17251
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17252
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
17253
 
 
17254
#
 
17255
# Check to make sure the PIC flag actually works.
 
17256
#
 
17257
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17258
 
 
17259
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17260
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
17261
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
17262
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17263
else
 
17264
  lt_prog_compiler_pic_works_GCJ=no
 
17265
  ac_outfile=conftest.$ac_objext
 
17266
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17267
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17268
   # Insert the option either (1) after the last *FLAGS variable, or
 
17269
   # (2) before a word containing "conftest.", or (3) at the end.
 
17270
   # Note that $ac_compile itself does not contain backslashes and begins
 
17271
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17272
   # The option is referenced via a variable to avoid confusing sed.
 
17273
   lt_compile=`echo "$ac_compile" | $SED \
 
17274
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17275
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17276
   -e 's:$: $lt_compiler_flag:'`
 
17277
   (eval echo "\"\$as_me:17277: $lt_compile\"" >&5)
 
17278
   (eval "$lt_compile" 2>conftest.err)
 
17279
   ac_status=$?
 
17280
   cat conftest.err >&5
 
17281
   echo "$as_me:17281: \$? = $ac_status" >&5
 
17282
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17283
     # The compiler can only warn and ignore the option if not recognized
 
17284
     # So say no if there are warnings
 
17285
     if test ! -s conftest.err; then
 
17286
       lt_prog_compiler_pic_works_GCJ=yes
 
17287
     fi
 
17288
   fi
 
17289
   $rm conftest*
 
17290
 
 
17291
fi
 
17292
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
17293
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
17294
 
 
17295
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
17296
    case $lt_prog_compiler_pic_GCJ in
 
17297
     "" | " "*) ;;
 
17298
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17299
     esac
 
17300
else
 
17301
    lt_prog_compiler_pic_GCJ=
 
17302
     lt_prog_compiler_can_build_shared_GCJ=no
 
17303
fi
 
17304
 
 
17305
fi
 
17306
case "$host_os" in
 
17307
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17308
  *djgpp*)
 
17309
    lt_prog_compiler_pic_GCJ=
 
17310
    ;;
 
17311
  *)
 
17312
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17313
    ;;
 
17314
esac
 
17315
 
 
17316
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17317
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
17318
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17319
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17320
else
 
17321
  lt_cv_prog_compiler_c_o_GCJ=no
 
17322
   $rm -r conftest 2>/dev/null
 
17323
   mkdir conftest
 
17324
   cd conftest
 
17325
   mkdir out
 
17326
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17327
 
 
17328
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17329
   # Insert the option either (1) after the last *FLAGS variable, or
 
17330
   # (2) before a word containing "conftest.", or (3) at the end.
 
17331
   # Note that $ac_compile itself does not contain backslashes and begins
 
17332
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17333
   lt_compile=`echo "$ac_compile" | $SED \
 
17334
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17335
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17336
   -e 's:$: $lt_compiler_flag:'`
 
17337
   (eval echo "\"\$as_me:17337: $lt_compile\"" >&5)
 
17338
   (eval "$lt_compile" 2>out/conftest.err)
 
17339
   ac_status=$?
 
17340
   cat out/conftest.err >&5
 
17341
   echo "$as_me:17341: \$? = $ac_status" >&5
 
17342
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17343
   then
 
17344
     # The compiler can only warn and ignore the option if not recognized
 
17345
     # So say no if there are warnings
 
17346
     if test ! -s out/conftest.err; then
 
17347
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17348
     fi
 
17349
   fi
 
17350
   chmod u+w .
 
17351
   $rm conftest*
 
17352
   # SGI C++ compiler will create directory out/ii_files/ for
 
17353
   # template instantiation
 
17354
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17355
   $rm out/* && rmdir out
 
17356
   cd ..
 
17357
   rmdir conftest
 
17358
   $rm conftest*
 
17359
 
 
17360
fi
 
17361
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17362
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
17363
 
 
17364
 
 
17365
hard_links="nottested"
 
17366
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17367
  # do not overwrite the value of need_locks provided by the user
 
17368
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17369
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
17370
  hard_links=yes
 
17371
  $rm conftest*
 
17372
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17373
  touch conftest.a
 
17374
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17375
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17376
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
17377
echo "${ECHO_T}$hard_links" >&6
 
17378
  if test "$hard_links" = no; then
 
17379
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17380
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17381
    need_locks=warn
 
17382
  fi
 
17383
else
 
17384
  need_locks=no
 
17385
fi
 
17386
 
 
17387
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17388
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
17389
 
 
17390
  runpath_var=
 
17391
  allow_undefined_flag_GCJ=
 
17392
  enable_shared_with_static_runtimes_GCJ=no
 
17393
  archive_cmds_GCJ=
 
17394
  archive_expsym_cmds_GCJ=
 
17395
  old_archive_From_new_cmds_GCJ=
 
17396
  old_archive_from_expsyms_cmds_GCJ=
 
17397
  export_dynamic_flag_spec_GCJ=
 
17398
  whole_archive_flag_spec_GCJ=
 
17399
  thread_safe_flag_spec_GCJ=
 
17400
  hardcode_libdir_flag_spec_GCJ=
 
17401
  hardcode_libdir_flag_spec_ld_GCJ=
 
17402
  hardcode_libdir_separator_GCJ=
 
17403
  hardcode_direct_GCJ=no
 
17404
  hardcode_minus_L_GCJ=no
 
17405
  hardcode_shlibpath_var_GCJ=unsupported
 
17406
  link_all_deplibs_GCJ=unknown
 
17407
  hardcode_automatic_GCJ=no
 
17408
  module_cmds_GCJ=
 
17409
  module_expsym_cmds_GCJ=
 
17410
  always_export_symbols_GCJ=no
 
17411
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17412
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17413
  # included in the symbol list
 
17414
  include_expsyms_GCJ=
 
17415
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17416
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17417
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17418
  # as well as any symbol that contains `d'.
 
17419
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17420
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17421
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17422
  # the symbol is explicitly referenced.  Since portable code cannot
 
17423
  # rely on this symbol name, it's probably fine to never include it in
 
17424
  # preloaded symbol tables.
 
17425
  extract_expsyms_cmds=
 
17426
 
 
17427
  case $host_os in
 
17428
  cygwin* | mingw* | pw32*)
 
17429
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17430
    # When not using gcc, we currently assume that we are using
 
17431
    # Microsoft Visual C++.
 
17432
    if test "$GCC" != yes; then
 
17433
      with_gnu_ld=no
 
17434
    fi
 
17435
    ;;
 
17436
  openbsd*)
 
17437
    with_gnu_ld=no
 
17438
    ;;
 
17439
  esac
 
17440
 
 
17441
  ld_shlibs_GCJ=yes
 
17442
  if test "$with_gnu_ld" = yes; then
 
17443
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17444
    wlarc='${wl}'
 
17445
 
 
17446
    # See if GNU ld supports shared libraries.
 
17447
    case $host_os in
 
17448
    aix3* | aix4* | aix5*)
 
17449
      # On AIX/PPC, the GNU linker is very broken
 
17450
      if test "$host_cpu" != ia64; then
 
17451
        ld_shlibs_GCJ=no
 
17452
        cat <<EOF 1>&2
 
17453
 
 
17454
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17455
*** to be unable to reliably create shared libraries on AIX.
 
17456
*** Therefore, libtool is disabling shared libraries support.  If you
 
17457
*** really care for shared libraries, you may want to modify your PATH
 
17458
*** so that a non-GNU linker is found, and then restart.
 
17459
 
 
17460
EOF
 
17461
      fi
 
17462
      ;;
 
17463
 
 
17464
    amigaos*)
 
17465
      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)'
 
17466
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17467
      hardcode_minus_L_GCJ=yes
 
17468
 
 
17469
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17470
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17471
      # to version 4, is to share data among multiple programs linked
 
17472
      # with the same dynamic library.  Since this doesn't match the
 
17473
      # behavior of shared libraries on other platforms, we can't use
 
17474
      # them.
 
17475
      ld_shlibs_GCJ=no
 
17476
      ;;
 
17477
 
 
17478
    beos*)
 
17479
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17480
        allow_undefined_flag_GCJ=unsupported
 
17481
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17482
        # support --undefined.  This deserves some investigation.  FIXME
 
17483
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17484
      else
 
17485
        ld_shlibs_GCJ=no
 
17486
      fi
 
17487
      ;;
 
17488
 
 
17489
    cygwin* | mingw* | pw32*)
 
17490
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17491
      # as there is no search path for DLLs.
 
17492
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17493
      allow_undefined_flag_GCJ=unsupported
 
17494
      always_export_symbols_GCJ=no
 
17495
      enable_shared_with_static_runtimes_GCJ=yes
 
17496
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17497
 
 
17498
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17499
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17500
        # If the export-symbols file already is a .def file (1st line
 
17501
        # is EXPORTS), use it as is; otherwise, prepend...
 
17502
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17503
          cp $export_symbols $output_objdir/$soname.def;
 
17504
        else
 
17505
          echo EXPORTS > $output_objdir/$soname.def;
 
17506
          cat $export_symbols >> $output_objdir/$soname.def;
 
17507
        fi~
 
17508
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
17509
      else
 
17510
        ld_shlibs=no
 
17511
      fi
 
17512
      ;;
 
17513
 
 
17514
    netbsd*)
 
17515
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17516
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17517
        wlarc=
 
17518
      else
 
17519
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17520
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17521
      fi
 
17522
      ;;
 
17523
 
 
17524
    solaris* | sysv5*)
 
17525
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17526
        ld_shlibs_GCJ=no
 
17527
        cat <<EOF 1>&2
 
17528
 
 
17529
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17530
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17531
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17532
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17533
*** your PATH or compiler configuration so that the native linker is
 
17534
*** used, and then restart.
 
17535
 
 
17536
EOF
 
17537
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17538
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17539
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17540
      else
 
17541
        ld_shlibs_GCJ=no
 
17542
      fi
 
17543
      ;;
 
17544
 
 
17545
    sunos4*)
 
17546
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17547
      wlarc=
 
17548
      hardcode_direct_GCJ=yes
 
17549
      hardcode_shlibpath_var_GCJ=no
 
17550
      ;;
 
17551
 
 
17552
  linux*)
 
17553
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17554
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17555
        archive_cmds_GCJ="$tmp_archive_cmds"
 
17556
      supports_anon_versioning=no
 
17557
      case `$LD -v 2>/dev/null` in
 
17558
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17559
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17560
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17561
        *\ 2.11.*) ;; # other 2.11 versions
 
17562
        *) supports_anon_versioning=yes ;;
 
17563
      esac
 
17564
      if test $supports_anon_versioning = yes; then
 
17565
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17566
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17567
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
17568
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17569
      else
 
17570
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
17571
      fi
 
17572
    else
 
17573
      ld_shlibs_GCJ=no
 
17574
    fi
 
17575
    ;;
 
17576
 
 
17577
    *)
 
17578
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17579
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17580
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17581
      else
 
17582
        ld_shlibs_GCJ=no
 
17583
      fi
 
17584
      ;;
 
17585
    esac
 
17586
 
 
17587
    if test "$ld_shlibs_GCJ" = yes; then
 
17588
      runpath_var=LD_RUN_PATH
 
17589
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17590
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17591
      # ancient GNU ld didn't support --whole-archive et. al.
 
17592
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17593
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17594
      else
 
17595
        whole_archive_flag_spec_GCJ=
 
17596
      fi
 
17597
    fi
 
17598
  else
 
17599
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17600
    case $host_os in
 
17601
    aix3*)
 
17602
      allow_undefined_flag_GCJ=unsupported
 
17603
      always_export_symbols_GCJ=yes
 
17604
      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'
 
17605
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17606
      # are no directories specified by -L.
 
17607
      hardcode_minus_L_GCJ=yes
 
17608
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17609
        # Neither direct hardcoding nor static linking is supported with a
 
17610
        # broken collect2.
 
17611
        hardcode_direct_GCJ=unsupported
 
17612
      fi
 
17613
      ;;
 
17614
 
 
17615
    aix4* | aix5*)
 
17616
      if test "$host_cpu" = ia64; then
 
17617
        # On IA64, the linker does run time linking by default, so we don't
 
17618
        # have to do anything special.
 
17619
        aix_use_runtimelinking=no
 
17620
        exp_sym_flag='-Bexport'
 
17621
        no_entry_flag=""
 
17622
      else
 
17623
        # If we're using GNU nm, then we don't want the "-C" option.
 
17624
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17625
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17626
          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'
 
17627
        else
 
17628
          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'
 
17629
        fi
 
17630
        aix_use_runtimelinking=no
 
17631
 
 
17632
        # Test if we are trying to use run time linking or normal
 
17633
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17634
        # need to do runtime linking.
 
17635
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17636
          for ld_flag in $LDFLAGS; do
 
17637
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17638
            aix_use_runtimelinking=yes
 
17639
            break
 
17640
          fi
 
17641
          done
 
17642
        esac
 
17643
 
 
17644
        exp_sym_flag='-bexport'
 
17645
        no_entry_flag='-bnoentry'
 
17646
      fi
 
17647
 
 
17648
      # When large executables or shared objects are built, AIX ld can
 
17649
      # have problems creating the table of contents.  If linking a library
 
17650
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17651
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17652
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17653
 
 
17654
      archive_cmds_GCJ=''
 
17655
      hardcode_direct_GCJ=yes
 
17656
      hardcode_libdir_separator_GCJ=':'
 
17657
      link_all_deplibs_GCJ=yes
 
17658
 
 
17659
      if test "$GCC" = yes; then
 
17660
        case $host_os in aix4.012|aix4.012.*)
 
17661
        # We only want to do this on AIX 4.2 and lower, the check
 
17662
        # below for broken collect2 doesn't work under 4.3+
 
17663
          collect2name=`${CC} -print-prog-name=collect2`
 
17664
          if test -f "$collect2name" && \
 
17665
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17666
          then
 
17667
          # We have reworked collect2
 
17668
          hardcode_direct_GCJ=yes
 
17669
          else
 
17670
          # We have old collect2
 
17671
          hardcode_direct_GCJ=unsupported
 
17672
          # It fails to find uninstalled libraries when the uninstalled
 
17673
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17674
          # to unsupported forces relinking
 
17675
          hardcode_minus_L_GCJ=yes
 
17676
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17677
          hardcode_libdir_separator_GCJ=
 
17678
          fi
 
17679
        esac
 
17680
        shared_flag='-shared'
 
17681
      else
 
17682
        # not using gcc
 
17683
        if test "$host_cpu" = ia64; then
 
17684
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17685
        # chokes on -Wl,-G. The following line is correct:
 
17686
          shared_flag='-G'
 
17687
        else
 
17688
        if test "$aix_use_runtimelinking" = yes; then
 
17689
            shared_flag='${wl}-G'
 
17690
          else
 
17691
            shared_flag='${wl}-bM:SRE'
 
17692
        fi
 
17693
        fi
 
17694
      fi
 
17695
 
 
17696
      # It seems that -bexpall does not export symbols beginning with
 
17697
      # underscore (_), so it is better to generate a list of symbols to export.
 
17698
      always_export_symbols_GCJ=yes
 
17699
      if test "$aix_use_runtimelinking" = yes; then
 
17700
        # Warning - without using the other runtime loading flags (-brtl),
 
17701
        # -berok will link without error, but may produce a broken library.
 
17702
        allow_undefined_flag_GCJ='-berok'
 
17703
       # Determine the default libpath from the value encoded in an empty executable.
 
17704
       cat >conftest.$ac_ext <<_ACEOF
 
17705
/* confdefs.h.  */
 
17706
_ACEOF
 
17707
cat confdefs.h >>conftest.$ac_ext
 
17708
cat >>conftest.$ac_ext <<_ACEOF
 
17709
/* end confdefs.h.  */
 
17710
 
 
17711
int
 
17712
main ()
 
17713
{
 
17714
 
 
17715
  ;
 
17716
  return 0;
 
17717
}
 
17718
_ACEOF
 
17719
rm -f conftest.$ac_objext conftest$ac_exeext
 
17720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17721
  (eval $ac_link) 2>conftest.er1
 
17722
  ac_status=$?
 
17723
  grep -v '^ *+' conftest.er1 >conftest.err
 
17724
  rm -f conftest.er1
 
17725
  cat conftest.err >&5
 
17726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17727
  (exit $ac_status); } &&
 
17728
         { ac_try='test -z "$ac_c_werror_flag"
 
17729
                         || test ! -s conftest.err'
 
17730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17731
  (eval $ac_try) 2>&5
 
17732
  ac_status=$?
 
17733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17734
  (exit $ac_status); }; } &&
 
17735
         { ac_try='test -s conftest$ac_exeext'
 
17736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17737
  (eval $ac_try) 2>&5
 
17738
  ac_status=$?
 
17739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17740
  (exit $ac_status); }; }; then
 
17741
 
 
17742
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17743
}'`
 
17744
# Check for a 64-bit object if we didn't find anything.
 
17745
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; }
 
17746
}'`; fi
 
17747
else
 
17748
  echo "$as_me: failed program was:" >&5
 
17749
sed 's/^/| /' conftest.$ac_ext >&5
 
17750
 
 
17751
fi
 
17752
rm -f conftest.err conftest.$ac_objext \
 
17753
      conftest$ac_exeext conftest.$ac_ext
 
17754
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17755
 
 
17756
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17757
        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"
 
17758
       else
 
17759
        if test "$host_cpu" = ia64; then
 
17760
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17761
          allow_undefined_flag_GCJ="-z nodefs"
 
17762
          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"
 
17763
        else
 
17764
         # Determine the default libpath from the value encoded in an empty executable.
 
17765
         cat >conftest.$ac_ext <<_ACEOF
 
17766
/* confdefs.h.  */
 
17767
_ACEOF
 
17768
cat confdefs.h >>conftest.$ac_ext
 
17769
cat >>conftest.$ac_ext <<_ACEOF
 
17770
/* end confdefs.h.  */
 
17771
 
 
17772
int
 
17773
main ()
 
17774
{
 
17775
 
 
17776
  ;
 
17777
  return 0;
 
17778
}
 
17779
_ACEOF
 
17780
rm -f conftest.$ac_objext conftest$ac_exeext
 
17781
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17782
  (eval $ac_link) 2>conftest.er1
 
17783
  ac_status=$?
 
17784
  grep -v '^ *+' conftest.er1 >conftest.err
 
17785
  rm -f conftest.er1
 
17786
  cat conftest.err >&5
 
17787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17788
  (exit $ac_status); } &&
 
17789
         { ac_try='test -z "$ac_c_werror_flag"
 
17790
                         || test ! -s conftest.err'
 
17791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17792
  (eval $ac_try) 2>&5
 
17793
  ac_status=$?
 
17794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17795
  (exit $ac_status); }; } &&
 
17796
         { ac_try='test -s conftest$ac_exeext'
 
17797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17798
  (eval $ac_try) 2>&5
 
17799
  ac_status=$?
 
17800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17801
  (exit $ac_status); }; }; then
 
17802
 
 
17803
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17804
}'`
 
17805
# Check for a 64-bit object if we didn't find anything.
 
17806
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; }
 
17807
}'`; fi
 
17808
else
 
17809
  echo "$as_me: failed program was:" >&5
 
17810
sed 's/^/| /' conftest.$ac_ext >&5
 
17811
 
 
17812
fi
 
17813
rm -f conftest.err conftest.$ac_objext \
 
17814
      conftest$ac_exeext conftest.$ac_ext
 
17815
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17816
 
 
17817
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17818
          # Warning - without using the other run time loading flags,
 
17819
          # -berok will link without error, but may produce a broken library.
 
17820
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17821
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17822
          # -bexpall does not export symbols beginning with underscore (_)
 
17823
          always_export_symbols_GCJ=yes
 
17824
          # Exported symbols can be pulled into shared objects from archives
 
17825
          whole_archive_flag_spec_GCJ=' '
 
17826
          archive_cmds_need_lc_GCJ=yes
 
17827
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17828
          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'
 
17829
        fi
 
17830
      fi
 
17831
      ;;
 
17832
 
 
17833
    amigaos*)
 
17834
      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)'
 
17835
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17836
      hardcode_minus_L_GCJ=yes
 
17837
      # see comment about different semantics on the GNU ld section
 
17838
      ld_shlibs_GCJ=no
 
17839
      ;;
 
17840
 
 
17841
    bsdi[45]*)
 
17842
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17843
      ;;
 
17844
 
 
17845
    cygwin* | mingw* | pw32*)
 
17846
      # When not using gcc, we currently assume that we are using
 
17847
      # Microsoft Visual C++.
 
17848
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17849
      # no search path for DLLs.
 
17850
      hardcode_libdir_flag_spec_GCJ=' '
 
17851
      allow_undefined_flag_GCJ=unsupported
 
17852
      # Tell ltmain to make .lib files, not .a files.
 
17853
      libext=lib
 
17854
      # Tell ltmain to make .dll files, not .so files.
 
17855
      shrext_cmds=".dll"
 
17856
      # FIXME: Setting linknames here is a bad hack.
 
17857
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17858
      # The linker will automatically build a .lib file if we build a DLL.
 
17859
      old_archive_From_new_cmds_GCJ='true'
 
17860
      # FIXME: Should let the user specify the lib program.
 
17861
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17862
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17863
      enable_shared_with_static_runtimes_GCJ=yes
 
17864
      ;;
 
17865
 
 
17866
    darwin* | rhapsody*)
 
17867
      case "$host_os" in
 
17868
        rhapsody* | darwin1.[012])
 
17869
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17870
         ;;
 
17871
       *) # Darwin 1.3 on
 
17872
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17873
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17874
         else
 
17875
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17876
             10.[012])
 
17877
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17878
               ;;
 
17879
             10.*)
 
17880
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17881
               ;;
 
17882
           esac
 
17883
         fi
 
17884
         ;;
 
17885
      esac
 
17886
      archive_cmds_need_lc_GCJ=no
 
17887
      hardcode_direct_GCJ=no
 
17888
      hardcode_automatic_GCJ=yes
 
17889
      hardcode_shlibpath_var_GCJ=unsupported
 
17890
      whole_archive_flag_spec_GCJ=''
 
17891
      link_all_deplibs_GCJ=yes
 
17892
    if test "$GCC" = yes ; then
 
17893
        output_verbose_link_cmd='echo'
 
17894
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17895
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17896
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
17897
      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}'
 
17898
      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}'
 
17899
    else
 
17900
      case "$cc_basename" in
 
17901
        xlc*)
 
17902
         output_verbose_link_cmd='echo'
 
17903
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17904
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17905
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
17906
         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}'
 
17907
          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}'
 
17908
          ;;
 
17909
       *)
 
17910
         ld_shlibs_GCJ=no
 
17911
          ;;
 
17912
      esac
 
17913
    fi
 
17914
      ;;
 
17915
 
 
17916
    dgux*)
 
17917
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17918
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17919
      hardcode_shlibpath_var_GCJ=no
 
17920
      ;;
 
17921
 
 
17922
    freebsd1*)
 
17923
      ld_shlibs_GCJ=no
 
17924
      ;;
 
17925
 
 
17926
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17927
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17928
    # does not break anything, and helps significantly (at the cost of a little
 
17929
    # extra space).
 
17930
    freebsd2.2*)
 
17931
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17932
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17933
      hardcode_direct_GCJ=yes
 
17934
      hardcode_shlibpath_var_GCJ=no
 
17935
      ;;
 
17936
 
 
17937
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17938
    freebsd2*)
 
17939
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17940
      hardcode_direct_GCJ=yes
 
17941
      hardcode_minus_L_GCJ=yes
 
17942
      hardcode_shlibpath_var_GCJ=no
 
17943
      ;;
 
17944
 
 
17945
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17946
    freebsd* | kfreebsd*-gnu)
 
17947
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17948
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17949
      hardcode_direct_GCJ=yes
 
17950
      hardcode_shlibpath_var_GCJ=no
 
17951
      ;;
 
17952
 
 
17953
    hpux9*)
 
17954
      if test "$GCC" = yes; then
 
17955
        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'
 
17956
      else
 
17957
        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'
 
17958
      fi
 
17959
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17960
      hardcode_libdir_separator_GCJ=:
 
17961
      hardcode_direct_GCJ=yes
 
17962
 
 
17963
      # hardcode_minus_L: Not really in the search PATH,
 
17964
      # but as the default location of the library.
 
17965
      hardcode_minus_L_GCJ=yes
 
17966
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17967
      ;;
 
17968
 
 
17969
    hpux10* | hpux11*)
 
17970
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17971
        case "$host_cpu" in
 
17972
        hppa*64*|ia64*)
 
17973
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17974
          ;;
 
17975
        *)
 
17976
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17977
          ;;
 
17978
        esac
 
17979
      else
 
17980
        case "$host_cpu" in
 
17981
        hppa*64*|ia64*)
 
17982
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17983
          ;;
 
17984
        *)
 
17985
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17986
          ;;
 
17987
        esac
 
17988
      fi
 
17989
      if test "$with_gnu_ld" = no; then
 
17990
        case "$host_cpu" in
 
17991
        hppa*64*)
 
17992
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17993
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17994
          hardcode_libdir_separator_GCJ=:
 
17995
          hardcode_direct_GCJ=no
 
17996
          hardcode_shlibpath_var_GCJ=no
 
17997
          ;;
 
17998
        ia64*)
 
17999
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18000
          hardcode_direct_GCJ=no
 
18001
          hardcode_shlibpath_var_GCJ=no
 
18002
 
 
18003
          # hardcode_minus_L: Not really in the search PATH,
 
18004
          # but as the default location of the library.
 
18005
          hardcode_minus_L_GCJ=yes
 
18006
          ;;
 
18007
        *)
 
18008
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18009
          hardcode_libdir_separator_GCJ=:
 
18010
          hardcode_direct_GCJ=yes
 
18011
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18012
 
 
18013
          # hardcode_minus_L: Not really in the search PATH,
 
18014
          # but as the default location of the library.
 
18015
          hardcode_minus_L_GCJ=yes
 
18016
          ;;
 
18017
        esac
 
18018
      fi
 
18019
      ;;
 
18020
 
 
18021
    irix5* | irix6* | nonstopux*)
 
18022
      if test "$GCC" = yes; then
 
18023
        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'
 
18024
      else
 
18025
        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'
 
18026
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18027
      fi
 
18028
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18029
      hardcode_libdir_separator_GCJ=:
 
18030
      link_all_deplibs_GCJ=yes
 
18031
      ;;
 
18032
 
 
18033
    netbsd*)
 
18034
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18035
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18036
      else
 
18037
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18038
      fi
 
18039
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18040
      hardcode_direct_GCJ=yes
 
18041
      hardcode_shlibpath_var_GCJ=no
 
18042
      ;;
 
18043
 
 
18044
    newsos6)
 
18045
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18046
      hardcode_direct_GCJ=yes
 
18047
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18048
      hardcode_libdir_separator_GCJ=:
 
18049
      hardcode_shlibpath_var_GCJ=no
 
18050
      ;;
 
18051
 
 
18052
    openbsd*)
 
18053
      hardcode_direct_GCJ=yes
 
18054
      hardcode_shlibpath_var_GCJ=no
 
18055
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18056
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18057
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18058
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18059
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18060
      else
 
18061
       case $host_os in
 
18062
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18063
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18064
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18065
           ;;
 
18066
         *)
 
18067
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18068
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18069
           ;;
 
18070
       esac
 
18071
      fi
 
18072
      ;;
 
18073
 
 
18074
    os2*)
 
18075
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18076
      hardcode_minus_L_GCJ=yes
 
18077
      allow_undefined_flag_GCJ=unsupported
 
18078
      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'
 
18079
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18080
      ;;
 
18081
 
 
18082
    osf3*)
 
18083
      if test "$GCC" = yes; then
 
18084
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18085
        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'
 
18086
      else
 
18087
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18088
        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'
 
18089
      fi
 
18090
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18091
      hardcode_libdir_separator_GCJ=:
 
18092
      ;;
 
18093
 
 
18094
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18095
      if test "$GCC" = yes; then
 
18096
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18097
        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'
 
18098
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18099
      else
 
18100
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18101
        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'
 
18102
        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~
 
18103
        $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'
 
18104
 
 
18105
        # Both c and cxx compiler support -rpath directly
 
18106
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18107
      fi
 
18108
      hardcode_libdir_separator_GCJ=:
 
18109
      ;;
 
18110
 
 
18111
    sco3.2v5*)
 
18112
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18113
      hardcode_shlibpath_var_GCJ=no
 
18114
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18115
      runpath_var=LD_RUN_PATH
 
18116
      hardcode_runpath_var=yes
 
18117
      ;;
 
18118
 
 
18119
    solaris*)
 
18120
      no_undefined_flag_GCJ=' -z text'
 
18121
      if test "$GCC" = yes; then
 
18122
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18123
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18124
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18125
      else
 
18126
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18127
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18128
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18129
      fi
 
18130
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18131
      hardcode_shlibpath_var_GCJ=no
 
18132
      case $host_os in
 
18133
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18134
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18135
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18136
      esac
 
18137
      link_all_deplibs_GCJ=yes
 
18138
      ;;
 
18139
 
 
18140
    sunos4*)
 
18141
      if test "x$host_vendor" = xsequent; then
 
18142
        # Use $CC to link under sequent, because it throws in some extra .o
 
18143
        # files that make .init and .fini sections work.
 
18144
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18145
      else
 
18146
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18147
      fi
 
18148
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18149
      hardcode_direct_GCJ=yes
 
18150
      hardcode_minus_L_GCJ=yes
 
18151
      hardcode_shlibpath_var_GCJ=no
 
18152
      ;;
 
18153
 
 
18154
    sysv4)
 
18155
      case $host_vendor in
 
18156
        sni)
 
18157
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18158
          hardcode_direct_GCJ=yes # is this really true???
 
18159
        ;;
 
18160
        siemens)
 
18161
          ## LD is ld it makes a PLAMLIB
 
18162
          ## CC just makes a GrossModule.
 
18163
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18164
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18165
          hardcode_direct_GCJ=no
 
18166
        ;;
 
18167
        motorola)
 
18168
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18169
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18170
        ;;
 
18171
      esac
 
18172
      runpath_var='LD_RUN_PATH'
 
18173
      hardcode_shlibpath_var_GCJ=no
 
18174
      ;;
 
18175
 
 
18176
    sysv4.3*)
 
18177
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18178
      hardcode_shlibpath_var_GCJ=no
 
18179
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18180
      ;;
 
18181
 
 
18182
    sysv4*MP*)
 
18183
      if test -d /usr/nec; then
 
18184
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18185
        hardcode_shlibpath_var_GCJ=no
 
18186
        runpath_var=LD_RUN_PATH
 
18187
        hardcode_runpath_var=yes
 
18188
        ld_shlibs_GCJ=yes
 
18189
      fi
 
18190
      ;;
 
18191
 
 
18192
    sysv4.2uw2*)
 
18193
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18194
      hardcode_direct_GCJ=yes
 
18195
      hardcode_minus_L_GCJ=no
 
18196
      hardcode_shlibpath_var_GCJ=no
 
18197
      hardcode_runpath_var=yes
 
18198
      runpath_var=LD_RUN_PATH
 
18199
      ;;
 
18200
 
 
18201
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
18202
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
18203
      if test "$GCC" = yes; then
 
18204
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18205
      else
 
18206
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18207
      fi
 
18208
      runpath_var='LD_RUN_PATH'
 
18209
      hardcode_shlibpath_var_GCJ=no
 
18210
      ;;
 
18211
 
 
18212
    sysv5*)
 
18213
      no_undefined_flag_GCJ=' -z text'
 
18214
      # $CC -shared without GNU ld will not create a library from C++
 
18215
      # object files and a static libstdc++, better avoid it by now
 
18216
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18217
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18218
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18219
      hardcode_libdir_flag_spec_GCJ=
 
18220
      hardcode_shlibpath_var_GCJ=no
 
18221
      runpath_var='LD_RUN_PATH'
 
18222
      ;;
 
18223
 
 
18224
    uts4*)
 
18225
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18226
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18227
      hardcode_shlibpath_var_GCJ=no
 
18228
      ;;
 
18229
 
 
18230
    *)
 
18231
      ld_shlibs_GCJ=no
 
18232
      ;;
 
18233
    esac
 
18234
  fi
 
18235
 
 
18236
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18237
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
18238
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18239
 
 
18240
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18241
if test "$GCC" = yes; then
 
18242
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18243
fi
 
18244
 
 
18245
#
 
18246
# Do we need to explicitly link libc?
 
18247
#
 
18248
case "x$archive_cmds_need_lc_GCJ" in
 
18249
x|xyes)
 
18250
  # Assume -lc should be added
 
18251
  archive_cmds_need_lc_GCJ=yes
 
18252
 
 
18253
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18254
    case $archive_cmds_GCJ in
 
18255
    *'~'*)
 
18256
      # FIXME: we may have to deal with multi-command sequences.
 
18257
      ;;
 
18258
    '$CC '*)
 
18259
      # Test whether the compiler implicitly links with -lc since on some
 
18260
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18261
      # to ld, don't add -lc before -lgcc.
 
18262
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18263
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
18264
      $rm conftest*
 
18265
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18266
 
 
18267
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18268
  (eval $ac_compile) 2>&5
 
18269
  ac_status=$?
 
18270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18271
  (exit $ac_status); } 2>conftest.err; then
 
18272
        soname=conftest
 
18273
        lib=conftest
 
18274
        libobjs=conftest.$ac_objext
 
18275
        deplibs=
 
18276
        wl=$lt_prog_compiler_wl_GCJ
 
18277
        compiler_flags=-v
 
18278
        linker_flags=-v
 
18279
        verstring=
 
18280
        output_objdir=.
 
18281
        libname=conftest
 
18282
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18283
        allow_undefined_flag_GCJ=
 
18284
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18285
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18286
  ac_status=$?
 
18287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18288
  (exit $ac_status); }
 
18289
        then
 
18290
          archive_cmds_need_lc_GCJ=no
 
18291
        else
 
18292
          archive_cmds_need_lc_GCJ=yes
 
18293
        fi
 
18294
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18295
      else
 
18296
        cat conftest.err 1>&5
 
18297
      fi
 
18298
      $rm conftest*
 
18299
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18300
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
18301
      ;;
 
18302
    esac
 
18303
  fi
 
18304
  ;;
 
18305
esac
 
18306
 
 
18307
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18308
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18309
library_names_spec=
 
18310
libname_spec='lib$name'
 
18311
soname_spec=
 
18312
shrext_cmds=".so"
 
18313
postinstall_cmds=
 
18314
postuninstall_cmds=
 
18315
finish_cmds=
 
18316
finish_eval=
 
18317
shlibpath_var=
 
18318
shlibpath_overrides_runpath=unknown
 
18319
version_type=none
 
18320
dynamic_linker="$host_os ld.so"
 
18321
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18322
if test "$GCC" = yes; then
 
18323
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18324
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18325
    # if the path contains ";" then we assume it to be the separator
 
18326
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18327
    # assumed that no part of a normal pathname contains ";" but that should
 
18328
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18329
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18330
  else
 
18331
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18332
  fi
 
18333
else
 
18334
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18335
fi
 
18336
need_lib_prefix=unknown
 
18337
hardcode_into_libs=no
 
18338
 
 
18339
# when you set need_version to no, make sure it does not cause -set_version
 
18340
# flags to be left without arguments
 
18341
need_version=unknown
 
18342
 
 
18343
case $host_os in
 
18344
aix3*)
 
18345
  version_type=linux
 
18346
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18347
  shlibpath_var=LIBPATH
 
18348
 
 
18349
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18350
  soname_spec='${libname}${release}${shared_ext}$major'
 
18351
  ;;
 
18352
 
 
18353
aix4* | aix5*)
 
18354
  version_type=linux
 
18355
  need_lib_prefix=no
 
18356
  need_version=no
 
18357
  hardcode_into_libs=yes
 
18358
  if test "$host_cpu" = ia64; then
 
18359
    # AIX 5 supports IA64
 
18360
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18361
    shlibpath_var=LD_LIBRARY_PATH
 
18362
  else
 
18363
    # With GCC up to 2.95.x, collect2 would create an import file
 
18364
    # for dependence libraries.  The import file would start with
 
18365
    # the line `#! .'.  This would cause the generated library to
 
18366
    # depend on `.', always an invalid library.  This was fixed in
 
18367
    # development snapshots of GCC prior to 3.0.
 
18368
    case $host_os in
 
18369
      aix4 | aix4.[01] | aix4.[01].*)
 
18370
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18371
           echo ' yes '
 
18372
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18373
        :
 
18374
      else
 
18375
        can_build_shared=no
 
18376
      fi
 
18377
      ;;
 
18378
    esac
 
18379
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18380
    # soname into executable. Probably we can add versioning support to
 
18381
    # collect2, so additional links can be useful in future.
 
18382
    if test "$aix_use_runtimelinking" = yes; then
 
18383
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18384
      # instead of lib<name>.a to let people know that these are not
 
18385
      # typical AIX shared libraries.
 
18386
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18387
    else
 
18388
      # We preserve .a as extension for shared libraries through AIX4.2
 
18389
      # and later when we are not doing run time linking.
 
18390
      library_names_spec='${libname}${release}.a $libname.a'
 
18391
      soname_spec='${libname}${release}${shared_ext}$major'
 
18392
    fi
 
18393
    shlibpath_var=LIBPATH
 
18394
  fi
 
18395
  ;;
 
18396
 
 
18397
amigaos*)
 
18398
  library_names_spec='$libname.ixlibrary $libname.a'
 
18399
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18400
  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'
 
18401
  ;;
 
18402
 
 
18403
beos*)
 
18404
  library_names_spec='${libname}${shared_ext}'
 
18405
  dynamic_linker="$host_os ld.so"
 
18406
  shlibpath_var=LIBRARY_PATH
 
18407
  ;;
 
18408
 
 
18409
bsdi[45]*)
 
18410
  version_type=linux
 
18411
  need_version=no
 
18412
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18413
  soname_spec='${libname}${release}${shared_ext}$major'
 
18414
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18415
  shlibpath_var=LD_LIBRARY_PATH
 
18416
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18417
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18418
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18419
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18420
  # libtool to hard-code these into programs
 
18421
  ;;
 
18422
 
 
18423
cygwin* | mingw* | pw32*)
 
18424
  version_type=windows
 
18425
  shrext_cmds=".dll"
 
18426
  need_version=no
 
18427
  need_lib_prefix=no
 
18428
 
 
18429
  case $GCC,$host_os in
 
18430
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18431
    library_names_spec='$libname.dll.a'
 
18432
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18433
    postinstall_cmds='base_file=`basename \${file}`~
 
18434
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18435
      dldir=$destdir/`dirname \$dlpath`~
 
18436
      test -d \$dldir || mkdir -p \$dldir~
 
18437
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18438
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18439
      dlpath=$dir/\$dldll~
 
18440
       $rm \$dlpath'
 
18441
    shlibpath_overrides_runpath=yes
 
18442
 
 
18443
    case $host_os in
 
18444
    cygwin*)
 
18445
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18446
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18447
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18448
      ;;
 
18449
    mingw*)
 
18450
      # MinGW DLLs use traditional 'lib' prefix
 
18451
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18452
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18453
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18454
        # It is most probably a Windows format PATH printed by
 
18455
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18456
        # path with ; separators, and with drive letters. We can handle the
 
18457
        # drive letters (cygwin fileutils understands them), so leave them,
 
18458
        # especially as we might pass files found there to a mingw objdump,
 
18459
        # which wouldn't understand a cygwinified path. Ahh.
 
18460
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18461
      else
 
18462
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18463
      fi
 
18464
      ;;
 
18465
    pw32*)
 
18466
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18467
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18468
      ;;
 
18469
    esac
 
18470
    ;;
 
18471
 
 
18472
  *)
 
18473
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18474
    ;;
 
18475
  esac
 
18476
  dynamic_linker='Win32 ld.exe'
 
18477
  # FIXME: first we should search . and the directory the executable is in
 
18478
  shlibpath_var=PATH
 
18479
  ;;
 
18480
 
 
18481
darwin* | rhapsody*)
 
18482
  dynamic_linker="$host_os dyld"
 
18483
  version_type=darwin
 
18484
  need_lib_prefix=no
 
18485
  need_version=no
 
18486
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18487
  soname_spec='${libname}${release}${major}$shared_ext'
 
18488
  shlibpath_overrides_runpath=yes
 
18489
  shlibpath_var=DYLD_LIBRARY_PATH
 
18490
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
18491
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18492
  if test "$GCC" = yes; then
 
18493
    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"`
 
18494
  else
 
18495
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18496
  fi
 
18497
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18498
  ;;
 
18499
 
 
18500
dgux*)
 
18501
  version_type=linux
 
18502
  need_lib_prefix=no
 
18503
  need_version=no
 
18504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18505
  soname_spec='${libname}${release}${shared_ext}$major'
 
18506
  shlibpath_var=LD_LIBRARY_PATH
 
18507
  ;;
 
18508
 
 
18509
freebsd1*)
 
18510
  dynamic_linker=no
 
18511
  ;;
 
18512
 
 
18513
kfreebsd*-gnu)
 
18514
  version_type=linux
 
18515
  need_lib_prefix=no
 
18516
  need_version=no
 
18517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18518
  soname_spec='${libname}${release}${shared_ext}$major'
 
18519
  shlibpath_var=LD_LIBRARY_PATH
 
18520
  shlibpath_overrides_runpath=no
 
18521
  hardcode_into_libs=yes
 
18522
  dynamic_linker='GNU ld.so'
 
18523
  ;;
 
18524
 
 
18525
freebsd*)
 
18526
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18527
  version_type=freebsd-$objformat
 
18528
  case $version_type in
 
18529
    freebsd-elf*)
 
18530
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18531
      need_version=no
 
18532
      need_lib_prefix=no
 
18533
      ;;
 
18534
    freebsd-*)
 
18535
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18536
      need_version=yes
 
18537
      ;;
 
18538
  esac
 
18539
  shlibpath_var=LD_LIBRARY_PATH
 
18540
  case $host_os in
 
18541
  freebsd2*)
 
18542
    shlibpath_overrides_runpath=yes
 
18543
    ;;
 
18544
  freebsd3.01* | freebsdelf3.01*)
 
18545
    shlibpath_overrides_runpath=yes
 
18546
    hardcode_into_libs=yes
 
18547
    ;;
 
18548
  *) # from 3.2 on
 
18549
    shlibpath_overrides_runpath=no
 
18550
    hardcode_into_libs=yes
 
18551
    ;;
 
18552
  esac
 
18553
  ;;
 
18554
 
 
18555
gnu*)
 
18556
  version_type=linux
 
18557
  need_lib_prefix=no
 
18558
  need_version=no
 
18559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18560
  soname_spec='${libname}${release}${shared_ext}$major'
 
18561
  shlibpath_var=LD_LIBRARY_PATH
 
18562
  hardcode_into_libs=yes
 
18563
  ;;
 
18564
 
 
18565
hpux9* | hpux10* | hpux11*)
 
18566
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18567
  # link against other versions.
 
18568
  version_type=sunos
 
18569
  need_lib_prefix=no
 
18570
  need_version=no
 
18571
  case "$host_cpu" in
 
18572
  ia64*)
 
18573
    shrext_cmds='.so'
 
18574
    hardcode_into_libs=yes
 
18575
    dynamic_linker="$host_os dld.so"
 
18576
    shlibpath_var=LD_LIBRARY_PATH
 
18577
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18578
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18579
    soname_spec='${libname}${release}${shared_ext}$major'
 
18580
    if test "X$HPUX_IA64_MODE" = X32; then
 
18581
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18582
    else
 
18583
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18584
    fi
 
18585
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18586
    ;;
 
18587
   hppa*64*)
 
18588
     shrext_cmds='.sl'
 
18589
     hardcode_into_libs=yes
 
18590
     dynamic_linker="$host_os dld.sl"
 
18591
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18592
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18593
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18594
     soname_spec='${libname}${release}${shared_ext}$major'
 
18595
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18596
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18597
     ;;
 
18598
   *)
 
18599
    shrext_cmds='.sl'
 
18600
    dynamic_linker="$host_os dld.sl"
 
18601
    shlibpath_var=SHLIB_PATH
 
18602
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18603
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18604
    soname_spec='${libname}${release}${shared_ext}$major'
 
18605
    ;;
 
18606
  esac
 
18607
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18608
  postinstall_cmds='chmod 555 $lib'
 
18609
  ;;
 
18610
 
 
18611
irix5* | irix6* | nonstopux*)
 
18612
  case $host_os in
 
18613
    nonstopux*) version_type=nonstopux ;;
 
18614
    *)
 
18615
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18616
                version_type=linux
 
18617
        else
 
18618
                version_type=irix
 
18619
        fi ;;
 
18620
  esac
 
18621
  need_lib_prefix=no
 
18622
  need_version=no
 
18623
  soname_spec='${libname}${release}${shared_ext}$major'
 
18624
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18625
  case $host_os in
 
18626
  irix5* | nonstopux*)
 
18627
    libsuff= shlibsuff=
 
18628
    ;;
 
18629
  *)
 
18630
    case $LD in # libtool.m4 will add one of these switches to LD
 
18631
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18632
      libsuff= shlibsuff= libmagic=32-bit;;
 
18633
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18634
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18635
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18636
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18637
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18638
    esac
 
18639
    ;;
 
18640
  esac
 
18641
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18642
  shlibpath_overrides_runpath=no
 
18643
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18644
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18645
  hardcode_into_libs=yes
 
18646
  ;;
 
18647
 
 
18648
# No shared lib support for Linux oldld, aout, or coff.
 
18649
linux*oldld* | linux*aout* | linux*coff*)
 
18650
  dynamic_linker=no
 
18651
  ;;
 
18652
 
 
18653
# This must be Linux ELF.
 
18654
linux*)
 
18655
  version_type=linux
 
18656
  need_lib_prefix=no
 
18657
  need_version=no
 
18658
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18659
  soname_spec='${libname}${release}${shared_ext}$major'
 
18660
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18661
  shlibpath_var=LD_LIBRARY_PATH
 
18662
  shlibpath_overrides_runpath=no
 
18663
  # This implies no fast_install, which is unacceptable.
 
18664
  # Some rework will be needed to allow for fast_install
 
18665
  # before this can be enabled.
 
18666
  hardcode_into_libs=yes
 
18667
 
 
18668
  # Append ld.so.conf contents to the search path
 
18669
  if test -f /etc/ld.so.conf; then
 
18670
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
18671
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18672
  fi
 
18673
 
 
18674
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18675
  # powerpc, because MkLinux only supported shared libraries with the
 
18676
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18677
  # most powerpc-linux boxes support dynamic linking these days and
 
18678
  # people can always --disable-shared, the test was removed, and we
 
18679
  # assume the GNU/Linux dynamic linker is in use.
 
18680
  dynamic_linker='GNU/Linux ld.so'
 
18681
  ;;
 
18682
 
 
18683
knetbsd*-gnu)
 
18684
  version_type=linux
 
18685
  need_lib_prefix=no
 
18686
  need_version=no
 
18687
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18688
  soname_spec='${libname}${release}${shared_ext}$major'
 
18689
  shlibpath_var=LD_LIBRARY_PATH
 
18690
  shlibpath_overrides_runpath=no
 
18691
  hardcode_into_libs=yes
 
18692
  dynamic_linker='GNU ld.so'
 
18693
  ;;
 
18694
 
 
18695
netbsd*)
 
18696
  version_type=sunos
 
18697
  need_lib_prefix=no
 
18698
  need_version=no
 
18699
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18700
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18701
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18702
    dynamic_linker='NetBSD (a.out) ld.so'
 
18703
  else
 
18704
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18705
    soname_spec='${libname}${release}${shared_ext}$major'
 
18706
    dynamic_linker='NetBSD ld.elf_so'
 
18707
  fi
 
18708
  shlibpath_var=LD_LIBRARY_PATH
 
18709
  shlibpath_overrides_runpath=yes
 
18710
  hardcode_into_libs=yes
 
18711
  ;;
 
18712
 
 
18713
newsos6)
 
18714
  version_type=linux
 
18715
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18716
  shlibpath_var=LD_LIBRARY_PATH
 
18717
  shlibpath_overrides_runpath=yes
 
18718
  ;;
 
18719
 
 
18720
nto-qnx*)
 
18721
  version_type=linux
 
18722
  need_lib_prefix=no
 
18723
  need_version=no
 
18724
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18725
  soname_spec='${libname}${release}${shared_ext}$major'
 
18726
  shlibpath_var=LD_LIBRARY_PATH
 
18727
  shlibpath_overrides_runpath=yes
 
18728
  ;;
 
18729
 
 
18730
openbsd*)
 
18731
  version_type=sunos
 
18732
  need_lib_prefix=no
 
18733
  need_version=no
 
18734
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18735
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18736
  shlibpath_var=LD_LIBRARY_PATH
 
18737
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18738
    case $host_os in
 
18739
      openbsd2.[89] | openbsd2.[89].*)
 
18740
        shlibpath_overrides_runpath=no
 
18741
        ;;
 
18742
      *)
 
18743
        shlibpath_overrides_runpath=yes
 
18744
        ;;
 
18745
      esac
 
18746
  else
 
18747
    shlibpath_overrides_runpath=yes
 
18748
  fi
 
18749
  ;;
 
18750
 
 
18751
os2*)
 
18752
  libname_spec='$name'
 
18753
  shrext_cmds=".dll"
 
18754
  need_lib_prefix=no
 
18755
  library_names_spec='$libname${shared_ext} $libname.a'
 
18756
  dynamic_linker='OS/2 ld.exe'
 
18757
  shlibpath_var=LIBPATH
 
18758
  ;;
 
18759
 
 
18760
osf3* | osf4* | osf5*)
 
18761
  version_type=osf
 
18762
  need_lib_prefix=no
 
18763
  need_version=no
 
18764
  soname_spec='${libname}${release}${shared_ext}$major'
 
18765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18766
  shlibpath_var=LD_LIBRARY_PATH
 
18767
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18768
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18769
  ;;
 
18770
 
 
18771
sco3.2v5*)
 
18772
  version_type=osf
 
18773
  soname_spec='${libname}${release}${shared_ext}$major'
 
18774
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18775
  shlibpath_var=LD_LIBRARY_PATH
 
18776
  ;;
 
18777
 
 
18778
solaris*)
 
18779
  version_type=linux
 
18780
  need_lib_prefix=no
 
18781
  need_version=no
 
18782
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18783
  soname_spec='${libname}${release}${shared_ext}$major'
 
18784
  shlibpath_var=LD_LIBRARY_PATH
 
18785
  shlibpath_overrides_runpath=yes
 
18786
  hardcode_into_libs=yes
 
18787
  # ldd complains unless libraries are executable
 
18788
  postinstall_cmds='chmod +x $lib'
 
18789
  ;;
 
18790
 
 
18791
sunos4*)
 
18792
  version_type=sunos
 
18793
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18794
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18795
  shlibpath_var=LD_LIBRARY_PATH
 
18796
  shlibpath_overrides_runpath=yes
 
18797
  if test "$with_gnu_ld" = yes; then
 
18798
    need_lib_prefix=no
 
18799
  fi
 
18800
  need_version=yes
 
18801
  ;;
 
18802
 
 
18803
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18804
  version_type=linux
 
18805
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18806
  soname_spec='${libname}${release}${shared_ext}$major'
 
18807
  shlibpath_var=LD_LIBRARY_PATH
 
18808
  case $host_vendor in
 
18809
    sni)
 
18810
      shlibpath_overrides_runpath=no
 
18811
      need_lib_prefix=no
 
18812
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18813
      runpath_var=LD_RUN_PATH
 
18814
      ;;
 
18815
    siemens)
 
18816
      need_lib_prefix=no
 
18817
      ;;
 
18818
    motorola)
 
18819
      need_lib_prefix=no
 
18820
      need_version=no
 
18821
      shlibpath_overrides_runpath=no
 
18822
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18823
      ;;
 
18824
  esac
 
18825
  ;;
 
18826
 
 
18827
sysv4*MP*)
 
18828
  if test -d /usr/nec ;then
 
18829
    version_type=linux
 
18830
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18831
    soname_spec='$libname${shared_ext}.$major'
 
18832
    shlibpath_var=LD_LIBRARY_PATH
 
18833
  fi
 
18834
  ;;
 
18835
 
 
18836
uts4*)
 
18837
  version_type=linux
 
18838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18839
  soname_spec='${libname}${release}${shared_ext}$major'
 
18840
  shlibpath_var=LD_LIBRARY_PATH
 
18841
  ;;
 
18842
 
 
18843
*)
 
18844
  dynamic_linker=no
 
18845
  ;;
 
18846
esac
 
18847
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18848
echo "${ECHO_T}$dynamic_linker" >&6
 
18849
test "$dynamic_linker" = no && can_build_shared=no
 
18850
 
 
18851
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18852
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18853
hardcode_action_GCJ=
 
18854
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18855
   test -n "$runpath_var_GCJ" || \
 
18856
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18857
 
 
18858
  # We can hardcode non-existant directories.
 
18859
  if test "$hardcode_direct_GCJ" != no &&
 
18860
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18861
     # have to relink, otherwise we might link with an installed library
 
18862
     # when we should be linking with a yet-to-be-installed one
 
18863
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18864
     test "$hardcode_minus_L_GCJ" != no; then
 
18865
    # Linking always hardcodes the temporary library directory.
 
18866
    hardcode_action_GCJ=relink
 
18867
  else
 
18868
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18869
    hardcode_action_GCJ=immediate
 
18870
  fi
 
18871
else
 
18872
  # We cannot hardcode anything, or else we can only hardcode existing
 
18873
  # directories.
 
18874
  hardcode_action_GCJ=unsupported
 
18875
fi
 
18876
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18877
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18878
 
 
18879
if test "$hardcode_action_GCJ" = relink; then
 
18880
  # Fast installation is not supported
 
18881
  enable_fast_install=no
 
18882
elif test "$shlibpath_overrides_runpath" = yes ||
 
18883
     test "$enable_shared" = no; then
 
18884
  # Fast installation is not necessary
 
18885
  enable_fast_install=needless
 
18886
fi
 
18887
 
 
18888
striplib=
 
18889
old_striplib=
 
18890
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
18891
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
18892
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
18893
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
18894
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
18895
  echo "$as_me:$LINENO: result: yes" >&5
 
18896
echo "${ECHO_T}yes" >&6
 
18897
else
 
18898
# FIXME - insert some real tests, host_os isn't really good enough
 
18899
  case $host_os in
 
18900
   darwin*)
 
18901
       if test -n "$STRIP" ; then
 
18902
         striplib="$STRIP -x"
 
18903
         echo "$as_me:$LINENO: result: yes" >&5
 
18904
echo "${ECHO_T}yes" >&6
 
18905
       else
 
18906
  echo "$as_me:$LINENO: result: no" >&5
 
18907
echo "${ECHO_T}no" >&6
 
18908
fi
 
18909
       ;;
 
18910
   *)
 
18911
  echo "$as_me:$LINENO: result: no" >&5
 
18912
echo "${ECHO_T}no" >&6
 
18913
    ;;
 
18914
  esac
 
18915
fi
 
18916
 
 
18917
if test "x$enable_dlopen" != xyes; then
 
18918
  enable_dlopen=unknown
 
18919
  enable_dlopen_self=unknown
 
18920
  enable_dlopen_self_static=unknown
 
18921
else
 
18922
  lt_cv_dlopen=no
 
18923
  lt_cv_dlopen_libs=
 
18924
 
 
18925
  case $host_os in
 
18926
  beos*)
 
18927
    lt_cv_dlopen="load_add_on"
 
18928
    lt_cv_dlopen_libs=
 
18929
    lt_cv_dlopen_self=yes
 
18930
    ;;
 
18931
 
 
18932
  mingw* | pw32*)
 
18933
    lt_cv_dlopen="LoadLibrary"
 
18934
    lt_cv_dlopen_libs=
 
18935
   ;;
 
18936
 
 
18937
  cygwin*)
 
18938
    lt_cv_dlopen="dlopen"
 
18939
    lt_cv_dlopen_libs=
 
18940
   ;;
 
18941
 
 
18942
  darwin*)
 
18943
  # if libdl is installed we need to link against it
 
18944
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18945
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18946
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18947
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18948
else
 
18949
  ac_check_lib_save_LIBS=$LIBS
 
18950
LIBS="-ldl  $LIBS"
 
18951
cat >conftest.$ac_ext <<_ACEOF
 
18952
/* confdefs.h.  */
 
18953
_ACEOF
 
18954
cat confdefs.h >>conftest.$ac_ext
 
18955
cat >>conftest.$ac_ext <<_ACEOF
 
18956
/* end confdefs.h.  */
 
18957
 
 
18958
/* Override any gcc2 internal prototype to avoid an error.  */
 
18959
#ifdef __cplusplus
 
18960
extern "C"
 
18961
#endif
 
18962
/* We use char because int might match the return type of a gcc2
 
18963
   builtin and then its argument prototype would still apply.  */
 
18964
char dlopen ();
 
18965
int
 
18966
main ()
 
18967
{
 
18968
dlopen ();
 
18969
  ;
 
18970
  return 0;
 
18971
}
 
18972
_ACEOF
 
18973
rm -f conftest.$ac_objext conftest$ac_exeext
 
18974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18975
  (eval $ac_link) 2>conftest.er1
 
18976
  ac_status=$?
 
18977
  grep -v '^ *+' conftest.er1 >conftest.err
 
18978
  rm -f conftest.er1
 
18979
  cat conftest.err >&5
 
18980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18981
  (exit $ac_status); } &&
 
18982
         { ac_try='test -z "$ac_c_werror_flag"
 
18983
                         || test ! -s conftest.err'
 
18984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18985
  (eval $ac_try) 2>&5
 
18986
  ac_status=$?
 
18987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18988
  (exit $ac_status); }; } &&
 
18989
         { ac_try='test -s conftest$ac_exeext'
 
18990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18991
  (eval $ac_try) 2>&5
 
18992
  ac_status=$?
 
18993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18994
  (exit $ac_status); }; }; then
 
18995
  ac_cv_lib_dl_dlopen=yes
 
18996
else
 
18997
  echo "$as_me: failed program was:" >&5
 
18998
sed 's/^/| /' conftest.$ac_ext >&5
 
18999
 
 
19000
ac_cv_lib_dl_dlopen=no
 
19001
fi
 
19002
rm -f conftest.err conftest.$ac_objext \
 
19003
      conftest$ac_exeext conftest.$ac_ext
 
19004
LIBS=$ac_check_lib_save_LIBS
 
19005
fi
 
19006
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19007
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19008
if test $ac_cv_lib_dl_dlopen = yes; then
 
19009
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19010
else
 
19011
 
 
19012
    lt_cv_dlopen="dyld"
 
19013
    lt_cv_dlopen_libs=
 
19014
    lt_cv_dlopen_self=yes
 
19015
 
 
19016
fi
 
19017
 
 
19018
   ;;
 
19019
 
 
19020
  *)
 
19021
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
19022
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
19023
if test "${ac_cv_func_shl_load+set}" = set; then
 
19024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19025
else
 
19026
  cat >conftest.$ac_ext <<_ACEOF
 
19027
/* confdefs.h.  */
 
19028
_ACEOF
 
19029
cat confdefs.h >>conftest.$ac_ext
 
19030
cat >>conftest.$ac_ext <<_ACEOF
 
19031
/* end confdefs.h.  */
 
19032
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
19033
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19034
#define shl_load innocuous_shl_load
 
19035
 
 
19036
/* System header to define __stub macros and hopefully few prototypes,
 
19037
    which can conflict with char shl_load (); below.
 
19038
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19039
    <limits.h> exists even on freestanding compilers.  */
 
19040
 
 
19041
#ifdef __STDC__
 
19042
# include <limits.h>
 
19043
#else
 
19044
# include <assert.h>
 
19045
#endif
 
19046
 
 
19047
#undef shl_load
 
19048
 
 
19049
/* Override any gcc2 internal prototype to avoid an error.  */
 
19050
#ifdef __cplusplus
 
19051
extern "C"
 
19052
{
 
19053
#endif
 
19054
/* We use char because int might match the return type of a gcc2
 
19055
   builtin and then its argument prototype would still apply.  */
 
19056
char shl_load ();
 
19057
/* The GNU C library defines this for functions which it implements
 
19058
    to always fail with ENOSYS.  Some functions are actually named
 
19059
    something starting with __ and the normal name is an alias.  */
 
19060
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
19061
choke me
 
19062
#else
 
19063
char (*f) () = shl_load;
 
19064
#endif
 
19065
#ifdef __cplusplus
 
19066
}
 
19067
#endif
 
19068
 
 
19069
int
 
19070
main ()
 
19071
{
 
19072
return f != shl_load;
 
19073
  ;
 
19074
  return 0;
 
19075
}
 
19076
_ACEOF
 
19077
rm -f conftest.$ac_objext conftest$ac_exeext
 
19078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19079
  (eval $ac_link) 2>conftest.er1
 
19080
  ac_status=$?
 
19081
  grep -v '^ *+' conftest.er1 >conftest.err
 
19082
  rm -f conftest.er1
 
19083
  cat conftest.err >&5
 
19084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19085
  (exit $ac_status); } &&
 
19086
         { ac_try='test -z "$ac_c_werror_flag"
 
19087
                         || test ! -s conftest.err'
 
19088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19089
  (eval $ac_try) 2>&5
 
19090
  ac_status=$?
 
19091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19092
  (exit $ac_status); }; } &&
 
19093
         { ac_try='test -s conftest$ac_exeext'
 
19094
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19095
  (eval $ac_try) 2>&5
 
19096
  ac_status=$?
 
19097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19098
  (exit $ac_status); }; }; then
 
19099
  ac_cv_func_shl_load=yes
 
19100
else
 
19101
  echo "$as_me: failed program was:" >&5
 
19102
sed 's/^/| /' conftest.$ac_ext >&5
 
19103
 
 
19104
ac_cv_func_shl_load=no
 
19105
fi
 
19106
rm -f conftest.err conftest.$ac_objext \
 
19107
      conftest$ac_exeext conftest.$ac_ext
 
19108
fi
 
19109
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
19110
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
19111
if test $ac_cv_func_shl_load = yes; then
 
19112
  lt_cv_dlopen="shl_load"
 
19113
else
 
19114
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
19115
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
19116
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
19117
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19118
else
 
19119
  ac_check_lib_save_LIBS=$LIBS
 
19120
LIBS="-ldld  $LIBS"
 
19121
cat >conftest.$ac_ext <<_ACEOF
 
19122
/* confdefs.h.  */
 
19123
_ACEOF
 
19124
cat confdefs.h >>conftest.$ac_ext
 
19125
cat >>conftest.$ac_ext <<_ACEOF
 
19126
/* end confdefs.h.  */
 
19127
 
 
19128
/* Override any gcc2 internal prototype to avoid an error.  */
 
19129
#ifdef __cplusplus
 
19130
extern "C"
 
19131
#endif
 
19132
/* We use char because int might match the return type of a gcc2
 
19133
   builtin and then its argument prototype would still apply.  */
 
19134
char shl_load ();
 
19135
int
 
19136
main ()
 
19137
{
 
19138
shl_load ();
 
19139
  ;
 
19140
  return 0;
 
19141
}
 
19142
_ACEOF
 
19143
rm -f conftest.$ac_objext conftest$ac_exeext
 
19144
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19145
  (eval $ac_link) 2>conftest.er1
 
19146
  ac_status=$?
 
19147
  grep -v '^ *+' conftest.er1 >conftest.err
 
19148
  rm -f conftest.er1
 
19149
  cat conftest.err >&5
 
19150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19151
  (exit $ac_status); } &&
 
19152
         { ac_try='test -z "$ac_c_werror_flag"
 
19153
                         || test ! -s conftest.err'
 
19154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19155
  (eval $ac_try) 2>&5
 
19156
  ac_status=$?
 
19157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19158
  (exit $ac_status); }; } &&
 
19159
         { ac_try='test -s conftest$ac_exeext'
 
19160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19161
  (eval $ac_try) 2>&5
 
19162
  ac_status=$?
 
19163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19164
  (exit $ac_status); }; }; then
 
19165
  ac_cv_lib_dld_shl_load=yes
 
19166
else
 
19167
  echo "$as_me: failed program was:" >&5
 
19168
sed 's/^/| /' conftest.$ac_ext >&5
 
19169
 
 
19170
ac_cv_lib_dld_shl_load=no
 
19171
fi
 
19172
rm -f conftest.err conftest.$ac_objext \
 
19173
      conftest$ac_exeext conftest.$ac_ext
 
19174
LIBS=$ac_check_lib_save_LIBS
 
19175
fi
 
19176
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
19177
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
19178
if test $ac_cv_lib_dld_shl_load = yes; then
 
19179
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
19180
else
 
19181
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
19182
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
19183
if test "${ac_cv_func_dlopen+set}" = set; then
 
19184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19185
else
 
19186
  cat >conftest.$ac_ext <<_ACEOF
 
19187
/* confdefs.h.  */
 
19188
_ACEOF
 
19189
cat confdefs.h >>conftest.$ac_ext
 
19190
cat >>conftest.$ac_ext <<_ACEOF
 
19191
/* end confdefs.h.  */
 
19192
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
19193
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19194
#define dlopen innocuous_dlopen
 
19195
 
 
19196
/* System header to define __stub macros and hopefully few prototypes,
 
19197
    which can conflict with char dlopen (); below.
 
19198
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19199
    <limits.h> exists even on freestanding compilers.  */
 
19200
 
 
19201
#ifdef __STDC__
 
19202
# include <limits.h>
 
19203
#else
 
19204
# include <assert.h>
 
19205
#endif
 
19206
 
 
19207
#undef dlopen
 
19208
 
 
19209
/* Override any gcc2 internal prototype to avoid an error.  */
 
19210
#ifdef __cplusplus
 
19211
extern "C"
 
19212
{
 
19213
#endif
 
19214
/* We use char because int might match the return type of a gcc2
 
19215
   builtin and then its argument prototype would still apply.  */
 
19216
char dlopen ();
 
19217
/* The GNU C library defines this for functions which it implements
 
19218
    to always fail with ENOSYS.  Some functions are actually named
 
19219
    something starting with __ and the normal name is an alias.  */
 
19220
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
19221
choke me
 
19222
#else
 
19223
char (*f) () = dlopen;
 
19224
#endif
 
19225
#ifdef __cplusplus
 
19226
}
 
19227
#endif
 
19228
 
 
19229
int
 
19230
main ()
 
19231
{
 
19232
return f != dlopen;
 
19233
  ;
 
19234
  return 0;
 
19235
}
 
19236
_ACEOF
 
19237
rm -f conftest.$ac_objext conftest$ac_exeext
 
19238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19239
  (eval $ac_link) 2>conftest.er1
 
19240
  ac_status=$?
 
19241
  grep -v '^ *+' conftest.er1 >conftest.err
 
19242
  rm -f conftest.er1
 
19243
  cat conftest.err >&5
 
19244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19245
  (exit $ac_status); } &&
 
19246
         { ac_try='test -z "$ac_c_werror_flag"
 
19247
                         || test ! -s conftest.err'
 
19248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19249
  (eval $ac_try) 2>&5
 
19250
  ac_status=$?
 
19251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19252
  (exit $ac_status); }; } &&
 
19253
         { ac_try='test -s conftest$ac_exeext'
 
19254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19255
  (eval $ac_try) 2>&5
 
19256
  ac_status=$?
 
19257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19258
  (exit $ac_status); }; }; then
 
19259
  ac_cv_func_dlopen=yes
 
19260
else
 
19261
  echo "$as_me: failed program was:" >&5
 
19262
sed 's/^/| /' conftest.$ac_ext >&5
 
19263
 
 
19264
ac_cv_func_dlopen=no
 
19265
fi
 
19266
rm -f conftest.err conftest.$ac_objext \
 
19267
      conftest$ac_exeext conftest.$ac_ext
 
19268
fi
 
19269
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
19270
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
19271
if test $ac_cv_func_dlopen = yes; then
 
19272
  lt_cv_dlopen="dlopen"
 
19273
else
 
19274
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19275
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19276
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19278
else
 
19279
  ac_check_lib_save_LIBS=$LIBS
 
19280
LIBS="-ldl  $LIBS"
 
19281
cat >conftest.$ac_ext <<_ACEOF
 
19282
/* confdefs.h.  */
 
19283
_ACEOF
 
19284
cat confdefs.h >>conftest.$ac_ext
 
19285
cat >>conftest.$ac_ext <<_ACEOF
 
19286
/* end confdefs.h.  */
 
19287
 
 
19288
/* Override any gcc2 internal prototype to avoid an error.  */
 
19289
#ifdef __cplusplus
 
19290
extern "C"
 
19291
#endif
 
19292
/* We use char because int might match the return type of a gcc2
 
19293
   builtin and then its argument prototype would still apply.  */
 
19294
char dlopen ();
 
19295
int
 
19296
main ()
 
19297
{
 
19298
dlopen ();
 
19299
  ;
 
19300
  return 0;
 
19301
}
 
19302
_ACEOF
 
19303
rm -f conftest.$ac_objext conftest$ac_exeext
 
19304
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19305
  (eval $ac_link) 2>conftest.er1
 
19306
  ac_status=$?
 
19307
  grep -v '^ *+' conftest.er1 >conftest.err
 
19308
  rm -f conftest.er1
 
19309
  cat conftest.err >&5
 
19310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19311
  (exit $ac_status); } &&
 
19312
         { ac_try='test -z "$ac_c_werror_flag"
 
19313
                         || test ! -s conftest.err'
 
19314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19315
  (eval $ac_try) 2>&5
 
19316
  ac_status=$?
 
19317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19318
  (exit $ac_status); }; } &&
 
19319
         { ac_try='test -s conftest$ac_exeext'
 
19320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19321
  (eval $ac_try) 2>&5
 
19322
  ac_status=$?
 
19323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19324
  (exit $ac_status); }; }; then
 
19325
  ac_cv_lib_dl_dlopen=yes
 
19326
else
 
19327
  echo "$as_me: failed program was:" >&5
 
19328
sed 's/^/| /' conftest.$ac_ext >&5
 
19329
 
 
19330
ac_cv_lib_dl_dlopen=no
 
19331
fi
 
19332
rm -f conftest.err conftest.$ac_objext \
 
19333
      conftest$ac_exeext conftest.$ac_ext
 
19334
LIBS=$ac_check_lib_save_LIBS
 
19335
fi
 
19336
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19337
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19338
if test $ac_cv_lib_dl_dlopen = yes; then
 
19339
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19340
else
 
19341
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
19342
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
19343
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
19344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19345
else
 
19346
  ac_check_lib_save_LIBS=$LIBS
 
19347
LIBS="-lsvld  $LIBS"
 
19348
cat >conftest.$ac_ext <<_ACEOF
 
19349
/* confdefs.h.  */
 
19350
_ACEOF
 
19351
cat confdefs.h >>conftest.$ac_ext
 
19352
cat >>conftest.$ac_ext <<_ACEOF
 
19353
/* end confdefs.h.  */
 
19354
 
 
19355
/* Override any gcc2 internal prototype to avoid an error.  */
 
19356
#ifdef __cplusplus
 
19357
extern "C"
 
19358
#endif
 
19359
/* We use char because int might match the return type of a gcc2
 
19360
   builtin and then its argument prototype would still apply.  */
 
19361
char dlopen ();
 
19362
int
 
19363
main ()
 
19364
{
 
19365
dlopen ();
 
19366
  ;
 
19367
  return 0;
 
19368
}
 
19369
_ACEOF
 
19370
rm -f conftest.$ac_objext conftest$ac_exeext
 
19371
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19372
  (eval $ac_link) 2>conftest.er1
 
19373
  ac_status=$?
 
19374
  grep -v '^ *+' conftest.er1 >conftest.err
 
19375
  rm -f conftest.er1
 
19376
  cat conftest.err >&5
 
19377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19378
  (exit $ac_status); } &&
 
19379
         { ac_try='test -z "$ac_c_werror_flag"
 
19380
                         || test ! -s conftest.err'
 
19381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19382
  (eval $ac_try) 2>&5
 
19383
  ac_status=$?
 
19384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19385
  (exit $ac_status); }; } &&
 
19386
         { ac_try='test -s conftest$ac_exeext'
 
19387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19388
  (eval $ac_try) 2>&5
 
19389
  ac_status=$?
 
19390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19391
  (exit $ac_status); }; }; then
 
19392
  ac_cv_lib_svld_dlopen=yes
 
19393
else
 
19394
  echo "$as_me: failed program was:" >&5
 
19395
sed 's/^/| /' conftest.$ac_ext >&5
 
19396
 
 
19397
ac_cv_lib_svld_dlopen=no
 
19398
fi
 
19399
rm -f conftest.err conftest.$ac_objext \
 
19400
      conftest$ac_exeext conftest.$ac_ext
 
19401
LIBS=$ac_check_lib_save_LIBS
 
19402
fi
 
19403
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
19404
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
19405
if test $ac_cv_lib_svld_dlopen = yes; then
 
19406
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
19407
else
 
19408
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
19409
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
19410
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
19411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19412
else
 
19413
  ac_check_lib_save_LIBS=$LIBS
 
19414
LIBS="-ldld  $LIBS"
 
19415
cat >conftest.$ac_ext <<_ACEOF
 
19416
/* confdefs.h.  */
 
19417
_ACEOF
 
19418
cat confdefs.h >>conftest.$ac_ext
 
19419
cat >>conftest.$ac_ext <<_ACEOF
 
19420
/* end confdefs.h.  */
 
19421
 
 
19422
/* Override any gcc2 internal prototype to avoid an error.  */
 
19423
#ifdef __cplusplus
 
19424
extern "C"
 
19425
#endif
 
19426
/* We use char because int might match the return type of a gcc2
 
19427
   builtin and then its argument prototype would still apply.  */
 
19428
char dld_link ();
 
19429
int
 
19430
main ()
 
19431
{
 
19432
dld_link ();
 
19433
  ;
 
19434
  return 0;
 
19435
}
 
19436
_ACEOF
 
19437
rm -f conftest.$ac_objext conftest$ac_exeext
 
19438
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19439
  (eval $ac_link) 2>conftest.er1
 
19440
  ac_status=$?
 
19441
  grep -v '^ *+' conftest.er1 >conftest.err
 
19442
  rm -f conftest.er1
 
19443
  cat conftest.err >&5
 
19444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19445
  (exit $ac_status); } &&
 
19446
         { ac_try='test -z "$ac_c_werror_flag"
 
19447
                         || test ! -s conftest.err'
 
19448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19449
  (eval $ac_try) 2>&5
 
19450
  ac_status=$?
 
19451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19452
  (exit $ac_status); }; } &&
 
19453
         { ac_try='test -s conftest$ac_exeext'
 
19454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19455
  (eval $ac_try) 2>&5
 
19456
  ac_status=$?
 
19457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19458
  (exit $ac_status); }; }; then
 
19459
  ac_cv_lib_dld_dld_link=yes
 
19460
else
 
19461
  echo "$as_me: failed program was:" >&5
 
19462
sed 's/^/| /' conftest.$ac_ext >&5
 
19463
 
 
19464
ac_cv_lib_dld_dld_link=no
 
19465
fi
 
19466
rm -f conftest.err conftest.$ac_objext \
 
19467
      conftest$ac_exeext conftest.$ac_ext
 
19468
LIBS=$ac_check_lib_save_LIBS
 
19469
fi
 
19470
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
19471
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
19472
if test $ac_cv_lib_dld_dld_link = yes; then
 
19473
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
19474
fi
 
19475
 
 
19476
 
 
19477
fi
 
19478
 
 
19479
 
 
19480
fi
 
19481
 
 
19482
 
 
19483
fi
 
19484
 
 
19485
 
 
19486
fi
 
19487
 
 
19488
 
 
19489
fi
 
19490
 
 
19491
    ;;
 
19492
  esac
 
19493
 
 
19494
  if test "x$lt_cv_dlopen" != xno; then
 
19495
    enable_dlopen=yes
 
19496
  else
 
19497
    enable_dlopen=no
 
19498
  fi
 
19499
 
 
19500
  case $lt_cv_dlopen in
 
19501
  dlopen)
 
19502
    save_CPPFLAGS="$CPPFLAGS"
 
19503
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
19504
 
 
19505
    save_LDFLAGS="$LDFLAGS"
 
19506
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
19507
 
 
19508
    save_LIBS="$LIBS"
 
19509
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
19510
 
 
19511
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
19512
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
19513
if test "${lt_cv_dlopen_self+set}" = set; then
 
19514
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19515
else
 
19516
          if test "$cross_compiling" = yes; then :
 
19517
  lt_cv_dlopen_self=cross
 
19518
else
 
19519
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19520
  lt_status=$lt_dlunknown
 
19521
  cat > conftest.$ac_ext <<EOF
 
19522
#line 19522 "configure"
 
19523
#include "confdefs.h"
 
19524
 
 
19525
#if HAVE_DLFCN_H
 
19526
#include <dlfcn.h>
 
19527
#endif
 
19528
 
 
19529
#include <stdio.h>
 
19530
 
 
19531
#ifdef RTLD_GLOBAL
 
19532
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19533
#else
 
19534
#  ifdef DL_GLOBAL
 
19535
#    define LT_DLGLOBAL         DL_GLOBAL
 
19536
#  else
 
19537
#    define LT_DLGLOBAL         0
 
19538
#  endif
 
19539
#endif
 
19540
 
 
19541
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19542
   find out it does not work in some platform. */
 
19543
#ifndef LT_DLLAZY_OR_NOW
 
19544
#  ifdef RTLD_LAZY
 
19545
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19546
#  else
 
19547
#    ifdef DL_LAZY
 
19548
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19549
#    else
 
19550
#      ifdef RTLD_NOW
 
19551
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19552
#      else
 
19553
#        ifdef DL_NOW
 
19554
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19555
#        else
 
19556
#          define LT_DLLAZY_OR_NOW      0
 
19557
#        endif
 
19558
#      endif
 
19559
#    endif
 
19560
#  endif
 
19561
#endif
 
19562
 
 
19563
#ifdef __cplusplus
 
19564
extern "C" void exit (int);
 
19565
#endif
 
19566
 
 
19567
void fnord() { int i=42;}
 
19568
int main ()
 
19569
{
 
19570
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19571
  int status = $lt_dlunknown;
 
19572
 
 
19573
  if (self)
 
19574
    {
 
19575
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19576
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19577
      /* dlclose (self); */
 
19578
    }
 
19579
 
 
19580
    exit (status);
 
19581
}
 
19582
EOF
 
19583
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19584
  (eval $ac_link) 2>&5
 
19585
  ac_status=$?
 
19586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19587
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19588
    (./conftest; exit; ) 2>/dev/null
 
19589
    lt_status=$?
 
19590
    case x$lt_status in
 
19591
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
19592
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
19593
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
19594
    esac
 
19595
  else :
 
19596
    # compilation failed
 
19597
    lt_cv_dlopen_self=no
 
19598
  fi
 
19599
fi
 
19600
rm -fr conftest*
 
19601
 
 
19602
 
 
19603
fi
 
19604
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
19605
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
19606
 
 
19607
    if test "x$lt_cv_dlopen_self" = xyes; then
 
19608
      LDFLAGS="$LDFLAGS $link_static_flag"
 
19609
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
19610
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
19611
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
19612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19613
else
 
19614
          if test "$cross_compiling" = yes; then :
 
19615
  lt_cv_dlopen_self_static=cross
 
19616
else
 
19617
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19618
  lt_status=$lt_dlunknown
 
19619
  cat > conftest.$ac_ext <<EOF
 
19620
#line 19620 "configure"
 
19621
#include "confdefs.h"
 
19622
 
 
19623
#if HAVE_DLFCN_H
 
19624
#include <dlfcn.h>
 
19625
#endif
 
19626
 
 
19627
#include <stdio.h>
 
19628
 
 
19629
#ifdef RTLD_GLOBAL
 
19630
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19631
#else
 
19632
#  ifdef DL_GLOBAL
 
19633
#    define LT_DLGLOBAL         DL_GLOBAL
 
19634
#  else
 
19635
#    define LT_DLGLOBAL         0
 
19636
#  endif
 
19637
#endif
 
19638
 
 
19639
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19640
   find out it does not work in some platform. */
 
19641
#ifndef LT_DLLAZY_OR_NOW
 
19642
#  ifdef RTLD_LAZY
 
19643
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19644
#  else
 
19645
#    ifdef DL_LAZY
 
19646
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19647
#    else
 
19648
#      ifdef RTLD_NOW
 
19649
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19650
#      else
 
19651
#        ifdef DL_NOW
 
19652
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19653
#        else
 
19654
#          define LT_DLLAZY_OR_NOW      0
 
19655
#        endif
 
19656
#      endif
 
19657
#    endif
 
19658
#  endif
 
19659
#endif
 
19660
 
 
19661
#ifdef __cplusplus
 
19662
extern "C" void exit (int);
 
19663
#endif
 
19664
 
 
19665
void fnord() { int i=42;}
 
19666
int main ()
 
19667
{
 
19668
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19669
  int status = $lt_dlunknown;
 
19670
 
 
19671
  if (self)
 
19672
    {
 
19673
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19674
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19675
      /* dlclose (self); */
 
19676
    }
 
19677
 
 
19678
    exit (status);
 
19679
}
 
19680
EOF
 
19681
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19682
  (eval $ac_link) 2>&5
 
19683
  ac_status=$?
 
19684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19685
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19686
    (./conftest; exit; ) 2>/dev/null
 
19687
    lt_status=$?
 
19688
    case x$lt_status in
 
19689
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
19690
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
19691
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
19692
    esac
 
19693
  else :
 
19694
    # compilation failed
 
19695
    lt_cv_dlopen_self_static=no
 
19696
  fi
 
19697
fi
 
19698
rm -fr conftest*
 
19699
 
 
19700
 
 
19701
fi
 
19702
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
19703
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
19704
    fi
 
19705
 
 
19706
    CPPFLAGS="$save_CPPFLAGS"
 
19707
    LDFLAGS="$save_LDFLAGS"
 
19708
    LIBS="$save_LIBS"
 
19709
    ;;
 
19710
  esac
 
19711
 
 
19712
  case $lt_cv_dlopen_self in
 
19713
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
19714
  *) enable_dlopen_self=unknown ;;
 
19715
  esac
 
19716
 
 
19717
  case $lt_cv_dlopen_self_static in
 
19718
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
19719
  *) enable_dlopen_self_static=unknown ;;
 
19720
  esac
 
19721
fi
 
19722
 
 
19723
 
 
19724
# The else clause should only fire when bootstrapping the
 
19725
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19726
# with your package, and you will get complaints that there are
 
19727
# no rules to generate ltmain.sh.
 
19728
if test -f "$ltmain"; then
 
19729
  # See if we are running on zsh, and set the options which allow our commands through
 
19730
  # without removal of \ escapes.
 
19731
  if test -n "${ZSH_VERSION+set}" ; then
 
19732
    setopt NO_GLOB_SUBST
 
19733
  fi
 
19734
  # Now quote all the things that may contain metacharacters while being
 
19735
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19736
  # variables and quote the copies for generation of the libtool script.
 
19737
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19738
    SED SHELL STRIP \
 
19739
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19740
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19741
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19742
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19743
    lt_cv_sys_global_symbol_to_c_name_address \
 
19744
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19745
    old_postinstall_cmds old_postuninstall_cmds \
 
19746
    compiler_GCJ \
 
19747
    CC_GCJ \
 
19748
    LD_GCJ \
 
19749
    lt_prog_compiler_wl_GCJ \
 
19750
    lt_prog_compiler_pic_GCJ \
 
19751
    lt_prog_compiler_static_GCJ \
 
19752
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19753
    export_dynamic_flag_spec_GCJ \
 
19754
    thread_safe_flag_spec_GCJ \
 
19755
    whole_archive_flag_spec_GCJ \
 
19756
    enable_shared_with_static_runtimes_GCJ \
 
19757
    old_archive_cmds_GCJ \
 
19758
    old_archive_from_new_cmds_GCJ \
 
19759
    predep_objects_GCJ \
 
19760
    postdep_objects_GCJ \
 
19761
    predeps_GCJ \
 
19762
    postdeps_GCJ \
 
19763
    compiler_lib_search_path_GCJ \
 
19764
    archive_cmds_GCJ \
 
19765
    archive_expsym_cmds_GCJ \
 
19766
    postinstall_cmds_GCJ \
 
19767
    postuninstall_cmds_GCJ \
 
19768
    old_archive_from_expsyms_cmds_GCJ \
 
19769
    allow_undefined_flag_GCJ \
 
19770
    no_undefined_flag_GCJ \
 
19771
    export_symbols_cmds_GCJ \
 
19772
    hardcode_libdir_flag_spec_GCJ \
 
19773
    hardcode_libdir_flag_spec_ld_GCJ \
 
19774
    hardcode_libdir_separator_GCJ \
 
19775
    hardcode_automatic_GCJ \
 
19776
    module_cmds_GCJ \
 
19777
    module_expsym_cmds_GCJ \
 
19778
    lt_cv_prog_compiler_c_o_GCJ \
 
19779
    exclude_expsyms_GCJ \
 
19780
    include_expsyms_GCJ; do
 
19781
 
 
19782
    case $var in
 
19783
    old_archive_cmds_GCJ | \
 
19784
    old_archive_from_new_cmds_GCJ | \
 
19785
    archive_cmds_GCJ | \
 
19786
    archive_expsym_cmds_GCJ | \
 
19787
    module_cmds_GCJ | \
 
19788
    module_expsym_cmds_GCJ | \
 
19789
    old_archive_from_expsyms_cmds_GCJ | \
 
19790
    export_symbols_cmds_GCJ | \
 
19791
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19792
    postinstall_cmds | postuninstall_cmds | \
 
19793
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19794
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19795
      # Double-quote double-evaled strings.
 
19796
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19797
      ;;
 
19798
    *)
 
19799
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19800
      ;;
 
19801
    esac
 
19802
  done
 
19803
 
 
19804
  case $lt_echo in
 
19805
  *'\$0 --fallback-echo"')
 
19806
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19807
    ;;
 
19808
  esac
 
19809
 
 
19810
cfgfile="$ofile"
 
19811
 
 
19812
  cat <<__EOF__ >> "$cfgfile"
 
19813
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19814
 
 
19815
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19816
 
 
19817
# Shell to use when invoking shell scripts.
 
19818
SHELL=$lt_SHELL
 
19819
 
 
19820
# Whether or not to build shared libraries.
 
19821
build_libtool_libs=$enable_shared
 
19822
 
 
19823
# Whether or not to build static libraries.
 
19824
build_old_libs=$enable_static
 
19825
 
 
19826
# Whether or not to add -lc for building shared libraries.
 
19827
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19828
 
 
19829
# Whether or not to disallow shared libs when runtime libs are static
 
19830
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19831
 
 
19832
# Whether or not to optimize for fast installation.
 
19833
fast_install=$enable_fast_install
 
19834
 
 
19835
# The host system.
 
19836
host_alias=$host_alias
 
19837
host=$host
 
19838
 
 
19839
# An echo program that does not interpret backslashes.
 
19840
echo=$lt_echo
 
19841
 
 
19842
# The archiver.
 
19843
AR=$lt_AR
 
19844
AR_FLAGS=$lt_AR_FLAGS
 
19845
 
 
19846
# A C compiler.
 
19847
LTCC=$lt_LTCC
 
19848
 
 
19849
# A language-specific compiler.
 
19850
CC=$lt_compiler_GCJ
 
19851
 
 
19852
# Is the compiler the GNU C compiler?
 
19853
with_gcc=$GCC_GCJ
 
19854
 
 
19855
# An ERE matcher.
 
19856
EGREP=$lt_EGREP
 
19857
 
 
19858
# The linker used to build libraries.
 
19859
LD=$lt_LD_GCJ
 
19860
 
 
19861
# Whether we need hard or soft links.
 
19862
LN_S=$lt_LN_S
 
19863
 
 
19864
# A BSD-compatible nm program.
 
19865
NM=$lt_NM
 
19866
 
 
19867
# A symbol stripping program
 
19868
STRIP=$lt_STRIP
 
19869
 
 
19870
# Used to examine libraries when file_magic_cmd begins "file"
 
19871
MAGIC_CMD=$MAGIC_CMD
 
19872
 
 
19873
# Used on cygwin: DLL creation program.
 
19874
DLLTOOL="$DLLTOOL"
 
19875
 
 
19876
# Used on cygwin: object dumper.
 
19877
OBJDUMP="$OBJDUMP"
 
19878
 
 
19879
# Used on cygwin: assembler.
 
19880
AS="$AS"
 
19881
 
 
19882
# The name of the directory that contains temporary libtool files.
 
19883
objdir=$objdir
 
19884
 
 
19885
# How to create reloadable object files.
 
19886
reload_flag=$lt_reload_flag
 
19887
reload_cmds=$lt_reload_cmds
 
19888
 
 
19889
# How to pass a linker flag through the compiler.
 
19890
wl=$lt_lt_prog_compiler_wl_GCJ
 
19891
 
 
19892
# Object file suffix (normally "o").
 
19893
objext="$ac_objext"
 
19894
 
 
19895
# Old archive suffix (normally "a").
 
19896
libext="$libext"
 
19897
 
 
19898
# Shared library suffix (normally ".so").
 
19899
shrext_cmds='$shrext_cmds'
 
19900
 
 
19901
# Executable file suffix (normally "").
 
19902
exeext="$exeext"
 
19903
 
 
19904
# Additional compiler flags for building library objects.
 
19905
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19906
pic_mode=$pic_mode
 
19907
 
 
19908
# What is the maximum length of a command?
 
19909
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19910
 
 
19911
# Does compiler simultaneously support -c and -o options?
 
19912
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19913
 
 
19914
# Must we lock files when doing compilation ?
 
19915
need_locks=$lt_need_locks
 
19916
 
 
19917
# Do we need the lib prefix for modules?
 
19918
need_lib_prefix=$need_lib_prefix
 
19919
 
 
19920
# Do we need a version for libraries?
 
19921
need_version=$need_version
 
19922
 
 
19923
# Whether dlopen is supported.
 
19924
dlopen_support=$enable_dlopen
 
19925
 
 
19926
# Whether dlopen of programs is supported.
 
19927
dlopen_self=$enable_dlopen_self
 
19928
 
 
19929
# Whether dlopen of statically linked programs is supported.
 
19930
dlopen_self_static=$enable_dlopen_self_static
 
19931
 
 
19932
# Compiler flag to prevent dynamic linking.
 
19933
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19934
 
 
19935
# Compiler flag to turn off builtin functions.
 
19936
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19937
 
 
19938
# Compiler flag to allow reflexive dlopens.
 
19939
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19940
 
 
19941
# Compiler flag to generate shared objects directly from archives.
 
19942
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19943
 
 
19944
# Compiler flag to generate thread-safe objects.
 
19945
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19946
 
 
19947
# Library versioning type.
 
19948
version_type=$version_type
 
19949
 
 
19950
# Format of library name prefix.
 
19951
libname_spec=$lt_libname_spec
 
19952
 
 
19953
# List of archive names.  First name is the real one, the rest are links.
 
19954
# The last name is the one that the linker finds with -lNAME.
 
19955
library_names_spec=$lt_library_names_spec
 
19956
 
 
19957
# The coded name of the library, if different from the real name.
 
19958
soname_spec=$lt_soname_spec
 
19959
 
 
19960
# Commands used to build and install an old-style archive.
 
19961
RANLIB=$lt_RANLIB
 
19962
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19963
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19964
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19965
 
 
19966
# Create an old-style archive from a shared archive.
 
19967
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19968
 
 
19969
# Create a temporary old-style archive to link instead of a shared archive.
 
19970
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19971
 
 
19972
# Commands used to build and install a shared archive.
 
19973
archive_cmds=$lt_archive_cmds_GCJ
 
19974
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19975
postinstall_cmds=$lt_postinstall_cmds
 
19976
postuninstall_cmds=$lt_postuninstall_cmds
 
19977
 
 
19978
# Commands used to build a loadable module (assumed same as above if empty)
 
19979
module_cmds=$lt_module_cmds_GCJ
 
19980
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19981
 
 
19982
# Commands to strip libraries.
 
19983
old_striplib=$lt_old_striplib
 
19984
striplib=$lt_striplib
 
19985
 
 
19986
# Dependencies to place before the objects being linked to create a
 
19987
# shared library.
 
19988
predep_objects=$lt_predep_objects_GCJ
 
19989
 
 
19990
# Dependencies to place after the objects being linked to create a
 
19991
# shared library.
 
19992
postdep_objects=$lt_postdep_objects_GCJ
 
19993
 
 
19994
# Dependencies to place before the objects being linked to create a
 
19995
# shared library.
 
19996
predeps=$lt_predeps_GCJ
 
19997
 
 
19998
# Dependencies to place after the objects being linked to create a
 
19999
# shared library.
 
20000
postdeps=$lt_postdeps_GCJ
 
20001
 
 
20002
# The library search path used internally by the compiler when linking
 
20003
# a shared library.
 
20004
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
20005
 
 
20006
# Method to check whether dependent libraries are shared objects.
 
20007
deplibs_check_method=$lt_deplibs_check_method
 
20008
 
 
20009
# Command to use when deplibs_check_method == file_magic.
 
20010
file_magic_cmd=$lt_file_magic_cmd
 
20011
 
 
20012
# Flag that allows shared libraries with undefined symbols to be built.
 
20013
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
20014
 
 
20015
# Flag that forces no undefined symbols.
 
20016
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
20017
 
 
20018
# Commands used to finish a libtool library installation in a directory.
 
20019
finish_cmds=$lt_finish_cmds
 
20020
 
 
20021
# Same as above, but a single script fragment to be evaled but not shown.
 
20022
finish_eval=$lt_finish_eval
 
20023
 
 
20024
# Take the output of nm and produce a listing of raw symbols and C names.
 
20025
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20026
 
 
20027
# Transform the output of nm in a proper C declaration
 
20028
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20029
 
 
20030
# Transform the output of nm in a C name address pair
 
20031
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20032
 
 
20033
# This is the shared library runtime path variable.
 
20034
runpath_var=$runpath_var
 
20035
 
 
20036
# This is the shared library path variable.
 
20037
shlibpath_var=$shlibpath_var
 
20038
 
 
20039
# Is shlibpath searched before the hard-coded library search path?
 
20040
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20041
 
 
20042
# How to hardcode a shared library path into an executable.
 
20043
hardcode_action=$hardcode_action_GCJ
 
20044
 
 
20045
# Whether we should hardcode library paths into libraries.
 
20046
hardcode_into_libs=$hardcode_into_libs
 
20047
 
 
20048
# Flag to hardcode \$libdir into a binary during linking.
 
20049
# This must work even if \$libdir does not exist.
 
20050
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
20051
 
 
20052
# If ld is used when linking, flag to hardcode \$libdir into
 
20053
# a binary during linking. This must work even if \$libdir does
 
20054
# not exist.
 
20055
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
20056
 
 
20057
# Whether we need a single -rpath flag with a separated argument.
 
20058
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
20059
 
 
20060
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20061
# resulting binary.
 
20062
hardcode_direct=$hardcode_direct_GCJ
 
20063
 
 
20064
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20065
# resulting binary.
 
20066
hardcode_minus_L=$hardcode_minus_L_GCJ
 
20067
 
 
20068
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20069
# the resulting binary.
 
20070
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
20071
 
 
20072
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20073
# and all subsequent libraries and executables linked against it.
 
20074
hardcode_automatic=$hardcode_automatic_GCJ
 
20075
 
 
20076
# Variables whose values should be saved in libtool wrapper scripts and
 
20077
# restored at relink time.
 
20078
variables_saved_for_relink="$variables_saved_for_relink"
 
20079
 
 
20080
# Whether libtool must link a program against all its dependency libraries.
 
20081
link_all_deplibs=$link_all_deplibs_GCJ
 
20082
 
 
20083
# Compile-time system search path for libraries
 
20084
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20085
 
 
20086
# Run-time system search path for libraries
 
20087
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20088
 
 
20089
# Fix the shell variable \$srcfile for the compiler.
 
20090
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
20091
 
 
20092
# Set to yes if exported symbols are required.
 
20093
always_export_symbols=$always_export_symbols_GCJ
 
20094
 
 
20095
# The commands to list exported symbols.
 
20096
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
20097
 
 
20098
# The commands to extract the exported symbol list from a shared archive.
 
20099
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20100
 
 
20101
# Symbols that should not be listed in the preloaded symbols.
 
20102
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
20103
 
 
20104
# Symbols that must always be exported.
 
20105
include_expsyms=$lt_include_expsyms_GCJ
 
20106
 
 
20107
# ### END LIBTOOL TAG CONFIG: $tagname
 
20108
 
 
20109
__EOF__
 
20110
 
 
20111
 
 
20112
else
 
20113
  # If there is no Makefile yet, we rely on a make rule to execute
 
20114
  # `config.status --recheck' to rerun these tests and create the
 
20115
  # libtool script then.
 
20116
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20117
  if test -f "$ltmain_in"; then
 
20118
    test -f Makefile && make "$ltmain"
 
20119
  fi
 
20120
fi
 
20121
 
 
20122
 
 
20123
ac_ext=c
 
20124
ac_cpp='$CPP $CPPFLAGS'
 
20125
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20126
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20127
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20128
 
 
20129
CC="$lt_save_CC"
 
20130
 
 
20131
        else
 
20132
          tagname=""
 
20133
        fi
 
20134
        ;;
 
20135
 
 
20136
      RC)
 
20137
 
 
20138
 
 
20139
 
 
20140
# Source file extension for RC test sources.
 
20141
ac_ext=rc
 
20142
 
 
20143
# Object file extension for compiled RC test sources.
 
20144
objext=o
 
20145
objext_RC=$objext
 
20146
 
 
20147
# Code to be used in simple compile tests
 
20148
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
20149
 
 
20150
# Code to be used in simple link tests
 
20151
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
20152
 
 
20153
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
20154
 
 
20155
# If no C compiler was specified, use CC.
 
20156
LTCC=${LTCC-"$CC"}
 
20157
 
 
20158
# Allow CC to be a program name with arguments.
 
20159
compiler=$CC
 
20160
 
 
20161
 
 
20162
# Allow CC to be a program name with arguments.
 
20163
lt_save_CC="$CC"
 
20164
CC=${RC-"windres"}
 
20165
compiler=$CC
 
20166
compiler_RC=$CC
 
20167
lt_cv_prog_compiler_c_o_RC=yes
 
20168
 
 
20169
# The else clause should only fire when bootstrapping the
 
20170
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20171
# with your package, and you will get complaints that there are
 
20172
# no rules to generate ltmain.sh.
 
20173
if test -f "$ltmain"; then
 
20174
  # See if we are running on zsh, and set the options which allow our commands through
 
20175
  # without removal of \ escapes.
 
20176
  if test -n "${ZSH_VERSION+set}" ; then
 
20177
    setopt NO_GLOB_SUBST
 
20178
  fi
 
20179
  # Now quote all the things that may contain metacharacters while being
 
20180
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20181
  # variables and quote the copies for generation of the libtool script.
 
20182
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
20183
    SED SHELL STRIP \
 
20184
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20185
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20186
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20187
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20188
    lt_cv_sys_global_symbol_to_c_name_address \
 
20189
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20190
    old_postinstall_cmds old_postuninstall_cmds \
 
20191
    compiler_RC \
 
20192
    CC_RC \
 
20193
    LD_RC \
 
20194
    lt_prog_compiler_wl_RC \
 
20195
    lt_prog_compiler_pic_RC \
 
20196
    lt_prog_compiler_static_RC \
 
20197
    lt_prog_compiler_no_builtin_flag_RC \
 
20198
    export_dynamic_flag_spec_RC \
 
20199
    thread_safe_flag_spec_RC \
 
20200
    whole_archive_flag_spec_RC \
 
20201
    enable_shared_with_static_runtimes_RC \
 
20202
    old_archive_cmds_RC \
 
20203
    old_archive_from_new_cmds_RC \
 
20204
    predep_objects_RC \
 
20205
    postdep_objects_RC \
 
20206
    predeps_RC \
 
20207
    postdeps_RC \
 
20208
    compiler_lib_search_path_RC \
 
20209
    archive_cmds_RC \
 
20210
    archive_expsym_cmds_RC \
 
20211
    postinstall_cmds_RC \
 
20212
    postuninstall_cmds_RC \
 
20213
    old_archive_from_expsyms_cmds_RC \
 
20214
    allow_undefined_flag_RC \
 
20215
    no_undefined_flag_RC \
 
20216
    export_symbols_cmds_RC \
 
20217
    hardcode_libdir_flag_spec_RC \
 
20218
    hardcode_libdir_flag_spec_ld_RC \
 
20219
    hardcode_libdir_separator_RC \
 
20220
    hardcode_automatic_RC \
 
20221
    module_cmds_RC \
 
20222
    module_expsym_cmds_RC \
 
20223
    lt_cv_prog_compiler_c_o_RC \
 
20224
    exclude_expsyms_RC \
 
20225
    include_expsyms_RC; do
 
20226
 
 
20227
    case $var in
 
20228
    old_archive_cmds_RC | \
 
20229
    old_archive_from_new_cmds_RC | \
 
20230
    archive_cmds_RC | \
 
20231
    archive_expsym_cmds_RC | \
 
20232
    module_cmds_RC | \
 
20233
    module_expsym_cmds_RC | \
 
20234
    old_archive_from_expsyms_cmds_RC | \
 
20235
    export_symbols_cmds_RC | \
 
20236
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20237
    postinstall_cmds | postuninstall_cmds | \
 
20238
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20239
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20240
      # Double-quote double-evaled strings.
 
20241
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20242
      ;;
 
20243
    *)
 
20244
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20245
      ;;
 
20246
    esac
 
20247
  done
 
20248
 
 
20249
  case $lt_echo in
 
20250
  *'\$0 --fallback-echo"')
 
20251
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20252
    ;;
 
20253
  esac
 
20254
 
 
20255
cfgfile="$ofile"
 
20256
 
 
20257
  cat <<__EOF__ >> "$cfgfile"
 
20258
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20259
 
 
20260
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20261
 
 
20262
# Shell to use when invoking shell scripts.
 
20263
SHELL=$lt_SHELL
 
20264
 
 
20265
# Whether or not to build shared libraries.
 
20266
build_libtool_libs=$enable_shared
 
20267
 
 
20268
# Whether or not to build static libraries.
 
20269
build_old_libs=$enable_static
 
20270
 
 
20271
# Whether or not to add -lc for building shared libraries.
 
20272
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
20273
 
 
20274
# Whether or not to disallow shared libs when runtime libs are static
 
20275
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
20276
 
 
20277
# Whether or not to optimize for fast installation.
 
20278
fast_install=$enable_fast_install
 
20279
 
 
20280
# The host system.
 
20281
host_alias=$host_alias
 
20282
host=$host
 
20283
 
 
20284
# An echo program that does not interpret backslashes.
 
20285
echo=$lt_echo
 
20286
 
 
20287
# The archiver.
 
20288
AR=$lt_AR
 
20289
AR_FLAGS=$lt_AR_FLAGS
 
20290
 
 
20291
# A C compiler.
 
20292
LTCC=$lt_LTCC
 
20293
 
 
20294
# A language-specific compiler.
 
20295
CC=$lt_compiler_RC
 
20296
 
 
20297
# Is the compiler the GNU C compiler?
 
20298
with_gcc=$GCC_RC
 
20299
 
 
20300
# An ERE matcher.
 
20301
EGREP=$lt_EGREP
 
20302
 
 
20303
# The linker used to build libraries.
 
20304
LD=$lt_LD_RC
 
20305
 
 
20306
# Whether we need hard or soft links.
 
20307
LN_S=$lt_LN_S
 
20308
 
 
20309
# A BSD-compatible nm program.
 
20310
NM=$lt_NM
 
20311
 
 
20312
# A symbol stripping program
 
20313
STRIP=$lt_STRIP
 
20314
 
 
20315
# Used to examine libraries when file_magic_cmd begins "file"
 
20316
MAGIC_CMD=$MAGIC_CMD
 
20317
 
 
20318
# Used on cygwin: DLL creation program.
 
20319
DLLTOOL="$DLLTOOL"
 
20320
 
 
20321
# Used on cygwin: object dumper.
 
20322
OBJDUMP="$OBJDUMP"
 
20323
 
 
20324
# Used on cygwin: assembler.
 
20325
AS="$AS"
 
20326
 
 
20327
# The name of the directory that contains temporary libtool files.
 
20328
objdir=$objdir
 
20329
 
 
20330
# How to create reloadable object files.
 
20331
reload_flag=$lt_reload_flag
 
20332
reload_cmds=$lt_reload_cmds
 
20333
 
 
20334
# How to pass a linker flag through the compiler.
 
20335
wl=$lt_lt_prog_compiler_wl_RC
 
20336
 
 
20337
# Object file suffix (normally "o").
 
20338
objext="$ac_objext"
 
20339
 
 
20340
# Old archive suffix (normally "a").
 
20341
libext="$libext"
 
20342
 
 
20343
# Shared library suffix (normally ".so").
 
20344
shrext_cmds='$shrext_cmds'
 
20345
 
 
20346
# Executable file suffix (normally "").
 
20347
exeext="$exeext"
 
20348
 
 
20349
# Additional compiler flags for building library objects.
 
20350
pic_flag=$lt_lt_prog_compiler_pic_RC
 
20351
pic_mode=$pic_mode
 
20352
 
 
20353
# What is the maximum length of a command?
 
20354
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20355
 
 
20356
# Does compiler simultaneously support -c and -o options?
 
20357
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
20358
 
 
20359
# Must we lock files when doing compilation ?
 
20360
need_locks=$lt_need_locks
 
20361
 
 
20362
# Do we need the lib prefix for modules?
 
20363
need_lib_prefix=$need_lib_prefix
 
20364
 
 
20365
# Do we need a version for libraries?
 
20366
need_version=$need_version
 
20367
 
 
20368
# Whether dlopen is supported.
 
20369
dlopen_support=$enable_dlopen
 
20370
 
 
20371
# Whether dlopen of programs is supported.
 
20372
dlopen_self=$enable_dlopen_self
 
20373
 
 
20374
# Whether dlopen of statically linked programs is supported.
 
20375
dlopen_self_static=$enable_dlopen_self_static
 
20376
 
 
20377
# Compiler flag to prevent dynamic linking.
 
20378
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20379
 
 
20380
# Compiler flag to turn off builtin functions.
 
20381
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20382
 
 
20383
# Compiler flag to allow reflexive dlopens.
 
20384
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20385
 
 
20386
# Compiler flag to generate shared objects directly from archives.
 
20387
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20388
 
 
20389
# Compiler flag to generate thread-safe objects.
 
20390
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20391
 
 
20392
# Library versioning type.
 
20393
version_type=$version_type
 
20394
 
 
20395
# Format of library name prefix.
 
20396
libname_spec=$lt_libname_spec
 
20397
 
 
20398
# List of archive names.  First name is the real one, the rest are links.
 
20399
# The last name is the one that the linker finds with -lNAME.
 
20400
library_names_spec=$lt_library_names_spec
 
20401
 
 
20402
# The coded name of the library, if different from the real name.
 
20403
soname_spec=$lt_soname_spec
 
20404
 
 
20405
# Commands used to build and install an old-style archive.
 
20406
RANLIB=$lt_RANLIB
 
20407
old_archive_cmds=$lt_old_archive_cmds_RC
 
20408
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20409
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20410
 
 
20411
# Create an old-style archive from a shared archive.
 
20412
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20413
 
 
20414
# Create a temporary old-style archive to link instead of a shared archive.
 
20415
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20416
 
 
20417
# Commands used to build and install a shared archive.
 
20418
archive_cmds=$lt_archive_cmds_RC
 
20419
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20420
postinstall_cmds=$lt_postinstall_cmds
 
20421
postuninstall_cmds=$lt_postuninstall_cmds
 
20422
 
 
20423
# Commands used to build a loadable module (assumed same as above if empty)
 
20424
module_cmds=$lt_module_cmds_RC
 
20425
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20426
 
 
20427
# Commands to strip libraries.
 
20428
old_striplib=$lt_old_striplib
 
20429
striplib=$lt_striplib
 
20430
 
 
20431
# Dependencies to place before the objects being linked to create a
 
20432
# shared library.
 
20433
predep_objects=$lt_predep_objects_RC
 
20434
 
 
20435
# Dependencies to place after the objects being linked to create a
 
20436
# shared library.
 
20437
postdep_objects=$lt_postdep_objects_RC
 
20438
 
 
20439
# Dependencies to place before the objects being linked to create a
 
20440
# shared library.
 
20441
predeps=$lt_predeps_RC
 
20442
 
 
20443
# Dependencies to place after the objects being linked to create a
 
20444
# shared library.
 
20445
postdeps=$lt_postdeps_RC
 
20446
 
 
20447
# The library search path used internally by the compiler when linking
 
20448
# a shared library.
 
20449
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20450
 
 
20451
# Method to check whether dependent libraries are shared objects.
 
20452
deplibs_check_method=$lt_deplibs_check_method
 
20453
 
 
20454
# Command to use when deplibs_check_method == file_magic.
 
20455
file_magic_cmd=$lt_file_magic_cmd
 
20456
 
 
20457
# Flag that allows shared libraries with undefined symbols to be built.
 
20458
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20459
 
 
20460
# Flag that forces no undefined symbols.
 
20461
no_undefined_flag=$lt_no_undefined_flag_RC
 
20462
 
 
20463
# Commands used to finish a libtool library installation in a directory.
 
20464
finish_cmds=$lt_finish_cmds
 
20465
 
 
20466
# Same as above, but a single script fragment to be evaled but not shown.
 
20467
finish_eval=$lt_finish_eval
 
20468
 
 
20469
# Take the output of nm and produce a listing of raw symbols and C names.
 
20470
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20471
 
 
20472
# Transform the output of nm in a proper C declaration
 
20473
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20474
 
 
20475
# Transform the output of nm in a C name address pair
 
20476
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20477
 
 
20478
# This is the shared library runtime path variable.
 
20479
runpath_var=$runpath_var
 
20480
 
 
20481
# This is the shared library path variable.
 
20482
shlibpath_var=$shlibpath_var
 
20483
 
 
20484
# Is shlibpath searched before the hard-coded library search path?
 
20485
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20486
 
 
20487
# How to hardcode a shared library path into an executable.
 
20488
hardcode_action=$hardcode_action_RC
 
20489
 
 
20490
# Whether we should hardcode library paths into libraries.
 
20491
hardcode_into_libs=$hardcode_into_libs
 
20492
 
 
20493
# Flag to hardcode \$libdir into a binary during linking.
 
20494
# This must work even if \$libdir does not exist.
 
20495
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20496
 
 
20497
# If ld is used when linking, flag to hardcode \$libdir into
 
20498
# a binary during linking. This must work even if \$libdir does
 
20499
# not exist.
 
20500
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20501
 
 
20502
# Whether we need a single -rpath flag with a separated argument.
 
20503
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20504
 
 
20505
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20506
# resulting binary.
 
20507
hardcode_direct=$hardcode_direct_RC
 
20508
 
 
20509
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20510
# resulting binary.
 
20511
hardcode_minus_L=$hardcode_minus_L_RC
 
20512
 
 
20513
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20514
# the resulting binary.
 
20515
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20516
 
 
20517
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20518
# and all subsequent libraries and executables linked against it.
 
20519
hardcode_automatic=$hardcode_automatic_RC
 
20520
 
 
20521
# Variables whose values should be saved in libtool wrapper scripts and
 
20522
# restored at relink time.
 
20523
variables_saved_for_relink="$variables_saved_for_relink"
 
20524
 
 
20525
# Whether libtool must link a program against all its dependency libraries.
 
20526
link_all_deplibs=$link_all_deplibs_RC
 
20527
 
 
20528
# Compile-time system search path for libraries
 
20529
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20530
 
 
20531
# Run-time system search path for libraries
 
20532
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20533
 
 
20534
# Fix the shell variable \$srcfile for the compiler.
 
20535
fix_srcfile_path="$fix_srcfile_path_RC"
 
20536
 
 
20537
# Set to yes if exported symbols are required.
 
20538
always_export_symbols=$always_export_symbols_RC
 
20539
 
 
20540
# The commands to list exported symbols.
 
20541
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20542
 
 
20543
# The commands to extract the exported symbol list from a shared archive.
 
20544
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20545
 
 
20546
# Symbols that should not be listed in the preloaded symbols.
 
20547
exclude_expsyms=$lt_exclude_expsyms_RC
 
20548
 
 
20549
# Symbols that must always be exported.
 
20550
include_expsyms=$lt_include_expsyms_RC
 
20551
 
 
20552
# ### END LIBTOOL TAG CONFIG: $tagname
 
20553
 
 
20554
__EOF__
 
20555
 
 
20556
 
 
20557
else
 
20558
  # If there is no Makefile yet, we rely on a make rule to execute
 
20559
  # `config.status --recheck' to rerun these tests and create the
 
20560
  # libtool script then.
 
20561
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20562
  if test -f "$ltmain_in"; then
 
20563
    test -f Makefile && make "$ltmain"
 
20564
  fi
 
20565
fi
 
20566
 
 
20567
 
 
20568
ac_ext=c
 
20569
ac_cpp='$CPP $CPPFLAGS'
 
20570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20573
 
 
20574
CC="$lt_save_CC"
 
20575
 
 
20576
        ;;
 
20577
 
 
20578
      *)
 
20579
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20580
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20581
   { (exit 1); exit 1; }; }
 
20582
        ;;
 
20583
      esac
 
20584
 
 
20585
      # Append the new tag name to the list of available tags.
 
20586
      if test -n "$tagname" ; then
 
20587
      available_tags="$available_tags $tagname"
 
20588
    fi
 
20589
    fi
 
20590
  done
 
20591
  IFS="$lt_save_ifs"
 
20592
 
 
20593
  # Now substitute the updated list of available tags.
 
20594
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20595
    mv "${ofile}T" "$ofile"
 
20596
    chmod +x "$ofile"
 
20597
  else
 
20598
    rm -f "${ofile}T"
 
20599
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20600
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20601
   { (exit 1); exit 1; }; }
 
20602
  fi
 
20603
fi
 
20604
 
 
20605
 
 
20606
 
 
20607
# This can be used to rebuild libtool when needed
 
20608
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20609
 
 
20610
# Always use our own libtool.
 
20611
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20612
 
 
20613
# Prevent multiple expansion
 
20614
 
 
20615
 
 
20616
 
 
20617
 
 
20618
 
 
20619
 
 
20620
 
 
20621
 
 
20622
 
 
20623
 
 
20624
 
 
20625
 
 
20626
 
 
20627
 
 
20628
 
 
20629
 
 
20630
 
 
20631
 
 
20632
 
 
20633
 
 
20634
# Find a good install program.  We prefer a C program (faster),
 
20635
# so one script is as good as another.  But avoid the broken or
 
20636
# incompatible versions:
 
20637
# SysV /etc/install, /usr/sbin/install
 
20638
# SunOS /usr/etc/install
 
20639
# IRIX /sbin/install
 
20640
# AIX /bin/install
 
20641
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
20642
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
20643
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
20644
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
20645
# OS/2's system install, which has a completely different semantic
 
20646
# ./install, which can be erroneously created by make from ./install.sh.
 
20647
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
20648
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
20649
if test -z "$INSTALL"; then
 
20650
if test "${ac_cv_path_install+set}" = set; then
 
20651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20652
else
 
20653
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20654
for as_dir in $PATH
 
20655
do
 
20656
  IFS=$as_save_IFS
 
20657
  test -z "$as_dir" && as_dir=.
 
20658
  # Account for people who put trailing slashes in PATH elements.
 
20659
case $as_dir/ in
 
20660
  ./ | .// | /cC/* | \
 
20661
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
20662
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
20663
  /usr/ucb/* ) ;;
 
20664
  *)
 
20665
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
20666
    # Don't use installbsd from OSF since it installs stuff as root
 
20667
    # by default.
 
20668
    for ac_prog in ginstall scoinst install; do
 
20669
      for ac_exec_ext in '' $ac_executable_extensions; do
 
20670
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
20671
          if test $ac_prog = install &&
 
20672
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
20673
            # AIX install.  It has an incompatible calling convention.
 
20674
            :
 
20675
          elif test $ac_prog = install &&
 
20676
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
20677
            # program-specific install script used by HP pwplus--don't use.
 
20678
            :
 
20679
          else
 
20680
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
20681
            break 3
 
20682
          fi
 
20683
        fi
 
20684
      done
 
20685
    done
 
20686
    ;;
 
20687
esac
 
20688
done
 
20689
 
 
20690
 
 
20691
fi
 
20692
  if test "${ac_cv_path_install+set}" = set; then
 
20693
    INSTALL=$ac_cv_path_install
 
20694
  else
 
20695
    # As a last resort, use the slow shell script.  We don't cache a
 
20696
    # path for INSTALL within a source directory, because that will
 
20697
    # break other packages using the cache if that directory is
 
20698
    # removed, or if the path is relative.
 
20699
    INSTALL=$ac_install_sh
 
20700
  fi
 
20701
fi
 
20702
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
20703
echo "${ECHO_T}$INSTALL" >&6
 
20704
 
 
20705
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
20706
# It thinks the first close brace ends the variable substitution.
 
20707
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
20708
 
 
20709
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
20710
 
 
20711
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
20712
 
 
20713
 
 
20714
 
 
20715
 
 
20716
echo "$as_me:$LINENO: checking whether char is unsigned" >&5
 
20717
echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
 
20718
if test "${ac_cv_c_char_unsigned+set}" = set; then
 
20719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20720
else
 
20721
  cat >conftest.$ac_ext <<_ACEOF
 
20722
/* confdefs.h.  */
 
20723
_ACEOF
 
20724
cat confdefs.h >>conftest.$ac_ext
 
20725
cat >>conftest.$ac_ext <<_ACEOF
 
20726
/* end confdefs.h.  */
 
20727
$ac_includes_default
 
20728
int
 
20729
main ()
 
20730
{
 
20731
static int test_array [1 - 2 * !(((char) -1) < 0)];
 
20732
test_array [0] = 0
 
20733
 
 
20734
  ;
 
20735
  return 0;
 
20736
}
 
20737
_ACEOF
 
20738
rm -f conftest.$ac_objext
 
20739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20740
  (eval $ac_compile) 2>conftest.er1
 
20741
  ac_status=$?
 
20742
  grep -v '^ *+' conftest.er1 >conftest.err
 
20743
  rm -f conftest.er1
 
20744
  cat conftest.err >&5
 
20745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20746
  (exit $ac_status); } &&
 
20747
         { ac_try='test -z "$ac_c_werror_flag"
 
20748
                         || test ! -s conftest.err'
 
20749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20750
  (eval $ac_try) 2>&5
 
20751
  ac_status=$?
 
20752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20753
  (exit $ac_status); }; } &&
 
20754
         { ac_try='test -s conftest.$ac_objext'
 
20755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20756
  (eval $ac_try) 2>&5
 
20757
  ac_status=$?
 
20758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20759
  (exit $ac_status); }; }; then
 
20760
  ac_cv_c_char_unsigned=no
 
20761
else
 
20762
  echo "$as_me: failed program was:" >&5
 
20763
sed 's/^/| /' conftest.$ac_ext >&5
 
20764
 
 
20765
ac_cv_c_char_unsigned=yes
 
20766
fi
 
20767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20768
fi
 
20769
echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
 
20770
echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
 
20771
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
 
20772
  cat >>confdefs.h <<\_ACEOF
 
20773
#define __CHAR_UNSIGNED__ 1
 
20774
_ACEOF
 
20775
 
 
20776
fi
 
20777
 
 
20778
echo "$as_me:$LINENO: checking for char" >&5
 
20779
echo $ECHO_N "checking for char... $ECHO_C" >&6
 
20780
if test "${ac_cv_type_char+set}" = set; then
 
20781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20782
else
 
20783
  cat >conftest.$ac_ext <<_ACEOF
 
20784
/* confdefs.h.  */
 
20785
_ACEOF
 
20786
cat confdefs.h >>conftest.$ac_ext
 
20787
cat >>conftest.$ac_ext <<_ACEOF
 
20788
/* end confdefs.h.  */
 
20789
$ac_includes_default
 
20790
int
 
20791
main ()
 
20792
{
 
20793
if ((char *) 0)
 
20794
  return 0;
 
20795
if (sizeof (char))
 
20796
  return 0;
 
20797
  ;
 
20798
  return 0;
 
20799
}
 
20800
_ACEOF
 
20801
rm -f conftest.$ac_objext
 
20802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20803
  (eval $ac_compile) 2>conftest.er1
 
20804
  ac_status=$?
 
20805
  grep -v '^ *+' conftest.er1 >conftest.err
 
20806
  rm -f conftest.er1
 
20807
  cat conftest.err >&5
 
20808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20809
  (exit $ac_status); } &&
 
20810
         { ac_try='test -z "$ac_c_werror_flag"
 
20811
                         || test ! -s conftest.err'
 
20812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20813
  (eval $ac_try) 2>&5
 
20814
  ac_status=$?
 
20815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20816
  (exit $ac_status); }; } &&
 
20817
         { ac_try='test -s conftest.$ac_objext'
 
20818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20819
  (eval $ac_try) 2>&5
 
20820
  ac_status=$?
 
20821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20822
  (exit $ac_status); }; }; then
 
20823
  ac_cv_type_char=yes
 
20824
else
 
20825
  echo "$as_me: failed program was:" >&5
 
20826
sed 's/^/| /' conftest.$ac_ext >&5
 
20827
 
 
20828
ac_cv_type_char=no
 
20829
fi
 
20830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20831
fi
 
20832
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
 
20833
echo "${ECHO_T}$ac_cv_type_char" >&6
 
20834
 
 
20835
echo "$as_me:$LINENO: checking size of char" >&5
 
20836
echo $ECHO_N "checking size of char... $ECHO_C" >&6
 
20837
if test "${ac_cv_sizeof_char+set}" = set; then
 
20838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20839
else
 
20840
  if test "$ac_cv_type_char" = yes; then
 
20841
  # The cast to unsigned long works around a bug in the HP C Compiler
 
20842
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
20843
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
20844
  # This bug is HP SR number 8606223364.
 
20845
  if test "$cross_compiling" = yes; then
 
20846
  # Depending upon the size, compute the lo and hi bounds.
 
20847
cat >conftest.$ac_ext <<_ACEOF
 
20848
/* confdefs.h.  */
 
20849
_ACEOF
 
20850
cat confdefs.h >>conftest.$ac_ext
 
20851
cat >>conftest.$ac_ext <<_ACEOF
 
20852
/* end confdefs.h.  */
 
20853
$ac_includes_default
 
20854
int
 
20855
main ()
 
20856
{
 
20857
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
 
20858
test_array [0] = 0
 
20859
 
 
20860
  ;
 
20861
  return 0;
 
20862
}
 
20863
_ACEOF
 
20864
rm -f conftest.$ac_objext
 
20865
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20866
  (eval $ac_compile) 2>conftest.er1
 
20867
  ac_status=$?
 
20868
  grep -v '^ *+' conftest.er1 >conftest.err
 
20869
  rm -f conftest.er1
 
20870
  cat conftest.err >&5
 
20871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20872
  (exit $ac_status); } &&
 
20873
         { ac_try='test -z "$ac_c_werror_flag"
 
20874
                         || test ! -s conftest.err'
 
20875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20876
  (eval $ac_try) 2>&5
 
20877
  ac_status=$?
 
20878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20879
  (exit $ac_status); }; } &&
 
20880
         { ac_try='test -s conftest.$ac_objext'
 
20881
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20882
  (eval $ac_try) 2>&5
 
20883
  ac_status=$?
 
20884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20885
  (exit $ac_status); }; }; then
 
20886
  ac_lo=0 ac_mid=0
 
20887
  while :; do
 
20888
    cat >conftest.$ac_ext <<_ACEOF
 
20889
/* confdefs.h.  */
 
20890
_ACEOF
 
20891
cat confdefs.h >>conftest.$ac_ext
 
20892
cat >>conftest.$ac_ext <<_ACEOF
 
20893
/* end confdefs.h.  */
 
20894
$ac_includes_default
 
20895
int
 
20896
main ()
 
20897
{
 
20898
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
 
20899
test_array [0] = 0
 
20900
 
 
20901
  ;
 
20902
  return 0;
 
20903
}
 
20904
_ACEOF
 
20905
rm -f conftest.$ac_objext
 
20906
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20907
  (eval $ac_compile) 2>conftest.er1
 
20908
  ac_status=$?
 
20909
  grep -v '^ *+' conftest.er1 >conftest.err
 
20910
  rm -f conftest.er1
 
20911
  cat conftest.err >&5
 
20912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20913
  (exit $ac_status); } &&
 
20914
         { ac_try='test -z "$ac_c_werror_flag"
 
20915
                         || test ! -s conftest.err'
 
20916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20917
  (eval $ac_try) 2>&5
 
20918
  ac_status=$?
 
20919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20920
  (exit $ac_status); }; } &&
 
20921
         { ac_try='test -s conftest.$ac_objext'
 
20922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20923
  (eval $ac_try) 2>&5
 
20924
  ac_status=$?
 
20925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20926
  (exit $ac_status); }; }; then
 
20927
  ac_hi=$ac_mid; break
 
20928
else
 
20929
  echo "$as_me: failed program was:" >&5
 
20930
sed 's/^/| /' conftest.$ac_ext >&5
 
20931
 
 
20932
ac_lo=`expr $ac_mid + 1`
 
20933
                    if test $ac_lo -le $ac_mid; then
 
20934
                      ac_lo= ac_hi=
 
20935
                      break
 
20936
                    fi
 
20937
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
20938
fi
 
20939
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20940
  done
 
20941
else
 
20942
  echo "$as_me: failed program was:" >&5
 
20943
sed 's/^/| /' conftest.$ac_ext >&5
 
20944
 
 
20945
cat >conftest.$ac_ext <<_ACEOF
 
20946
/* confdefs.h.  */
 
20947
_ACEOF
 
20948
cat confdefs.h >>conftest.$ac_ext
 
20949
cat >>conftest.$ac_ext <<_ACEOF
 
20950
/* end confdefs.h.  */
 
20951
$ac_includes_default
 
20952
int
 
20953
main ()
 
20954
{
 
20955
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
 
20956
test_array [0] = 0
 
20957
 
 
20958
  ;
 
20959
  return 0;
 
20960
}
 
20961
_ACEOF
 
20962
rm -f conftest.$ac_objext
 
20963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20964
  (eval $ac_compile) 2>conftest.er1
 
20965
  ac_status=$?
 
20966
  grep -v '^ *+' conftest.er1 >conftest.err
 
20967
  rm -f conftest.er1
 
20968
  cat conftest.err >&5
 
20969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20970
  (exit $ac_status); } &&
 
20971
         { ac_try='test -z "$ac_c_werror_flag"
 
20972
                         || test ! -s conftest.err'
 
20973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20974
  (eval $ac_try) 2>&5
 
20975
  ac_status=$?
 
20976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20977
  (exit $ac_status); }; } &&
 
20978
         { ac_try='test -s conftest.$ac_objext'
 
20979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20980
  (eval $ac_try) 2>&5
 
20981
  ac_status=$?
 
20982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20983
  (exit $ac_status); }; }; then
 
20984
  ac_hi=-1 ac_mid=-1
 
20985
  while :; do
 
20986
    cat >conftest.$ac_ext <<_ACEOF
 
20987
/* confdefs.h.  */
 
20988
_ACEOF
 
20989
cat confdefs.h >>conftest.$ac_ext
 
20990
cat >>conftest.$ac_ext <<_ACEOF
 
20991
/* end confdefs.h.  */
 
20992
$ac_includes_default
 
20993
int
 
20994
main ()
 
20995
{
 
20996
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
 
20997
test_array [0] = 0
 
20998
 
 
20999
  ;
 
21000
  return 0;
 
21001
}
 
21002
_ACEOF
 
21003
rm -f conftest.$ac_objext
 
21004
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21005
  (eval $ac_compile) 2>conftest.er1
 
21006
  ac_status=$?
 
21007
  grep -v '^ *+' conftest.er1 >conftest.err
 
21008
  rm -f conftest.er1
 
21009
  cat conftest.err >&5
 
21010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21011
  (exit $ac_status); } &&
 
21012
         { ac_try='test -z "$ac_c_werror_flag"
 
21013
                         || test ! -s conftest.err'
 
21014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21015
  (eval $ac_try) 2>&5
 
21016
  ac_status=$?
 
21017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21018
  (exit $ac_status); }; } &&
 
21019
         { ac_try='test -s conftest.$ac_objext'
 
21020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21021
  (eval $ac_try) 2>&5
 
21022
  ac_status=$?
 
21023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21024
  (exit $ac_status); }; }; then
 
21025
  ac_lo=$ac_mid; break
 
21026
else
 
21027
  echo "$as_me: failed program was:" >&5
 
21028
sed 's/^/| /' conftest.$ac_ext >&5
 
21029
 
 
21030
ac_hi=`expr '(' $ac_mid ')' - 1`
 
21031
                       if test $ac_mid -le $ac_hi; then
 
21032
                         ac_lo= ac_hi=
 
21033
                         break
 
21034
                       fi
 
21035
                       ac_mid=`expr 2 '*' $ac_mid`
 
21036
fi
 
21037
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21038
  done
 
21039
else
 
21040
  echo "$as_me: failed program was:" >&5
 
21041
sed 's/^/| /' conftest.$ac_ext >&5
 
21042
 
 
21043
ac_lo= ac_hi=
 
21044
fi
 
21045
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21046
fi
 
21047
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21048
# Binary search between lo and hi bounds.
 
21049
while test "x$ac_lo" != "x$ac_hi"; do
 
21050
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
21051
  cat >conftest.$ac_ext <<_ACEOF
 
21052
/* confdefs.h.  */
 
21053
_ACEOF
 
21054
cat confdefs.h >>conftest.$ac_ext
 
21055
cat >>conftest.$ac_ext <<_ACEOF
 
21056
/* end confdefs.h.  */
 
21057
$ac_includes_default
 
21058
int
 
21059
main ()
 
21060
{
 
21061
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
 
21062
test_array [0] = 0
 
21063
 
 
21064
  ;
 
21065
  return 0;
 
21066
}
 
21067
_ACEOF
 
21068
rm -f conftest.$ac_objext
 
21069
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21070
  (eval $ac_compile) 2>conftest.er1
 
21071
  ac_status=$?
 
21072
  grep -v '^ *+' conftest.er1 >conftest.err
 
21073
  rm -f conftest.er1
 
21074
  cat conftest.err >&5
 
21075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21076
  (exit $ac_status); } &&
 
21077
         { ac_try='test -z "$ac_c_werror_flag"
 
21078
                         || test ! -s conftest.err'
 
21079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21080
  (eval $ac_try) 2>&5
 
21081
  ac_status=$?
 
21082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21083
  (exit $ac_status); }; } &&
 
21084
         { ac_try='test -s conftest.$ac_objext'
 
21085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21086
  (eval $ac_try) 2>&5
 
21087
  ac_status=$?
 
21088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21089
  (exit $ac_status); }; }; then
 
21090
  ac_hi=$ac_mid
 
21091
else
 
21092
  echo "$as_me: failed program was:" >&5
 
21093
sed 's/^/| /' conftest.$ac_ext >&5
 
21094
 
 
21095
ac_lo=`expr '(' $ac_mid ')' + 1`
 
21096
fi
 
21097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21098
done
 
21099
case $ac_lo in
 
21100
?*) ac_cv_sizeof_char=$ac_lo;;
 
21101
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
 
21102
See \`config.log' for more details." >&5
 
21103
echo "$as_me: error: cannot compute sizeof (char), 77
 
21104
See \`config.log' for more details." >&2;}
 
21105
   { (exit 1); exit 1; }; } ;;
 
21106
esac
 
21107
else
 
21108
  if test "$cross_compiling" = yes; then
 
21109
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21110
See \`config.log' for more details." >&5
 
21111
echo "$as_me: error: cannot run test program while cross compiling
 
21112
See \`config.log' for more details." >&2;}
 
21113
   { (exit 1); exit 1; }; }
 
21114
else
 
21115
  cat >conftest.$ac_ext <<_ACEOF
 
21116
/* confdefs.h.  */
 
21117
_ACEOF
 
21118
cat confdefs.h >>conftest.$ac_ext
 
21119
cat >>conftest.$ac_ext <<_ACEOF
 
21120
/* end confdefs.h.  */
 
21121
$ac_includes_default
 
21122
long longval () { return (long) (sizeof (char)); }
 
21123
unsigned long ulongval () { return (long) (sizeof (char)); }
 
21124
#include <stdio.h>
 
21125
#include <stdlib.h>
 
21126
int
 
21127
main ()
 
21128
{
 
21129
 
 
21130
  FILE *f = fopen ("conftest.val", "w");
 
21131
  if (! f)
 
21132
    exit (1);
 
21133
  if (((long) (sizeof (char))) < 0)
 
21134
    {
 
21135
      long i = longval ();
 
21136
      if (i != ((long) (sizeof (char))))
 
21137
        exit (1);
 
21138
      fprintf (f, "%ld\n", i);
 
21139
    }
 
21140
  else
 
21141
    {
 
21142
      unsigned long i = ulongval ();
 
21143
      if (i != ((long) (sizeof (char))))
 
21144
        exit (1);
 
21145
      fprintf (f, "%lu\n", i);
 
21146
    }
 
21147
  exit (ferror (f) || fclose (f) != 0);
 
21148
 
 
21149
  ;
 
21150
  return 0;
 
21151
}
 
21152
_ACEOF
 
21153
rm -f conftest$ac_exeext
 
21154
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21155
  (eval $ac_link) 2>&5
 
21156
  ac_status=$?
 
21157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21158
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21160
  (eval $ac_try) 2>&5
 
21161
  ac_status=$?
 
21162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21163
  (exit $ac_status); }; }; then
 
21164
  ac_cv_sizeof_char=`cat conftest.val`
 
21165
else
 
21166
  echo "$as_me: program exited with status $ac_status" >&5
 
21167
echo "$as_me: failed program was:" >&5
 
21168
sed 's/^/| /' conftest.$ac_ext >&5
 
21169
 
 
21170
( exit $ac_status )
 
21171
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
 
21172
See \`config.log' for more details." >&5
 
21173
echo "$as_me: error: cannot compute sizeof (char), 77
 
21174
See \`config.log' for more details." >&2;}
 
21175
   { (exit 1); exit 1; }; }
 
21176
fi
 
21177
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21178
fi
 
21179
fi
 
21180
rm -f conftest.val
 
21181
else
 
21182
  ac_cv_sizeof_char=0
 
21183
fi
 
21184
fi
 
21185
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
 
21186
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
 
21187
cat >>confdefs.h <<_ACEOF
 
21188
#define SIZEOF_CHAR $ac_cv_sizeof_char
 
21189
_ACEOF
 
21190
 
 
21191
 
 
21192
echo "$as_me:$LINENO: checking for short" >&5
 
21193
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
21194
if test "${ac_cv_type_short+set}" = set; then
 
21195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21196
else
 
21197
  cat >conftest.$ac_ext <<_ACEOF
 
21198
/* confdefs.h.  */
 
21199
_ACEOF
 
21200
cat confdefs.h >>conftest.$ac_ext
 
21201
cat >>conftest.$ac_ext <<_ACEOF
 
21202
/* end confdefs.h.  */
 
21203
$ac_includes_default
 
21204
int
 
21205
main ()
 
21206
{
 
21207
if ((short *) 0)
 
21208
  return 0;
 
21209
if (sizeof (short))
 
21210
  return 0;
 
21211
  ;
 
21212
  return 0;
 
21213
}
 
21214
_ACEOF
 
21215
rm -f conftest.$ac_objext
 
21216
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21217
  (eval $ac_compile) 2>conftest.er1
 
21218
  ac_status=$?
 
21219
  grep -v '^ *+' conftest.er1 >conftest.err
 
21220
  rm -f conftest.er1
 
21221
  cat conftest.err >&5
 
21222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21223
  (exit $ac_status); } &&
 
21224
         { ac_try='test -z "$ac_c_werror_flag"
 
21225
                         || test ! -s conftest.err'
 
21226
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21227
  (eval $ac_try) 2>&5
 
21228
  ac_status=$?
 
21229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21230
  (exit $ac_status); }; } &&
 
21231
         { ac_try='test -s conftest.$ac_objext'
 
21232
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21233
  (eval $ac_try) 2>&5
 
21234
  ac_status=$?
 
21235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21236
  (exit $ac_status); }; }; then
 
21237
  ac_cv_type_short=yes
 
21238
else
 
21239
  echo "$as_me: failed program was:" >&5
 
21240
sed 's/^/| /' conftest.$ac_ext >&5
 
21241
 
 
21242
ac_cv_type_short=no
 
21243
fi
 
21244
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21245
fi
 
21246
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
21247
echo "${ECHO_T}$ac_cv_type_short" >&6
 
21248
 
 
21249
echo "$as_me:$LINENO: checking size of short" >&5
 
21250
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
21251
if test "${ac_cv_sizeof_short+set}" = set; then
 
21252
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21253
else
 
21254
  if test "$ac_cv_type_short" = yes; then
 
21255
  # The cast to unsigned long works around a bug in the HP C Compiler
 
21256
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
21257
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
21258
  # This bug is HP SR number 8606223364.
 
21259
  if test "$cross_compiling" = yes; then
 
21260
  # Depending upon the size, compute the lo and hi bounds.
 
21261
cat >conftest.$ac_ext <<_ACEOF
 
21262
/* confdefs.h.  */
 
21263
_ACEOF
 
21264
cat confdefs.h >>conftest.$ac_ext
 
21265
cat >>conftest.$ac_ext <<_ACEOF
 
21266
/* end confdefs.h.  */
 
21267
$ac_includes_default
 
21268
int
 
21269
main ()
 
21270
{
 
21271
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
21272
test_array [0] = 0
 
21273
 
 
21274
  ;
 
21275
  return 0;
 
21276
}
 
21277
_ACEOF
 
21278
rm -f conftest.$ac_objext
 
21279
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21280
  (eval $ac_compile) 2>conftest.er1
 
21281
  ac_status=$?
 
21282
  grep -v '^ *+' conftest.er1 >conftest.err
 
21283
  rm -f conftest.er1
 
21284
  cat conftest.err >&5
 
21285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21286
  (exit $ac_status); } &&
 
21287
         { ac_try='test -z "$ac_c_werror_flag"
 
21288
                         || test ! -s conftest.err'
 
21289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21290
  (eval $ac_try) 2>&5
 
21291
  ac_status=$?
 
21292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21293
  (exit $ac_status); }; } &&
 
21294
         { ac_try='test -s conftest.$ac_objext'
 
21295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21296
  (eval $ac_try) 2>&5
 
21297
  ac_status=$?
 
21298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21299
  (exit $ac_status); }; }; then
 
21300
  ac_lo=0 ac_mid=0
 
21301
  while :; do
 
21302
    cat >conftest.$ac_ext <<_ACEOF
 
21303
/* confdefs.h.  */
 
21304
_ACEOF
 
21305
cat confdefs.h >>conftest.$ac_ext
 
21306
cat >>conftest.$ac_ext <<_ACEOF
 
21307
/* end confdefs.h.  */
 
21308
$ac_includes_default
 
21309
int
 
21310
main ()
 
21311
{
 
21312
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
21313
test_array [0] = 0
 
21314
 
 
21315
  ;
 
21316
  return 0;
 
21317
}
 
21318
_ACEOF
 
21319
rm -f conftest.$ac_objext
 
21320
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21321
  (eval $ac_compile) 2>conftest.er1
 
21322
  ac_status=$?
 
21323
  grep -v '^ *+' conftest.er1 >conftest.err
 
21324
  rm -f conftest.er1
 
21325
  cat conftest.err >&5
 
21326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21327
  (exit $ac_status); } &&
 
21328
         { ac_try='test -z "$ac_c_werror_flag"
 
21329
                         || test ! -s conftest.err'
 
21330
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21331
  (eval $ac_try) 2>&5
 
21332
  ac_status=$?
 
21333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21334
  (exit $ac_status); }; } &&
 
21335
         { ac_try='test -s conftest.$ac_objext'
 
21336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21337
  (eval $ac_try) 2>&5
 
21338
  ac_status=$?
 
21339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21340
  (exit $ac_status); }; }; then
 
21341
  ac_hi=$ac_mid; break
 
21342
else
 
21343
  echo "$as_me: failed program was:" >&5
 
21344
sed 's/^/| /' conftest.$ac_ext >&5
 
21345
 
 
21346
ac_lo=`expr $ac_mid + 1`
 
21347
                    if test $ac_lo -le $ac_mid; then
 
21348
                      ac_lo= ac_hi=
 
21349
                      break
 
21350
                    fi
 
21351
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
21352
fi
 
21353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21354
  done
 
21355
else
 
21356
  echo "$as_me: failed program was:" >&5
 
21357
sed 's/^/| /' conftest.$ac_ext >&5
 
21358
 
 
21359
cat >conftest.$ac_ext <<_ACEOF
 
21360
/* confdefs.h.  */
 
21361
_ACEOF
 
21362
cat confdefs.h >>conftest.$ac_ext
 
21363
cat >>conftest.$ac_ext <<_ACEOF
 
21364
/* end confdefs.h.  */
 
21365
$ac_includes_default
 
21366
int
 
21367
main ()
 
21368
{
 
21369
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
21370
test_array [0] = 0
 
21371
 
 
21372
  ;
 
21373
  return 0;
 
21374
}
 
21375
_ACEOF
 
21376
rm -f conftest.$ac_objext
 
21377
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21378
  (eval $ac_compile) 2>conftest.er1
 
21379
  ac_status=$?
 
21380
  grep -v '^ *+' conftest.er1 >conftest.err
 
21381
  rm -f conftest.er1
 
21382
  cat conftest.err >&5
 
21383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21384
  (exit $ac_status); } &&
 
21385
         { ac_try='test -z "$ac_c_werror_flag"
 
21386
                         || test ! -s conftest.err'
 
21387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21388
  (eval $ac_try) 2>&5
 
21389
  ac_status=$?
 
21390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21391
  (exit $ac_status); }; } &&
 
21392
         { ac_try='test -s conftest.$ac_objext'
 
21393
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21394
  (eval $ac_try) 2>&5
 
21395
  ac_status=$?
 
21396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21397
  (exit $ac_status); }; }; then
 
21398
  ac_hi=-1 ac_mid=-1
 
21399
  while :; do
 
21400
    cat >conftest.$ac_ext <<_ACEOF
 
21401
/* confdefs.h.  */
 
21402
_ACEOF
 
21403
cat confdefs.h >>conftest.$ac_ext
 
21404
cat >>conftest.$ac_ext <<_ACEOF
 
21405
/* end confdefs.h.  */
 
21406
$ac_includes_default
 
21407
int
 
21408
main ()
 
21409
{
 
21410
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
21411
test_array [0] = 0
 
21412
 
 
21413
  ;
 
21414
  return 0;
 
21415
}
 
21416
_ACEOF
 
21417
rm -f conftest.$ac_objext
 
21418
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21419
  (eval $ac_compile) 2>conftest.er1
 
21420
  ac_status=$?
 
21421
  grep -v '^ *+' conftest.er1 >conftest.err
 
21422
  rm -f conftest.er1
 
21423
  cat conftest.err >&5
 
21424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21425
  (exit $ac_status); } &&
 
21426
         { ac_try='test -z "$ac_c_werror_flag"
 
21427
                         || test ! -s conftest.err'
 
21428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21429
  (eval $ac_try) 2>&5
 
21430
  ac_status=$?
 
21431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21432
  (exit $ac_status); }; } &&
 
21433
         { ac_try='test -s conftest.$ac_objext'
 
21434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21435
  (eval $ac_try) 2>&5
 
21436
  ac_status=$?
 
21437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21438
  (exit $ac_status); }; }; then
 
21439
  ac_lo=$ac_mid; break
 
21440
else
 
21441
  echo "$as_me: failed program was:" >&5
 
21442
sed 's/^/| /' conftest.$ac_ext >&5
 
21443
 
 
21444
ac_hi=`expr '(' $ac_mid ')' - 1`
 
21445
                       if test $ac_mid -le $ac_hi; then
 
21446
                         ac_lo= ac_hi=
 
21447
                         break
 
21448
                       fi
 
21449
                       ac_mid=`expr 2 '*' $ac_mid`
 
21450
fi
 
21451
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21452
  done
 
21453
else
 
21454
  echo "$as_me: failed program was:" >&5
 
21455
sed 's/^/| /' conftest.$ac_ext >&5
 
21456
 
 
21457
ac_lo= ac_hi=
 
21458
fi
 
21459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21460
fi
 
21461
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21462
# Binary search between lo and hi bounds.
 
21463
while test "x$ac_lo" != "x$ac_hi"; do
 
21464
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
21465
  cat >conftest.$ac_ext <<_ACEOF
 
21466
/* confdefs.h.  */
 
21467
_ACEOF
 
21468
cat confdefs.h >>conftest.$ac_ext
 
21469
cat >>conftest.$ac_ext <<_ACEOF
 
21470
/* end confdefs.h.  */
 
21471
$ac_includes_default
 
21472
int
 
21473
main ()
 
21474
{
 
21475
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
21476
test_array [0] = 0
 
21477
 
 
21478
  ;
 
21479
  return 0;
 
21480
}
 
21481
_ACEOF
 
21482
rm -f conftest.$ac_objext
 
21483
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21484
  (eval $ac_compile) 2>conftest.er1
 
21485
  ac_status=$?
 
21486
  grep -v '^ *+' conftest.er1 >conftest.err
 
21487
  rm -f conftest.er1
 
21488
  cat conftest.err >&5
 
21489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21490
  (exit $ac_status); } &&
 
21491
         { ac_try='test -z "$ac_c_werror_flag"
 
21492
                         || test ! -s conftest.err'
 
21493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21494
  (eval $ac_try) 2>&5
 
21495
  ac_status=$?
 
21496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21497
  (exit $ac_status); }; } &&
 
21498
         { ac_try='test -s conftest.$ac_objext'
 
21499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21500
  (eval $ac_try) 2>&5
 
21501
  ac_status=$?
 
21502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21503
  (exit $ac_status); }; }; then
 
21504
  ac_hi=$ac_mid
 
21505
else
 
21506
  echo "$as_me: failed program was:" >&5
 
21507
sed 's/^/| /' conftest.$ac_ext >&5
 
21508
 
 
21509
ac_lo=`expr '(' $ac_mid ')' + 1`
 
21510
fi
 
21511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21512
done
 
21513
case $ac_lo in
 
21514
?*) ac_cv_sizeof_short=$ac_lo;;
 
21515
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
21516
See \`config.log' for more details." >&5
 
21517
echo "$as_me: error: cannot compute sizeof (short), 77
 
21518
See \`config.log' for more details." >&2;}
 
21519
   { (exit 1); exit 1; }; } ;;
 
21520
esac
 
21521
else
 
21522
  if test "$cross_compiling" = yes; then
 
21523
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21524
See \`config.log' for more details." >&5
 
21525
echo "$as_me: error: cannot run test program while cross compiling
 
21526
See \`config.log' for more details." >&2;}
 
21527
   { (exit 1); exit 1; }; }
 
21528
else
 
21529
  cat >conftest.$ac_ext <<_ACEOF
 
21530
/* confdefs.h.  */
 
21531
_ACEOF
 
21532
cat confdefs.h >>conftest.$ac_ext
 
21533
cat >>conftest.$ac_ext <<_ACEOF
 
21534
/* end confdefs.h.  */
 
21535
$ac_includes_default
 
21536
long longval () { return (long) (sizeof (short)); }
 
21537
unsigned long ulongval () { return (long) (sizeof (short)); }
 
21538
#include <stdio.h>
 
21539
#include <stdlib.h>
 
21540
int
 
21541
main ()
 
21542
{
 
21543
 
 
21544
  FILE *f = fopen ("conftest.val", "w");
 
21545
  if (! f)
 
21546
    exit (1);
 
21547
  if (((long) (sizeof (short))) < 0)
 
21548
    {
 
21549
      long i = longval ();
 
21550
      if (i != ((long) (sizeof (short))))
 
21551
        exit (1);
 
21552
      fprintf (f, "%ld\n", i);
 
21553
    }
 
21554
  else
 
21555
    {
 
21556
      unsigned long i = ulongval ();
 
21557
      if (i != ((long) (sizeof (short))))
 
21558
        exit (1);
 
21559
      fprintf (f, "%lu\n", i);
 
21560
    }
 
21561
  exit (ferror (f) || fclose (f) != 0);
 
21562
 
 
21563
  ;
 
21564
  return 0;
 
21565
}
 
21566
_ACEOF
 
21567
rm -f conftest$ac_exeext
 
21568
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21569
  (eval $ac_link) 2>&5
 
21570
  ac_status=$?
 
21571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21572
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21574
  (eval $ac_try) 2>&5
 
21575
  ac_status=$?
 
21576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21577
  (exit $ac_status); }; }; then
 
21578
  ac_cv_sizeof_short=`cat conftest.val`
 
21579
else
 
21580
  echo "$as_me: program exited with status $ac_status" >&5
 
21581
echo "$as_me: failed program was:" >&5
 
21582
sed 's/^/| /' conftest.$ac_ext >&5
 
21583
 
 
21584
( exit $ac_status )
 
21585
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
21586
See \`config.log' for more details." >&5
 
21587
echo "$as_me: error: cannot compute sizeof (short), 77
 
21588
See \`config.log' for more details." >&2;}
 
21589
   { (exit 1); exit 1; }; }
 
21590
fi
 
21591
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21592
fi
 
21593
fi
 
21594
rm -f conftest.val
 
21595
else
 
21596
  ac_cv_sizeof_short=0
 
21597
fi
 
21598
fi
 
21599
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
21600
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
21601
cat >>confdefs.h <<_ACEOF
 
21602
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
21603
_ACEOF
 
21604
 
 
21605
 
 
21606
echo "$as_me:$LINENO: checking for int" >&5
 
21607
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
21608
if test "${ac_cv_type_int+set}" = set; then
 
21609
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21610
else
 
21611
  cat >conftest.$ac_ext <<_ACEOF
 
21612
/* confdefs.h.  */
 
21613
_ACEOF
 
21614
cat confdefs.h >>conftest.$ac_ext
 
21615
cat >>conftest.$ac_ext <<_ACEOF
 
21616
/* end confdefs.h.  */
 
21617
$ac_includes_default
 
21618
int
 
21619
main ()
 
21620
{
 
21621
if ((int *) 0)
 
21622
  return 0;
 
21623
if (sizeof (int))
 
21624
  return 0;
 
21625
  ;
 
21626
  return 0;
 
21627
}
 
21628
_ACEOF
 
21629
rm -f conftest.$ac_objext
 
21630
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21631
  (eval $ac_compile) 2>conftest.er1
 
21632
  ac_status=$?
 
21633
  grep -v '^ *+' conftest.er1 >conftest.err
 
21634
  rm -f conftest.er1
 
21635
  cat conftest.err >&5
 
21636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21637
  (exit $ac_status); } &&
 
21638
         { ac_try='test -z "$ac_c_werror_flag"
 
21639
                         || test ! -s conftest.err'
 
21640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21641
  (eval $ac_try) 2>&5
 
21642
  ac_status=$?
 
21643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21644
  (exit $ac_status); }; } &&
 
21645
         { ac_try='test -s conftest.$ac_objext'
 
21646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21647
  (eval $ac_try) 2>&5
 
21648
  ac_status=$?
 
21649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21650
  (exit $ac_status); }; }; then
 
21651
  ac_cv_type_int=yes
 
21652
else
 
21653
  echo "$as_me: failed program was:" >&5
 
21654
sed 's/^/| /' conftest.$ac_ext >&5
 
21655
 
 
21656
ac_cv_type_int=no
 
21657
fi
 
21658
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21659
fi
 
21660
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
21661
echo "${ECHO_T}$ac_cv_type_int" >&6
 
21662
 
 
21663
echo "$as_me:$LINENO: checking size of int" >&5
 
21664
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
21665
if test "${ac_cv_sizeof_int+set}" = set; then
 
21666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21667
else
 
21668
  if test "$ac_cv_type_int" = yes; then
 
21669
  # The cast to unsigned long works around a bug in the HP C Compiler
 
21670
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
21671
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
21672
  # This bug is HP SR number 8606223364.
 
21673
  if test "$cross_compiling" = yes; then
 
21674
  # Depending upon the size, compute the lo and hi bounds.
 
21675
cat >conftest.$ac_ext <<_ACEOF
 
21676
/* confdefs.h.  */
 
21677
_ACEOF
 
21678
cat confdefs.h >>conftest.$ac_ext
 
21679
cat >>conftest.$ac_ext <<_ACEOF
 
21680
/* end confdefs.h.  */
 
21681
$ac_includes_default
 
21682
int
 
21683
main ()
 
21684
{
 
21685
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
21686
test_array [0] = 0
 
21687
 
 
21688
  ;
 
21689
  return 0;
 
21690
}
 
21691
_ACEOF
 
21692
rm -f conftest.$ac_objext
 
21693
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21694
  (eval $ac_compile) 2>conftest.er1
 
21695
  ac_status=$?
 
21696
  grep -v '^ *+' conftest.er1 >conftest.err
 
21697
  rm -f conftest.er1
 
21698
  cat conftest.err >&5
 
21699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21700
  (exit $ac_status); } &&
 
21701
         { ac_try='test -z "$ac_c_werror_flag"
 
21702
                         || test ! -s conftest.err'
 
21703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21704
  (eval $ac_try) 2>&5
 
21705
  ac_status=$?
 
21706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21707
  (exit $ac_status); }; } &&
 
21708
         { ac_try='test -s conftest.$ac_objext'
 
21709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21710
  (eval $ac_try) 2>&5
 
21711
  ac_status=$?
 
21712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21713
  (exit $ac_status); }; }; then
 
21714
  ac_lo=0 ac_mid=0
 
21715
  while :; do
 
21716
    cat >conftest.$ac_ext <<_ACEOF
 
21717
/* confdefs.h.  */
 
21718
_ACEOF
 
21719
cat confdefs.h >>conftest.$ac_ext
 
21720
cat >>conftest.$ac_ext <<_ACEOF
 
21721
/* end confdefs.h.  */
 
21722
$ac_includes_default
 
21723
int
 
21724
main ()
 
21725
{
 
21726
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
21727
test_array [0] = 0
 
21728
 
 
21729
  ;
 
21730
  return 0;
 
21731
}
 
21732
_ACEOF
 
21733
rm -f conftest.$ac_objext
 
21734
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21735
  (eval $ac_compile) 2>conftest.er1
 
21736
  ac_status=$?
 
21737
  grep -v '^ *+' conftest.er1 >conftest.err
 
21738
  rm -f conftest.er1
 
21739
  cat conftest.err >&5
 
21740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21741
  (exit $ac_status); } &&
 
21742
         { ac_try='test -z "$ac_c_werror_flag"
 
21743
                         || test ! -s conftest.err'
 
21744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21745
  (eval $ac_try) 2>&5
 
21746
  ac_status=$?
 
21747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21748
  (exit $ac_status); }; } &&
 
21749
         { ac_try='test -s conftest.$ac_objext'
 
21750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21751
  (eval $ac_try) 2>&5
 
21752
  ac_status=$?
 
21753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21754
  (exit $ac_status); }; }; then
 
21755
  ac_hi=$ac_mid; break
 
21756
else
 
21757
  echo "$as_me: failed program was:" >&5
 
21758
sed 's/^/| /' conftest.$ac_ext >&5
 
21759
 
 
21760
ac_lo=`expr $ac_mid + 1`
 
21761
                    if test $ac_lo -le $ac_mid; then
 
21762
                      ac_lo= ac_hi=
 
21763
                      break
 
21764
                    fi
 
21765
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
21766
fi
 
21767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21768
  done
 
21769
else
 
21770
  echo "$as_me: failed program was:" >&5
 
21771
sed 's/^/| /' conftest.$ac_ext >&5
 
21772
 
 
21773
cat >conftest.$ac_ext <<_ACEOF
 
21774
/* confdefs.h.  */
 
21775
_ACEOF
 
21776
cat confdefs.h >>conftest.$ac_ext
 
21777
cat >>conftest.$ac_ext <<_ACEOF
 
21778
/* end confdefs.h.  */
 
21779
$ac_includes_default
 
21780
int
 
21781
main ()
 
21782
{
 
21783
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
21784
test_array [0] = 0
 
21785
 
 
21786
  ;
 
21787
  return 0;
 
21788
}
 
21789
_ACEOF
 
21790
rm -f conftest.$ac_objext
 
21791
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21792
  (eval $ac_compile) 2>conftest.er1
 
21793
  ac_status=$?
 
21794
  grep -v '^ *+' conftest.er1 >conftest.err
 
21795
  rm -f conftest.er1
 
21796
  cat conftest.err >&5
 
21797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21798
  (exit $ac_status); } &&
 
21799
         { ac_try='test -z "$ac_c_werror_flag"
 
21800
                         || test ! -s conftest.err'
 
21801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21802
  (eval $ac_try) 2>&5
 
21803
  ac_status=$?
 
21804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21805
  (exit $ac_status); }; } &&
 
21806
         { ac_try='test -s conftest.$ac_objext'
 
21807
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21808
  (eval $ac_try) 2>&5
 
21809
  ac_status=$?
 
21810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21811
  (exit $ac_status); }; }; then
 
21812
  ac_hi=-1 ac_mid=-1
 
21813
  while :; do
 
21814
    cat >conftest.$ac_ext <<_ACEOF
 
21815
/* confdefs.h.  */
 
21816
_ACEOF
 
21817
cat confdefs.h >>conftest.$ac_ext
 
21818
cat >>conftest.$ac_ext <<_ACEOF
 
21819
/* end confdefs.h.  */
 
21820
$ac_includes_default
 
21821
int
 
21822
main ()
 
21823
{
 
21824
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
21825
test_array [0] = 0
 
21826
 
 
21827
  ;
 
21828
  return 0;
 
21829
}
 
21830
_ACEOF
 
21831
rm -f conftest.$ac_objext
 
21832
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21833
  (eval $ac_compile) 2>conftest.er1
 
21834
  ac_status=$?
 
21835
  grep -v '^ *+' conftest.er1 >conftest.err
 
21836
  rm -f conftest.er1
 
21837
  cat conftest.err >&5
 
21838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21839
  (exit $ac_status); } &&
 
21840
         { ac_try='test -z "$ac_c_werror_flag"
 
21841
                         || test ! -s conftest.err'
 
21842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21843
  (eval $ac_try) 2>&5
 
21844
  ac_status=$?
 
21845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21846
  (exit $ac_status); }; } &&
 
21847
         { ac_try='test -s conftest.$ac_objext'
 
21848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21849
  (eval $ac_try) 2>&5
 
21850
  ac_status=$?
 
21851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21852
  (exit $ac_status); }; }; then
 
21853
  ac_lo=$ac_mid; break
 
21854
else
 
21855
  echo "$as_me: failed program was:" >&5
 
21856
sed 's/^/| /' conftest.$ac_ext >&5
 
21857
 
 
21858
ac_hi=`expr '(' $ac_mid ')' - 1`
 
21859
                       if test $ac_mid -le $ac_hi; then
 
21860
                         ac_lo= ac_hi=
 
21861
                         break
 
21862
                       fi
 
21863
                       ac_mid=`expr 2 '*' $ac_mid`
 
21864
fi
 
21865
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21866
  done
 
21867
else
 
21868
  echo "$as_me: failed program was:" >&5
 
21869
sed 's/^/| /' conftest.$ac_ext >&5
 
21870
 
 
21871
ac_lo= ac_hi=
 
21872
fi
 
21873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21874
fi
 
21875
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21876
# Binary search between lo and hi bounds.
 
21877
while test "x$ac_lo" != "x$ac_hi"; do
 
21878
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
21879
  cat >conftest.$ac_ext <<_ACEOF
 
21880
/* confdefs.h.  */
 
21881
_ACEOF
 
21882
cat confdefs.h >>conftest.$ac_ext
 
21883
cat >>conftest.$ac_ext <<_ACEOF
 
21884
/* end confdefs.h.  */
 
21885
$ac_includes_default
 
21886
int
 
21887
main ()
 
21888
{
 
21889
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
21890
test_array [0] = 0
 
21891
 
 
21892
  ;
 
21893
  return 0;
 
21894
}
 
21895
_ACEOF
 
21896
rm -f conftest.$ac_objext
 
21897
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21898
  (eval $ac_compile) 2>conftest.er1
 
21899
  ac_status=$?
 
21900
  grep -v '^ *+' conftest.er1 >conftest.err
 
21901
  rm -f conftest.er1
 
21902
  cat conftest.err >&5
 
21903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21904
  (exit $ac_status); } &&
 
21905
         { ac_try='test -z "$ac_c_werror_flag"
 
21906
                         || test ! -s conftest.err'
 
21907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21908
  (eval $ac_try) 2>&5
 
21909
  ac_status=$?
 
21910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21911
  (exit $ac_status); }; } &&
 
21912
         { ac_try='test -s conftest.$ac_objext'
 
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); }; }; then
 
21918
  ac_hi=$ac_mid
 
21919
else
 
21920
  echo "$as_me: failed program was:" >&5
 
21921
sed 's/^/| /' conftest.$ac_ext >&5
 
21922
 
 
21923
ac_lo=`expr '(' $ac_mid ')' + 1`
 
21924
fi
 
21925
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21926
done
 
21927
case $ac_lo in
 
21928
?*) ac_cv_sizeof_int=$ac_lo;;
 
21929
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
21930
See \`config.log' for more details." >&5
 
21931
echo "$as_me: error: cannot compute sizeof (int), 77
 
21932
See \`config.log' for more details." >&2;}
 
21933
   { (exit 1); exit 1; }; } ;;
 
21934
esac
 
21935
else
 
21936
  if test "$cross_compiling" = yes; then
 
21937
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21938
See \`config.log' for more details." >&5
 
21939
echo "$as_me: error: cannot run test program while cross compiling
 
21940
See \`config.log' for more details." >&2;}
 
21941
   { (exit 1); exit 1; }; }
 
21942
else
 
21943
  cat >conftest.$ac_ext <<_ACEOF
 
21944
/* confdefs.h.  */
 
21945
_ACEOF
 
21946
cat confdefs.h >>conftest.$ac_ext
 
21947
cat >>conftest.$ac_ext <<_ACEOF
 
21948
/* end confdefs.h.  */
 
21949
$ac_includes_default
 
21950
long longval () { return (long) (sizeof (int)); }
 
21951
unsigned long ulongval () { return (long) (sizeof (int)); }
 
21952
#include <stdio.h>
 
21953
#include <stdlib.h>
 
21954
int
 
21955
main ()
 
21956
{
 
21957
 
 
21958
  FILE *f = fopen ("conftest.val", "w");
 
21959
  if (! f)
 
21960
    exit (1);
 
21961
  if (((long) (sizeof (int))) < 0)
 
21962
    {
 
21963
      long i = longval ();
 
21964
      if (i != ((long) (sizeof (int))))
 
21965
        exit (1);
 
21966
      fprintf (f, "%ld\n", i);
 
21967
    }
 
21968
  else
 
21969
    {
 
21970
      unsigned long i = ulongval ();
 
21971
      if (i != ((long) (sizeof (int))))
 
21972
        exit (1);
 
21973
      fprintf (f, "%lu\n", i);
 
21974
    }
 
21975
  exit (ferror (f) || fclose (f) != 0);
 
21976
 
 
21977
  ;
 
21978
  return 0;
 
21979
}
 
21980
_ACEOF
 
21981
rm -f conftest$ac_exeext
 
21982
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21983
  (eval $ac_link) 2>&5
 
21984
  ac_status=$?
 
21985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21986
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21988
  (eval $ac_try) 2>&5
 
21989
  ac_status=$?
 
21990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21991
  (exit $ac_status); }; }; then
 
21992
  ac_cv_sizeof_int=`cat conftest.val`
 
21993
else
 
21994
  echo "$as_me: program exited with status $ac_status" >&5
 
21995
echo "$as_me: failed program was:" >&5
 
21996
sed 's/^/| /' conftest.$ac_ext >&5
 
21997
 
 
21998
( exit $ac_status )
 
21999
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
22000
See \`config.log' for more details." >&5
 
22001
echo "$as_me: error: cannot compute sizeof (int), 77
 
22002
See \`config.log' for more details." >&2;}
 
22003
   { (exit 1); exit 1; }; }
 
22004
fi
 
22005
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22006
fi
 
22007
fi
 
22008
rm -f conftest.val
 
22009
else
 
22010
  ac_cv_sizeof_int=0
 
22011
fi
 
22012
fi
 
22013
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
22014
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
22015
cat >>confdefs.h <<_ACEOF
 
22016
#define SIZEOF_INT $ac_cv_sizeof_int
 
22017
_ACEOF
 
22018
 
 
22019
 
 
22020
echo "$as_me:$LINENO: checking for long" >&5
 
22021
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
22022
if test "${ac_cv_type_long+set}" = set; then
 
22023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22024
else
 
22025
  cat >conftest.$ac_ext <<_ACEOF
 
22026
/* confdefs.h.  */
 
22027
_ACEOF
 
22028
cat confdefs.h >>conftest.$ac_ext
 
22029
cat >>conftest.$ac_ext <<_ACEOF
 
22030
/* end confdefs.h.  */
 
22031
$ac_includes_default
 
22032
int
 
22033
main ()
 
22034
{
 
22035
if ((long *) 0)
 
22036
  return 0;
 
22037
if (sizeof (long))
 
22038
  return 0;
 
22039
  ;
 
22040
  return 0;
 
22041
}
 
22042
_ACEOF
 
22043
rm -f conftest.$ac_objext
 
22044
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22045
  (eval $ac_compile) 2>conftest.er1
 
22046
  ac_status=$?
 
22047
  grep -v '^ *+' conftest.er1 >conftest.err
 
22048
  rm -f conftest.er1
 
22049
  cat conftest.err >&5
 
22050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22051
  (exit $ac_status); } &&
 
22052
         { ac_try='test -z "$ac_c_werror_flag"
 
22053
                         || test ! -s conftest.err'
 
22054
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22055
  (eval $ac_try) 2>&5
 
22056
  ac_status=$?
 
22057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22058
  (exit $ac_status); }; } &&
 
22059
         { ac_try='test -s conftest.$ac_objext'
 
22060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22061
  (eval $ac_try) 2>&5
 
22062
  ac_status=$?
 
22063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22064
  (exit $ac_status); }; }; then
 
22065
  ac_cv_type_long=yes
 
22066
else
 
22067
  echo "$as_me: failed program was:" >&5
 
22068
sed 's/^/| /' conftest.$ac_ext >&5
 
22069
 
 
22070
ac_cv_type_long=no
 
22071
fi
 
22072
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22073
fi
 
22074
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
22075
echo "${ECHO_T}$ac_cv_type_long" >&6
 
22076
 
 
22077
echo "$as_me:$LINENO: checking size of long" >&5
 
22078
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
22079
if test "${ac_cv_sizeof_long+set}" = set; then
 
22080
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22081
else
 
22082
  if test "$ac_cv_type_long" = yes; then
 
22083
  # The cast to unsigned long works around a bug in the HP C Compiler
 
22084
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
22085
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
22086
  # This bug is HP SR number 8606223364.
 
22087
  if test "$cross_compiling" = yes; then
 
22088
  # Depending upon the size, compute the lo and hi bounds.
 
22089
cat >conftest.$ac_ext <<_ACEOF
 
22090
/* confdefs.h.  */
 
22091
_ACEOF
 
22092
cat confdefs.h >>conftest.$ac_ext
 
22093
cat >>conftest.$ac_ext <<_ACEOF
 
22094
/* end confdefs.h.  */
 
22095
$ac_includes_default
 
22096
int
 
22097
main ()
 
22098
{
 
22099
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
22100
test_array [0] = 0
 
22101
 
 
22102
  ;
 
22103
  return 0;
 
22104
}
 
22105
_ACEOF
 
22106
rm -f conftest.$ac_objext
 
22107
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22108
  (eval $ac_compile) 2>conftest.er1
 
22109
  ac_status=$?
 
22110
  grep -v '^ *+' conftest.er1 >conftest.err
 
22111
  rm -f conftest.er1
 
22112
  cat conftest.err >&5
 
22113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22114
  (exit $ac_status); } &&
 
22115
         { ac_try='test -z "$ac_c_werror_flag"
 
22116
                         || test ! -s conftest.err'
 
22117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22118
  (eval $ac_try) 2>&5
 
22119
  ac_status=$?
 
22120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22121
  (exit $ac_status); }; } &&
 
22122
         { ac_try='test -s conftest.$ac_objext'
 
22123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22124
  (eval $ac_try) 2>&5
 
22125
  ac_status=$?
 
22126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22127
  (exit $ac_status); }; }; then
 
22128
  ac_lo=0 ac_mid=0
 
22129
  while :; do
 
22130
    cat >conftest.$ac_ext <<_ACEOF
 
22131
/* confdefs.h.  */
 
22132
_ACEOF
 
22133
cat confdefs.h >>conftest.$ac_ext
 
22134
cat >>conftest.$ac_ext <<_ACEOF
 
22135
/* end confdefs.h.  */
 
22136
$ac_includes_default
 
22137
int
 
22138
main ()
 
22139
{
 
22140
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
22141
test_array [0] = 0
 
22142
 
 
22143
  ;
 
22144
  return 0;
 
22145
}
 
22146
_ACEOF
 
22147
rm -f conftest.$ac_objext
 
22148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22149
  (eval $ac_compile) 2>conftest.er1
 
22150
  ac_status=$?
 
22151
  grep -v '^ *+' conftest.er1 >conftest.err
 
22152
  rm -f conftest.er1
 
22153
  cat conftest.err >&5
 
22154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22155
  (exit $ac_status); } &&
 
22156
         { ac_try='test -z "$ac_c_werror_flag"
 
22157
                         || test ! -s conftest.err'
 
22158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22159
  (eval $ac_try) 2>&5
 
22160
  ac_status=$?
 
22161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22162
  (exit $ac_status); }; } &&
 
22163
         { ac_try='test -s conftest.$ac_objext'
 
22164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22165
  (eval $ac_try) 2>&5
 
22166
  ac_status=$?
 
22167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22168
  (exit $ac_status); }; }; then
 
22169
  ac_hi=$ac_mid; break
 
22170
else
 
22171
  echo "$as_me: failed program was:" >&5
 
22172
sed 's/^/| /' conftest.$ac_ext >&5
 
22173
 
 
22174
ac_lo=`expr $ac_mid + 1`
 
22175
                    if test $ac_lo -le $ac_mid; then
 
22176
                      ac_lo= ac_hi=
 
22177
                      break
 
22178
                    fi
 
22179
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
22180
fi
 
22181
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22182
  done
 
22183
else
 
22184
  echo "$as_me: failed program was:" >&5
 
22185
sed 's/^/| /' conftest.$ac_ext >&5
 
22186
 
 
22187
cat >conftest.$ac_ext <<_ACEOF
 
22188
/* confdefs.h.  */
 
22189
_ACEOF
 
22190
cat confdefs.h >>conftest.$ac_ext
 
22191
cat >>conftest.$ac_ext <<_ACEOF
 
22192
/* end confdefs.h.  */
 
22193
$ac_includes_default
 
22194
int
 
22195
main ()
 
22196
{
 
22197
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
22198
test_array [0] = 0
 
22199
 
 
22200
  ;
 
22201
  return 0;
 
22202
}
 
22203
_ACEOF
 
22204
rm -f conftest.$ac_objext
 
22205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22206
  (eval $ac_compile) 2>conftest.er1
 
22207
  ac_status=$?
 
22208
  grep -v '^ *+' conftest.er1 >conftest.err
 
22209
  rm -f conftest.er1
 
22210
  cat conftest.err >&5
 
22211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22212
  (exit $ac_status); } &&
 
22213
         { ac_try='test -z "$ac_c_werror_flag"
 
22214
                         || test ! -s conftest.err'
 
22215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22216
  (eval $ac_try) 2>&5
 
22217
  ac_status=$?
 
22218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22219
  (exit $ac_status); }; } &&
 
22220
         { ac_try='test -s conftest.$ac_objext'
 
22221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22222
  (eval $ac_try) 2>&5
 
22223
  ac_status=$?
 
22224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22225
  (exit $ac_status); }; }; then
 
22226
  ac_hi=-1 ac_mid=-1
 
22227
  while :; do
 
22228
    cat >conftest.$ac_ext <<_ACEOF
 
22229
/* confdefs.h.  */
 
22230
_ACEOF
 
22231
cat confdefs.h >>conftest.$ac_ext
 
22232
cat >>conftest.$ac_ext <<_ACEOF
 
22233
/* end confdefs.h.  */
 
22234
$ac_includes_default
 
22235
int
 
22236
main ()
 
22237
{
 
22238
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
22239
test_array [0] = 0
 
22240
 
 
22241
  ;
 
22242
  return 0;
 
22243
}
 
22244
_ACEOF
 
22245
rm -f conftest.$ac_objext
 
22246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22247
  (eval $ac_compile) 2>conftest.er1
 
22248
  ac_status=$?
 
22249
  grep -v '^ *+' conftest.er1 >conftest.err
 
22250
  rm -f conftest.er1
 
22251
  cat conftest.err >&5
 
22252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22253
  (exit $ac_status); } &&
 
22254
         { ac_try='test -z "$ac_c_werror_flag"
 
22255
                         || test ! -s conftest.err'
 
22256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22257
  (eval $ac_try) 2>&5
 
22258
  ac_status=$?
 
22259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22260
  (exit $ac_status); }; } &&
 
22261
         { ac_try='test -s conftest.$ac_objext'
 
22262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22263
  (eval $ac_try) 2>&5
 
22264
  ac_status=$?
 
22265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22266
  (exit $ac_status); }; }; then
 
22267
  ac_lo=$ac_mid; break
 
22268
else
 
22269
  echo "$as_me: failed program was:" >&5
 
22270
sed 's/^/| /' conftest.$ac_ext >&5
 
22271
 
 
22272
ac_hi=`expr '(' $ac_mid ')' - 1`
 
22273
                       if test $ac_mid -le $ac_hi; then
 
22274
                         ac_lo= ac_hi=
 
22275
                         break
 
22276
                       fi
 
22277
                       ac_mid=`expr 2 '*' $ac_mid`
 
22278
fi
 
22279
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22280
  done
 
22281
else
 
22282
  echo "$as_me: failed program was:" >&5
 
22283
sed 's/^/| /' conftest.$ac_ext >&5
 
22284
 
 
22285
ac_lo= ac_hi=
 
22286
fi
 
22287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22288
fi
 
22289
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22290
# Binary search between lo and hi bounds.
 
22291
while test "x$ac_lo" != "x$ac_hi"; do
 
22292
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22293
  cat >conftest.$ac_ext <<_ACEOF
 
22294
/* confdefs.h.  */
 
22295
_ACEOF
 
22296
cat confdefs.h >>conftest.$ac_ext
 
22297
cat >>conftest.$ac_ext <<_ACEOF
 
22298
/* end confdefs.h.  */
 
22299
$ac_includes_default
 
22300
int
 
22301
main ()
 
22302
{
 
22303
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
22304
test_array [0] = 0
 
22305
 
 
22306
  ;
 
22307
  return 0;
 
22308
}
 
22309
_ACEOF
 
22310
rm -f conftest.$ac_objext
 
22311
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22312
  (eval $ac_compile) 2>conftest.er1
 
22313
  ac_status=$?
 
22314
  grep -v '^ *+' conftest.er1 >conftest.err
 
22315
  rm -f conftest.er1
 
22316
  cat conftest.err >&5
 
22317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22318
  (exit $ac_status); } &&
 
22319
         { ac_try='test -z "$ac_c_werror_flag"
 
22320
                         || test ! -s conftest.err'
 
22321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22322
  (eval $ac_try) 2>&5
 
22323
  ac_status=$?
 
22324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22325
  (exit $ac_status); }; } &&
 
22326
         { ac_try='test -s conftest.$ac_objext'
 
22327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22328
  (eval $ac_try) 2>&5
 
22329
  ac_status=$?
 
22330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22331
  (exit $ac_status); }; }; then
 
22332
  ac_hi=$ac_mid
 
22333
else
 
22334
  echo "$as_me: failed program was:" >&5
 
22335
sed 's/^/| /' conftest.$ac_ext >&5
 
22336
 
 
22337
ac_lo=`expr '(' $ac_mid ')' + 1`
 
22338
fi
 
22339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22340
done
 
22341
case $ac_lo in
 
22342
?*) ac_cv_sizeof_long=$ac_lo;;
 
22343
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
22344
See \`config.log' for more details." >&5
 
22345
echo "$as_me: error: cannot compute sizeof (long), 77
 
22346
See \`config.log' for more details." >&2;}
 
22347
   { (exit 1); exit 1; }; } ;;
 
22348
esac
 
22349
else
 
22350
  if test "$cross_compiling" = yes; then
 
22351
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
22352
See \`config.log' for more details." >&5
 
22353
echo "$as_me: error: cannot run test program while cross compiling
 
22354
See \`config.log' for more details." >&2;}
 
22355
   { (exit 1); exit 1; }; }
 
22356
else
 
22357
  cat >conftest.$ac_ext <<_ACEOF
 
22358
/* confdefs.h.  */
 
22359
_ACEOF
 
22360
cat confdefs.h >>conftest.$ac_ext
 
22361
cat >>conftest.$ac_ext <<_ACEOF
 
22362
/* end confdefs.h.  */
 
22363
$ac_includes_default
 
22364
long longval () { return (long) (sizeof (long)); }
 
22365
unsigned long ulongval () { return (long) (sizeof (long)); }
 
22366
#include <stdio.h>
 
22367
#include <stdlib.h>
 
22368
int
 
22369
main ()
 
22370
{
 
22371
 
 
22372
  FILE *f = fopen ("conftest.val", "w");
 
22373
  if (! f)
 
22374
    exit (1);
 
22375
  if (((long) (sizeof (long))) < 0)
 
22376
    {
 
22377
      long i = longval ();
 
22378
      if (i != ((long) (sizeof (long))))
 
22379
        exit (1);
 
22380
      fprintf (f, "%ld\n", i);
 
22381
    }
 
22382
  else
 
22383
    {
 
22384
      unsigned long i = ulongval ();
 
22385
      if (i != ((long) (sizeof (long))))
 
22386
        exit (1);
 
22387
      fprintf (f, "%lu\n", i);
 
22388
    }
 
22389
  exit (ferror (f) || fclose (f) != 0);
 
22390
 
 
22391
  ;
 
22392
  return 0;
 
22393
}
 
22394
_ACEOF
 
22395
rm -f conftest$ac_exeext
 
22396
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22397
  (eval $ac_link) 2>&5
 
22398
  ac_status=$?
 
22399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22400
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22402
  (eval $ac_try) 2>&5
 
22403
  ac_status=$?
 
22404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22405
  (exit $ac_status); }; }; then
 
22406
  ac_cv_sizeof_long=`cat conftest.val`
 
22407
else
 
22408
  echo "$as_me: program exited with status $ac_status" >&5
 
22409
echo "$as_me: failed program was:" >&5
 
22410
sed 's/^/| /' conftest.$ac_ext >&5
 
22411
 
 
22412
( exit $ac_status )
 
22413
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
22414
See \`config.log' for more details." >&5
 
22415
echo "$as_me: error: cannot compute sizeof (long), 77
 
22416
See \`config.log' for more details." >&2;}
 
22417
   { (exit 1); exit 1; }; }
 
22418
fi
 
22419
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22420
fi
 
22421
fi
 
22422
rm -f conftest.val
 
22423
else
 
22424
  ac_cv_sizeof_long=0
 
22425
fi
 
22426
fi
 
22427
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
22428
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
22429
cat >>confdefs.h <<_ACEOF
 
22430
#define SIZEOF_LONG $ac_cv_sizeof_long
 
22431
_ACEOF
 
22432
 
 
22433
 
 
22434
echo "$as_me:$LINENO: checking for long long" >&5
 
22435
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
22436
if test "${ac_cv_type_long_long+set}" = set; then
 
22437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22438
else
 
22439
  cat >conftest.$ac_ext <<_ACEOF
 
22440
/* confdefs.h.  */
 
22441
_ACEOF
 
22442
cat confdefs.h >>conftest.$ac_ext
 
22443
cat >>conftest.$ac_ext <<_ACEOF
 
22444
/* end confdefs.h.  */
 
22445
$ac_includes_default
 
22446
int
 
22447
main ()
 
22448
{
 
22449
if ((long long *) 0)
 
22450
  return 0;
 
22451
if (sizeof (long long))
 
22452
  return 0;
 
22453
  ;
 
22454
  return 0;
 
22455
}
 
22456
_ACEOF
 
22457
rm -f conftest.$ac_objext
 
22458
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22459
  (eval $ac_compile) 2>conftest.er1
 
22460
  ac_status=$?
 
22461
  grep -v '^ *+' conftest.er1 >conftest.err
 
22462
  rm -f conftest.er1
 
22463
  cat conftest.err >&5
 
22464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22465
  (exit $ac_status); } &&
 
22466
         { ac_try='test -z "$ac_c_werror_flag"
 
22467
                         || test ! -s conftest.err'
 
22468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22469
  (eval $ac_try) 2>&5
 
22470
  ac_status=$?
 
22471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22472
  (exit $ac_status); }; } &&
 
22473
         { ac_try='test -s conftest.$ac_objext'
 
22474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22475
  (eval $ac_try) 2>&5
 
22476
  ac_status=$?
 
22477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22478
  (exit $ac_status); }; }; then
 
22479
  ac_cv_type_long_long=yes
 
22480
else
 
22481
  echo "$as_me: failed program was:" >&5
 
22482
sed 's/^/| /' conftest.$ac_ext >&5
 
22483
 
 
22484
ac_cv_type_long_long=no
 
22485
fi
 
22486
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22487
fi
 
22488
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
22489
echo "${ECHO_T}$ac_cv_type_long_long" >&6
 
22490
 
 
22491
echo "$as_me:$LINENO: checking size of long long" >&5
 
22492
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
 
22493
if test "${ac_cv_sizeof_long_long+set}" = set; then
 
22494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22495
else
 
22496
  if test "$ac_cv_type_long_long" = yes; then
 
22497
  # The cast to unsigned long works around a bug in the HP C Compiler
 
22498
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
22499
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
22500
  # This bug is HP SR number 8606223364.
 
22501
  if test "$cross_compiling" = yes; then
 
22502
  # Depending upon the size, compute the lo and hi bounds.
 
22503
cat >conftest.$ac_ext <<_ACEOF
 
22504
/* confdefs.h.  */
 
22505
_ACEOF
 
22506
cat confdefs.h >>conftest.$ac_ext
 
22507
cat >>conftest.$ac_ext <<_ACEOF
 
22508
/* end confdefs.h.  */
 
22509
$ac_includes_default
 
22510
int
 
22511
main ()
 
22512
{
 
22513
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
 
22514
test_array [0] = 0
 
22515
 
 
22516
  ;
 
22517
  return 0;
 
22518
}
 
22519
_ACEOF
 
22520
rm -f conftest.$ac_objext
 
22521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22522
  (eval $ac_compile) 2>conftest.er1
 
22523
  ac_status=$?
 
22524
  grep -v '^ *+' conftest.er1 >conftest.err
 
22525
  rm -f conftest.er1
 
22526
  cat conftest.err >&5
 
22527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22528
  (exit $ac_status); } &&
 
22529
         { ac_try='test -z "$ac_c_werror_flag"
 
22530
                         || test ! -s conftest.err'
 
22531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22532
  (eval $ac_try) 2>&5
 
22533
  ac_status=$?
 
22534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22535
  (exit $ac_status); }; } &&
 
22536
         { ac_try='test -s conftest.$ac_objext'
 
22537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22538
  (eval $ac_try) 2>&5
 
22539
  ac_status=$?
 
22540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22541
  (exit $ac_status); }; }; then
 
22542
  ac_lo=0 ac_mid=0
 
22543
  while :; do
 
22544
    cat >conftest.$ac_ext <<_ACEOF
 
22545
/* confdefs.h.  */
 
22546
_ACEOF
 
22547
cat confdefs.h >>conftest.$ac_ext
 
22548
cat >>conftest.$ac_ext <<_ACEOF
 
22549
/* end confdefs.h.  */
 
22550
$ac_includes_default
 
22551
int
 
22552
main ()
 
22553
{
 
22554
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
22555
test_array [0] = 0
 
22556
 
 
22557
  ;
 
22558
  return 0;
 
22559
}
 
22560
_ACEOF
 
22561
rm -f conftest.$ac_objext
 
22562
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22563
  (eval $ac_compile) 2>conftest.er1
 
22564
  ac_status=$?
 
22565
  grep -v '^ *+' conftest.er1 >conftest.err
 
22566
  rm -f conftest.er1
 
22567
  cat conftest.err >&5
 
22568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22569
  (exit $ac_status); } &&
 
22570
         { ac_try='test -z "$ac_c_werror_flag"
 
22571
                         || test ! -s conftest.err'
 
22572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22573
  (eval $ac_try) 2>&5
 
22574
  ac_status=$?
 
22575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22576
  (exit $ac_status); }; } &&
 
22577
         { ac_try='test -s conftest.$ac_objext'
 
22578
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22579
  (eval $ac_try) 2>&5
 
22580
  ac_status=$?
 
22581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22582
  (exit $ac_status); }; }; then
 
22583
  ac_hi=$ac_mid; break
 
22584
else
 
22585
  echo "$as_me: failed program was:" >&5
 
22586
sed 's/^/| /' conftest.$ac_ext >&5
 
22587
 
 
22588
ac_lo=`expr $ac_mid + 1`
 
22589
                    if test $ac_lo -le $ac_mid; then
 
22590
                      ac_lo= ac_hi=
 
22591
                      break
 
22592
                    fi
 
22593
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
22594
fi
 
22595
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22596
  done
 
22597
else
 
22598
  echo "$as_me: failed program was:" >&5
 
22599
sed 's/^/| /' conftest.$ac_ext >&5
 
22600
 
 
22601
cat >conftest.$ac_ext <<_ACEOF
 
22602
/* confdefs.h.  */
 
22603
_ACEOF
 
22604
cat confdefs.h >>conftest.$ac_ext
 
22605
cat >>conftest.$ac_ext <<_ACEOF
 
22606
/* end confdefs.h.  */
 
22607
$ac_includes_default
 
22608
int
 
22609
main ()
 
22610
{
 
22611
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
 
22612
test_array [0] = 0
 
22613
 
 
22614
  ;
 
22615
  return 0;
 
22616
}
 
22617
_ACEOF
 
22618
rm -f conftest.$ac_objext
 
22619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22620
  (eval $ac_compile) 2>conftest.er1
 
22621
  ac_status=$?
 
22622
  grep -v '^ *+' conftest.er1 >conftest.err
 
22623
  rm -f conftest.er1
 
22624
  cat conftest.err >&5
 
22625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22626
  (exit $ac_status); } &&
 
22627
         { ac_try='test -z "$ac_c_werror_flag"
 
22628
                         || test ! -s conftest.err'
 
22629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22630
  (eval $ac_try) 2>&5
 
22631
  ac_status=$?
 
22632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22633
  (exit $ac_status); }; } &&
 
22634
         { ac_try='test -s conftest.$ac_objext'
 
22635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22636
  (eval $ac_try) 2>&5
 
22637
  ac_status=$?
 
22638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22639
  (exit $ac_status); }; }; then
 
22640
  ac_hi=-1 ac_mid=-1
 
22641
  while :; do
 
22642
    cat >conftest.$ac_ext <<_ACEOF
 
22643
/* confdefs.h.  */
 
22644
_ACEOF
 
22645
cat confdefs.h >>conftest.$ac_ext
 
22646
cat >>conftest.$ac_ext <<_ACEOF
 
22647
/* end confdefs.h.  */
 
22648
$ac_includes_default
 
22649
int
 
22650
main ()
 
22651
{
 
22652
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
 
22653
test_array [0] = 0
 
22654
 
 
22655
  ;
 
22656
  return 0;
 
22657
}
 
22658
_ACEOF
 
22659
rm -f conftest.$ac_objext
 
22660
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22661
  (eval $ac_compile) 2>conftest.er1
 
22662
  ac_status=$?
 
22663
  grep -v '^ *+' conftest.er1 >conftest.err
 
22664
  rm -f conftest.er1
 
22665
  cat conftest.err >&5
 
22666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22667
  (exit $ac_status); } &&
 
22668
         { ac_try='test -z "$ac_c_werror_flag"
 
22669
                         || test ! -s conftest.err'
 
22670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22671
  (eval $ac_try) 2>&5
 
22672
  ac_status=$?
 
22673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22674
  (exit $ac_status); }; } &&
 
22675
         { ac_try='test -s conftest.$ac_objext'
 
22676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22677
  (eval $ac_try) 2>&5
 
22678
  ac_status=$?
 
22679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22680
  (exit $ac_status); }; }; then
 
22681
  ac_lo=$ac_mid; break
 
22682
else
 
22683
  echo "$as_me: failed program was:" >&5
 
22684
sed 's/^/| /' conftest.$ac_ext >&5
 
22685
 
 
22686
ac_hi=`expr '(' $ac_mid ')' - 1`
 
22687
                       if test $ac_mid -le $ac_hi; then
 
22688
                         ac_lo= ac_hi=
 
22689
                         break
 
22690
                       fi
 
22691
                       ac_mid=`expr 2 '*' $ac_mid`
 
22692
fi
 
22693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22694
  done
 
22695
else
 
22696
  echo "$as_me: failed program was:" >&5
 
22697
sed 's/^/| /' conftest.$ac_ext >&5
 
22698
 
 
22699
ac_lo= ac_hi=
 
22700
fi
 
22701
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22702
fi
 
22703
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22704
# Binary search between lo and hi bounds.
 
22705
while test "x$ac_lo" != "x$ac_hi"; do
 
22706
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22707
  cat >conftest.$ac_ext <<_ACEOF
 
22708
/* confdefs.h.  */
 
22709
_ACEOF
 
22710
cat confdefs.h >>conftest.$ac_ext
 
22711
cat >>conftest.$ac_ext <<_ACEOF
 
22712
/* end confdefs.h.  */
 
22713
$ac_includes_default
 
22714
int
 
22715
main ()
 
22716
{
 
22717
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
22718
test_array [0] = 0
 
22719
 
 
22720
  ;
 
22721
  return 0;
 
22722
}
 
22723
_ACEOF
 
22724
rm -f conftest.$ac_objext
 
22725
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22726
  (eval $ac_compile) 2>conftest.er1
 
22727
  ac_status=$?
 
22728
  grep -v '^ *+' conftest.er1 >conftest.err
 
22729
  rm -f conftest.er1
 
22730
  cat conftest.err >&5
 
22731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22732
  (exit $ac_status); } &&
 
22733
         { ac_try='test -z "$ac_c_werror_flag"
 
22734
                         || test ! -s conftest.err'
 
22735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22736
  (eval $ac_try) 2>&5
 
22737
  ac_status=$?
 
22738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22739
  (exit $ac_status); }; } &&
 
22740
         { ac_try='test -s conftest.$ac_objext'
 
22741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22742
  (eval $ac_try) 2>&5
 
22743
  ac_status=$?
 
22744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22745
  (exit $ac_status); }; }; then
 
22746
  ac_hi=$ac_mid
 
22747
else
 
22748
  echo "$as_me: failed program was:" >&5
 
22749
sed 's/^/| /' conftest.$ac_ext >&5
 
22750
 
 
22751
ac_lo=`expr '(' $ac_mid ')' + 1`
 
22752
fi
 
22753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22754
done
 
22755
case $ac_lo in
 
22756
?*) ac_cv_sizeof_long_long=$ac_lo;;
 
22757
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
22758
See \`config.log' for more details." >&5
 
22759
echo "$as_me: error: cannot compute sizeof (long long), 77
 
22760
See \`config.log' for more details." >&2;}
 
22761
   { (exit 1); exit 1; }; } ;;
 
22762
esac
 
22763
else
 
22764
  if test "$cross_compiling" = yes; then
 
22765
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
22766
See \`config.log' for more details." >&5
 
22767
echo "$as_me: error: cannot run test program while cross compiling
 
22768
See \`config.log' for more details." >&2;}
 
22769
   { (exit 1); exit 1; }; }
 
22770
else
 
22771
  cat >conftest.$ac_ext <<_ACEOF
 
22772
/* confdefs.h.  */
 
22773
_ACEOF
 
22774
cat confdefs.h >>conftest.$ac_ext
 
22775
cat >>conftest.$ac_ext <<_ACEOF
 
22776
/* end confdefs.h.  */
 
22777
$ac_includes_default
 
22778
long longval () { return (long) (sizeof (long long)); }
 
22779
unsigned long ulongval () { return (long) (sizeof (long long)); }
 
22780
#include <stdio.h>
 
22781
#include <stdlib.h>
 
22782
int
 
22783
main ()
 
22784
{
 
22785
 
 
22786
  FILE *f = fopen ("conftest.val", "w");
 
22787
  if (! f)
 
22788
    exit (1);
 
22789
  if (((long) (sizeof (long long))) < 0)
 
22790
    {
 
22791
      long i = longval ();
 
22792
      if (i != ((long) (sizeof (long long))))
 
22793
        exit (1);
 
22794
      fprintf (f, "%ld\n", i);
 
22795
    }
 
22796
  else
 
22797
    {
 
22798
      unsigned long i = ulongval ();
 
22799
      if (i != ((long) (sizeof (long long))))
 
22800
        exit (1);
 
22801
      fprintf (f, "%lu\n", i);
 
22802
    }
 
22803
  exit (ferror (f) || fclose (f) != 0);
 
22804
 
 
22805
  ;
 
22806
  return 0;
 
22807
}
 
22808
_ACEOF
 
22809
rm -f conftest$ac_exeext
 
22810
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22811
  (eval $ac_link) 2>&5
 
22812
  ac_status=$?
 
22813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22814
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22816
  (eval $ac_try) 2>&5
 
22817
  ac_status=$?
 
22818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22819
  (exit $ac_status); }; }; then
 
22820
  ac_cv_sizeof_long_long=`cat conftest.val`
 
22821
else
 
22822
  echo "$as_me: program exited with status $ac_status" >&5
 
22823
echo "$as_me: failed program was:" >&5
 
22824
sed 's/^/| /' conftest.$ac_ext >&5
 
22825
 
 
22826
( exit $ac_status )
 
22827
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
22828
See \`config.log' for more details." >&5
 
22829
echo "$as_me: error: cannot compute sizeof (long long), 77
 
22830
See \`config.log' for more details." >&2;}
 
22831
   { (exit 1); exit 1; }; }
 
22832
fi
 
22833
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22834
fi
 
22835
fi
 
22836
rm -f conftest.val
 
22837
else
 
22838
  ac_cv_sizeof_long_long=0
 
22839
fi
 
22840
fi
 
22841
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
22842
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
 
22843
cat >>confdefs.h <<_ACEOF
 
22844
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
 
22845
_ACEOF
 
22846
 
 
22847
 
 
22848
echo "$as_me:$LINENO: checking for float" >&5
 
22849
echo $ECHO_N "checking for float... $ECHO_C" >&6
 
22850
if test "${ac_cv_type_float+set}" = set; then
 
22851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22852
else
 
22853
  cat >conftest.$ac_ext <<_ACEOF
 
22854
/* confdefs.h.  */
 
22855
_ACEOF
 
22856
cat confdefs.h >>conftest.$ac_ext
 
22857
cat >>conftest.$ac_ext <<_ACEOF
 
22858
/* end confdefs.h.  */
 
22859
$ac_includes_default
 
22860
int
 
22861
main ()
 
22862
{
 
22863
if ((float *) 0)
 
22864
  return 0;
 
22865
if (sizeof (float))
 
22866
  return 0;
 
22867
  ;
 
22868
  return 0;
 
22869
}
 
22870
_ACEOF
 
22871
rm -f conftest.$ac_objext
 
22872
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22873
  (eval $ac_compile) 2>conftest.er1
 
22874
  ac_status=$?
 
22875
  grep -v '^ *+' conftest.er1 >conftest.err
 
22876
  rm -f conftest.er1
 
22877
  cat conftest.err >&5
 
22878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22879
  (exit $ac_status); } &&
 
22880
         { ac_try='test -z "$ac_c_werror_flag"
 
22881
                         || test ! -s conftest.err'
 
22882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22883
  (eval $ac_try) 2>&5
 
22884
  ac_status=$?
 
22885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22886
  (exit $ac_status); }; } &&
 
22887
         { ac_try='test -s conftest.$ac_objext'
 
22888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22889
  (eval $ac_try) 2>&5
 
22890
  ac_status=$?
 
22891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22892
  (exit $ac_status); }; }; then
 
22893
  ac_cv_type_float=yes
 
22894
else
 
22895
  echo "$as_me: failed program was:" >&5
 
22896
sed 's/^/| /' conftest.$ac_ext >&5
 
22897
 
 
22898
ac_cv_type_float=no
 
22899
fi
 
22900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22901
fi
 
22902
echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
 
22903
echo "${ECHO_T}$ac_cv_type_float" >&6
 
22904
 
 
22905
echo "$as_me:$LINENO: checking size of float" >&5
 
22906
echo $ECHO_N "checking size of float... $ECHO_C" >&6
 
22907
if test "${ac_cv_sizeof_float+set}" = set; then
 
22908
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22909
else
 
22910
  if test "$ac_cv_type_float" = yes; then
 
22911
  # The cast to unsigned long works around a bug in the HP C Compiler
 
22912
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
22913
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
22914
  # This bug is HP SR number 8606223364.
 
22915
  if test "$cross_compiling" = yes; then
 
22916
  # Depending upon the size, compute the lo and hi bounds.
 
22917
cat >conftest.$ac_ext <<_ACEOF
 
22918
/* confdefs.h.  */
 
22919
_ACEOF
 
22920
cat confdefs.h >>conftest.$ac_ext
 
22921
cat >>conftest.$ac_ext <<_ACEOF
 
22922
/* end confdefs.h.  */
 
22923
$ac_includes_default
 
22924
int
 
22925
main ()
 
22926
{
 
22927
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
 
22928
test_array [0] = 0
 
22929
 
 
22930
  ;
 
22931
  return 0;
 
22932
}
 
22933
_ACEOF
 
22934
rm -f conftest.$ac_objext
 
22935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22936
  (eval $ac_compile) 2>conftest.er1
 
22937
  ac_status=$?
 
22938
  grep -v '^ *+' conftest.er1 >conftest.err
 
22939
  rm -f conftest.er1
 
22940
  cat conftest.err >&5
 
22941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22942
  (exit $ac_status); } &&
 
22943
         { ac_try='test -z "$ac_c_werror_flag"
 
22944
                         || test ! -s conftest.err'
 
22945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22946
  (eval $ac_try) 2>&5
 
22947
  ac_status=$?
 
22948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22949
  (exit $ac_status); }; } &&
 
22950
         { ac_try='test -s conftest.$ac_objext'
 
22951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22952
  (eval $ac_try) 2>&5
 
22953
  ac_status=$?
 
22954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22955
  (exit $ac_status); }; }; then
 
22956
  ac_lo=0 ac_mid=0
 
22957
  while :; do
 
22958
    cat >conftest.$ac_ext <<_ACEOF
 
22959
/* confdefs.h.  */
 
22960
_ACEOF
 
22961
cat confdefs.h >>conftest.$ac_ext
 
22962
cat >>conftest.$ac_ext <<_ACEOF
 
22963
/* end confdefs.h.  */
 
22964
$ac_includes_default
 
22965
int
 
22966
main ()
 
22967
{
 
22968
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
 
22969
test_array [0] = 0
 
22970
 
 
22971
  ;
 
22972
  return 0;
 
22973
}
 
22974
_ACEOF
 
22975
rm -f conftest.$ac_objext
 
22976
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22977
  (eval $ac_compile) 2>conftest.er1
 
22978
  ac_status=$?
 
22979
  grep -v '^ *+' conftest.er1 >conftest.err
 
22980
  rm -f conftest.er1
 
22981
  cat conftest.err >&5
 
22982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22983
  (exit $ac_status); } &&
 
22984
         { ac_try='test -z "$ac_c_werror_flag"
 
22985
                         || test ! -s conftest.err'
 
22986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22987
  (eval $ac_try) 2>&5
 
22988
  ac_status=$?
 
22989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22990
  (exit $ac_status); }; } &&
 
22991
         { ac_try='test -s conftest.$ac_objext'
 
22992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22993
  (eval $ac_try) 2>&5
 
22994
  ac_status=$?
 
22995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22996
  (exit $ac_status); }; }; then
 
22997
  ac_hi=$ac_mid; break
 
22998
else
 
22999
  echo "$as_me: failed program was:" >&5
 
23000
sed 's/^/| /' conftest.$ac_ext >&5
 
23001
 
 
23002
ac_lo=`expr $ac_mid + 1`
 
23003
                    if test $ac_lo -le $ac_mid; then
 
23004
                      ac_lo= ac_hi=
 
23005
                      break
 
23006
                    fi
 
23007
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
23008
fi
 
23009
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23010
  done
 
23011
else
 
23012
  echo "$as_me: failed program was:" >&5
 
23013
sed 's/^/| /' conftest.$ac_ext >&5
 
23014
 
 
23015
cat >conftest.$ac_ext <<_ACEOF
 
23016
/* confdefs.h.  */
 
23017
_ACEOF
 
23018
cat confdefs.h >>conftest.$ac_ext
 
23019
cat >>conftest.$ac_ext <<_ACEOF
 
23020
/* end confdefs.h.  */
 
23021
$ac_includes_default
 
23022
int
 
23023
main ()
 
23024
{
 
23025
static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
 
23026
test_array [0] = 0
 
23027
 
 
23028
  ;
 
23029
  return 0;
 
23030
}
 
23031
_ACEOF
 
23032
rm -f conftest.$ac_objext
 
23033
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23034
  (eval $ac_compile) 2>conftest.er1
 
23035
  ac_status=$?
 
23036
  grep -v '^ *+' conftest.er1 >conftest.err
 
23037
  rm -f conftest.er1
 
23038
  cat conftest.err >&5
 
23039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23040
  (exit $ac_status); } &&
 
23041
         { ac_try='test -z "$ac_c_werror_flag"
 
23042
                         || test ! -s conftest.err'
 
23043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23044
  (eval $ac_try) 2>&5
 
23045
  ac_status=$?
 
23046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23047
  (exit $ac_status); }; } &&
 
23048
         { ac_try='test -s conftest.$ac_objext'
 
23049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23050
  (eval $ac_try) 2>&5
 
23051
  ac_status=$?
 
23052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23053
  (exit $ac_status); }; }; then
 
23054
  ac_hi=-1 ac_mid=-1
 
23055
  while :; do
 
23056
    cat >conftest.$ac_ext <<_ACEOF
 
23057
/* confdefs.h.  */
 
23058
_ACEOF
 
23059
cat confdefs.h >>conftest.$ac_ext
 
23060
cat >>conftest.$ac_ext <<_ACEOF
 
23061
/* end confdefs.h.  */
 
23062
$ac_includes_default
 
23063
int
 
23064
main ()
 
23065
{
 
23066
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
 
23067
test_array [0] = 0
 
23068
 
 
23069
  ;
 
23070
  return 0;
 
23071
}
 
23072
_ACEOF
 
23073
rm -f conftest.$ac_objext
 
23074
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23075
  (eval $ac_compile) 2>conftest.er1
 
23076
  ac_status=$?
 
23077
  grep -v '^ *+' conftest.er1 >conftest.err
 
23078
  rm -f conftest.er1
 
23079
  cat conftest.err >&5
 
23080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23081
  (exit $ac_status); } &&
 
23082
         { ac_try='test -z "$ac_c_werror_flag"
 
23083
                         || test ! -s conftest.err'
 
23084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23085
  (eval $ac_try) 2>&5
 
23086
  ac_status=$?
 
23087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23088
  (exit $ac_status); }; } &&
 
23089
         { ac_try='test -s conftest.$ac_objext'
 
23090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23091
  (eval $ac_try) 2>&5
 
23092
  ac_status=$?
 
23093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23094
  (exit $ac_status); }; }; then
 
23095
  ac_lo=$ac_mid; break
 
23096
else
 
23097
  echo "$as_me: failed program was:" >&5
 
23098
sed 's/^/| /' conftest.$ac_ext >&5
 
23099
 
 
23100
ac_hi=`expr '(' $ac_mid ')' - 1`
 
23101
                       if test $ac_mid -le $ac_hi; then
 
23102
                         ac_lo= ac_hi=
 
23103
                         break
 
23104
                       fi
 
23105
                       ac_mid=`expr 2 '*' $ac_mid`
 
23106
fi
 
23107
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23108
  done
 
23109
else
 
23110
  echo "$as_me: failed program was:" >&5
 
23111
sed 's/^/| /' conftest.$ac_ext >&5
 
23112
 
 
23113
ac_lo= ac_hi=
 
23114
fi
 
23115
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23116
fi
 
23117
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23118
# Binary search between lo and hi bounds.
 
23119
while test "x$ac_lo" != "x$ac_hi"; do
 
23120
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
23121
  cat >conftest.$ac_ext <<_ACEOF
 
23122
/* confdefs.h.  */
 
23123
_ACEOF
 
23124
cat confdefs.h >>conftest.$ac_ext
 
23125
cat >>conftest.$ac_ext <<_ACEOF
 
23126
/* end confdefs.h.  */
 
23127
$ac_includes_default
 
23128
int
 
23129
main ()
 
23130
{
 
23131
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
 
23132
test_array [0] = 0
 
23133
 
 
23134
  ;
 
23135
  return 0;
 
23136
}
 
23137
_ACEOF
 
23138
rm -f conftest.$ac_objext
 
23139
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23140
  (eval $ac_compile) 2>conftest.er1
 
23141
  ac_status=$?
 
23142
  grep -v '^ *+' conftest.er1 >conftest.err
 
23143
  rm -f conftest.er1
 
23144
  cat conftest.err >&5
 
23145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23146
  (exit $ac_status); } &&
 
23147
         { ac_try='test -z "$ac_c_werror_flag"
 
23148
                         || test ! -s conftest.err'
 
23149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23150
  (eval $ac_try) 2>&5
 
23151
  ac_status=$?
 
23152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23153
  (exit $ac_status); }; } &&
 
23154
         { ac_try='test -s conftest.$ac_objext'
 
23155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23156
  (eval $ac_try) 2>&5
 
23157
  ac_status=$?
 
23158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23159
  (exit $ac_status); }; }; then
 
23160
  ac_hi=$ac_mid
 
23161
else
 
23162
  echo "$as_me: failed program was:" >&5
 
23163
sed 's/^/| /' conftest.$ac_ext >&5
 
23164
 
 
23165
ac_lo=`expr '(' $ac_mid ')' + 1`
 
23166
fi
 
23167
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23168
done
 
23169
case $ac_lo in
 
23170
?*) ac_cv_sizeof_float=$ac_lo;;
 
23171
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
 
23172
See \`config.log' for more details." >&5
 
23173
echo "$as_me: error: cannot compute sizeof (float), 77
 
23174
See \`config.log' for more details." >&2;}
 
23175
   { (exit 1); exit 1; }; } ;;
 
23176
esac
 
23177
else
 
23178
  if test "$cross_compiling" = yes; then
 
23179
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
23180
See \`config.log' for more details." >&5
 
23181
echo "$as_me: error: cannot run test program while cross compiling
 
23182
See \`config.log' for more details." >&2;}
 
23183
   { (exit 1); exit 1; }; }
 
23184
else
 
23185
  cat >conftest.$ac_ext <<_ACEOF
 
23186
/* confdefs.h.  */
 
23187
_ACEOF
 
23188
cat confdefs.h >>conftest.$ac_ext
 
23189
cat >>conftest.$ac_ext <<_ACEOF
 
23190
/* end confdefs.h.  */
 
23191
$ac_includes_default
 
23192
long longval () { return (long) (sizeof (float)); }
 
23193
unsigned long ulongval () { return (long) (sizeof (float)); }
 
23194
#include <stdio.h>
 
23195
#include <stdlib.h>
 
23196
int
 
23197
main ()
 
23198
{
 
23199
 
 
23200
  FILE *f = fopen ("conftest.val", "w");
 
23201
  if (! f)
 
23202
    exit (1);
 
23203
  if (((long) (sizeof (float))) < 0)
 
23204
    {
 
23205
      long i = longval ();
 
23206
      if (i != ((long) (sizeof (float))))
 
23207
        exit (1);
 
23208
      fprintf (f, "%ld\n", i);
 
23209
    }
 
23210
  else
 
23211
    {
 
23212
      unsigned long i = ulongval ();
 
23213
      if (i != ((long) (sizeof (float))))
 
23214
        exit (1);
 
23215
      fprintf (f, "%lu\n", i);
 
23216
    }
 
23217
  exit (ferror (f) || fclose (f) != 0);
 
23218
 
 
23219
  ;
 
23220
  return 0;
 
23221
}
 
23222
_ACEOF
 
23223
rm -f conftest$ac_exeext
 
23224
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23225
  (eval $ac_link) 2>&5
 
23226
  ac_status=$?
 
23227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23228
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23230
  (eval $ac_try) 2>&5
 
23231
  ac_status=$?
 
23232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23233
  (exit $ac_status); }; }; then
 
23234
  ac_cv_sizeof_float=`cat conftest.val`
 
23235
else
 
23236
  echo "$as_me: program exited with status $ac_status" >&5
 
23237
echo "$as_me: failed program was:" >&5
 
23238
sed 's/^/| /' conftest.$ac_ext >&5
 
23239
 
 
23240
( exit $ac_status )
 
23241
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
 
23242
See \`config.log' for more details." >&5
 
23243
echo "$as_me: error: cannot compute sizeof (float), 77
 
23244
See \`config.log' for more details." >&2;}
 
23245
   { (exit 1); exit 1; }; }
 
23246
fi
 
23247
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23248
fi
 
23249
fi
 
23250
rm -f conftest.val
 
23251
else
 
23252
  ac_cv_sizeof_float=0
 
23253
fi
 
23254
fi
 
23255
echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
 
23256
echo "${ECHO_T}$ac_cv_sizeof_float" >&6
 
23257
cat >>confdefs.h <<_ACEOF
 
23258
#define SIZEOF_FLOAT $ac_cv_sizeof_float
 
23259
_ACEOF
 
23260
 
 
23261
 
 
23262
echo "$as_me:$LINENO: checking for double" >&5
 
23263
echo $ECHO_N "checking for double... $ECHO_C" >&6
 
23264
if test "${ac_cv_type_double+set}" = set; then
 
23265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23266
else
 
23267
  cat >conftest.$ac_ext <<_ACEOF
 
23268
/* confdefs.h.  */
 
23269
_ACEOF
 
23270
cat confdefs.h >>conftest.$ac_ext
 
23271
cat >>conftest.$ac_ext <<_ACEOF
 
23272
/* end confdefs.h.  */
 
23273
$ac_includes_default
 
23274
int
 
23275
main ()
 
23276
{
 
23277
if ((double *) 0)
 
23278
  return 0;
 
23279
if (sizeof (double))
 
23280
  return 0;
 
23281
  ;
 
23282
  return 0;
 
23283
}
 
23284
_ACEOF
 
23285
rm -f conftest.$ac_objext
 
23286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23287
  (eval $ac_compile) 2>conftest.er1
 
23288
  ac_status=$?
 
23289
  grep -v '^ *+' conftest.er1 >conftest.err
 
23290
  rm -f conftest.er1
 
23291
  cat conftest.err >&5
 
23292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23293
  (exit $ac_status); } &&
 
23294
         { ac_try='test -z "$ac_c_werror_flag"
 
23295
                         || test ! -s conftest.err'
 
23296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23297
  (eval $ac_try) 2>&5
 
23298
  ac_status=$?
 
23299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23300
  (exit $ac_status); }; } &&
 
23301
         { ac_try='test -s conftest.$ac_objext'
 
23302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23303
  (eval $ac_try) 2>&5
 
23304
  ac_status=$?
 
23305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23306
  (exit $ac_status); }; }; then
 
23307
  ac_cv_type_double=yes
 
23308
else
 
23309
  echo "$as_me: failed program was:" >&5
 
23310
sed 's/^/| /' conftest.$ac_ext >&5
 
23311
 
 
23312
ac_cv_type_double=no
 
23313
fi
 
23314
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23315
fi
 
23316
echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
 
23317
echo "${ECHO_T}$ac_cv_type_double" >&6
 
23318
 
 
23319
echo "$as_me:$LINENO: checking size of double" >&5
 
23320
echo $ECHO_N "checking size of double... $ECHO_C" >&6
 
23321
if test "${ac_cv_sizeof_double+set}" = set; then
 
23322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23323
else
 
23324
  if test "$ac_cv_type_double" = yes; then
 
23325
  # The cast to unsigned long works around a bug in the HP C Compiler
 
23326
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
23327
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
23328
  # This bug is HP SR number 8606223364.
 
23329
  if test "$cross_compiling" = yes; then
 
23330
  # Depending upon the size, compute the lo and hi bounds.
 
23331
cat >conftest.$ac_ext <<_ACEOF
 
23332
/* confdefs.h.  */
 
23333
_ACEOF
 
23334
cat confdefs.h >>conftest.$ac_ext
 
23335
cat >>conftest.$ac_ext <<_ACEOF
 
23336
/* end confdefs.h.  */
 
23337
$ac_includes_default
 
23338
int
 
23339
main ()
 
23340
{
 
23341
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
 
23342
test_array [0] = 0
 
23343
 
 
23344
  ;
 
23345
  return 0;
 
23346
}
 
23347
_ACEOF
 
23348
rm -f conftest.$ac_objext
 
23349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23350
  (eval $ac_compile) 2>conftest.er1
 
23351
  ac_status=$?
 
23352
  grep -v '^ *+' conftest.er1 >conftest.err
 
23353
  rm -f conftest.er1
 
23354
  cat conftest.err >&5
 
23355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23356
  (exit $ac_status); } &&
 
23357
         { ac_try='test -z "$ac_c_werror_flag"
 
23358
                         || test ! -s conftest.err'
 
23359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23360
  (eval $ac_try) 2>&5
 
23361
  ac_status=$?
 
23362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23363
  (exit $ac_status); }; } &&
 
23364
         { ac_try='test -s conftest.$ac_objext'
 
23365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23366
  (eval $ac_try) 2>&5
 
23367
  ac_status=$?
 
23368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23369
  (exit $ac_status); }; }; then
 
23370
  ac_lo=0 ac_mid=0
 
23371
  while :; do
 
23372
    cat >conftest.$ac_ext <<_ACEOF
 
23373
/* confdefs.h.  */
 
23374
_ACEOF
 
23375
cat confdefs.h >>conftest.$ac_ext
 
23376
cat >>conftest.$ac_ext <<_ACEOF
 
23377
/* end confdefs.h.  */
 
23378
$ac_includes_default
 
23379
int
 
23380
main ()
 
23381
{
 
23382
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
 
23383
test_array [0] = 0
 
23384
 
 
23385
  ;
 
23386
  return 0;
 
23387
}
 
23388
_ACEOF
 
23389
rm -f conftest.$ac_objext
 
23390
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23391
  (eval $ac_compile) 2>conftest.er1
 
23392
  ac_status=$?
 
23393
  grep -v '^ *+' conftest.er1 >conftest.err
 
23394
  rm -f conftest.er1
 
23395
  cat conftest.err >&5
 
23396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23397
  (exit $ac_status); } &&
 
23398
         { ac_try='test -z "$ac_c_werror_flag"
 
23399
                         || test ! -s conftest.err'
 
23400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23401
  (eval $ac_try) 2>&5
 
23402
  ac_status=$?
 
23403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23404
  (exit $ac_status); }; } &&
 
23405
         { ac_try='test -s conftest.$ac_objext'
 
23406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23407
  (eval $ac_try) 2>&5
 
23408
  ac_status=$?
 
23409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23410
  (exit $ac_status); }; }; then
 
23411
  ac_hi=$ac_mid; break
 
23412
else
 
23413
  echo "$as_me: failed program was:" >&5
 
23414
sed 's/^/| /' conftest.$ac_ext >&5
 
23415
 
 
23416
ac_lo=`expr $ac_mid + 1`
 
23417
                    if test $ac_lo -le $ac_mid; then
 
23418
                      ac_lo= ac_hi=
 
23419
                      break
 
23420
                    fi
 
23421
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
23422
fi
 
23423
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23424
  done
 
23425
else
 
23426
  echo "$as_me: failed program was:" >&5
 
23427
sed 's/^/| /' conftest.$ac_ext >&5
 
23428
 
 
23429
cat >conftest.$ac_ext <<_ACEOF
 
23430
/* confdefs.h.  */
 
23431
_ACEOF
 
23432
cat confdefs.h >>conftest.$ac_ext
 
23433
cat >>conftest.$ac_ext <<_ACEOF
 
23434
/* end confdefs.h.  */
 
23435
$ac_includes_default
 
23436
int
 
23437
main ()
 
23438
{
 
23439
static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
 
23440
test_array [0] = 0
 
23441
 
 
23442
  ;
 
23443
  return 0;
 
23444
}
 
23445
_ACEOF
 
23446
rm -f conftest.$ac_objext
 
23447
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23448
  (eval $ac_compile) 2>conftest.er1
 
23449
  ac_status=$?
 
23450
  grep -v '^ *+' conftest.er1 >conftest.err
 
23451
  rm -f conftest.er1
 
23452
  cat conftest.err >&5
 
23453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23454
  (exit $ac_status); } &&
 
23455
         { ac_try='test -z "$ac_c_werror_flag"
 
23456
                         || test ! -s conftest.err'
 
23457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23458
  (eval $ac_try) 2>&5
 
23459
  ac_status=$?
 
23460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23461
  (exit $ac_status); }; } &&
 
23462
         { ac_try='test -s conftest.$ac_objext'
 
23463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23464
  (eval $ac_try) 2>&5
 
23465
  ac_status=$?
 
23466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23467
  (exit $ac_status); }; }; then
 
23468
  ac_hi=-1 ac_mid=-1
 
23469
  while :; do
 
23470
    cat >conftest.$ac_ext <<_ACEOF
 
23471
/* confdefs.h.  */
 
23472
_ACEOF
 
23473
cat confdefs.h >>conftest.$ac_ext
 
23474
cat >>conftest.$ac_ext <<_ACEOF
 
23475
/* end confdefs.h.  */
 
23476
$ac_includes_default
 
23477
int
 
23478
main ()
 
23479
{
 
23480
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
 
23481
test_array [0] = 0
 
23482
 
 
23483
  ;
 
23484
  return 0;
 
23485
}
 
23486
_ACEOF
 
23487
rm -f conftest.$ac_objext
 
23488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23489
  (eval $ac_compile) 2>conftest.er1
 
23490
  ac_status=$?
 
23491
  grep -v '^ *+' conftest.er1 >conftest.err
 
23492
  rm -f conftest.er1
 
23493
  cat conftest.err >&5
 
23494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23495
  (exit $ac_status); } &&
 
23496
         { ac_try='test -z "$ac_c_werror_flag"
 
23497
                         || test ! -s conftest.err'
 
23498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23499
  (eval $ac_try) 2>&5
 
23500
  ac_status=$?
 
23501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23502
  (exit $ac_status); }; } &&
 
23503
         { ac_try='test -s conftest.$ac_objext'
 
23504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23505
  (eval $ac_try) 2>&5
 
23506
  ac_status=$?
 
23507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23508
  (exit $ac_status); }; }; then
 
23509
  ac_lo=$ac_mid; break
 
23510
else
 
23511
  echo "$as_me: failed program was:" >&5
 
23512
sed 's/^/| /' conftest.$ac_ext >&5
 
23513
 
 
23514
ac_hi=`expr '(' $ac_mid ')' - 1`
 
23515
                       if test $ac_mid -le $ac_hi; then
 
23516
                         ac_lo= ac_hi=
 
23517
                         break
 
23518
                       fi
 
23519
                       ac_mid=`expr 2 '*' $ac_mid`
 
23520
fi
 
23521
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23522
  done
 
23523
else
 
23524
  echo "$as_me: failed program was:" >&5
 
23525
sed 's/^/| /' conftest.$ac_ext >&5
 
23526
 
 
23527
ac_lo= ac_hi=
 
23528
fi
 
23529
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23530
fi
 
23531
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23532
# Binary search between lo and hi bounds.
 
23533
while test "x$ac_lo" != "x$ac_hi"; do
 
23534
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
23535
  cat >conftest.$ac_ext <<_ACEOF
 
23536
/* confdefs.h.  */
 
23537
_ACEOF
 
23538
cat confdefs.h >>conftest.$ac_ext
 
23539
cat >>conftest.$ac_ext <<_ACEOF
 
23540
/* end confdefs.h.  */
 
23541
$ac_includes_default
 
23542
int
 
23543
main ()
 
23544
{
 
23545
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
 
23546
test_array [0] = 0
 
23547
 
 
23548
  ;
 
23549
  return 0;
 
23550
}
 
23551
_ACEOF
 
23552
rm -f conftest.$ac_objext
 
23553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23554
  (eval $ac_compile) 2>conftest.er1
 
23555
  ac_status=$?
 
23556
  grep -v '^ *+' conftest.er1 >conftest.err
 
23557
  rm -f conftest.er1
 
23558
  cat conftest.err >&5
 
23559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23560
  (exit $ac_status); } &&
 
23561
         { ac_try='test -z "$ac_c_werror_flag"
 
23562
                         || test ! -s conftest.err'
 
23563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23564
  (eval $ac_try) 2>&5
 
23565
  ac_status=$?
 
23566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23567
  (exit $ac_status); }; } &&
 
23568
         { ac_try='test -s conftest.$ac_objext'
 
23569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23570
  (eval $ac_try) 2>&5
 
23571
  ac_status=$?
 
23572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23573
  (exit $ac_status); }; }; then
 
23574
  ac_hi=$ac_mid
 
23575
else
 
23576
  echo "$as_me: failed program was:" >&5
 
23577
sed 's/^/| /' conftest.$ac_ext >&5
 
23578
 
 
23579
ac_lo=`expr '(' $ac_mid ')' + 1`
 
23580
fi
 
23581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23582
done
 
23583
case $ac_lo in
 
23584
?*) ac_cv_sizeof_double=$ac_lo;;
 
23585
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
 
23586
See \`config.log' for more details." >&5
 
23587
echo "$as_me: error: cannot compute sizeof (double), 77
 
23588
See \`config.log' for more details." >&2;}
 
23589
   { (exit 1); exit 1; }; } ;;
 
23590
esac
 
23591
else
 
23592
  if test "$cross_compiling" = yes; then
 
23593
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
23594
See \`config.log' for more details." >&5
 
23595
echo "$as_me: error: cannot run test program while cross compiling
 
23596
See \`config.log' for more details." >&2;}
 
23597
   { (exit 1); exit 1; }; }
 
23598
else
 
23599
  cat >conftest.$ac_ext <<_ACEOF
 
23600
/* confdefs.h.  */
 
23601
_ACEOF
 
23602
cat confdefs.h >>conftest.$ac_ext
 
23603
cat >>conftest.$ac_ext <<_ACEOF
 
23604
/* end confdefs.h.  */
 
23605
$ac_includes_default
 
23606
long longval () { return (long) (sizeof (double)); }
 
23607
unsigned long ulongval () { return (long) (sizeof (double)); }
 
23608
#include <stdio.h>
 
23609
#include <stdlib.h>
 
23610
int
 
23611
main ()
 
23612
{
 
23613
 
 
23614
  FILE *f = fopen ("conftest.val", "w");
 
23615
  if (! f)
 
23616
    exit (1);
 
23617
  if (((long) (sizeof (double))) < 0)
 
23618
    {
 
23619
      long i = longval ();
 
23620
      if (i != ((long) (sizeof (double))))
 
23621
        exit (1);
 
23622
      fprintf (f, "%ld\n", i);
 
23623
    }
 
23624
  else
 
23625
    {
 
23626
      unsigned long i = ulongval ();
 
23627
      if (i != ((long) (sizeof (double))))
 
23628
        exit (1);
 
23629
      fprintf (f, "%lu\n", i);
 
23630
    }
 
23631
  exit (ferror (f) || fclose (f) != 0);
 
23632
 
 
23633
  ;
 
23634
  return 0;
 
23635
}
 
23636
_ACEOF
 
23637
rm -f conftest$ac_exeext
 
23638
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23639
  (eval $ac_link) 2>&5
 
23640
  ac_status=$?
 
23641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23642
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23644
  (eval $ac_try) 2>&5
 
23645
  ac_status=$?
 
23646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23647
  (exit $ac_status); }; }; then
 
23648
  ac_cv_sizeof_double=`cat conftest.val`
 
23649
else
 
23650
  echo "$as_me: program exited with status $ac_status" >&5
 
23651
echo "$as_me: failed program was:" >&5
 
23652
sed 's/^/| /' conftest.$ac_ext >&5
 
23653
 
 
23654
( exit $ac_status )
 
23655
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
 
23656
See \`config.log' for more details." >&5
 
23657
echo "$as_me: error: cannot compute sizeof (double), 77
 
23658
See \`config.log' for more details." >&2;}
 
23659
   { (exit 1); exit 1; }; }
 
23660
fi
 
23661
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23662
fi
 
23663
fi
 
23664
rm -f conftest.val
 
23665
else
 
23666
  ac_cv_sizeof_double=0
 
23667
fi
 
23668
fi
 
23669
echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
 
23670
echo "${ECHO_T}$ac_cv_sizeof_double" >&6
 
23671
cat >>confdefs.h <<_ACEOF
 
23672
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
 
23673
_ACEOF
 
23674
 
 
23675
 
 
23676
echo "$as_me:$LINENO: checking for long double" >&5
 
23677
echo $ECHO_N "checking for long double... $ECHO_C" >&6
 
23678
if test "${ac_cv_type_long_double+set}" = set; then
 
23679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23680
else
 
23681
  cat >conftest.$ac_ext <<_ACEOF
 
23682
/* confdefs.h.  */
 
23683
_ACEOF
 
23684
cat confdefs.h >>conftest.$ac_ext
 
23685
cat >>conftest.$ac_ext <<_ACEOF
 
23686
/* end confdefs.h.  */
 
23687
$ac_includes_default
 
23688
int
 
23689
main ()
 
23690
{
 
23691
if ((long double *) 0)
 
23692
  return 0;
 
23693
if (sizeof (long double))
 
23694
  return 0;
 
23695
  ;
 
23696
  return 0;
 
23697
}
 
23698
_ACEOF
 
23699
rm -f conftest.$ac_objext
 
23700
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23701
  (eval $ac_compile) 2>conftest.er1
 
23702
  ac_status=$?
 
23703
  grep -v '^ *+' conftest.er1 >conftest.err
 
23704
  rm -f conftest.er1
 
23705
  cat conftest.err >&5
 
23706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23707
  (exit $ac_status); } &&
 
23708
         { ac_try='test -z "$ac_c_werror_flag"
 
23709
                         || test ! -s conftest.err'
 
23710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23711
  (eval $ac_try) 2>&5
 
23712
  ac_status=$?
 
23713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23714
  (exit $ac_status); }; } &&
 
23715
         { ac_try='test -s conftest.$ac_objext'
 
23716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23717
  (eval $ac_try) 2>&5
 
23718
  ac_status=$?
 
23719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23720
  (exit $ac_status); }; }; then
 
23721
  ac_cv_type_long_double=yes
 
23722
else
 
23723
  echo "$as_me: failed program was:" >&5
 
23724
sed 's/^/| /' conftest.$ac_ext >&5
 
23725
 
 
23726
ac_cv_type_long_double=no
 
23727
fi
 
23728
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23729
fi
 
23730
echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
 
23731
echo "${ECHO_T}$ac_cv_type_long_double" >&6
 
23732
 
 
23733
echo "$as_me:$LINENO: checking size of long double" >&5
 
23734
echo $ECHO_N "checking size of long double... $ECHO_C" >&6
 
23735
if test "${ac_cv_sizeof_long_double+set}" = set; then
 
23736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23737
else
 
23738
  if test "$ac_cv_type_long_double" = yes; then
 
23739
  # The cast to unsigned long works around a bug in the HP C Compiler
 
23740
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
23741
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
23742
  # This bug is HP SR number 8606223364.
 
23743
  if test "$cross_compiling" = yes; then
 
23744
  # Depending upon the size, compute the lo and hi bounds.
 
23745
cat >conftest.$ac_ext <<_ACEOF
 
23746
/* confdefs.h.  */
 
23747
_ACEOF
 
23748
cat confdefs.h >>conftest.$ac_ext
 
23749
cat >>conftest.$ac_ext <<_ACEOF
 
23750
/* end confdefs.h.  */
 
23751
$ac_includes_default
 
23752
int
 
23753
main ()
 
23754
{
 
23755
static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
 
23756
test_array [0] = 0
 
23757
 
 
23758
  ;
 
23759
  return 0;
 
23760
}
 
23761
_ACEOF
 
23762
rm -f conftest.$ac_objext
 
23763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23764
  (eval $ac_compile) 2>conftest.er1
 
23765
  ac_status=$?
 
23766
  grep -v '^ *+' conftest.er1 >conftest.err
 
23767
  rm -f conftest.er1
 
23768
  cat conftest.err >&5
 
23769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23770
  (exit $ac_status); } &&
 
23771
         { ac_try='test -z "$ac_c_werror_flag"
 
23772
                         || test ! -s conftest.err'
 
23773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23774
  (eval $ac_try) 2>&5
 
23775
  ac_status=$?
 
23776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23777
  (exit $ac_status); }; } &&
 
23778
         { ac_try='test -s conftest.$ac_objext'
 
23779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23780
  (eval $ac_try) 2>&5
 
23781
  ac_status=$?
 
23782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23783
  (exit $ac_status); }; }; then
 
23784
  ac_lo=0 ac_mid=0
 
23785
  while :; do
 
23786
    cat >conftest.$ac_ext <<_ACEOF
 
23787
/* confdefs.h.  */
 
23788
_ACEOF
 
23789
cat confdefs.h >>conftest.$ac_ext
 
23790
cat >>conftest.$ac_ext <<_ACEOF
 
23791
/* end confdefs.h.  */
 
23792
$ac_includes_default
 
23793
int
 
23794
main ()
 
23795
{
 
23796
static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
 
23797
test_array [0] = 0
 
23798
 
 
23799
  ;
 
23800
  return 0;
 
23801
}
 
23802
_ACEOF
 
23803
rm -f conftest.$ac_objext
 
23804
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23805
  (eval $ac_compile) 2>conftest.er1
 
23806
  ac_status=$?
 
23807
  grep -v '^ *+' conftest.er1 >conftest.err
 
23808
  rm -f conftest.er1
 
23809
  cat conftest.err >&5
 
23810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23811
  (exit $ac_status); } &&
 
23812
         { ac_try='test -z "$ac_c_werror_flag"
 
23813
                         || test ! -s conftest.err'
 
23814
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23815
  (eval $ac_try) 2>&5
 
23816
  ac_status=$?
 
23817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23818
  (exit $ac_status); }; } &&
 
23819
         { ac_try='test -s conftest.$ac_objext'
 
23820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23821
  (eval $ac_try) 2>&5
 
23822
  ac_status=$?
 
23823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23824
  (exit $ac_status); }; }; then
 
23825
  ac_hi=$ac_mid; break
 
23826
else
 
23827
  echo "$as_me: failed program was:" >&5
 
23828
sed 's/^/| /' conftest.$ac_ext >&5
 
23829
 
 
23830
ac_lo=`expr $ac_mid + 1`
 
23831
                    if test $ac_lo -le $ac_mid; then
 
23832
                      ac_lo= ac_hi=
 
23833
                      break
 
23834
                    fi
 
23835
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
23836
fi
 
23837
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23838
  done
 
23839
else
 
23840
  echo "$as_me: failed program was:" >&5
 
23841
sed 's/^/| /' conftest.$ac_ext >&5
 
23842
 
 
23843
cat >conftest.$ac_ext <<_ACEOF
 
23844
/* confdefs.h.  */
 
23845
_ACEOF
 
23846
cat confdefs.h >>conftest.$ac_ext
 
23847
cat >>conftest.$ac_ext <<_ACEOF
 
23848
/* end confdefs.h.  */
 
23849
$ac_includes_default
 
23850
int
 
23851
main ()
 
23852
{
 
23853
static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
 
23854
test_array [0] = 0
 
23855
 
 
23856
  ;
 
23857
  return 0;
 
23858
}
 
23859
_ACEOF
 
23860
rm -f conftest.$ac_objext
 
23861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23862
  (eval $ac_compile) 2>conftest.er1
 
23863
  ac_status=$?
 
23864
  grep -v '^ *+' conftest.er1 >conftest.err
 
23865
  rm -f conftest.er1
 
23866
  cat conftest.err >&5
 
23867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23868
  (exit $ac_status); } &&
 
23869
         { ac_try='test -z "$ac_c_werror_flag"
 
23870
                         || test ! -s conftest.err'
 
23871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23872
  (eval $ac_try) 2>&5
 
23873
  ac_status=$?
 
23874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23875
  (exit $ac_status); }; } &&
 
23876
         { ac_try='test -s conftest.$ac_objext'
 
23877
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23878
  (eval $ac_try) 2>&5
 
23879
  ac_status=$?
 
23880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23881
  (exit $ac_status); }; }; then
 
23882
  ac_hi=-1 ac_mid=-1
 
23883
  while :; do
 
23884
    cat >conftest.$ac_ext <<_ACEOF
 
23885
/* confdefs.h.  */
 
23886
_ACEOF
 
23887
cat confdefs.h >>conftest.$ac_ext
 
23888
cat >>conftest.$ac_ext <<_ACEOF
 
23889
/* end confdefs.h.  */
 
23890
$ac_includes_default
 
23891
int
 
23892
main ()
 
23893
{
 
23894
static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
 
23895
test_array [0] = 0
 
23896
 
 
23897
  ;
 
23898
  return 0;
 
23899
}
 
23900
_ACEOF
 
23901
rm -f conftest.$ac_objext
 
23902
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23903
  (eval $ac_compile) 2>conftest.er1
 
23904
  ac_status=$?
 
23905
  grep -v '^ *+' conftest.er1 >conftest.err
 
23906
  rm -f conftest.er1
 
23907
  cat conftest.err >&5
 
23908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23909
  (exit $ac_status); } &&
 
23910
         { ac_try='test -z "$ac_c_werror_flag"
 
23911
                         || test ! -s conftest.err'
 
23912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23913
  (eval $ac_try) 2>&5
 
23914
  ac_status=$?
 
23915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23916
  (exit $ac_status); }; } &&
 
23917
         { ac_try='test -s conftest.$ac_objext'
 
23918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23919
  (eval $ac_try) 2>&5
 
23920
  ac_status=$?
 
23921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23922
  (exit $ac_status); }; }; then
 
23923
  ac_lo=$ac_mid; break
 
23924
else
 
23925
  echo "$as_me: failed program was:" >&5
 
23926
sed 's/^/| /' conftest.$ac_ext >&5
 
23927
 
 
23928
ac_hi=`expr '(' $ac_mid ')' - 1`
 
23929
                       if test $ac_mid -le $ac_hi; then
 
23930
                         ac_lo= ac_hi=
 
23931
                         break
 
23932
                       fi
 
23933
                       ac_mid=`expr 2 '*' $ac_mid`
 
23934
fi
 
23935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23936
  done
 
23937
else
 
23938
  echo "$as_me: failed program was:" >&5
 
23939
sed 's/^/| /' conftest.$ac_ext >&5
 
23940
 
 
23941
ac_lo= ac_hi=
 
23942
fi
 
23943
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23944
fi
 
23945
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23946
# Binary search between lo and hi bounds.
 
23947
while test "x$ac_lo" != "x$ac_hi"; do
 
23948
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
23949
  cat >conftest.$ac_ext <<_ACEOF
 
23950
/* confdefs.h.  */
 
23951
_ACEOF
 
23952
cat confdefs.h >>conftest.$ac_ext
 
23953
cat >>conftest.$ac_ext <<_ACEOF
 
23954
/* end confdefs.h.  */
 
23955
$ac_includes_default
 
23956
int
 
23957
main ()
 
23958
{
 
23959
static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
 
23960
test_array [0] = 0
 
23961
 
 
23962
  ;
 
23963
  return 0;
 
23964
}
 
23965
_ACEOF
 
23966
rm -f conftest.$ac_objext
 
23967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23968
  (eval $ac_compile) 2>conftest.er1
 
23969
  ac_status=$?
 
23970
  grep -v '^ *+' conftest.er1 >conftest.err
 
23971
  rm -f conftest.er1
 
23972
  cat conftest.err >&5
 
23973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23974
  (exit $ac_status); } &&
 
23975
         { ac_try='test -z "$ac_c_werror_flag"
 
23976
                         || test ! -s conftest.err'
 
23977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23978
  (eval $ac_try) 2>&5
 
23979
  ac_status=$?
 
23980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23981
  (exit $ac_status); }; } &&
 
23982
         { ac_try='test -s conftest.$ac_objext'
 
23983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23984
  (eval $ac_try) 2>&5
 
23985
  ac_status=$?
 
23986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23987
  (exit $ac_status); }; }; then
 
23988
  ac_hi=$ac_mid
 
23989
else
 
23990
  echo "$as_me: failed program was:" >&5
 
23991
sed 's/^/| /' conftest.$ac_ext >&5
 
23992
 
 
23993
ac_lo=`expr '(' $ac_mid ')' + 1`
 
23994
fi
 
23995
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23996
done
 
23997
case $ac_lo in
 
23998
?*) ac_cv_sizeof_long_double=$ac_lo;;
 
23999
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
 
24000
See \`config.log' for more details." >&5
 
24001
echo "$as_me: error: cannot compute sizeof (long double), 77
 
24002
See \`config.log' for more details." >&2;}
 
24003
   { (exit 1); exit 1; }; } ;;
 
24004
esac
 
24005
else
 
24006
  if test "$cross_compiling" = yes; then
 
24007
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24008
See \`config.log' for more details." >&5
 
24009
echo "$as_me: error: cannot run test program while cross compiling
 
24010
See \`config.log' for more details." >&2;}
 
24011
   { (exit 1); exit 1; }; }
 
24012
else
 
24013
  cat >conftest.$ac_ext <<_ACEOF
 
24014
/* confdefs.h.  */
 
24015
_ACEOF
 
24016
cat confdefs.h >>conftest.$ac_ext
 
24017
cat >>conftest.$ac_ext <<_ACEOF
 
24018
/* end confdefs.h.  */
 
24019
$ac_includes_default
 
24020
long longval () { return (long) (sizeof (long double)); }
 
24021
unsigned long ulongval () { return (long) (sizeof (long double)); }
 
24022
#include <stdio.h>
 
24023
#include <stdlib.h>
 
24024
int
 
24025
main ()
 
24026
{
 
24027
 
 
24028
  FILE *f = fopen ("conftest.val", "w");
 
24029
  if (! f)
 
24030
    exit (1);
 
24031
  if (((long) (sizeof (long double))) < 0)
 
24032
    {
 
24033
      long i = longval ();
 
24034
      if (i != ((long) (sizeof (long double))))
 
24035
        exit (1);
 
24036
      fprintf (f, "%ld\n", i);
 
24037
    }
 
24038
  else
 
24039
    {
 
24040
      unsigned long i = ulongval ();
 
24041
      if (i != ((long) (sizeof (long double))))
 
24042
        exit (1);
 
24043
      fprintf (f, "%lu\n", i);
 
24044
    }
 
24045
  exit (ferror (f) || fclose (f) != 0);
 
24046
 
 
24047
  ;
 
24048
  return 0;
 
24049
}
 
24050
_ACEOF
 
24051
rm -f conftest$ac_exeext
 
24052
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24053
  (eval $ac_link) 2>&5
 
24054
  ac_status=$?
 
24055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24056
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24058
  (eval $ac_try) 2>&5
 
24059
  ac_status=$?
 
24060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24061
  (exit $ac_status); }; }; then
 
24062
  ac_cv_sizeof_long_double=`cat conftest.val`
 
24063
else
 
24064
  echo "$as_me: program exited with status $ac_status" >&5
 
24065
echo "$as_me: failed program was:" >&5
 
24066
sed 's/^/| /' conftest.$ac_ext >&5
 
24067
 
 
24068
( exit $ac_status )
 
24069
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
 
24070
See \`config.log' for more details." >&5
 
24071
echo "$as_me: error: cannot compute sizeof (long double), 77
 
24072
See \`config.log' for more details." >&2;}
 
24073
   { (exit 1); exit 1; }; }
 
24074
fi
 
24075
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24076
fi
 
24077
fi
 
24078
rm -f conftest.val
 
24079
else
 
24080
  ac_cv_sizeof_long_double=0
 
24081
fi
 
24082
fi
 
24083
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
 
24084
echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
 
24085
cat >>confdefs.h <<_ACEOF
 
24086
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
 
24087
_ACEOF
 
24088
 
 
24089
 
 
24090
echo "$as_me:$LINENO: checking for void *" >&5
 
24091
echo $ECHO_N "checking for void *... $ECHO_C" >&6
 
24092
if test "${ac_cv_type_void_p+set}" = set; then
 
24093
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24094
else
 
24095
  cat >conftest.$ac_ext <<_ACEOF
 
24096
/* confdefs.h.  */
 
24097
_ACEOF
 
24098
cat confdefs.h >>conftest.$ac_ext
 
24099
cat >>conftest.$ac_ext <<_ACEOF
 
24100
/* end confdefs.h.  */
 
24101
$ac_includes_default
 
24102
int
 
24103
main ()
 
24104
{
 
24105
if ((void * *) 0)
 
24106
  return 0;
 
24107
if (sizeof (void *))
 
24108
  return 0;
 
24109
  ;
 
24110
  return 0;
 
24111
}
 
24112
_ACEOF
 
24113
rm -f conftest.$ac_objext
 
24114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24115
  (eval $ac_compile) 2>conftest.er1
 
24116
  ac_status=$?
 
24117
  grep -v '^ *+' conftest.er1 >conftest.err
 
24118
  rm -f conftest.er1
 
24119
  cat conftest.err >&5
 
24120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24121
  (exit $ac_status); } &&
 
24122
         { ac_try='test -z "$ac_c_werror_flag"
 
24123
                         || test ! -s conftest.err'
 
24124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24125
  (eval $ac_try) 2>&5
 
24126
  ac_status=$?
 
24127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24128
  (exit $ac_status); }; } &&
 
24129
         { ac_try='test -s conftest.$ac_objext'
 
24130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24131
  (eval $ac_try) 2>&5
 
24132
  ac_status=$?
 
24133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24134
  (exit $ac_status); }; }; then
 
24135
  ac_cv_type_void_p=yes
 
24136
else
 
24137
  echo "$as_me: failed program was:" >&5
 
24138
sed 's/^/| /' conftest.$ac_ext >&5
 
24139
 
 
24140
ac_cv_type_void_p=no
 
24141
fi
 
24142
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24143
fi
 
24144
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
 
24145
echo "${ECHO_T}$ac_cv_type_void_p" >&6
 
24146
 
 
24147
echo "$as_me:$LINENO: checking size of void *" >&5
 
24148
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
 
24149
if test "${ac_cv_sizeof_void_p+set}" = set; then
 
24150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24151
else
 
24152
  if test "$ac_cv_type_void_p" = yes; then
 
24153
  # The cast to unsigned long works around a bug in the HP C Compiler
 
24154
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24155
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24156
  # This bug is HP SR number 8606223364.
 
24157
  if test "$cross_compiling" = yes; then
 
24158
  # Depending upon the size, compute the lo and hi bounds.
 
24159
cat >conftest.$ac_ext <<_ACEOF
 
24160
/* confdefs.h.  */
 
24161
_ACEOF
 
24162
cat confdefs.h >>conftest.$ac_ext
 
24163
cat >>conftest.$ac_ext <<_ACEOF
 
24164
/* end confdefs.h.  */
 
24165
$ac_includes_default
 
24166
int
 
24167
main ()
 
24168
{
 
24169
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
 
24170
test_array [0] = 0
 
24171
 
 
24172
  ;
 
24173
  return 0;
 
24174
}
 
24175
_ACEOF
 
24176
rm -f conftest.$ac_objext
 
24177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24178
  (eval $ac_compile) 2>conftest.er1
 
24179
  ac_status=$?
 
24180
  grep -v '^ *+' conftest.er1 >conftest.err
 
24181
  rm -f conftest.er1
 
24182
  cat conftest.err >&5
 
24183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24184
  (exit $ac_status); } &&
 
24185
         { ac_try='test -z "$ac_c_werror_flag"
 
24186
                         || test ! -s conftest.err'
 
24187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24188
  (eval $ac_try) 2>&5
 
24189
  ac_status=$?
 
24190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24191
  (exit $ac_status); }; } &&
 
24192
         { ac_try='test -s conftest.$ac_objext'
 
24193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24194
  (eval $ac_try) 2>&5
 
24195
  ac_status=$?
 
24196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24197
  (exit $ac_status); }; }; then
 
24198
  ac_lo=0 ac_mid=0
 
24199
  while :; do
 
24200
    cat >conftest.$ac_ext <<_ACEOF
 
24201
/* confdefs.h.  */
 
24202
_ACEOF
 
24203
cat confdefs.h >>conftest.$ac_ext
 
24204
cat >>conftest.$ac_ext <<_ACEOF
 
24205
/* end confdefs.h.  */
 
24206
$ac_includes_default
 
24207
int
 
24208
main ()
 
24209
{
 
24210
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
 
24211
test_array [0] = 0
 
24212
 
 
24213
  ;
 
24214
  return 0;
 
24215
}
 
24216
_ACEOF
 
24217
rm -f conftest.$ac_objext
 
24218
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24219
  (eval $ac_compile) 2>conftest.er1
 
24220
  ac_status=$?
 
24221
  grep -v '^ *+' conftest.er1 >conftest.err
 
24222
  rm -f conftest.er1
 
24223
  cat conftest.err >&5
 
24224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24225
  (exit $ac_status); } &&
 
24226
         { ac_try='test -z "$ac_c_werror_flag"
 
24227
                         || test ! -s conftest.err'
 
24228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24229
  (eval $ac_try) 2>&5
 
24230
  ac_status=$?
 
24231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24232
  (exit $ac_status); }; } &&
 
24233
         { ac_try='test -s conftest.$ac_objext'
 
24234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24235
  (eval $ac_try) 2>&5
 
24236
  ac_status=$?
 
24237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24238
  (exit $ac_status); }; }; then
 
24239
  ac_hi=$ac_mid; break
 
24240
else
 
24241
  echo "$as_me: failed program was:" >&5
 
24242
sed 's/^/| /' conftest.$ac_ext >&5
 
24243
 
 
24244
ac_lo=`expr $ac_mid + 1`
 
24245
                    if test $ac_lo -le $ac_mid; then
 
24246
                      ac_lo= ac_hi=
 
24247
                      break
 
24248
                    fi
 
24249
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
24250
fi
 
24251
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24252
  done
 
24253
else
 
24254
  echo "$as_me: failed program was:" >&5
 
24255
sed 's/^/| /' conftest.$ac_ext >&5
 
24256
 
 
24257
cat >conftest.$ac_ext <<_ACEOF
 
24258
/* confdefs.h.  */
 
24259
_ACEOF
 
24260
cat confdefs.h >>conftest.$ac_ext
 
24261
cat >>conftest.$ac_ext <<_ACEOF
 
24262
/* end confdefs.h.  */
 
24263
$ac_includes_default
 
24264
int
 
24265
main ()
 
24266
{
 
24267
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
 
24268
test_array [0] = 0
 
24269
 
 
24270
  ;
 
24271
  return 0;
 
24272
}
 
24273
_ACEOF
 
24274
rm -f conftest.$ac_objext
 
24275
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24276
  (eval $ac_compile) 2>conftest.er1
 
24277
  ac_status=$?
 
24278
  grep -v '^ *+' conftest.er1 >conftest.err
 
24279
  rm -f conftest.er1
 
24280
  cat conftest.err >&5
 
24281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24282
  (exit $ac_status); } &&
 
24283
         { ac_try='test -z "$ac_c_werror_flag"
 
24284
                         || test ! -s conftest.err'
 
24285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24286
  (eval $ac_try) 2>&5
 
24287
  ac_status=$?
 
24288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24289
  (exit $ac_status); }; } &&
 
24290
         { ac_try='test -s conftest.$ac_objext'
 
24291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24292
  (eval $ac_try) 2>&5
 
24293
  ac_status=$?
 
24294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24295
  (exit $ac_status); }; }; then
 
24296
  ac_hi=-1 ac_mid=-1
 
24297
  while :; do
 
24298
    cat >conftest.$ac_ext <<_ACEOF
 
24299
/* confdefs.h.  */
 
24300
_ACEOF
 
24301
cat confdefs.h >>conftest.$ac_ext
 
24302
cat >>conftest.$ac_ext <<_ACEOF
 
24303
/* end confdefs.h.  */
 
24304
$ac_includes_default
 
24305
int
 
24306
main ()
 
24307
{
 
24308
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
 
24309
test_array [0] = 0
 
24310
 
 
24311
  ;
 
24312
  return 0;
 
24313
}
 
24314
_ACEOF
 
24315
rm -f conftest.$ac_objext
 
24316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24317
  (eval $ac_compile) 2>conftest.er1
 
24318
  ac_status=$?
 
24319
  grep -v '^ *+' conftest.er1 >conftest.err
 
24320
  rm -f conftest.er1
 
24321
  cat conftest.err >&5
 
24322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24323
  (exit $ac_status); } &&
 
24324
         { ac_try='test -z "$ac_c_werror_flag"
 
24325
                         || test ! -s conftest.err'
 
24326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24327
  (eval $ac_try) 2>&5
 
24328
  ac_status=$?
 
24329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24330
  (exit $ac_status); }; } &&
 
24331
         { ac_try='test -s conftest.$ac_objext'
 
24332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24333
  (eval $ac_try) 2>&5
 
24334
  ac_status=$?
 
24335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24336
  (exit $ac_status); }; }; then
 
24337
  ac_lo=$ac_mid; break
 
24338
else
 
24339
  echo "$as_me: failed program was:" >&5
 
24340
sed 's/^/| /' conftest.$ac_ext >&5
 
24341
 
 
24342
ac_hi=`expr '(' $ac_mid ')' - 1`
 
24343
                       if test $ac_mid -le $ac_hi; then
 
24344
                         ac_lo= ac_hi=
 
24345
                         break
 
24346
                       fi
 
24347
                       ac_mid=`expr 2 '*' $ac_mid`
 
24348
fi
 
24349
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24350
  done
 
24351
else
 
24352
  echo "$as_me: failed program was:" >&5
 
24353
sed 's/^/| /' conftest.$ac_ext >&5
 
24354
 
 
24355
ac_lo= ac_hi=
 
24356
fi
 
24357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24358
fi
 
24359
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24360
# Binary search between lo and hi bounds.
 
24361
while test "x$ac_lo" != "x$ac_hi"; do
 
24362
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24363
  cat >conftest.$ac_ext <<_ACEOF
 
24364
/* confdefs.h.  */
 
24365
_ACEOF
 
24366
cat confdefs.h >>conftest.$ac_ext
 
24367
cat >>conftest.$ac_ext <<_ACEOF
 
24368
/* end confdefs.h.  */
 
24369
$ac_includes_default
 
24370
int
 
24371
main ()
 
24372
{
 
24373
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
 
24374
test_array [0] = 0
 
24375
 
 
24376
  ;
 
24377
  return 0;
 
24378
}
 
24379
_ACEOF
 
24380
rm -f conftest.$ac_objext
 
24381
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24382
  (eval $ac_compile) 2>conftest.er1
 
24383
  ac_status=$?
 
24384
  grep -v '^ *+' conftest.er1 >conftest.err
 
24385
  rm -f conftest.er1
 
24386
  cat conftest.err >&5
 
24387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24388
  (exit $ac_status); } &&
 
24389
         { ac_try='test -z "$ac_c_werror_flag"
 
24390
                         || test ! -s conftest.err'
 
24391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24392
  (eval $ac_try) 2>&5
 
24393
  ac_status=$?
 
24394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24395
  (exit $ac_status); }; } &&
 
24396
         { ac_try='test -s conftest.$ac_objext'
 
24397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24398
  (eval $ac_try) 2>&5
 
24399
  ac_status=$?
 
24400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24401
  (exit $ac_status); }; }; then
 
24402
  ac_hi=$ac_mid
 
24403
else
 
24404
  echo "$as_me: failed program was:" >&5
 
24405
sed 's/^/| /' conftest.$ac_ext >&5
 
24406
 
 
24407
ac_lo=`expr '(' $ac_mid ')' + 1`
 
24408
fi
 
24409
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24410
done
 
24411
case $ac_lo in
 
24412
?*) ac_cv_sizeof_void_p=$ac_lo;;
 
24413
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
 
24414
See \`config.log' for more details." >&5
 
24415
echo "$as_me: error: cannot compute sizeof (void *), 77
 
24416
See \`config.log' for more details." >&2;}
 
24417
   { (exit 1); exit 1; }; } ;;
 
24418
esac
 
24419
else
 
24420
  if test "$cross_compiling" = yes; then
 
24421
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24422
See \`config.log' for more details." >&5
 
24423
echo "$as_me: error: cannot run test program while cross compiling
 
24424
See \`config.log' for more details." >&2;}
 
24425
   { (exit 1); exit 1; }; }
 
24426
else
 
24427
  cat >conftest.$ac_ext <<_ACEOF
 
24428
/* confdefs.h.  */
 
24429
_ACEOF
 
24430
cat confdefs.h >>conftest.$ac_ext
 
24431
cat >>conftest.$ac_ext <<_ACEOF
 
24432
/* end confdefs.h.  */
 
24433
$ac_includes_default
 
24434
long longval () { return (long) (sizeof (void *)); }
 
24435
unsigned long ulongval () { return (long) (sizeof (void *)); }
 
24436
#include <stdio.h>
 
24437
#include <stdlib.h>
 
24438
int
 
24439
main ()
 
24440
{
 
24441
 
 
24442
  FILE *f = fopen ("conftest.val", "w");
 
24443
  if (! f)
 
24444
    exit (1);
 
24445
  if (((long) (sizeof (void *))) < 0)
 
24446
    {
 
24447
      long i = longval ();
 
24448
      if (i != ((long) (sizeof (void *))))
 
24449
        exit (1);
 
24450
      fprintf (f, "%ld\n", i);
 
24451
    }
 
24452
  else
 
24453
    {
 
24454
      unsigned long i = ulongval ();
 
24455
      if (i != ((long) (sizeof (void *))))
 
24456
        exit (1);
 
24457
      fprintf (f, "%lu\n", i);
 
24458
    }
 
24459
  exit (ferror (f) || fclose (f) != 0);
 
24460
 
 
24461
  ;
 
24462
  return 0;
 
24463
}
 
24464
_ACEOF
 
24465
rm -f conftest$ac_exeext
 
24466
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24467
  (eval $ac_link) 2>&5
 
24468
  ac_status=$?
 
24469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24470
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24472
  (eval $ac_try) 2>&5
 
24473
  ac_status=$?
 
24474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24475
  (exit $ac_status); }; }; then
 
24476
  ac_cv_sizeof_void_p=`cat conftest.val`
 
24477
else
 
24478
  echo "$as_me: program exited with status $ac_status" >&5
 
24479
echo "$as_me: failed program was:" >&5
 
24480
sed 's/^/| /' conftest.$ac_ext >&5
 
24481
 
 
24482
( exit $ac_status )
 
24483
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
 
24484
See \`config.log' for more details." >&5
 
24485
echo "$as_me: error: cannot compute sizeof (void *), 77
 
24486
See \`config.log' for more details." >&2;}
 
24487
   { (exit 1); exit 1; }; }
 
24488
fi
 
24489
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24490
fi
 
24491
fi
 
24492
rm -f conftest.val
 
24493
else
 
24494
  ac_cv_sizeof_void_p=0
 
24495
fi
 
24496
fi
 
24497
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
 
24498
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
 
24499
cat >>confdefs.h <<_ACEOF
 
24500
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 
24501
_ACEOF
 
24502
 
 
24503
 
 
24504
 
 
24505
 
 
24506
if test "x${GCC}" = "xyes"
 
24507
then
 
24508
  CFLAGS="$CFLAGS"
 
24509
  echo "$as_me:$LINENO: checking \"for gcc strength-reduce bug\"" >&5
 
24510
echo $ECHO_N "checking \"for gcc strength-reduce bug\"... $ECHO_C" >&6
 
24511
if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
 
24512
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24513
else
 
24514
  if test "$cross_compiling" = yes; then
 
24515
  ac_cv_c_gcc_strength_bug="yes"
 
24516
else
 
24517
  cat >conftest.$ac_ext <<_ACEOF
 
24518
/* confdefs.h.  */
 
24519
_ACEOF
 
24520
cat confdefs.h >>conftest.$ac_ext
 
24521
cat >>conftest.$ac_ext <<_ACEOF
 
24522
/* end confdefs.h.  */
 
24523
 
 
24524
int main(void) {
 
24525
  static int Array[3];
 
24526
  unsigned int B = 3;
 
24527
  int i;
 
24528
  for(i=0; i<B; i++) Array[i] = i - 3;
 
24529
  exit( Array[1] != -2 );
 
24530
}
 
24531
_ACEOF
 
24532
rm -f conftest$ac_exeext
 
24533
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24534
  (eval $ac_link) 2>&5
 
24535
  ac_status=$?
 
24536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24537
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24539
  (eval $ac_try) 2>&5
 
24540
  ac_status=$?
 
24541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24542
  (exit $ac_status); }; }; then
 
24543
  ac_cv_c_gcc_strength_bug="no"
 
24544
else
 
24545
  echo "$as_me: program exited with status $ac_status" >&5
 
24546
echo "$as_me: failed program was:" >&5
 
24547
sed 's/^/| /' conftest.$ac_ext >&5
 
24548
 
 
24549
( exit $ac_status )
 
24550
ac_cv_c_gcc_strength_bug="yes"
 
24551
fi
 
24552
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24553
fi
 
24554
fi
 
24555
echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
 
24556
echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
 
24557
  if test "$ac_cv_c_gcc_strength_bug" = "yes"
 
24558
  then
 
24559
    CFLAGS="$CFLAGS -fno-strength-reduce"
 
24560
  fi
 
24561
fi
 
24562
 
 
24563
 
 
24564
echo "$as_me:$LINENO: checking \"whether external symbols need an underscore prefix\"" >&5
 
24565
echo $ECHO_N "checking \"whether external symbols need an underscore prefix\"... $ECHO_C" >&6
 
24566
if test "${ac_cv_c_extern_prefix+set}" = set; then
 
24567
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24568
else
 
24569
  saved_libs=$LIBS
 
24570
LIBS="conftest_asm.s $LIBS"
 
24571
cat > conftest_asm.s <<EOF
 
24572
        .globl _ac_test
 
24573
_ac_test:
 
24574
        .long 0
 
24575
EOF
 
24576
cat >conftest.$ac_ext <<_ACEOF
 
24577
/* confdefs.h.  */
 
24578
_ACEOF
 
24579
cat confdefs.h >>conftest.$ac_ext
 
24580
cat >>conftest.$ac_ext <<_ACEOF
 
24581
/* end confdefs.h.  */
 
24582
extern int ac_test;
 
24583
int
 
24584
main ()
 
24585
{
 
24586
if (ac_test) return 1
 
24587
  ;
 
24588
  return 0;
 
24589
}
 
24590
_ACEOF
 
24591
rm -f conftest.$ac_objext conftest$ac_exeext
 
24592
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24593
  (eval $ac_link) 2>conftest.er1
 
24594
  ac_status=$?
 
24595
  grep -v '^ *+' conftest.er1 >conftest.err
 
24596
  rm -f conftest.er1
 
24597
  cat conftest.err >&5
 
24598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24599
  (exit $ac_status); } &&
 
24600
         { ac_try='test -z "$ac_c_werror_flag"
 
24601
                         || test ! -s conftest.err'
 
24602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24603
  (eval $ac_try) 2>&5
 
24604
  ac_status=$?
 
24605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24606
  (exit $ac_status); }; } &&
 
24607
         { ac_try='test -s conftest$ac_exeext'
 
24608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24609
  (eval $ac_try) 2>&5
 
24610
  ac_status=$?
 
24611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24612
  (exit $ac_status); }; }; then
 
24613
  ac_cv_c_extern_prefix="yes"
 
24614
else
 
24615
  echo "$as_me: failed program was:" >&5
 
24616
sed 's/^/| /' conftest.$ac_ext >&5
 
24617
 
 
24618
ac_cv_c_extern_prefix="no"
 
24619
fi
 
24620
rm -f conftest.err conftest.$ac_objext \
 
24621
      conftest$ac_exeext conftest.$ac_ext
 
24622
LIBS=$saved_libs
 
24623
fi
 
24624
echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
 
24625
echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
 
24626
if test "$ac_cv_c_extern_prefix" = "yes"
 
24627
then
 
24628
  cat >>confdefs.h <<\_ACEOF
 
24629
#define NEED_UNDERSCORE_PREFIX 1
 
24630
_ACEOF
 
24631
 
 
24632
fi
 
24633
 
 
24634
 
 
24635
echo "$as_me:$LINENO: checking \"which ANSI integer type is 16 bit\"" >&5
 
24636
echo $ECHO_N "checking \"which ANSI integer type is 16 bit\"... $ECHO_C" >&6
 
24637
if test "${ac_16bit_type+set}" = set; then
 
24638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24639
else
 
24640
  if test "$cross_compiling" = yes; then
 
24641
  ac_16bit_type=
 
24642
else
 
24643
  cat >conftest.$ac_ext <<_ACEOF
 
24644
/* confdefs.h.  */
 
24645
_ACEOF
 
24646
cat confdefs.h >>conftest.$ac_ext
 
24647
cat >>conftest.$ac_ext <<_ACEOF
 
24648
/* end confdefs.h.  */
 
24649
 
 
24650
int main(void) {
 
24651
  if (sizeof(short)==2)
 
24652
    return(0);
 
24653
  else if (sizeof(int)==2)
 
24654
    return(1);
 
24655
  else
 
24656
    return(2);
 
24657
}
 
24658
_ACEOF
 
24659
rm -f conftest$ac_exeext
 
24660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24661
  (eval $ac_link) 2>&5
 
24662
  ac_status=$?
 
24663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24664
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24666
  (eval $ac_try) 2>&5
 
24667
  ac_status=$?
 
24668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24669
  (exit $ac_status); }; }; then
 
24670
  ac_16bit_type="short"
 
24671
else
 
24672
  echo "$as_me: program exited with status $ac_status" >&5
 
24673
echo "$as_me: failed program was:" >&5
 
24674
sed 's/^/| /' conftest.$ac_ext >&5
 
24675
 
 
24676
( exit $ac_status )
 
24677
ac_16bit_type="int"
 
24678
fi
 
24679
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24680
fi
 
24681
fi
 
24682
echo "$as_me:$LINENO: result: $ac_16bit_type" >&5
 
24683
echo "${ECHO_T}$ac_16bit_type" >&6
 
24684
if test "$ac_16bit_type" = "short"
 
24685
then
 
24686
  T1_AA_TYPE16="-DT1_AA_TYPE16=short"
 
24687
  T1_INT16="short"
 
24688
else
 
24689
  T1_AA_TYPE16="-DT1_AA_TYPE16=int"
 
24690
  T1_INT16="int"
 
24691
fi
 
24692
 
 
24693
 
 
24694
 
 
24695
echo "$as_me:$LINENO: checking \"which ANSI integer type is 32 bit\"" >&5
 
24696
echo $ECHO_N "checking \"which ANSI integer type is 32 bit\"... $ECHO_C" >&6
 
24697
if test "${ac_32bit_type+set}" = set; then
 
24698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24699
else
 
24700
  if test "$cross_compiling" = yes; then
 
24701
  ac_32bit_type=
 
24702
else
 
24703
  cat >conftest.$ac_ext <<_ACEOF
 
24704
/* confdefs.h.  */
 
24705
_ACEOF
 
24706
cat confdefs.h >>conftest.$ac_ext
 
24707
cat >>conftest.$ac_ext <<_ACEOF
 
24708
/* end confdefs.h.  */
 
24709
 
 
24710
int main(void) {
 
24711
  if (sizeof(int)==4)
 
24712
    return(0);
 
24713
  else if (sizeof(long)==4)
 
24714
    return(1);
 
24715
  else
 
24716
    return(2);
 
24717
}
 
24718
_ACEOF
 
24719
rm -f conftest$ac_exeext
 
24720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24721
  (eval $ac_link) 2>&5
 
24722
  ac_status=$?
 
24723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24724
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24726
  (eval $ac_try) 2>&5
 
24727
  ac_status=$?
 
24728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24729
  (exit $ac_status); }; }; then
 
24730
  ac_32bit_type="int"
 
24731
else
 
24732
  echo "$as_me: program exited with status $ac_status" >&5
 
24733
echo "$as_me: failed program was:" >&5
 
24734
sed 's/^/| /' conftest.$ac_ext >&5
 
24735
 
 
24736
( exit $ac_status )
 
24737
ac_32bit_type="long"
 
24738
fi
 
24739
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24740
fi
 
24741
fi
 
24742
echo "$as_me:$LINENO: result: $ac_32bit_type" >&5
 
24743
echo "${ECHO_T}$ac_32bit_type" >&6
 
24744
if test "$ac_32bit_type" = "int"
 
24745
then
 
24746
  T1_AA_TYPE32="-DT1_AA_TYPE32=int"
 
24747
  T1_INT32="int"
 
24748
else
 
24749
  T1_AA_TYPE32="-DT1_AA_TYPE32=long"
 
24750
  T1_INT32="long"
 
24751
fi
 
24752
 
 
24753
 
 
24754
 
 
24755
echo "$as_me:$LINENO: checking \"which ANSI integer type is 64 bit\"" >&5
 
24756
echo $ECHO_N "checking \"which ANSI integer type is 64 bit\"... $ECHO_C" >&6
 
24757
if test "${ac_64bit_type+set}" = set; then
 
24758
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24759
else
 
24760
  if test "$cross_compiling" = yes; then
 
24761
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24762
See \`config.log' for more details." >&5
 
24763
echo "$as_me: error: cannot run test program while cross compiling
 
24764
See \`config.log' for more details." >&2;}
 
24765
   { (exit 1); exit 1; }; }
 
24766
else
 
24767
  cat >conftest.$ac_ext <<_ACEOF
 
24768
/* confdefs.h.  */
 
24769
_ACEOF
 
24770
cat confdefs.h >>conftest.$ac_ext
 
24771
cat >>conftest.$ac_ext <<_ACEOF
 
24772
/* end confdefs.h.  */
 
24773
 
 
24774
int main(void) {
 
24775
  if (sizeof(long)==8)
 
24776
    return(0);
 
24777
  else
 
24778
    return(1);
 
24779
}
 
24780
_ACEOF
 
24781
rm -f conftest$ac_exeext
 
24782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24783
  (eval $ac_link) 2>&5
 
24784
  ac_status=$?
 
24785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24786
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24788
  (eval $ac_try) 2>&5
 
24789
  ac_status=$?
 
24790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24791
  (exit $ac_status); }; }; then
 
24792
  ac_64bit_type="long"
 
24793
else
 
24794
  echo "$as_me: program exited with status $ac_status" >&5
 
24795
echo "$as_me: failed program was:" >&5
 
24796
sed 's/^/| /' conftest.$ac_ext >&5
 
24797
 
 
24798
( exit $ac_status )
 
24799
ac_64bit_type="<none>"
 
24800
fi
 
24801
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24802
fi
 
24803
fi
 
24804
echo "$as_me:$LINENO: result: $ac_64bit_type" >&5
 
24805
echo "${ECHO_T}$ac_64bit_type" >&6
 
24806
if test "$ac_64bit_type" = "long"
 
24807
then
 
24808
  T1_AA_TYPE64="-DT1_AA_TYPE64=long"
 
24809
else
 
24810
  T1_AA_TYPE64=
 
24811
fi
 
24812
 
 
24813
 
 
24814
CFLAGS="${CFLAGS} -DT1LIB_IDENT=\"\\\"${T1LIB_IDENTIFIER}\\\"\" -DGLOBAL_CONFIG_DIR=\"\\\"${T1LIB_DATA_DIR}\\\"\""
 
24815
 
 
24816
 
 
24817
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
 
24818
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
 
24819
if test "${ac_cv_header_stat_broken+set}" = set; then
 
24820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24821
else
 
24822
  cat >conftest.$ac_ext <<_ACEOF
 
24823
/* confdefs.h.  */
 
24824
_ACEOF
 
24825
cat confdefs.h >>conftest.$ac_ext
 
24826
cat >>conftest.$ac_ext <<_ACEOF
 
24827
/* end confdefs.h.  */
 
24828
#include <sys/types.h>
 
24829
#include <sys/stat.h>
 
24830
 
 
24831
#if defined(S_ISBLK) && defined(S_IFDIR)
 
24832
# if S_ISBLK (S_IFDIR)
 
24833
You lose.
 
24834
# endif
 
24835
#endif
 
24836
 
 
24837
#if defined(S_ISBLK) && defined(S_IFCHR)
 
24838
# if S_ISBLK (S_IFCHR)
 
24839
You lose.
 
24840
# endif
 
24841
#endif
 
24842
 
 
24843
#if defined(S_ISLNK) && defined(S_IFREG)
 
24844
# if S_ISLNK (S_IFREG)
 
24845
You lose.
 
24846
# endif
 
24847
#endif
 
24848
 
 
24849
#if defined(S_ISSOCK) && defined(S_IFREG)
 
24850
# if S_ISSOCK (S_IFREG)
 
24851
You lose.
 
24852
# endif
 
24853
#endif
 
24854
 
 
24855
_ACEOF
 
24856
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
24857
  $EGREP "You lose" >/dev/null 2>&1; then
 
24858
  ac_cv_header_stat_broken=yes
 
24859
else
 
24860
  ac_cv_header_stat_broken=no
 
24861
fi
 
24862
rm -f conftest*
 
24863
 
 
24864
fi
 
24865
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
 
24866
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
 
24867
if test $ac_cv_header_stat_broken = yes; then
 
24868
 
 
24869
cat >>confdefs.h <<\_ACEOF
 
24870
#define STAT_MACROS_BROKEN 1
 
24871
_ACEOF
 
24872
 
 
24873
fi
 
24874
 
 
24875
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
24876
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
24877
if test "${ac_cv_c_const+set}" = set; then
 
24878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24879
else
 
24880
  cat >conftest.$ac_ext <<_ACEOF
 
24881
/* confdefs.h.  */
 
24882
_ACEOF
 
24883
cat confdefs.h >>conftest.$ac_ext
 
24884
cat >>conftest.$ac_ext <<_ACEOF
 
24885
/* end confdefs.h.  */
 
24886
 
 
24887
int
 
24888
main ()
 
24889
{
 
24890
/* FIXME: Include the comments suggested by Paul. */
 
24891
#ifndef __cplusplus
 
24892
  /* Ultrix mips cc rejects this.  */
 
24893
  typedef int charset[2];
 
24894
  const charset x;
 
24895
  /* SunOS 4.1.1 cc rejects this.  */
 
24896
  char const *const *ccp;
 
24897
  char **p;
 
24898
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
24899
  struct point {int x, y;};
 
24900
  static struct point const zero = {0,0};
 
24901
  /* AIX XL C 1.02.0.0 rejects this.
 
24902
     It does not let you subtract one const X* pointer from another in
 
24903
     an arm of an if-expression whose if-part is not a constant
 
24904
     expression */
 
24905
  const char *g = "string";
 
24906
  ccp = &g + (g ? g-g : 0);
 
24907
  /* HPUX 7.0 cc rejects these. */
 
24908
  ++ccp;
 
24909
  p = (char**) ccp;
 
24910
  ccp = (char const *const *) p;
 
24911
  { /* SCO 3.2v4 cc rejects this.  */
 
24912
    char *t;
 
24913
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
24914
 
 
24915
    *t++ = 0;
 
24916
  }
 
24917
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
24918
    int x[] = {25, 17};
 
24919
    const int *foo = &x[0];
 
24920
    ++foo;
 
24921
  }
 
24922
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
24923
    typedef const int *iptr;
 
24924
    iptr p = 0;
 
24925
    ++p;
 
24926
  }
 
24927
  { /* AIX XL C 1.02.0.0 rejects this saying
 
24928
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
24929
    struct s { int j; const int *ap[3]; };
 
24930
    struct s *b; b->j = 5;
 
24931
  }
 
24932
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
24933
    const int foo = 10;
 
24934
  }
 
24935
#endif
 
24936
 
 
24937
  ;
 
24938
  return 0;
 
24939
}
 
24940
_ACEOF
 
24941
rm -f conftest.$ac_objext
 
24942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24943
  (eval $ac_compile) 2>conftest.er1
 
24944
  ac_status=$?
 
24945
  grep -v '^ *+' conftest.er1 >conftest.err
 
24946
  rm -f conftest.er1
 
24947
  cat conftest.err >&5
 
24948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24949
  (exit $ac_status); } &&
 
24950
         { ac_try='test -z "$ac_c_werror_flag"
 
24951
                         || test ! -s conftest.err'
 
24952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24953
  (eval $ac_try) 2>&5
 
24954
  ac_status=$?
 
24955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24956
  (exit $ac_status); }; } &&
 
24957
         { ac_try='test -s conftest.$ac_objext'
 
24958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24959
  (eval $ac_try) 2>&5
 
24960
  ac_status=$?
 
24961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24962
  (exit $ac_status); }; }; then
 
24963
  ac_cv_c_const=yes
 
24964
else
 
24965
  echo "$as_me: failed program was:" >&5
 
24966
sed 's/^/| /' conftest.$ac_ext >&5
 
24967
 
 
24968
ac_cv_c_const=no
 
24969
fi
 
24970
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24971
fi
 
24972
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
24973
echo "${ECHO_T}$ac_cv_c_const" >&6
 
24974
if test $ac_cv_c_const = no; then
 
24975
 
 
24976
cat >>confdefs.h <<\_ACEOF
 
24977
#define const
 
24978
_ACEOF
 
24979
 
 
24980
fi
 
24981
 
 
24982
echo "$as_me:$LINENO: checking for size_t" >&5
 
24983
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
24984
if test "${ac_cv_type_size_t+set}" = set; then
 
24985
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24986
else
 
24987
  cat >conftest.$ac_ext <<_ACEOF
 
24988
/* confdefs.h.  */
 
24989
_ACEOF
 
24990
cat confdefs.h >>conftest.$ac_ext
 
24991
cat >>conftest.$ac_ext <<_ACEOF
 
24992
/* end confdefs.h.  */
 
24993
$ac_includes_default
 
24994
int
 
24995
main ()
 
24996
{
 
24997
if ((size_t *) 0)
 
24998
  return 0;
 
24999
if (sizeof (size_t))
 
25000
  return 0;
 
25001
  ;
 
25002
  return 0;
 
25003
}
 
25004
_ACEOF
 
25005
rm -f conftest.$ac_objext
 
25006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25007
  (eval $ac_compile) 2>conftest.er1
 
25008
  ac_status=$?
 
25009
  grep -v '^ *+' conftest.er1 >conftest.err
 
25010
  rm -f conftest.er1
 
25011
  cat conftest.err >&5
 
25012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25013
  (exit $ac_status); } &&
 
25014
         { ac_try='test -z "$ac_c_werror_flag"
 
25015
                         || test ! -s conftest.err'
 
25016
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25017
  (eval $ac_try) 2>&5
 
25018
  ac_status=$?
 
25019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25020
  (exit $ac_status); }; } &&
 
25021
         { ac_try='test -s conftest.$ac_objext'
 
25022
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25023
  (eval $ac_try) 2>&5
 
25024
  ac_status=$?
 
25025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25026
  (exit $ac_status); }; }; then
 
25027
  ac_cv_type_size_t=yes
 
25028
else
 
25029
  echo "$as_me: failed program was:" >&5
 
25030
sed 's/^/| /' conftest.$ac_ext >&5
 
25031
 
 
25032
ac_cv_type_size_t=no
 
25033
fi
 
25034
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
25035
fi
 
25036
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
25037
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
25038
if test $ac_cv_type_size_t = yes; then
 
25039
  :
 
25040
else
 
25041
 
 
25042
cat >>confdefs.h <<_ACEOF
 
25043
#define size_t unsigned
 
25044
_ACEOF
 
25045
 
 
25046
fi
 
25047
 
 
25048
 
 
25049
 
 
25050
if test "$no_x" = "yes"
 
25051
then
 
25052
MAIN_TARGET="libt1.la"
 
25053
MAIN_HEADER="t1lib.h"
 
25054
XSUBDIRS=""
 
25055
T1LIBX_OBJS=""
 
25056
T1LIBX_SRCS=""
 
25057
T1LIBX_HEADERS=""
 
25058
XOBJS=""
 
25059
else
 
25060
MAIN_TARGET="libt1.la libt1x.la"
 
25061
MAIN_HEADER="t1lib.h t1libx.h"
 
25062
XSUBDIRS="xglyph"
 
25063
T1LIBX_OBJS="t1lib/t1x11.lo"
 
25064
T1LIBX_SRCS="t1lib/t1x11.c"
 
25065
T1LIBX_HEADERS="t1lib/t1x11.h t1lib/t1libx.h"
 
25066
XOBJS="t1x11.lo"
 
25067
fi
 
25068
 
 
25069
 
 
25070
 
 
25071
if test "$no_x" = "yes"
 
25072
then
 
25073
CFLAGS="${CFLAGS} -DT1LIB_NO_X11_SUPPORT"
 
25074
MAKEFILES="Makefile \
 
25075
           lib/Makefile \
 
25076
           lib/type1/Makefile \
 
25077
           lib/t1lib/Makefile \
 
25078
           type1afm/Makefile \
 
25079
           examples/Makefile \
 
25080
           doc/Makefile"
 
25081
else
 
25082
MAKEFILES="Makefile \
 
25083
           lib/Makefile \
 
25084
           lib/type1/Makefile \
 
25085
           lib/t1lib/Makefile \
 
25086
           xglyph/Makefile \
 
25087
           type1afm/Makefile \
 
25088
           examples/Makefile \
 
25089
           doc/Makefile"
 
25090
fi
 
25091
 
 
25092
 
 
25093
                    ac_config_files="$ac_config_files $MAKEFILES lib/t1lib/t1lib.h"
 
25094
cat >confcache <<\_ACEOF
 
25095
# This file is a shell script that caches the results of configure
 
25096
# tests run on this system so they can be shared between configure
 
25097
# scripts and configure runs, see configure's option --config-cache.
 
25098
# It is not useful on other systems.  If it contains results you don't
 
25099
# want to keep, you may remove or edit it.
 
25100
#
 
25101
# config.status only pays attention to the cache file if you give it
 
25102
# the --recheck option to rerun configure.
 
25103
#
 
25104
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
25105
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
25106
# following values.
 
25107
 
 
25108
_ACEOF
 
25109
 
 
25110
# The following way of writing the cache mishandles newlines in values,
 
25111
# but we know of no workaround that is simple, portable, and efficient.
 
25112
# So, don't put newlines in cache variables' values.
 
25113
# Ultrix sh set writes to stderr and can't be redirected directly,
 
25114
# and sets the high bit in the cache file unless we assign to the vars.
 
25115
{
 
25116
  (set) 2>&1 |
 
25117
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
25118
    *ac_space=\ *)
 
25119
      # `set' does not quote correctly, so add quotes (double-quote
 
25120
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
25121
      sed -n \
 
25122
        "s/'/'\\\\''/g;
 
25123
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
25124
      ;;
 
25125
    *)
 
25126
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
25127
      sed -n \
 
25128
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
25129
      ;;
 
25130
    esac;
 
25131
} |
 
25132
  sed '
 
25133
     t clear
 
25134
     : clear
 
25135
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
25136
     t end
 
25137
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
25138
     : end' >>confcache
 
25139
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
25140
  if test -w $cache_file; then
 
25141
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
25142
    cat confcache >$cache_file
 
25143
  else
 
25144
    echo "not updating unwritable cache $cache_file"
 
25145
  fi
 
25146
fi
 
25147
rm -f confcache
 
25148
 
 
25149
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
25150
# Let make expand exec_prefix.
 
25151
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
25152
 
 
25153
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
25154
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
25155
# trailing colons and then remove the whole line if VPATH becomes empty
 
25156
# (actually we leave an empty line to preserve line numbers).
 
25157
if test "x$srcdir" = x.; then
 
25158
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
25159
s/:*\$(srcdir):*/:/;
 
25160
s/:*\${srcdir}:*/:/;
 
25161
s/:*@srcdir@:*/:/;
 
25162
s/^\([^=]*=[     ]*\):*/\1/;
 
25163
s/:*$//;
 
25164
s/^[^=]*=[       ]*$//;
 
25165
}'
 
25166
fi
 
25167
 
 
25168
DEFS=-DHAVE_CONFIG_H
 
25169
 
 
25170
ac_libobjs=
 
25171
ac_ltlibobjs=
 
25172
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
25173
  # 1. Remove the extension, and $U if already installed.
 
25174
  ac_i=`echo "$ac_i" |
 
25175
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
25176
  # 2. Add them.
 
25177
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
25178
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
25179
done
 
25180
LIBOBJS=$ac_libobjs
 
25181
 
 
25182
LTLIBOBJS=$ac_ltlibobjs
 
25183
 
 
25184
 
 
25185
 
 
25186
: ${CONFIG_STATUS=./config.status}
 
25187
ac_clean_files_save=$ac_clean_files
 
25188
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
25189
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
25190
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
25191
cat >$CONFIG_STATUS <<_ACEOF
 
25192
#! $SHELL
 
25193
# Generated by $as_me.
 
25194
# Run this file to recreate the current configuration.
 
25195
# Compiler output produced by configure, useful for debugging
 
25196
# configure, is in config.log if it exists.
 
25197
 
 
25198
debug=false
 
25199
ac_cs_recheck=false
 
25200
ac_cs_silent=false
 
25201
SHELL=\${CONFIG_SHELL-$SHELL}
 
25202
_ACEOF
 
25203
 
 
25204
cat >>$CONFIG_STATUS <<\_ACEOF
 
25205
## --------------------- ##
 
25206
## M4sh Initialization.  ##
 
25207
## --------------------- ##
 
25208
 
 
25209
# Be Bourne compatible
 
25210
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
25211
  emulate sh
 
25212
  NULLCMD=:
 
25213
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
25214
  # is contrary to our usage.  Disable this feature.
 
25215
  alias -g '${1+"$@"}'='"$@"'
 
25216
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
25217
  set -o posix
 
25218
fi
 
25219
DUALCASE=1; export DUALCASE # for MKS sh
 
25220
 
 
25221
# Support unset when possible.
 
25222
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
25223
  as_unset=unset
 
25224
else
 
25225
  as_unset=false
 
25226
fi
 
25227
 
 
25228
 
 
25229
# Work around bugs in pre-3.0 UWIN ksh.
 
25230
$as_unset ENV MAIL MAILPATH
 
25231
PS1='$ '
 
25232
PS2='> '
 
25233
PS4='+ '
 
25234
 
 
25235
# NLS nuisances.
 
25236
for as_var in \
 
25237
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
25238
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
25239
  LC_TELEPHONE LC_TIME
 
25240
do
 
25241
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
25242
    eval $as_var=C; export $as_var
 
25243
  else
 
25244
    $as_unset $as_var
 
25245
  fi
 
25246
done
 
25247
 
 
25248
# Required to use basename.
 
25249
if expr a : '\(a\)' >/dev/null 2>&1; then
 
25250
  as_expr=expr
 
25251
else
 
25252
  as_expr=false
 
25253
fi
 
25254
 
 
25255
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
25256
  as_basename=basename
 
25257
else
 
25258
  as_basename=false
 
25259
fi
 
25260
 
 
25261
 
 
25262
# Name of the executable.
 
25263
as_me=`$as_basename "$0" ||
 
25264
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
25265
         X"$0" : 'X\(//\)$' \| \
 
25266
         X"$0" : 'X\(/\)$' \| \
 
25267
         .     : '\(.\)' 2>/dev/null ||
 
25268
echo X/"$0" |
 
25269
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
25270
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
25271
          /^X\/\(\/\).*/{ s//\1/; q; }
 
25272
          s/.*/./; q'`
 
25273
 
 
25274
 
 
25275
# PATH needs CR, and LINENO needs CR and PATH.
 
25276
# Avoid depending upon Character Ranges.
 
25277
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
25278
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
25279
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
25280
as_cr_digits='0123456789'
 
25281
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
25282
 
 
25283
# The user is always right.
 
25284
if test "${PATH_SEPARATOR+set}" != set; then
 
25285
  echo "#! /bin/sh" >conf$$.sh
 
25286
  echo  "exit 0"   >>conf$$.sh
 
25287
  chmod +x conf$$.sh
 
25288
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
25289
    PATH_SEPARATOR=';'
 
25290
  else
 
25291
    PATH_SEPARATOR=:
 
25292
  fi
 
25293
  rm -f conf$$.sh
 
25294
fi
 
25295
 
 
25296
 
 
25297
  as_lineno_1=$LINENO
 
25298
  as_lineno_2=$LINENO
 
25299
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
25300
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
25301
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
25302
  # Find who we are.  Look in the path if we contain no path at all
 
25303
  # relative or not.
 
25304
  case $0 in
 
25305
    *[\\/]* ) as_myself=$0 ;;
 
25306
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25307
for as_dir in $PATH
 
25308
do
 
25309
  IFS=$as_save_IFS
 
25310
  test -z "$as_dir" && as_dir=.
 
25311
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
25312
done
 
25313
 
 
25314
       ;;
 
25315
  esac
 
25316
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
25317
  # in which case we are not to be found in the path.
 
25318
  if test "x$as_myself" = x; then
 
25319
    as_myself=$0
 
25320
  fi
 
25321
  if test ! -f "$as_myself"; then
 
25322
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
25323
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
25324
   { (exit 1); exit 1; }; }
 
25325
  fi
 
25326
  case $CONFIG_SHELL in
 
25327
  '')
 
25328
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25329
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
25330
do
 
25331
  IFS=$as_save_IFS
 
25332
  test -z "$as_dir" && as_dir=.
 
25333
  for as_base in sh bash ksh sh5; do
 
25334
         case $as_dir in
 
25335
         /*)
 
25336
           if ("$as_dir/$as_base" -c '
 
25337
  as_lineno_1=$LINENO
 
25338
  as_lineno_2=$LINENO
 
25339
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
25340
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
25341
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
25342
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
25343
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
25344
             CONFIG_SHELL=$as_dir/$as_base
 
25345
             export CONFIG_SHELL
 
25346
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
25347
           fi;;
 
25348
         esac
 
25349
       done
 
25350
done
 
25351
;;
 
25352
  esac
 
25353
 
 
25354
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
25355
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
25356
  # line-number line before each line; the second 'sed' does the real
 
25357
  # work.  The second script uses 'N' to pair each line-number line
 
25358
  # with the numbered line, and appends trailing '-' during
 
25359
  # substitution so that $LINENO is not a special case at line end.
 
25360
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
25361
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
25362
  sed '=' <$as_myself |
 
25363
    sed '
 
25364
      N
 
25365
      s,$,-,
 
25366
      : loop
 
25367
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
25368
      t loop
 
25369
      s,-$,,
 
25370
      s,^['$as_cr_digits']*\n,,
 
25371
    ' >$as_me.lineno &&
 
25372
  chmod +x $as_me.lineno ||
 
25373
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
25374
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
25375
   { (exit 1); exit 1; }; }
 
25376
 
 
25377
  # Don't try to exec as it changes $[0], causing all sort of problems
 
25378
  # (the dirname of $[0] is not the place where we might find the
 
25379
  # original and so on.  Autoconf is especially sensible to this).
 
25380
  . ./$as_me.lineno
 
25381
  # Exit status is that of the last command.
 
25382
  exit
 
25383
}
 
25384
 
 
25385
 
 
25386
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
25387
  *c*,-n*) ECHO_N= ECHO_C='
 
25388
' ECHO_T='      ' ;;
 
25389
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
25390
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
25391
esac
 
25392
 
 
25393
if expr a : '\(a\)' >/dev/null 2>&1; then
 
25394
  as_expr=expr
 
25395
else
 
25396
  as_expr=false
 
25397
fi
 
25398
 
 
25399
rm -f conf$$ conf$$.exe conf$$.file
 
25400
echo >conf$$.file
 
25401
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
25402
  # We could just check for DJGPP; but this test a) works b) is more generic
 
25403
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
25404
  if test -f conf$$.exe; then
 
25405
    # Don't use ln at all; we don't have any links
 
25406
    as_ln_s='cp -p'
 
25407
  else
 
25408
    as_ln_s='ln -s'
 
25409
  fi
 
25410
elif ln conf$$.file conf$$ 2>/dev/null; then
 
25411
  as_ln_s=ln
 
25412
else
 
25413
  as_ln_s='cp -p'
 
25414
fi
 
25415
rm -f conf$$ conf$$.exe conf$$.file
 
25416
 
 
25417
if mkdir -p . 2>/dev/null; then
 
25418
  as_mkdir_p=:
 
25419
else
 
25420
  test -d ./-p && rmdir ./-p
 
25421
  as_mkdir_p=false
 
25422
fi
 
25423
 
 
25424
as_executable_p="test -f"
 
25425
 
 
25426
# Sed expression to map a string onto a valid CPP name.
 
25427
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
25428
 
 
25429
# Sed expression to map a string onto a valid variable name.
 
25430
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
25431
 
 
25432
 
 
25433
# IFS
 
25434
# We need space, tab and new line, in precisely that order.
 
25435
as_nl='
 
25436
'
 
25437
IFS="   $as_nl"
 
25438
 
 
25439
# CDPATH.
 
25440
$as_unset CDPATH
 
25441
 
 
25442
exec 6>&1
 
25443
 
 
25444
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
25445
# report actual input values of CONFIG_FILES etc. instead of their
 
25446
# values after options handling.  Logging --version etc. is OK.
 
25447
exec 5>>config.log
 
25448
{
 
25449
  echo
 
25450
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
25451
## Running $as_me. ##
 
25452
_ASBOX
 
25453
} >&5
 
25454
cat >&5 <<_CSEOF
 
25455
 
 
25456
This file was extended by $as_me, which was
 
25457
generated by GNU Autoconf 2.59.  Invocation command line was
 
25458
 
 
25459
  CONFIG_FILES    = $CONFIG_FILES
 
25460
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
25461
  CONFIG_LINKS    = $CONFIG_LINKS
 
25462
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
25463
  $ $0 $@
 
25464
 
 
25465
_CSEOF
 
25466
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
25467
echo >&5
 
25468
_ACEOF
 
25469
 
 
25470
# Files that config.status was made for.
 
25471
if test -n "$ac_config_files"; then
 
25472
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
25473
fi
 
25474
 
 
25475
if test -n "$ac_config_headers"; then
 
25476
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
25477
fi
 
25478
 
 
25479
if test -n "$ac_config_links"; then
 
25480
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
25481
fi
 
25482
 
 
25483
if test -n "$ac_config_commands"; then
 
25484
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
25485
fi
 
25486
 
 
25487
cat >>$CONFIG_STATUS <<\_ACEOF
 
25488
 
 
25489
ac_cs_usage="\
 
25490
\`$as_me' instantiates files from templates according to the
 
25491
current configuration.
 
25492
 
 
25493
Usage: $0 [OPTIONS] [FILE]...
 
25494
 
 
25495
  -h, --help       print this help, then exit
 
25496
  -V, --version    print version number, then exit
 
25497
  -q, --quiet      do not print progress messages
 
25498
  -d, --debug      don't remove temporary files
 
25499
      --recheck    update $as_me by reconfiguring in the same conditions
 
25500
  --file=FILE[:TEMPLATE]
 
25501
                   instantiate the configuration file FILE
 
25502
  --header=FILE[:TEMPLATE]
 
25503
                   instantiate the configuration header FILE
 
25504
 
 
25505
Configuration files:
 
25506
$config_files
 
25507
 
 
25508
Configuration headers:
 
25509
$config_headers
 
25510
 
 
25511
Report bugs to <bug-autoconf@gnu.org>."
 
25512
_ACEOF
 
25513
 
 
25514
cat >>$CONFIG_STATUS <<_ACEOF
 
25515
ac_cs_version="\\
 
25516
config.status
 
25517
configured by $0, generated by GNU Autoconf 2.59,
 
25518
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
25519
 
 
25520
Copyright (C) 2003 Free Software Foundation, Inc.
 
25521
This config.status script is free software; the Free Software Foundation
 
25522
gives unlimited permission to copy, distribute and modify it."
 
25523
srcdir=$srcdir
 
25524
INSTALL="$INSTALL"
 
25525
_ACEOF
 
25526
 
 
25527
cat >>$CONFIG_STATUS <<\_ACEOF
 
25528
# If no file are specified by the user, then we need to provide default
 
25529
# value.  By we need to know if files were specified by the user.
 
25530
ac_need_defaults=:
 
25531
while test $# != 0
 
25532
do
 
25533
  case $1 in
 
25534
  --*=*)
 
25535
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
25536
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
25537
    ac_shift=:
 
25538
    ;;
 
25539
  -*)
 
25540
    ac_option=$1
 
25541
    ac_optarg=$2
 
25542
    ac_shift=shift
 
25543
    ;;
 
25544
  *) # This is not an option, so the user has probably given explicit
 
25545
     # arguments.
 
25546
     ac_option=$1
 
25547
     ac_need_defaults=false;;
 
25548
  esac
 
25549
 
 
25550
  case $ac_option in
 
25551
  # Handling of the options.
 
25552
_ACEOF
 
25553
cat >>$CONFIG_STATUS <<\_ACEOF
 
25554
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
25555
    ac_cs_recheck=: ;;
 
25556
  --version | --vers* | -V )
 
25557
    echo "$ac_cs_version"; exit 0 ;;
 
25558
  --he | --h)
 
25559
    # Conflict between --help and --header
 
25560
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
25561
Try \`$0 --help' for more information." >&5
 
25562
echo "$as_me: error: ambiguous option: $1
 
25563
Try \`$0 --help' for more information." >&2;}
 
25564
   { (exit 1); exit 1; }; };;
 
25565
  --help | --hel | -h )
 
25566
    echo "$ac_cs_usage"; exit 0 ;;
 
25567
  --debug | --d* | -d )
 
25568
    debug=: ;;
 
25569
  --file | --fil | --fi | --f )
 
25570
    $ac_shift
 
25571
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
25572
    ac_need_defaults=false;;
 
25573
  --header | --heade | --head | --hea )
 
25574
    $ac_shift
 
25575
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
25576
    ac_need_defaults=false;;
 
25577
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
25578
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
25579
    ac_cs_silent=: ;;
 
25580
 
 
25581
  # This is an error.
 
25582
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
25583
Try \`$0 --help' for more information." >&5
 
25584
echo "$as_me: error: unrecognized option: $1
 
25585
Try \`$0 --help' for more information." >&2;}
 
25586
   { (exit 1); exit 1; }; } ;;
 
25587
 
 
25588
  *) ac_config_targets="$ac_config_targets $1" ;;
 
25589
 
 
25590
  esac
 
25591
  shift
 
25592
done
 
25593
 
 
25594
ac_configure_extra_args=
 
25595
 
 
25596
if $ac_cs_silent; then
 
25597
  exec 6>/dev/null
 
25598
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
25599
fi
 
25600
 
 
25601
_ACEOF
 
25602
cat >>$CONFIG_STATUS <<_ACEOF
 
25603
if \$ac_cs_recheck; then
 
25604
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
25605
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
25606
fi
 
25607
 
 
25608
_ACEOF
 
25609
 
 
25610
 
 
25611
 
 
25612
 
 
25613
 
 
25614
cat >>$CONFIG_STATUS <<\_ACEOF
 
25615
for ac_config_target in $ac_config_targets
 
25616
do
 
25617
  case "$ac_config_target" in
 
25618
  # Handling of arguments.
 
25619
  "$MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;;
 
25620
  "lib/t1lib/t1lib.h" ) CONFIG_FILES="$CONFIG_FILES lib/t1lib/t1lib.h" ;;
 
25621
  "lib/t1lib/sysconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/t1lib/sysconf.h:lib/t1lib/sysconf.h.in" ;;
 
25622
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
25623
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
25624
   { (exit 1); exit 1; }; };;
 
25625
  esac
 
25626
done
 
25627
 
 
25628
# If the user did not use the arguments to specify the items to instantiate,
 
25629
# then the envvar interface is used.  Set only those that are not.
 
25630
# We use the long form for the default assignment because of an extremely
 
25631
# bizarre bug on SunOS 4.1.3.
 
25632
if $ac_need_defaults; then
 
25633
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
25634
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
25635
fi
 
25636
 
 
25637
# Have a temporary directory for convenience.  Make it in the build tree
 
25638
# simply because there is no reason to put it here, and in addition,
 
25639
# creating and moving files from /tmp can sometimes cause problems.
 
25640
# Create a temporary directory, and hook for its removal unless debugging.
 
25641
$debug ||
 
25642
{
 
25643
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
25644
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
25645
}
 
25646
 
 
25647
# Create a (secure) tmp directory for tmp files.
 
25648
 
 
25649
{
 
25650
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
25651
  test -n "$tmp" && test -d "$tmp"
 
25652
}  ||
 
25653
{
 
25654
  tmp=./confstat$$-$RANDOM
 
25655
  (umask 077 && mkdir $tmp)
 
25656
} ||
 
25657
{
 
25658
   echo "$me: cannot create a temporary directory in ." >&2
 
25659
   { (exit 1); exit 1; }
 
25660
}
 
25661
 
 
25662
_ACEOF
 
25663
 
 
25664
cat >>$CONFIG_STATUS <<_ACEOF
 
25665
 
 
25666
#
 
25667
# CONFIG_FILES section.
 
25668
#
 
25669
 
 
25670
# No need to generate the scripts if there are no CONFIG_FILES.
 
25671
# This happens for instance when ./config.status config.h
 
25672
if test -n "\$CONFIG_FILES"; then
 
25673
  # Protect against being on the right side of a sed subst in config.status.
 
25674
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
25675
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
25676
s,@SHELL@,$SHELL,;t t
 
25677
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
25678
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
25679
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
25680
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
25681
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
25682
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
25683
s,@exec_prefix@,$exec_prefix,;t t
 
25684
s,@prefix@,$prefix,;t t
 
25685
s,@program_transform_name@,$program_transform_name,;t t
 
25686
s,@bindir@,$bindir,;t t
 
25687
s,@sbindir@,$sbindir,;t t
 
25688
s,@libexecdir@,$libexecdir,;t t
 
25689
s,@datadir@,$datadir,;t t
 
25690
s,@sysconfdir@,$sysconfdir,;t t
 
25691
s,@sharedstatedir@,$sharedstatedir,;t t
 
25692
s,@localstatedir@,$localstatedir,;t t
 
25693
s,@libdir@,$libdir,;t t
 
25694
s,@includedir@,$includedir,;t t
 
25695
s,@oldincludedir@,$oldincludedir,;t t
 
25696
s,@infodir@,$infodir,;t t
 
25697
s,@mandir@,$mandir,;t t
 
25698
s,@build_alias@,$build_alias,;t t
 
25699
s,@host_alias@,$host_alias,;t t
 
25700
s,@target_alias@,$target_alias,;t t
 
25701
s,@DEFS@,$DEFS,;t t
 
25702
s,@ECHO_C@,$ECHO_C,;t t
 
25703
s,@ECHO_N@,$ECHO_N,;t t
 
25704
s,@ECHO_T@,$ECHO_T,;t t
 
25705
s,@LIBS@,$LIBS,;t t
 
25706
s,@LDLIBS@,$LDLIBS,;t t
 
25707
s,@PROGEXT@,$PROGEXT,;t t
 
25708
s,@CFLAGS@,$CFLAGS,;t t
 
25709
s,@LDFLAGS@,$LDFLAGS,;t t
 
25710
s,@T1LIB_LT_CURRENT@,$T1LIB_LT_CURRENT,;t t
 
25711
s,@T1LIB_LT_REVISION@,$T1LIB_LT_REVISION,;t t
 
25712
s,@T1LIB_LT_AGE@,$T1LIB_LT_AGE,;t t
 
25713
s,@T1LIB_DATA_DIR@,$T1LIB_DATA_DIR,;t t
 
25714
s,@T1LIB_IDENTIFIER@,$T1LIB_IDENTIFIER,;t t
 
25715
s,@MAIN_TARGET@,$MAIN_TARGET,;t t
 
25716
s,@MAIN_HEADER@,$MAIN_HEADER,;t t
 
25717
s,@OPTIONS@,$OPTIONS,;t t
 
25718
s,@no_x@,$no_x,;t t
 
25719
s,@CC@,$CC,;t t
 
25720
s,@T1_AA_TYPE16@,$T1_AA_TYPE16,;t t
 
25721
s,@T1_AA_TYPE32@,$T1_AA_TYPE32,;t t
 
25722
s,@T1_AA_TYPE64@,$T1_AA_TYPE64,;t t
 
25723
s,@T1_INT16@,$T1_INT16,;t t
 
25724
s,@T1_INT32@,$T1_INT32,;t t
 
25725
s,@XSUBDIRS@,$XSUBDIRS,;t t
 
25726
s,@T1LIBX_OBJS@,$T1LIBX_OBJS,;t t
 
25727
s,@T1LIBX_SRCS@,$T1LIBX_SRCS,;t t
 
25728
s,@T1LIBX_HEADERS@,$T1LIBX_HEADERS,;t t
 
25729
s,@XOBJS@,$XOBJS,;t t
 
25730
s,@T1LIB_VERSION@,$T1LIB_VERSION,;t t
 
25731
s,@T1LIB_REVISION@,$T1LIB_REVISION,;t t
 
25732
s,@T1LIB_PATCHLEVEL@,$T1LIB_PATCHLEVEL,;t t
 
25733
s,@T1LIB_VERSIONSTRING@,$T1LIB_VERSIONSTRING,;t t
 
25734
s,@SET_MAKE@,$SET_MAKE,;t t
 
25735
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
25736
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
25737
s,@EXEEXT@,$EXEEXT,;t t
 
25738
s,@OBJEXT@,$OBJEXT,;t t
 
25739
s,@CPP@,$CPP,;t t
 
25740
s,@X_CFLAGS@,$X_CFLAGS,;t t
 
25741
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
 
25742
s,@X_LIBS@,$X_LIBS,;t t
 
25743
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
 
25744
s,@build@,$build,;t t
 
25745
s,@build_cpu@,$build_cpu,;t t
 
25746
s,@build_vendor@,$build_vendor,;t t
 
25747
s,@build_os@,$build_os,;t t
 
25748
s,@host@,$host,;t t
 
25749
s,@host_cpu@,$host_cpu,;t t
 
25750
s,@host_vendor@,$host_vendor,;t t
 
25751
s,@host_os@,$host_os,;t t
 
25752
s,@EGREP@,$EGREP,;t t
 
25753
s,@LN_S@,$LN_S,;t t
 
25754
s,@ECHO@,$ECHO,;t t
 
25755
s,@AR@,$AR,;t t
 
25756
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
25757
s,@RANLIB@,$RANLIB,;t t
 
25758
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
25759
s,@STRIP@,$STRIP,;t t
 
25760
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
25761
s,@CXX@,$CXX,;t t
 
25762
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
25763
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
25764
s,@CXXCPP@,$CXXCPP,;t t
 
25765
s,@F77@,$F77,;t t
 
25766
s,@FFLAGS@,$FFLAGS,;t t
 
25767
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
25768
s,@LIBTOOL@,$LIBTOOL,;t t
 
25769
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
25770
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
25771
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
25772
s,@LIBOBJS@,$LIBOBJS,;t t
 
25773
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
25774
CEOF
 
25775
 
 
25776
_ACEOF
 
25777
 
 
25778
  cat >>$CONFIG_STATUS <<\_ACEOF
 
25779
  # Split the substitutions into bite-sized pieces for seds with
 
25780
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
25781
  ac_max_sed_lines=48
 
25782
  ac_sed_frag=1 # Number of current file.
 
25783
  ac_beg=1 # First line for current file.
 
25784
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
25785
  ac_more_lines=:
 
25786
  ac_sed_cmds=
 
25787
  while $ac_more_lines; do
 
25788
    if test $ac_beg -gt 1; then
 
25789
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
25790
    else
 
25791
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
25792
    fi
 
25793
    if test ! -s $tmp/subs.frag; then
 
25794
      ac_more_lines=false
 
25795
    else
 
25796
      # The purpose of the label and of the branching condition is to
 
25797
      # speed up the sed processing (if there are no `@' at all, there
 
25798
      # is no need to browse any of the substitutions).
 
25799
      # These are the two extra sed commands mentioned above.
 
25800
      (echo ':t
 
25801
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
25802
      if test -z "$ac_sed_cmds"; then
 
25803
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
25804
      else
 
25805
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
25806
      fi
 
25807
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
25808
      ac_beg=$ac_end
 
25809
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
25810
    fi
 
25811
  done
 
25812
  if test -z "$ac_sed_cmds"; then
 
25813
    ac_sed_cmds=cat
 
25814
  fi
 
25815
fi # test -n "$CONFIG_FILES"
 
25816
 
 
25817
_ACEOF
 
25818
cat >>$CONFIG_STATUS <<\_ACEOF
 
25819
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
25820
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
25821
  case $ac_file in
 
25822
  - | *:- | *:-:* ) # input from stdin
 
25823
        cat >$tmp/stdin
 
25824
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25825
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25826
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25827
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25828
  * )   ac_file_in=$ac_file.in ;;
 
25829
  esac
 
25830
 
 
25831
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
25832
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
25833
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25834
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25835
         X"$ac_file" : 'X\(//\)$' \| \
 
25836
         X"$ac_file" : 'X\(/\)' \| \
 
25837
         .     : '\(.\)' 2>/dev/null ||
 
25838
echo X"$ac_file" |
 
25839
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25840
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25841
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25842
          /^X\(\/\).*/{ s//\1/; q; }
 
25843
          s/.*/./; q'`
 
25844
  { if $as_mkdir_p; then
 
25845
    mkdir -p "$ac_dir"
 
25846
  else
 
25847
    as_dir="$ac_dir"
 
25848
    as_dirs=
 
25849
    while test ! -d "$as_dir"; do
 
25850
      as_dirs="$as_dir $as_dirs"
 
25851
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25852
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25853
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25854
         X"$as_dir" : 'X\(//\)$' \| \
 
25855
         X"$as_dir" : 'X\(/\)' \| \
 
25856
         .     : '\(.\)' 2>/dev/null ||
 
25857
echo X"$as_dir" |
 
25858
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25859
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25860
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25861
          /^X\(\/\).*/{ s//\1/; q; }
 
25862
          s/.*/./; q'`
 
25863
    done
 
25864
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25865
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25866
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25867
   { (exit 1); exit 1; }; }; }
 
25868
 
 
25869
  ac_builddir=.
 
25870
 
 
25871
if test "$ac_dir" != .; then
 
25872
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25873
  # A "../" for each directory in $ac_dir_suffix.
 
25874
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
25875
else
 
25876
  ac_dir_suffix= ac_top_builddir=
 
25877
fi
 
25878
 
 
25879
case $srcdir in
 
25880
  .)  # No --srcdir option.  We are building in place.
 
25881
    ac_srcdir=.
 
25882
    if test -z "$ac_top_builddir"; then
 
25883
       ac_top_srcdir=.
 
25884
    else
 
25885
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
25886
    fi ;;
 
25887
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
25888
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25889
    ac_top_srcdir=$srcdir ;;
 
25890
  *) # Relative path.
 
25891
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
25892
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
25893
esac
 
25894
 
 
25895
# Do not use `cd foo && pwd` to compute absolute paths, because
 
25896
# the directories may not exist.
 
25897
case `pwd` in
 
25898
.) ac_abs_builddir="$ac_dir";;
 
25899
*)
 
25900
  case "$ac_dir" in
 
25901
  .) ac_abs_builddir=`pwd`;;
 
25902
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25903
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25904
  esac;;
 
25905
esac
 
25906
case $ac_abs_builddir in
 
25907
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25908
*)
 
25909
  case ${ac_top_builddir}. in
 
25910
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
25911
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25912
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
25913
  esac;;
 
25914
esac
 
25915
case $ac_abs_builddir in
 
25916
.) ac_abs_srcdir=$ac_srcdir;;
 
25917
*)
 
25918
  case $ac_srcdir in
 
25919
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25920
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25921
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25922
  esac;;
 
25923
esac
 
25924
case $ac_abs_builddir in
 
25925
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25926
*)
 
25927
  case $ac_top_srcdir in
 
25928
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
25929
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25930
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
25931
  esac;;
 
25932
esac
 
25933
 
 
25934
 
 
25935
  case $INSTALL in
 
25936
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25937
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
25938
  esac
 
25939
 
 
25940
  if test x"$ac_file" != x-; then
 
25941
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25942
echo "$as_me: creating $ac_file" >&6;}
 
25943
    rm -f "$ac_file"
 
25944
  fi
 
25945
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25946
  # use $as_me), people would be surprised to read:
 
25947
  #    /* config.h.  Generated by config.status.  */
 
25948
  if test x"$ac_file" = x-; then
 
25949
    configure_input=
 
25950
  else
 
25951
    configure_input="$ac_file.  "
 
25952
  fi
 
25953
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
25954
                                     sed 's,.*/,,'` by configure."
 
25955
 
 
25956
  # First look for the input files in the build tree, otherwise in the
 
25957
  # src tree.
 
25958
  ac_file_inputs=`IFS=:
 
25959
    for f in $ac_file_in; do
 
25960
      case $f in
 
25961
      -) echo $tmp/stdin ;;
 
25962
      [\\/$]*)
 
25963
         # Absolute (can't be DOS-style, as IFS=:)
 
25964
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25965
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25966
   { (exit 1); exit 1; }; }
 
25967
         echo "$f";;
 
25968
      *) # Relative
 
25969
         if test -f "$f"; then
 
25970
           # Build tree
 
25971
           echo "$f"
 
25972
         elif test -f "$srcdir/$f"; then
 
25973
           # Source tree
 
25974
           echo "$srcdir/$f"
 
25975
         else
 
25976
           # /dev/null tree
 
25977
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25978
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25979
   { (exit 1); exit 1; }; }
 
25980
         fi;;
 
25981
      esac
 
25982
    done` || { (exit 1); exit 1; }
 
25983
_ACEOF
 
25984
cat >>$CONFIG_STATUS <<_ACEOF
 
25985
  sed "$ac_vpsub
 
25986
$extrasub
 
25987
_ACEOF
 
25988
cat >>$CONFIG_STATUS <<\_ACEOF
 
25989
:t
 
25990
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25991
s,@configure_input@,$configure_input,;t t
 
25992
s,@srcdir@,$ac_srcdir,;t t
 
25993
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
25994
s,@top_srcdir@,$ac_top_srcdir,;t t
 
25995
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
25996
s,@builddir@,$ac_builddir,;t t
 
25997
s,@abs_builddir@,$ac_abs_builddir,;t t
 
25998
s,@top_builddir@,$ac_top_builddir,;t t
 
25999
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
26000
s,@INSTALL@,$ac_INSTALL,;t t
 
26001
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
26002
  rm -f $tmp/stdin
 
26003
  if test x"$ac_file" != x-; then
 
26004
    mv $tmp/out $ac_file
 
26005
  else
 
26006
    cat $tmp/out
 
26007
    rm -f $tmp/out
 
26008
  fi
 
26009
 
 
26010
done
 
26011
_ACEOF
 
26012
cat >>$CONFIG_STATUS <<\_ACEOF
 
26013
 
 
26014
#
 
26015
# CONFIG_HEADER section.
 
26016
#
 
26017
 
 
26018
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
26019
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
26020
#
 
26021
# ac_d sets the value in "#define NAME VALUE" lines.
 
26022
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
26023
ac_dB='[         ].*$,\1#\2'
 
26024
ac_dC=' '
 
26025
ac_dD=',;t'
 
26026
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
26027
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
26028
ac_uB='$,\1#\2define\3'
 
26029
ac_uC=' '
 
26030
ac_uD=',;t'
 
26031
 
 
26032
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
26033
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
26034
  case $ac_file in
 
26035
  - | *:- | *:-:* ) # input from stdin
 
26036
        cat >$tmp/stdin
 
26037
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
26038
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
26039
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
26040
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
26041
  * )   ac_file_in=$ac_file.in ;;
 
26042
  esac
 
26043
 
 
26044
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
26045
echo "$as_me: creating $ac_file" >&6;}
 
26046
 
 
26047
  # First look for the input files in the build tree, otherwise in the
 
26048
  # src tree.
 
26049
  ac_file_inputs=`IFS=:
 
26050
    for f in $ac_file_in; do
 
26051
      case $f in
 
26052
      -) echo $tmp/stdin ;;
 
26053
      [\\/$]*)
 
26054
         # Absolute (can't be DOS-style, as IFS=:)
 
26055
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
26056
echo "$as_me: error: cannot find input file: $f" >&2;}
 
26057
   { (exit 1); exit 1; }; }
 
26058
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
26059
         echo "$f";;
 
26060
      *) # Relative
 
26061
         if test -f "$f"; then
 
26062
           # Build tree
 
26063
           echo "$f"
 
26064
         elif test -f "$srcdir/$f"; then
 
26065
           # Source tree
 
26066
           echo "$srcdir/$f"
 
26067
         else
 
26068
           # /dev/null tree
 
26069
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
26070
echo "$as_me: error: cannot find input file: $f" >&2;}
 
26071
   { (exit 1); exit 1; }; }
 
26072
         fi;;
 
26073
      esac
 
26074
    done` || { (exit 1); exit 1; }
 
26075
  # Remove the trailing spaces.
 
26076
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
26077
 
 
26078
_ACEOF
 
26079
 
 
26080
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
26081
# `conftest.undefs', that substitutes the proper values into
 
26082
# config.h.in to produce config.h.  The first handles `#define'
 
26083
# templates, and the second `#undef' templates.
 
26084
# And first: Protect against being on the right side of a sed subst in
 
26085
# config.status.  Protect against being in an unquoted here document
 
26086
# in config.status.
 
26087
rm -f conftest.defines conftest.undefs
 
26088
# Using a here document instead of a string reduces the quoting nightmare.
 
26089
# Putting comments in sed scripts is not portable.
 
26090
#
 
26091
# `end' is used to avoid that the second main sed command (meant for
 
26092
# 0-ary CPP macros) applies to n-ary macro definitions.
 
26093
# See the Autoconf documentation for `clear'.
 
26094
cat >confdef2sed.sed <<\_ACEOF
 
26095
s/[\\&,]/\\&/g
 
26096
s,[\\$`],\\&,g
 
26097
t clear
 
26098
: clear
 
26099
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
26100
t end
 
26101
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
26102
: end
 
26103
_ACEOF
 
26104
# If some macros were called several times there might be several times
 
26105
# the same #defines, which is useless.  Nevertheless, we may not want to
 
26106
# sort them, since we want the *last* AC-DEFINE to be honored.
 
26107
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
26108
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
26109
rm -f confdef2sed.sed
 
26110
 
 
26111
# This sed command replaces #undef with comments.  This is necessary, for
 
26112
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
26113
# on some systems where configure will not decide to define it.
 
26114
cat >>conftest.undefs <<\_ACEOF
 
26115
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
26116
_ACEOF
 
26117
 
 
26118
# Break up conftest.defines because some shells have a limit on the size
 
26119
# of here documents, and old seds have small limits too (100 cmds).
 
26120
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
26121
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
26122
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
26123
echo '  :' >>$CONFIG_STATUS
 
26124
rm -f conftest.tail
 
26125
while grep . conftest.defines >/dev/null
 
26126
do
 
26127
  # Write a limited-size here document to $tmp/defines.sed.
 
26128
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
26129
  # Speed up: don't consider the non `#define' lines.
 
26130
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
26131
  # Work around the forget-to-reset-the-flag bug.
 
26132
  echo 't clr' >>$CONFIG_STATUS
 
26133
  echo ': clr' >>$CONFIG_STATUS
 
26134
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
26135
  echo 'CEOF
 
26136
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
26137
  rm -f $tmp/in
 
26138
  mv $tmp/out $tmp/in
 
26139
' >>$CONFIG_STATUS
 
26140
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
26141
  rm -f conftest.defines
 
26142
  mv conftest.tail conftest.defines
 
26143
done
 
26144
rm -f conftest.defines
 
26145
echo '  fi # grep' >>$CONFIG_STATUS
 
26146
echo >>$CONFIG_STATUS
 
26147
 
 
26148
# Break up conftest.undefs because some shells have a limit on the size
 
26149
# of here documents, and old seds have small limits too (100 cmds).
 
26150
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
26151
rm -f conftest.tail
 
26152
while grep . conftest.undefs >/dev/null
 
26153
do
 
26154
  # Write a limited-size here document to $tmp/undefs.sed.
 
26155
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
26156
  # Speed up: don't consider the non `#undef'
 
26157
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
26158
  # Work around the forget-to-reset-the-flag bug.
 
26159
  echo 't clr' >>$CONFIG_STATUS
 
26160
  echo ': clr' >>$CONFIG_STATUS
 
26161
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
26162
  echo 'CEOF
 
26163
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
26164
  rm -f $tmp/in
 
26165
  mv $tmp/out $tmp/in
 
26166
' >>$CONFIG_STATUS
 
26167
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
26168
  rm -f conftest.undefs
 
26169
  mv conftest.tail conftest.undefs
 
26170
done
 
26171
rm -f conftest.undefs
 
26172
 
 
26173
cat >>$CONFIG_STATUS <<\_ACEOF
 
26174
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
26175
  # use $as_me), people would be surprised to read:
 
26176
  #    /* config.h.  Generated by config.status.  */
 
26177
  if test x"$ac_file" = x-; then
 
26178
    echo "/* Generated by configure.  */" >$tmp/config.h
 
26179
  else
 
26180
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
26181
  fi
 
26182
  cat $tmp/in >>$tmp/config.h
 
26183
  rm -f $tmp/in
 
26184
  if test x"$ac_file" != x-; then
 
26185
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
26186
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
26187
echo "$as_me: $ac_file is unchanged" >&6;}
 
26188
    else
 
26189
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
26190
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26191
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
26192
         X"$ac_file" : 'X\(//\)$' \| \
 
26193
         X"$ac_file" : 'X\(/\)' \| \
 
26194
         .     : '\(.\)' 2>/dev/null ||
 
26195
echo X"$ac_file" |
 
26196
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26197
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26198
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26199
          /^X\(\/\).*/{ s//\1/; q; }
 
26200
          s/.*/./; q'`
 
26201
      { if $as_mkdir_p; then
 
26202
    mkdir -p "$ac_dir"
 
26203
  else
 
26204
    as_dir="$ac_dir"
 
26205
    as_dirs=
 
26206
    while test ! -d "$as_dir"; do
 
26207
      as_dirs="$as_dir $as_dirs"
 
26208
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
26209
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26210
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
26211
         X"$as_dir" : 'X\(//\)$' \| \
 
26212
         X"$as_dir" : 'X\(/\)' \| \
 
26213
         .     : '\(.\)' 2>/dev/null ||
 
26214
echo X"$as_dir" |
 
26215
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26216
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26217
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26218
          /^X\(\/\).*/{ s//\1/; q; }
 
26219
          s/.*/./; q'`
 
26220
    done
 
26221
    test ! -n "$as_dirs" || mkdir $as_dirs
 
26222
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
26223
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
26224
   { (exit 1); exit 1; }; }; }
 
26225
 
 
26226
      rm -f $ac_file
 
26227
      mv $tmp/config.h $ac_file
 
26228
    fi
 
26229
  else
 
26230
    cat $tmp/config.h
 
26231
    rm -f $tmp/config.h
 
26232
  fi
 
26233
done
 
26234
_ACEOF
 
26235
 
 
26236
cat >>$CONFIG_STATUS <<\_ACEOF
 
26237
 
 
26238
{ (exit 0); exit 0; }
 
26239
_ACEOF
 
26240
chmod +x $CONFIG_STATUS
 
26241
ac_clean_files=$ac_clean_files_save
 
26242
 
 
26243
 
 
26244
# configure is writing to config.log, and then calls config.status.
 
26245
# config.status does its own redirection, appending to config.log.
 
26246
# Unfortunately, on DOS this fails, as config.log is still kept open
 
26247
# by configure, so config.status won't be able to write to it; its
 
26248
# output is simply discarded.  So we exec the FD to /dev/null,
 
26249
# effectively closing config.log, so it can be properly (re)opened and
 
26250
# appended to by config.status.  When coming back to configure, we
 
26251
# need to make the FD available again.
 
26252
if test "$no_create" != yes; then
 
26253
  ac_cs_success=:
 
26254
  ac_config_status_args=
 
26255
  test "$silent" = yes &&
 
26256
    ac_config_status_args="$ac_config_status_args --quiet"
 
26257
  exec 5>/dev/null
 
26258
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
26259
  exec 5>>config.log
 
26260
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
26261
  # would make configure fail if this is the last instruction.
 
26262
  $ac_cs_success || { (exit 1); exit 1; }
 
26263
fi
 
26264
 
 
26265
 
 
26266
 
 
26267
 
 
26268
echo
 
26269
echo "Configure finished!"
 
26270
echo "        Do:  'make'               to compile the t1lib-package."
 
26271
echo "        Do:  'make without_doc'   to compile if you do not have LaTeX."
 
26272
echo "        Do:  'make install'       to install the t1lib-package."
 
26273
echo ""
 
26274