~ubuntu-branches/ubuntu/oneiric/dejagnu/oneiric

« back to all changes in this revision

Viewing changes to example/mathhelper/configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2006-12-11 09:06:59 UTC
  • mfrom: (2.1.6 edgy)
  • Revision ID: james.westby@ubuntu.com-20061211090659-w586kgi3giz84053
Tags: 1.4.4.cvs20060709-3
* Acknowledge previous NMUs.
* Fix permissions on /usr/share/dejagnu when building without fakeroot
  (Closes: #392589, #379809).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
# Find the correct PATH separator.  Usually this is `:', but
 
245
# DJGPP uses `;' like DOS.
 
246
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
247
  UNAME=${UNAME-`uname 2>/dev/null`}
 
248
  case X$UNAME in
 
249
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
250
    *)     lt_cv_sys_path_separator=':' ;;
 
251
  esac
 
252
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
253
fi
 
254
 
 
255
 
 
256
# Check that we are running under the correct shell.
 
257
SHELL=${CONFIG_SHELL-/bin/sh}
 
258
 
 
259
case X$ECHO in
 
260
X*--fallback-echo)
 
261
  # Remove one level of quotation (which was required for Make).
 
262
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
263
  ;;
 
264
esac
 
265
 
 
266
echo=${ECHO-echo}
 
267
if test "X$1" = X--no-reexec; then
 
268
  # Discard the --no-reexec flag, and continue.
 
269
  shift
 
270
elif test "X$1" = X--fallback-echo; then
 
271
  # Avoid inline document here, it may be left over
 
272
  :
 
273
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
274
  # Yippee, $echo works!
 
275
  :
 
276
else
 
277
  # Restart under the correct shell.
 
278
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
279
fi
 
280
 
 
281
if test "X$1" = X--fallback-echo; then
 
282
  # used as fallback echo
 
283
  shift
 
284
  cat <<EOF
 
285
 
 
286
EOF
 
287
  exit 0
 
288
fi
 
289
 
 
290
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
291
# if CDPATH is set.
 
292
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
293
 
 
294
if test -z "$ECHO"; then
 
295
if test "X${echo_test_string+set}" != Xset; then
 
296
# find a string as large as possible, as long as the shell can cope with it
 
297
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
298
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
299
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
300
       echo_test_string="`eval $cmd`" &&
 
301
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
302
    then
 
303
      break
 
304
    fi
 
305
  done
 
306
fi
 
307
 
 
308
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
309
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
310
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
311
  :
 
312
else
 
313
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
314
  # backslashes.  This makes it impossible to quote backslashes using
 
315
  #   echo "$something" | sed 's/\\/\\\\/g'
 
316
  #
 
317
  # So, first we look for a working echo in the user's PATH.
 
318
 
 
319
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
320
  for dir in $PATH /usr/ucb; do
 
321
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
322
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
323
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
324
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
325
      echo="$dir/echo"
 
326
      break
 
327
    fi
 
328
  done
 
329
  IFS="$save_ifs"
 
330
 
 
331
  if test "X$echo" = Xecho; then
 
332
    # We didn't find a better echo, so look for alternatives.
 
333
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
334
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
335
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
336
      # This shell has a builtin print -r that does the trick.
 
337
      echo='print -r'
 
338
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
339
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
340
      # If we have ksh, try running configure again with it.
 
341
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
342
      export ORIGINAL_CONFIG_SHELL
 
343
      CONFIG_SHELL=/bin/ksh
 
344
      export CONFIG_SHELL
 
345
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
346
    else
 
347
      # Try using printf.
 
348
      echo='printf %s\n'
 
349
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
350
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
351
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
352
        # Cool, printf works
 
353
        :
 
354
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
355
           test "X$echo_testing_string" = 'X\t' &&
 
356
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
357
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
358
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
359
        export CONFIG_SHELL
 
360
        SHELL="$CONFIG_SHELL"
 
361
        export SHELL
 
362
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
363
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
364
           test "X$echo_testing_string" = 'X\t' &&
 
365
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
366
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
367
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
368
      else
 
369
        # maybe with a smaller string...
 
370
        prev=:
 
371
 
 
372
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
373
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
374
          then
 
375
            break
 
376
          fi
 
377
          prev="$cmd"
 
378
        done
 
379
 
 
380
        if test "$prev" != 'sed 50q "$0"'; then
 
381
          echo_test_string=`eval $prev`
 
382
          export echo_test_string
 
383
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
384
        else
 
385
          # Oops.  We lost completely, so just stick with echo.
 
386
          echo=echo
 
387
        fi
 
388
      fi
 
389
    fi
 
390
  fi
 
391
fi
 
392
fi
 
393
 
 
394
# Copy echo and quote the copy suitably for passing to libtool from
 
395
# the Makefile, instead of quoting the original, which is used later.
 
396
ECHO=$echo
 
397
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
398
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
399
fi
 
400
 
 
401
 
 
402
 
 
403
# Name of the host.
 
404
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
405
# so uname gets run too.
 
406
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
407
 
 
408
exec 6>&1
 
409
 
 
410
#
 
411
# Initializations.
 
412
#
 
413
ac_default_prefix=/usr/local
 
414
ac_config_libobj_dir=.
 
415
cross_compiling=no
 
416
subdirs=
 
417
MFLAGS=
 
418
MAKEFLAGS=
 
419
SHELL=${CONFIG_SHELL-/bin/sh}
 
420
 
 
421
# Maximum number of lines to put in a shell here document.
 
422
# This variable seems obsolete.  It should probably be removed, and
 
423
# only ac_max_sed_lines should be used.
 
424
: ${ac_max_here_lines=38}
 
425
 
 
426
# Identity of this package.
 
427
PACKAGE_NAME=
 
428
PACKAGE_TARNAME=
 
429
PACKAGE_VERSION=
 
430
PACKAGE_STRING=
 
431
PACKAGE_BUGREPORT=
 
432
 
 
433
ac_unique_file="libmathhelper/mathhelper.c"
 
434
# Factoring default headers for most tests.
 
435
ac_includes_default="\
 
436
#include <stdio.h>
 
437
#if HAVE_SYS_TYPES_H
 
438
# include <sys/types.h>
 
439
#endif
 
440
#if HAVE_SYS_STAT_H
 
441
# include <sys/stat.h>
 
442
#endif
 
443
#if STDC_HEADERS
 
444
# include <stdlib.h>
 
445
# include <stddef.h>
 
446
#else
 
447
# if HAVE_STDLIB_H
 
448
#  include <stdlib.h>
 
449
# endif
 
450
#endif
 
451
#if HAVE_STRING_H
 
452
# if !STDC_HEADERS && HAVE_MEMORY_H
 
453
#  include <memory.h>
 
454
# endif
 
455
# include <string.h>
 
456
#endif
 
457
#if HAVE_STRINGS_H
 
458
# include <strings.h>
 
459
#endif
 
460
#if HAVE_INTTYPES_H
 
461
# include <inttypes.h>
 
462
#else
 
463
# if HAVE_STDINT_H
 
464
#  include <stdint.h>
 
465
# endif
 
466
#endif
 
467
#if HAVE_UNISTD_H
 
468
# include <unistd.h>
 
469
#endif"
 
470
 
 
471
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
 
472
ac_subst_files=''
 
473
 
 
474
# Initialize some variables set by options.
 
475
ac_init_help=
 
476
ac_init_version=false
 
477
# The variables have the same names as the options, with
 
478
# dashes changed to underlines.
 
479
cache_file=/dev/null
 
480
exec_prefix=NONE
 
481
no_create=
 
482
no_recursion=
 
483
prefix=NONE
 
484
program_prefix=NONE
 
485
program_suffix=NONE
 
486
program_transform_name=s,x,x,
 
487
silent=
 
488
site=
 
489
srcdir=
 
490
verbose=
 
491
x_includes=NONE
 
492
x_libraries=NONE
 
493
 
 
494
# Installation directory options.
 
495
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
496
# and all the variables that are supposed to be based on exec_prefix
 
497
# by default will actually change.
 
498
# Use braces instead of parens because sh, perl, etc. also accept them.
 
499
bindir='${exec_prefix}/bin'
 
500
sbindir='${exec_prefix}/sbin'
 
501
libexecdir='${exec_prefix}/libexec'
 
502
datadir='${prefix}/share'
 
503
sysconfdir='${prefix}/etc'
 
504
sharedstatedir='${prefix}/com'
 
505
localstatedir='${prefix}/var'
 
506
libdir='${exec_prefix}/lib'
 
507
includedir='${prefix}/include'
 
508
oldincludedir='/usr/include'
 
509
infodir='${prefix}/info'
 
510
mandir='${prefix}/man'
 
511
 
 
512
ac_prev=
 
513
for ac_option
 
514
do
 
515
  # If the previous option needs an argument, assign it.
 
516
  if test -n "$ac_prev"; then
 
517
    eval "$ac_prev=\$ac_option"
 
518
    ac_prev=
 
519
    continue
 
520
  fi
 
521
 
 
522
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
523
 
 
524
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
525
 
 
526
  case $ac_option in
 
527
 
 
528
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
529
    ac_prev=bindir ;;
 
530
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
531
    bindir=$ac_optarg ;;
 
532
 
 
533
  -build | --build | --buil | --bui | --bu)
 
534
    ac_prev=build_alias ;;
 
535
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
536
    build_alias=$ac_optarg ;;
 
537
 
 
538
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
539
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
540
    ac_prev=cache_file ;;
 
541
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
542
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
543
    cache_file=$ac_optarg ;;
 
544
 
 
545
  --config-cache | -C)
 
546
    cache_file=config.cache ;;
 
547
 
 
548
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
549
    ac_prev=datadir ;;
 
550
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
551
  | --da=*)
 
552
    datadir=$ac_optarg ;;
 
553
 
 
554
  -disable-* | --disable-*)
 
555
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
556
    # Reject names that are not valid shell variable names.
 
557
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
558
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
559
   { (exit 1); exit 1; }; }
 
560
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
561
    eval "enable_$ac_feature=no" ;;
 
562
 
 
563
  -enable-* | --enable-*)
 
564
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
565
    # Reject names that are not valid shell variable names.
 
566
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
567
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
568
   { (exit 1); exit 1; }; }
 
569
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
570
    case $ac_option in
 
571
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
572
      *) ac_optarg=yes ;;
 
573
    esac
 
574
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
575
 
 
576
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
577
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
578
  | --exec | --exe | --ex)
 
579
    ac_prev=exec_prefix ;;
 
580
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
581
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
582
  | --exec=* | --exe=* | --ex=*)
 
583
    exec_prefix=$ac_optarg ;;
 
584
 
 
585
  -gas | --gas | --ga | --g)
 
586
    # Obsolete; use --with-gas.
 
587
    with_gas=yes ;;
 
588
 
 
589
  -help | --help | --hel | --he | -h)
 
590
    ac_init_help=long ;;
 
591
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
592
    ac_init_help=recursive ;;
 
593
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
594
    ac_init_help=short ;;
 
595
 
 
596
  -host | --host | --hos | --ho)
 
597
    ac_prev=host_alias ;;
 
598
  -host=* | --host=* | --hos=* | --ho=*)
 
599
    host_alias=$ac_optarg ;;
 
600
 
 
601
  -includedir | --includedir | --includedi | --included | --include \
 
602
  | --includ | --inclu | --incl | --inc)
 
603
    ac_prev=includedir ;;
 
604
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
605
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
606
    includedir=$ac_optarg ;;
 
607
 
 
608
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
609
    ac_prev=infodir ;;
 
610
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
611
    infodir=$ac_optarg ;;
 
612
 
 
613
  -libdir | --libdir | --libdi | --libd)
 
614
    ac_prev=libdir ;;
 
615
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
616
    libdir=$ac_optarg ;;
 
617
 
 
618
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
619
  | --libexe | --libex | --libe)
 
620
    ac_prev=libexecdir ;;
 
621
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
622
  | --libexe=* | --libex=* | --libe=*)
 
623
    libexecdir=$ac_optarg ;;
 
624
 
 
625
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
626
  | --localstate | --localstat | --localsta | --localst \
 
627
  | --locals | --local | --loca | --loc | --lo)
 
628
    ac_prev=localstatedir ;;
 
629
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
630
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
631
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
632
    localstatedir=$ac_optarg ;;
 
633
 
 
634
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
635
    ac_prev=mandir ;;
 
636
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
637
    mandir=$ac_optarg ;;
 
638
 
 
639
  -nfp | --nfp | --nf)
 
640
    # Obsolete; use --without-fp.
 
641
    with_fp=no ;;
 
642
 
 
643
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
644
  | --no-cr | --no-c | -n)
 
645
    no_create=yes ;;
 
646
 
 
647
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
648
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
649
    no_recursion=yes ;;
 
650
 
 
651
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
652
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
653
  | --oldin | --oldi | --old | --ol | --o)
 
654
    ac_prev=oldincludedir ;;
 
655
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
656
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
657
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
658
    oldincludedir=$ac_optarg ;;
 
659
 
 
660
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
661
    ac_prev=prefix ;;
 
662
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
663
    prefix=$ac_optarg ;;
 
664
 
 
665
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
666
  | --program-pre | --program-pr | --program-p)
 
667
    ac_prev=program_prefix ;;
 
668
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
669
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
670
    program_prefix=$ac_optarg ;;
 
671
 
 
672
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
673
  | --program-suf | --program-su | --program-s)
 
674
    ac_prev=program_suffix ;;
 
675
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
676
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
677
    program_suffix=$ac_optarg ;;
 
678
 
 
679
  -program-transform-name | --program-transform-name \
 
680
  | --program-transform-nam | --program-transform-na \
 
681
  | --program-transform-n | --program-transform- \
 
682
  | --program-transform | --program-transfor \
 
683
  | --program-transfo | --program-transf \
 
684
  | --program-trans | --program-tran \
 
685
  | --progr-tra | --program-tr | --program-t)
 
686
    ac_prev=program_transform_name ;;
 
687
  -program-transform-name=* | --program-transform-name=* \
 
688
  | --program-transform-nam=* | --program-transform-na=* \
 
689
  | --program-transform-n=* | --program-transform-=* \
 
690
  | --program-transform=* | --program-transfor=* \
 
691
  | --program-transfo=* | --program-transf=* \
 
692
  | --program-trans=* | --program-tran=* \
 
693
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
694
    program_transform_name=$ac_optarg ;;
 
695
 
 
696
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
697
  | -silent | --silent | --silen | --sile | --sil)
 
698
    silent=yes ;;
 
699
 
 
700
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
701
    ac_prev=sbindir ;;
 
702
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
703
  | --sbi=* | --sb=*)
 
704
    sbindir=$ac_optarg ;;
 
705
 
 
706
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
707
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
708
  | --sharedst | --shareds | --shared | --share | --shar \
 
709
  | --sha | --sh)
 
710
    ac_prev=sharedstatedir ;;
 
711
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
712
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
713
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
714
  | --sha=* | --sh=*)
 
715
    sharedstatedir=$ac_optarg ;;
 
716
 
 
717
  -site | --site | --sit)
 
718
    ac_prev=site ;;
 
719
  -site=* | --site=* | --sit=*)
 
720
    site=$ac_optarg ;;
 
721
 
 
722
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
723
    ac_prev=srcdir ;;
 
724
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
725
    srcdir=$ac_optarg ;;
 
726
 
 
727
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
728
  | --syscon | --sysco | --sysc | --sys | --sy)
 
729
    ac_prev=sysconfdir ;;
 
730
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
731
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
732
    sysconfdir=$ac_optarg ;;
 
733
 
 
734
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
735
    ac_prev=target_alias ;;
 
736
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
737
    target_alias=$ac_optarg ;;
 
738
 
 
739
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
740
    verbose=yes ;;
 
741
 
 
742
  -version | --version | --versio | --versi | --vers | -V)
 
743
    ac_init_version=: ;;
 
744
 
 
745
  -with-* | --with-*)
 
746
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
747
    # Reject names that are not valid shell variable names.
 
748
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
749
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
750
   { (exit 1); exit 1; }; }
 
751
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
752
    case $ac_option in
 
753
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
754
      *) ac_optarg=yes ;;
 
755
    esac
 
756
    eval "with_$ac_package='$ac_optarg'" ;;
 
757
 
 
758
  -without-* | --without-*)
 
759
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
760
    # Reject names that are not valid shell variable names.
 
761
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
762
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
763
   { (exit 1); exit 1; }; }
 
764
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
765
    eval "with_$ac_package=no" ;;
 
766
 
 
767
  --x)
 
768
    # Obsolete; use --with-x.
 
769
    with_x=yes ;;
 
770
 
 
771
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
772
  | --x-incl | --x-inc | --x-in | --x-i)
 
773
    ac_prev=x_includes ;;
 
774
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
775
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
776
    x_includes=$ac_optarg ;;
 
777
 
 
778
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
779
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
780
    ac_prev=x_libraries ;;
 
781
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
782
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
783
    x_libraries=$ac_optarg ;;
 
784
 
 
785
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
786
Try \`$0 --help' for more information." >&2
 
787
   { (exit 1); exit 1; }; }
 
788
    ;;
 
789
 
 
790
  *=*)
 
791
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
792
    # Reject names that are not valid shell variable names.
 
793
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
794
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
795
   { (exit 1); exit 1; }; }
 
796
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
797
    eval "$ac_envvar='$ac_optarg'"
 
798
    export $ac_envvar ;;
 
799
 
 
800
  *)
 
801
    # FIXME: should be removed in autoconf 3.0.
 
802
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
803
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
804
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
805
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
806
    ;;
 
807
 
 
808
  esac
 
809
done
 
810
 
 
811
if test -n "$ac_prev"; then
 
812
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
813
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
814
   { (exit 1); exit 1; }; }
 
815
fi
 
816
 
 
817
# Be sure to have absolute paths.
 
818
for ac_var in exec_prefix prefix
 
819
do
 
820
  eval ac_val=$`echo $ac_var`
 
821
  case $ac_val in
 
822
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
823
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
824
   { (exit 1); exit 1; }; };;
 
825
  esac
 
826
done
 
827
 
 
828
# Be sure to have absolute paths.
 
829
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
830
              localstatedir libdir includedir oldincludedir infodir mandir
 
831
do
 
832
  eval ac_val=$`echo $ac_var`
 
833
  case $ac_val in
 
834
    [\\/$]* | ?:[\\/]* ) ;;
 
835
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
836
   { (exit 1); exit 1; }; };;
 
837
  esac
 
838
done
 
839
 
 
840
# There might be people who depend on the old broken behavior: `$host'
 
841
# used to hold the argument of --host etc.
 
842
# FIXME: To remove some day.
 
843
build=$build_alias
 
844
host=$host_alias
 
845
target=$target_alias
 
846
 
 
847
# FIXME: To remove some day.
 
848
if test "x$host_alias" != x; then
 
849
  if test "x$build_alias" = x; then
 
850
    cross_compiling=maybe
 
851
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
852
    If a cross compiler is detected then cross compile mode will be used." >&2
 
853
  elif test "x$build_alias" != "x$host_alias"; then
 
854
    cross_compiling=yes
 
855
  fi
 
856
fi
 
857
 
 
858
ac_tool_prefix=
 
859
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
860
 
 
861
test "$silent" = yes && exec 6>/dev/null
 
862
 
 
863
 
 
864
# Find the source files, if location was not specified.
 
865
if test -z "$srcdir"; then
 
866
  ac_srcdir_defaulted=yes
 
867
  # Try the directory containing this script, then its parent.
 
868
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
869
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
870
         X"$0" : 'X\(//\)[^/]' \| \
 
871
         X"$0" : 'X\(//\)$' \| \
 
872
         X"$0" : 'X\(/\)' \| \
 
873
         .     : '\(.\)' 2>/dev/null ||
 
874
echo X"$0" |
 
875
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
876
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
877
          /^X\(\/\/\)$/{ s//\1/; q; }
 
878
          /^X\(\/\).*/{ s//\1/; q; }
 
879
          s/.*/./; q'`
 
880
  srcdir=$ac_confdir
 
881
  if test ! -r $srcdir/$ac_unique_file; then
 
882
    srcdir=..
 
883
  fi
 
884
else
 
885
  ac_srcdir_defaulted=no
 
886
fi
 
887
if test ! -r $srcdir/$ac_unique_file; then
 
888
  if test "$ac_srcdir_defaulted" = yes; then
 
889
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
890
   { (exit 1); exit 1; }; }
 
891
  else
 
892
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
893
   { (exit 1); exit 1; }; }
 
894
  fi
 
895
fi
 
896
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
897
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
898
   { (exit 1); exit 1; }; }
 
899
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
900
ac_env_build_alias_set=${build_alias+set}
 
901
ac_env_build_alias_value=$build_alias
 
902
ac_cv_env_build_alias_set=${build_alias+set}
 
903
ac_cv_env_build_alias_value=$build_alias
 
904
ac_env_host_alias_set=${host_alias+set}
 
905
ac_env_host_alias_value=$host_alias
 
906
ac_cv_env_host_alias_set=${host_alias+set}
 
907
ac_cv_env_host_alias_value=$host_alias
 
908
ac_env_target_alias_set=${target_alias+set}
 
909
ac_env_target_alias_value=$target_alias
 
910
ac_cv_env_target_alias_set=${target_alias+set}
 
911
ac_cv_env_target_alias_value=$target_alias
 
912
ac_env_CC_set=${CC+set}
 
913
ac_env_CC_value=$CC
 
914
ac_cv_env_CC_set=${CC+set}
 
915
ac_cv_env_CC_value=$CC
 
916
ac_env_CFLAGS_set=${CFLAGS+set}
 
917
ac_env_CFLAGS_value=$CFLAGS
 
918
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
919
ac_cv_env_CFLAGS_value=$CFLAGS
 
920
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
921
ac_env_LDFLAGS_value=$LDFLAGS
 
922
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
923
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
924
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
925
ac_env_CPPFLAGS_value=$CPPFLAGS
 
926
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
927
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
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_CPP_set=${CPP+set}
 
937
ac_env_CPP_value=$CPP
 
938
ac_cv_env_CPP_set=${CPP+set}
 
939
ac_cv_env_CPP_value=$CPP
 
940
 
 
941
#
 
942
# Report the --help message.
 
943
#
 
944
if test "$ac_init_help" = "long"; then
 
945
  # Omit some internal or obsolete options to make the list less imposing.
 
946
  # This message is too long to be a string in the A/UX 3.1 sh.
 
947
  cat <<_ACEOF
 
948
\`configure' configures this package to adapt to many kinds of systems.
 
949
 
 
950
Usage: $0 [OPTION]... [VAR=VALUE]...
 
951
 
 
952
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
953
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
954
 
 
955
Defaults for the options are specified in brackets.
 
956
 
 
957
Configuration:
 
958
  -h, --help              display this help and exit
 
959
      --help=short        display options specific to this package
 
960
      --help=recursive    display the short help of all the included packages
 
961
  -V, --version           display version information and exit
 
962
  -q, --quiet, --silent   do not print \`checking...' messages
 
963
      --cache-file=FILE   cache test results in FILE [disabled]
 
964
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
965
  -n, --no-create         do not create output files
 
966
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
967
 
 
968
_ACEOF
 
969
 
 
970
  cat <<_ACEOF
 
971
Installation directories:
 
972
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
973
                          [$ac_default_prefix]
 
974
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
975
                          [PREFIX]
 
976
 
 
977
By default, \`make install' will install all the files in
 
978
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
979
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
980
for instance \`--prefix=\$HOME'.
 
981
 
 
982
For better control, use the options below.
 
983
 
 
984
Fine tuning of the installation directories:
 
985
  --bindir=DIR           user executables [EPREFIX/bin]
 
986
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
987
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
988
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
989
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
990
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
991
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
992
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
993
  --includedir=DIR       C header files [PREFIX/include]
 
994
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
995
  --infodir=DIR          info documentation [PREFIX/info]
 
996
  --mandir=DIR           man documentation [PREFIX/man]
 
997
_ACEOF
 
998
 
 
999
  cat <<\_ACEOF
 
1000
 
 
1001
Program names:
 
1002
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1003
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1004
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1005
 
 
1006
System types:
 
1007
  --build=BUILD     configure for building on BUILD [guessed]
 
1008
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1009
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1010
_ACEOF
 
1011
fi
 
1012
 
 
1013
if test -n "$ac_init_help"; then
 
1014
 
 
1015
  cat <<\_ACEOF
 
1016
 
 
1017
Optional Features:
 
1018
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1019
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1020
  --disable-dependency-tracking Speeds up one-time builds
 
1021
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1022
  --enable-shared=PKGS  build shared libraries default=yes
 
1023
  --enable-static=PKGS  build static libraries default=yes
 
1024
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
1025
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1026
 
 
1027
Optional Packages:
 
1028
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1029
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1030
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1031
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
1032
 
 
1033
Some influential environment variables:
 
1034
  CC          C compiler command
 
1035
  CFLAGS      C compiler flags
 
1036
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1037
              nonstandard directory <lib dir>
 
1038
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1039
              headers in a nonstandard directory <include dir>
 
1040
  CXX         C++ compiler command
 
1041
  CXXFLAGS    C++ compiler flags
 
1042
  CPP         C preprocessor
 
1043
 
 
1044
Use these variables to override the choices made by `configure' or to help
 
1045
it to find libraries and programs with nonstandard names/locations.
 
1046
 
 
1047
_ACEOF
 
1048
fi
 
1049
 
 
1050
if test "$ac_init_help" = "recursive"; then
 
1051
  # If there are subdirs, report their specific --help.
 
1052
  ac_popdir=`pwd`
 
1053
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1054
    test -d $ac_dir || continue
 
1055
    ac_builddir=.
 
1056
 
 
1057
if test "$ac_dir" != .; then
 
1058
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1059
  # A "../" for each directory in $ac_dir_suffix.
 
1060
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1061
else
 
1062
  ac_dir_suffix= ac_top_builddir=
 
1063
fi
 
1064
 
 
1065
case $srcdir in
 
1066
  .)  # No --srcdir option.  We are building in place.
 
1067
    ac_srcdir=.
 
1068
    if test -z "$ac_top_builddir"; then
 
1069
       ac_top_srcdir=.
 
1070
    else
 
1071
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1072
    fi ;;
 
1073
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1074
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1075
    ac_top_srcdir=$srcdir ;;
 
1076
  *) # Relative path.
 
1077
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1078
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1079
esac
 
1080
 
 
1081
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1082
# the directories may not exist.
 
1083
case `pwd` in
 
1084
.) ac_abs_builddir="$ac_dir";;
 
1085
*)
 
1086
  case "$ac_dir" in
 
1087
  .) ac_abs_builddir=`pwd`;;
 
1088
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1089
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1090
  esac;;
 
1091
esac
 
1092
case $ac_abs_builddir in
 
1093
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1094
*)
 
1095
  case ${ac_top_builddir}. in
 
1096
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1097
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1098
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1099
  esac;;
 
1100
esac
 
1101
case $ac_abs_builddir in
 
1102
.) ac_abs_srcdir=$ac_srcdir;;
 
1103
*)
 
1104
  case $ac_srcdir in
 
1105
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1106
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1107
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1108
  esac;;
 
1109
esac
 
1110
case $ac_abs_builddir in
 
1111
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1112
*)
 
1113
  case $ac_top_srcdir in
 
1114
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1115
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1116
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1117
  esac;;
 
1118
esac
 
1119
 
 
1120
    cd $ac_dir
 
1121
    # Check for guested configure; otherwise get Cygnus style configure.
 
1122
    if test -f $ac_srcdir/configure.gnu; then
 
1123
      echo
 
1124
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1125
    elif test -f $ac_srcdir/configure; then
 
1126
      echo
 
1127
      $SHELL $ac_srcdir/configure  --help=recursive
 
1128
    elif test -f $ac_srcdir/configure.ac ||
 
1129
           test -f $ac_srcdir/configure.in; then
 
1130
      echo
 
1131
      $ac_configure --help
 
1132
    else
 
1133
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1134
    fi
 
1135
    cd $ac_popdir
 
1136
  done
 
1137
fi
 
1138
 
 
1139
test -n "$ac_init_help" && exit 0
 
1140
if $ac_init_version; then
 
1141
  cat <<\_ACEOF
 
1142
 
 
1143
Copyright (C) 2003 Free Software Foundation, Inc.
 
1144
This configure script is free software; the Free Software Foundation
 
1145
gives unlimited permission to copy, distribute and modify it.
 
1146
_ACEOF
 
1147
  exit 0
 
1148
fi
 
1149
exec 5>config.log
 
1150
cat >&5 <<_ACEOF
 
1151
This file contains any messages produced by compilers while
 
1152
running configure, to aid debugging if configure makes a mistake.
 
1153
 
 
1154
It was created by $as_me, which was
 
1155
generated by GNU Autoconf 2.59.  Invocation command line was
 
1156
 
 
1157
  $ $0 $@
 
1158
 
 
1159
_ACEOF
 
1160
{
 
1161
cat <<_ASUNAME
 
1162
## --------- ##
 
1163
## Platform. ##
 
1164
## --------- ##
 
1165
 
 
1166
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1167
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1168
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1169
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1170
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1171
 
 
1172
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1173
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1174
 
 
1175
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1176
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1177
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1178
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1179
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1180
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1181
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1182
 
 
1183
_ASUNAME
 
1184
 
 
1185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1186
for as_dir in $PATH
 
1187
do
 
1188
  IFS=$as_save_IFS
 
1189
  test -z "$as_dir" && as_dir=.
 
1190
  echo "PATH: $as_dir"
 
1191
done
 
1192
 
 
1193
} >&5
 
1194
 
 
1195
cat >&5 <<_ACEOF
 
1196
 
 
1197
 
 
1198
## ----------- ##
 
1199
## Core tests. ##
 
1200
## ----------- ##
 
1201
 
 
1202
_ACEOF
 
1203
 
 
1204
 
 
1205
# Keep a trace of the command line.
 
1206
# Strip out --no-create and --no-recursion so they do not pile up.
 
1207
# Strip out --silent because we don't want to record it for future runs.
 
1208
# Also quote any args containing shell meta-characters.
 
1209
# Make two passes to allow for proper duplicate-argument suppression.
 
1210
ac_configure_args=
 
1211
ac_configure_args0=
 
1212
ac_configure_args1=
 
1213
ac_sep=
 
1214
ac_must_keep_next=false
 
1215
for ac_pass in 1 2
 
1216
do
 
1217
  for ac_arg
 
1218
  do
 
1219
    case $ac_arg in
 
1220
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1221
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1222
    | -silent | --silent | --silen | --sile | --sil)
 
1223
      continue ;;
 
1224
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1225
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1226
    esac
 
1227
    case $ac_pass in
 
1228
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1229
    2)
 
1230
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1231
      if test $ac_must_keep_next = true; then
 
1232
        ac_must_keep_next=false # Got value, back to normal.
 
1233
      else
 
1234
        case $ac_arg in
 
1235
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1236
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1237
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1238
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1239
            case "$ac_configure_args0 " in
 
1240
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1241
            esac
 
1242
            ;;
 
1243
          -* ) ac_must_keep_next=true ;;
 
1244
        esac
 
1245
      fi
 
1246
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1247
      # Get rid of the leading space.
 
1248
      ac_sep=" "
 
1249
      ;;
 
1250
    esac
 
1251
  done
 
1252
done
 
1253
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1254
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1255
 
 
1256
# When interrupted or exit'd, cleanup temporary files, and complete
 
1257
# config.log.  We remove comments because anyway the quotes in there
 
1258
# would cause problems or look ugly.
 
1259
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1260
# such as our DU 5.0 friend, will then `close' the trap.
 
1261
trap 'exit_status=$?
 
1262
  # Save into config.log some information that might help in debugging.
 
1263
  {
 
1264
    echo
 
1265
 
 
1266
    cat <<\_ASBOX
 
1267
## ---------------- ##
 
1268
## Cache variables. ##
 
1269
## ---------------- ##
 
1270
_ASBOX
 
1271
    echo
 
1272
    # The following way of writing the cache mishandles newlines in values,
 
1273
{
 
1274
  (set) 2>&1 |
 
1275
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1276
    *ac_space=\ *)
 
1277
      sed -n \
 
1278
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1279
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1280
      ;;
 
1281
    *)
 
1282
      sed -n \
 
1283
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1284
      ;;
 
1285
    esac;
 
1286
}
 
1287
    echo
 
1288
 
 
1289
    cat <<\_ASBOX
 
1290
## ----------------- ##
 
1291
## Output variables. ##
 
1292
## ----------------- ##
 
1293
_ASBOX
 
1294
    echo
 
1295
    for ac_var in $ac_subst_vars
 
1296
    do
 
1297
      eval ac_val=$`echo $ac_var`
 
1298
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1299
    done | sort
 
1300
    echo
 
1301
 
 
1302
    if test -n "$ac_subst_files"; then
 
1303
      cat <<\_ASBOX
 
1304
## ------------- ##
 
1305
## Output files. ##
 
1306
## ------------- ##
 
1307
_ASBOX
 
1308
      echo
 
1309
      for ac_var in $ac_subst_files
 
1310
      do
 
1311
        eval ac_val=$`echo $ac_var`
 
1312
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1313
      done | sort
 
1314
      echo
 
1315
    fi
 
1316
 
 
1317
    if test -s confdefs.h; then
 
1318
      cat <<\_ASBOX
 
1319
## ----------- ##
 
1320
## confdefs.h. ##
 
1321
## ----------- ##
 
1322
_ASBOX
 
1323
      echo
 
1324
      sed "/^$/d" confdefs.h | sort
 
1325
      echo
 
1326
    fi
 
1327
    test "$ac_signal" != 0 &&
 
1328
      echo "$as_me: caught signal $ac_signal"
 
1329
    echo "$as_me: exit $exit_status"
 
1330
  } >&5
 
1331
  rm -f core *.core &&
 
1332
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1333
    exit $exit_status
 
1334
     ' 0
 
1335
for ac_signal in 1 2 13 15; do
 
1336
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1337
done
 
1338
ac_signal=0
 
1339
 
 
1340
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1341
rm -rf conftest* confdefs.h
 
1342
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1343
echo >confdefs.h
 
1344
 
 
1345
# Predefined preprocessor variables.
 
1346
 
 
1347
cat >>confdefs.h <<_ACEOF
 
1348
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1349
_ACEOF
 
1350
 
 
1351
 
 
1352
cat >>confdefs.h <<_ACEOF
 
1353
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1354
_ACEOF
 
1355
 
 
1356
 
 
1357
cat >>confdefs.h <<_ACEOF
 
1358
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1359
_ACEOF
 
1360
 
 
1361
 
 
1362
cat >>confdefs.h <<_ACEOF
 
1363
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1364
_ACEOF
 
1365
 
 
1366
 
 
1367
cat >>confdefs.h <<_ACEOF
 
1368
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1369
_ACEOF
 
1370
 
 
1371
 
 
1372
# Let the site file select an alternate cache file if it wants to.
 
1373
# Prefer explicitly selected file to automatically selected ones.
 
1374
if test -z "$CONFIG_SITE"; then
 
1375
  if test "x$prefix" != xNONE; then
 
1376
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1377
  else
 
1378
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1379
  fi
 
1380
fi
 
1381
for ac_site_file in $CONFIG_SITE; do
 
1382
  if test -r "$ac_site_file"; then
 
1383
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1384
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1385
    sed 's/^/| /' "$ac_site_file" >&5
 
1386
    . "$ac_site_file"
 
1387
  fi
 
1388
done
 
1389
 
 
1390
if test -r "$cache_file"; then
 
1391
  # Some versions of bash will fail to source /dev/null (special
 
1392
  # files actually), so we avoid doing that.
 
1393
  if test -f "$cache_file"; then
 
1394
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1395
echo "$as_me: loading cache $cache_file" >&6;}
 
1396
    case $cache_file in
 
1397
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1398
      *)                      . ./$cache_file;;
 
1399
    esac
 
1400
  fi
 
1401
else
 
1402
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1403
echo "$as_me: creating cache $cache_file" >&6;}
 
1404
  >$cache_file
 
1405
fi
 
1406
 
 
1407
# Check that the precious variables saved in the cache have kept the same
 
1408
# value.
 
1409
ac_cache_corrupted=false
 
1410
for ac_var in `(set) 2>&1 |
 
1411
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1412
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1413
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1414
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1415
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1416
  case $ac_old_set,$ac_new_set in
 
1417
    set,)
 
1418
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1419
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1420
      ac_cache_corrupted=: ;;
 
1421
    ,set)
 
1422
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1423
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1424
      ac_cache_corrupted=: ;;
 
1425
    ,);;
 
1426
    *)
 
1427
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1428
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1429
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1430
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1431
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1432
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1433
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1434
        ac_cache_corrupted=:
 
1435
      fi;;
 
1436
  esac
 
1437
  # Pass precious variables to config.status.
 
1438
  if test "$ac_new_set" = set; then
 
1439
    case $ac_new_val in
 
1440
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1441
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1442
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1443
    esac
 
1444
    case " $ac_configure_args " in
 
1445
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1446
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1447
    esac
 
1448
  fi
 
1449
done
 
1450
if $ac_cache_corrupted; then
 
1451
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1452
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1453
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1454
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1455
   { (exit 1); exit 1; }; }
 
1456
fi
 
1457
 
 
1458
ac_ext=c
 
1459
ac_cpp='$CPP $CPPFLAGS'
 
1460
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1461
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1463
 
 
1464
 
 
1465
 
 
1466
 
 
1467
 
 
1468
 
 
1469
 
 
1470
 
 
1471
 
 
1472
 
 
1473
 
 
1474
 
 
1475
 
 
1476
 
 
1477
 
 
1478
 
 
1479
 
 
1480
 
 
1481
 
 
1482
 
 
1483
 
 
1484
ac_aux_dir=
 
1485
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1486
  if test -f $ac_dir/install-sh; then
 
1487
    ac_aux_dir=$ac_dir
 
1488
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1489
    break
 
1490
  elif test -f $ac_dir/install.sh; then
 
1491
    ac_aux_dir=$ac_dir
 
1492
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1493
    break
 
1494
  elif test -f $ac_dir/shtool; then
 
1495
    ac_aux_dir=$ac_dir
 
1496
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1497
    break
 
1498
  fi
 
1499
done
 
1500
if test -z "$ac_aux_dir"; then
 
1501
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1502
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1503
   { (exit 1); exit 1; }; }
 
1504
fi
 
1505
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1506
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1507
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1508
 
 
1509
# Make sure we can run config.sub.
 
1510
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1511
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1512
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1513
   { (exit 1); exit 1; }; }
 
1514
 
 
1515
echo "$as_me:$LINENO: checking build system type" >&5
 
1516
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1517
if test "${ac_cv_build+set}" = set; then
 
1518
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1519
else
 
1520
  ac_cv_build_alias=$build_alias
 
1521
test -z "$ac_cv_build_alias" &&
 
1522
  ac_cv_build_alias=`$ac_config_guess`
 
1523
test -z "$ac_cv_build_alias" &&
 
1524
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1525
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1526
   { (exit 1); exit 1; }; }
 
1527
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1528
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1529
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1530
   { (exit 1); exit 1; }; }
 
1531
 
 
1532
fi
 
1533
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1534
echo "${ECHO_T}$ac_cv_build" >&6
 
1535
build=$ac_cv_build
 
1536
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1537
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1538
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1539
 
 
1540
 
 
1541
echo "$as_me:$LINENO: checking host system type" >&5
 
1542
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1543
if test "${ac_cv_host+set}" = set; then
 
1544
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1545
else
 
1546
  ac_cv_host_alias=$host_alias
 
1547
test -z "$ac_cv_host_alias" &&
 
1548
  ac_cv_host_alias=$ac_cv_build_alias
 
1549
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1550
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1551
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1552
   { (exit 1); exit 1; }; }
 
1553
 
 
1554
fi
 
1555
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1556
echo "${ECHO_T}$ac_cv_host" >&6
 
1557
host=$ac_cv_host
 
1558
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1559
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1560
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1561
 
 
1562
 
 
1563
echo "$as_me:$LINENO: checking target system type" >&5
 
1564
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1565
if test "${ac_cv_target+set}" = set; then
 
1566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1567
else
 
1568
  ac_cv_target_alias=$target_alias
 
1569
test "x$ac_cv_target_alias" = "x" &&
 
1570
  ac_cv_target_alias=$ac_cv_host_alias
 
1571
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1572
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1573
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1574
   { (exit 1); exit 1; }; }
 
1575
 
 
1576
fi
 
1577
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1578
echo "${ECHO_T}$ac_cv_target" >&6
 
1579
target=$ac_cv_target
 
1580
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1581
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1582
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1583
 
 
1584
 
 
1585
# The aliases save the names the user supplied, while $host etc.
 
1586
# will get canonicalized.
 
1587
test -n "$target_alias" &&
 
1588
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1589
    NONENONEs,x,x, &&
 
1590
  program_prefix=${target_alias}-
 
1591
 
 
1592
am__api_version="1.7a"
 
1593
# Find a good install program.  We prefer a C program (faster),
 
1594
# so one script is as good as another.  But avoid the broken or
 
1595
# incompatible versions:
 
1596
# SysV /etc/install, /usr/sbin/install
 
1597
# SunOS /usr/etc/install
 
1598
# IRIX /sbin/install
 
1599
# AIX /bin/install
 
1600
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1601
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1602
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1603
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1604
# OS/2's system install, which has a completely different semantic
 
1605
# ./install, which can be erroneously created by make from ./install.sh.
 
1606
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1607
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1608
if test -z "$INSTALL"; then
 
1609
if test "${ac_cv_path_install+set}" = set; then
 
1610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1611
else
 
1612
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1613
for as_dir in $PATH
 
1614
do
 
1615
  IFS=$as_save_IFS
 
1616
  test -z "$as_dir" && as_dir=.
 
1617
  # Account for people who put trailing slashes in PATH elements.
 
1618
case $as_dir/ in
 
1619
  ./ | .// | /cC/* | \
 
1620
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1621
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1622
  /usr/ucb/* ) ;;
 
1623
  *)
 
1624
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1625
    # Don't use installbsd from OSF since it installs stuff as root
 
1626
    # by default.
 
1627
    for ac_prog in ginstall scoinst install; do
 
1628
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1629
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1630
          if test $ac_prog = install &&
 
1631
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1632
            # AIX install.  It has an incompatible calling convention.
 
1633
            :
 
1634
          elif test $ac_prog = install &&
 
1635
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1636
            # program-specific install script used by HP pwplus--don't use.
 
1637
            :
 
1638
          else
 
1639
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1640
            break 3
 
1641
          fi
 
1642
        fi
 
1643
      done
 
1644
    done
 
1645
    ;;
 
1646
esac
 
1647
done
 
1648
 
 
1649
 
 
1650
fi
 
1651
  if test "${ac_cv_path_install+set}" = set; then
 
1652
    INSTALL=$ac_cv_path_install
 
1653
  else
 
1654
    # As a last resort, use the slow shell script.  We don't cache a
 
1655
    # path for INSTALL within a source directory, because that will
 
1656
    # break other packages using the cache if that directory is
 
1657
    # removed, or if the path is relative.
 
1658
    INSTALL=$ac_install_sh
 
1659
  fi
 
1660
fi
 
1661
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1662
echo "${ECHO_T}$INSTALL" >&6
 
1663
 
 
1664
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1665
# It thinks the first close brace ends the variable substitution.
 
1666
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1667
 
 
1668
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1669
 
 
1670
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1671
 
 
1672
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1673
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1674
# Just in case
 
1675
sleep 1
 
1676
echo timestamp > conftest.file
 
1677
# Do `set' in a subshell so we don't clobber the current shell's
 
1678
# arguments.  Must try -L first in case configure is actually a
 
1679
# symlink; some systems play weird games with the mod time of symlinks
 
1680
# (eg FreeBSD returns the mod time of the symlink's containing
 
1681
# directory).
 
1682
if (
 
1683
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1684
   if test "$*" = "X"; then
 
1685
      # -L didn't work.
 
1686
      set X `ls -t $srcdir/configure conftest.file`
 
1687
   fi
 
1688
   rm -f conftest.file
 
1689
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1690
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1691
 
 
1692
      # If neither matched, then we have a broken ls.  This can happen
 
1693
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1694
      # broken ls alias from the environment.  This has actually
 
1695
      # happened.  Such a system could not be considered "sane".
 
1696
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1697
alias in your environment" >&5
 
1698
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1699
alias in your environment" >&2;}
 
1700
   { (exit 1); exit 1; }; }
 
1701
   fi
 
1702
 
 
1703
   test "$2" = conftest.file
 
1704
   )
 
1705
then
 
1706
   # Ok.
 
1707
   :
 
1708
else
 
1709
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1710
Check your system clock" >&5
 
1711
echo "$as_me: error: newly created file is older than distributed files!
 
1712
Check your system clock" >&2;}
 
1713
   { (exit 1); exit 1; }; }
 
1714
fi
 
1715
echo "$as_me:$LINENO: result: yes" >&5
 
1716
echo "${ECHO_T}yes" >&6
 
1717
test "$program_prefix" != NONE &&
 
1718
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1719
# Use a double $ so make ignores it.
 
1720
test "$program_suffix" != NONE &&
 
1721
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1722
# Double any \ or $.  echo might interpret backslashes.
 
1723
# By default was `s,x,x', remove it if useless.
 
1724
cat <<\_ACEOF >conftest.sed
 
1725
s/[\\$]/&&/g;s/;s,x,x,$//
 
1726
_ACEOF
 
1727
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1728
rm conftest.sed
 
1729
 
 
1730
 
 
1731
# expand $ac_aux_dir to an absolute path
 
1732
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1733
 
 
1734
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1735
# Use eval to expand $SHELL
 
1736
if eval "$MISSING --run true"; then
 
1737
  am_missing_run="$MISSING --run "
 
1738
else
 
1739
  am_missing_run=
 
1740
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1741
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1742
fi
 
1743
 
 
1744
for ac_prog in gawk mawk nawk awk
 
1745
do
 
1746
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1747
set dummy $ac_prog; ac_word=$2
 
1748
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1750
if test "${ac_cv_prog_AWK+set}" = set; then
 
1751
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1752
else
 
1753
  if test -n "$AWK"; then
 
1754
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1755
else
 
1756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1757
for as_dir in $PATH
 
1758
do
 
1759
  IFS=$as_save_IFS
 
1760
  test -z "$as_dir" && as_dir=.
 
1761
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1762
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1763
    ac_cv_prog_AWK="$ac_prog"
 
1764
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1765
    break 2
 
1766
  fi
 
1767
done
 
1768
done
 
1769
 
 
1770
fi
 
1771
fi
 
1772
AWK=$ac_cv_prog_AWK
 
1773
if test -n "$AWK"; then
 
1774
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1775
echo "${ECHO_T}$AWK" >&6
 
1776
else
 
1777
  echo "$as_me:$LINENO: result: no" >&5
 
1778
echo "${ECHO_T}no" >&6
 
1779
fi
 
1780
 
 
1781
  test -n "$AWK" && break
 
1782
done
 
1783
 
 
1784
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1785
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1786
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1787
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1788
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1789
else
 
1790
  cat >conftest.make <<\_ACEOF
 
1791
all:
 
1792
        @echo 'ac_maketemp="$(MAKE)"'
 
1793
_ACEOF
 
1794
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1795
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1796
if test -n "$ac_maketemp"; then
 
1797
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1798
else
 
1799
  eval ac_cv_prog_make_${ac_make}_set=no
 
1800
fi
 
1801
rm -f conftest.make
 
1802
fi
 
1803
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1804
  echo "$as_me:$LINENO: result: yes" >&5
 
1805
echo "${ECHO_T}yes" >&6
 
1806
  SET_MAKE=
 
1807
else
 
1808
  echo "$as_me:$LINENO: result: no" >&5
 
1809
echo "${ECHO_T}no" >&6
 
1810
  SET_MAKE="MAKE=${MAKE-make}"
 
1811
fi
 
1812
 
 
1813
rm -rf .tst 2>/dev/null
 
1814
mkdir .tst 2>/dev/null
 
1815
if test -d .tst; then
 
1816
  am__leading_dot=.
 
1817
else
 
1818
  am__leading_dot=_
 
1819
fi
 
1820
rmdir .tst 2>/dev/null
 
1821
 
 
1822
 # test to see if srcdir already configured
 
1823
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1824
   test -f $srcdir/config.status; then
 
1825
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1826
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1827
   { (exit 1); exit 1; }; }
 
1828
fi
 
1829
 
 
1830
# test whether we have cygpath
 
1831
if test -z "$CYGPATH_W"; then
 
1832
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1833
    CYGPATH_W='cygpath -w'
 
1834
  else
 
1835
    CYGPATH_W=echo
 
1836
  fi
 
1837
fi
 
1838
 
 
1839
 
 
1840
# Define the identity of the package.
 
1841
 PACKAGE=mathhelper
 
1842
 VERSION=1.0
 
1843
 
 
1844
 
 
1845
cat >>confdefs.h <<_ACEOF
 
1846
#define PACKAGE "$PACKAGE"
 
1847
_ACEOF
 
1848
 
 
1849
 
 
1850
cat >>confdefs.h <<_ACEOF
 
1851
#define VERSION "$VERSION"
 
1852
_ACEOF
 
1853
 
 
1854
# Some tools Automake needs.
 
1855
 
 
1856
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1857
 
 
1858
 
 
1859
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1860
 
 
1861
 
 
1862
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1863
 
 
1864
 
 
1865
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1866
 
 
1867
 
 
1868
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1869
 
 
1870
 
 
1871
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1872
 
 
1873
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1874
 
 
1875
# Installed binaries are usually stripped using `strip' when the user
 
1876
# run `make install-strip'.  However `strip' might not be the right
 
1877
# tool to use in cross-compilation environments, therefore Automake
 
1878
# will honor the `STRIP' environment variable to overrule this program.
 
1879
if test "$cross_compiling" != no; then
 
1880
  if test -n "$ac_tool_prefix"; then
 
1881
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1882
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1883
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1884
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1885
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1886
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1887
else
 
1888
  if test -n "$STRIP"; then
 
1889
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1890
else
 
1891
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1892
for as_dir in $PATH
 
1893
do
 
1894
  IFS=$as_save_IFS
 
1895
  test -z "$as_dir" && as_dir=.
 
1896
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1897
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1898
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1899
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1900
    break 2
 
1901
  fi
 
1902
done
 
1903
done
 
1904
 
 
1905
fi
 
1906
fi
 
1907
STRIP=$ac_cv_prog_STRIP
 
1908
if test -n "$STRIP"; then
 
1909
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1910
echo "${ECHO_T}$STRIP" >&6
 
1911
else
 
1912
  echo "$as_me:$LINENO: result: no" >&5
 
1913
echo "${ECHO_T}no" >&6
 
1914
fi
 
1915
 
 
1916
fi
 
1917
if test -z "$ac_cv_prog_STRIP"; then
 
1918
  ac_ct_STRIP=$STRIP
 
1919
  # Extract the first word of "strip", so it can be a program name with args.
 
1920
set dummy strip; ac_word=$2
 
1921
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1922
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1923
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1924
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1925
else
 
1926
  if test -n "$ac_ct_STRIP"; then
 
1927
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1928
else
 
1929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1930
for as_dir in $PATH
 
1931
do
 
1932
  IFS=$as_save_IFS
 
1933
  test -z "$as_dir" && as_dir=.
 
1934
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1935
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1936
    ac_cv_prog_ac_ct_STRIP="strip"
 
1937
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1938
    break 2
 
1939
  fi
 
1940
done
 
1941
done
 
1942
 
 
1943
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1944
fi
 
1945
fi
 
1946
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1947
if test -n "$ac_ct_STRIP"; then
 
1948
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1949
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1950
else
 
1951
  echo "$as_me:$LINENO: result: no" >&5
 
1952
echo "${ECHO_T}no" >&6
 
1953
fi
 
1954
 
 
1955
  STRIP=$ac_ct_STRIP
 
1956
else
 
1957
  STRIP="$ac_cv_prog_STRIP"
 
1958
fi
 
1959
 
 
1960
fi
 
1961
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1962
 
 
1963
# We need awk for the "check" target.  The system "awk" is bad on
 
1964
# some platforms.
 
1965
 
 
1966
 
 
1967
 
 
1968
 
 
1969
ac_ext=c
 
1970
ac_cpp='$CPP $CPPFLAGS'
 
1971
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1972
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1973
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1974
if test -n "$ac_tool_prefix"; then
 
1975
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1976
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1977
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1978
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1979
if test "${ac_cv_prog_CC+set}" = set; then
 
1980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1981
else
 
1982
  if test -n "$CC"; then
 
1983
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1984
else
 
1985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1986
for as_dir in $PATH
 
1987
do
 
1988
  IFS=$as_save_IFS
 
1989
  test -z "$as_dir" && as_dir=.
 
1990
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1991
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1992
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1993
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1994
    break 2
 
1995
  fi
 
1996
done
 
1997
done
 
1998
 
 
1999
fi
 
2000
fi
 
2001
CC=$ac_cv_prog_CC
 
2002
if test -n "$CC"; then
 
2003
  echo "$as_me:$LINENO: result: $CC" >&5
 
2004
echo "${ECHO_T}$CC" >&6
 
2005
else
 
2006
  echo "$as_me:$LINENO: result: no" >&5
 
2007
echo "${ECHO_T}no" >&6
 
2008
fi
 
2009
 
 
2010
fi
 
2011
if test -z "$ac_cv_prog_CC"; then
 
2012
  ac_ct_CC=$CC
 
2013
  # Extract the first word of "gcc", so it can be a program name with args.
 
2014
set dummy gcc; ac_word=$2
 
2015
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2016
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2017
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2018
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2019
else
 
2020
  if test -n "$ac_ct_CC"; then
 
2021
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2022
else
 
2023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2024
for as_dir in $PATH
 
2025
do
 
2026
  IFS=$as_save_IFS
 
2027
  test -z "$as_dir" && as_dir=.
 
2028
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2029
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2030
    ac_cv_prog_ac_ct_CC="gcc"
 
2031
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2032
    break 2
 
2033
  fi
 
2034
done
 
2035
done
 
2036
 
 
2037
fi
 
2038
fi
 
2039
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2040
if test -n "$ac_ct_CC"; then
 
2041
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2042
echo "${ECHO_T}$ac_ct_CC" >&6
 
2043
else
 
2044
  echo "$as_me:$LINENO: result: no" >&5
 
2045
echo "${ECHO_T}no" >&6
 
2046
fi
 
2047
 
 
2048
  CC=$ac_ct_CC
 
2049
else
 
2050
  CC="$ac_cv_prog_CC"
 
2051
fi
 
2052
 
 
2053
if test -z "$CC"; then
 
2054
  if test -n "$ac_tool_prefix"; then
 
2055
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2056
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2057
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2058
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2059
if test "${ac_cv_prog_CC+set}" = set; then
 
2060
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2061
else
 
2062
  if test -n "$CC"; then
 
2063
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2064
else
 
2065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2066
for as_dir in $PATH
 
2067
do
 
2068
  IFS=$as_save_IFS
 
2069
  test -z "$as_dir" && as_dir=.
 
2070
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2071
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2072
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2073
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2074
    break 2
 
2075
  fi
 
2076
done
 
2077
done
 
2078
 
 
2079
fi
 
2080
fi
 
2081
CC=$ac_cv_prog_CC
 
2082
if test -n "$CC"; then
 
2083
  echo "$as_me:$LINENO: result: $CC" >&5
 
2084
echo "${ECHO_T}$CC" >&6
 
2085
else
 
2086
  echo "$as_me:$LINENO: result: no" >&5
 
2087
echo "${ECHO_T}no" >&6
 
2088
fi
 
2089
 
 
2090
fi
 
2091
if test -z "$ac_cv_prog_CC"; then
 
2092
  ac_ct_CC=$CC
 
2093
  # Extract the first word of "cc", so it can be a program name with args.
 
2094
set dummy cc; ac_word=$2
 
2095
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2096
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2097
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2099
else
 
2100
  if test -n "$ac_ct_CC"; then
 
2101
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2102
else
 
2103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2104
for as_dir in $PATH
 
2105
do
 
2106
  IFS=$as_save_IFS
 
2107
  test -z "$as_dir" && as_dir=.
 
2108
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2109
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2110
    ac_cv_prog_ac_ct_CC="cc"
 
2111
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2112
    break 2
 
2113
  fi
 
2114
done
 
2115
done
 
2116
 
 
2117
fi
 
2118
fi
 
2119
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2120
if test -n "$ac_ct_CC"; then
 
2121
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2122
echo "${ECHO_T}$ac_ct_CC" >&6
 
2123
else
 
2124
  echo "$as_me:$LINENO: result: no" >&5
 
2125
echo "${ECHO_T}no" >&6
 
2126
fi
 
2127
 
 
2128
  CC=$ac_ct_CC
 
2129
else
 
2130
  CC="$ac_cv_prog_CC"
 
2131
fi
 
2132
 
 
2133
fi
 
2134
if test -z "$CC"; then
 
2135
  # Extract the first word of "cc", so it can be a program name with args.
 
2136
set dummy cc; ac_word=$2
 
2137
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2138
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2139
if test "${ac_cv_prog_CC+set}" = set; then
 
2140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2141
else
 
2142
  if test -n "$CC"; then
 
2143
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2144
else
 
2145
  ac_prog_rejected=no
 
2146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2147
for as_dir in $PATH
 
2148
do
 
2149
  IFS=$as_save_IFS
 
2150
  test -z "$as_dir" && as_dir=.
 
2151
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2152
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2153
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2154
       ac_prog_rejected=yes
 
2155
       continue
 
2156
     fi
 
2157
    ac_cv_prog_CC="cc"
 
2158
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2159
    break 2
 
2160
  fi
 
2161
done
 
2162
done
 
2163
 
 
2164
if test $ac_prog_rejected = yes; then
 
2165
  # We found a bogon in the path, so make sure we never use it.
 
2166
  set dummy $ac_cv_prog_CC
 
2167
  shift
 
2168
  if test $# != 0; then
 
2169
    # We chose a different compiler from the bogus one.
 
2170
    # However, it has the same basename, so the bogon will be chosen
 
2171
    # first if we set CC to just the basename; use the full file name.
 
2172
    shift
 
2173
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2174
  fi
 
2175
fi
 
2176
fi
 
2177
fi
 
2178
CC=$ac_cv_prog_CC
 
2179
if test -n "$CC"; then
 
2180
  echo "$as_me:$LINENO: result: $CC" >&5
 
2181
echo "${ECHO_T}$CC" >&6
 
2182
else
 
2183
  echo "$as_me:$LINENO: result: no" >&5
 
2184
echo "${ECHO_T}no" >&6
 
2185
fi
 
2186
 
 
2187
fi
 
2188
if test -z "$CC"; then
 
2189
  if test -n "$ac_tool_prefix"; then
 
2190
  for ac_prog in cl
 
2191
  do
 
2192
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2193
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2194
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2195
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2196
if test "${ac_cv_prog_CC+set}" = set; then
 
2197
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2198
else
 
2199
  if test -n "$CC"; then
 
2200
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2201
else
 
2202
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2203
for as_dir in $PATH
 
2204
do
 
2205
  IFS=$as_save_IFS
 
2206
  test -z "$as_dir" && as_dir=.
 
2207
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2208
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2209
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2210
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2211
    break 2
 
2212
  fi
 
2213
done
 
2214
done
 
2215
 
 
2216
fi
 
2217
fi
 
2218
CC=$ac_cv_prog_CC
 
2219
if test -n "$CC"; then
 
2220
  echo "$as_me:$LINENO: result: $CC" >&5
 
2221
echo "${ECHO_T}$CC" >&6
 
2222
else
 
2223
  echo "$as_me:$LINENO: result: no" >&5
 
2224
echo "${ECHO_T}no" >&6
 
2225
fi
 
2226
 
 
2227
    test -n "$CC" && break
 
2228
  done
 
2229
fi
 
2230
if test -z "$CC"; then
 
2231
  ac_ct_CC=$CC
 
2232
  for ac_prog in cl
 
2233
do
 
2234
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2235
set dummy $ac_prog; ac_word=$2
 
2236
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2237
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2238
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2240
else
 
2241
  if test -n "$ac_ct_CC"; then
 
2242
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2243
else
 
2244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2245
for as_dir in $PATH
 
2246
do
 
2247
  IFS=$as_save_IFS
 
2248
  test -z "$as_dir" && as_dir=.
 
2249
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2250
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2251
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2252
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2253
    break 2
 
2254
  fi
 
2255
done
 
2256
done
 
2257
 
 
2258
fi
 
2259
fi
 
2260
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2261
if test -n "$ac_ct_CC"; then
 
2262
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2263
echo "${ECHO_T}$ac_ct_CC" >&6
 
2264
else
 
2265
  echo "$as_me:$LINENO: result: no" >&5
 
2266
echo "${ECHO_T}no" >&6
 
2267
fi
 
2268
 
 
2269
  test -n "$ac_ct_CC" && break
 
2270
done
 
2271
 
 
2272
  CC=$ac_ct_CC
 
2273
fi
 
2274
 
 
2275
fi
 
2276
 
 
2277
 
 
2278
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2279
See \`config.log' for more details." >&5
 
2280
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2281
See \`config.log' for more details." >&2;}
 
2282
   { (exit 1); exit 1; }; }
 
2283
 
 
2284
# Provide some information about the compiler.
 
2285
echo "$as_me:$LINENO:" \
 
2286
     "checking for C compiler version" >&5
 
2287
ac_compiler=`set X $ac_compile; echo $2`
 
2288
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2289
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2290
  ac_status=$?
 
2291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2292
  (exit $ac_status); }
 
2293
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2294
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2295
  ac_status=$?
 
2296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2297
  (exit $ac_status); }
 
2298
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2299
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2300
  ac_status=$?
 
2301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2302
  (exit $ac_status); }
 
2303
 
 
2304
cat >conftest.$ac_ext <<_ACEOF
 
2305
/* confdefs.h.  */
 
2306
_ACEOF
 
2307
cat confdefs.h >>conftest.$ac_ext
 
2308
cat >>conftest.$ac_ext <<_ACEOF
 
2309
/* end confdefs.h.  */
 
2310
 
 
2311
int
 
2312
main ()
 
2313
{
 
2314
 
 
2315
  ;
 
2316
  return 0;
 
2317
}
 
2318
_ACEOF
 
2319
ac_clean_files_save=$ac_clean_files
 
2320
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2321
# Try to create an executable without -o first, disregard a.out.
 
2322
# It will help us diagnose broken compilers, and finding out an intuition
 
2323
# of exeext.
 
2324
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2325
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2326
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2327
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2328
  (eval $ac_link_default) 2>&5
 
2329
  ac_status=$?
 
2330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2331
  (exit $ac_status); }; then
 
2332
  # Find the output, starting from the most likely.  This scheme is
 
2333
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2334
# resort.
 
2335
 
 
2336
# Be careful to initialize this variable, since it used to be cached.
 
2337
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2338
ac_cv_exeext=
 
2339
# b.out is created by i960 compilers.
 
2340
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2341
do
 
2342
  test -f "$ac_file" || continue
 
2343
  case $ac_file in
 
2344
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2345
        ;;
 
2346
    conftest.$ac_ext )
 
2347
        # This is the source file.
 
2348
        ;;
 
2349
    [ab].out )
 
2350
        # We found the default executable, but exeext='' is most
 
2351
        # certainly right.
 
2352
        break;;
 
2353
    *.* )
 
2354
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2355
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2356
        # but it would be cool to find out if it's true.  Does anybody
 
2357
        # maintain Libtool? --akim.
 
2358
        export ac_cv_exeext
 
2359
        break;;
 
2360
    * )
 
2361
        break;;
 
2362
  esac
 
2363
done
 
2364
else
 
2365
  echo "$as_me: failed program was:" >&5
 
2366
sed 's/^/| /' conftest.$ac_ext >&5
 
2367
 
 
2368
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2369
See \`config.log' for more details." >&5
 
2370
echo "$as_me: error: C compiler cannot create executables
 
2371
See \`config.log' for more details." >&2;}
 
2372
   { (exit 77); exit 77; }; }
 
2373
fi
 
2374
 
 
2375
ac_exeext=$ac_cv_exeext
 
2376
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2377
echo "${ECHO_T}$ac_file" >&6
 
2378
 
 
2379
# Check the compiler produces executables we can run.  If not, either
 
2380
# the compiler is broken, or we cross compile.
 
2381
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2382
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2383
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2384
# If not cross compiling, check that we can run a simple program.
 
2385
if test "$cross_compiling" != yes; then
 
2386
  if { ac_try='./$ac_file'
 
2387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2388
  (eval $ac_try) 2>&5
 
2389
  ac_status=$?
 
2390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2391
  (exit $ac_status); }; }; then
 
2392
    cross_compiling=no
 
2393
  else
 
2394
    if test "$cross_compiling" = maybe; then
 
2395
        cross_compiling=yes
 
2396
    else
 
2397
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2398
If you meant to cross compile, use \`--host'.
 
2399
See \`config.log' for more details." >&5
 
2400
echo "$as_me: error: cannot run C compiled programs.
 
2401
If you meant to cross compile, use \`--host'.
 
2402
See \`config.log' for more details." >&2;}
 
2403
   { (exit 1); exit 1; }; }
 
2404
    fi
 
2405
  fi
 
2406
fi
 
2407
echo "$as_me:$LINENO: result: yes" >&5
 
2408
echo "${ECHO_T}yes" >&6
 
2409
 
 
2410
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2411
ac_clean_files=$ac_clean_files_save
 
2412
# Check the compiler produces executables we can run.  If not, either
 
2413
# the compiler is broken, or we cross compile.
 
2414
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2415
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2416
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2417
echo "${ECHO_T}$cross_compiling" >&6
 
2418
 
 
2419
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2420
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2421
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2422
  (eval $ac_link) 2>&5
 
2423
  ac_status=$?
 
2424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2425
  (exit $ac_status); }; then
 
2426
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2427
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2428
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2429
# `rm'.
 
2430
for ac_file in conftest.exe conftest conftest.*; do
 
2431
  test -f "$ac_file" || continue
 
2432
  case $ac_file in
 
2433
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2434
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2435
          export ac_cv_exeext
 
2436
          break;;
 
2437
    * ) break;;
 
2438
  esac
 
2439
done
 
2440
else
 
2441
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2442
See \`config.log' for more details." >&5
 
2443
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2444
See \`config.log' for more details." >&2;}
 
2445
   { (exit 1); exit 1; }; }
 
2446
fi
 
2447
 
 
2448
rm -f conftest$ac_cv_exeext
 
2449
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2450
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2451
 
 
2452
rm -f conftest.$ac_ext
 
2453
EXEEXT=$ac_cv_exeext
 
2454
ac_exeext=$EXEEXT
 
2455
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2456
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2457
if test "${ac_cv_objext+set}" = set; then
 
2458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2459
else
 
2460
  cat >conftest.$ac_ext <<_ACEOF
 
2461
/* confdefs.h.  */
 
2462
_ACEOF
 
2463
cat confdefs.h >>conftest.$ac_ext
 
2464
cat >>conftest.$ac_ext <<_ACEOF
 
2465
/* end confdefs.h.  */
 
2466
 
 
2467
int
 
2468
main ()
 
2469
{
 
2470
 
 
2471
  ;
 
2472
  return 0;
 
2473
}
 
2474
_ACEOF
 
2475
rm -f conftest.o conftest.obj
 
2476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2477
  (eval $ac_compile) 2>&5
 
2478
  ac_status=$?
 
2479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2480
  (exit $ac_status); }; then
 
2481
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2482
  case $ac_file in
 
2483
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2484
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2485
       break;;
 
2486
  esac
 
2487
done
 
2488
else
 
2489
  echo "$as_me: failed program was:" >&5
 
2490
sed 's/^/| /' conftest.$ac_ext >&5
 
2491
 
 
2492
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2493
See \`config.log' for more details." >&5
 
2494
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2495
See \`config.log' for more details." >&2;}
 
2496
   { (exit 1); exit 1; }; }
 
2497
fi
 
2498
 
 
2499
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2500
fi
 
2501
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2502
echo "${ECHO_T}$ac_cv_objext" >&6
 
2503
OBJEXT=$ac_cv_objext
 
2504
ac_objext=$OBJEXT
 
2505
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2506
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2507
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2509
else
 
2510
  cat >conftest.$ac_ext <<_ACEOF
 
2511
/* confdefs.h.  */
 
2512
_ACEOF
 
2513
cat confdefs.h >>conftest.$ac_ext
 
2514
cat >>conftest.$ac_ext <<_ACEOF
 
2515
/* end confdefs.h.  */
 
2516
 
 
2517
int
 
2518
main ()
 
2519
{
 
2520
#ifndef __GNUC__
 
2521
       choke me
 
2522
#endif
 
2523
 
 
2524
  ;
 
2525
  return 0;
 
2526
}
 
2527
_ACEOF
 
2528
rm -f conftest.$ac_objext
 
2529
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2530
  (eval $ac_compile) 2>conftest.er1
 
2531
  ac_status=$?
 
2532
  grep -v '^ *+' conftest.er1 >conftest.err
 
2533
  rm -f conftest.er1
 
2534
  cat conftest.err >&5
 
2535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2536
  (exit $ac_status); } &&
 
2537
         { ac_try='test -z "$ac_c_werror_flag"
 
2538
                         || test ! -s conftest.err'
 
2539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2540
  (eval $ac_try) 2>&5
 
2541
  ac_status=$?
 
2542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2543
  (exit $ac_status); }; } &&
 
2544
         { ac_try='test -s conftest.$ac_objext'
 
2545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2546
  (eval $ac_try) 2>&5
 
2547
  ac_status=$?
 
2548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2549
  (exit $ac_status); }; }; then
 
2550
  ac_compiler_gnu=yes
 
2551
else
 
2552
  echo "$as_me: failed program was:" >&5
 
2553
sed 's/^/| /' conftest.$ac_ext >&5
 
2554
 
 
2555
ac_compiler_gnu=no
 
2556
fi
 
2557
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2558
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2559
 
 
2560
fi
 
2561
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2562
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2563
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2564
ac_test_CFLAGS=${CFLAGS+set}
 
2565
ac_save_CFLAGS=$CFLAGS
 
2566
CFLAGS="-g"
 
2567
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2568
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2569
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2571
else
 
2572
  cat >conftest.$ac_ext <<_ACEOF
 
2573
/* confdefs.h.  */
 
2574
_ACEOF
 
2575
cat confdefs.h >>conftest.$ac_ext
 
2576
cat >>conftest.$ac_ext <<_ACEOF
 
2577
/* end confdefs.h.  */
 
2578
 
 
2579
int
 
2580
main ()
 
2581
{
 
2582
 
 
2583
  ;
 
2584
  return 0;
 
2585
}
 
2586
_ACEOF
 
2587
rm -f conftest.$ac_objext
 
2588
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2589
  (eval $ac_compile) 2>conftest.er1
 
2590
  ac_status=$?
 
2591
  grep -v '^ *+' conftest.er1 >conftest.err
 
2592
  rm -f conftest.er1
 
2593
  cat conftest.err >&5
 
2594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2595
  (exit $ac_status); } &&
 
2596
         { ac_try='test -z "$ac_c_werror_flag"
 
2597
                         || test ! -s conftest.err'
 
2598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2599
  (eval $ac_try) 2>&5
 
2600
  ac_status=$?
 
2601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2602
  (exit $ac_status); }; } &&
 
2603
         { ac_try='test -s conftest.$ac_objext'
 
2604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2605
  (eval $ac_try) 2>&5
 
2606
  ac_status=$?
 
2607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2608
  (exit $ac_status); }; }; then
 
2609
  ac_cv_prog_cc_g=yes
 
2610
else
 
2611
  echo "$as_me: failed program was:" >&5
 
2612
sed 's/^/| /' conftest.$ac_ext >&5
 
2613
 
 
2614
ac_cv_prog_cc_g=no
 
2615
fi
 
2616
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2617
fi
 
2618
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2619
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2620
if test "$ac_test_CFLAGS" = set; then
 
2621
  CFLAGS=$ac_save_CFLAGS
 
2622
elif test $ac_cv_prog_cc_g = yes; then
 
2623
  if test "$GCC" = yes; then
 
2624
    CFLAGS="-g -O2"
 
2625
  else
 
2626
    CFLAGS="-g"
 
2627
  fi
 
2628
else
 
2629
  if test "$GCC" = yes; then
 
2630
    CFLAGS="-O2"
 
2631
  else
 
2632
    CFLAGS=
 
2633
  fi
 
2634
fi
 
2635
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2636
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2637
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2639
else
 
2640
  ac_cv_prog_cc_stdc=no
 
2641
ac_save_CC=$CC
 
2642
cat >conftest.$ac_ext <<_ACEOF
 
2643
/* confdefs.h.  */
 
2644
_ACEOF
 
2645
cat confdefs.h >>conftest.$ac_ext
 
2646
cat >>conftest.$ac_ext <<_ACEOF
 
2647
/* end confdefs.h.  */
 
2648
#include <stdarg.h>
 
2649
#include <stdio.h>
 
2650
#include <sys/types.h>
 
2651
#include <sys/stat.h>
 
2652
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2653
struct buf { int x; };
 
2654
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2655
static char *e (p, i)
 
2656
     char **p;
 
2657
     int i;
 
2658
{
 
2659
  return p[i];
 
2660
}
 
2661
static char *f (char * (*g) (char **, int), char **p, ...)
 
2662
{
 
2663
  char *s;
 
2664
  va_list v;
 
2665
  va_start (v,p);
 
2666
  s = g (p, va_arg (v,int));
 
2667
  va_end (v);
 
2668
  return s;
 
2669
}
 
2670
 
 
2671
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2672
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2673
   These don't provoke an error unfortunately, instead are silently treated
 
2674
   as 'x'.  The following induces an error, until -std1 is added to get
 
2675
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2676
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2677
   that's true only with -std1.  */
 
2678
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2679
 
 
2680
int test (int i, double x);
 
2681
struct s1 {int (*f) (int a);};
 
2682
struct s2 {int (*f) (double a);};
 
2683
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2684
int argc;
 
2685
char **argv;
 
2686
int
 
2687
main ()
 
2688
{
 
2689
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2690
  ;
 
2691
  return 0;
 
2692
}
 
2693
_ACEOF
 
2694
# Don't try gcc -ansi; that turns off useful extensions and
 
2695
# breaks some systems' header files.
 
2696
# AIX                   -qlanglvl=ansi
 
2697
# Ultrix and OSF/1      -std1
 
2698
# HP-UX 10.20 and later -Ae
 
2699
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2700
# SVR4                  -Xc -D__EXTENSIONS__
 
2701
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2702
do
 
2703
  CC="$ac_save_CC $ac_arg"
 
2704
  rm -f conftest.$ac_objext
 
2705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2706
  (eval $ac_compile) 2>conftest.er1
 
2707
  ac_status=$?
 
2708
  grep -v '^ *+' conftest.er1 >conftest.err
 
2709
  rm -f conftest.er1
 
2710
  cat conftest.err >&5
 
2711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2712
  (exit $ac_status); } &&
 
2713
         { ac_try='test -z "$ac_c_werror_flag"
 
2714
                         || test ! -s conftest.err'
 
2715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2716
  (eval $ac_try) 2>&5
 
2717
  ac_status=$?
 
2718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2719
  (exit $ac_status); }; } &&
 
2720
         { ac_try='test -s conftest.$ac_objext'
 
2721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2722
  (eval $ac_try) 2>&5
 
2723
  ac_status=$?
 
2724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2725
  (exit $ac_status); }; }; then
 
2726
  ac_cv_prog_cc_stdc=$ac_arg
 
2727
break
 
2728
else
 
2729
  echo "$as_me: failed program was:" >&5
 
2730
sed 's/^/| /' conftest.$ac_ext >&5
 
2731
 
 
2732
fi
 
2733
rm -f conftest.err conftest.$ac_objext
 
2734
done
 
2735
rm -f conftest.$ac_ext conftest.$ac_objext
 
2736
CC=$ac_save_CC
 
2737
 
 
2738
fi
 
2739
 
 
2740
case "x$ac_cv_prog_cc_stdc" in
 
2741
  x|xno)
 
2742
    echo "$as_me:$LINENO: result: none needed" >&5
 
2743
echo "${ECHO_T}none needed" >&6 ;;
 
2744
  *)
 
2745
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2746
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2747
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2748
esac
 
2749
 
 
2750
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2751
# in C++ we need to declare it.  In case someone uses the same compiler
 
2752
# for both compiling C and C++ we need to have the C++ compiler decide
 
2753
# the declaration of exit, since it's the most demanding environment.
 
2754
cat >conftest.$ac_ext <<_ACEOF
 
2755
#ifndef __cplusplus
 
2756
  choke me
 
2757
#endif
 
2758
_ACEOF
 
2759
rm -f conftest.$ac_objext
 
2760
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2761
  (eval $ac_compile) 2>conftest.er1
 
2762
  ac_status=$?
 
2763
  grep -v '^ *+' conftest.er1 >conftest.err
 
2764
  rm -f conftest.er1
 
2765
  cat conftest.err >&5
 
2766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2767
  (exit $ac_status); } &&
 
2768
         { ac_try='test -z "$ac_c_werror_flag"
 
2769
                         || test ! -s conftest.err'
 
2770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2771
  (eval $ac_try) 2>&5
 
2772
  ac_status=$?
 
2773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2774
  (exit $ac_status); }; } &&
 
2775
         { ac_try='test -s conftest.$ac_objext'
 
2776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2777
  (eval $ac_try) 2>&5
 
2778
  ac_status=$?
 
2779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2780
  (exit $ac_status); }; }; then
 
2781
  for ac_declaration in \
 
2782
   '' \
 
2783
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2784
   'extern "C" void std::exit (int); using std::exit;' \
 
2785
   'extern "C" void exit (int) throw ();' \
 
2786
   'extern "C" void exit (int);' \
 
2787
   'void exit (int);'
 
2788
do
 
2789
  cat >conftest.$ac_ext <<_ACEOF
 
2790
/* confdefs.h.  */
 
2791
_ACEOF
 
2792
cat confdefs.h >>conftest.$ac_ext
 
2793
cat >>conftest.$ac_ext <<_ACEOF
 
2794
/* end confdefs.h.  */
 
2795
$ac_declaration
 
2796
#include <stdlib.h>
 
2797
int
 
2798
main ()
 
2799
{
 
2800
exit (42);
 
2801
  ;
 
2802
  return 0;
 
2803
}
 
2804
_ACEOF
 
2805
rm -f conftest.$ac_objext
 
2806
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2807
  (eval $ac_compile) 2>conftest.er1
 
2808
  ac_status=$?
 
2809
  grep -v '^ *+' conftest.er1 >conftest.err
 
2810
  rm -f conftest.er1
 
2811
  cat conftest.err >&5
 
2812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2813
  (exit $ac_status); } &&
 
2814
         { ac_try='test -z "$ac_c_werror_flag"
 
2815
                         || test ! -s conftest.err'
 
2816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2817
  (eval $ac_try) 2>&5
 
2818
  ac_status=$?
 
2819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2820
  (exit $ac_status); }; } &&
 
2821
         { ac_try='test -s conftest.$ac_objext'
 
2822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2823
  (eval $ac_try) 2>&5
 
2824
  ac_status=$?
 
2825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2826
  (exit $ac_status); }; }; then
 
2827
  :
 
2828
else
 
2829
  echo "$as_me: failed program was:" >&5
 
2830
sed 's/^/| /' conftest.$ac_ext >&5
 
2831
 
 
2832
continue
 
2833
fi
 
2834
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2835
  cat >conftest.$ac_ext <<_ACEOF
 
2836
/* confdefs.h.  */
 
2837
_ACEOF
 
2838
cat confdefs.h >>conftest.$ac_ext
 
2839
cat >>conftest.$ac_ext <<_ACEOF
 
2840
/* end confdefs.h.  */
 
2841
$ac_declaration
 
2842
int
 
2843
main ()
 
2844
{
 
2845
exit (42);
 
2846
  ;
 
2847
  return 0;
 
2848
}
 
2849
_ACEOF
 
2850
rm -f conftest.$ac_objext
 
2851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2852
  (eval $ac_compile) 2>conftest.er1
 
2853
  ac_status=$?
 
2854
  grep -v '^ *+' conftest.er1 >conftest.err
 
2855
  rm -f conftest.er1
 
2856
  cat conftest.err >&5
 
2857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2858
  (exit $ac_status); } &&
 
2859
         { ac_try='test -z "$ac_c_werror_flag"
 
2860
                         || test ! -s conftest.err'
 
2861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2862
  (eval $ac_try) 2>&5
 
2863
  ac_status=$?
 
2864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2865
  (exit $ac_status); }; } &&
 
2866
         { ac_try='test -s conftest.$ac_objext'
 
2867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2868
  (eval $ac_try) 2>&5
 
2869
  ac_status=$?
 
2870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2871
  (exit $ac_status); }; }; then
 
2872
  break
 
2873
else
 
2874
  echo "$as_me: failed program was:" >&5
 
2875
sed 's/^/| /' conftest.$ac_ext >&5
 
2876
 
 
2877
fi
 
2878
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2879
done
 
2880
rm -f conftest*
 
2881
if test -n "$ac_declaration"; then
 
2882
  echo '#ifdef __cplusplus' >>confdefs.h
 
2883
  echo $ac_declaration      >>confdefs.h
 
2884
  echo '#endif'             >>confdefs.h
 
2885
fi
 
2886
 
 
2887
else
 
2888
  echo "$as_me: failed program was:" >&5
 
2889
sed 's/^/| /' conftest.$ac_ext >&5
 
2890
 
 
2891
fi
 
2892
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2893
ac_ext=c
 
2894
ac_cpp='$CPP $CPPFLAGS'
 
2895
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2896
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2897
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2898
DEPDIR="${am__leading_dot}deps"
 
2899
 
 
2900
          ac_config_commands="$ac_config_commands depfiles"
 
2901
 
 
2902
 
 
2903
am_make=${MAKE-make}
 
2904
cat > confinc << 'END'
 
2905
doit:
 
2906
        @echo done
 
2907
END
 
2908
# If we don't find an include directive, just comment out the code.
 
2909
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2910
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2911
am__include="#"
 
2912
am__quote=
 
2913
_am_result=none
 
2914
# First try GNU make style include.
 
2915
echo "include confinc" > confmf
 
2916
# We grep out `Entering directory' and `Leaving directory'
 
2917
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2918
# In particular we don't look at `^make:' because GNU make might
 
2919
# be invoked under some other name (usually "gmake"), in which
 
2920
# case it prints its new name instead of `make'.
 
2921
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2922
   am__include=include
 
2923
   am__quote=
 
2924
   _am_result=GNU
 
2925
fi
 
2926
# Now try BSD make style include.
 
2927
if test "$am__include" = "#"; then
 
2928
   echo '.include "confinc"' > confmf
 
2929
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2930
      am__include=.include
 
2931
      am__quote="\""
 
2932
      _am_result=BSD
 
2933
   fi
 
2934
fi
 
2935
 
 
2936
 
 
2937
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2938
echo "${ECHO_T}$_am_result" >&6
 
2939
rm -f confinc confmf
 
2940
 
 
2941
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2942
if test "${enable_dependency_tracking+set}" = set; then
 
2943
  enableval="$enable_dependency_tracking"
 
2944
 
 
2945
fi;
 
2946
if test "x$enable_dependency_tracking" != xno; then
 
2947
  am_depcomp="$ac_aux_dir/depcomp"
 
2948
  AMDEPBACKSLASH='\'
 
2949
fi
 
2950
 
 
2951
 
 
2952
if test "x$enable_dependency_tracking" != xno; then
 
2953
  AMDEP_TRUE=
 
2954
  AMDEP_FALSE='#'
 
2955
else
 
2956
  AMDEP_TRUE='#'
 
2957
  AMDEP_FALSE=
 
2958
fi
 
2959
 
 
2960
 
 
2961
 
 
2962
 
 
2963
depcc="$CC"   am_compiler_list=
 
2964
 
 
2965
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2966
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2967
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2968
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2969
else
 
2970
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2971
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2972
  # making bogus files that we don't know about and never remove.  For
 
2973
  # instance it was reported that on HP-UX the gcc test will end up
 
2974
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2975
  # in D'.
 
2976
  mkdir conftest.dir
 
2977
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2978
  # using a relative directory.
 
2979
  cp "$am_depcomp" conftest.dir
 
2980
  cd conftest.dir
 
2981
 
 
2982
  am_cv_CC_dependencies_compiler_type=none
 
2983
  if test "$am_compiler_list" = ""; then
 
2984
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2985
  fi
 
2986
  for depmode in $am_compiler_list; do
 
2987
    # We need to recreate these files for each test, as the compiler may
 
2988
    # overwrite some of them when testing with obscure command lines.
 
2989
    # This happens at least with the AIX C compiler.
 
2990
    echo '#include "conftest.h"' > conftest.c
 
2991
    echo 'int i;' > conftest.h
 
2992
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
2993
 
 
2994
    case $depmode in
 
2995
    nosideeffect)
 
2996
      # after this tag, mechanisms are not by side-effect, so they'll
 
2997
      # only be used when explicitly requested
 
2998
      if test "x$enable_dependency_tracking" = xyes; then
 
2999
        continue
 
3000
      else
 
3001
        break
 
3002
      fi
 
3003
      ;;
 
3004
    none) break ;;
 
3005
    esac
 
3006
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3007
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3008
    # handle `-M -o', and we need to detect this.
 
3009
    if depmode=$depmode \
 
3010
       source=conftest.c object=conftest.o \
 
3011
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
3012
       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
 
3013
         >/dev/null 2>conftest.err &&
 
3014
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
3015
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3016
      # icc doesn't choke on unknown options, it will just issue warnings
 
3017
      # (even with -Werror).  So we grep stderr for any message
 
3018
      # that says an option was ignored.
 
3019
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3020
        am_cv_CC_dependencies_compiler_type=$depmode
 
3021
        break
 
3022
      fi
 
3023
    fi
 
3024
  done
 
3025
 
 
3026
  cd ..
 
3027
  rm -rf conftest.dir
 
3028
else
 
3029
  am_cv_CC_dependencies_compiler_type=none
 
3030
fi
 
3031
 
 
3032
fi
 
3033
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3034
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3035
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3036
 
 
3037
 
 
3038
 
 
3039
if
 
3040
  test "x$enable_dependency_tracking" != xno \
 
3041
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3042
  am__fastdepCC_TRUE=
 
3043
  am__fastdepCC_FALSE='#'
 
3044
else
 
3045
  am__fastdepCC_TRUE='#'
 
3046
  am__fastdepCC_FALSE=
 
3047
fi
 
3048
 
 
3049
 
 
3050
ac_ext=cc
 
3051
ac_cpp='$CXXCPP $CPPFLAGS'
 
3052
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3053
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3054
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3055
if test -n "$ac_tool_prefix"; then
 
3056
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3057
  do
 
3058
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3059
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3060
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3062
if test "${ac_cv_prog_CXX+set}" = set; then
 
3063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3064
else
 
3065
  if test -n "$CXX"; then
 
3066
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3067
else
 
3068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3069
for as_dir in $PATH
 
3070
do
 
3071
  IFS=$as_save_IFS
 
3072
  test -z "$as_dir" && as_dir=.
 
3073
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3074
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3075
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3076
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3077
    break 2
 
3078
  fi
 
3079
done
 
3080
done
 
3081
 
 
3082
fi
 
3083
fi
 
3084
CXX=$ac_cv_prog_CXX
 
3085
if test -n "$CXX"; then
 
3086
  echo "$as_me:$LINENO: result: $CXX" >&5
 
3087
echo "${ECHO_T}$CXX" >&6
 
3088
else
 
3089
  echo "$as_me:$LINENO: result: no" >&5
 
3090
echo "${ECHO_T}no" >&6
 
3091
fi
 
3092
 
 
3093
    test -n "$CXX" && break
 
3094
  done
 
3095
fi
 
3096
if test -z "$CXX"; then
 
3097
  ac_ct_CXX=$CXX
 
3098
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
3099
do
 
3100
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3101
set dummy $ac_prog; ac_word=$2
 
3102
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3103
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3104
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
3105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3106
else
 
3107
  if test -n "$ac_ct_CXX"; then
 
3108
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3109
else
 
3110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3111
for as_dir in $PATH
 
3112
do
 
3113
  IFS=$as_save_IFS
 
3114
  test -z "$as_dir" && as_dir=.
 
3115
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3116
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3117
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3118
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3119
    break 2
 
3120
  fi
 
3121
done
 
3122
done
 
3123
 
 
3124
fi
 
3125
fi
 
3126
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3127
if test -n "$ac_ct_CXX"; then
 
3128
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3129
echo "${ECHO_T}$ac_ct_CXX" >&6
 
3130
else
 
3131
  echo "$as_me:$LINENO: result: no" >&5
 
3132
echo "${ECHO_T}no" >&6
 
3133
fi
 
3134
 
 
3135
  test -n "$ac_ct_CXX" && break
 
3136
done
 
3137
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
3138
 
 
3139
  CXX=$ac_ct_CXX
 
3140
fi
 
3141
 
 
3142
 
 
3143
# Provide some information about the compiler.
 
3144
echo "$as_me:$LINENO:" \
 
3145
     "checking for C++ compiler version" >&5
 
3146
ac_compiler=`set X $ac_compile; echo $2`
 
3147
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3148
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3149
  ac_status=$?
 
3150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3151
  (exit $ac_status); }
 
3152
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3153
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3154
  ac_status=$?
 
3155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3156
  (exit $ac_status); }
 
3157
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3158
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3159
  ac_status=$?
 
3160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3161
  (exit $ac_status); }
 
3162
 
 
3163
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3164
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
3165
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3167
else
 
3168
  cat >conftest.$ac_ext <<_ACEOF
 
3169
/* confdefs.h.  */
 
3170
_ACEOF
 
3171
cat confdefs.h >>conftest.$ac_ext
 
3172
cat >>conftest.$ac_ext <<_ACEOF
 
3173
/* end confdefs.h.  */
 
3174
 
 
3175
int
 
3176
main ()
 
3177
{
 
3178
#ifndef __GNUC__
 
3179
       choke me
 
3180
#endif
 
3181
 
 
3182
  ;
 
3183
  return 0;
 
3184
}
 
3185
_ACEOF
 
3186
rm -f conftest.$ac_objext
 
3187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3188
  (eval $ac_compile) 2>conftest.er1
 
3189
  ac_status=$?
 
3190
  grep -v '^ *+' conftest.er1 >conftest.err
 
3191
  rm -f conftest.er1
 
3192
  cat conftest.err >&5
 
3193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3194
  (exit $ac_status); } &&
 
3195
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3196
                         || test ! -s conftest.err'
 
3197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3198
  (eval $ac_try) 2>&5
 
3199
  ac_status=$?
 
3200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3201
  (exit $ac_status); }; } &&
 
3202
         { ac_try='test -s conftest.$ac_objext'
 
3203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3204
  (eval $ac_try) 2>&5
 
3205
  ac_status=$?
 
3206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3207
  (exit $ac_status); }; }; then
 
3208
  ac_compiler_gnu=yes
 
3209
else
 
3210
  echo "$as_me: failed program was:" >&5
 
3211
sed 's/^/| /' conftest.$ac_ext >&5
 
3212
 
 
3213
ac_compiler_gnu=no
 
3214
fi
 
3215
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3216
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3217
 
 
3218
fi
 
3219
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3220
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3221
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3222
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3223
ac_save_CXXFLAGS=$CXXFLAGS
 
3224
CXXFLAGS="-g"
 
3225
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3226
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3227
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3229
else
 
3230
  cat >conftest.$ac_ext <<_ACEOF
 
3231
/* confdefs.h.  */
 
3232
_ACEOF
 
3233
cat confdefs.h >>conftest.$ac_ext
 
3234
cat >>conftest.$ac_ext <<_ACEOF
 
3235
/* end confdefs.h.  */
 
3236
 
 
3237
int
 
3238
main ()
 
3239
{
 
3240
 
 
3241
  ;
 
3242
  return 0;
 
3243
}
 
3244
_ACEOF
 
3245
rm -f conftest.$ac_objext
 
3246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3247
  (eval $ac_compile) 2>conftest.er1
 
3248
  ac_status=$?
 
3249
  grep -v '^ *+' conftest.er1 >conftest.err
 
3250
  rm -f conftest.er1
 
3251
  cat conftest.err >&5
 
3252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3253
  (exit $ac_status); } &&
 
3254
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3255
                         || test ! -s conftest.err'
 
3256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3257
  (eval $ac_try) 2>&5
 
3258
  ac_status=$?
 
3259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3260
  (exit $ac_status); }; } &&
 
3261
         { ac_try='test -s conftest.$ac_objext'
 
3262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3263
  (eval $ac_try) 2>&5
 
3264
  ac_status=$?
 
3265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3266
  (exit $ac_status); }; }; then
 
3267
  ac_cv_prog_cxx_g=yes
 
3268
else
 
3269
  echo "$as_me: failed program was:" >&5
 
3270
sed 's/^/| /' conftest.$ac_ext >&5
 
3271
 
 
3272
ac_cv_prog_cxx_g=no
 
3273
fi
 
3274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3275
fi
 
3276
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3277
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3278
if test "$ac_test_CXXFLAGS" = set; then
 
3279
  CXXFLAGS=$ac_save_CXXFLAGS
 
3280
elif test $ac_cv_prog_cxx_g = yes; then
 
3281
  if test "$GXX" = yes; then
 
3282
    CXXFLAGS="-g -O2"
 
3283
  else
 
3284
    CXXFLAGS="-g"
 
3285
  fi
 
3286
else
 
3287
  if test "$GXX" = yes; then
 
3288
    CXXFLAGS="-O2"
 
3289
  else
 
3290
    CXXFLAGS=
 
3291
  fi
 
3292
fi
 
3293
for ac_declaration in \
 
3294
   '' \
 
3295
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3296
   'extern "C" void std::exit (int); using std::exit;' \
 
3297
   'extern "C" void exit (int) throw ();' \
 
3298
   'extern "C" void exit (int);' \
 
3299
   'void exit (int);'
 
3300
do
 
3301
  cat >conftest.$ac_ext <<_ACEOF
 
3302
/* confdefs.h.  */
 
3303
_ACEOF
 
3304
cat confdefs.h >>conftest.$ac_ext
 
3305
cat >>conftest.$ac_ext <<_ACEOF
 
3306
/* end confdefs.h.  */
 
3307
$ac_declaration
 
3308
#include <stdlib.h>
 
3309
int
 
3310
main ()
 
3311
{
 
3312
exit (42);
 
3313
  ;
 
3314
  return 0;
 
3315
}
 
3316
_ACEOF
 
3317
rm -f conftest.$ac_objext
 
3318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3319
  (eval $ac_compile) 2>conftest.er1
 
3320
  ac_status=$?
 
3321
  grep -v '^ *+' conftest.er1 >conftest.err
 
3322
  rm -f conftest.er1
 
3323
  cat conftest.err >&5
 
3324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3325
  (exit $ac_status); } &&
 
3326
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3327
                         || test ! -s conftest.err'
 
3328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3329
  (eval $ac_try) 2>&5
 
3330
  ac_status=$?
 
3331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3332
  (exit $ac_status); }; } &&
 
3333
         { ac_try='test -s conftest.$ac_objext'
 
3334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3335
  (eval $ac_try) 2>&5
 
3336
  ac_status=$?
 
3337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3338
  (exit $ac_status); }; }; then
 
3339
  :
 
3340
else
 
3341
  echo "$as_me: failed program was:" >&5
 
3342
sed 's/^/| /' conftest.$ac_ext >&5
 
3343
 
 
3344
continue
 
3345
fi
 
3346
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3347
  cat >conftest.$ac_ext <<_ACEOF
 
3348
/* confdefs.h.  */
 
3349
_ACEOF
 
3350
cat confdefs.h >>conftest.$ac_ext
 
3351
cat >>conftest.$ac_ext <<_ACEOF
 
3352
/* end confdefs.h.  */
 
3353
$ac_declaration
 
3354
int
 
3355
main ()
 
3356
{
 
3357
exit (42);
 
3358
  ;
 
3359
  return 0;
 
3360
}
 
3361
_ACEOF
 
3362
rm -f conftest.$ac_objext
 
3363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3364
  (eval $ac_compile) 2>conftest.er1
 
3365
  ac_status=$?
 
3366
  grep -v '^ *+' conftest.er1 >conftest.err
 
3367
  rm -f conftest.er1
 
3368
  cat conftest.err >&5
 
3369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3370
  (exit $ac_status); } &&
 
3371
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3372
                         || test ! -s conftest.err'
 
3373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3374
  (eval $ac_try) 2>&5
 
3375
  ac_status=$?
 
3376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3377
  (exit $ac_status); }; } &&
 
3378
         { ac_try='test -s conftest.$ac_objext'
 
3379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3380
  (eval $ac_try) 2>&5
 
3381
  ac_status=$?
 
3382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3383
  (exit $ac_status); }; }; then
 
3384
  break
 
3385
else
 
3386
  echo "$as_me: failed program was:" >&5
 
3387
sed 's/^/| /' conftest.$ac_ext >&5
 
3388
 
 
3389
fi
 
3390
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3391
done
 
3392
rm -f conftest*
 
3393
if test -n "$ac_declaration"; then
 
3394
  echo '#ifdef __cplusplus' >>confdefs.h
 
3395
  echo $ac_declaration      >>confdefs.h
 
3396
  echo '#endif'             >>confdefs.h
 
3397
fi
 
3398
 
 
3399
ac_ext=c
 
3400
ac_cpp='$CPP $CPPFLAGS'
 
3401
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3402
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3403
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3404
 
 
3405
depcc="$CXX"  am_compiler_list=
 
3406
 
 
3407
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3408
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3409
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3411
else
 
3412
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3413
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3414
  # making bogus files that we don't know about and never remove.  For
 
3415
  # instance it was reported that on HP-UX the gcc test will end up
 
3416
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3417
  # in D'.
 
3418
  mkdir conftest.dir
 
3419
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3420
  # using a relative directory.
 
3421
  cp "$am_depcomp" conftest.dir
 
3422
  cd conftest.dir
 
3423
 
 
3424
  am_cv_CXX_dependencies_compiler_type=none
 
3425
  if test "$am_compiler_list" = ""; then
 
3426
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3427
  fi
 
3428
  for depmode in $am_compiler_list; do
 
3429
    # We need to recreate these files for each test, as the compiler may
 
3430
    # overwrite some of them when testing with obscure command lines.
 
3431
    # This happens at least with the AIX C compiler.
 
3432
    echo '#include "conftest.h"' > conftest.c
 
3433
    echo 'int i;' > conftest.h
 
3434
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
3435
 
 
3436
    case $depmode in
 
3437
    nosideeffect)
 
3438
      # after this tag, mechanisms are not by side-effect, so they'll
 
3439
      # only be used when explicitly requested
 
3440
      if test "x$enable_dependency_tracking" = xyes; then
 
3441
        continue
 
3442
      else
 
3443
        break
 
3444
      fi
 
3445
      ;;
 
3446
    none) break ;;
 
3447
    esac
 
3448
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3449
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3450
    # handle `-M -o', and we need to detect this.
 
3451
    if depmode=$depmode \
 
3452
       source=conftest.c object=conftest.o \
 
3453
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
3454
       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
 
3455
         >/dev/null 2>conftest.err &&
 
3456
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
3457
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3458
      # icc doesn't choke on unknown options, it will just issue warnings
 
3459
      # (even with -Werror).  So we grep stderr for any message
 
3460
      # that says an option was ignored.
 
3461
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3462
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3463
        break
 
3464
      fi
 
3465
    fi
 
3466
  done
 
3467
 
 
3468
  cd ..
 
3469
  rm -rf conftest.dir
 
3470
else
 
3471
  am_cv_CXX_dependencies_compiler_type=none
 
3472
fi
 
3473
 
 
3474
fi
 
3475
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3476
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
3477
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3478
 
 
3479
 
 
3480
 
 
3481
if
 
3482
  test "x$enable_dependency_tracking" != xno \
 
3483
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3484
  am__fastdepCXX_TRUE=
 
3485
  am__fastdepCXX_FALSE='#'
 
3486
else
 
3487
  am__fastdepCXX_TRUE='#'
 
3488
  am__fastdepCXX_FALSE=
 
3489
fi
 
3490
 
 
3491
 
 
3492
# Check whether --enable-shared or --disable-shared was given.
 
3493
if test "${enable_shared+set}" = set; then
 
3494
  enableval="$enable_shared"
 
3495
  p=${PACKAGE-default}
 
3496
case $enableval in
 
3497
yes) enable_shared=yes ;;
 
3498
no) enable_shared=no ;;
 
3499
*)
 
3500
  enable_shared=no
 
3501
  # Look at the argument we got.  We use all the common list separators.
 
3502
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3503
  for pkg in $enableval; do
 
3504
    if test "X$pkg" = "X$p"; then
 
3505
      enable_shared=yes
 
3506
    fi
 
3507
  done
 
3508
  IFS="$ac_save_ifs"
 
3509
  ;;
 
3510
esac
 
3511
else
 
3512
  enable_shared=yes
 
3513
fi;
 
3514
# Check whether --enable-static or --disable-static was given.
 
3515
if test "${enable_static+set}" = set; then
 
3516
  enableval="$enable_static"
 
3517
  p=${PACKAGE-default}
 
3518
case $enableval in
 
3519
yes) enable_static=yes ;;
 
3520
no) enable_static=no ;;
 
3521
*)
 
3522
  enable_static=no
 
3523
  # Look at the argument we got.  We use all the common list separators.
 
3524
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3525
  for pkg in $enableval; do
 
3526
    if test "X$pkg" = "X$p"; then
 
3527
      enable_static=yes
 
3528
    fi
 
3529
  done
 
3530
  IFS="$ac_save_ifs"
 
3531
  ;;
 
3532
esac
 
3533
else
 
3534
  enable_static=yes
 
3535
fi;
 
3536
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3537
if test "${enable_fast_install+set}" = set; then
 
3538
  enableval="$enable_fast_install"
 
3539
  p=${PACKAGE-default}
 
3540
case $enableval in
 
3541
yes) enable_fast_install=yes ;;
 
3542
no) enable_fast_install=no ;;
 
3543
*)
 
3544
  enable_fast_install=no
 
3545
  # Look at the argument we got.  We use all the common list separators.
 
3546
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
3547
  for pkg in $enableval; do
 
3548
    if test "X$pkg" = "X$p"; then
 
3549
      enable_fast_install=yes
 
3550
    fi
 
3551
  done
 
3552
  IFS="$ac_save_ifs"
 
3553
  ;;
 
3554
esac
 
3555
else
 
3556
  enable_fast_install=yes
 
3557
fi;
 
3558
# Find the correct PATH separator.  Usually this is `:', but
 
3559
# DJGPP uses `;' like DOS.
 
3560
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
3561
  UNAME=${UNAME-`uname 2>/dev/null`}
 
3562
  case X$UNAME in
 
3563
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
3564
    *)     lt_cv_sys_path_separator=':' ;;
 
3565
  esac
 
3566
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
3567
fi
 
3568
 
 
3569
 
 
3570
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3571
if test "${with_gnu_ld+set}" = set; then
 
3572
  withval="$with_gnu_ld"
 
3573
  test "$withval" = no || with_gnu_ld=yes
 
3574
else
 
3575
  with_gnu_ld=no
 
3576
fi;
 
3577
ac_prog=ld
 
3578
if test "$GCC" = yes; then
 
3579
  # Check if gcc -print-prog-name=ld gives a path.
 
3580
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
3581
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
3582
  case $host in
 
3583
  *-*-mingw*)
 
3584
    # gcc leaves a trailing carriage return which upsets mingw
 
3585
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3586
  *)
 
3587
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3588
  esac
 
3589
  case $ac_prog in
 
3590
    # Accept absolute paths.
 
3591
    [\\/]* | [A-Za-z]:[\\/]*)
 
3592
      re_direlt='/[^/][^/]*/\.\./'
 
3593
      # Canonicalize the path of ld
 
3594
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3595
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3596
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3597
      done
 
3598
      test -z "$LD" && LD="$ac_prog"
 
3599
      ;;
 
3600
  "")
 
3601
    # If it fails, then pretend we aren't using GCC.
 
3602
    ac_prog=ld
 
3603
    ;;
 
3604
  *)
 
3605
    # If it is relative, then search for the first ld in PATH.
 
3606
    with_gnu_ld=unknown
 
3607
    ;;
 
3608
  esac
 
3609
elif test "$with_gnu_ld" = yes; then
 
3610
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3611
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3612
else
 
3613
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3614
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3615
fi
 
3616
if test "${lt_cv_path_LD+set}" = set; then
 
3617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3618
else
 
3619
  if test -z "$LD"; then
 
3620
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3621
  for ac_dir in $PATH; do
 
3622
    test -z "$ac_dir" && ac_dir=.
 
3623
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3624
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3625
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3626
      # but apparently some GNU ld's only accept -v.
 
3627
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3628
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3629
        test "$with_gnu_ld" != no && break
 
3630
      else
 
3631
        test "$with_gnu_ld" != yes && break
 
3632
      fi
 
3633
    fi
 
3634
  done
 
3635
  IFS="$ac_save_ifs"
 
3636
else
 
3637
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3638
fi
 
3639
fi
 
3640
 
 
3641
LD="$lt_cv_path_LD"
 
3642
if test -n "$LD"; then
 
3643
  echo "$as_me:$LINENO: result: $LD" >&5
 
3644
echo "${ECHO_T}$LD" >&6
 
3645
else
 
3646
  echo "$as_me:$LINENO: result: no" >&5
 
3647
echo "${ECHO_T}no" >&6
 
3648
fi
 
3649
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3650
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3651
   { (exit 1); exit 1; }; }
 
3652
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3653
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3654
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3656
else
 
3657
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3658
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3659
  lt_cv_prog_gnu_ld=yes
 
3660
else
 
3661
  lt_cv_prog_gnu_ld=no
 
3662
fi
 
3663
fi
 
3664
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3665
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3666
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3667
 
 
3668
 
 
3669
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3670
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3671
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3673
else
 
3674
  lt_cv_ld_reload_flag='-r'
 
3675
fi
 
3676
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3677
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3678
reload_flag=$lt_cv_ld_reload_flag
 
3679
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
3680
 
 
3681
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3682
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3683
if test "${lt_cv_path_NM+set}" = set; then
 
3684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3685
else
 
3686
  if test -n "$NM"; then
 
3687
  # Let the user override the test.
 
3688
  lt_cv_path_NM="$NM"
 
3689
else
 
3690
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3691
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3692
    test -z "$ac_dir" && ac_dir=.
 
3693
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
 
3694
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
3695
      # Check to see if the nm accepts a BSD-compat flag.
 
3696
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3697
      #   nm: unknown option "B" ignored
 
3698
      # Tru64's nm complains that /dev/null is an invalid object file
 
3699
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
3700
        lt_cv_path_NM="$tmp_nm -B"
 
3701
        break
 
3702
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
3703
        lt_cv_path_NM="$tmp_nm -p"
 
3704
        break
 
3705
      else
 
3706
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3707
        continue # so that we can try to find one that supports BSD flags
 
3708
      fi
 
3709
    fi
 
3710
  done
 
3711
  IFS="$ac_save_ifs"
 
3712
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3713
fi
 
3714
fi
 
3715
 
 
3716
NM="$lt_cv_path_NM"
 
3717
echo "$as_me:$LINENO: result: $NM" >&5
 
3718
echo "${ECHO_T}$NM" >&6
 
3719
 
 
3720
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3721
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3722
if test "${lt_cv_path_SED+set}" = set; then
 
3723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3724
else
 
3725
  # Loop through the user's path and test for sed and gsed.
 
3726
# Then use that list of sed's as ones to test for truncation.
 
3727
as_executable_p="test -f"
 
3728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3729
for as_dir in $PATH
 
3730
do
 
3731
  IFS=$as_save_IFS
 
3732
  test -z "$as_dir" && as_dir=.
 
3733
  for ac_prog in sed gsed; do
 
3734
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3735
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3736
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
 
3737
      fi
 
3738
    done
 
3739
  done
 
3740
done
 
3741
 
 
3742
  # Create a temporary directory, and hook for its removal unless debugging.
 
3743
$debug ||
 
3744
{
 
3745
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
3746
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
3747
}
 
3748
 
 
3749
# Create a (secure) tmp directory for tmp files.
 
3750
: ${TMPDIR=/tmp}
 
3751
{
 
3752
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
 
3753
  test -n "$tmp" && test -d "$tmp"
 
3754
}  ||
 
3755
{
 
3756
  tmp=$TMPDIR/sed$$-$RANDOM
 
3757
  (umask 077 && mkdir $tmp)
 
3758
} ||
 
3759
{
 
3760
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
3761
   { (exit 1); exit 1; }
 
3762
}
 
3763
  _max=0
 
3764
  _count=0
 
3765
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3766
  # along with /bin/sed that truncates output.
 
3767
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
 
3768
    test ! -f ${_sed} && break
 
3769
    cat /dev/null > "$tmp/sed.in"
 
3770
    _count=0
 
3771
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
 
3772
    # Check for GNU sed and select it if it is found.
 
3773
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
 
3774
      lt_cv_path_SED=${_sed}
 
3775
      break
 
3776
    fi
 
3777
    while true; do
 
3778
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
 
3779
      mv "$tmp/sed.tmp" "$tmp/sed.in"
 
3780
      cp "$tmp/sed.in" "$tmp/sed.nl"
 
3781
      echo >>"$tmp/sed.nl"
 
3782
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
 
3783
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
 
3784
      # 40000 chars as input seems more than enough
 
3785
      test $_count -gt 10 && break
 
3786
      _count=`expr $_count + 1`
 
3787
      if test $_count -gt $_max; then
 
3788
        _max=$_count
 
3789
        lt_cv_path_SED=$_sed
 
3790
      fi
 
3791
    done
 
3792
  done
 
3793
  rm -rf "$tmp"
 
3794
 
 
3795
fi
 
3796
 
 
3797
if test "X$SED" != "X"; then
 
3798
  lt_cv_path_SED=$SED
 
3799
else
 
3800
  SED=$lt_cv_path_SED
 
3801
fi
 
3802
echo "$as_me:$LINENO: result: $SED" >&5
 
3803
echo "${ECHO_T}$SED" >&6
 
3804
 
 
3805
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3806
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3807
LN_S=$as_ln_s
 
3808
if test "$LN_S" = "ln -s"; then
 
3809
  echo "$as_me:$LINENO: result: yes" >&5
 
3810
echo "${ECHO_T}yes" >&6
 
3811
else
 
3812
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3813
echo "${ECHO_T}no, using $LN_S" >&6
 
3814
fi
 
3815
 
 
3816
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3817
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3818
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3820
else
 
3821
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3822
lt_cv_file_magic_test_file=
 
3823
lt_cv_deplibs_check_method='unknown'
 
3824
# Need to set the preceding variable on all platforms that support
 
3825
# interlibrary dependencies.
 
3826
# 'none' -- dependencies not supported.
 
3827
# `unknown' -- same as none, but documents that we really don't know.
 
3828
# 'pass_all' -- all dependencies passed with no checks.
 
3829
# 'test_compile' -- check by making test program.
 
3830
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3831
# which responds to the $file_magic_cmd with a given egrep regex.
 
3832
# If you have `file' or equivalent on your system and you're not sure
 
3833
# whether `pass_all' will *always* work, you probably want this one.
 
3834
 
 
3835
case $host_os in
 
3836
aix4* | aix5*)
 
3837
  lt_cv_deplibs_check_method=pass_all
 
3838
  ;;
 
3839
 
 
3840
beos*)
 
3841
  lt_cv_deplibs_check_method=pass_all
 
3842
  ;;
 
3843
 
 
3844
bsdi4*)
 
3845
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3846
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3847
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3848
  ;;
 
3849
 
 
3850
cygwin* | mingw* | pw32*)
 
3851
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3852
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3853
  ;;
 
3854
 
 
3855
darwin* | rhapsody*)
 
3856
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
3857
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3858
  case "$host_os" in
 
3859
  rhapsody* | darwin1.[012])
 
3860
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
3861
    ;;
 
3862
  *) # Darwin 1.3 on
 
3863
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
3864
    ;;
 
3865
  esac
 
3866
  ;;
 
3867
 
 
3868
freebsd*)
 
3869
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3870
    case $host_cpu in
 
3871
    i*86 )
 
3872
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3873
      # Let's accept both of them until this is cleared up.
 
3874
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3875
      lt_cv_file_magic_cmd=/usr/bin/file
 
3876
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3877
      ;;
 
3878
    esac
 
3879
  else
 
3880
    lt_cv_deplibs_check_method=pass_all
 
3881
  fi
 
3882
  ;;
 
3883
 
 
3884
gnu*)
 
3885
  lt_cv_deplibs_check_method=pass_all
 
3886
  ;;
 
3887
 
 
3888
hpux10.20*|hpux11*)
 
3889
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3890
  lt_cv_file_magic_cmd=/usr/bin/file
 
3891
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3892
  ;;
 
3893
 
 
3894
irix5* | irix6* | nonstopux*)
 
3895
  case $host_os in
 
3896
  irix5* | nonstopux*)
 
3897
    # this will be overridden with pass_all, but let us keep it just in case
 
3898
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
3899
    ;;
 
3900
  *)
 
3901
    case $LD in
 
3902
    *-32|*"-32 ") libmagic=32-bit;;
 
3903
    *-n32|*"-n32 ") libmagic=N32;;
 
3904
    *-64|*"-64 ") libmagic=64-bit;;
 
3905
    *) libmagic=never-match;;
 
3906
    esac
 
3907
    # this will be overridden with pass_all, but let us keep it just in case
 
3908
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
3909
    ;;
 
3910
  esac
 
3911
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
3912
  lt_cv_deplibs_check_method=pass_all
 
3913
  ;;
 
3914
 
 
3915
# This must be Linux ELF.
 
3916
linux-gnu*)
 
3917
  case $host_cpu in
 
3918
  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
 
3919
    lt_cv_deplibs_check_method=pass_all ;;
 
3920
  *)
 
3921
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
3922
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
3923
  esac
 
3924
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
3925
  ;;
 
3926
 
 
3927
netbsd*)
 
3928
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3929
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
3930
  else
 
3931
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
3932
  fi
 
3933
  ;;
 
3934
 
 
3935
newos6*)
 
3936
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3937
  lt_cv_file_magic_cmd=/usr/bin/file
 
3938
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3939
  ;;
 
3940
 
 
3941
openbsd*)
 
3942
  lt_cv_file_magic_cmd=/usr/bin/file
 
3943
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3944
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3945
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3946
  else
 
3947
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3948
  fi
 
3949
  ;;
 
3950
 
 
3951
osf3* | osf4* | osf5*)
 
3952
  # this will be overridden with pass_all, but let us keep it just in case
 
3953
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
3954
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3955
  lt_cv_deplibs_check_method=pass_all
 
3956
  ;;
 
3957
 
 
3958
sco3.2v5*)
 
3959
  lt_cv_deplibs_check_method=pass_all
 
3960
  ;;
 
3961
 
 
3962
solaris*)
 
3963
  lt_cv_deplibs_check_method=pass_all
 
3964
  lt_cv_file_magic_test_file=/lib/libc.so
 
3965
  ;;
 
3966
 
 
3967
sysv5uw[78]* | sysv4*uw2*)
 
3968
  lt_cv_deplibs_check_method=pass_all
 
3969
  ;;
 
3970
 
 
3971
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3972
  case $host_vendor in
 
3973
  motorola)
 
3974
    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]'
 
3975
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3976
    ;;
 
3977
  ncr)
 
3978
    lt_cv_deplibs_check_method=pass_all
 
3979
    ;;
 
3980
  sequent)
 
3981
    lt_cv_file_magic_cmd='/bin/file'
 
3982
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3983
    ;;
 
3984
  sni)
 
3985
    lt_cv_file_magic_cmd='/bin/file'
 
3986
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3987
    lt_cv_file_magic_test_file=/lib/libc.so
 
3988
    ;;
 
3989
  siemens)
 
3990
    lt_cv_deplibs_check_method=pass_all
 
3991
    ;;
 
3992
  esac
 
3993
  ;;
 
3994
esac
 
3995
 
 
3996
fi
 
3997
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3998
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3999
file_magic_cmd=$lt_cv_file_magic_cmd
 
4000
deplibs_check_method=$lt_cv_deplibs_check_method
 
4001
 
 
4002
 
 
4003
 
 
4004
 
 
4005
 
 
4006
 
 
4007
 
 
4008
 
 
4009
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
4010
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
 
4011
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
4012
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
4013
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4014
else
 
4015
 
 
4016
# These are sane defaults that work on at least a few old systems.
 
4017
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
4018
 
 
4019
# Character class describing NM global symbol codes.
 
4020
symcode='[BCDEGRST]'
 
4021
 
 
4022
# Regexp to match symbols that can be accessed directly from C.
 
4023
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
4024
 
 
4025
# Transform the above into a raw symbol and a C symbol.
 
4026
symxfrm='\1 \2\3 \3'
 
4027
 
 
4028
# Transform an extracted symbol line into a proper C declaration
 
4029
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
4030
 
 
4031
# Transform an extracted symbol line into symbol name and symbol address
 
4032
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4033
 
 
4034
# Define system-specific variables.
 
4035
case $host_os in
 
4036
aix*)
 
4037
  symcode='[BCDT]'
 
4038
  ;;
 
4039
cygwin* | mingw* | pw32*)
 
4040
  symcode='[ABCDGISTW]'
 
4041
  ;;
 
4042
hpux*) # Its linker distinguishes data from code symbols
 
4043
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4044
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4045
  ;;
 
4046
irix* | nonstopux*)
 
4047
  symcode='[BCDEGRST]'
 
4048
  ;;
 
4049
osf*)
 
4050
  symcode='[BCDEGQRST]'
 
4051
  ;;
 
4052
solaris* | sysv5*)
 
4053
  symcode='[BDT]'
 
4054
  ;;
 
4055
sysv4)
 
4056
  symcode='[DFNSTU]'
 
4057
  ;;
 
4058
esac
 
4059
 
 
4060
# Handle CRLF in mingw tool chain
 
4061
opt_cr=
 
4062
case $host_os in
 
4063
mingw*)
 
4064
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4065
  ;;
 
4066
esac
 
4067
 
 
4068
# If we're using GNU nm, then use its standard symbol codes.
 
4069
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 
4070
  symcode='[ABCDGISTW]'
 
4071
fi
 
4072
 
 
4073
# Try without a prefix undercore, then with it.
 
4074
for ac_symprfx in "" "_"; do
 
4075
 
 
4076
  # Write the raw and C identifiers.
 
4077
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4078
 
 
4079
  # Check to see that the pipe works correctly.
 
4080
  pipe_works=no
 
4081
  rm -f conftest*
 
4082
  cat > conftest.$ac_ext <<EOF
 
4083
#ifdef __cplusplus
 
4084
extern "C" {
 
4085
#endif
 
4086
char nm_test_var;
 
4087
void nm_test_func(){}
 
4088
#ifdef __cplusplus
 
4089
}
 
4090
#endif
 
4091
int main(){nm_test_var='a';nm_test_func();return(0);}
 
4092
EOF
 
4093
 
 
4094
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4095
  (eval $ac_compile) 2>&5
 
4096
  ac_status=$?
 
4097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4098
  (exit $ac_status); }; then
 
4099
    # Now try to grab the symbols.
 
4100
    nlist=conftest.nm
 
4101
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
4102
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
4103
  ac_status=$?
 
4104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4105
  (exit $ac_status); } && test -s "$nlist"; then
 
4106
      # Try sorting and uniquifying the output.
 
4107
      if sort "$nlist" | uniq > "$nlist"T; then
 
4108
        mv -f "$nlist"T "$nlist"
 
4109
      else
 
4110
        rm -f "$nlist"T
 
4111
      fi
 
4112
 
 
4113
      # Make sure that we snagged all the symbols we need.
 
4114
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 
4115
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
4116
          cat <<EOF > conftest.$ac_ext
 
4117
#ifdef __cplusplus
 
4118
extern "C" {
 
4119
#endif
 
4120
 
 
4121
EOF
 
4122
          # Now generate the symbol file.
 
4123
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
4124
 
 
4125
          cat <<EOF >> conftest.$ac_ext
 
4126
#if defined (__STDC__) && __STDC__
 
4127
# define lt_ptr void *
 
4128
#else
 
4129
# define lt_ptr char *
 
4130
# define const
 
4131
#endif
 
4132
 
 
4133
/* The mapping between symbol names and symbols. */
 
4134
const struct {
 
4135
  const char *name;
 
4136
  lt_ptr address;
 
4137
}
 
4138
lt_preloaded_symbols[] =
 
4139
{
 
4140
EOF
 
4141
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
4142
          cat <<\EOF >> conftest.$ac_ext
 
4143
  {0, (lt_ptr) 0}
 
4144
};
 
4145
 
 
4146
#ifdef __cplusplus
 
4147
}
 
4148
#endif
 
4149
EOF
 
4150
          # Now try linking the two files.
 
4151
          mv conftest.$ac_objext conftstm.$ac_objext
 
4152
          save_LIBS="$LIBS"
 
4153
          save_CFLAGS="$CFLAGS"
 
4154
          LIBS="conftstm.$ac_objext"
 
4155
          CFLAGS="$CFLAGS$no_builtin_flag"
 
4156
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4157
  (eval $ac_link) 2>&5
 
4158
  ac_status=$?
 
4159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4160
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
4161
            pipe_works=yes
 
4162
          fi
 
4163
          LIBS="$save_LIBS"
 
4164
          CFLAGS="$save_CFLAGS"
 
4165
        else
 
4166
          echo "cannot find nm_test_func in $nlist" >&5
 
4167
        fi
 
4168
      else
 
4169
        echo "cannot find nm_test_var in $nlist" >&5
 
4170
      fi
 
4171
    else
 
4172
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
4173
    fi
 
4174
  else
 
4175
    echo "$progname: failed program was:" >&5
 
4176
    cat conftest.$ac_ext >&5
 
4177
  fi
 
4178
  rm -f conftest* conftst*
 
4179
 
 
4180
  # Do not use the global_symbol_pipe unless it works.
 
4181
  if test "$pipe_works" = yes; then
 
4182
    break
 
4183
  else
 
4184
    lt_cv_sys_global_symbol_pipe=
 
4185
  fi
 
4186
done
 
4187
 
 
4188
fi
 
4189
 
 
4190
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 
4191
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
4192
  global_symbol_to_cdecl=
 
4193
  global_symbol_to_c_name_address=
 
4194
else
 
4195
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 
4196
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 
4197
fi
 
4198
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
 
4199
then
 
4200
  echo "$as_me:$LINENO: result: failed" >&5
 
4201
echo "${ECHO_T}failed" >&6
 
4202
else
 
4203
  echo "$as_me:$LINENO: result: ok" >&5
 
4204
echo "${ECHO_T}ok" >&6
 
4205
fi
 
4206
 
 
4207
ac_ext=c
 
4208
ac_cpp='$CPP $CPPFLAGS'
 
4209
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4210
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4211
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4212
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4213
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4214
# On Suns, sometimes $CPP names a directory.
 
4215
if test -n "$CPP" && test -d "$CPP"; then
 
4216
  CPP=
 
4217
fi
 
4218
if test -z "$CPP"; then
 
4219
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4220
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4221
else
 
4222
      # Double quotes because CPP needs to be expanded
 
4223
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4224
    do
 
4225
      ac_preproc_ok=false
 
4226
for ac_c_preproc_warn_flag in '' yes
 
4227
do
 
4228
  # Use a header file that comes with gcc, so configuring glibc
 
4229
  # with a fresh cross-compiler works.
 
4230
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4231
  # <limits.h> exists even on freestanding compilers.
 
4232
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4233
  # not just through cpp. "Syntax error" is here to catch this case.
 
4234
  cat >conftest.$ac_ext <<_ACEOF
 
4235
/* confdefs.h.  */
 
4236
_ACEOF
 
4237
cat confdefs.h >>conftest.$ac_ext
 
4238
cat >>conftest.$ac_ext <<_ACEOF
 
4239
/* end confdefs.h.  */
 
4240
#ifdef __STDC__
 
4241
# include <limits.h>
 
4242
#else
 
4243
# include <assert.h>
 
4244
#endif
 
4245
                     Syntax error
 
4246
_ACEOF
 
4247
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4248
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4249
  ac_status=$?
 
4250
  grep -v '^ *+' conftest.er1 >conftest.err
 
4251
  rm -f conftest.er1
 
4252
  cat conftest.err >&5
 
4253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4254
  (exit $ac_status); } >/dev/null; then
 
4255
  if test -s conftest.err; then
 
4256
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4257
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4258
  else
 
4259
    ac_cpp_err=
 
4260
  fi
 
4261
else
 
4262
  ac_cpp_err=yes
 
4263
fi
 
4264
if test -z "$ac_cpp_err"; then
 
4265
  :
 
4266
else
 
4267
  echo "$as_me: failed program was:" >&5
 
4268
sed 's/^/| /' conftest.$ac_ext >&5
 
4269
 
 
4270
  # Broken: fails on valid input.
 
4271
continue
 
4272
fi
 
4273
rm -f conftest.err conftest.$ac_ext
 
4274
 
 
4275
  # OK, works on sane cases.  Now check whether non-existent headers
 
4276
  # can be detected and how.
 
4277
  cat >conftest.$ac_ext <<_ACEOF
 
4278
/* confdefs.h.  */
 
4279
_ACEOF
 
4280
cat confdefs.h >>conftest.$ac_ext
 
4281
cat >>conftest.$ac_ext <<_ACEOF
 
4282
/* end confdefs.h.  */
 
4283
#include <ac_nonexistent.h>
 
4284
_ACEOF
 
4285
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4286
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4287
  ac_status=$?
 
4288
  grep -v '^ *+' conftest.er1 >conftest.err
 
4289
  rm -f conftest.er1
 
4290
  cat conftest.err >&5
 
4291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4292
  (exit $ac_status); } >/dev/null; then
 
4293
  if test -s conftest.err; then
 
4294
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4295
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4296
  else
 
4297
    ac_cpp_err=
 
4298
  fi
 
4299
else
 
4300
  ac_cpp_err=yes
 
4301
fi
 
4302
if test -z "$ac_cpp_err"; then
 
4303
  # Broken: success on invalid input.
 
4304
continue
 
4305
else
 
4306
  echo "$as_me: failed program was:" >&5
 
4307
sed 's/^/| /' conftest.$ac_ext >&5
 
4308
 
 
4309
  # Passes both tests.
 
4310
ac_preproc_ok=:
 
4311
break
 
4312
fi
 
4313
rm -f conftest.err conftest.$ac_ext
 
4314
 
 
4315
done
 
4316
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4317
rm -f conftest.err conftest.$ac_ext
 
4318
if $ac_preproc_ok; then
 
4319
  break
 
4320
fi
 
4321
 
 
4322
    done
 
4323
    ac_cv_prog_CPP=$CPP
 
4324
 
 
4325
fi
 
4326
  CPP=$ac_cv_prog_CPP
 
4327
else
 
4328
  ac_cv_prog_CPP=$CPP
 
4329
fi
 
4330
echo "$as_me:$LINENO: result: $CPP" >&5
 
4331
echo "${ECHO_T}$CPP" >&6
 
4332
ac_preproc_ok=false
 
4333
for ac_c_preproc_warn_flag in '' yes
 
4334
do
 
4335
  # Use a header file that comes with gcc, so configuring glibc
 
4336
  # with a fresh cross-compiler works.
 
4337
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4338
  # <limits.h> exists even on freestanding compilers.
 
4339
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4340
  # not just through cpp. "Syntax error" is here to catch this case.
 
4341
  cat >conftest.$ac_ext <<_ACEOF
 
4342
/* confdefs.h.  */
 
4343
_ACEOF
 
4344
cat confdefs.h >>conftest.$ac_ext
 
4345
cat >>conftest.$ac_ext <<_ACEOF
 
4346
/* end confdefs.h.  */
 
4347
#ifdef __STDC__
 
4348
# include <limits.h>
 
4349
#else
 
4350
# include <assert.h>
 
4351
#endif
 
4352
                     Syntax error
 
4353
_ACEOF
 
4354
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4355
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4356
  ac_status=$?
 
4357
  grep -v '^ *+' conftest.er1 >conftest.err
 
4358
  rm -f conftest.er1
 
4359
  cat conftest.err >&5
 
4360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4361
  (exit $ac_status); } >/dev/null; then
 
4362
  if test -s conftest.err; then
 
4363
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4364
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4365
  else
 
4366
    ac_cpp_err=
 
4367
  fi
 
4368
else
 
4369
  ac_cpp_err=yes
 
4370
fi
 
4371
if test -z "$ac_cpp_err"; then
 
4372
  :
 
4373
else
 
4374
  echo "$as_me: failed program was:" >&5
 
4375
sed 's/^/| /' conftest.$ac_ext >&5
 
4376
 
 
4377
  # Broken: fails on valid input.
 
4378
continue
 
4379
fi
 
4380
rm -f conftest.err conftest.$ac_ext
 
4381
 
 
4382
  # OK, works on sane cases.  Now check whether non-existent headers
 
4383
  # can be detected and how.
 
4384
  cat >conftest.$ac_ext <<_ACEOF
 
4385
/* confdefs.h.  */
 
4386
_ACEOF
 
4387
cat confdefs.h >>conftest.$ac_ext
 
4388
cat >>conftest.$ac_ext <<_ACEOF
 
4389
/* end confdefs.h.  */
 
4390
#include <ac_nonexistent.h>
 
4391
_ACEOF
 
4392
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4393
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4394
  ac_status=$?
 
4395
  grep -v '^ *+' conftest.er1 >conftest.err
 
4396
  rm -f conftest.er1
 
4397
  cat conftest.err >&5
 
4398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4399
  (exit $ac_status); } >/dev/null; then
 
4400
  if test -s conftest.err; then
 
4401
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4402
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4403
  else
 
4404
    ac_cpp_err=
 
4405
  fi
 
4406
else
 
4407
  ac_cpp_err=yes
 
4408
fi
 
4409
if test -z "$ac_cpp_err"; then
 
4410
  # Broken: success on invalid input.
 
4411
continue
 
4412
else
 
4413
  echo "$as_me: failed program was:" >&5
 
4414
sed 's/^/| /' conftest.$ac_ext >&5
 
4415
 
 
4416
  # Passes both tests.
 
4417
ac_preproc_ok=:
 
4418
break
 
4419
fi
 
4420
rm -f conftest.err conftest.$ac_ext
 
4421
 
 
4422
done
 
4423
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4424
rm -f conftest.err conftest.$ac_ext
 
4425
if $ac_preproc_ok; then
 
4426
  :
 
4427
else
 
4428
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4429
See \`config.log' for more details." >&5
 
4430
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4431
See \`config.log' for more details." >&2;}
 
4432
   { (exit 1); exit 1; }; }
 
4433
fi
 
4434
 
 
4435
ac_ext=c
 
4436
ac_cpp='$CPP $CPPFLAGS'
 
4437
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4438
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4439
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4440
 
 
4441
 
 
4442
echo "$as_me:$LINENO: checking for egrep" >&5
 
4443
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4444
if test "${ac_cv_prog_egrep+set}" = set; then
 
4445
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4446
else
 
4447
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4448
    then ac_cv_prog_egrep='grep -E'
 
4449
    else ac_cv_prog_egrep='egrep'
 
4450
    fi
 
4451
fi
 
4452
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4453
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4454
 EGREP=$ac_cv_prog_egrep
 
4455
 
 
4456
 
 
4457
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4458
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4459
if test "${ac_cv_header_stdc+set}" = set; then
 
4460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4461
else
 
4462
  cat >conftest.$ac_ext <<_ACEOF
 
4463
/* confdefs.h.  */
 
4464
_ACEOF
 
4465
cat confdefs.h >>conftest.$ac_ext
 
4466
cat >>conftest.$ac_ext <<_ACEOF
 
4467
/* end confdefs.h.  */
 
4468
#include <stdlib.h>
 
4469
#include <stdarg.h>
 
4470
#include <string.h>
 
4471
#include <float.h>
 
4472
 
 
4473
int
 
4474
main ()
 
4475
{
 
4476
 
 
4477
  ;
 
4478
  return 0;
 
4479
}
 
4480
_ACEOF
 
4481
rm -f conftest.$ac_objext
 
4482
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4483
  (eval $ac_compile) 2>conftest.er1
 
4484
  ac_status=$?
 
4485
  grep -v '^ *+' conftest.er1 >conftest.err
 
4486
  rm -f conftest.er1
 
4487
  cat conftest.err >&5
 
4488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4489
  (exit $ac_status); } &&
 
4490
         { ac_try='test -z "$ac_c_werror_flag"
 
4491
                         || test ! -s conftest.err'
 
4492
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4493
  (eval $ac_try) 2>&5
 
4494
  ac_status=$?
 
4495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4496
  (exit $ac_status); }; } &&
 
4497
         { ac_try='test -s conftest.$ac_objext'
 
4498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4499
  (eval $ac_try) 2>&5
 
4500
  ac_status=$?
 
4501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4502
  (exit $ac_status); }; }; then
 
4503
  ac_cv_header_stdc=yes
 
4504
else
 
4505
  echo "$as_me: failed program was:" >&5
 
4506
sed 's/^/| /' conftest.$ac_ext >&5
 
4507
 
 
4508
ac_cv_header_stdc=no
 
4509
fi
 
4510
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4511
 
 
4512
if test $ac_cv_header_stdc = yes; then
 
4513
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4514
  cat >conftest.$ac_ext <<_ACEOF
 
4515
/* confdefs.h.  */
 
4516
_ACEOF
 
4517
cat confdefs.h >>conftest.$ac_ext
 
4518
cat >>conftest.$ac_ext <<_ACEOF
 
4519
/* end confdefs.h.  */
 
4520
#include <string.h>
 
4521
 
 
4522
_ACEOF
 
4523
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4524
  $EGREP "memchr" >/dev/null 2>&1; then
 
4525
  :
 
4526
else
 
4527
  ac_cv_header_stdc=no
 
4528
fi
 
4529
rm -f conftest*
 
4530
 
 
4531
fi
 
4532
 
 
4533
if test $ac_cv_header_stdc = yes; then
 
4534
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4535
  cat >conftest.$ac_ext <<_ACEOF
 
4536
/* confdefs.h.  */
 
4537
_ACEOF
 
4538
cat confdefs.h >>conftest.$ac_ext
 
4539
cat >>conftest.$ac_ext <<_ACEOF
 
4540
/* end confdefs.h.  */
 
4541
#include <stdlib.h>
 
4542
 
 
4543
_ACEOF
 
4544
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4545
  $EGREP "free" >/dev/null 2>&1; then
 
4546
  :
 
4547
else
 
4548
  ac_cv_header_stdc=no
 
4549
fi
 
4550
rm -f conftest*
 
4551
 
 
4552
fi
 
4553
 
 
4554
if test $ac_cv_header_stdc = yes; then
 
4555
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4556
  if test "$cross_compiling" = yes; then
 
4557
  :
 
4558
else
 
4559
  cat >conftest.$ac_ext <<_ACEOF
 
4560
/* confdefs.h.  */
 
4561
_ACEOF
 
4562
cat confdefs.h >>conftest.$ac_ext
 
4563
cat >>conftest.$ac_ext <<_ACEOF
 
4564
/* end confdefs.h.  */
 
4565
#include <ctype.h>
 
4566
#if ((' ' & 0x0FF) == 0x020)
 
4567
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4568
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4569
#else
 
4570
# define ISLOWER(c) \
 
4571
                   (('a' <= (c) && (c) <= 'i') \
 
4572
                     || ('j' <= (c) && (c) <= 'r') \
 
4573
                     || ('s' <= (c) && (c) <= 'z'))
 
4574
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4575
#endif
 
4576
 
 
4577
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4578
int
 
4579
main ()
 
4580
{
 
4581
  int i;
 
4582
  for (i = 0; i < 256; i++)
 
4583
    if (XOR (islower (i), ISLOWER (i))
 
4584
        || toupper (i) != TOUPPER (i))
 
4585
      exit(2);
 
4586
  exit (0);
 
4587
}
 
4588
_ACEOF
 
4589
rm -f conftest$ac_exeext
 
4590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4591
  (eval $ac_link) 2>&5
 
4592
  ac_status=$?
 
4593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4594
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4596
  (eval $ac_try) 2>&5
 
4597
  ac_status=$?
 
4598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4599
  (exit $ac_status); }; }; then
 
4600
  :
 
4601
else
 
4602
  echo "$as_me: program exited with status $ac_status" >&5
 
4603
echo "$as_me: failed program was:" >&5
 
4604
sed 's/^/| /' conftest.$ac_ext >&5
 
4605
 
 
4606
( exit $ac_status )
 
4607
ac_cv_header_stdc=no
 
4608
fi
 
4609
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4610
fi
 
4611
fi
 
4612
fi
 
4613
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4614
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4615
if test $ac_cv_header_stdc = yes; then
 
4616
 
 
4617
cat >>confdefs.h <<\_ACEOF
 
4618
#define STDC_HEADERS 1
 
4619
_ACEOF
 
4620
 
 
4621
fi
 
4622
 
 
4623
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4624
 
 
4625
 
 
4626
 
 
4627
 
 
4628
 
 
4629
 
 
4630
 
 
4631
 
 
4632
 
 
4633
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4634
                  inttypes.h stdint.h unistd.h
 
4635
do
 
4636
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4637
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4638
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4639
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4640
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4641
else
 
4642
  cat >conftest.$ac_ext <<_ACEOF
 
4643
/* confdefs.h.  */
 
4644
_ACEOF
 
4645
cat confdefs.h >>conftest.$ac_ext
 
4646
cat >>conftest.$ac_ext <<_ACEOF
 
4647
/* end confdefs.h.  */
 
4648
$ac_includes_default
 
4649
 
 
4650
#include <$ac_header>
 
4651
_ACEOF
 
4652
rm -f conftest.$ac_objext
 
4653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4654
  (eval $ac_compile) 2>conftest.er1
 
4655
  ac_status=$?
 
4656
  grep -v '^ *+' conftest.er1 >conftest.err
 
4657
  rm -f conftest.er1
 
4658
  cat conftest.err >&5
 
4659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4660
  (exit $ac_status); } &&
 
4661
         { ac_try='test -z "$ac_c_werror_flag"
 
4662
                         || test ! -s conftest.err'
 
4663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4664
  (eval $ac_try) 2>&5
 
4665
  ac_status=$?
 
4666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4667
  (exit $ac_status); }; } &&
 
4668
         { ac_try='test -s conftest.$ac_objext'
 
4669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4670
  (eval $ac_try) 2>&5
 
4671
  ac_status=$?
 
4672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4673
  (exit $ac_status); }; }; then
 
4674
  eval "$as_ac_Header=yes"
 
4675
else
 
4676
  echo "$as_me: failed program was:" >&5
 
4677
sed 's/^/| /' conftest.$ac_ext >&5
 
4678
 
 
4679
eval "$as_ac_Header=no"
 
4680
fi
 
4681
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4682
fi
 
4683
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4684
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4685
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4686
  cat >>confdefs.h <<_ACEOF
 
4687
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4688
_ACEOF
 
4689
 
 
4690
fi
 
4691
 
 
4692
done
 
4693
 
 
4694
 
 
4695
 
 
4696
for ac_header in dlfcn.h
 
4697
do
 
4698
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4699
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4700
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4701
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4702
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4704
fi
 
4705
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4706
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4707
else
 
4708
  # Is the header compilable?
 
4709
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4710
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4711
cat >conftest.$ac_ext <<_ACEOF
 
4712
/* confdefs.h.  */
 
4713
_ACEOF
 
4714
cat confdefs.h >>conftest.$ac_ext
 
4715
cat >>conftest.$ac_ext <<_ACEOF
 
4716
/* end confdefs.h.  */
 
4717
$ac_includes_default
 
4718
#include <$ac_header>
 
4719
_ACEOF
 
4720
rm -f conftest.$ac_objext
 
4721
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4722
  (eval $ac_compile) 2>conftest.er1
 
4723
  ac_status=$?
 
4724
  grep -v '^ *+' conftest.er1 >conftest.err
 
4725
  rm -f conftest.er1
 
4726
  cat conftest.err >&5
 
4727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4728
  (exit $ac_status); } &&
 
4729
         { ac_try='test -z "$ac_c_werror_flag"
 
4730
                         || test ! -s conftest.err'
 
4731
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4732
  (eval $ac_try) 2>&5
 
4733
  ac_status=$?
 
4734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4735
  (exit $ac_status); }; } &&
 
4736
         { ac_try='test -s conftest.$ac_objext'
 
4737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4738
  (eval $ac_try) 2>&5
 
4739
  ac_status=$?
 
4740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4741
  (exit $ac_status); }; }; then
 
4742
  ac_header_compiler=yes
 
4743
else
 
4744
  echo "$as_me: failed program was:" >&5
 
4745
sed 's/^/| /' conftest.$ac_ext >&5
 
4746
 
 
4747
ac_header_compiler=no
 
4748
fi
 
4749
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4750
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4751
echo "${ECHO_T}$ac_header_compiler" >&6
 
4752
 
 
4753
# Is the header present?
 
4754
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4755
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4756
cat >conftest.$ac_ext <<_ACEOF
 
4757
/* confdefs.h.  */
 
4758
_ACEOF
 
4759
cat confdefs.h >>conftest.$ac_ext
 
4760
cat >>conftest.$ac_ext <<_ACEOF
 
4761
/* end confdefs.h.  */
 
4762
#include <$ac_header>
 
4763
_ACEOF
 
4764
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4765
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4766
  ac_status=$?
 
4767
  grep -v '^ *+' conftest.er1 >conftest.err
 
4768
  rm -f conftest.er1
 
4769
  cat conftest.err >&5
 
4770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4771
  (exit $ac_status); } >/dev/null; then
 
4772
  if test -s conftest.err; then
 
4773
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4774
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4775
  else
 
4776
    ac_cpp_err=
 
4777
  fi
 
4778
else
 
4779
  ac_cpp_err=yes
 
4780
fi
 
4781
if test -z "$ac_cpp_err"; then
 
4782
  ac_header_preproc=yes
 
4783
else
 
4784
  echo "$as_me: failed program was:" >&5
 
4785
sed 's/^/| /' conftest.$ac_ext >&5
 
4786
 
 
4787
  ac_header_preproc=no
 
4788
fi
 
4789
rm -f conftest.err conftest.$ac_ext
 
4790
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4791
echo "${ECHO_T}$ac_header_preproc" >&6
 
4792
 
 
4793
# So?  What about this header?
 
4794
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4795
  yes:no: )
 
4796
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4797
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4798
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4799
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4800
    ac_header_preproc=yes
 
4801
    ;;
 
4802
  no:yes:* )
 
4803
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4804
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4805
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4806
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4807
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4808
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4809
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4810
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4811
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4812
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4813
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4814
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4815
    (
 
4816
      cat <<\_ASBOX
 
4817
## ------------------------------------------ ##
 
4818
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4819
## ------------------------------------------ ##
 
4820
_ASBOX
 
4821
    ) |
 
4822
      sed "s/^/$as_me: WARNING:     /" >&2
 
4823
    ;;
 
4824
esac
 
4825
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4826
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4827
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4828
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4829
else
 
4830
  eval "$as_ac_Header=\$ac_header_preproc"
 
4831
fi
 
4832
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4833
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4834
 
 
4835
fi
 
4836
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4837
  cat >>confdefs.h <<_ACEOF
 
4838
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4839
_ACEOF
 
4840
 
 
4841
fi
 
4842
 
 
4843
done
 
4844
 
 
4845
 
 
4846
 
 
4847
 
 
4848
 
 
4849
 
 
4850
# Only perform the check for file, if the check method requires it
 
4851
case $deplibs_check_method in
 
4852
file_magic*)
 
4853
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
4854
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
4855
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
4856
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
4857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4858
else
 
4859
  case $MAGIC_CMD in
 
4860
  /*)
 
4861
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4862
  ;;
 
4863
  ?:/*)
 
4864
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
4865
  ;;
 
4866
  *)
 
4867
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
4868
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4869
  ac_dummy="/usr/bin:$PATH"
 
4870
  for ac_dir in $ac_dummy; do
 
4871
    test -z "$ac_dir" && ac_dir=.
 
4872
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
4873
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
4874
      if test -n "$file_magic_test_file"; then
 
4875
        case $deplibs_check_method in
 
4876
        "file_magic "*)
 
4877
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4878
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4879
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4880
            egrep "$file_magic_regex" > /dev/null; then
 
4881
            :
 
4882
          else
 
4883
            cat <<EOF 1>&2
 
4884
 
 
4885
*** Warning: the command libtool uses to detect shared libraries,
 
4886
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4887
*** The result is that libtool may fail to recognize shared libraries
 
4888
*** as such.  This will affect the creation of libtool libraries that
 
4889
*** depend on shared libraries, but programs linked with such libtool
 
4890
*** libraries will work regardless of this problem.  Nevertheless, you
 
4891
*** may want to report the problem to your system manager and/or to
 
4892
*** bug-libtool@gnu.org
 
4893
 
 
4894
EOF
 
4895
          fi ;;
 
4896
        esac
 
4897
      fi
 
4898
      break
 
4899
    fi
 
4900
  done
 
4901
  IFS="$ac_save_ifs"
 
4902
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
4903
  ;;
 
4904
esac
 
4905
fi
 
4906
 
 
4907
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4908
if test -n "$MAGIC_CMD"; then
 
4909
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
4910
echo "${ECHO_T}$MAGIC_CMD" >&6
 
4911
else
 
4912
  echo "$as_me:$LINENO: result: no" >&5
 
4913
echo "${ECHO_T}no" >&6
 
4914
fi
 
4915
 
 
4916
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
4917
  if test -n "$ac_tool_prefix"; then
 
4918
    echo "$as_me:$LINENO: checking for file" >&5
 
4919
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
4920
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
4921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4922
else
 
4923
  case $MAGIC_CMD in
 
4924
  /*)
 
4925
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
4926
  ;;
 
4927
  ?:/*)
 
4928
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
4929
  ;;
 
4930
  *)
 
4931
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
4932
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
4933
  ac_dummy="/usr/bin:$PATH"
 
4934
  for ac_dir in $ac_dummy; do
 
4935
    test -z "$ac_dir" && ac_dir=.
 
4936
    if test -f $ac_dir/file; then
 
4937
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
4938
      if test -n "$file_magic_test_file"; then
 
4939
        case $deplibs_check_method in
 
4940
        "file_magic "*)
 
4941
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
4942
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4943
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
4944
            egrep "$file_magic_regex" > /dev/null; then
 
4945
            :
 
4946
          else
 
4947
            cat <<EOF 1>&2
 
4948
 
 
4949
*** Warning: the command libtool uses to detect shared libraries,
 
4950
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
4951
*** The result is that libtool may fail to recognize shared libraries
 
4952
*** as such.  This will affect the creation of libtool libraries that
 
4953
*** depend on shared libraries, but programs linked with such libtool
 
4954
*** libraries will work regardless of this problem.  Nevertheless, you
 
4955
*** may want to report the problem to your system manager and/or to
 
4956
*** bug-libtool@gnu.org
 
4957
 
 
4958
EOF
 
4959
          fi ;;
 
4960
        esac
 
4961
      fi
 
4962
      break
 
4963
    fi
 
4964
  done
 
4965
  IFS="$ac_save_ifs"
 
4966
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
4967
  ;;
 
4968
esac
 
4969
fi
 
4970
 
 
4971
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
4972
if test -n "$MAGIC_CMD"; then
 
4973
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
4974
echo "${ECHO_T}$MAGIC_CMD" >&6
 
4975
else
 
4976
  echo "$as_me:$LINENO: result: no" >&5
 
4977
echo "${ECHO_T}no" >&6
 
4978
fi
 
4979
 
 
4980
  else
 
4981
    MAGIC_CMD=:
 
4982
  fi
 
4983
fi
 
4984
 
 
4985
  fi
 
4986
  ;;
 
4987
esac
 
4988
 
 
4989
if test -n "$ac_tool_prefix"; then
 
4990
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
4991
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
4992
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4993
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4994
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
4995
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4996
else
 
4997
  if test -n "$RANLIB"; then
 
4998
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
4999
else
 
5000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5001
for as_dir in $PATH
 
5002
do
 
5003
  IFS=$as_save_IFS
 
5004
  test -z "$as_dir" && as_dir=.
 
5005
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5006
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5007
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5008
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5009
    break 2
 
5010
  fi
 
5011
done
 
5012
done
 
5013
 
 
5014
fi
 
5015
fi
 
5016
RANLIB=$ac_cv_prog_RANLIB
 
5017
if test -n "$RANLIB"; then
 
5018
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5019
echo "${ECHO_T}$RANLIB" >&6
 
5020
else
 
5021
  echo "$as_me:$LINENO: result: no" >&5
 
5022
echo "${ECHO_T}no" >&6
 
5023
fi
 
5024
 
 
5025
fi
 
5026
if test -z "$ac_cv_prog_RANLIB"; then
 
5027
  ac_ct_RANLIB=$RANLIB
 
5028
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5029
set dummy ranlib; ac_word=$2
 
5030
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5031
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5032
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5034
else
 
5035
  if test -n "$ac_ct_RANLIB"; then
 
5036
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5037
else
 
5038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5039
for as_dir in $PATH
 
5040
do
 
5041
  IFS=$as_save_IFS
 
5042
  test -z "$as_dir" && as_dir=.
 
5043
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5044
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5045
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5046
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5047
    break 2
 
5048
  fi
 
5049
done
 
5050
done
 
5051
 
 
5052
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5053
fi
 
5054
fi
 
5055
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5056
if test -n "$ac_ct_RANLIB"; then
 
5057
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5058
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5059
else
 
5060
  echo "$as_me:$LINENO: result: no" >&5
 
5061
echo "${ECHO_T}no" >&6
 
5062
fi
 
5063
 
 
5064
  RANLIB=$ac_ct_RANLIB
 
5065
else
 
5066
  RANLIB="$ac_cv_prog_RANLIB"
 
5067
fi
 
5068
 
 
5069
if test -n "$ac_tool_prefix"; then
 
5070
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5071
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5072
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5073
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5074
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5076
else
 
5077
  if test -n "$STRIP"; then
 
5078
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5079
else
 
5080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5081
for as_dir in $PATH
 
5082
do
 
5083
  IFS=$as_save_IFS
 
5084
  test -z "$as_dir" && as_dir=.
 
5085
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5086
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5087
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5088
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5089
    break 2
 
5090
  fi
 
5091
done
 
5092
done
 
5093
 
 
5094
fi
 
5095
fi
 
5096
STRIP=$ac_cv_prog_STRIP
 
5097
if test -n "$STRIP"; then
 
5098
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5099
echo "${ECHO_T}$STRIP" >&6
 
5100
else
 
5101
  echo "$as_me:$LINENO: result: no" >&5
 
5102
echo "${ECHO_T}no" >&6
 
5103
fi
 
5104
 
 
5105
fi
 
5106
if test -z "$ac_cv_prog_STRIP"; then
 
5107
  ac_ct_STRIP=$STRIP
 
5108
  # Extract the first word of "strip", so it can be a program name with args.
 
5109
set dummy strip; ac_word=$2
 
5110
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5111
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5112
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5114
else
 
5115
  if test -n "$ac_ct_STRIP"; then
 
5116
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5117
else
 
5118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5119
for as_dir in $PATH
 
5120
do
 
5121
  IFS=$as_save_IFS
 
5122
  test -z "$as_dir" && as_dir=.
 
5123
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5124
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5125
    ac_cv_prog_ac_ct_STRIP="strip"
 
5126
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5127
    break 2
 
5128
  fi
 
5129
done
 
5130
done
 
5131
 
 
5132
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5133
fi
 
5134
fi
 
5135
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5136
if test -n "$ac_ct_STRIP"; then
 
5137
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5138
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5139
else
 
5140
  echo "$as_me:$LINENO: result: no" >&5
 
5141
echo "${ECHO_T}no" >&6
 
5142
fi
 
5143
 
 
5144
  STRIP=$ac_ct_STRIP
 
5145
else
 
5146
  STRIP="$ac_cv_prog_STRIP"
 
5147
fi
 
5148
 
 
5149
 
 
5150
enable_dlopen=no
 
5151
enable_win32_dll=no
 
5152
 
 
5153
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5154
if test "${enable_libtool_lock+set}" = set; then
 
5155
  enableval="$enable_libtool_lock"
 
5156
 
 
5157
fi;
 
5158
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5159
 
 
5160
# Some flags need to be propagated to the compiler or linker for good
 
5161
# libtool support.
 
5162
case $host in
 
5163
*-*-irix6*)
 
5164
  # Find out which ABI we are using.
 
5165
  echo '#line 5165 "configure"' > conftest.$ac_ext
 
5166
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5167
  (eval $ac_compile) 2>&5
 
5168
  ac_status=$?
 
5169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5170
  (exit $ac_status); }; then
 
5171
    case `/usr/bin/file conftest.$ac_objext` in
 
5172
    *32-bit*)
 
5173
      LD="${LD-ld} -32"
 
5174
      ;;
 
5175
    *N32*)
 
5176
      LD="${LD-ld} -n32"
 
5177
      ;;
 
5178
    *64-bit*)
 
5179
      LD="${LD-ld} -64"
 
5180
      ;;
 
5181
    esac
 
5182
  fi
 
5183
  rm -rf conftest*
 
5184
  ;;
 
5185
 
 
5186
*-*-sco3.2v5*)
 
5187
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5188
  SAVE_CFLAGS="$CFLAGS"
 
5189
  CFLAGS="$CFLAGS -belf"
 
5190
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5191
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5192
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5194
else
 
5195
 
 
5196
 
 
5197
     ac_ext=c
 
5198
ac_cpp='$CPP $CPPFLAGS'
 
5199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5202
 
 
5203
     cat >conftest.$ac_ext <<_ACEOF
 
5204
/* confdefs.h.  */
 
5205
_ACEOF
 
5206
cat confdefs.h >>conftest.$ac_ext
 
5207
cat >>conftest.$ac_ext <<_ACEOF
 
5208
/* end confdefs.h.  */
 
5209
 
 
5210
int
 
5211
main ()
 
5212
{
 
5213
 
 
5214
  ;
 
5215
  return 0;
 
5216
}
 
5217
_ACEOF
 
5218
rm -f conftest.$ac_objext conftest$ac_exeext
 
5219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5220
  (eval $ac_link) 2>conftest.er1
 
5221
  ac_status=$?
 
5222
  grep -v '^ *+' conftest.er1 >conftest.err
 
5223
  rm -f conftest.er1
 
5224
  cat conftest.err >&5
 
5225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5226
  (exit $ac_status); } &&
 
5227
         { ac_try='test -z "$ac_c_werror_flag"
 
5228
                         || test ! -s conftest.err'
 
5229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5230
  (eval $ac_try) 2>&5
 
5231
  ac_status=$?
 
5232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5233
  (exit $ac_status); }; } &&
 
5234
         { ac_try='test -s conftest$ac_exeext'
 
5235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5236
  (eval $ac_try) 2>&5
 
5237
  ac_status=$?
 
5238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5239
  (exit $ac_status); }; }; then
 
5240
  lt_cv_cc_needs_belf=yes
 
5241
else
 
5242
  echo "$as_me: failed program was:" >&5
 
5243
sed 's/^/| /' conftest.$ac_ext >&5
 
5244
 
 
5245
lt_cv_cc_needs_belf=no
 
5246
fi
 
5247
rm -f conftest.err conftest.$ac_objext \
 
5248
      conftest$ac_exeext conftest.$ac_ext
 
5249
     ac_ext=c
 
5250
ac_cpp='$CPP $CPPFLAGS'
 
5251
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5252
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5253
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5254
 
 
5255
fi
 
5256
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5257
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5258
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5259
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5260
    CFLAGS="$SAVE_CFLAGS"
 
5261
  fi
 
5262
  ;;
 
5263
 
 
5264
 
 
5265
esac
 
5266
 
 
5267
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5268
# metacharacters that are still active within double-quoted strings.
 
5269
Xsed='sed -e s/^X//'
 
5270
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5271
 
 
5272
# Same as above, but do not quote variable references.
 
5273
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5274
 
 
5275
# Sed substitution to delay expansion of an escaped shell variable in a
 
5276
# double_quote_subst'ed string.
 
5277
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5278
 
 
5279
# Constants:
 
5280
rm="rm -f"
 
5281
 
 
5282
# Global variables:
 
5283
default_ofile=libtool
 
5284
can_build_shared=yes
 
5285
 
 
5286
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5287
# which needs '.lib').
 
5288
libext=a
 
5289
ltmain="$ac_aux_dir/ltmain.sh"
 
5290
ofile="$default_ofile"
 
5291
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5292
need_locks="$enable_libtool_lock"
 
5293
 
 
5294
old_CC="$CC"
 
5295
old_CFLAGS="$CFLAGS"
 
5296
 
 
5297
# Set sane defaults for various variables
 
5298
test -z "$AR" && AR=ar
 
5299
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5300
test -z "$AS" && AS=as
 
5301
test -z "$CC" && CC=cc
 
5302
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5303
test -z "$LD" && LD=ld
 
5304
test -z "$LN_S" && LN_S="ln -s"
 
5305
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
5306
test -z "$NM" && NM=nm
 
5307
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5308
test -z "$RANLIB" && RANLIB=:
 
5309
test -z "$STRIP" && STRIP=:
 
5310
test -z "$ac_objext" && ac_objext=o
 
5311
 
 
5312
if test x"$host" != x"$build"; then
 
5313
  ac_tool_prefix=${host_alias}-
 
5314
else
 
5315
  ac_tool_prefix=
 
5316
fi
 
5317
 
 
5318
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 
5319
case $host_os in
 
5320
linux-gnu*) ;;
 
5321
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 
5322
esac
 
5323
 
 
5324
case $host_os in
 
5325
aix3*)
 
5326
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5327
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5328
  # vanish in a puff of smoke.
 
5329
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5330
    COLLECT_NAMES=
 
5331
    export COLLECT_NAMES
 
5332
  fi
 
5333
  ;;
 
5334
esac
 
5335
 
 
5336
# Determine commands to create old-style static archives.
 
5337
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
5338
old_postinstall_cmds='chmod 644 $oldlib'
 
5339
old_postuninstall_cmds=
 
5340
 
 
5341
if test -n "$RANLIB"; then
 
5342
  case $host_os in
 
5343
  openbsd*)
 
5344
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
5345
    ;;
 
5346
  *)
 
5347
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
5348
    ;;
 
5349
  esac
 
5350
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5351
fi
 
5352
 
 
5353
# Allow CC to be a program name with arguments.
 
5354
set dummy $CC
 
5355
compiler="$2"
 
5356
 
 
5357
echo "$as_me:$LINENO: checking for objdir" >&5
 
5358
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5359
rm -f .libs 2>/dev/null
 
5360
mkdir .libs 2>/dev/null
 
5361
if test -d .libs; then
 
5362
  objdir=.libs
 
5363
else
 
5364
  # MS-DOS does not allow filenames that begin with a dot.
 
5365
  objdir=_libs
 
5366
fi
 
5367
rmdir .libs 2>/dev/null
 
5368
echo "$as_me:$LINENO: result: $objdir" >&5
 
5369
echo "${ECHO_T}$objdir" >&6
 
5370
 
 
5371
 
 
5372
 
 
5373
# Check whether --with-pic or --without-pic was given.
 
5374
if test "${with_pic+set}" = set; then
 
5375
  withval="$with_pic"
 
5376
  pic_mode="$withval"
 
5377
else
 
5378
  pic_mode=default
 
5379
fi;
 
5380
test -z "$pic_mode" && pic_mode=default
 
5381
 
 
5382
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
 
5383
# in isolation, and that seeing it set (from the cache) indicates that
 
5384
# the associated values are set (in the cache) correctly too.
 
5385
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
5386
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
5387
if test "${lt_cv_prog_cc_pic+set}" = set; then
 
5388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5389
else
 
5390
   lt_cv_prog_cc_pic=
 
5391
  lt_cv_prog_cc_shlib=
 
5392
  lt_cv_prog_cc_wl=
 
5393
  lt_cv_prog_cc_static=
 
5394
  lt_cv_prog_cc_no_builtin=
 
5395
  lt_cv_prog_cc_can_build_shared=$can_build_shared
 
5396
 
 
5397
  if test "$GCC" = yes; then
 
5398
    lt_cv_prog_cc_wl='-Wl,'
 
5399
    lt_cv_prog_cc_static='-static'
 
5400
 
 
5401
    case $host_os in
 
5402
    aix*)
 
5403
      # Below there is a dirty hack to force normal static linking with -ldl
 
5404
      # The problem is because libdl dynamically linked with both libc and
 
5405
      # libC (AIX C++ library), which obviously doesn't included in libraries
 
5406
      # list by gcc. This cause undefined symbols with -static flags.
 
5407
      # This hack allows C programs to be linked with "-static -ldl", but
 
5408
      # not sure about C++ programs.
 
5409
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 
5410
      ;;
 
5411
    amigaos*)
 
5412
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5413
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5414
      # like `-m68040'.
 
5415
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 
5416
      ;;
 
5417
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5418
      # PIC is the default for these OSes.
 
5419
      ;;
 
5420
    darwin* | rhapsody*)
 
5421
      # PIC is the default on this platform
 
5422
      # Common symbols not allowed in MH_DYLIB files
 
5423
      lt_cv_prog_cc_pic='-fno-common'
 
5424
      ;;
 
5425
    cygwin* | mingw* | pw32* | os2*)
 
5426
      # This hack is so that the source file can tell whether it is being
 
5427
      # built for inclusion in a dll (and should export symbols for example).
 
5428
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
5429
      ;;
 
5430
    sysv4*MP*)
 
5431
      if test -d /usr/nec; then
 
5432
         lt_cv_prog_cc_pic=-Kconform_pic
 
5433
      fi
 
5434
      ;;
 
5435
    *)
 
5436
      lt_cv_prog_cc_pic='-fPIC'
 
5437
      ;;
 
5438
    esac
 
5439
  else
 
5440
    # PORTME Check for PIC flags for the system compiler.
 
5441
    case $host_os in
 
5442
    aix3* | aix4* | aix5*)
 
5443
      lt_cv_prog_cc_wl='-Wl,'
 
5444
      # All AIX code is PIC.
 
5445
      if test "$host_cpu" = ia64; then
 
5446
        # AIX 5 now supports IA64 processor
 
5447
        lt_cv_prog_cc_static='-Bstatic'
 
5448
      else
 
5449
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 
5450
      fi
 
5451
      ;;
 
5452
 
 
5453
    hpux9* | hpux10* | hpux11*)
 
5454
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 
5455
      lt_cv_prog_cc_wl='-Wl,'
 
5456
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 
5457
      lt_cv_prog_cc_pic='+Z'
 
5458
      ;;
 
5459
 
 
5460
    irix5* | irix6* | nonstopux*)
 
5461
      lt_cv_prog_cc_wl='-Wl,'
 
5462
      lt_cv_prog_cc_static='-non_shared'
 
5463
      # PIC (with -KPIC) is the default.
 
5464
      ;;
 
5465
 
 
5466
    cygwin* | mingw* | pw32* | os2*)
 
5467
      # This hack is so that the source file can tell whether it is being
 
5468
      # built for inclusion in a dll (and should export symbols for example).
 
5469
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
5470
      ;;
 
5471
 
 
5472
    newsos6)
 
5473
      lt_cv_prog_cc_pic='-KPIC'
 
5474
      lt_cv_prog_cc_static='-Bstatic'
 
5475
      ;;
 
5476
 
 
5477
    osf3* | osf4* | osf5*)
 
5478
      # All OSF/1 code is PIC.
 
5479
      lt_cv_prog_cc_wl='-Wl,'
 
5480
      lt_cv_prog_cc_static='-non_shared'
 
5481
      ;;
 
5482
 
 
5483
    sco3.2v5*)
 
5484
      lt_cv_prog_cc_pic='-Kpic'
 
5485
      lt_cv_prog_cc_static='-dn'
 
5486
      lt_cv_prog_cc_shlib='-belf'
 
5487
      ;;
 
5488
 
 
5489
    solaris*)
 
5490
      lt_cv_prog_cc_pic='-KPIC'
 
5491
      lt_cv_prog_cc_static='-Bstatic'
 
5492
      lt_cv_prog_cc_wl='-Wl,'
 
5493
      ;;
 
5494
 
 
5495
    sunos4*)
 
5496
      lt_cv_prog_cc_pic='-PIC'
 
5497
      lt_cv_prog_cc_static='-Bstatic'
 
5498
      lt_cv_prog_cc_wl='-Qoption ld '
 
5499
      ;;
 
5500
 
 
5501
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5502
      lt_cv_prog_cc_pic='-KPIC'
 
5503
      lt_cv_prog_cc_static='-Bstatic'
 
5504
      lt_cv_prog_cc_wl='-Wl,'
 
5505
      ;;
 
5506
 
 
5507
    uts4*)
 
5508
      lt_cv_prog_cc_pic='-pic'
 
5509
      lt_cv_prog_cc_static='-Bstatic'
 
5510
      ;;
 
5511
 
 
5512
    sysv4*MP*)
 
5513
      if test -d /usr/nec ;then
 
5514
        lt_cv_prog_cc_pic='-Kconform_pic'
 
5515
        lt_cv_prog_cc_static='-Bstatic'
 
5516
      fi
 
5517
      ;;
 
5518
 
 
5519
    *)
 
5520
      lt_cv_prog_cc_can_build_shared=no
 
5521
      ;;
 
5522
    esac
 
5523
  fi
 
5524
 
 
5525
fi
 
5526
 
 
5527
if test -z "$lt_cv_prog_cc_pic"; then
 
5528
  echo "$as_me:$LINENO: result: none" >&5
 
5529
echo "${ECHO_T}none" >&6
 
5530
else
 
5531
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
 
5532
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
 
5533
 
 
5534
  # Check to make sure the pic_flag actually works.
 
5535
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 
5536
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
 
5537
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
 
5538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5539
else
 
5540
      save_CFLAGS="$CFLAGS"
 
5541
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 
5542
    cat >conftest.$ac_ext <<_ACEOF
 
5543
/* confdefs.h.  */
 
5544
_ACEOF
 
5545
cat confdefs.h >>conftest.$ac_ext
 
5546
cat >>conftest.$ac_ext <<_ACEOF
 
5547
/* end confdefs.h.  */
 
5548
 
 
5549
int
 
5550
main ()
 
5551
{
 
5552
 
 
5553
  ;
 
5554
  return 0;
 
5555
}
 
5556
_ACEOF
 
5557
rm -f conftest.$ac_objext
 
5558
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5559
  (eval $ac_compile) 2>conftest.er1
 
5560
  ac_status=$?
 
5561
  grep -v '^ *+' conftest.er1 >conftest.err
 
5562
  rm -f conftest.er1
 
5563
  cat conftest.err >&5
 
5564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5565
  (exit $ac_status); } &&
 
5566
         { ac_try='test -z "$ac_c_werror_flag"
 
5567
                         || test ! -s conftest.err'
 
5568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5569
  (eval $ac_try) 2>&5
 
5570
  ac_status=$?
 
5571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5572
  (exit $ac_status); }; } &&
 
5573
         { ac_try='test -s conftest.$ac_objext'
 
5574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5575
  (eval $ac_try) 2>&5
 
5576
  ac_status=$?
 
5577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5578
  (exit $ac_status); }; }; then
 
5579
        case $host_os in
 
5580
      hpux9* | hpux10* | hpux11*)
 
5581
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
 
5582
        # they create non-PIC objects.  So, if there were any warnings, we
 
5583
        # assume that PIC is not supported.
 
5584
        if test -s conftest.err; then
 
5585
          lt_cv_prog_cc_pic_works=no
 
5586
        else
 
5587
          lt_cv_prog_cc_pic_works=yes
 
5588
        fi
 
5589
        ;;
 
5590
      *)
 
5591
        lt_cv_prog_cc_pic_works=yes
 
5592
        ;;
 
5593
      esac
 
5594
 
 
5595
else
 
5596
  echo "$as_me: failed program was:" >&5
 
5597
sed 's/^/| /' conftest.$ac_ext >&5
 
5598
 
 
5599
      lt_cv_prog_cc_pic_works=no
 
5600
 
 
5601
fi
 
5602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5603
    CFLAGS="$save_CFLAGS"
 
5604
 
 
5605
fi
 
5606
 
 
5607
 
 
5608
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 
5609
    lt_cv_prog_cc_pic=
 
5610
    lt_cv_prog_cc_can_build_shared=no
 
5611
  else
 
5612
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 
5613
  fi
 
5614
 
 
5615
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
 
5616
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
 
5617
fi
 
5618
 
 
5619
# Check for any special shared library compilation flags.
 
5620
if test -n "$lt_cv_prog_cc_shlib"; then
 
5621
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
 
5622
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
 
5623
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
5624
  else
 
5625
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5626
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5627
    lt_cv_prog_cc_can_build_shared=no
 
5628
  fi
 
5629
fi
 
5630
 
 
5631
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 
5632
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
 
5633
if test "${lt_cv_prog_cc_static_works+set}" = set; then
 
5634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5635
else
 
5636
    lt_cv_prog_cc_static_works=no
 
5637
  save_LDFLAGS="$LDFLAGS"
 
5638
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 
5639
  cat >conftest.$ac_ext <<_ACEOF
 
5640
/* confdefs.h.  */
 
5641
_ACEOF
 
5642
cat confdefs.h >>conftest.$ac_ext
 
5643
cat >>conftest.$ac_ext <<_ACEOF
 
5644
/* end confdefs.h.  */
 
5645
 
 
5646
int
 
5647
main ()
 
5648
{
 
5649
 
 
5650
  ;
 
5651
  return 0;
 
5652
}
 
5653
_ACEOF
 
5654
rm -f conftest.$ac_objext conftest$ac_exeext
 
5655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5656
  (eval $ac_link) 2>conftest.er1
 
5657
  ac_status=$?
 
5658
  grep -v '^ *+' conftest.er1 >conftest.err
 
5659
  rm -f conftest.er1
 
5660
  cat conftest.err >&5
 
5661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5662
  (exit $ac_status); } &&
 
5663
         { ac_try='test -z "$ac_c_werror_flag"
 
5664
                         || test ! -s conftest.err'
 
5665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5666
  (eval $ac_try) 2>&5
 
5667
  ac_status=$?
 
5668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5669
  (exit $ac_status); }; } &&
 
5670
         { ac_try='test -s conftest$ac_exeext'
 
5671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5672
  (eval $ac_try) 2>&5
 
5673
  ac_status=$?
 
5674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5675
  (exit $ac_status); }; }; then
 
5676
  lt_cv_prog_cc_static_works=yes
 
5677
else
 
5678
  echo "$as_me: failed program was:" >&5
 
5679
sed 's/^/| /' conftest.$ac_ext >&5
 
5680
 
 
5681
fi
 
5682
rm -f conftest.err conftest.$ac_objext \
 
5683
      conftest$ac_exeext conftest.$ac_ext
 
5684
  LDFLAGS="$save_LDFLAGS"
 
5685
 
 
5686
fi
 
5687
 
 
5688
 
 
5689
# Belt *and* braces to stop my trousers falling down:
 
5690
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 
5691
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
 
5692
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
 
5693
 
 
5694
pic_flag="$lt_cv_prog_cc_pic"
 
5695
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 
5696
wl="$lt_cv_prog_cc_wl"
 
5697
link_static_flag="$lt_cv_prog_cc_static"
 
5698
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 
5699
can_build_shared="$lt_cv_prog_cc_can_build_shared"
 
5700
 
 
5701
 
 
5702
# Check to see if options -o and -c are simultaneously supported by compiler
 
5703
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
5704
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
5705
if test "${lt_cv_compiler_c_o+set}" = set; then
 
5706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5707
else
 
5708
 
 
5709
$rm -r conftest 2>/dev/null
 
5710
mkdir conftest
 
5711
cd conftest
 
5712
echo "int some_variable = 0;" > conftest.$ac_ext
 
5713
mkdir out
 
5714
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
5715
# that will create temporary files in the current directory regardless of
 
5716
# the output directory.  Thus, making CWD read-only will cause this test
 
5717
# to fail, enabling locking or at least warning the user not to do parallel
 
5718
# builds.
 
5719
chmod -w .
 
5720
save_CFLAGS="$CFLAGS"
 
5721
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 
5722
compiler_c_o=no
 
5723
if { (eval echo configure:5723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
5724
  # The compiler can only warn and ignore the option if not recognized
 
5725
  # So say no if there are warnings
 
5726
  if test -s out/conftest.err; then
 
5727
    lt_cv_compiler_c_o=no
 
5728
  else
 
5729
    lt_cv_compiler_c_o=yes
 
5730
  fi
 
5731
else
 
5732
  # Append any errors to the config.log.
 
5733
  cat out/conftest.err 1>&5
 
5734
  lt_cv_compiler_c_o=no
 
5735
fi
 
5736
CFLAGS="$save_CFLAGS"
 
5737
chmod u+w .
 
5738
$rm conftest* out/*
 
5739
rmdir out
 
5740
cd ..
 
5741
rmdir conftest
 
5742
$rm -r conftest 2>/dev/null
 
5743
 
 
5744
fi
 
5745
 
 
5746
compiler_c_o=$lt_cv_compiler_c_o
 
5747
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
 
5748
echo "${ECHO_T}$compiler_c_o" >&6
 
5749
 
 
5750
if test x"$compiler_c_o" = x"yes"; then
 
5751
  # Check to see if we can write to a .lo
 
5752
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
 
5753
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
 
5754
  if test "${lt_cv_compiler_o_lo+set}" = set; then
 
5755
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5756
else
 
5757
 
 
5758
  lt_cv_compiler_o_lo=no
 
5759
  save_CFLAGS="$CFLAGS"
 
5760
  CFLAGS="$CFLAGS -c -o conftest.lo"
 
5761
  save_objext="$ac_objext"
 
5762
  ac_objext=lo
 
5763
  cat >conftest.$ac_ext <<_ACEOF
 
5764
/* confdefs.h.  */
 
5765
_ACEOF
 
5766
cat confdefs.h >>conftest.$ac_ext
 
5767
cat >>conftest.$ac_ext <<_ACEOF
 
5768
/* end confdefs.h.  */
 
5769
 
 
5770
int
 
5771
main ()
 
5772
{
 
5773
int some_variable = 0;
 
5774
  ;
 
5775
  return 0;
 
5776
}
 
5777
_ACEOF
 
5778
rm -f conftest.$ac_objext
 
5779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5780
  (eval $ac_compile) 2>conftest.er1
 
5781
  ac_status=$?
 
5782
  grep -v '^ *+' conftest.er1 >conftest.err
 
5783
  rm -f conftest.er1
 
5784
  cat conftest.err >&5
 
5785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5786
  (exit $ac_status); } &&
 
5787
         { ac_try='test -z "$ac_c_werror_flag"
 
5788
                         || test ! -s conftest.err'
 
5789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5790
  (eval $ac_try) 2>&5
 
5791
  ac_status=$?
 
5792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5793
  (exit $ac_status); }; } &&
 
5794
         { ac_try='test -s conftest.$ac_objext'
 
5795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5796
  (eval $ac_try) 2>&5
 
5797
  ac_status=$?
 
5798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5799
  (exit $ac_status); }; }; then
 
5800
      # The compiler can only warn and ignore the option if not recognized
 
5801
    # So say no if there are warnings
 
5802
    if test -s conftest.err; then
 
5803
      lt_cv_compiler_o_lo=no
 
5804
    else
 
5805
      lt_cv_compiler_o_lo=yes
 
5806
    fi
 
5807
 
 
5808
else
 
5809
  echo "$as_me: failed program was:" >&5
 
5810
sed 's/^/| /' conftest.$ac_ext >&5
 
5811
 
 
5812
fi
 
5813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5814
  ac_objext="$save_objext"
 
5815
  CFLAGS="$save_CFLAGS"
 
5816
 
 
5817
fi
 
5818
 
 
5819
  compiler_o_lo=$lt_cv_compiler_o_lo
 
5820
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
 
5821
echo "${ECHO_T}$compiler_o_lo" >&6
 
5822
else
 
5823
  compiler_o_lo=no
 
5824
fi
 
5825
 
 
5826
# Check to see if we can do hard links to lock some files if needed
 
5827
hard_links="nottested"
 
5828
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
5829
  # do not overwrite the value of need_locks provided by the user
 
5830
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
5831
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
5832
  hard_links=yes
 
5833
  $rm conftest*
 
5834
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5835
  touch conftest.a
 
5836
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
5837
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5838
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
5839
echo "${ECHO_T}$hard_links" >&6
 
5840
  if test "$hard_links" = no; then
 
5841
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
5842
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
5843
    need_locks=warn
 
5844
  fi
 
5845
else
 
5846
  need_locks=no
 
5847
fi
 
5848
 
 
5849
if test "$GCC" = yes; then
 
5850
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 
5851
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5852
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5853
  echo "int some_variable = 0;" > conftest.$ac_ext
 
5854
  save_CFLAGS="$CFLAGS"
 
5855
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 
5856
  compiler_rtti_exceptions=no
 
5857
  cat >conftest.$ac_ext <<_ACEOF
 
5858
/* confdefs.h.  */
 
5859
_ACEOF
 
5860
cat confdefs.h >>conftest.$ac_ext
 
5861
cat >>conftest.$ac_ext <<_ACEOF
 
5862
/* end confdefs.h.  */
 
5863
 
 
5864
int
 
5865
main ()
 
5866
{
 
5867
int some_variable = 0;
 
5868
  ;
 
5869
  return 0;
 
5870
}
 
5871
_ACEOF
 
5872
rm -f conftest.$ac_objext
 
5873
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5874
  (eval $ac_compile) 2>conftest.er1
 
5875
  ac_status=$?
 
5876
  grep -v '^ *+' conftest.er1 >conftest.err
 
5877
  rm -f conftest.er1
 
5878
  cat conftest.err >&5
 
5879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5880
  (exit $ac_status); } &&
 
5881
         { ac_try='test -z "$ac_c_werror_flag"
 
5882
                         || test ! -s conftest.err'
 
5883
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5884
  (eval $ac_try) 2>&5
 
5885
  ac_status=$?
 
5886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5887
  (exit $ac_status); }; } &&
 
5888
         { ac_try='test -s conftest.$ac_objext'
 
5889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5890
  (eval $ac_try) 2>&5
 
5891
  ac_status=$?
 
5892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5893
  (exit $ac_status); }; }; then
 
5894
      # The compiler can only warn and ignore the option if not recognized
 
5895
    # So say no if there are warnings
 
5896
    if test -s conftest.err; then
 
5897
      compiler_rtti_exceptions=no
 
5898
    else
 
5899
      compiler_rtti_exceptions=yes
 
5900
    fi
 
5901
 
 
5902
else
 
5903
  echo "$as_me: failed program was:" >&5
 
5904
sed 's/^/| /' conftest.$ac_ext >&5
 
5905
 
 
5906
fi
 
5907
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5908
  CFLAGS="$save_CFLAGS"
 
5909
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
 
5910
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
 
5911
 
 
5912
  if test "$compiler_rtti_exceptions" = "yes"; then
 
5913
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 
5914
  else
 
5915
    no_builtin_flag=' -fno-builtin'
 
5916
  fi
 
5917
fi
 
5918
 
 
5919
# See if the linker supports building shared libraries.
 
5920
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
 
5921
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
 
5922
 
 
5923
allow_undefined_flag=
 
5924
no_undefined_flag=
 
5925
need_lib_prefix=unknown
 
5926
need_version=unknown
 
5927
# when you set need_version to no, make sure it does not cause -set_version
 
5928
# flags to be left without arguments
 
5929
archive_cmds=
 
5930
archive_expsym_cmds=
 
5931
old_archive_from_new_cmds=
 
5932
old_archive_from_expsyms_cmds=
 
5933
export_dynamic_flag_spec=
 
5934
whole_archive_flag_spec=
 
5935
thread_safe_flag_spec=
 
5936
hardcode_into_libs=no
 
5937
hardcode_libdir_flag_spec=
 
5938
hardcode_libdir_separator=
 
5939
hardcode_direct=no
 
5940
hardcode_minus_L=no
 
5941
hardcode_shlibpath_var=unsupported
 
5942
runpath_var=
 
5943
link_all_deplibs=unknown
 
5944
always_export_symbols=no
 
5945
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5946
# include_expsyms should be a list of space-separated symbols to be *always*
 
5947
# included in the symbol list
 
5948
include_expsyms=
 
5949
# exclude_expsyms can be an egrep regular expression of symbols to exclude
 
5950
# it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5951
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
5952
# as well as any symbol that contains `d'.
 
5953
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
5954
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
5955
# platforms (ab)use it in PIC code, but their linkers get confused if
 
5956
# the symbol is explicitly referenced.  Since portable code cannot
 
5957
# rely on this symbol name, it's probably fine to never include it in
 
5958
# preloaded symbol tables.
 
5959
extract_expsyms_cmds=
 
5960
 
 
5961
case $host_os in
 
5962
cygwin* | mingw* | pw32*)
 
5963
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
5964
  # When not using gcc, we currently assume that we are using
 
5965
  # Microsoft Visual C++.
 
5966
  if test "$GCC" != yes; then
 
5967
    with_gnu_ld=no
 
5968
  fi
 
5969
  ;;
 
5970
openbsd*)
 
5971
  with_gnu_ld=no
 
5972
  ;;
 
5973
esac
 
5974
 
 
5975
ld_shlibs=yes
 
5976
if test "$with_gnu_ld" = yes; then
 
5977
  # If archive_cmds runs LD, not CC, wlarc should be empty
 
5978
  wlarc='${wl}'
 
5979
 
 
5980
  # See if GNU ld supports shared libraries.
 
5981
  case $host_os in
 
5982
  aix3* | aix4* | aix5*)
 
5983
    # On AIX, the GNU linker is very broken
 
5984
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 
5985
    ld_shlibs=no
 
5986
    cat <<EOF 1>&2
 
5987
 
 
5988
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5989
*** to be unable to reliably create shared libraries on AIX.
 
5990
*** Therefore, libtool is disabling shared libraries support.  If you
 
5991
*** really care for shared libraries, you may want to modify your PATH
 
5992
*** so that a non-GNU linker is found, and then restart.
 
5993
 
 
5994
EOF
 
5995
    ;;
 
5996
 
 
5997
  amigaos*)
 
5998
    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)'
 
5999
    hardcode_libdir_flag_spec='-L$libdir'
 
6000
    hardcode_minus_L=yes
 
6001
 
 
6002
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6003
    # that the semantics of dynamic libraries on AmigaOS, at least up
 
6004
    # to version 4, is to share data among multiple programs linked
 
6005
    # with the same dynamic library.  Since this doesn't match the
 
6006
    # behavior of shared libraries on other platforms, we can use
 
6007
    # them.
 
6008
    ld_shlibs=no
 
6009
    ;;
 
6010
 
 
6011
  beos*)
 
6012
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6013
      allow_undefined_flag=unsupported
 
6014
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6015
      # support --undefined.  This deserves some investigation.  FIXME
 
6016
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6017
    else
 
6018
      ld_shlibs=no
 
6019
    fi
 
6020
    ;;
 
6021
 
 
6022
  cygwin* | mingw* | pw32*)
 
6023
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6024
    # no search path for DLLs.
 
6025
    hardcode_libdir_flag_spec='-L$libdir'
 
6026
    allow_undefined_flag=unsupported
 
6027
    always_export_symbols=yes
 
6028
 
 
6029
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 
6030
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 
6031
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 
6032
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 
6033
      else $CC -o impgen impgen.c ; fi)~
 
6034
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 
6035
 
 
6036
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 
6037
 
 
6038
    # cygwin and mingw dlls have different entry points and sets of symbols
 
6039
    # to exclude.
 
6040
    # FIXME: what about values for MSVC?
 
6041
    dll_entry=__cygwin_dll_entry@12
 
6042
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 
6043
    case $host_os in
 
6044
    mingw*)
 
6045
      # mingw values
 
6046
      dll_entry=_DllMainCRTStartup@12
 
6047
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 
6048
      ;;
 
6049
    esac
 
6050
 
 
6051
    # mingw and cygwin differ, and it's simplest to just exclude the union
 
6052
    # of the two symbol sets.
 
6053
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 
6054
 
 
6055
    # recent cygwin and mingw systems supply a stub DllMain which the user
 
6056
    # can override, but on older systems we have to supply one (in ltdll.c)
 
6057
    if test "x$lt_cv_need_dllmain" = "xyes"; then
 
6058
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 
6059
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
 
6060
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
6061
    else
 
6062
      ltdll_obj=
 
6063
      ltdll_cmds=
 
6064
    fi
 
6065
 
 
6066
    # Extract the symbol export list from an `--export-all' def file,
 
6067
    # then regenerate the def file from the symbol export list, so that
 
6068
    # the compiled dll only exports the symbol export list.
 
6069
    # Be careful not to strip the DATA tag left be newer dlltools.
 
6070
    export_symbols_cmds="$ltdll_cmds"'
 
6071
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 
6072
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 
6073
 
 
6074
    # If the export-symbols file already is a .def file (1st line
 
6075
    # is EXPORTS), use it as is.
 
6076
    # If DATA tags from a recent dlltool are present, honour them!
 
6077
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
 
6078
        cp $export_symbols $output_objdir/$soname-def;
 
6079
      else
 
6080
        echo EXPORTS > $output_objdir/$soname-def;
 
6081
        _lt_hint=1;
 
6082
        cat $export_symbols | while read symbol; do
 
6083
         set dummy \$symbol;
 
6084
         case \$# in
 
6085
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 
6086
           4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
 
6087
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 
6088
         esac;
 
6089
         _lt_hint=`expr 1 + \$_lt_hint`;
 
6090
        done;
 
6091
      fi~
 
6092
      '"$ltdll_cmds"'
 
6093
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 
6094
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
 
6095
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 
6096
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
 
6097
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
6098
    ;;
 
6099
 
 
6100
  netbsd*)
 
6101
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6102
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6103
      wlarc=
 
6104
    else
 
6105
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6106
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6107
    fi
 
6108
    ;;
 
6109
 
 
6110
  solaris* | sysv5*)
 
6111
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
6112
      ld_shlibs=no
 
6113
      cat <<EOF 1>&2
 
6114
 
 
6115
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6116
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6117
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6118
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6119
*** your PATH or compiler configuration so that the native linker is
 
6120
*** used, and then restart.
 
6121
 
 
6122
EOF
 
6123
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6124
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6125
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6126
    else
 
6127
      ld_shlibs=no
 
6128
    fi
 
6129
    ;;
 
6130
 
 
6131
  sunos4*)
 
6132
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6133
    wlarc=
 
6134
    hardcode_direct=yes
 
6135
    hardcode_shlibpath_var=no
 
6136
    ;;
 
6137
 
 
6138
  *)
 
6139
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6140
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6141
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6142
    else
 
6143
      ld_shlibs=no
 
6144
    fi
 
6145
    ;;
 
6146
  esac
 
6147
 
 
6148
  if test "$ld_shlibs" = yes; then
 
6149
    runpath_var=LD_RUN_PATH
 
6150
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6151
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6152
    case $host_os in
 
6153
    cygwin* | mingw* | pw32*)
 
6154
      # dlltool doesn't understand --whole-archive et. al.
 
6155
      whole_archive_flag_spec=
 
6156
      ;;
 
6157
    *)
 
6158
      # ancient GNU ld didn't support --whole-archive et. al.
 
6159
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 
6160
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6161
      else
 
6162
        whole_archive_flag_spec=
 
6163
      fi
 
6164
      ;;
 
6165
    esac
 
6166
  fi
 
6167
else
 
6168
  # PORTME fill in a description of your system's linker (not GNU ld)
 
6169
  case $host_os in
 
6170
  aix3*)
 
6171
    allow_undefined_flag=unsupported
 
6172
    always_export_symbols=yes
 
6173
    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'
 
6174
    # Note: this linker hardcodes the directories in LIBPATH if there
 
6175
    # are no directories specified by -L.
 
6176
    hardcode_minus_L=yes
 
6177
    if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6178
      # Neither direct hardcoding nor static linking is supported with a
 
6179
      # broken collect2.
 
6180
      hardcode_direct=unsupported
 
6181
    fi
 
6182
    ;;
 
6183
 
 
6184
  aix4* | aix5*)
 
6185
    if test "$host_cpu" = ia64; then
 
6186
      # On IA64, the linker does run time linking by default, so we don't
 
6187
      # have to do anything special.
 
6188
      aix_use_runtimelinking=no
 
6189
      exp_sym_flag='-Bexport'
 
6190
      no_entry_flag=""
 
6191
    else
 
6192
      aix_use_runtimelinking=no
 
6193
 
 
6194
      # Test if we are trying to use run time linking or normal
 
6195
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6196
      # need to do runtime linking.
 
6197
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6198
        for ld_flag in $LDFLAGS; do
 
6199
          case $ld_flag in
 
6200
          *-brtl*)
 
6201
            aix_use_runtimelinking=yes
 
6202
            break
 
6203
          ;;
 
6204
          esac
 
6205
        done
 
6206
      esac
 
6207
 
 
6208
      exp_sym_flag='-bexport'
 
6209
      no_entry_flag='-bnoentry'
 
6210
    fi
 
6211
 
 
6212
    # When large executables or shared objects are built, AIX ld can
 
6213
    # have problems creating the table of contents.  If linking a library
 
6214
    # or program results in "error TOC overflow" add -mminimal-toc to
 
6215
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6216
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6217
 
 
6218
    hardcode_direct=yes
 
6219
    archive_cmds=''
 
6220
    hardcode_libdir_separator=':'
 
6221
    if test "$GCC" = yes; then
 
6222
      case $host_os in aix4.[012]|aix4.[012].*)
 
6223
        collect2name=`${CC} -print-prog-name=collect2`
 
6224
        if test -f "$collect2name" && \
 
6225
          strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6226
        then
 
6227
          # We have reworked collect2
 
6228
          hardcode_direct=yes
 
6229
        else
 
6230
          # We have old collect2
 
6231
          hardcode_direct=unsupported
 
6232
          # It fails to find uninstalled libraries when the uninstalled
 
6233
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6234
          # to unsupported forces relinking
 
6235
          hardcode_minus_L=yes
 
6236
          hardcode_libdir_flag_spec='-L$libdir'
 
6237
          hardcode_libdir_separator=
 
6238
        fi
 
6239
      esac
 
6240
 
 
6241
      shared_flag='-shared'
 
6242
    else
 
6243
      # not using gcc
 
6244
      if test "$host_cpu" = ia64; then
 
6245
        shared_flag='${wl}-G'
 
6246
      else
 
6247
        if test "$aix_use_runtimelinking" = yes; then
 
6248
          shared_flag='${wl}-G'
 
6249
        else
 
6250
          shared_flag='${wl}-bM:SRE'
 
6251
        fi
 
6252
      fi
 
6253
    fi
 
6254
 
 
6255
    # It seems that -bexpall can do strange things, so it is better to
 
6256
    # generate a list of symbols to export.
 
6257
    always_export_symbols=yes
 
6258
    if test "$aix_use_runtimelinking" = yes; then
 
6259
      # Warning - without using the other runtime loading flags (-brtl),
 
6260
      # -berok will link without error, but may produce a broken library.
 
6261
      allow_undefined_flag='-berok'
 
6262
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 
6263
      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"
 
6264
    else
 
6265
      if test "$host_cpu" = ia64; then
 
6266
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6267
        allow_undefined_flag="-z nodefs"
 
6268
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6269
      else
 
6270
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 
6271
        # Warning - without using the other run time loading flags,
 
6272
        # -berok will link without error, but may produce a broken library.
 
6273
        allow_undefined_flag='${wl}-berok'
 
6274
        # This is a bit strange, but is similar to how AIX traditionally builds
 
6275
        # it's shared libraries.
 
6276
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
 
6277
      fi
 
6278
    fi
 
6279
    ;;
 
6280
 
 
6281
  amigaos*)
 
6282
    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)'
 
6283
    hardcode_libdir_flag_spec='-L$libdir'
 
6284
    hardcode_minus_L=yes
 
6285
    # see comment about different semantics on the GNU ld section
 
6286
    ld_shlibs=no
 
6287
    ;;
 
6288
 
 
6289
  cygwin* | mingw* | pw32*)
 
6290
    # When not using gcc, we currently assume that we are using
 
6291
    # Microsoft Visual C++.
 
6292
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6293
    # no search path for DLLs.
 
6294
    hardcode_libdir_flag_spec=' '
 
6295
    allow_undefined_flag=unsupported
 
6296
    # Tell ltmain to make .lib files, not .a files.
 
6297
    libext=lib
 
6298
    # FIXME: Setting linknames here is a bad hack.
 
6299
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6300
    # The linker will automatically build a .lib file if we build a DLL.
 
6301
    old_archive_from_new_cmds='true'
 
6302
    # FIXME: Should let the user specify the lib program.
 
6303
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6304
    fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6305
    ;;
 
6306
 
 
6307
  darwin* | rhapsody*)
 
6308
    case "$host_os" in
 
6309
    rhapsody* | darwin1.[012])
 
6310
      allow_undefined_flag='-undefined suppress'
 
6311
      ;;
 
6312
    *) # Darwin 1.3 on
 
6313
      allow_undefined_flag='-flat_namespace -undefined suppress'
 
6314
      ;;
 
6315
    esac
 
6316
    # FIXME: Relying on posixy $() will cause problems for
 
6317
    #        cross-compilation, but unfortunately the echo tests do not
 
6318
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
6319
    #        `"' quotes if we put them in here... so don't!
 
6320
    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
 
6321
    # We need to add '_' to the symbols in $export_symbols first
 
6322
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 
6323
    hardcode_direct=yes
 
6324
    hardcode_shlibpath_var=no
 
6325
    whole_archive_flag_spec='-all_load $convenience'
 
6326
    ;;
 
6327
 
 
6328
  freebsd1*)
 
6329
    ld_shlibs=no
 
6330
    ;;
 
6331
 
 
6332
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6333
  # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6334
  # does not break anything, and helps significantly (at the cost of a little
 
6335
  # extra space).
 
6336
  freebsd2.2*)
 
6337
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6338
    hardcode_libdir_flag_spec='-R$libdir'
 
6339
    hardcode_direct=yes
 
6340
    hardcode_shlibpath_var=no
 
6341
    ;;
 
6342
 
 
6343
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6344
  freebsd2*)
 
6345
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6346
    hardcode_direct=yes
 
6347
    hardcode_minus_L=yes
 
6348
    hardcode_shlibpath_var=no
 
6349
    ;;
 
6350
 
 
6351
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6352
  freebsd*)
 
6353
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6354
    hardcode_libdir_flag_spec='-R$libdir'
 
6355
    hardcode_direct=yes
 
6356
    hardcode_shlibpath_var=no
 
6357
    ;;
 
6358
 
 
6359
  hpux9* | hpux10* | hpux11*)
 
6360
    case $host_os in
 
6361
    hpux9*) 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' ;;
 
6362
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 
6363
    esac
 
6364
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6365
    hardcode_libdir_separator=:
 
6366
    hardcode_direct=yes
 
6367
    hardcode_minus_L=yes # Not in the search PATH, but as the default
 
6368
                         # location of the library.
 
6369
    export_dynamic_flag_spec='${wl}-E'
 
6370
    ;;
 
6371
 
 
6372
  irix5* | irix6* | nonstopux*)
 
6373
    if test "$GCC" = yes; then
 
6374
      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'
 
6375
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6376
    else
 
6377
      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'
 
6378
      hardcode_libdir_flag_spec='-rpath $libdir'
 
6379
    fi
 
6380
    hardcode_libdir_separator=:
 
6381
    link_all_deplibs=yes
 
6382
    ;;
 
6383
 
 
6384
  netbsd*)
 
6385
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6386
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6387
    else
 
6388
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6389
    fi
 
6390
    hardcode_libdir_flag_spec='-R$libdir'
 
6391
    hardcode_direct=yes
 
6392
    hardcode_shlibpath_var=no
 
6393
    ;;
 
6394
 
 
6395
  newsos6)
 
6396
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6397
    hardcode_direct=yes
 
6398
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6399
    hardcode_libdir_separator=:
 
6400
    hardcode_shlibpath_var=no
 
6401
    ;;
 
6402
 
 
6403
  openbsd*)
 
6404
    hardcode_direct=yes
 
6405
    hardcode_shlibpath_var=no
 
6406
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6407
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6408
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6409
      export_dynamic_flag_spec='${wl}-E'
 
6410
    else
 
6411
      case "$host_os" in
 
6412
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
6413
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6414
        hardcode_libdir_flag_spec='-R$libdir'
 
6415
        ;;
 
6416
      *)
 
6417
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6418
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6419
        ;;
 
6420
      esac
 
6421
    fi
 
6422
    ;;
 
6423
 
 
6424
  os2*)
 
6425
    hardcode_libdir_flag_spec='-L$libdir'
 
6426
    hardcode_minus_L=yes
 
6427
    allow_undefined_flag=unsupported
 
6428
    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'
 
6429
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6430
    ;;
 
6431
 
 
6432
  osf3*)
 
6433
    if test "$GCC" = yes; then
 
6434
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6435
      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'
 
6436
    else
 
6437
      allow_undefined_flag=' -expect_unresolved \*'
 
6438
      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'
 
6439
    fi
 
6440
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6441
    hardcode_libdir_separator=:
 
6442
    ;;
 
6443
 
 
6444
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
 
6445
    if test "$GCC" = yes; then
 
6446
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6447
      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'
 
6448
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6449
    else
 
6450
      allow_undefined_flag=' -expect_unresolved \*'
 
6451
      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'
 
6452
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
6453
      $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'
 
6454
 
 
6455
      #Both c and cxx compiler support -rpath directly
 
6456
      hardcode_libdir_flag_spec='-rpath $libdir'
 
6457
    fi
 
6458
    hardcode_libdir_separator=:
 
6459
    ;;
 
6460
 
 
6461
  sco3.2v5*)
 
6462
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6463
    hardcode_shlibpath_var=no
 
6464
    runpath_var=LD_RUN_PATH
 
6465
    hardcode_runpath_var=yes
 
6466
    export_dynamic_flag_spec='${wl}-Bexport'
 
6467
    ;;
 
6468
 
 
6469
  solaris*)
 
6470
    # gcc --version < 3.0 without binutils cannot create self contained
 
6471
    # shared libraries reliably, requiring libgcc.a to resolve some of
 
6472
    # the object symbols generated in some cases.  Libraries that use
 
6473
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
 
6474
    # a copy of libgcc.a into every shared library to guarantee resolving
 
6475
    # such symbols causes other problems:  According to Tim Van Holder
 
6476
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
 
6477
    # (to the application) exception stack for one thing.
 
6478
    no_undefined_flag=' -z defs'
 
6479
    if test "$GCC" = yes; then
 
6480
      case `$CC --version 2>/dev/null` in
 
6481
      [12].*)
 
6482
        cat <<EOF 1>&2
 
6483
 
 
6484
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
 
6485
*** create self contained shared libraries on Solaris systems, without
 
6486
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
 
6487
*** -no-undefined support, which will at least allow you to build shared
 
6488
*** libraries.  However, you may find that when you link such libraries
 
6489
*** into an application without using GCC, you have to manually add
 
6490
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
 
6491
*** upgrade to a newer version of GCC.  Another option is to rebuild your
 
6492
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
 
6493
 
 
6494
EOF
 
6495
        no_undefined_flag=
 
6496
        ;;
 
6497
      esac
 
6498
    fi
 
6499
    # $CC -shared without GNU ld will not create a library from C++
 
6500
    # object files and a static libstdc++, better avoid it by now
 
6501
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6502
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6503
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6504
    hardcode_libdir_flag_spec='-R$libdir'
 
6505
    hardcode_shlibpath_var=no
 
6506
    case $host_os in
 
6507
    solaris2.[0-5] | solaris2.[0-5].*) ;;
 
6508
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6509
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
6510
    esac
 
6511
    link_all_deplibs=yes
 
6512
    ;;
 
6513
 
 
6514
  sunos4*)
 
6515
    if test "x$host_vendor" = xsequent; then
 
6516
      # Use $CC to link under sequent, because it throws in some extra .o
 
6517
      # files that make .init and .fini sections work.
 
6518
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6519
    else
 
6520
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6521
    fi
 
6522
    hardcode_libdir_flag_spec='-L$libdir'
 
6523
    hardcode_direct=yes
 
6524
    hardcode_minus_L=yes
 
6525
    hardcode_shlibpath_var=no
 
6526
    ;;
 
6527
 
 
6528
  sysv4)
 
6529
    case $host_vendor in
 
6530
      sni)
 
6531
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6532
        hardcode_direct=yes # is this really true???
 
6533
        ;;
 
6534
      siemens)
 
6535
        ## LD is ld it makes a PLAMLIB
 
6536
        ## CC just makes a GrossModule.
 
6537
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6538
        reload_cmds='$CC -r -o $output$reload_objs'
 
6539
        hardcode_direct=no
 
6540
        ;;
 
6541
      motorola)
 
6542
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6543
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
6544
        ;;
 
6545
    esac
 
6546
    runpath_var='LD_RUN_PATH'
 
6547
    hardcode_shlibpath_var=no
 
6548
    ;;
 
6549
 
 
6550
  sysv4.3*)
 
6551
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6552
    hardcode_shlibpath_var=no
 
6553
    export_dynamic_flag_spec='-Bexport'
 
6554
    ;;
 
6555
 
 
6556
  sysv5*)
 
6557
    no_undefined_flag=' -z text'
 
6558
    # $CC -shared without GNU ld will not create a library from C++
 
6559
    # object files and a static libstdc++, better avoid it by now
 
6560
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6561
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6562
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6563
    hardcode_libdir_flag_spec=
 
6564
    hardcode_shlibpath_var=no
 
6565
    runpath_var='LD_RUN_PATH'
 
6566
    ;;
 
6567
 
 
6568
  uts4*)
 
6569
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6570
    hardcode_libdir_flag_spec='-L$libdir'
 
6571
    hardcode_shlibpath_var=no
 
6572
    ;;
 
6573
 
 
6574
  dgux*)
 
6575
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6576
    hardcode_libdir_flag_spec='-L$libdir'
 
6577
    hardcode_shlibpath_var=no
 
6578
    ;;
 
6579
 
 
6580
  sysv4*MP*)
 
6581
    if test -d /usr/nec; then
 
6582
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6583
      hardcode_shlibpath_var=no
 
6584
      runpath_var=LD_RUN_PATH
 
6585
      hardcode_runpath_var=yes
 
6586
      ld_shlibs=yes
 
6587
    fi
 
6588
    ;;
 
6589
 
 
6590
  sysv4.2uw2*)
 
6591
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6592
    hardcode_direct=yes
 
6593
    hardcode_minus_L=no
 
6594
    hardcode_shlibpath_var=no
 
6595
    hardcode_runpath_var=yes
 
6596
    runpath_var=LD_RUN_PATH
 
6597
    ;;
 
6598
 
 
6599
  sysv5uw7* | unixware7*)
 
6600
    no_undefined_flag='${wl}-z ${wl}text'
 
6601
    if test "$GCC" = yes; then
 
6602
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6603
    else
 
6604
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6605
    fi
 
6606
    runpath_var='LD_RUN_PATH'
 
6607
    hardcode_shlibpath_var=no
 
6608
    ;;
 
6609
 
 
6610
  *)
 
6611
    ld_shlibs=no
 
6612
    ;;
 
6613
  esac
 
6614
fi
 
6615
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
6616
echo "${ECHO_T}$ld_shlibs" >&6
 
6617
test "$ld_shlibs" = no && can_build_shared=no
 
6618
 
 
6619
# Check hardcoding attributes.
 
6620
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
6621
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
6622
hardcode_action=
 
6623
if test -n "$hardcode_libdir_flag_spec" || \
 
6624
   test -n "$runpath_var"; then
 
6625
 
 
6626
  # We can hardcode non-existant directories.
 
6627
  if test "$hardcode_direct" != no &&
 
6628
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
6629
     # have to relink, otherwise we might link with an installed library
 
6630
     # when we should be linking with a yet-to-be-installed one
 
6631
     ## test "$hardcode_shlibpath_var" != no &&
 
6632
     test "$hardcode_minus_L" != no; then
 
6633
    # Linking always hardcodes the temporary library directory.
 
6634
    hardcode_action=relink
 
6635
  else
 
6636
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
6637
    hardcode_action=immediate
 
6638
  fi
 
6639
else
 
6640
  # We cannot hardcode anything, or else we can only hardcode existing
 
6641
  # directories.
 
6642
  hardcode_action=unsupported
 
6643
fi
 
6644
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
6645
echo "${ECHO_T}$hardcode_action" >&6
 
6646
 
 
6647
striplib=
 
6648
old_striplib=
 
6649
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
6650
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
6651
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
6652
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
6653
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
6654
  echo "$as_me:$LINENO: result: yes" >&5
 
6655
echo "${ECHO_T}yes" >&6
 
6656
else
 
6657
  echo "$as_me:$LINENO: result: no" >&5
 
6658
echo "${ECHO_T}no" >&6
 
6659
fi
 
6660
 
 
6661
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6662
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6663
 
 
6664
# PORTME Fill in your ld.so characteristics
 
6665
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
6666
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
6667
library_names_spec=
 
6668
libname_spec='lib$name'
 
6669
soname_spec=
 
6670
postinstall_cmds=
 
6671
postuninstall_cmds=
 
6672
finish_cmds=
 
6673
finish_eval=
 
6674
shlibpath_var=
 
6675
shlibpath_overrides_runpath=unknown
 
6676
version_type=none
 
6677
dynamic_linker="$host_os ld.so"
 
6678
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
6679
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
6680
 
 
6681
case $host_os in
 
6682
aix3*)
 
6683
  version_type=linux
 
6684
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
6685
  shlibpath_var=LIBPATH
 
6686
 
 
6687
  # AIX has no versioning support, so we append a major version to the name.
 
6688
  soname_spec='${libname}${release}.so$major'
 
6689
  ;;
 
6690
 
 
6691
aix4* | aix5*)
 
6692
  version_type=linux
 
6693
  need_lib_prefix=no
 
6694
  need_version=no
 
6695
  hardcode_into_libs=yes
 
6696
  if test "$host_cpu" = ia64; then
 
6697
    # AIX 5 supports IA64
 
6698
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
6699
    shlibpath_var=LD_LIBRARY_PATH
 
6700
  else
 
6701
    # With GCC up to 2.95.x, collect2 would create an import file
 
6702
    # for dependence libraries.  The import file would start with
 
6703
    # the line `#! .'.  This would cause the generated library to
 
6704
    # depend on `.', always an invalid library.  This was fixed in
 
6705
    # development snapshots of GCC prior to 3.0.
 
6706
    case $host_os in
 
6707
      aix4 | aix4.[01] | aix4.[01].*)
 
6708
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
6709
             echo ' yes '
 
6710
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
6711
          :
 
6712
        else
 
6713
          can_build_shared=no
 
6714
        fi
 
6715
        ;;
 
6716
    esac
 
6717
    # AIX (on Power*) has no versioning support, so currently we can
 
6718
    # not hardcode correct soname into executable. Probably we can
 
6719
    # add versioning support to collect2, so additional links can
 
6720
    # be useful in future.
 
6721
    if test "$aix_use_runtimelinking" = yes; then
 
6722
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
6723
      # instead of lib<name>.a to let people know that these are not
 
6724
      # typical AIX shared libraries.
 
6725
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6726
    else
 
6727
      # We preserve .a as extension for shared libraries through AIX4.2
 
6728
      # and later when we are not doing run time linking.
 
6729
      library_names_spec='${libname}${release}.a $libname.a'
 
6730
      soname_spec='${libname}${release}.so$major'
 
6731
    fi
 
6732
    shlibpath_var=LIBPATH
 
6733
  fi
 
6734
  hardcode_into_libs=yes
 
6735
  ;;
 
6736
 
 
6737
amigaos*)
 
6738
  library_names_spec='$libname.ixlibrary $libname.a'
 
6739
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
6740
  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'
 
6741
  ;;
 
6742
 
 
6743
beos*)
 
6744
  library_names_spec='${libname}.so'
 
6745
  dynamic_linker="$host_os ld.so"
 
6746
  shlibpath_var=LIBRARY_PATH
 
6747
  ;;
 
6748
 
 
6749
bsdi4*)
 
6750
  version_type=linux
 
6751
  need_version=no
 
6752
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6753
  soname_spec='${libname}${release}.so$major'
 
6754
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
6755
  shlibpath_var=LD_LIBRARY_PATH
 
6756
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
6757
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
6758
  export_dynamic_flag_spec=-rdynamic
 
6759
  # the default ld.so.conf also contains /usr/contrib/lib and
 
6760
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
6761
  # libtool to hard-code these into programs
 
6762
  ;;
 
6763
 
 
6764
cygwin* | mingw* | pw32*)
 
6765
  version_type=windows
 
6766
  need_version=no
 
6767
  need_lib_prefix=no
 
6768
  case $GCC,$host_os in
 
6769
  yes,cygwin*)
 
6770
    library_names_spec='$libname.dll.a'
 
6771
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
6772
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
6773
      dldir=$destdir/`dirname \$dlpath`~
 
6774
      test -d \$dldir || mkdir -p \$dldir~
 
6775
      $install_prog .libs/$dlname \$dldir/$dlname'
 
6776
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
6777
      dlpath=$dir/\$dldll~
 
6778
       $rm \$dlpath'
 
6779
    ;;
 
6780
  yes,mingw*)
 
6781
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
6782
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
 
6783
    ;;
 
6784
  yes,pw32*)
 
6785
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 
6786
    ;;
 
6787
  *)
 
6788
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 
6789
    ;;
 
6790
  esac
 
6791
  dynamic_linker='Win32 ld.exe'
 
6792
  # FIXME: first we should search . and the directory the executable is in
 
6793
  shlibpath_var=PATH
 
6794
  ;;
 
6795
 
 
6796
darwin* | rhapsody*)
 
6797
  dynamic_linker="$host_os dyld"
 
6798
  version_type=darwin
 
6799
  need_lib_prefix=no
 
6800
  need_version=no
 
6801
  # FIXME: Relying on posixy $() will cause problems for
 
6802
  #        cross-compilation, but unfortunately the echo tests do not
 
6803
  #        yet detect zsh echo's removal of \ escapes.
 
6804
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
 
6805
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
6806
  shlibpath_overrides_runpath=yes
 
6807
  shlibpath_var=DYLD_LIBRARY_PATH
 
6808
  ;;
 
6809
 
 
6810
freebsd1*)
 
6811
  dynamic_linker=no
 
6812
  ;;
 
6813
 
 
6814
freebsd*)
 
6815
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
6816
  version_type=freebsd-$objformat
 
6817
  case $version_type in
 
6818
    freebsd-elf*)
 
6819
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
6820
      need_version=no
 
6821
      need_lib_prefix=no
 
6822
      ;;
 
6823
    freebsd-*)
 
6824
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
6825
      need_version=yes
 
6826
      ;;
 
6827
  esac
 
6828
  shlibpath_var=LD_LIBRARY_PATH
 
6829
  case $host_os in
 
6830
  freebsd2*)
 
6831
    shlibpath_overrides_runpath=yes
 
6832
    ;;
 
6833
  *)
 
6834
    shlibpath_overrides_runpath=no
 
6835
    hardcode_into_libs=yes
 
6836
    ;;
 
6837
  esac
 
6838
  ;;
 
6839
 
 
6840
gnu*)
 
6841
  version_type=linux
 
6842
  need_lib_prefix=no
 
6843
  need_version=no
 
6844
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 
6845
  soname_spec='${libname}${release}.so$major'
 
6846
  shlibpath_var=LD_LIBRARY_PATH
 
6847
  hardcode_into_libs=yes
 
6848
  ;;
 
6849
 
 
6850
hpux9* | hpux10* | hpux11*)
 
6851
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
6852
  # link against other versions.
 
6853
  dynamic_linker="$host_os dld.sl"
 
6854
  version_type=sunos
 
6855
  need_lib_prefix=no
 
6856
  need_version=no
 
6857
  shlibpath_var=SHLIB_PATH
 
6858
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
6859
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 
6860
  soname_spec='${libname}${release}.sl$major'
 
6861
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
6862
  postinstall_cmds='chmod 555 $lib'
 
6863
  ;;
 
6864
 
 
6865
irix5* | irix6* | nonstopux*)
 
6866
  case $host_os in
 
6867
    nonstopux*) version_type=nonstopux ;;
 
6868
    *)          version_type=irix ;;
 
6869
  esac
 
6870
  need_lib_prefix=no
 
6871
  need_version=no
 
6872
  soname_spec='${libname}${release}.so$major'
 
6873
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
6874
  case $host_os in
 
6875
  irix5* | nonstopux*)
 
6876
    libsuff= shlibsuff=
 
6877
    ;;
 
6878
  *)
 
6879
    case $LD in # libtool.m4 will add one of these switches to LD
 
6880
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 
6881
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 
6882
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
6883
    *) libsuff= shlibsuff= libmagic=never-match;;
 
6884
    esac
 
6885
    ;;
 
6886
  esac
 
6887
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
6888
  shlibpath_overrides_runpath=no
 
6889
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
6890
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
6891
  ;;
 
6892
 
 
6893
# No shared lib support for Linux oldld, aout, or coff.
 
6894
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 
6895
  dynamic_linker=no
 
6896
  ;;
 
6897
 
 
6898
# This must be Linux ELF.
 
6899
linux-gnu*)
 
6900
  version_type=linux
 
6901
  need_lib_prefix=no
 
6902
  need_version=no
 
6903
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6904
  soname_spec='${libname}${release}.so$major'
 
6905
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
6906
  shlibpath_var=LD_LIBRARY_PATH
 
6907
  shlibpath_overrides_runpath=no
 
6908
  # This implies no fast_install, which is unacceptable.
 
6909
  # Some rework will be needed to allow for fast_install
 
6910
  # before this can be enabled.
 
6911
  hardcode_into_libs=yes
 
6912
 
 
6913
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
6914
  # powerpc, because MkLinux only supported shared libraries with the
 
6915
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
6916
  # most powerpc-linux boxes support dynamic linking these days and
 
6917
  # people can always --disable-shared, the test was removed, and we
 
6918
  # assume the GNU/Linux dynamic linker is in use.
 
6919
  dynamic_linker='GNU/Linux ld.so'
 
6920
 
 
6921
  # Find out which ABI we are using (multilib Linux x86_64 hack).
 
6922
  libsuff=
 
6923
  case "$host_cpu" in
 
6924
  x86_64*|s390x*)
 
6925
    echo '#line 6925 "configure"' > conftest.$ac_ext
 
6926
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6927
  (eval $ac_compile) 2>&5
 
6928
  ac_status=$?
 
6929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6930
  (exit $ac_status); }; then
 
6931
      case `/usr/bin/file conftest.$ac_objext` in
 
6932
      *64-bit*)
 
6933
        libsuff=64
 
6934
        ;;
 
6935
      esac
 
6936
    fi
 
6937
    rm -rf conftest*
 
6938
    ;;
 
6939
  *)
 
6940
    ;;
 
6941
  esac
 
6942
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
6943
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
6944
  ;;
 
6945
 
 
6946
netbsd*)
 
6947
  version_type=sunos
 
6948
  need_lib_prefix=no
 
6949
  need_version=no
 
6950
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6951
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6952
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
6953
    dynamic_linker='NetBSD (a.out) ld.so'
 
6954
  else
 
6955
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 
6956
    soname_spec='${libname}${release}.so$major'
 
6957
    dynamic_linker='NetBSD ld.elf_so'
 
6958
  fi
 
6959
  shlibpath_var=LD_LIBRARY_PATH
 
6960
  shlibpath_overrides_runpath=yes
 
6961
  hardcode_into_libs=yes
 
6962
  ;;
 
6963
 
 
6964
newsos6)
 
6965
  version_type=linux
 
6966
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
6967
  shlibpath_var=LD_LIBRARY_PATH
 
6968
  shlibpath_overrides_runpath=yes
 
6969
  ;;
 
6970
 
 
6971
openbsd*)
 
6972
  version_type=sunos
 
6973
  need_lib_prefix=no
 
6974
  need_version=no
 
6975
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6976
    case "$host_os" in
 
6977
    openbsd2.[89] | openbsd2.[89].*)
 
6978
      shlibpath_overrides_runpath=no
 
6979
      ;;
 
6980
    *)
 
6981
      shlibpath_overrides_runpath=yes
 
6982
      ;;
 
6983
    esac
 
6984
  else
 
6985
    shlibpath_overrides_runpath=yes
 
6986
  fi
 
6987
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
6988
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
6989
  shlibpath_var=LD_LIBRARY_PATH
 
6990
  ;;
 
6991
 
 
6992
os2*)
 
6993
  libname_spec='$name'
 
6994
  need_lib_prefix=no
 
6995
  library_names_spec='$libname.dll $libname.a'
 
6996
  dynamic_linker='OS/2 ld.exe'
 
6997
  shlibpath_var=LIBPATH
 
6998
  ;;
 
6999
 
 
7000
osf3* | osf4* | osf5*)
 
7001
  version_type=osf
 
7002
  need_version=no
 
7003
  soname_spec='${libname}${release}.so$major'
 
7004
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7005
  shlibpath_var=LD_LIBRARY_PATH
 
7006
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7007
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7008
  hardcode_into_libs=yes
 
7009
  ;;
 
7010
 
 
7011
sco3.2v5*)
 
7012
  version_type=osf
 
7013
  soname_spec='${libname}${release}.so$major'
 
7014
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7015
  shlibpath_var=LD_LIBRARY_PATH
 
7016
  ;;
 
7017
 
 
7018
solaris*)
 
7019
  version_type=linux
 
7020
  need_lib_prefix=no
 
7021
  need_version=no
 
7022
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7023
  soname_spec='${libname}${release}.so$major'
 
7024
  shlibpath_var=LD_LIBRARY_PATH
 
7025
  shlibpath_overrides_runpath=yes
 
7026
  hardcode_into_libs=yes
 
7027
  # ldd complains unless libraries are executable
 
7028
  postinstall_cmds='chmod +x $lib'
 
7029
  ;;
 
7030
 
 
7031
sunos4*)
 
7032
  version_type=sunos
 
7033
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
7034
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7035
  shlibpath_var=LD_LIBRARY_PATH
 
7036
  shlibpath_overrides_runpath=yes
 
7037
  if test "$with_gnu_ld" = yes; then
 
7038
    need_lib_prefix=no
 
7039
  fi
 
7040
  need_version=yes
 
7041
  ;;
 
7042
 
 
7043
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7044
  version_type=linux
 
7045
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7046
  soname_spec='${libname}${release}.so$major'
 
7047
  shlibpath_var=LD_LIBRARY_PATH
 
7048
  case $host_vendor in
 
7049
    sni)
 
7050
      shlibpath_overrides_runpath=no
 
7051
      need_lib_prefix=no
 
7052
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7053
      runpath_var=LD_RUN_PATH
 
7054
      ;;
 
7055
    siemens)
 
7056
      need_lib_prefix=no
 
7057
      ;;
 
7058
    motorola)
 
7059
      need_lib_prefix=no
 
7060
      need_version=no
 
7061
      shlibpath_overrides_runpath=no
 
7062
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7063
      ;;
 
7064
  esac
 
7065
  ;;
 
7066
 
 
7067
uts4*)
 
7068
  version_type=linux
 
7069
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7070
  soname_spec='${libname}${release}.so$major'
 
7071
  shlibpath_var=LD_LIBRARY_PATH
 
7072
  ;;
 
7073
 
 
7074
dgux*)
 
7075
  version_type=linux
 
7076
  need_lib_prefix=no
 
7077
  need_version=no
 
7078
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7079
  soname_spec='${libname}${release}.so$major'
 
7080
  shlibpath_var=LD_LIBRARY_PATH
 
7081
  ;;
 
7082
 
 
7083
sysv4*MP*)
 
7084
  if test -d /usr/nec ;then
 
7085
    version_type=linux
 
7086
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 
7087
    soname_spec='$libname.so.$major'
 
7088
    shlibpath_var=LD_LIBRARY_PATH
 
7089
  fi
 
7090
  ;;
 
7091
 
 
7092
*)
 
7093
  dynamic_linker=no
 
7094
  ;;
 
7095
esac
 
7096
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7097
echo "${ECHO_T}$dynamic_linker" >&6
 
7098
test "$dynamic_linker" = no && can_build_shared=no
 
7099
 
 
7100
# Report the final consequences.
 
7101
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
7102
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
7103
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
7104
echo "${ECHO_T}$can_build_shared" >&6
 
7105
 
 
7106
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
7107
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
7108
test "$can_build_shared" = "no" && enable_shared=no
 
7109
 
 
7110
# On AIX, shared libraries and static libraries use the same namespace, and
 
7111
# are all built from PIC.
 
7112
case "$host_os" in
 
7113
aix3*)
 
7114
  test "$enable_shared" = yes && enable_static=no
 
7115
  if test -n "$RANLIB"; then
 
7116
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
7117
    postinstall_cmds='$RANLIB $lib'
 
7118
  fi
 
7119
  ;;
 
7120
 
 
7121
aix4*)
 
7122
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
7123
    test "$enable_shared" = yes && enable_static=no
 
7124
  fi
 
7125
  ;;
 
7126
esac
 
7127
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
7128
echo "${ECHO_T}$enable_shared" >&6
 
7129
 
 
7130
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
7131
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
7132
# Make sure either enable_shared or enable_static is yes.
 
7133
test "$enable_shared" = yes || enable_static=yes
 
7134
echo "$as_me:$LINENO: result: $enable_static" >&5
 
7135
echo "${ECHO_T}$enable_static" >&6
 
7136
 
 
7137
if test "$hardcode_action" = relink; then
 
7138
  # Fast installation is not supported
 
7139
  enable_fast_install=no
 
7140
elif test "$shlibpath_overrides_runpath" = yes ||
 
7141
     test "$enable_shared" = no; then
 
7142
  # Fast installation is not necessary
 
7143
  enable_fast_install=needless
 
7144
fi
 
7145
 
 
7146
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7147
if test "$GCC" = yes; then
 
7148
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7149
fi
 
7150
 
 
7151
if test "x$enable_dlopen" != xyes; then
 
7152
  enable_dlopen=unknown
 
7153
  enable_dlopen_self=unknown
 
7154
  enable_dlopen_self_static=unknown
 
7155
else
 
7156
  lt_cv_dlopen=no
 
7157
  lt_cv_dlopen_libs=
 
7158
 
 
7159
  case $host_os in
 
7160
  beos*)
 
7161
    lt_cv_dlopen="load_add_on"
 
7162
    lt_cv_dlopen_libs=
 
7163
    lt_cv_dlopen_self=yes
 
7164
    ;;
 
7165
 
 
7166
  cygwin* | mingw* | pw32*)
 
7167
    lt_cv_dlopen="LoadLibrary"
 
7168
    lt_cv_dlopen_libs=
 
7169
   ;;
 
7170
 
 
7171
  *)
 
7172
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
7173
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
7174
if test "${ac_cv_func_shl_load+set}" = set; then
 
7175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7176
else
 
7177
  cat >conftest.$ac_ext <<_ACEOF
 
7178
/* confdefs.h.  */
 
7179
_ACEOF
 
7180
cat confdefs.h >>conftest.$ac_ext
 
7181
cat >>conftest.$ac_ext <<_ACEOF
 
7182
/* end confdefs.h.  */
 
7183
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
7184
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7185
#define shl_load innocuous_shl_load
 
7186
 
 
7187
/* System header to define __stub macros and hopefully few prototypes,
 
7188
    which can conflict with char shl_load (); below.
 
7189
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7190
    <limits.h> exists even on freestanding compilers.  */
 
7191
 
 
7192
#ifdef __STDC__
 
7193
# include <limits.h>
 
7194
#else
 
7195
# include <assert.h>
 
7196
#endif
 
7197
 
 
7198
#undef shl_load
 
7199
 
 
7200
/* Override any gcc2 internal prototype to avoid an error.  */
 
7201
#ifdef __cplusplus
 
7202
extern "C"
 
7203
{
 
7204
#endif
 
7205
/* We use char because int might match the return type of a gcc2
 
7206
   builtin and then its argument prototype would still apply.  */
 
7207
char shl_load ();
 
7208
/* The GNU C library defines this for functions which it implements
 
7209
    to always fail with ENOSYS.  Some functions are actually named
 
7210
    something starting with __ and the normal name is an alias.  */
 
7211
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
7212
choke me
 
7213
#else
 
7214
char (*f) () = shl_load;
 
7215
#endif
 
7216
#ifdef __cplusplus
 
7217
}
 
7218
#endif
 
7219
 
 
7220
int
 
7221
main ()
 
7222
{
 
7223
return f != shl_load;
 
7224
  ;
 
7225
  return 0;
 
7226
}
 
7227
_ACEOF
 
7228
rm -f conftest.$ac_objext conftest$ac_exeext
 
7229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7230
  (eval $ac_link) 2>conftest.er1
 
7231
  ac_status=$?
 
7232
  grep -v '^ *+' conftest.er1 >conftest.err
 
7233
  rm -f conftest.er1
 
7234
  cat conftest.err >&5
 
7235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7236
  (exit $ac_status); } &&
 
7237
         { ac_try='test -z "$ac_c_werror_flag"
 
7238
                         || test ! -s conftest.err'
 
7239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7240
  (eval $ac_try) 2>&5
 
7241
  ac_status=$?
 
7242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7243
  (exit $ac_status); }; } &&
 
7244
         { ac_try='test -s conftest$ac_exeext'
 
7245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7246
  (eval $ac_try) 2>&5
 
7247
  ac_status=$?
 
7248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7249
  (exit $ac_status); }; }; then
 
7250
  ac_cv_func_shl_load=yes
 
7251
else
 
7252
  echo "$as_me: failed program was:" >&5
 
7253
sed 's/^/| /' conftest.$ac_ext >&5
 
7254
 
 
7255
ac_cv_func_shl_load=no
 
7256
fi
 
7257
rm -f conftest.err conftest.$ac_objext \
 
7258
      conftest$ac_exeext conftest.$ac_ext
 
7259
fi
 
7260
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
7261
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
7262
if test $ac_cv_func_shl_load = yes; then
 
7263
  lt_cv_dlopen="shl_load"
 
7264
else
 
7265
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
7266
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
7267
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
7268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7269
else
 
7270
  ac_check_lib_save_LIBS=$LIBS
 
7271
LIBS="-ldld  $LIBS"
 
7272
cat >conftest.$ac_ext <<_ACEOF
 
7273
/* confdefs.h.  */
 
7274
_ACEOF
 
7275
cat confdefs.h >>conftest.$ac_ext
 
7276
cat >>conftest.$ac_ext <<_ACEOF
 
7277
/* end confdefs.h.  */
 
7278
 
 
7279
/* Override any gcc2 internal prototype to avoid an error.  */
 
7280
#ifdef __cplusplus
 
7281
extern "C"
 
7282
#endif
 
7283
/* We use char because int might match the return type of a gcc2
 
7284
   builtin and then its argument prototype would still apply.  */
 
7285
char shl_load ();
 
7286
int
 
7287
main ()
 
7288
{
 
7289
shl_load ();
 
7290
  ;
 
7291
  return 0;
 
7292
}
 
7293
_ACEOF
 
7294
rm -f conftest.$ac_objext conftest$ac_exeext
 
7295
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7296
  (eval $ac_link) 2>conftest.er1
 
7297
  ac_status=$?
 
7298
  grep -v '^ *+' conftest.er1 >conftest.err
 
7299
  rm -f conftest.er1
 
7300
  cat conftest.err >&5
 
7301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7302
  (exit $ac_status); } &&
 
7303
         { ac_try='test -z "$ac_c_werror_flag"
 
7304
                         || test ! -s conftest.err'
 
7305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7306
  (eval $ac_try) 2>&5
 
7307
  ac_status=$?
 
7308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7309
  (exit $ac_status); }; } &&
 
7310
         { ac_try='test -s conftest$ac_exeext'
 
7311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7312
  (eval $ac_try) 2>&5
 
7313
  ac_status=$?
 
7314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7315
  (exit $ac_status); }; }; then
 
7316
  ac_cv_lib_dld_shl_load=yes
 
7317
else
 
7318
  echo "$as_me: failed program was:" >&5
 
7319
sed 's/^/| /' conftest.$ac_ext >&5
 
7320
 
 
7321
ac_cv_lib_dld_shl_load=no
 
7322
fi
 
7323
rm -f conftest.err conftest.$ac_objext \
 
7324
      conftest$ac_exeext conftest.$ac_ext
 
7325
LIBS=$ac_check_lib_save_LIBS
 
7326
fi
 
7327
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
7328
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
7329
if test $ac_cv_lib_dld_shl_load = yes; then
 
7330
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
7331
else
 
7332
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
7333
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
7334
if test "${ac_cv_func_dlopen+set}" = set; then
 
7335
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7336
else
 
7337
  cat >conftest.$ac_ext <<_ACEOF
 
7338
/* confdefs.h.  */
 
7339
_ACEOF
 
7340
cat confdefs.h >>conftest.$ac_ext
 
7341
cat >>conftest.$ac_ext <<_ACEOF
 
7342
/* end confdefs.h.  */
 
7343
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
7344
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7345
#define dlopen innocuous_dlopen
 
7346
 
 
7347
/* System header to define __stub macros and hopefully few prototypes,
 
7348
    which can conflict with char dlopen (); below.
 
7349
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7350
    <limits.h> exists even on freestanding compilers.  */
 
7351
 
 
7352
#ifdef __STDC__
 
7353
# include <limits.h>
 
7354
#else
 
7355
# include <assert.h>
 
7356
#endif
 
7357
 
 
7358
#undef dlopen
 
7359
 
 
7360
/* Override any gcc2 internal prototype to avoid an error.  */
 
7361
#ifdef __cplusplus
 
7362
extern "C"
 
7363
{
 
7364
#endif
 
7365
/* We use char because int might match the return type of a gcc2
 
7366
   builtin and then its argument prototype would still apply.  */
 
7367
char dlopen ();
 
7368
/* The GNU C library defines this for functions which it implements
 
7369
    to always fail with ENOSYS.  Some functions are actually named
 
7370
    something starting with __ and the normal name is an alias.  */
 
7371
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
7372
choke me
 
7373
#else
 
7374
char (*f) () = dlopen;
 
7375
#endif
 
7376
#ifdef __cplusplus
 
7377
}
 
7378
#endif
 
7379
 
 
7380
int
 
7381
main ()
 
7382
{
 
7383
return f != dlopen;
 
7384
  ;
 
7385
  return 0;
 
7386
}
 
7387
_ACEOF
 
7388
rm -f conftest.$ac_objext conftest$ac_exeext
 
7389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7390
  (eval $ac_link) 2>conftest.er1
 
7391
  ac_status=$?
 
7392
  grep -v '^ *+' conftest.er1 >conftest.err
 
7393
  rm -f conftest.er1
 
7394
  cat conftest.err >&5
 
7395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7396
  (exit $ac_status); } &&
 
7397
         { ac_try='test -z "$ac_c_werror_flag"
 
7398
                         || test ! -s conftest.err'
 
7399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7400
  (eval $ac_try) 2>&5
 
7401
  ac_status=$?
 
7402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7403
  (exit $ac_status); }; } &&
 
7404
         { ac_try='test -s conftest$ac_exeext'
 
7405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7406
  (eval $ac_try) 2>&5
 
7407
  ac_status=$?
 
7408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7409
  (exit $ac_status); }; }; then
 
7410
  ac_cv_func_dlopen=yes
 
7411
else
 
7412
  echo "$as_me: failed program was:" >&5
 
7413
sed 's/^/| /' conftest.$ac_ext >&5
 
7414
 
 
7415
ac_cv_func_dlopen=no
 
7416
fi
 
7417
rm -f conftest.err conftest.$ac_objext \
 
7418
      conftest$ac_exeext conftest.$ac_ext
 
7419
fi
 
7420
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
7421
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
7422
if test $ac_cv_func_dlopen = yes; then
 
7423
  lt_cv_dlopen="dlopen"
 
7424
else
 
7425
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7426
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7427
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7429
else
 
7430
  ac_check_lib_save_LIBS=$LIBS
 
7431
LIBS="-ldl  $LIBS"
 
7432
cat >conftest.$ac_ext <<_ACEOF
 
7433
/* confdefs.h.  */
 
7434
_ACEOF
 
7435
cat confdefs.h >>conftest.$ac_ext
 
7436
cat >>conftest.$ac_ext <<_ACEOF
 
7437
/* end confdefs.h.  */
 
7438
 
 
7439
/* Override any gcc2 internal prototype to avoid an error.  */
 
7440
#ifdef __cplusplus
 
7441
extern "C"
 
7442
#endif
 
7443
/* We use char because int might match the return type of a gcc2
 
7444
   builtin and then its argument prototype would still apply.  */
 
7445
char dlopen ();
 
7446
int
 
7447
main ()
 
7448
{
 
7449
dlopen ();
 
7450
  ;
 
7451
  return 0;
 
7452
}
 
7453
_ACEOF
 
7454
rm -f conftest.$ac_objext conftest$ac_exeext
 
7455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7456
  (eval $ac_link) 2>conftest.er1
 
7457
  ac_status=$?
 
7458
  grep -v '^ *+' conftest.er1 >conftest.err
 
7459
  rm -f conftest.er1
 
7460
  cat conftest.err >&5
 
7461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7462
  (exit $ac_status); } &&
 
7463
         { ac_try='test -z "$ac_c_werror_flag"
 
7464
                         || test ! -s conftest.err'
 
7465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7466
  (eval $ac_try) 2>&5
 
7467
  ac_status=$?
 
7468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7469
  (exit $ac_status); }; } &&
 
7470
         { ac_try='test -s conftest$ac_exeext'
 
7471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7472
  (eval $ac_try) 2>&5
 
7473
  ac_status=$?
 
7474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7475
  (exit $ac_status); }; }; then
 
7476
  ac_cv_lib_dl_dlopen=yes
 
7477
else
 
7478
  echo "$as_me: failed program was:" >&5
 
7479
sed 's/^/| /' conftest.$ac_ext >&5
 
7480
 
 
7481
ac_cv_lib_dl_dlopen=no
 
7482
fi
 
7483
rm -f conftest.err conftest.$ac_objext \
 
7484
      conftest$ac_exeext conftest.$ac_ext
 
7485
LIBS=$ac_check_lib_save_LIBS
 
7486
fi
 
7487
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7488
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7489
if test $ac_cv_lib_dl_dlopen = yes; then
 
7490
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7491
else
 
7492
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
7493
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
7494
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
7495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7496
else
 
7497
  ac_check_lib_save_LIBS=$LIBS
 
7498
LIBS="-lsvld  $LIBS"
 
7499
cat >conftest.$ac_ext <<_ACEOF
 
7500
/* confdefs.h.  */
 
7501
_ACEOF
 
7502
cat confdefs.h >>conftest.$ac_ext
 
7503
cat >>conftest.$ac_ext <<_ACEOF
 
7504
/* end confdefs.h.  */
 
7505
 
 
7506
/* Override any gcc2 internal prototype to avoid an error.  */
 
7507
#ifdef __cplusplus
 
7508
extern "C"
 
7509
#endif
 
7510
/* We use char because int might match the return type of a gcc2
 
7511
   builtin and then its argument prototype would still apply.  */
 
7512
char dlopen ();
 
7513
int
 
7514
main ()
 
7515
{
 
7516
dlopen ();
 
7517
  ;
 
7518
  return 0;
 
7519
}
 
7520
_ACEOF
 
7521
rm -f conftest.$ac_objext conftest$ac_exeext
 
7522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7523
  (eval $ac_link) 2>conftest.er1
 
7524
  ac_status=$?
 
7525
  grep -v '^ *+' conftest.er1 >conftest.err
 
7526
  rm -f conftest.er1
 
7527
  cat conftest.err >&5
 
7528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7529
  (exit $ac_status); } &&
 
7530
         { ac_try='test -z "$ac_c_werror_flag"
 
7531
                         || test ! -s conftest.err'
 
7532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7533
  (eval $ac_try) 2>&5
 
7534
  ac_status=$?
 
7535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7536
  (exit $ac_status); }; } &&
 
7537
         { ac_try='test -s conftest$ac_exeext'
 
7538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7539
  (eval $ac_try) 2>&5
 
7540
  ac_status=$?
 
7541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7542
  (exit $ac_status); }; }; then
 
7543
  ac_cv_lib_svld_dlopen=yes
 
7544
else
 
7545
  echo "$as_me: failed program was:" >&5
 
7546
sed 's/^/| /' conftest.$ac_ext >&5
 
7547
 
 
7548
ac_cv_lib_svld_dlopen=no
 
7549
fi
 
7550
rm -f conftest.err conftest.$ac_objext \
 
7551
      conftest$ac_exeext conftest.$ac_ext
 
7552
LIBS=$ac_check_lib_save_LIBS
 
7553
fi
 
7554
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
7555
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
7556
if test $ac_cv_lib_svld_dlopen = yes; then
 
7557
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
7558
else
 
7559
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
7560
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
7561
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
7562
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7563
else
 
7564
  ac_check_lib_save_LIBS=$LIBS
 
7565
LIBS="-ldld  $LIBS"
 
7566
cat >conftest.$ac_ext <<_ACEOF
 
7567
/* confdefs.h.  */
 
7568
_ACEOF
 
7569
cat confdefs.h >>conftest.$ac_ext
 
7570
cat >>conftest.$ac_ext <<_ACEOF
 
7571
/* end confdefs.h.  */
 
7572
 
 
7573
/* Override any gcc2 internal prototype to avoid an error.  */
 
7574
#ifdef __cplusplus
 
7575
extern "C"
 
7576
#endif
 
7577
/* We use char because int might match the return type of a gcc2
 
7578
   builtin and then its argument prototype would still apply.  */
 
7579
char dld_link ();
 
7580
int
 
7581
main ()
 
7582
{
 
7583
dld_link ();
 
7584
  ;
 
7585
  return 0;
 
7586
}
 
7587
_ACEOF
 
7588
rm -f conftest.$ac_objext conftest$ac_exeext
 
7589
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7590
  (eval $ac_link) 2>conftest.er1
 
7591
  ac_status=$?
 
7592
  grep -v '^ *+' conftest.er1 >conftest.err
 
7593
  rm -f conftest.er1
 
7594
  cat conftest.err >&5
 
7595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7596
  (exit $ac_status); } &&
 
7597
         { ac_try='test -z "$ac_c_werror_flag"
 
7598
                         || test ! -s conftest.err'
 
7599
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7600
  (eval $ac_try) 2>&5
 
7601
  ac_status=$?
 
7602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7603
  (exit $ac_status); }; } &&
 
7604
         { ac_try='test -s conftest$ac_exeext'
 
7605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7606
  (eval $ac_try) 2>&5
 
7607
  ac_status=$?
 
7608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7609
  (exit $ac_status); }; }; then
 
7610
  ac_cv_lib_dld_dld_link=yes
 
7611
else
 
7612
  echo "$as_me: failed program was:" >&5
 
7613
sed 's/^/| /' conftest.$ac_ext >&5
 
7614
 
 
7615
ac_cv_lib_dld_dld_link=no
 
7616
fi
 
7617
rm -f conftest.err conftest.$ac_objext \
 
7618
      conftest$ac_exeext conftest.$ac_ext
 
7619
LIBS=$ac_check_lib_save_LIBS
 
7620
fi
 
7621
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
7622
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
7623
if test $ac_cv_lib_dld_dld_link = yes; then
 
7624
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
7625
fi
 
7626
 
 
7627
 
 
7628
fi
 
7629
 
 
7630
 
 
7631
fi
 
7632
 
 
7633
 
 
7634
fi
 
7635
 
 
7636
 
 
7637
fi
 
7638
 
 
7639
 
 
7640
fi
 
7641
 
 
7642
    ;;
 
7643
  esac
 
7644
 
 
7645
  if test "x$lt_cv_dlopen" != xno; then
 
7646
    enable_dlopen=yes
 
7647
  else
 
7648
    enable_dlopen=no
 
7649
  fi
 
7650
 
 
7651
  case $lt_cv_dlopen in
 
7652
  dlopen)
 
7653
    save_CPPFLAGS="$CPPFLAGS"
 
7654
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
7655
 
 
7656
    save_LDFLAGS="$LDFLAGS"
 
7657
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
7658
 
 
7659
    save_LIBS="$LIBS"
 
7660
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
7661
 
 
7662
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
7663
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
7664
if test "${lt_cv_dlopen_self+set}" = set; then
 
7665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7666
else
 
7667
          if test "$cross_compiling" = yes; then :
 
7668
  lt_cv_dlopen_self=cross
 
7669
else
 
7670
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
7671
  lt_status=$lt_dlunknown
 
7672
  cat > conftest.$ac_ext <<EOF
 
7673
#line 7673 "configure"
 
7674
#include "confdefs.h"
 
7675
 
 
7676
#if HAVE_DLFCN_H
 
7677
#include <dlfcn.h>
 
7678
#endif
 
7679
 
 
7680
#include <stdio.h>
 
7681
 
 
7682
#ifdef RTLD_GLOBAL
 
7683
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
7684
#else
 
7685
#  ifdef DL_GLOBAL
 
7686
#    define LT_DLGLOBAL         DL_GLOBAL
 
7687
#  else
 
7688
#    define LT_DLGLOBAL         0
 
7689
#  endif
 
7690
#endif
 
7691
 
 
7692
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
7693
   find out it does not work in some platform. */
 
7694
#ifndef LT_DLLAZY_OR_NOW
 
7695
#  ifdef RTLD_LAZY
 
7696
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
7697
#  else
 
7698
#    ifdef DL_LAZY
 
7699
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
7700
#    else
 
7701
#      ifdef RTLD_NOW
 
7702
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
7703
#      else
 
7704
#        ifdef DL_NOW
 
7705
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
7706
#        else
 
7707
#          define LT_DLLAZY_OR_NOW      0
 
7708
#        endif
 
7709
#      endif
 
7710
#    endif
 
7711
#  endif
 
7712
#endif
 
7713
 
 
7714
#ifdef __cplusplus
 
7715
extern "C" void exit (int);
 
7716
#endif
 
7717
 
 
7718
void fnord() { int i=42;}
 
7719
int main ()
 
7720
{
 
7721
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
7722
  int status = $lt_dlunknown;
 
7723
 
 
7724
  if (self)
 
7725
    {
 
7726
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
7727
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
7728
      /* dlclose (self); */
 
7729
    }
 
7730
 
 
7731
    exit (status);
 
7732
}
 
7733
EOF
 
7734
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7735
  (eval $ac_link) 2>&5
 
7736
  ac_status=$?
 
7737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7738
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
7739
    (./conftest; exit; ) 2>/dev/null
 
7740
    lt_status=$?
 
7741
    case x$lt_status in
 
7742
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
7743
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
7744
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
7745
    esac
 
7746
  else :
 
7747
    # compilation failed
 
7748
    lt_cv_dlopen_self=no
 
7749
  fi
 
7750
fi
 
7751
rm -fr conftest*
 
7752
 
 
7753
 
 
7754
fi
 
7755
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
7756
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
7757
 
 
7758
    if test "x$lt_cv_dlopen_self" = xyes; then
 
7759
      LDFLAGS="$LDFLAGS $link_static_flag"
 
7760
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
7761
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
7762
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
7763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7764
else
 
7765
          if test "$cross_compiling" = yes; then :
 
7766
  lt_cv_dlopen_self_static=cross
 
7767
else
 
7768
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
7769
  lt_status=$lt_dlunknown
 
7770
  cat > conftest.$ac_ext <<EOF
 
7771
#line 7771 "configure"
 
7772
#include "confdefs.h"
 
7773
 
 
7774
#if HAVE_DLFCN_H
 
7775
#include <dlfcn.h>
 
7776
#endif
 
7777
 
 
7778
#include <stdio.h>
 
7779
 
 
7780
#ifdef RTLD_GLOBAL
 
7781
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
7782
#else
 
7783
#  ifdef DL_GLOBAL
 
7784
#    define LT_DLGLOBAL         DL_GLOBAL
 
7785
#  else
 
7786
#    define LT_DLGLOBAL         0
 
7787
#  endif
 
7788
#endif
 
7789
 
 
7790
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
7791
   find out it does not work in some platform. */
 
7792
#ifndef LT_DLLAZY_OR_NOW
 
7793
#  ifdef RTLD_LAZY
 
7794
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
7795
#  else
 
7796
#    ifdef DL_LAZY
 
7797
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
7798
#    else
 
7799
#      ifdef RTLD_NOW
 
7800
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
7801
#      else
 
7802
#        ifdef DL_NOW
 
7803
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
7804
#        else
 
7805
#          define LT_DLLAZY_OR_NOW      0
 
7806
#        endif
 
7807
#      endif
 
7808
#    endif
 
7809
#  endif
 
7810
#endif
 
7811
 
 
7812
#ifdef __cplusplus
 
7813
extern "C" void exit (int);
 
7814
#endif
 
7815
 
 
7816
void fnord() { int i=42;}
 
7817
int main ()
 
7818
{
 
7819
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
7820
  int status = $lt_dlunknown;
 
7821
 
 
7822
  if (self)
 
7823
    {
 
7824
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
7825
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
7826
      /* dlclose (self); */
 
7827
    }
 
7828
 
 
7829
    exit (status);
 
7830
}
 
7831
EOF
 
7832
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7833
  (eval $ac_link) 2>&5
 
7834
  ac_status=$?
 
7835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7836
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
7837
    (./conftest; exit; ) 2>/dev/null
 
7838
    lt_status=$?
 
7839
    case x$lt_status in
 
7840
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
7841
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
7842
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
7843
    esac
 
7844
  else :
 
7845
    # compilation failed
 
7846
    lt_cv_dlopen_self_static=no
 
7847
  fi
 
7848
fi
 
7849
rm -fr conftest*
 
7850
 
 
7851
 
 
7852
fi
 
7853
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
7854
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
7855
    fi
 
7856
 
 
7857
    CPPFLAGS="$save_CPPFLAGS"
 
7858
    LDFLAGS="$save_LDFLAGS"
 
7859
    LIBS="$save_LIBS"
 
7860
    ;;
 
7861
  esac
 
7862
 
 
7863
  case $lt_cv_dlopen_self in
 
7864
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
7865
  *) enable_dlopen_self=unknown ;;
 
7866
  esac
 
7867
 
 
7868
  case $lt_cv_dlopen_self_static in
 
7869
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
7870
  *) enable_dlopen_self_static=unknown ;;
 
7871
  esac
 
7872
fi
 
7873
 
 
7874
 
 
7875
if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7876
  case $archive_cmds in
 
7877
  *'~'*)
 
7878
    # FIXME: we may have to deal with multi-command sequences.
 
7879
    ;;
 
7880
  '$CC '*)
 
7881
    # Test whether the compiler implicitly links with -lc since on some
 
7882
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7883
    # to ld, don't add -lc before -lgcc.
 
7884
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7885
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7886
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
 
7887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7888
else
 
7889
  $rm conftest*
 
7890
    echo 'static int dummy;' > conftest.$ac_ext
 
7891
 
 
7892
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7893
  (eval $ac_compile) 2>&5
 
7894
  ac_status=$?
 
7895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7896
  (exit $ac_status); }; then
 
7897
      soname=conftest
 
7898
      lib=conftest
 
7899
      libobjs=conftest.$ac_objext
 
7900
      deplibs=
 
7901
      wl=$lt_cv_prog_cc_wl
 
7902
      compiler_flags=-v
 
7903
      linker_flags=-v
 
7904
      verstring=
 
7905
      output_objdir=.
 
7906
      libname=conftest
 
7907
      save_allow_undefined_flag=$allow_undefined_flag
 
7908
      allow_undefined_flag=
 
7909
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7910
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7911
  ac_status=$?
 
7912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7913
  (exit $ac_status); }
 
7914
      then
 
7915
        lt_cv_archive_cmds_need_lc=no
 
7916
      else
 
7917
        lt_cv_archive_cmds_need_lc=yes
 
7918
      fi
 
7919
      allow_undefined_flag=$save_allow_undefined_flag
 
7920
    else
 
7921
      cat conftest.err 1>&5
 
7922
    fi
 
7923
fi
 
7924
 
 
7925
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
 
7926
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
 
7927
    ;;
 
7928
  esac
 
7929
fi
 
7930
need_lc=${lt_cv_archive_cmds_need_lc-yes}
 
7931
 
 
7932
# The second clause should only fire when bootstrapping the
 
7933
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
7934
# with your package, and you will get complaints that there are
 
7935
# no rules to generate ltmain.sh.
 
7936
if test -f "$ltmain"; then
 
7937
  :
 
7938
else
 
7939
  # If there is no Makefile yet, we rely on a make rule to execute
 
7940
  # `config.status --recheck' to rerun these tests and create the
 
7941
  # libtool script then.
 
7942
  test -f Makefile && make "$ltmain"
 
7943
fi
 
7944
 
 
7945
if test -f "$ltmain"; then
 
7946
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
 
7947
  $rm -f "${ofile}T"
 
7948
 
 
7949
  echo creating $ofile
 
7950
 
 
7951
  # Now quote all the things that may contain metacharacters while being
 
7952
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
7953
  # variables and quote the copies for generation of the libtool script.
 
7954
  for var in echo old_CC old_CFLAGS SED \
 
7955
    AR AR_FLAGS CC LD LN_S NM SHELL \
 
7956
    reload_flag reload_cmds wl \
 
7957
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 
7958
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 
7959
    library_names_spec soname_spec \
 
7960
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 
7961
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
 
7962
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
 
7963
    old_striplib striplib file_magic_cmd export_symbols_cmds \
 
7964
    deplibs_check_method allow_undefined_flag no_undefined_flag \
 
7965
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 
7966
    global_symbol_to_c_name_address \
 
7967
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
7968
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
7969
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
7970
 
 
7971
    case $var in
 
7972
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
7973
    old_postinstall_cmds | old_postuninstall_cmds | \
 
7974
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 
7975
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
 
7976
    postinstall_cmds | postuninstall_cmds | \
 
7977
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
7978
      # Double-quote double-evaled strings.
 
7979
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
7980
      ;;
 
7981
    *)
 
7982
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
7983
      ;;
 
7984
    esac
 
7985
  done
 
7986
 
 
7987
  cat <<__EOF__ > "${ofile}T"
 
7988
#! $SHELL
 
7989
 
 
7990
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
7991
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
7992
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
7993
#
 
7994
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
7995
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
7996
#
 
7997
# This program is free software; you can redistribute it and/or modify
 
7998
# it under the terms of the GNU General Public License as published by
 
7999
# the Free Software Foundation; either version 2 of the License, or
 
8000
# (at your option) any later version.
 
8001
#
 
8002
# This program is distributed in the hope that it will be useful, but
 
8003
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
8004
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
8005
# General Public License for more details.
 
8006
#
 
8007
# You should have received a copy of the GNU General Public License
 
8008
# along with this program; if not, write to the Free Software
 
8009
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
 
8010
#
 
8011
# As a special exception to the GNU General Public License, if you
 
8012
# distribute this file as part of a program that contains a
 
8013
# configuration script generated by Autoconf, you may include it under
 
8014
# the same distribution terms that you use for the rest of that program.
 
8015
 
 
8016
# A sed that does not truncate output.
 
8017
SED=$lt_SED
 
8018
 
 
8019
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
8020
Xsed="${SED} -e s/^X//"
 
8021
 
 
8022
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
8023
# if CDPATH is set.
 
8024
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
8025
 
 
8026
# ### BEGIN LIBTOOL CONFIG
 
8027
 
 
8028
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
8029
 
 
8030
# Shell to use when invoking shell scripts.
 
8031
SHELL=$lt_SHELL
 
8032
 
 
8033
# Whether or not to build shared libraries.
 
8034
build_libtool_libs=$enable_shared
 
8035
 
 
8036
# Whether or not to build static libraries.
 
8037
build_old_libs=$enable_static
 
8038
 
 
8039
# Whether or not to add -lc for building shared libraries.
 
8040
build_libtool_need_lc=$need_lc
 
8041
 
 
8042
# Whether or not to optimize for fast installation.
 
8043
fast_install=$enable_fast_install
 
8044
 
 
8045
# The host system.
 
8046
host_alias=$host_alias
 
8047
host=$host
 
8048
 
 
8049
# An echo program that does not interpret backslashes.
 
8050
echo=$lt_echo
 
8051
 
 
8052
# The archiver.
 
8053
AR=$lt_AR
 
8054
AR_FLAGS=$lt_AR_FLAGS
 
8055
 
 
8056
# The default C compiler.
 
8057
CC=$lt_CC
 
8058
 
 
8059
# Is the compiler the GNU C compiler?
 
8060
with_gcc=$GCC
 
8061
 
 
8062
# The linker used to build libraries.
 
8063
LD=$lt_LD
 
8064
 
 
8065
# Whether we need hard or soft links.
 
8066
LN_S=$lt_LN_S
 
8067
 
 
8068
# A BSD-compatible nm program.
 
8069
NM=$lt_NM
 
8070
 
 
8071
# A symbol stripping program
 
8072
STRIP=$STRIP
 
8073
 
 
8074
# Used to examine libraries when file_magic_cmd begins "file"
 
8075
MAGIC_CMD=$MAGIC_CMD
 
8076
 
 
8077
# Used on cygwin: DLL creation program.
 
8078
DLLTOOL="$DLLTOOL"
 
8079
 
 
8080
# Used on cygwin: object dumper.
 
8081
OBJDUMP="$OBJDUMP"
 
8082
 
 
8083
# Used on cygwin: assembler.
 
8084
AS="$AS"
 
8085
 
 
8086
# The name of the directory that contains temporary libtool files.
 
8087
objdir=$objdir
 
8088
 
 
8089
# How to create reloadable object files.
 
8090
reload_flag=$lt_reload_flag
 
8091
reload_cmds=$lt_reload_cmds
 
8092
 
 
8093
# How to pass a linker flag through the compiler.
 
8094
wl=$lt_wl
 
8095
 
 
8096
# Object file suffix (normally "o").
 
8097
objext="$ac_objext"
 
8098
 
 
8099
# Old archive suffix (normally "a").
 
8100
libext="$libext"
 
8101
 
 
8102
# Executable file suffix (normally "").
 
8103
exeext="$exeext"
 
8104
 
 
8105
# Additional compiler flags for building library objects.
 
8106
pic_flag=$lt_pic_flag
 
8107
pic_mode=$pic_mode
 
8108
 
 
8109
# Does compiler simultaneously support -c and -o options?
 
8110
compiler_c_o=$lt_compiler_c_o
 
8111
 
 
8112
# Can we write directly to a .lo ?
 
8113
compiler_o_lo=$lt_compiler_o_lo
 
8114
 
 
8115
# Must we lock files when doing compilation ?
 
8116
need_locks=$lt_need_locks
 
8117
 
 
8118
# Do we need the lib prefix for modules?
 
8119
need_lib_prefix=$need_lib_prefix
 
8120
 
 
8121
# Do we need a version for libraries?
 
8122
need_version=$need_version
 
8123
 
 
8124
# Whether dlopen is supported.
 
8125
dlopen_support=$enable_dlopen
 
8126
 
 
8127
# Whether dlopen of programs is supported.
 
8128
dlopen_self=$enable_dlopen_self
 
8129
 
 
8130
# Whether dlopen of statically linked programs is supported.
 
8131
dlopen_self_static=$enable_dlopen_self_static
 
8132
 
 
8133
# Compiler flag to prevent dynamic linking.
 
8134
link_static_flag=$lt_link_static_flag
 
8135
 
 
8136
# Compiler flag to turn off builtin functions.
 
8137
no_builtin_flag=$lt_no_builtin_flag
 
8138
 
 
8139
# Compiler flag to allow reflexive dlopens.
 
8140
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
8141
 
 
8142
# Compiler flag to generate shared objects directly from archives.
 
8143
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
8144
 
 
8145
# Compiler flag to generate thread-safe objects.
 
8146
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
8147
 
 
8148
# Library versioning type.
 
8149
version_type=$version_type
 
8150
 
 
8151
# Format of library name prefix.
 
8152
libname_spec=$lt_libname_spec
 
8153
 
 
8154
# List of archive names.  First name is the real one, the rest are links.
 
8155
# The last name is the one that the linker finds with -lNAME.
 
8156
library_names_spec=$lt_library_names_spec
 
8157
 
 
8158
# The coded name of the library, if different from the real name.
 
8159
soname_spec=$lt_soname_spec
 
8160
 
 
8161
# Commands used to build and install an old-style archive.
 
8162
RANLIB=$lt_RANLIB
 
8163
old_archive_cmds=$lt_old_archive_cmds
 
8164
old_postinstall_cmds=$lt_old_postinstall_cmds
 
8165
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
8166
 
 
8167
# Create an old-style archive from a shared archive.
 
8168
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
8169
 
 
8170
# Create a temporary old-style archive to link instead of a shared archive.
 
8171
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
8172
 
 
8173
# Commands used to build and install a shared archive.
 
8174
archive_cmds=$lt_archive_cmds
 
8175
archive_expsym_cmds=$lt_archive_expsym_cmds
 
8176
postinstall_cmds=$lt_postinstall_cmds
 
8177
postuninstall_cmds=$lt_postuninstall_cmds
 
8178
 
 
8179
# Commands to strip libraries.
 
8180
old_striplib=$lt_old_striplib
 
8181
striplib=$lt_striplib
 
8182
 
 
8183
# Method to check whether dependent libraries are shared objects.
 
8184
deplibs_check_method=$lt_deplibs_check_method
 
8185
 
 
8186
# Command to use when deplibs_check_method == file_magic.
 
8187
file_magic_cmd=$lt_file_magic_cmd
 
8188
 
 
8189
# Flag that allows shared libraries with undefined symbols to be built.
 
8190
allow_undefined_flag=$lt_allow_undefined_flag
 
8191
 
 
8192
# Flag that forces no undefined symbols.
 
8193
no_undefined_flag=$lt_no_undefined_flag
 
8194
 
 
8195
# Commands used to finish a libtool library installation in a directory.
 
8196
finish_cmds=$lt_finish_cmds
 
8197
 
 
8198
# Same as above, but a single script fragment to be evaled but not shown.
 
8199
finish_eval=$lt_finish_eval
 
8200
 
 
8201
# Take the output of nm and produce a listing of raw symbols and C names.
 
8202
global_symbol_pipe=$lt_global_symbol_pipe
 
8203
 
 
8204
# Transform the output of nm in a proper C declaration
 
8205
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
8206
 
 
8207
# Transform the output of nm in a C name address pair
 
8208
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
8209
 
 
8210
# This is the shared library runtime path variable.
 
8211
runpath_var=$runpath_var
 
8212
 
 
8213
# This is the shared library path variable.
 
8214
shlibpath_var=$shlibpath_var
 
8215
 
 
8216
# Is shlibpath searched before the hard-coded library search path?
 
8217
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
8218
 
 
8219
# How to hardcode a shared library path into an executable.
 
8220
hardcode_action=$hardcode_action
 
8221
 
 
8222
# Whether we should hardcode library paths into libraries.
 
8223
hardcode_into_libs=$hardcode_into_libs
 
8224
 
 
8225
# Flag to hardcode \$libdir into a binary during linking.
 
8226
# This must work even if \$libdir does not exist.
 
8227
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
8228
 
 
8229
# Whether we need a single -rpath flag with a separated argument.
 
8230
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
8231
 
 
8232
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
8233
# resulting binary.
 
8234
hardcode_direct=$hardcode_direct
 
8235
 
 
8236
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
8237
# resulting binary.
 
8238
hardcode_minus_L=$hardcode_minus_L
 
8239
 
 
8240
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
8241
# the resulting binary.
 
8242
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
8243
 
 
8244
# Variables whose values should be saved in libtool wrapper scripts and
 
8245
# restored at relink time.
 
8246
variables_saved_for_relink="$variables_saved_for_relink"
 
8247
 
 
8248
# Whether libtool must link a program against all its dependency libraries.
 
8249
link_all_deplibs=$link_all_deplibs
 
8250
 
 
8251
# Compile-time system search path for libraries
 
8252
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
8253
 
 
8254
# Run-time system search path for libraries
 
8255
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
8256
 
 
8257
# Fix the shell variable \$srcfile for the compiler.
 
8258
fix_srcfile_path="$fix_srcfile_path"
 
8259
 
 
8260
# Set to yes if exported symbols are required.
 
8261
always_export_symbols=$always_export_symbols
 
8262
 
 
8263
# The commands to list exported symbols.
 
8264
export_symbols_cmds=$lt_export_symbols_cmds
 
8265
 
 
8266
# The commands to extract the exported symbol list from a shared archive.
 
8267
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
8268
 
 
8269
# Symbols that should not be listed in the preloaded symbols.
 
8270
exclude_expsyms=$lt_exclude_expsyms
 
8271
 
 
8272
# Symbols that must always be exported.
 
8273
include_expsyms=$lt_include_expsyms
 
8274
 
 
8275
# ### END LIBTOOL CONFIG
 
8276
 
 
8277
__EOF__
 
8278
 
 
8279
  case $host_os in
 
8280
  aix3*)
 
8281
    cat <<\EOF >> "${ofile}T"
 
8282
 
 
8283
# AIX sometimes has problems with the GCC collect2 program.  For some
 
8284
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
8285
# vanish in a puff of smoke.
 
8286
if test "X${COLLECT_NAMES+set}" != Xset; then
 
8287
  COLLECT_NAMES=
 
8288
  export COLLECT_NAMES
 
8289
fi
 
8290
EOF
 
8291
    ;;
 
8292
  esac
 
8293
 
 
8294
  case $host_os in
 
8295
  cygwin* | mingw* | pw32* | os2*)
 
8296
    cat <<'EOF' >> "${ofile}T"
 
8297
      # This is a source program that is used to create dlls on Windows
 
8298
      # Don't remove nor modify the starting and closing comments
 
8299
# /* ltdll.c starts here */
 
8300
# #define WIN32_LEAN_AND_MEAN
 
8301
# #include <windows.h>
 
8302
# #undef WIN32_LEAN_AND_MEAN
 
8303
# #include <stdio.h>
 
8304
#
 
8305
# #ifndef __CYGWIN__
 
8306
# #  ifdef __CYGWIN32__
 
8307
# #    define __CYGWIN__ __CYGWIN32__
 
8308
# #  endif
 
8309
# #endif
 
8310
#
 
8311
# #ifdef __cplusplus
 
8312
# extern "C" {
 
8313
# #endif
 
8314
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
8315
# #ifdef __cplusplus
 
8316
# }
 
8317
# #endif
 
8318
#
 
8319
# #ifdef __CYGWIN__
 
8320
# #include <cygwin/cygwin_dll.h>
 
8321
# DECLARE_CYGWIN_DLL( DllMain );
 
8322
# #endif
 
8323
# HINSTANCE __hDllInstance_base;
 
8324
#
 
8325
# BOOL APIENTRY
 
8326
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
8327
# {
 
8328
#   __hDllInstance_base = hInst;
 
8329
#   return TRUE;
 
8330
# }
 
8331
# /* ltdll.c ends here */
 
8332
        # This is a source program that is used to create import libraries
 
8333
        # on Windows for dlls which lack them. Don't remove nor modify the
 
8334
        # starting and closing comments
 
8335
# /* impgen.c starts here */
 
8336
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
 
8337
#
 
8338
#  This file is part of GNU libtool.
 
8339
#
 
8340
#  This program is free software; you can redistribute it and/or modify
 
8341
#  it under the terms of the GNU General Public License as published by
 
8342
#  the Free Software Foundation; either version 2 of the License, or
 
8343
#  (at your option) any later version.
 
8344
#
 
8345
#  This program is distributed in the hope that it will be useful,
 
8346
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
8347
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
8348
#  GNU General Public License for more details.
 
8349
#
 
8350
#  You should have received a copy of the GNU General Public License
 
8351
#  along with this program; if not, write to the Free Software
 
8352
#  Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
 
8353
#  */
 
8354
#
 
8355
# #include <stdio.h>            /* for printf() */
 
8356
# #include <unistd.h>           /* for open(), lseek(), read() */
 
8357
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
 
8358
# #include <string.h>           /* for strdup() */
 
8359
#
 
8360
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
 
8361
# #ifndef O_BINARY
 
8362
# #define O_BINARY 0
 
8363
# #endif
 
8364
#
 
8365
# static unsigned int
 
8366
# pe_get16 (fd, offset)
 
8367
#      int fd;
 
8368
#      int offset;
 
8369
# {
 
8370
#   unsigned char b[2];
 
8371
#   lseek (fd, offset, SEEK_SET);
 
8372
#   read (fd, b, 2);
 
8373
#   return b[0] + (b[1]<<8);
 
8374
# }
 
8375
#
 
8376
# static unsigned int
 
8377
# pe_get32 (fd, offset)
 
8378
#     int fd;
 
8379
#     int offset;
 
8380
# {
 
8381
#   unsigned char b[4];
 
8382
#   lseek (fd, offset, SEEK_SET);
 
8383
#   read (fd, b, 4);
 
8384
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
8385
# }
 
8386
#
 
8387
# static unsigned int
 
8388
# pe_as32 (ptr)
 
8389
#      void *ptr;
 
8390
# {
 
8391
#   unsigned char *b = ptr;
 
8392
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
8393
# }
 
8394
#
 
8395
# int
 
8396
# main (argc, argv)
 
8397
#     int argc;
 
8398
#     char *argv[];
 
8399
# {
 
8400
#     int dll;
 
8401
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
 
8402
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
 
8403
#     unsigned long name_rvas, nexp;
 
8404
#     unsigned char *expdata, *erva;
 
8405
#     char *filename, *dll_name;
 
8406
#
 
8407
#     filename = argv[1];
 
8408
#
 
8409
#     dll = open(filename, O_RDONLY|O_BINARY);
 
8410
#     if (dll < 1)
 
8411
#       return 1;
 
8412
#
 
8413
#     dll_name = filename;
 
8414
#
 
8415
#     for (i=0; filename[i]; i++)
 
8416
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
 
8417
#           dll_name = filename + i +1;
 
8418
#
 
8419
#     pe_header_offset = pe_get32 (dll, 0x3c);
 
8420
#     opthdr_ofs = pe_header_offset + 4 + 20;
 
8421
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
 
8422
#
 
8423
#     if (num_entries < 1) /* no exports */
 
8424
#       return 1;
 
8425
#
 
8426
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
 
8427
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
 
8428
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
 
8429
#     secptr = (pe_header_offset + 4 + 20 +
 
8430
#             pe_get16 (dll, pe_header_offset + 4 + 16));
 
8431
#
 
8432
#     expptr = 0;
 
8433
#     for (i = 0; i < nsections; i++)
 
8434
#     {
 
8435
#       char sname[8];
 
8436
#       unsigned long secptr1 = secptr + 40 * i;
 
8437
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
 
8438
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
 
8439
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
 
8440
#       lseek(dll, secptr1, SEEK_SET);
 
8441
#       read(dll, sname, 8);
 
8442
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
 
8443
#       {
 
8444
#           expptr = fptr + (export_rva - vaddr);
 
8445
#           if (export_rva + export_size > vaddr + vsize)
 
8446
#               export_size = vsize - (export_rva - vaddr);
 
8447
#           break;
 
8448
#       }
 
8449
#     }
 
8450
#
 
8451
#     expdata = (unsigned char*)malloc(export_size);
 
8452
#     lseek (dll, expptr, SEEK_SET);
 
8453
#     read (dll, expdata, export_size);
 
8454
#     erva = expdata - export_rva;
 
8455
#
 
8456
#     nexp = pe_as32 (expdata+24);
 
8457
#     name_rvas = pe_as32 (expdata+32);
 
8458
#
 
8459
#     printf ("EXPORTS\n");
 
8460
#     for (i = 0; i<nexp; i++)
 
8461
#     {
 
8462
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
 
8463
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
 
8464
#     }
 
8465
#
 
8466
#     return 0;
 
8467
# }
 
8468
# /* impgen.c ends here */
 
8469
 
 
8470
EOF
 
8471
    ;;
 
8472
  esac
 
8473
 
 
8474
  # We use sed instead of cat because bash on DJGPP gets confused if
 
8475
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
8476
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
8477
  # is reportedly fixed, but why not run on old versions too?
 
8478
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
8479
 
 
8480
  mv -f "${ofile}T" "$ofile" || \
 
8481
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
8482
  chmod +x "$ofile"
 
8483
fi
 
8484
 
 
8485
 
 
8486
 
 
8487
 
 
8488
 
 
8489
# This can be used to rebuild libtool when needed
 
8490
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
8491
 
 
8492
# Always use our own libtool.
 
8493
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8494
 
 
8495
# Prevent multiple expansion
 
8496
 
 
8497
 
 
8498
 
 
8499
 
 
8500
 
 
8501
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
8502
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
8503
if test "${ac_cv_c_const+set}" = set; then
 
8504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8505
else
 
8506
  cat >conftest.$ac_ext <<_ACEOF
 
8507
/* confdefs.h.  */
 
8508
_ACEOF
 
8509
cat confdefs.h >>conftest.$ac_ext
 
8510
cat >>conftest.$ac_ext <<_ACEOF
 
8511
/* end confdefs.h.  */
 
8512
 
 
8513
int
 
8514
main ()
 
8515
{
 
8516
/* FIXME: Include the comments suggested by Paul. */
 
8517
#ifndef __cplusplus
 
8518
  /* Ultrix mips cc rejects this.  */
 
8519
  typedef int charset[2];
 
8520
  const charset x;
 
8521
  /* SunOS 4.1.1 cc rejects this.  */
 
8522
  char const *const *ccp;
 
8523
  char **p;
 
8524
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
8525
  struct point {int x, y;};
 
8526
  static struct point const zero = {0,0};
 
8527
  /* AIX XL C 1.02.0.0 rejects this.
 
8528
     It does not let you subtract one const X* pointer from another in
 
8529
     an arm of an if-expression whose if-part is not a constant
 
8530
     expression */
 
8531
  const char *g = "string";
 
8532
  ccp = &g + (g ? g-g : 0);
 
8533
  /* HPUX 7.0 cc rejects these. */
 
8534
  ++ccp;
 
8535
  p = (char**) ccp;
 
8536
  ccp = (char const *const *) p;
 
8537
  { /* SCO 3.2v4 cc rejects this.  */
 
8538
    char *t;
 
8539
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
8540
 
 
8541
    *t++ = 0;
 
8542
  }
 
8543
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
8544
    int x[] = {25, 17};
 
8545
    const int *foo = &x[0];
 
8546
    ++foo;
 
8547
  }
 
8548
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
8549
    typedef const int *iptr;
 
8550
    iptr p = 0;
 
8551
    ++p;
 
8552
  }
 
8553
  { /* AIX XL C 1.02.0.0 rejects this saying
 
8554
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
8555
    struct s { int j; const int *ap[3]; };
 
8556
    struct s *b; b->j = 5;
 
8557
  }
 
8558
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
8559
    const int foo = 10;
 
8560
  }
 
8561
#endif
 
8562
 
 
8563
  ;
 
8564
  return 0;
 
8565
}
 
8566
_ACEOF
 
8567
rm -f conftest.$ac_objext
 
8568
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8569
  (eval $ac_compile) 2>conftest.er1
 
8570
  ac_status=$?
 
8571
  grep -v '^ *+' conftest.er1 >conftest.err
 
8572
  rm -f conftest.er1
 
8573
  cat conftest.err >&5
 
8574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8575
  (exit $ac_status); } &&
 
8576
         { ac_try='test -z "$ac_c_werror_flag"
 
8577
                         || test ! -s conftest.err'
 
8578
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8579
  (eval $ac_try) 2>&5
 
8580
  ac_status=$?
 
8581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8582
  (exit $ac_status); }; } &&
 
8583
         { ac_try='test -s conftest.$ac_objext'
 
8584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8585
  (eval $ac_try) 2>&5
 
8586
  ac_status=$?
 
8587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8588
  (exit $ac_status); }; }; then
 
8589
  ac_cv_c_const=yes
 
8590
else
 
8591
  echo "$as_me: failed program was:" >&5
 
8592
sed 's/^/| /' conftest.$ac_ext >&5
 
8593
 
 
8594
ac_cv_c_const=no
 
8595
fi
 
8596
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8597
fi
 
8598
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
8599
echo "${ECHO_T}$ac_cv_c_const" >&6
 
8600
if test $ac_cv_c_const = no; then
 
8601
 
 
8602
cat >>confdefs.h <<\_ACEOF
 
8603
#define const
 
8604
_ACEOF
 
8605
 
 
8606
fi
 
8607
 
 
8608
 
 
8609
# Find a good install program.  We prefer a C program (faster),
 
8610
# so one script is as good as another.  But avoid the broken or
 
8611
# incompatible versions:
 
8612
# SysV /etc/install, /usr/sbin/install
 
8613
# SunOS /usr/etc/install
 
8614
# IRIX /sbin/install
 
8615
# AIX /bin/install
 
8616
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
8617
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
8618
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
8619
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
8620
# OS/2's system install, which has a completely different semantic
 
8621
# ./install, which can be erroneously created by make from ./install.sh.
 
8622
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
8623
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
8624
if test -z "$INSTALL"; then
 
8625
if test "${ac_cv_path_install+set}" = set; then
 
8626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8627
else
 
8628
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8629
for as_dir in $PATH
 
8630
do
 
8631
  IFS=$as_save_IFS
 
8632
  test -z "$as_dir" && as_dir=.
 
8633
  # Account for people who put trailing slashes in PATH elements.
 
8634
case $as_dir/ in
 
8635
  ./ | .// | /cC/* | \
 
8636
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
8637
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
8638
  /usr/ucb/* ) ;;
 
8639
  *)
 
8640
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
8641
    # Don't use installbsd from OSF since it installs stuff as root
 
8642
    # by default.
 
8643
    for ac_prog in ginstall scoinst install; do
 
8644
      for ac_exec_ext in '' $ac_executable_extensions; do
 
8645
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
8646
          if test $ac_prog = install &&
 
8647
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
8648
            # AIX install.  It has an incompatible calling convention.
 
8649
            :
 
8650
          elif test $ac_prog = install &&
 
8651
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
8652
            # program-specific install script used by HP pwplus--don't use.
 
8653
            :
 
8654
          else
 
8655
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
8656
            break 3
 
8657
          fi
 
8658
        fi
 
8659
      done
 
8660
    done
 
8661
    ;;
 
8662
esac
 
8663
done
 
8664
 
 
8665
 
 
8666
fi
 
8667
  if test "${ac_cv_path_install+set}" = set; then
 
8668
    INSTALL=$ac_cv_path_install
 
8669
  else
 
8670
    # As a last resort, use the slow shell script.  We don't cache a
 
8671
    # path for INSTALL within a source directory, because that will
 
8672
    # break other packages using the cache if that directory is
 
8673
    # removed, or if the path is relative.
 
8674
    INSTALL=$ac_install_sh
 
8675
  fi
 
8676
fi
 
8677
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
8678
echo "${ECHO_T}$INSTALL" >&6
 
8679
 
 
8680
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
8681
# It thinks the first close brace ends the variable substitution.
 
8682
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
8683
 
 
8684
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
8685
 
 
8686
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
8687
 
 
8688
 
 
8689
                                        ac_config_files="$ac_config_files Makefile libmathhelper/Makefile testsuite/Makefile testsuite/mathhelper/Makefile"
 
8690
 
 
8691
cat >confcache <<\_ACEOF
 
8692
# This file is a shell script that caches the results of configure
 
8693
# tests run on this system so they can be shared between configure
 
8694
# scripts and configure runs, see configure's option --config-cache.
 
8695
# It is not useful on other systems.  If it contains results you don't
 
8696
# want to keep, you may remove or edit it.
 
8697
#
 
8698
# config.status only pays attention to the cache file if you give it
 
8699
# the --recheck option to rerun configure.
 
8700
#
 
8701
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
8702
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
8703
# following values.
 
8704
 
 
8705
_ACEOF
 
8706
 
 
8707
# The following way of writing the cache mishandles newlines in values,
 
8708
# but we know of no workaround that is simple, portable, and efficient.
 
8709
# So, don't put newlines in cache variables' values.
 
8710
# Ultrix sh set writes to stderr and can't be redirected directly,
 
8711
# and sets the high bit in the cache file unless we assign to the vars.
 
8712
{
 
8713
  (set) 2>&1 |
 
8714
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
8715
    *ac_space=\ *)
 
8716
      # `set' does not quote correctly, so add quotes (double-quote
 
8717
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
8718
      sed -n \
 
8719
        "s/'/'\\\\''/g;
 
8720
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
8721
      ;;
 
8722
    *)
 
8723
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
8724
      sed -n \
 
8725
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
8726
      ;;
 
8727
    esac;
 
8728
} |
 
8729
  sed '
 
8730
     t clear
 
8731
     : clear
 
8732
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
8733
     t end
 
8734
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
8735
     : end' >>confcache
 
8736
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
8737
  if test -w $cache_file; then
 
8738
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
8739
    cat confcache >$cache_file
 
8740
  else
 
8741
    echo "not updating unwritable cache $cache_file"
 
8742
  fi
 
8743
fi
 
8744
rm -f confcache
 
8745
 
 
8746
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
8747
# Let make expand exec_prefix.
 
8748
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
8749
 
 
8750
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
8751
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
8752
# trailing colons and then remove the whole line if VPATH becomes empty
 
8753
# (actually we leave an empty line to preserve line numbers).
 
8754
if test "x$srcdir" = x.; then
 
8755
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
8756
s/:*\$(srcdir):*/:/;
 
8757
s/:*\${srcdir}:*/:/;
 
8758
s/:*@srcdir@:*/:/;
 
8759
s/^\([^=]*=[     ]*\):*/\1/;
 
8760
s/:*$//;
 
8761
s/^[^=]*=[       ]*$//;
 
8762
}'
 
8763
fi
 
8764
 
 
8765
# Transform confdefs.h into DEFS.
 
8766
# Protect against shell expansion while executing Makefile rules.
 
8767
# Protect against Makefile macro expansion.
 
8768
#
 
8769
# If the first sed substitution is executed (which looks for macros that
 
8770
# take arguments), then we branch to the quote section.  Otherwise,
 
8771
# look for a macro that doesn't take arguments.
 
8772
cat >confdef2opt.sed <<\_ACEOF
 
8773
t clear
 
8774
: clear
 
8775
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
8776
t quote
 
8777
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
8778
t quote
 
8779
d
 
8780
: quote
 
8781
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
 
8782
s,\[,\\&,g
 
8783
s,\],\\&,g
 
8784
s,\$,$$,g
 
8785
p
 
8786
_ACEOF
 
8787
# We use echo to avoid assuming a particular line-breaking character.
 
8788
# The extra dot is to prevent the shell from consuming trailing
 
8789
# line-breaks from the sub-command output.  A line-break within
 
8790
# single-quotes doesn't work because, if this script is created in a
 
8791
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
8792
# would break.
 
8793
ac_LF_and_DOT=`echo; echo .`
 
8794
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
8795
rm -f confdef2opt.sed
 
8796
 
 
8797
 
 
8798
ac_libobjs=
 
8799
ac_ltlibobjs=
 
8800
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
8801
  # 1. Remove the extension, and $U if already installed.
 
8802
  ac_i=`echo "$ac_i" |
 
8803
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
8804
  # 2. Add them.
 
8805
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
8806
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
8807
done
 
8808
LIBOBJS=$ac_libobjs
 
8809
 
 
8810
LTLIBOBJS=$ac_ltlibobjs
 
8811
 
 
8812
 
 
8813
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
8814
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
8815
Usually this means the macro was only invoked conditionally." >&5
 
8816
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
8817
Usually this means the macro was only invoked conditionally." >&2;}
 
8818
   { (exit 1); exit 1; }; }
 
8819
fi
 
8820
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
8821
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
8822
Usually this means the macro was only invoked conditionally." >&5
 
8823
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
8824
Usually this means the macro was only invoked conditionally." >&2;}
 
8825
   { (exit 1); exit 1; }; }
 
8826
fi
 
8827
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
8828
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
8829
Usually this means the macro was only invoked conditionally." >&5
 
8830
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
8831
Usually this means the macro was only invoked conditionally." >&2;}
 
8832
   { (exit 1); exit 1; }; }
 
8833
fi
 
8834
 
 
8835
: ${CONFIG_STATUS=./config.status}
 
8836
ac_clean_files_save=$ac_clean_files
 
8837
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
8838
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
8839
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
8840
cat >$CONFIG_STATUS <<_ACEOF
 
8841
#! $SHELL
 
8842
# Generated by $as_me.
 
8843
# Run this file to recreate the current configuration.
 
8844
# Compiler output produced by configure, useful for debugging
 
8845
# configure, is in config.log if it exists.
 
8846
 
 
8847
debug=false
 
8848
ac_cs_recheck=false
 
8849
ac_cs_silent=false
 
8850
SHELL=\${CONFIG_SHELL-$SHELL}
 
8851
_ACEOF
 
8852
 
 
8853
cat >>$CONFIG_STATUS <<\_ACEOF
 
8854
## --------------------- ##
 
8855
## M4sh Initialization.  ##
 
8856
## --------------------- ##
 
8857
 
 
8858
# Be Bourne compatible
 
8859
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
8860
  emulate sh
 
8861
  NULLCMD=:
 
8862
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
8863
  # is contrary to our usage.  Disable this feature.
 
8864
  alias -g '${1+"$@"}'='"$@"'
 
8865
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
8866
  set -o posix
 
8867
fi
 
8868
DUALCASE=1; export DUALCASE # for MKS sh
 
8869
 
 
8870
# Support unset when possible.
 
8871
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
8872
  as_unset=unset
 
8873
else
 
8874
  as_unset=false
 
8875
fi
 
8876
 
 
8877
 
 
8878
# Work around bugs in pre-3.0 UWIN ksh.
 
8879
$as_unset ENV MAIL MAILPATH
 
8880
PS1='$ '
 
8881
PS2='> '
 
8882
PS4='+ '
 
8883
 
 
8884
# NLS nuisances.
 
8885
for as_var in \
 
8886
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
8887
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
8888
  LC_TELEPHONE LC_TIME
 
8889
do
 
8890
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
8891
    eval $as_var=C; export $as_var
 
8892
  else
 
8893
    $as_unset $as_var
 
8894
  fi
 
8895
done
 
8896
 
 
8897
# Required to use basename.
 
8898
if expr a : '\(a\)' >/dev/null 2>&1; then
 
8899
  as_expr=expr
 
8900
else
 
8901
  as_expr=false
 
8902
fi
 
8903
 
 
8904
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
8905
  as_basename=basename
 
8906
else
 
8907
  as_basename=false
 
8908
fi
 
8909
 
 
8910
 
 
8911
# Name of the executable.
 
8912
as_me=`$as_basename "$0" ||
 
8913
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
8914
         X"$0" : 'X\(//\)$' \| \
 
8915
         X"$0" : 'X\(/\)$' \| \
 
8916
         .     : '\(.\)' 2>/dev/null ||
 
8917
echo X/"$0" |
 
8918
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
8919
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
8920
          /^X\/\(\/\).*/{ s//\1/; q; }
 
8921
          s/.*/./; q'`
 
8922
 
 
8923
 
 
8924
# PATH needs CR, and LINENO needs CR and PATH.
 
8925
# Avoid depending upon Character Ranges.
 
8926
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
8927
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
8928
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
8929
as_cr_digits='0123456789'
 
8930
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
8931
 
 
8932
# The user is always right.
 
8933
if test "${PATH_SEPARATOR+set}" != set; then
 
8934
  echo "#! /bin/sh" >conf$$.sh
 
8935
  echo  "exit 0"   >>conf$$.sh
 
8936
  chmod +x conf$$.sh
 
8937
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
8938
    PATH_SEPARATOR=';'
 
8939
  else
 
8940
    PATH_SEPARATOR=:
 
8941
  fi
 
8942
  rm -f conf$$.sh
 
8943
fi
 
8944
 
 
8945
 
 
8946
  as_lineno_1=$LINENO
 
8947
  as_lineno_2=$LINENO
 
8948
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
8949
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
8950
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
8951
  # Find who we are.  Look in the path if we contain no path at all
 
8952
  # relative or not.
 
8953
  case $0 in
 
8954
    *[\\/]* ) as_myself=$0 ;;
 
8955
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8956
for as_dir in $PATH
 
8957
do
 
8958
  IFS=$as_save_IFS
 
8959
  test -z "$as_dir" && as_dir=.
 
8960
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
8961
done
 
8962
 
 
8963
       ;;
 
8964
  esac
 
8965
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
8966
  # in which case we are not to be found in the path.
 
8967
  if test "x$as_myself" = x; then
 
8968
    as_myself=$0
 
8969
  fi
 
8970
  if test ! -f "$as_myself"; then
 
8971
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
8972
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
8973
   { (exit 1); exit 1; }; }
 
8974
  fi
 
8975
  case $CONFIG_SHELL in
 
8976
  '')
 
8977
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8978
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
8979
do
 
8980
  IFS=$as_save_IFS
 
8981
  test -z "$as_dir" && as_dir=.
 
8982
  for as_base in sh bash ksh sh5; do
 
8983
         case $as_dir in
 
8984
         /*)
 
8985
           if ("$as_dir/$as_base" -c '
 
8986
  as_lineno_1=$LINENO
 
8987
  as_lineno_2=$LINENO
 
8988
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
8989
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
8990
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
8991
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
8992
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
8993
             CONFIG_SHELL=$as_dir/$as_base
 
8994
             export CONFIG_SHELL
 
8995
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
8996
           fi;;
 
8997
         esac
 
8998
       done
 
8999
done
 
9000
;;
 
9001
  esac
 
9002
 
 
9003
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
9004
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
9005
  # line-number line before each line; the second 'sed' does the real
 
9006
  # work.  The second script uses 'N' to pair each line-number line
 
9007
  # with the numbered line, and appends trailing '-' during
 
9008
  # substitution so that $LINENO is not a special case at line end.
 
9009
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
9010
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
9011
  sed '=' <$as_myself |
 
9012
    sed '
 
9013
      N
 
9014
      s,$,-,
 
9015
      : loop
 
9016
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
9017
      t loop
 
9018
      s,-$,,
 
9019
      s,^['$as_cr_digits']*\n,,
 
9020
    ' >$as_me.lineno &&
 
9021
  chmod +x $as_me.lineno ||
 
9022
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
9023
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
9024
   { (exit 1); exit 1; }; }
 
9025
 
 
9026
  # Don't try to exec as it changes $[0], causing all sort of problems
 
9027
  # (the dirname of $[0] is not the place where we might find the
 
9028
  # original and so on.  Autoconf is especially sensible to this).
 
9029
  . ./$as_me.lineno
 
9030
  # Exit status is that of the last command.
 
9031
  exit
 
9032
}
 
9033
 
 
9034
 
 
9035
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
9036
  *c*,-n*) ECHO_N= ECHO_C='
 
9037
' ECHO_T='      ' ;;
 
9038
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
9039
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
9040
esac
 
9041
 
 
9042
if expr a : '\(a\)' >/dev/null 2>&1; then
 
9043
  as_expr=expr
 
9044
else
 
9045
  as_expr=false
 
9046
fi
 
9047
 
 
9048
rm -f conf$$ conf$$.exe conf$$.file
 
9049
echo >conf$$.file
 
9050
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
9051
  # We could just check for DJGPP; but this test a) works b) is more generic
 
9052
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
9053
  if test -f conf$$.exe; then
 
9054
    # Don't use ln at all; we don't have any links
 
9055
    as_ln_s='cp -p'
 
9056
  else
 
9057
    as_ln_s='ln -s'
 
9058
  fi
 
9059
elif ln conf$$.file conf$$ 2>/dev/null; then
 
9060
  as_ln_s=ln
 
9061
else
 
9062
  as_ln_s='cp -p'
 
9063
fi
 
9064
rm -f conf$$ conf$$.exe conf$$.file
 
9065
 
 
9066
if mkdir -p . 2>/dev/null; then
 
9067
  as_mkdir_p=:
 
9068
else
 
9069
  test -d ./-p && rmdir ./-p
 
9070
  as_mkdir_p=false
 
9071
fi
 
9072
 
 
9073
as_executable_p="test -f"
 
9074
 
 
9075
# Sed expression to map a string onto a valid CPP name.
 
9076
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
9077
 
 
9078
# Sed expression to map a string onto a valid variable name.
 
9079
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
9080
 
 
9081
 
 
9082
# IFS
 
9083
# We need space, tab and new line, in precisely that order.
 
9084
as_nl='
 
9085
'
 
9086
IFS="   $as_nl"
 
9087
 
 
9088
# CDPATH.
 
9089
$as_unset CDPATH
 
9090
 
 
9091
exec 6>&1
 
9092
 
 
9093
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
9094
# report actual input values of CONFIG_FILES etc. instead of their
 
9095
# values after options handling.  Logging --version etc. is OK.
 
9096
exec 5>>config.log
 
9097
{
 
9098
  echo
 
9099
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
9100
## Running $as_me. ##
 
9101
_ASBOX
 
9102
} >&5
 
9103
cat >&5 <<_CSEOF
 
9104
 
 
9105
This file was extended by $as_me, which was
 
9106
generated by GNU Autoconf 2.59.  Invocation command line was
 
9107
 
 
9108
  CONFIG_FILES    = $CONFIG_FILES
 
9109
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
9110
  CONFIG_LINKS    = $CONFIG_LINKS
 
9111
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
9112
  $ $0 $@
 
9113
 
 
9114
_CSEOF
 
9115
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
9116
echo >&5
 
9117
_ACEOF
 
9118
 
 
9119
# Files that config.status was made for.
 
9120
if test -n "$ac_config_files"; then
 
9121
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
9122
fi
 
9123
 
 
9124
if test -n "$ac_config_headers"; then
 
9125
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
9126
fi
 
9127
 
 
9128
if test -n "$ac_config_links"; then
 
9129
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
9130
fi
 
9131
 
 
9132
if test -n "$ac_config_commands"; then
 
9133
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
9134
fi
 
9135
 
 
9136
cat >>$CONFIG_STATUS <<\_ACEOF
 
9137
 
 
9138
ac_cs_usage="\
 
9139
\`$as_me' instantiates files from templates according to the
 
9140
current configuration.
 
9141
 
 
9142
Usage: $0 [OPTIONS] [FILE]...
 
9143
 
 
9144
  -h, --help       print this help, then exit
 
9145
  -V, --version    print version number, then exit
 
9146
  -q, --quiet      do not print progress messages
 
9147
  -d, --debug      don't remove temporary files
 
9148
      --recheck    update $as_me by reconfiguring in the same conditions
 
9149
  --file=FILE[:TEMPLATE]
 
9150
                   instantiate the configuration file FILE
 
9151
 
 
9152
Configuration files:
 
9153
$config_files
 
9154
 
 
9155
Configuration commands:
 
9156
$config_commands
 
9157
 
 
9158
Report bugs to <bug-autoconf@gnu.org>."
 
9159
_ACEOF
 
9160
 
 
9161
cat >>$CONFIG_STATUS <<_ACEOF
 
9162
ac_cs_version="\\
 
9163
config.status
 
9164
configured by $0, generated by GNU Autoconf 2.59,
 
9165
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
9166
 
 
9167
Copyright (C) 2003 Free Software Foundation, Inc.
 
9168
This config.status script is free software; the Free Software Foundation
 
9169
gives unlimited permission to copy, distribute and modify it."
 
9170
srcdir=$srcdir
 
9171
INSTALL="$INSTALL"
 
9172
_ACEOF
 
9173
 
 
9174
cat >>$CONFIG_STATUS <<\_ACEOF
 
9175
# If no file are specified by the user, then we need to provide default
 
9176
# value.  By we need to know if files were specified by the user.
 
9177
ac_need_defaults=:
 
9178
while test $# != 0
 
9179
do
 
9180
  case $1 in
 
9181
  --*=*)
 
9182
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
9183
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
9184
    ac_shift=:
 
9185
    ;;
 
9186
  -*)
 
9187
    ac_option=$1
 
9188
    ac_optarg=$2
 
9189
    ac_shift=shift
 
9190
    ;;
 
9191
  *) # This is not an option, so the user has probably given explicit
 
9192
     # arguments.
 
9193
     ac_option=$1
 
9194
     ac_need_defaults=false;;
 
9195
  esac
 
9196
 
 
9197
  case $ac_option in
 
9198
  # Handling of the options.
 
9199
_ACEOF
 
9200
cat >>$CONFIG_STATUS <<\_ACEOF
 
9201
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
9202
    ac_cs_recheck=: ;;
 
9203
  --version | --vers* | -V )
 
9204
    echo "$ac_cs_version"; exit 0 ;;
 
9205
  --he | --h)
 
9206
    # Conflict between --help and --header
 
9207
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
9208
Try \`$0 --help' for more information." >&5
 
9209
echo "$as_me: error: ambiguous option: $1
 
9210
Try \`$0 --help' for more information." >&2;}
 
9211
   { (exit 1); exit 1; }; };;
 
9212
  --help | --hel | -h )
 
9213
    echo "$ac_cs_usage"; exit 0 ;;
 
9214
  --debug | --d* | -d )
 
9215
    debug=: ;;
 
9216
  --file | --fil | --fi | --f )
 
9217
    $ac_shift
 
9218
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
9219
    ac_need_defaults=false;;
 
9220
  --header | --heade | --head | --hea )
 
9221
    $ac_shift
 
9222
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
9223
    ac_need_defaults=false;;
 
9224
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
9225
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
9226
    ac_cs_silent=: ;;
 
9227
 
 
9228
  # This is an error.
 
9229
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
9230
Try \`$0 --help' for more information." >&5
 
9231
echo "$as_me: error: unrecognized option: $1
 
9232
Try \`$0 --help' for more information." >&2;}
 
9233
   { (exit 1); exit 1; }; } ;;
 
9234
 
 
9235
  *) ac_config_targets="$ac_config_targets $1" ;;
 
9236
 
 
9237
  esac
 
9238
  shift
 
9239
done
 
9240
 
 
9241
ac_configure_extra_args=
 
9242
 
 
9243
if $ac_cs_silent; then
 
9244
  exec 6>/dev/null
 
9245
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
9246
fi
 
9247
 
 
9248
_ACEOF
 
9249
cat >>$CONFIG_STATUS <<_ACEOF
 
9250
if \$ac_cs_recheck; then
 
9251
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
9252
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
9253
fi
 
9254
 
 
9255
_ACEOF
 
9256
 
 
9257
cat >>$CONFIG_STATUS <<_ACEOF
 
9258
#
 
9259
# INIT-COMMANDS section.
 
9260
#
 
9261
 
 
9262
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
9263
 
 
9264
_ACEOF
 
9265
 
 
9266
 
 
9267
 
 
9268
cat >>$CONFIG_STATUS <<\_ACEOF
 
9269
for ac_config_target in $ac_config_targets
 
9270
do
 
9271
  case "$ac_config_target" in
 
9272
  # Handling of arguments.
 
9273
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
9274
  "libmathhelper/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmathhelper/Makefile" ;;
 
9275
  "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
 
9276
  "testsuite/mathhelper/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/mathhelper/Makefile" ;;
 
9277
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
9278
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
9279
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
9280
   { (exit 1); exit 1; }; };;
 
9281
  esac
 
9282
done
 
9283
 
 
9284
# If the user did not use the arguments to specify the items to instantiate,
 
9285
# then the envvar interface is used.  Set only those that are not.
 
9286
# We use the long form for the default assignment because of an extremely
 
9287
# bizarre bug on SunOS 4.1.3.
 
9288
if $ac_need_defaults; then
 
9289
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
9290
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
9291
fi
 
9292
 
 
9293
# Have a temporary directory for convenience.  Make it in the build tree
 
9294
# simply because there is no reason to put it here, and in addition,
 
9295
# creating and moving files from /tmp can sometimes cause problems.
 
9296
# Create a temporary directory, and hook for its removal unless debugging.
 
9297
$debug ||
 
9298
{
 
9299
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
9300
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
9301
}
 
9302
 
 
9303
# Create a (secure) tmp directory for tmp files.
 
9304
 
 
9305
{
 
9306
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
9307
  test -n "$tmp" && test -d "$tmp"
 
9308
}  ||
 
9309
{
 
9310
  tmp=./confstat$$-$RANDOM
 
9311
  (umask 077 && mkdir $tmp)
 
9312
} ||
 
9313
{
 
9314
   echo "$me: cannot create a temporary directory in ." >&2
 
9315
   { (exit 1); exit 1; }
 
9316
}
 
9317
 
 
9318
_ACEOF
 
9319
 
 
9320
cat >>$CONFIG_STATUS <<_ACEOF
 
9321
 
 
9322
#
 
9323
# CONFIG_FILES section.
 
9324
#
 
9325
 
 
9326
# No need to generate the scripts if there are no CONFIG_FILES.
 
9327
# This happens for instance when ./config.status config.h
 
9328
if test -n "\$CONFIG_FILES"; then
 
9329
  # Protect against being on the right side of a sed subst in config.status.
 
9330
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
9331
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
9332
s,@SHELL@,$SHELL,;t t
 
9333
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
9334
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
9335
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
9336
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
9337
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
9338
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
9339
s,@exec_prefix@,$exec_prefix,;t t
 
9340
s,@prefix@,$prefix,;t t
 
9341
s,@program_transform_name@,$program_transform_name,;t t
 
9342
s,@bindir@,$bindir,;t t
 
9343
s,@sbindir@,$sbindir,;t t
 
9344
s,@libexecdir@,$libexecdir,;t t
 
9345
s,@datadir@,$datadir,;t t
 
9346
s,@sysconfdir@,$sysconfdir,;t t
 
9347
s,@sharedstatedir@,$sharedstatedir,;t t
 
9348
s,@localstatedir@,$localstatedir,;t t
 
9349
s,@libdir@,$libdir,;t t
 
9350
s,@includedir@,$includedir,;t t
 
9351
s,@oldincludedir@,$oldincludedir,;t t
 
9352
s,@infodir@,$infodir,;t t
 
9353
s,@mandir@,$mandir,;t t
 
9354
s,@build_alias@,$build_alias,;t t
 
9355
s,@host_alias@,$host_alias,;t t
 
9356
s,@target_alias@,$target_alias,;t t
 
9357
s,@DEFS@,$DEFS,;t t
 
9358
s,@ECHO_C@,$ECHO_C,;t t
 
9359
s,@ECHO_N@,$ECHO_N,;t t
 
9360
s,@ECHO_T@,$ECHO_T,;t t
 
9361
s,@LIBS@,$LIBS,;t t
 
9362
s,@build@,$build,;t t
 
9363
s,@build_cpu@,$build_cpu,;t t
 
9364
s,@build_vendor@,$build_vendor,;t t
 
9365
s,@build_os@,$build_os,;t t
 
9366
s,@host@,$host,;t t
 
9367
s,@host_cpu@,$host_cpu,;t t
 
9368
s,@host_vendor@,$host_vendor,;t t
 
9369
s,@host_os@,$host_os,;t t
 
9370
s,@target@,$target,;t t
 
9371
s,@target_cpu@,$target_cpu,;t t
 
9372
s,@target_vendor@,$target_vendor,;t t
 
9373
s,@target_os@,$target_os,;t t
 
9374
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
9375
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
9376
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
9377
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
9378
s,@PACKAGE@,$PACKAGE,;t t
 
9379
s,@VERSION@,$VERSION,;t t
 
9380
s,@ACLOCAL@,$ACLOCAL,;t t
 
9381
s,@AUTOCONF@,$AUTOCONF,;t t
 
9382
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
9383
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
9384
s,@MAKEINFO@,$MAKEINFO,;t t
 
9385
s,@AMTAR@,$AMTAR,;t t
 
9386
s,@install_sh@,$install_sh,;t t
 
9387
s,@STRIP@,$STRIP,;t t
 
9388
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
9389
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
9390
s,@AWK@,$AWK,;t t
 
9391
s,@SET_MAKE@,$SET_MAKE,;t t
 
9392
s,@am__leading_dot@,$am__leading_dot,;t t
 
9393
s,@CC@,$CC,;t t
 
9394
s,@CFLAGS@,$CFLAGS,;t t
 
9395
s,@LDFLAGS@,$LDFLAGS,;t t
 
9396
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
9397
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
9398
s,@EXEEXT@,$EXEEXT,;t t
 
9399
s,@OBJEXT@,$OBJEXT,;t t
 
9400
s,@DEPDIR@,$DEPDIR,;t t
 
9401
s,@am__include@,$am__include,;t t
 
9402
s,@am__quote@,$am__quote,;t t
 
9403
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
9404
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
9405
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
9406
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
9407
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
9408
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
9409
s,@CXX@,$CXX,;t t
 
9410
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
9411
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
9412
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
9413
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
9414
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
9415
s,@LN_S@,$LN_S,;t t
 
9416
s,@ECHO@,$ECHO,;t t
 
9417
s,@RANLIB@,$RANLIB,;t t
 
9418
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
9419
s,@CPP@,$CPP,;t t
 
9420
s,@EGREP@,$EGREP,;t t
 
9421
s,@LIBTOOL@,$LIBTOOL,;t t
 
9422
s,@LIBOBJS@,$LIBOBJS,;t t
 
9423
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
9424
CEOF
 
9425
 
 
9426
_ACEOF
 
9427
 
 
9428
  cat >>$CONFIG_STATUS <<\_ACEOF
 
9429
  # Split the substitutions into bite-sized pieces for seds with
 
9430
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
9431
  ac_max_sed_lines=48
 
9432
  ac_sed_frag=1 # Number of current file.
 
9433
  ac_beg=1 # First line for current file.
 
9434
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
9435
  ac_more_lines=:
 
9436
  ac_sed_cmds=
 
9437
  while $ac_more_lines; do
 
9438
    if test $ac_beg -gt 1; then
 
9439
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
9440
    else
 
9441
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
9442
    fi
 
9443
    if test ! -s $tmp/subs.frag; then
 
9444
      ac_more_lines=false
 
9445
    else
 
9446
      # The purpose of the label and of the branching condition is to
 
9447
      # speed up the sed processing (if there are no `@' at all, there
 
9448
      # is no need to browse any of the substitutions).
 
9449
      # These are the two extra sed commands mentioned above.
 
9450
      (echo ':t
 
9451
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
9452
      if test -z "$ac_sed_cmds"; then
 
9453
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
9454
      else
 
9455
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
9456
      fi
 
9457
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
9458
      ac_beg=$ac_end
 
9459
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
9460
    fi
 
9461
  done
 
9462
  if test -z "$ac_sed_cmds"; then
 
9463
    ac_sed_cmds=cat
 
9464
  fi
 
9465
fi # test -n "$CONFIG_FILES"
 
9466
 
 
9467
_ACEOF
 
9468
cat >>$CONFIG_STATUS <<\_ACEOF
 
9469
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
9470
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
9471
  case $ac_file in
 
9472
  - | *:- | *:-:* ) # input from stdin
 
9473
        cat >$tmp/stdin
 
9474
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9475
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9476
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9477
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
9478
  * )   ac_file_in=$ac_file.in ;;
 
9479
  esac
 
9480
 
 
9481
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
9482
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
9483
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9484
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
9485
         X"$ac_file" : 'X\(//\)$' \| \
 
9486
         X"$ac_file" : 'X\(/\)' \| \
 
9487
         .     : '\(.\)' 2>/dev/null ||
 
9488
echo X"$ac_file" |
 
9489
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9490
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9491
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9492
          /^X\(\/\).*/{ s//\1/; q; }
 
9493
          s/.*/./; q'`
 
9494
  { if $as_mkdir_p; then
 
9495
    mkdir -p "$ac_dir"
 
9496
  else
 
9497
    as_dir="$ac_dir"
 
9498
    as_dirs=
 
9499
    while test ! -d "$as_dir"; do
 
9500
      as_dirs="$as_dir $as_dirs"
 
9501
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9502
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9503
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9504
         X"$as_dir" : 'X\(//\)$' \| \
 
9505
         X"$as_dir" : 'X\(/\)' \| \
 
9506
         .     : '\(.\)' 2>/dev/null ||
 
9507
echo X"$as_dir" |
 
9508
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9509
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9510
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9511
          /^X\(\/\).*/{ s//\1/; q; }
 
9512
          s/.*/./; q'`
 
9513
    done
 
9514
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9515
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9516
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9517
   { (exit 1); exit 1; }; }; }
 
9518
 
 
9519
  ac_builddir=.
 
9520
 
 
9521
if test "$ac_dir" != .; then
 
9522
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
9523
  # A "../" for each directory in $ac_dir_suffix.
 
9524
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
9525
else
 
9526
  ac_dir_suffix= ac_top_builddir=
 
9527
fi
 
9528
 
 
9529
case $srcdir in
 
9530
  .)  # No --srcdir option.  We are building in place.
 
9531
    ac_srcdir=.
 
9532
    if test -z "$ac_top_builddir"; then
 
9533
       ac_top_srcdir=.
 
9534
    else
 
9535
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
9536
    fi ;;
 
9537
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
9538
    ac_srcdir=$srcdir$ac_dir_suffix;
 
9539
    ac_top_srcdir=$srcdir ;;
 
9540
  *) # Relative path.
 
9541
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
9542
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
9543
esac
 
9544
 
 
9545
# Do not use `cd foo && pwd` to compute absolute paths, because
 
9546
# the directories may not exist.
 
9547
case `pwd` in
 
9548
.) ac_abs_builddir="$ac_dir";;
 
9549
*)
 
9550
  case "$ac_dir" in
 
9551
  .) ac_abs_builddir=`pwd`;;
 
9552
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
9553
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
9554
  esac;;
 
9555
esac
 
9556
case $ac_abs_builddir in
 
9557
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9558
*)
 
9559
  case ${ac_top_builddir}. in
 
9560
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
9561
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9562
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
9563
  esac;;
 
9564
esac
 
9565
case $ac_abs_builddir in
 
9566
.) ac_abs_srcdir=$ac_srcdir;;
 
9567
*)
 
9568
  case $ac_srcdir in
 
9569
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
9570
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
9571
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
9572
  esac;;
 
9573
esac
 
9574
case $ac_abs_builddir in
 
9575
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9576
*)
 
9577
  case $ac_top_srcdir in
 
9578
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
9579
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9580
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
9581
  esac;;
 
9582
esac
 
9583
 
 
9584
 
 
9585
  case $INSTALL in
 
9586
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
9587
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
9588
  esac
 
9589
 
 
9590
  if test x"$ac_file" != x-; then
 
9591
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
9592
echo "$as_me: creating $ac_file" >&6;}
 
9593
    rm -f "$ac_file"
 
9594
  fi
 
9595
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
9596
  # use $as_me), people would be surprised to read:
 
9597
  #    /* config.h.  Generated by config.status.  */
 
9598
  if test x"$ac_file" = x-; then
 
9599
    configure_input=
 
9600
  else
 
9601
    configure_input="$ac_file.  "
 
9602
  fi
 
9603
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
9604
                                     sed 's,.*/,,'` by configure."
 
9605
 
 
9606
  # First look for the input files in the build tree, otherwise in the
 
9607
  # src tree.
 
9608
  ac_file_inputs=`IFS=:
 
9609
    for f in $ac_file_in; do
 
9610
      case $f in
 
9611
      -) echo $tmp/stdin ;;
 
9612
      [\\/$]*)
 
9613
         # Absolute (can't be DOS-style, as IFS=:)
 
9614
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9615
echo "$as_me: error: cannot find input file: $f" >&2;}
 
9616
   { (exit 1); exit 1; }; }
 
9617
         echo "$f";;
 
9618
      *) # Relative
 
9619
         if test -f "$f"; then
 
9620
           # Build tree
 
9621
           echo "$f"
 
9622
         elif test -f "$srcdir/$f"; then
 
9623
           # Source tree
 
9624
           echo "$srcdir/$f"
 
9625
         else
 
9626
           # /dev/null tree
 
9627
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
9628
echo "$as_me: error: cannot find input file: $f" >&2;}
 
9629
   { (exit 1); exit 1; }; }
 
9630
         fi;;
 
9631
      esac
 
9632
    done` || { (exit 1); exit 1; }
 
9633
_ACEOF
 
9634
cat >>$CONFIG_STATUS <<_ACEOF
 
9635
  sed "$ac_vpsub
 
9636
$extrasub
 
9637
_ACEOF
 
9638
cat >>$CONFIG_STATUS <<\_ACEOF
 
9639
:t
 
9640
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
9641
s,@configure_input@,$configure_input,;t t
 
9642
s,@srcdir@,$ac_srcdir,;t t
 
9643
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
9644
s,@top_srcdir@,$ac_top_srcdir,;t t
 
9645
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
9646
s,@builddir@,$ac_builddir,;t t
 
9647
s,@abs_builddir@,$ac_abs_builddir,;t t
 
9648
s,@top_builddir@,$ac_top_builddir,;t t
 
9649
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
9650
s,@INSTALL@,$ac_INSTALL,;t t
 
9651
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
9652
  rm -f $tmp/stdin
 
9653
  if test x"$ac_file" != x-; then
 
9654
    mv $tmp/out $ac_file
 
9655
  else
 
9656
    cat $tmp/out
 
9657
    rm -f $tmp/out
 
9658
  fi
 
9659
 
 
9660
done
 
9661
_ACEOF
 
9662
cat >>$CONFIG_STATUS <<\_ACEOF
 
9663
 
 
9664
#
 
9665
# CONFIG_COMMANDS section.
 
9666
#
 
9667
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
9668
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
9669
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
9670
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
9671
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9672
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
9673
         X"$ac_dest" : 'X\(//\)$' \| \
 
9674
         X"$ac_dest" : 'X\(/\)' \| \
 
9675
         .     : '\(.\)' 2>/dev/null ||
 
9676
echo X"$ac_dest" |
 
9677
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9678
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9679
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9680
          /^X\(\/\).*/{ s//\1/; q; }
 
9681
          s/.*/./; q'`
 
9682
  { if $as_mkdir_p; then
 
9683
    mkdir -p "$ac_dir"
 
9684
  else
 
9685
    as_dir="$ac_dir"
 
9686
    as_dirs=
 
9687
    while test ! -d "$as_dir"; do
 
9688
      as_dirs="$as_dir $as_dirs"
 
9689
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9690
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9691
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9692
         X"$as_dir" : 'X\(//\)$' \| \
 
9693
         X"$as_dir" : 'X\(/\)' \| \
 
9694
         .     : '\(.\)' 2>/dev/null ||
 
9695
echo X"$as_dir" |
 
9696
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9697
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9698
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9699
          /^X\(\/\).*/{ s//\1/; q; }
 
9700
          s/.*/./; q'`
 
9701
    done
 
9702
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9703
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
9704
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
9705
   { (exit 1); exit 1; }; }; }
 
9706
 
 
9707
  ac_builddir=.
 
9708
 
 
9709
if test "$ac_dir" != .; then
 
9710
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
9711
  # A "../" for each directory in $ac_dir_suffix.
 
9712
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
9713
else
 
9714
  ac_dir_suffix= ac_top_builddir=
 
9715
fi
 
9716
 
 
9717
case $srcdir in
 
9718
  .)  # No --srcdir option.  We are building in place.
 
9719
    ac_srcdir=.
 
9720
    if test -z "$ac_top_builddir"; then
 
9721
       ac_top_srcdir=.
 
9722
    else
 
9723
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
9724
    fi ;;
 
9725
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
9726
    ac_srcdir=$srcdir$ac_dir_suffix;
 
9727
    ac_top_srcdir=$srcdir ;;
 
9728
  *) # Relative path.
 
9729
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
9730
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
9731
esac
 
9732
 
 
9733
# Do not use `cd foo && pwd` to compute absolute paths, because
 
9734
# the directories may not exist.
 
9735
case `pwd` in
 
9736
.) ac_abs_builddir="$ac_dir";;
 
9737
*)
 
9738
  case "$ac_dir" in
 
9739
  .) ac_abs_builddir=`pwd`;;
 
9740
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
9741
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
9742
  esac;;
 
9743
esac
 
9744
case $ac_abs_builddir in
 
9745
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9746
*)
 
9747
  case ${ac_top_builddir}. in
 
9748
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
9749
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
9750
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
9751
  esac;;
 
9752
esac
 
9753
case $ac_abs_builddir in
 
9754
.) ac_abs_srcdir=$ac_srcdir;;
 
9755
*)
 
9756
  case $ac_srcdir in
 
9757
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
9758
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
9759
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
9760
  esac;;
 
9761
esac
 
9762
case $ac_abs_builddir in
 
9763
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9764
*)
 
9765
  case $ac_top_srcdir in
 
9766
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
9767
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
9768
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
9769
  esac;;
 
9770
esac
 
9771
 
 
9772
 
 
9773
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
9774
echo "$as_me: executing $ac_dest commands" >&6;}
 
9775
  case $ac_dest in
 
9776
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
9777
  # Strip MF so we end up with the name of the file.
 
9778
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
9779
  # Check whether this is an Automake generated Makefile or not.
 
9780
  # We used to match only the files named `Makefile.in', but
 
9781
  # some people rename them; so instead we look at the file content.
 
9782
  # Grep'ing the first line is not enough: some people post-process
 
9783
  # each Makefile.in and add a new line on top of each file to say so.
 
9784
  # So let's grep whole file.
 
9785
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
9786
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
9787
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9788
         X"$mf" : 'X\(//\)[^/]' \| \
 
9789
         X"$mf" : 'X\(//\)$' \| \
 
9790
         X"$mf" : 'X\(/\)' \| \
 
9791
         .     : '\(.\)' 2>/dev/null ||
 
9792
echo X"$mf" |
 
9793
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9794
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9795
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9796
          /^X\(\/\).*/{ s//\1/; q; }
 
9797
          s/.*/./; q'`
 
9798
  else
 
9799
    continue
 
9800
  fi
 
9801
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
9802
  # Extract the definition of DEP_FILES from the Makefile without
 
9803
  # running `make'.
 
9804
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
9805
  test -z "$DEPDIR" && continue
 
9806
  # When using ansi2knr, U may be empty or an underscore; expand it
 
9807
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
9808
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
9809
  # We invoke sed twice because it is the simplest approach to
 
9810
  # changing $(DEPDIR) to its actual value in the expansion.
 
9811
  for file in `sed -n -e '
 
9812
    /^DEP_FILES = .*\\\\$/ {
 
9813
      s/^DEP_FILES = //
 
9814
      :loop
 
9815
        s/\\\\$//
 
9816
        p
 
9817
        n
 
9818
        /\\\\$/ b loop
 
9819
      p
 
9820
    }
 
9821
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
9822
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
9823
    # Make sure the directory exists.
 
9824
    test -f "$dirpart/$file" && continue
 
9825
    fdir=`(dirname "$file") 2>/dev/null ||
 
9826
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9827
         X"$file" : 'X\(//\)[^/]' \| \
 
9828
         X"$file" : 'X\(//\)$' \| \
 
9829
         X"$file" : 'X\(/\)' \| \
 
9830
         .     : '\(.\)' 2>/dev/null ||
 
9831
echo X"$file" |
 
9832
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9833
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9834
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9835
          /^X\(\/\).*/{ s//\1/; q; }
 
9836
          s/.*/./; q'`
 
9837
    { if $as_mkdir_p; then
 
9838
    mkdir -p $dirpart/$fdir
 
9839
  else
 
9840
    as_dir=$dirpart/$fdir
 
9841
    as_dirs=
 
9842
    while test ! -d "$as_dir"; do
 
9843
      as_dirs="$as_dir $as_dirs"
 
9844
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
9845
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9846
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9847
         X"$as_dir" : 'X\(//\)$' \| \
 
9848
         X"$as_dir" : 'X\(/\)' \| \
 
9849
         .     : '\(.\)' 2>/dev/null ||
 
9850
echo X"$as_dir" |
 
9851
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
9852
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
9853
          /^X\(\/\/\)$/{ s//\1/; q; }
 
9854
          /^X\(\/\).*/{ s//\1/; q; }
 
9855
          s/.*/./; q'`
 
9856
    done
 
9857
    test ! -n "$as_dirs" || mkdir $as_dirs
 
9858
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
9859
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
9860
   { (exit 1); exit 1; }; }; }
 
9861
 
 
9862
    # echo "creating $dirpart/$file"
 
9863
    echo '# dummy' > "$dirpart/$file"
 
9864
  done
 
9865
done
 
9866
 ;;
 
9867
  esac
 
9868
done
 
9869
_ACEOF
 
9870
 
 
9871
cat >>$CONFIG_STATUS <<\_ACEOF
 
9872
 
 
9873
{ (exit 0); exit 0; }
 
9874
_ACEOF
 
9875
chmod +x $CONFIG_STATUS
 
9876
ac_clean_files=$ac_clean_files_save
 
9877
 
 
9878
 
 
9879
# configure is writing to config.log, and then calls config.status.
 
9880
# config.status does its own redirection, appending to config.log.
 
9881
# Unfortunately, on DOS this fails, as config.log is still kept open
 
9882
# by configure, so config.status won't be able to write to it; its
 
9883
# output is simply discarded.  So we exec the FD to /dev/null,
 
9884
# effectively closing config.log, so it can be properly (re)opened and
 
9885
# appended to by config.status.  When coming back to configure, we
 
9886
# need to make the FD available again.
 
9887
if test "$no_create" != yes; then
 
9888
  ac_cs_success=:
 
9889
  ac_config_status_args=
 
9890
  test "$silent" = yes &&
 
9891
    ac_config_status_args="$ac_config_status_args --quiet"
 
9892
  exec 5>/dev/null
 
9893
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
9894
  exec 5>>config.log
 
9895
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
9896
  # would make configure fail if this is the last instruction.
 
9897
  $ac_cs_success || { (exit 1); exit 1; }
 
9898
fi
 
9899
 
 
9900